@nuxtjs/sitemap 7.4.2 → 7.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +1 -13
- package/dist/client/404.html +1 -13
- package/dist/client/__sitemap__/style.xsl +190 -0
- package/dist/client/_nuxt/BRTu1kzH.js +172 -0
- package/dist/client/_nuxt/CVMmb_pX.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/7faab852-f8a4-43e6-a124-2cd93df90673.json +1 -0
- package/dist/client/_nuxt/entry.D5V0t8Hh.css +1 -0
- package/dist/client/_nuxt/error-404.BXx3NK2Z.css +1 -0
- package/dist/client/_nuxt/error-500.BYrbHUTO.css +1 -0
- package/dist/client/_nuxt/rHMUQZkV.js +1 -0
- package/dist/client/index.html +1 -13
- package/dist/client/sitemap.xml +7 -0
- package/dist/content.d.mts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/module.json +4 -5
- package/dist/module.mjs +45 -39
- package/dist/runtime/server/kit.d.ts +1 -1
- package/dist/runtime/server/plugins/compression.d.ts +1 -1
- package/dist/runtime/server/plugins/nuxt-content-v2.d.ts +1 -1
- package/dist/runtime/server/plugins/nuxt-content-v2.js +1 -1
- package/dist/runtime/server/plugins/warm-up.d.ts +1 -1
- package/dist/runtime/server/{composables/getPathRobotConfigPolyfill.d.ts → robots-polyfill/getPathRobotConfig.d.ts} +1 -1
- package/dist/runtime/server/robots-polyfill/getPathRobotConfig.js +3 -0
- package/dist/runtime/server/routes/__sitemap__/nuxt-content-urls-v3.js +1 -1
- package/dist/runtime/server/sitemap/builder/sitemap-index.js +2 -2
- package/dist/runtime/server/sitemap/nitro.js +1 -1
- package/dist/runtime/server/sitemap/utils/chunk.d.ts +1 -1
- package/dist/runtime/server/sitemap/utils/chunk.js +2 -1
- package/dist/runtime/server/utils.js +1 -1
- package/package.json +24 -22
- package/dist/client/_nuxt/ChlW3cCD.js +0 -1
- package/dist/client/_nuxt/K8nf0nmV.js +0 -172
- package/dist/client/_nuxt/builds/meta/c404a32a-6c86-4c3c-8fc9-542298112da2.json +0 -1
- package/dist/client/_nuxt/entry.BzbtAPc0.css +0 -1
- package/dist/client/_nuxt/error-404.rdc6e5v3.css +0 -1
- package/dist/client/_nuxt/error-500.CRTYI814.css +0 -1
- package/dist/client/_nuxt/fos25x15.js +0 -1
- package/dist/runtime/server/composables/getPathRobotConfigPolyfill.js +0 -3
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CVMmb_pX.js","./error-404.BXx3NK2Z.css","./rHMUQZkV.js","./error-500.BYrbHUTO.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
|
|
3
|
+
* @vue/shared v3.5.21
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**/function pa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Wn=[],xt=()=>{},ku=()=>!1,qr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ga=e=>e.startsWith("onUpdate:"),Ge=Object.assign,ma=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sp=Object.prototype.hasOwnProperty,ue=(e,t)=>sp.call(e,t),Z=Array.isArray,zn=e=>Kr(e)==="[object Map]",Au=e=>Kr(e)==="[object Set]",ml=e=>Kr(e)==="[object Date]",Y=e=>typeof e=="function",we=e=>typeof e=="string",gt=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",ya=e=>(pe(e)||Y(e))&&Y(e.then)&&Y(e.catch),Eu=Object.prototype.toString,Kr=e=>Eu.call(e),op=e=>Kr(e).slice(8,-1),Tu=e=>Kr(e)==="[object Object]",_a=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=pa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),uo=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ip=/-\w/g,at=uo(e=>e.replace(ip,t=>t.slice(1).toUpperCase())),ap=/\B([A-Z])/g,on=uo(e=>e.replace(ap,"-$1").toLowerCase()),fo=uo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Uo=uo(e=>e?`on${fo(e)}`:""),Yt=(e,t)=>!Object.is(e,t),_s=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},$u=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},lp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},cp=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let yl;const ho=()=>yl||(yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function _n(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?hp(r):_n(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(we(e)||pe(e))return e}const up=/;(?![^(]*\))/g,fp=/:([^]+)/,dp=/\/\*[^]*?\*\//g;function hp(e){const t={};return e.replace(dp,"").split(up).forEach(n=>{if(n){const r=n.split(fp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ae(e){let t="";if(we(e))t=e;else if(Z(e))for(let n=0;n<e.length;n++){const r=Ae(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ru(e){if(!e)return null;let{class:t,style:n}=e;return t&&!we(t)&&(e.class=Ae(t)),n&&(e.style=_n(n)),e}const pp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gp=pa(pp);function Pu(e){return!!e||e===""}function mp(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Es(e[r],t[r]);return n}function Es(e,t){if(e===t)return!0;let n=ml(e),r=ml(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=gt(e),r=gt(t),n||r)return e===t;if(n=Z(e),r=Z(t),n||r)return n&&r?mp(e,t):!1;if(n=pe(e),r=pe(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!Es(e[i],t[i]))return!1}}return String(e)===String(t)}const Nu=e=>!!(e&&e.__v_isRef===!0),Ne=e=>we(e)?e:e==null?"":Z(e)||pe(e)&&(e.toString===Eu||!Y(e.toString))?Nu(e)?Ne(e.value):JSON.stringify(e,Iu,2):String(e),Iu=(e,t)=>Nu(t)?Iu(e,t.value):zn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Go(r,o)+" =>"]=s,n),{})}:Au(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Go(n))}:gt(t)?Go(t):pe(t)&&!Z(t)&&!Tu(t)?String(t):t,Go=(e,t="")=>{var n;return gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
|
+
* @vue/reactivity v3.5.21
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/let Fe;class Lu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){++this._on===1&&(this.prevScope=Fe,Fe=this)}off(){this._on>0&&--this._on===0&&(Fe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function yp(e){return new Lu(e)}function ba(){return Fe}function _p(e,t=!1){Fe&&Fe.cleanups.push(e)}let ye;const Wo=new WeakSet;class Ou{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Fe&&Fe.active&&Fe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Wo.has(this)&&(Wo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Du(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_l(this),Hu(this);const t=ye,n=dt;ye=this,dt=!0;try{return this.fn()}finally{Bu(this),ye=t,dt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ca(t);this.deps=this.depsTail=void 0,_l(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Wo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ci(this)&&this.run()}get dirty(){return Ci(this)}}let Mu=0,wr,vr;function Du(e,t=!1){if(e.flags|=8,t){e.next=vr,vr=e;return}e.next=wr,wr=e}function wa(){Mu++}function va(){if(--Mu>0)return;if(vr){let t=vr;for(vr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;wr;){let t=wr;for(wr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Hu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Bu(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Ca(r),bp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ci(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Fu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Fu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir)||(e.globalVersion=Ir,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ci(e))))return;e.flags|=2;const t=e.dep,n=ye,r=dt;ye=e,dt=!0;try{Hu(e);const s=e.fn(e._value);(t.version===0||Yt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ye=n,dt=r,Bu(e),e.flags&=-3}}function Ca(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ca(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function bp(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let dt=!0;const ju=[];function Bt(){ju.push(dt),dt=!1}function Ft(){const e=ju.pop();dt=e===void 0?!0:e}function _l(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ye;ye=void 0;try{t()}finally{ye=n}}}let Ir=0;class wp{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class po{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ye||!dt||ye===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ye)n=this.activeLink=new wp(ye,this),ye.deps?(n.prevDep=ye.depsTail,ye.depsTail.nextDep=n,ye.depsTail=n):ye.deps=ye.depsTail=n,Uu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ye.depsTail,n.nextDep=void 0,ye.depsTail.nextDep=n,ye.depsTail=n,ye.deps===n&&(ye.deps=r)}return n}trigger(t){this.version++,Ir++,this.notify(t)}notify(t){wa();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{va()}}}function Uu(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Uu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ts=new WeakMap,bn=Symbol(""),xi=Symbol(""),Lr=Symbol("");function je(e,t,n){if(dt&&ye){let r=Ts.get(e);r||Ts.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new po),s.map=r,s.key=n),s.track()}}function It(e,t,n,r,s,o){const i=Ts.get(e);if(!i){Ir++;return}const a=l=>{l&&l.trigger()};if(wa(),t==="clear")i.forEach(a);else{const l=Z(e),u=l&&_a(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===Lr||!gt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(Lr)),t){case"add":l?u&&a(i.get("length")):(a(i.get(bn)),zn(e)&&a(i.get(xi)));break;case"delete":l||(a(i.get(bn)),zn(e)&&a(i.get(xi)));break;case"set":zn(e)&&a(i.get(bn));break}}va()}function vp(e,t){const n=Ts.get(e);return n&&n.get(t)}function In(e){const t=ce(e);return t===e?t:(je(t,"iterate",Lr),it(e)?t:t.map(Ie))}function go(e){return je(e=ce(e),"iterate",Lr),e}const Cp={__proto__:null,[Symbol.iterator](){return zo(this,Symbol.iterator,Ie)},concat(...e){return In(this).concat(...e.map(t=>Z(t)?In(t):t))},entries(){return zo(this,"entries",e=>(e[1]=Ie(e[1]),e))},every(e,t){return $t(this,"every",e,t,void 0,arguments)},filter(e,t){return $t(this,"filter",e,t,n=>n.map(Ie),arguments)},find(e,t){return $t(this,"find",e,t,Ie,arguments)},findIndex(e,t){return $t(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $t(this,"findLast",e,t,Ie,arguments)},findLastIndex(e,t){return $t(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $t(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vo(this,"includes",e)},indexOf(...e){return Vo(this,"indexOf",e)},join(e){return In(this).join(e)},lastIndexOf(...e){return Vo(this,"lastIndexOf",e)},map(e,t){return $t(this,"map",e,t,void 0,arguments)},pop(){return pr(this,"pop")},push(...e){return pr(this,"push",e)},reduce(e,...t){return bl(this,"reduce",e,t)},reduceRight(e,...t){return bl(this,"reduceRight",e,t)},shift(){return pr(this,"shift")},some(e,t){return $t(this,"some",e,t,void 0,arguments)},splice(...e){return pr(this,"splice",e)},toReversed(){return In(this).toReversed()},toSorted(e){return In(this).toSorted(e)},toSpliced(...e){return In(this).toSpliced(...e)},unshift(...e){return pr(this,"unshift",e)},values(){return zo(this,"values",Ie)}};function zo(e,t,n){const r=go(e),s=r[t]();return r!==e&&!it(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const xp=Array.prototype;function $t(e,t,n,r,s,o){const i=go(e),a=i!==e&&!it(e),l=i[t];if(l!==xp[t]){const f=l.apply(e,o);return a?Ie(f):f}let u=n;i!==e&&(a?u=function(f,d){return n.call(this,Ie(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(i,u,r);return a&&s?s(c):c}function bl(e,t,n,r){const s=go(e);let o=n;return s!==e&&(it(e)?n.length>3&&(o=function(i,a,l){return n.call(this,i,a,l,e)}):o=function(i,a,l){return n.call(this,i,Ie(a),l,e)}),s[t](o,...r)}function Vo(e,t,n){const r=ce(e);je(r,"iterate",Lr);const s=r[t](...n);return(s===-1||s===!1)&&ka(n[0])?(n[0]=ce(n[0]),r[t](...n)):s}function pr(e,t,n=[]){Bt(),wa();const r=ce(e)[t].apply(e,n);return va(),Ft(),r}const Sp=pa("__proto__,__v_isRef,__isVue"),Gu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt));function kp(e){gt(e)||(e=String(e));const t=ce(this);return je(t,"has",e),t.hasOwnProperty(e)}class Wu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Op:Ku:o?qu:Vu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Z(t);if(!s){let l;if(i&&(l=Cp[n]))return l;if(n==="hasOwnProperty")return kp}const a=Reflect.get(t,n,Ce(t)?t:r);return(gt(n)?Gu.has(n):Sp(n))||(s||je(t,"get",n),o)?a:Ce(a)?i&&_a(n)?a:a.value:pe(a)?s?mo(a):nn(a):a}}class zu extends Wu{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=jt(o);if(!it(r)&&!jt(r)&&(o=ce(o),r=ce(r)),!Z(t)&&Ce(o)&&!Ce(r))return l||(o.value=r),!0}const i=Z(t)&&_a(n)?Number(n)<t.length:ue(t,n),a=Reflect.set(t,n,r,Ce(t)?t:s);return t===ce(s)&&(i?Yt(r,o)&&It(t,"set",n,r):It(t,"add",n,r)),a}deleteProperty(t,n){const r=ue(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&It(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!gt(n)||!Gu.has(n))&&je(t,"has",n),r}ownKeys(t){return je(t,"iterate",Z(t)?"length":bn),Reflect.ownKeys(t)}}class Ap extends Wu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ep=new zu,Tp=new Ap,$p=new zu(!0);const Si=e=>e,es=e=>Reflect.getPrototypeOf(e);function Rp(e,t,n){return function(...r){const s=this.__v_raw,o=ce(s),i=zn(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),c=n?Si:t?$s:Ie;return!t&&je(o,"iterate",l?xi:bn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function ts(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pp(e,t){const n={get(s){const o=this.__v_raw,i=ce(o),a=ce(s);e||(Yt(s,a)&&je(i,"get",s),je(i,"get",a));const{has:l}=es(i),u=t?Si:e?$s:Ie;if(l.call(i,s))return u(o.get(s));if(l.call(i,a))return u(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&je(ce(s),"iterate",bn),s.size},has(s){const o=this.__v_raw,i=ce(o),a=ce(s);return e||(Yt(s,a)&&je(i,"has",s),je(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=ce(a),u=t?Si:e?$s:Ie;return!e&&je(l,"iterate",bn),a.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return Ge(n,e?{add:ts("add"),set:ts("set"),delete:ts("delete"),clear:ts("clear")}:{add(s){!t&&!it(s)&&!jt(s)&&(s=ce(s));const o=ce(this);return es(o).has.call(o,s)||(o.add(s),It(o,"add",s,s)),this},set(s,o){!t&&!it(o)&&!jt(o)&&(o=ce(o));const i=ce(this),{has:a,get:l}=es(i);let u=a.call(i,s);u||(s=ce(s),u=a.call(i,s));const c=l.call(i,s);return i.set(s,o),u?Yt(o,c)&&It(i,"set",s,o):It(i,"add",s,o),this},delete(s){const o=ce(this),{has:i,get:a}=es(o);let l=i.call(o,s);l||(s=ce(s),l=i.call(o,s)),a&&a.call(o,s);const u=o.delete(s);return l&&It(o,"delete",s,void 0),u},clear(){const s=ce(this),o=s.size!==0,i=s.clear();return o&&It(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Rp(s,e,t)}),n}function xa(e,t){const n=Pp(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ue(n,s)&&s in r?n:r,s,o)}const Np={get:xa(!1,!1)},Ip={get:xa(!1,!0)},Lp={get:xa(!0,!1)};const Vu=new WeakMap,qu=new WeakMap,Ku=new WeakMap,Op=new WeakMap;function Mp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Dp(e){return e.__v_skip||!Object.isExtensible(e)?0:Mp(op(e))}function nn(e){return jt(e)?e:Sa(e,!1,Ep,Np,Vu)}function jn(e){return Sa(e,!1,$p,Ip,qu)}function mo(e){return Sa(e,!0,Tp,Lp,Ku)}function Sa(e,t,n,r,s){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Dp(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function wn(e){return jt(e)?wn(e.__v_raw):!!(e&&e.__v_isReactive)}function jt(e){return!!(e&&e.__v_isReadonly)}function it(e){return!!(e&&e.__v_isShallow)}function ka(e){return e?!!e.__v_raw:!1}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Hp(e){return!ue(e,"__v_skip")&&Object.isExtensible(e)&&$u(e,"__v_skip",!0),e}const Ie=e=>pe(e)?nn(e):e,$s=e=>pe(e)?mo(e):e;function Ce(e){return e?e.__v_isRef===!0:!1}function Ee(e){return Xu(e,!1)}function Rs(e){return Xu(e,!0)}function Xu(e,t){return Ce(e)?e:new Bp(e,t)}class Bp{constructor(t,n){this.dep=new po,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ce(t),this._value=n?t:Ie(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||it(t)||jt(t);t=r?t:ce(t),Yt(t,n)&&(this._rawValue=t,this._value=r?t:Ie(t),this.dep.trigger())}}function oe(e){return Ce(e)?e.value:e}function Dt(e){return Y(e)?e():oe(e)}const Fp={get:(e,t,n)=>t==="__v_raw"?e:oe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ce(s)&&!Ce(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ju(e){return wn(e)?e:new Proxy(e,Fp)}class jp{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new po,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Up(e){return new jp(e)}class Gp{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return vp(ce(this._object),this._key)}}class Wp{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Aa(e,t,n){return Ce(e)?e:Y(e)?new Wp(e):pe(e)&&arguments.length>1?zp(e,t,n):Ee(e)}function zp(e,t,n){const r=e[t];return Ce(r)?r:new Gp(e,t,n)}class Vp{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new po(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ye!==this)return Du(this,!0),!0}get value(){const t=this.dep.track();return Fu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function qp(e,t,n=!1){let r,s;return Y(e)?r=e:(r=e.get,s=e.set),new Vp(r,s,n)}const ns={},Ps=new WeakMap;let dn;function Kp(e,t=!1,n=dn){if(n){let r=Ps.get(n);r||Ps.set(n,r=[]),r.push(e)}}function Xp(e,t,n=he){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,u=v=>s?v:it(v)||s===!1||s===0?Lt(v,1):Lt(v);let c,f,d,h,p=!1,g=!1;if(Ce(e)?(f=()=>e.value,p=it(e)):wn(e)?(f=()=>u(e),p=!0):Z(e)?(g=!0,p=e.some(v=>wn(v)||it(v)),f=()=>e.map(v=>{if(Ce(v))return v.value;if(wn(v))return u(v);if(Y(v))return l?l(v,2):v()})):Y(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Bt();try{d()}finally{Ft()}}const v=dn;dn=c;try{return l?l(e,3,[h]):e(h)}finally{dn=v}}:f=xt,t&&s){const v=f,C=s===!0?1/0:s;f=()=>Lt(v(),C)}const b=ba(),_=()=>{c.stop(),b&&b.active&&ma(b.effects,c)};if(o&&t){const v=t;t=(...C)=>{v(...C),_()}}let w=g?new Array(e.length).fill(ns):ns;const m=v=>{if(!(!(c.flags&1)||!c.dirty&&!v))if(t){const C=c.run();if(s||p||(g?C.some((S,P)=>Yt(S,w[P])):Yt(C,w))){d&&d();const S=dn;dn=c;try{const P=[C,w===ns?void 0:g&&w[0]===ns?[]:w,h];w=C,l?l(t,3,P):t(...P)}finally{dn=S}}}else c.run()};return a&&a(m),c=new Ou(f),c.scheduler=i?()=>i(m,!1):m,h=v=>Kp(v,!1,c),d=c.onStop=()=>{const v=Ps.get(c);if(v){if(l)l(v,4);else for(const C of v)C();Ps.delete(c)}},t?r?m(!0):w=c.run():i?i(m.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Lt(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ce(e))Lt(e.value,t,n);else if(Z(e))for(let r=0;r<e.length;r++)Lt(e[r],t,n);else if(Au(e)||zn(e))e.forEach(r=>{Lt(r,t,n)});else if(Tu(e)){for(const r in e)Lt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Lt(e[r],t,n)}return e}/**
|
|
11
|
+
* @vue/runtime-core v3.5.21
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/function Xr(e,t,n,r){try{return r?e(...r):e()}catch(s){ir(s,t,n)}}function At(e,t,n,r){if(Y(e)){const s=Xr(e,t,n,r);return s&&ya(s)&&s.catch(o=>{ir(o,t,n)}),s}if(Z(e)){const s=[];for(let o=0;o<e.length;o++)s.push(At(e[o],t,n,r));return s}}function ir(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||he;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(o){Bt(),Xr(o,null,10,[e,l,u]),Ft();return}}Jp(e,n,s,r,i)}function Jp(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const ze=[];let vt=-1;const qn=[];let Kt=null,Dn=0;const Yu=Promise.resolve();let Ns=null;function ar(e){const t=Ns||Yu;return e?t.then(this?e.bind(this):e):t}function Yp(e){let t=vt+1,n=ze.length;for(;t<n;){const r=t+n>>>1,s=ze[r],o=Or(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Ea(e){if(!(e.flags&1)){const t=Or(e),n=ze[ze.length-1];!n||!(e.flags&2)&&t>=Or(n)?ze.push(e):ze.splice(Yp(t),0,e),e.flags|=1,Zu()}}function Zu(){Ns||(Ns=Yu.then(Qu))}function ki(e){Z(e)?qn.push(...e):Kt&&e.id===-1?Kt.splice(Dn+1,0,e):e.flags&1||(qn.push(e),e.flags|=1),Zu()}function wl(e,t,n=vt+1){for(;n<ze.length;n++){const r=ze[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;ze.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Is(e){if(qn.length){const t=[...new Set(qn)].sort((n,r)=>Or(n)-Or(r));if(qn.length=0,Kt){Kt.push(...t);return}for(Kt=t,Dn=0;Dn<Kt.length;Dn++){const n=Kt[Dn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Kt=null,Dn=0}}const Or=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Qu(e){try{for(vt=0;vt<ze.length;vt++){const t=ze[vt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;vt<ze.length;vt++){const t=ze[vt];t&&(t.flags&=-2)}vt=-1,ze.length=0,Is(),Ns=null,(ze.length||qn.length)&&Qu()}}let Me=null,yo=null;function Ls(e){const t=Me;return Me=e,yo=e&&e.type.__scopeId||null,t}function Zp(e){yo=e}function Qp(){yo=null}const eg=e=>se;function se(e,t=Me,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Ds(-1);const o=Ls(t);let i;try{i=e(...s)}finally{Ls(o),r._d&&Ds(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function tg(e,t){if(Me===null)return e;const n=xo(Me),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=he]=t[s];o&&(Y(o)&&(o={mounted:o,updated:o}),o.deep&&Lt(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Ct(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(Bt(),At(l,n,8,[e.el,a,e,t]),Ft())}}const ng=Symbol("_vte"),rg=e=>e.__isTeleport,sg=Symbol("_leaveCb");function Ta(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ta(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function mt(e,t){return Y(e)?Ge({name:e.name},t,{setup:e}):e}function $a(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Os=new WeakMap;function Kn(e,t,n,r,s=!1){if(Z(e)){e.forEach((p,g)=>Kn(p,t&&(Z(t)?t[g]:t),n,r,s));return}if(vn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Kn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?xo(r.component):r.el,i=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===he?a.refs={}:a.refs,f=a.setupState,d=ce(f),h=f===he?ku:p=>ue(d,p);if(u!=null&&u!==l){if(vl(t),we(u))c[u]=null,h(u)&&(f[u]=null);else if(Ce(u)){u.value=null;const p=t;p.k&&(c[p.k]=null)}}if(Y(l))Xr(l,a,12,[i,c]);else{const p=we(l),g=Ce(l);if(p||g){const b=()=>{if(e.f){const _=p?h(l)?f[l]:c[l]:l.value;if(s)Z(_)&&ma(_,o);else if(Z(_))_.includes(o)||_.push(o);else if(p)c[l]=[o],h(l)&&(f[l]=c[l]);else{const w=[o];l.value=w,e.k&&(c[e.k]=w)}}else p?(c[l]=i,h(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(c[e.k]=i))};if(i){const _=()=>{b(),Os.delete(e)};_.id=-1,Os.set(e,_),Qe(_,n)}else vl(e),b()}}}function vl(e){const t=Os.get(e);t&&(t.flags|=8,Os.delete(e))}let Cl=!1;const Ln=()=>{Cl||(console.error("Hydration completed but contains mismatches."),Cl=!0)},og=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",ig=e=>e.namespaceURI.includes("MathML"),rs=e=>{if(e.nodeType===1){if(og(e))return"svg";if(ig(e))return"mathml"}},Un=e=>e.nodeType===8;function ag(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:u}}=e,c=(m,v)=>{if(!v.hasChildNodes()){n(null,m,v),Is(),v._vnode=m;return}f(v.firstChild,m,null,null,null),Is(),v._vnode=m},f=(m,v,C,S,P,F=!1)=>{F=F||!!v.dynamicChildren;const G=Un(m)&&m.data==="[",N=()=>g(m,v,C,S,P,G),{type:q,ref:W,shapeFlag:Q,patchFlag:L}=v;let K=m.nodeType;v.el=m,L===-2&&(F=!1,v.dynamicChildren=null);let O=null;switch(q){case Sn:K!==3?v.children===""?(l(v.el=s(""),i(m),m),O=m):O=N():(m.data!==v.children&&(Ln(),m.data=v.children),O=o(m));break;case lt:w(m)?(O=o(m),_(v.el=m.content.firstChild,m,C)):K!==8||G?O=N():O=o(m);break;case xr:if(G&&(m=o(m),K=m.nodeType),K===1||K===3){O=m;const X=!v.children.length;for(let U=0;U<v.staticCount;U++)X&&(v.children+=O.nodeType===1?O.outerHTML:O.data),U===v.staticCount-1&&(v.anchor=O),O=o(O);return G?o(O):O}else N();break;case _e:G?O=p(m,v,C,S,P,F):O=N();break;default:if(Q&1)(K!==1||v.type.toLowerCase()!==m.tagName.toLowerCase())&&!w(m)?O=N():O=d(m,v,C,S,P,F);else if(Q&6){v.slotScopeIds=P;const X=i(m);if(G?O=b(m):Un(m)&&m.data==="teleport start"?O=b(m,m.data,"teleport end"):O=o(m),t(v,X,null,C,S,rs(X),F),vn(v)&&!v.type.__asyncResolved){let U;G?(U=z(_e),U.anchor=O?O.previousSibling:X.lastChild):U=m.nodeType===3?ie(""):z("div"),U.el=m,v.component.subTree=U}}else Q&64?K!==8?O=N():O=v.type.hydrate(m,v,C,S,P,F,e,h):Q&128&&(O=v.type.hydrate(m,v,C,S,rs(i(m)),P,F,e,f))}return W!=null&&Kn(W,null,S,v),O},d=(m,v,C,S,P,F)=>{F=F||!!v.dynamicChildren;const{type:G,props:N,patchFlag:q,shapeFlag:W,dirs:Q,transition:L}=v,K=G==="input"||G==="option";if(K||q!==-1){Q&&Ct(v,null,C,"created");let O=!1;if(w(m)){O=xf(null,L)&&C&&C.vnode.props&&C.vnode.props.appear;const U=m.content.firstChild;if(O){const fe=U.getAttribute("class");fe&&(U.$cls=fe),L.beforeEnter(U)}_(U,m,C),v.el=m=U}if(W&16&&!(N&&(N.innerHTML||N.textContent))){let U=h(m.firstChild,v,m,C,S,P,F);for(;U;){ss(m,1)||Ln();const fe=U;U=U.nextSibling,a(fe)}}else if(W&8){let U=v.children;U[0]===`
|
|
15
|
+
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(U=U.slice(1)),m.textContent!==U&&(ss(m,0)||Ln(),m.textContent=v.children)}if(N){if(K||!F||q&48){const U=m.tagName.includes("-");for(const fe in N)(K&&(fe.endsWith("value")||fe==="indeterminate")||qr(fe)&&!Vn(fe)||fe[0]==="."||U)&&r(m,fe,null,N[fe],void 0,C)}else if(N.onClick)r(m,"onClick",null,N.onClick,void 0,C);else if(q&4&&wn(N.style))for(const U in N.style)N.style[U]}let X;(X=N&&N.onVnodeBeforeMount)&&nt(X,C,v),Q&&Ct(v,null,C,"beforeMount"),((X=N&&N.onVnodeMounted)||Q||O)&&Pf(()=>{X&&nt(X,C,v),O&&L.enter(m),Q&&Ct(v,null,C,"mounted")},S)}return m.nextSibling},h=(m,v,C,S,P,F,G)=>{G=G||!!v.dynamicChildren;const N=v.children,q=N.length;for(let W=0;W<q;W++){const Q=G?N[W]:N[W]=et(N[W]),L=Q.type===Sn;m?(L&&!G&&W+1<q&&et(N[W+1]).type===Sn&&(l(s(m.data.slice(Q.children.length)),C,o(m)),m.data=Q.children),m=f(m,Q,S,P,F,G)):L&&!Q.children?l(Q.el=s(""),C):(ss(C,1)||Ln(),n(null,Q,C,null,S,P,rs(C),F))}return m},p=(m,v,C,S,P,F)=>{const{slotScopeIds:G}=v;G&&(P=P?P.concat(G):G);const N=i(m),q=h(o(m),v,N,C,S,P,F);return q&&Un(q)&&q.data==="]"?o(v.anchor=q):(Ln(),l(v.anchor=u("]"),N,q),q)},g=(m,v,C,S,P,F)=>{if(ss(m.parentElement,1)||Ln(),v.el=null,F){const q=b(m);for(;;){const W=o(m);if(W&&W!==q)a(W);else break}}const G=o(m),N=i(m);return a(m),n(null,v,N,G,C,S,rs(N),P),C&&(C.vnode.el=v.el,vo(C,v.el)),G},b=(m,v="[",C="]")=>{let S=0;for(;m;)if(m=o(m),m&&Un(m)&&(m.data===v&&S++,m.data===C)){if(S===0)return o(m);S--}return m},_=(m,v,C)=>{const S=v.parentNode;S&&S.replaceChild(m,v);let P=C;for(;P;)P.vnode.el===v&&(P.vnode.el=P.subTree.el=m),P=P.parent},w=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const xl="data-allow-mismatch",lg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ss(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(xl);)e=e.parentElement;const n=e&&e.getAttribute(xl);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(lg[t])}}ho().requestIdleCallback;ho().cancelIdleCallback;function cg(e,t){if(Un(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Un(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const vn=e=>!!e.type.__asyncLoader;function Sl(e){Y(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,h()),h=()=>{let p;return u||(p=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((b,_)=>{l(g,()=>b(d()),()=>_(g),f+1)});throw g}).then(g=>p!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return mt({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,b){let _=!1;(g.bu||(g.bu=[])).push(()=>_=!0);const w=()=>{_||b()},m=o?()=>{const v=o(w,C=>cg(p,C));v&&(g.bum||(g.bum=[])).push(v)}:w;c?m():h().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const p=Oe;if($a(p),c)return()=>qo(c,p);const g=m=>{u=null,ir(m,p,13,!r)};if(a&&p.suspense||nr)return h().then(m=>()=>qo(m,p)).catch(m=>(g(m),()=>r?z(r,{error:m}):null));const b=Ee(!1),_=Ee(),w=Ee(!!s);return s&&setTimeout(()=>{w.value=!1},s),i!=null&&setTimeout(()=>{if(!b.value&&!_.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),_.value=m}},i),h().then(()=>{b.value=!0,p.parent&&Ra(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),_.value=m}),()=>{if(b.value&&c)return qo(c,p);if(_.value&&r)return z(r,{error:_.value});if(n&&!w.value)return z(n)}}})}function qo(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=z(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Ra=e=>e.type.__isKeepAlive;function ef(e,t){nf(e,"a",t)}function tf(e,t){nf(e,"da",t)}function nf(e,t,n=Oe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(_o(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Ra(s.parent.vnode)&&ug(r,t,n,s),s=s.parent}}function ug(e,t,n,r){const s=_o(t,e,r,!0);rf(()=>{ma(r[t],s)},n)}function _o(e,t,n=Oe,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Bt();const a=kn(n),l=At(t,n,e,i);return a(),Ft(),l});return r?s.unshift(o):s.push(o),o}}const Ut=e=>(t,n=Oe)=>{(!nr||e==="sp")&&_o(e,(...r)=>t(...r),n)},fg=Ut("bm"),Pa=Ut("m"),dg=Ut("bu"),hg=Ut("u"),Na=Ut("bum"),rf=Ut("um"),pg=Ut("sp"),gg=Ut("rtg"),mg=Ut("rtc");function sf(e,t=Oe){_o("ec",e,t)}const of="components";function rn(e,t){return lf(of,e,!0,t)||e}const af=Symbol.for("v-ndc");function yg(e){return we(e)?lf(of,e,!1)||e:e||af}function lf(e,t,n=!0,r=!1){const s=Me||Oe;if(s){const o=s.type;{const a=lm(o,!1);if(a&&(a===t||a===at(t)||a===fo(at(t))))return o}const i=kl(s[e]||o[e],t)||kl(s.appContext[e],t);return!i&&r?o:i}}function kl(e,t){return e&&(e[t]||e[at(t)]||e[fo(at(t))])}function Hn(e,t,n,r){let s;const o=n,i=Z(e);if(i||we(e)){const a=i&&wn(e);let l=!1,u=!1;a&&(l=!it(e),u=jt(e),e=go(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?$s(Ie(e[c])):Ie(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o)}else if(pe(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,o)}}else s=[];return s}function qe(e,t,n={},r,s){if(Me.ce||Me.parent&&vn(Me.parent)&&Me.parent.ce)return t!=="default"&&(n.name=t),B(),be(_e,null,[z("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),B();const i=o&&cf(o(n)),a=n.key||i&&i.key,l=be(_e,{key:(a&&!gt(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function cf(e){return e.some(t=>er(t)?!(t.type===lt||t.type===_e&&!cf(t.children)):!0)?e:null}const Ai=e=>e?Of(e)?xo(e):Ai(e.parent):null,Cr=Ge(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=>Ai(e.parent),$root:e=>Ai(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ff(e),$forceUpdate:e=>e.f||(e.f=()=>{Ea(e.update)}),$nextTick:e=>e.n||(e.n=ar.bind(e.proxy)),$watch:e=>Hg.bind(e)}),Ko=(e,t)=>e!==he&&!e.__isScriptSetup&&ue(e,t),_g={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Ko(r,t))return i[t]=1,r[t];if(s!==he&&ue(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&ue(u,t))return i[t]=3,o[t];if(n!==he&&ue(n,t))return i[t]=4,n[t];Ei&&(i[t]=0)}}const c=Cr[t];let f,d;if(c)return t==="$attrs"&&je(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==he&&ue(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,ue(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Ko(s,t)?(s[t]=n,!0):r!==he&&ue(r,t)?(r[t]=n,!0):ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o,type:i}},a){let l,u;return!!(n[a]||e!==he&&a[0]!=="$"&&ue(e,a)||Ko(t,a)||(l=o[0])&&ue(l,a)||ue(r,a)||ue(Cr,a)||ue(s.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Al(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function bg(e){const t=En();let n=e();return Ni(),ya(n)&&(n=n.catch(r=>{throw kn(t),r})),[n,()=>kn(t)]}let Ei=!0;function wg(e){const t=ff(e),n=e.proxy,r=e.ctx;Ei=!1,t.beforeCreate&&El(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:_,beforeUnmount:w,destroyed:m,unmounted:v,render:C,renderTracked:S,renderTriggered:P,errorCaptured:F,serverPrefetch:G,expose:N,inheritAttrs:q,components:W,directives:Q,filters:L}=t;if(u&&vg(u,r,null),i)for(const X in i){const U=i[X];Y(U)&&(r[X]=U.bind(n))}if(s){const X=s.call(n,n);pe(X)&&(e.data=nn(X))}if(Ei=!0,o)for(const X in o){const U=o[X],fe=Y(U)?U.bind(n,n):Y(U.get)?U.get.bind(n,n):xt,Pn=!Y(U)&&Y(U.set)?U.set.bind(n):xt,an=ke({get:fe,set:Pn});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>an.value,set:_t=>an.value=_t})}if(a)for(const X in a)uf(a[X],r,n,X);if(l){const X=Y(l)?l.call(n):l;Reflect.ownKeys(X).forEach(U=>{hf(U,X[U])})}c&&El(c,e,"c");function O(X,U){Z(U)?U.forEach(fe=>X(fe.bind(n))):U&&X(U.bind(n))}if(O(fg,f),O(Pa,d),O(dg,h),O(hg,p),O(ef,g),O(tf,b),O(sf,F),O(mg,S),O(gg,P),O(Na,w),O(rf,v),O(pg,G),Z(N))if(N.length){const X=e.exposed||(e.exposed={});N.forEach(U=>{Object.defineProperty(X,U,{get:()=>n[U],set:fe=>n[U]=fe,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===xt&&(e.render=C),q!=null&&(e.inheritAttrs=q),W&&(e.components=W),Q&&(e.directives=Q),G&&$a(e)}function vg(e,t,n=xt){Z(e)&&(e=Ti(e));for(const r in e){const s=e[r];let o;pe(s)?"default"in s?o=xn(s.from||r,s.default,!0):o=xn(s.from||r):o=xn(s),Ce(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function El(e,t,n){At(Z(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function uf(e,t,n,r){let s=r.includes(".")?Ef(n,r):()=>n[r];if(we(e)){const o=t[e];Y(o)&&Zt(s,o)}else if(Y(e))Zt(s,e.bind(n));else if(pe(e))if(Z(e))e.forEach(o=>uf(o,t,n,r));else{const o=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(o)&&Zt(s,o,e)}}function ff(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Ms(l,u,i,!0)),Ms(l,t,i)),pe(t)&&o.set(t,l),l}function Ms(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Ms(e,o,n,!0),s&&s.forEach(i=>Ms(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Cg[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Cg={data:Tl,props:$l,emits:$l,methods:_r,computed:_r,beforeCreate:We,created:We,beforeMount:We,mounted:We,beforeUpdate:We,updated:We,beforeDestroy:We,beforeUnmount:We,destroyed:We,unmounted:We,activated:We,deactivated:We,errorCaptured:We,serverPrefetch:We,components:_r,directives:_r,watch:Sg,provide:Tl,inject:xg};function Tl(e,t){return t?e?function(){return Ge(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function xg(e,t){return _r(Ti(e),Ti(t))}function Ti(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function We(e,t){return e?[...new Set([].concat(e,t))]:t}function _r(e,t){return e?Ge(Object.create(null),e,t):t}function $l(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:Ge(Object.create(null),Al(e),Al(t??{})):t}function Sg(e,t){if(!e)return t;if(!t)return e;const n=Ge(Object.create(null),e);for(const r in t)n[r]=We(e[r],t[r]);return n}function df(){return{app:null,config:{isNativeTag:ku,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 kg=0;function Ag(e,t){return function(r,s=null){Y(r)||(r=Ge({},r)),s!=null&&!pe(s)&&(s=null);const o=df(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:kg++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:um,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&Y(c.install)?(i.add(c),c.install(u,...f)):Y(c)&&(i.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||z(r,s);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,c):e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,xo(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(At(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Cn;Cn=u;try{return c()}finally{Cn=f}}};return u}}let Cn=null;function hf(e,t){if(Oe){let n=Oe.provides;const r=Oe.parent&&Oe.parent.provides;r===n&&(n=Oe.provides=Object.create(r)),n[e]=t}}function xn(e,t,n=!1){const r=En();if(r||Cn){let s=Cn?Cn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Y(t)?t.call(r&&r.proxy):t}}function bo(){return!!(En()||Cn)}const pf={},gf=()=>Object.create(pf),mf=e=>Object.getPrototypeOf(e)===pf;function Eg(e,t,n,r=!1){const s={},o=gf();e.propsDefaults=Object.create(null),yf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:jn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Tg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ce(s),[l]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(wo(e.emitsOptions,d))continue;const h=t[d];if(l)if(ue(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const p=at(d);s[p]=$i(l,a,p,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{yf(e,t,s,o)&&(u=!0);let c;for(const f in a)(!t||!ue(t,f)&&((c=on(f))===f||!ue(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=$i(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!ue(t,f))&&(delete o[f],u=!0)}u&&It(e.attrs,"set","")}function yf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Vn(l))continue;const u=t[l];let c;s&&ue(s,c=at(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:wo(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=ce(n),u=a||he;for(let c=0;c<o.length;c++){const f=o[c];n[f]=$i(s,l,f,u[f],e,!ue(u,f))}}return i}function $i(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=ue(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Y(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=kn(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===on(n))&&(r=!0))}return r}const $g=new WeakMap;function _f(e,t,n=!1){const r=n?$g:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!Y(e)){const c=f=>{l=!0;const[d,h]=_f(f,t,!0);Ge(i,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return pe(e)&&r.set(e,Wn),Wn;if(Z(o))for(let c=0;c<o.length;c++){const f=at(o[c]);Rl(f)&&(i[f]=he)}else if(o)for(const c in o){const f=at(c);if(Rl(f)){const d=o[c],h=i[f]=Z(d)||Y(d)?{type:d}:Ge({},d),p=h.type;let g=!1,b=!0;if(Z(p))for(let _=0;_<p.length;++_){const w=p[_],m=Y(w)&&w.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(b=!1)}else g=Y(p)&&p.name==="Boolean";h[0]=g,h[1]=b,(g||ue(h,"default"))&&a.push(f)}}const u=[i,a];return pe(e)&&r.set(e,u),u}function Rl(e){return e[0]!=="$"&&!Vn(e)}const Ia=e=>e==="_"||e==="_ctx"||e==="$stable",La=e=>Z(e)?e.map(et):[et(e)],Rg=(e,t,n)=>{if(t._n)return t;const r=se((...s)=>La(t(...s)),n);return r._c=!1,r},bf=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ia(s))continue;const o=e[s];if(Y(o))t[s]=Rg(s,o,r);else if(o!=null){const i=La(o);t[s]=()=>i}}},wf=(e,t)=>{const n=La(t);e.slots.default=()=>n},vf=(e,t,n)=>{for(const r in t)(n||!Ia(r))&&(e[r]=t[r])},Pg=(e,t,n)=>{const r=e.slots=gf();if(e.vnode.shapeFlag&32){const s=t._;s?(vf(r,t,n),n&&$u(r,"_",s,!0)):bf(t,r)}else t&&wf(e,t)},Ng=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=he;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:vf(s,t,n):(o=!t.$stable,bf(t,s)),i=t}else t&&(wf(e,t),i={default:1});if(o)for(const a in s)!Ia(a)&&i[a]==null&&delete s[a]},Qe=Pf;function Ig(e){return Cf(e)}function Lg(e){return Cf(e,ag)}function Cf(e,t){const n=ho();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=xt,insertStaticContent:p}=e,g=(y,x,k,T=null,A=null,E=null,H=void 0,D=null,M=!!x.dynamicChildren)=>{if(y===x)return;y&&!Jt(y,x)&&(T=Qr(y),_t(y,A,E,!0),y=null),x.patchFlag===-2&&(M=!1,x.dynamicChildren=null);const{type:$,ref:J,shapeFlag:j}=x;switch($){case Sn:b(y,x,k,T);break;case lt:_(y,x,k,T);break;case xr:y==null&&w(x,k,T,H);break;case _e:W(y,x,k,T,A,E,H,D,M);break;default:j&1?C(y,x,k,T,A,E,H,D,M):j&6?Q(y,x,k,T,A,E,H,D,M):(j&64||j&128)&&$.process(y,x,k,T,A,E,H,D,M,Nn)}J!=null&&A?Kn(J,y&&y.ref,E,x||y,!x):J==null&&y&&y.ref!=null&&Kn(y.ref,null,E,y,!0)},b=(y,x,k,T)=>{if(y==null)r(x.el=a(x.children),k,T);else{const A=x.el=y.el;x.children!==y.children&&u(A,x.children)}},_=(y,x,k,T)=>{y==null?r(x.el=l(x.children||""),k,T):x.el=y.el},w=(y,x,k,T)=>{[y.el,y.anchor]=p(y.children,x,k,T,y.el,y.anchor)},m=({el:y,anchor:x},k,T)=>{let A;for(;y&&y!==x;)A=d(y),r(y,k,T),y=A;r(x,k,T)},v=({el:y,anchor:x})=>{let k;for(;y&&y!==x;)k=d(y),s(y),y=k;s(x)},C=(y,x,k,T,A,E,H,D,M)=>{x.type==="svg"?H="svg":x.type==="math"&&(H="mathml"),y==null?S(x,k,T,A,E,H,D,M):G(y,x,A,E,H,D,M)},S=(y,x,k,T,A,E,H,D)=>{let M,$;const{props:J,shapeFlag:j,transition:V,dirs:te}=y;if(M=y.el=i(y.type,E,J&&J.is,J),j&8?c(M,y.children):j&16&&F(y.children,M,null,T,A,Xo(y,E),H,D),te&&Ct(y,null,T,"created"),P(M,y,y.scopeId,H,T),J){for(const ge in J)ge!=="value"&&!Vn(ge)&&o(M,ge,null,J[ge],E,T);"value"in J&&o(M,"value",null,J.value,E),($=J.onVnodeBeforeMount)&&nt($,T,y)}te&&Ct(y,null,T,"beforeMount");const ae=xf(A,V);ae&&V.beforeEnter(M),r(M,x,k),(($=J&&J.onVnodeMounted)||ae||te)&&Qe(()=>{$&&nt($,T,y),ae&&V.enter(M),te&&Ct(y,null,T,"mounted")},A)},P=(y,x,k,T,A)=>{if(k&&h(y,k),T)for(let E=0;E<T.length;E++)h(y,T[E]);if(A){let E=A.subTree;if(x===E||$f(E.type)&&(E.ssContent===x||E.ssFallback===x)){const H=A.vnode;P(y,H,H.scopeId,H.slotScopeIds,A.parent)}}},F=(y,x,k,T,A,E,H,D,M=0)=>{for(let $=M;$<y.length;$++){const J=y[$]=D?Xt(y[$]):et(y[$]);g(null,J,x,k,T,A,E,H,D)}},G=(y,x,k,T,A,E,H)=>{const D=x.el=y.el;let{patchFlag:M,dynamicChildren:$,dirs:J}=x;M|=y.patchFlag&16;const j=y.props||he,V=x.props||he;let te;if(k&&ln(k,!1),(te=V.onVnodeBeforeUpdate)&&nt(te,k,x,y),J&&Ct(x,y,k,"beforeUpdate"),k&&ln(k,!0),(j.innerHTML&&V.innerHTML==null||j.textContent&&V.textContent==null)&&c(D,""),$?N(y.dynamicChildren,$,D,k,T,Xo(x,A),E):H||U(y,x,D,null,k,T,Xo(x,A),E,!1),M>0){if(M&16)q(D,j,V,k,A);else if(M&2&&j.class!==V.class&&o(D,"class",null,V.class,A),M&4&&o(D,"style",j.style,V.style,A),M&8){const ae=x.dynamicProps;for(let ge=0;ge<ae.length;ge++){const de=ae[ge],Ve=j[de],De=V[de];(De!==Ve||de==="value")&&o(D,de,Ve,De,A,k)}}M&1&&y.children!==x.children&&c(D,x.children)}else!H&&$==null&&q(D,j,V,k,A);((te=V.onVnodeUpdated)||J)&&Qe(()=>{te&&nt(te,k,x,y),J&&Ct(x,y,k,"updated")},T)},N=(y,x,k,T,A,E,H)=>{for(let D=0;D<x.length;D++){const M=y[D],$=x[D],J=M.el&&(M.type===_e||!Jt(M,$)||M.shapeFlag&198)?f(M.el):k;g(M,$,J,null,T,A,E,H,!0)}},q=(y,x,k,T,A)=>{if(x!==k){if(x!==he)for(const E in x)!Vn(E)&&!(E in k)&&o(y,E,x[E],null,A,T);for(const E in k){if(Vn(E))continue;const H=k[E],D=x[E];H!==D&&E!=="value"&&o(y,E,D,H,A,T)}"value"in k&&o(y,"value",x.value,k.value,A)}},W=(y,x,k,T,A,E,H,D,M)=>{const $=x.el=y?y.el:a(""),J=x.anchor=y?y.anchor:a("");let{patchFlag:j,dynamicChildren:V,slotScopeIds:te}=x;te&&(D=D?D.concat(te):te),y==null?(r($,k,T),r(J,k,T),F(x.children||[],k,J,A,E,H,D,M)):j>0&&j&64&&V&&y.dynamicChildren?(N(y.dynamicChildren,V,k,A,E,H,D),(x.key!=null||A&&x===A.subTree)&&Sf(y,x,!0)):U(y,x,k,J,A,E,H,D,M)},Q=(y,x,k,T,A,E,H,D,M)=>{x.slotScopeIds=D,y==null?x.shapeFlag&512?A.ctx.activate(x,k,T,H,M):L(x,k,T,A,E,H,M):K(y,x,M)},L=(y,x,k,T,A,E,H)=>{const D=y.component=rm(y,T,A);if(Ra(y)&&(D.ctx.renderer=Nn),sm(D,!1,H),D.asyncDep){if(A&&A.registerDep(D,O,H),!y.el){const M=D.subTree=z(lt);_(null,M,x,k),y.placeholder=M.el}}else O(D,y,x,k,A,E,H)},K=(y,x,k)=>{const T=x.component=y.component;if(zg(y,x,k))if(T.asyncDep&&!T.asyncResolved){X(T,x,k);return}else T.next=x,T.update();else x.el=y.el,T.vnode=x},O=(y,x,k,T,A,E,H)=>{const D=()=>{if(y.isMounted){let{next:j,bu:V,u:te,parent:ae,vnode:ge}=y;{const Je=kf(y);if(Je){j&&(j.el=ge.el,X(y,j,H)),Je.asyncDep.then(()=>{y.isUnmounted||D()});return}}let de=j,Ve;ln(y,!1),j?(j.el=ge.el,X(y,j,H)):j=ge,V&&_s(V),(Ve=j.props&&j.props.onVnodeBeforeUpdate)&&nt(Ve,ae,j,ge),ln(y,!0);const De=Jo(y),ct=y.subTree;y.subTree=De,g(ct,De,f(ct.el),Qr(ct),y,A,E),j.el=De.el,de===null&&vo(y,De.el),te&&Qe(te,A),(Ve=j.props&&j.props.onVnodeUpdated)&&Qe(()=>nt(Ve,ae,j,ge),A)}else{let j;const{el:V,props:te}=x,{bm:ae,m:ge,parent:de,root:Ve,type:De}=y,ct=vn(x);if(ln(y,!1),ae&&_s(ae),!ct&&(j=te&&te.onVnodeBeforeMount)&&nt(j,de,x),ln(y,!0),V&&jo){const Je=()=>{y.subTree=Jo(y),jo(V,y.subTree,y,A,null)};ct&&De.__asyncHydrate?De.__asyncHydrate(V,y,Je):Je()}else{Ve.ce&&Ve.ce._def.shadowRoot!==!1&&Ve.ce._injectChildStyle(De);const Je=y.subTree=Jo(y);g(null,Je,k,T,y,A,E),x.el=Je.el}if(ge&&Qe(ge,A),!ct&&(j=te&&te.onVnodeMounted)){const Je=x;Qe(()=>nt(j,de,Je),A)}(x.shapeFlag&256||de&&vn(de.vnode)&&de.vnode.shapeFlag&256)&&y.a&&Qe(y.a,A),y.isMounted=!0,x=k=T=null}};y.scope.on();const M=y.effect=new Ou(D);y.scope.off();const $=y.update=M.run.bind(M),J=y.job=M.runIfDirty.bind(M);J.i=y,J.id=y.uid,M.scheduler=()=>Ea(J),ln(y,!0),$()},X=(y,x,k)=>{x.component=y;const T=y.vnode.props;y.vnode=x,y.next=null,Tg(y,x.props,T,k),Ng(y,x.children,k),Bt(),wl(y),Ft()},U=(y,x,k,T,A,E,H,D,M=!1)=>{const $=y&&y.children,J=y?y.shapeFlag:0,j=x.children,{patchFlag:V,shapeFlag:te}=x;if(V>0){if(V&128){Pn($,j,k,T,A,E,H,D,M);return}else if(V&256){fe($,j,k,T,A,E,H,D,M);return}}te&8?(J&16&&dr($,A,E),j!==$&&c(k,j)):J&16?te&16?Pn($,j,k,T,A,E,H,D,M):dr($,A,E,!0):(J&8&&c(k,""),te&16&&F(j,k,T,A,E,H,D,M))},fe=(y,x,k,T,A,E,H,D,M)=>{y=y||Wn,x=x||Wn;const $=y.length,J=x.length,j=Math.min($,J);let V;for(V=0;V<j;V++){const te=x[V]=M?Xt(x[V]):et(x[V]);g(y[V],te,k,null,A,E,H,D,M)}$>J?dr(y,A,E,!0,!1,j):F(x,k,T,A,E,H,D,M,j)},Pn=(y,x,k,T,A,E,H,D,M)=>{let $=0;const J=x.length;let j=y.length-1,V=J-1;for(;$<=j&&$<=V;){const te=y[$],ae=x[$]=M?Xt(x[$]):et(x[$]);if(Jt(te,ae))g(te,ae,k,null,A,E,H,D,M);else break;$++}for(;$<=j&&$<=V;){const te=y[j],ae=x[V]=M?Xt(x[V]):et(x[V]);if(Jt(te,ae))g(te,ae,k,null,A,E,H,D,M);else break;j--,V--}if($>j){if($<=V){const te=V+1,ae=te<J?x[te].el:T;for(;$<=V;)g(null,x[$]=M?Xt(x[$]):et(x[$]),k,ae,A,E,H,D,M),$++}}else if($>V)for(;$<=j;)_t(y[$],A,E,!0),$++;else{const te=$,ae=$,ge=new Map;for($=ae;$<=V;$++){const Ye=x[$]=M?Xt(x[$]):et(x[$]);Ye.key!=null&&ge.set(Ye.key,$)}let de,Ve=0;const De=V-ae+1;let ct=!1,Je=0;const hr=new Array(De);for($=0;$<De;$++)hr[$]=0;for($=te;$<=j;$++){const Ye=y[$];if(Ve>=De){_t(Ye,A,E,!0);continue}let bt;if(Ye.key!=null)bt=ge.get(Ye.key);else for(de=ae;de<=V;de++)if(hr[de-ae]===0&&Jt(Ye,x[de])){bt=de;break}bt===void 0?_t(Ye,A,E,!0):(hr[bt-ae]=$+1,bt>=Je?Je=bt:ct=!0,g(Ye,x[bt],k,null,A,E,H,D,M),Ve++)}const hl=ct?Og(hr):Wn;for(de=hl.length-1,$=De-1;$>=0;$--){const Ye=ae+$,bt=x[Ye],pl=x[Ye+1],gl=Ye+1<J?pl.el||pl.placeholder:T;hr[$]===0?g(null,bt,k,gl,A,E,H,D,M):ct&&(de<0||$!==hl[de]?an(bt,k,gl,2):de--)}}},an=(y,x,k,T,A=null)=>{const{el:E,type:H,transition:D,children:M,shapeFlag:$}=y;if($&6){an(y.component.subTree,x,k,T);return}if($&128){y.suspense.move(x,k,T);return}if($&64){H.move(y,x,k,Nn);return}if(H===_e){r(E,x,k);for(let j=0;j<M.length;j++)an(M[j],x,k,T);r(y.anchor,x,k);return}if(H===xr){m(y,x,k);return}if(T!==2&&$&1&&D)if(T===0)D.beforeEnter(E),r(E,x,k),Qe(()=>D.enter(E),A);else{const{leave:j,delayLeave:V,afterLeave:te}=D,ae=()=>{y.ctx.isUnmounted?s(E):r(E,x,k)},ge=()=>{E._isLeaving&&E[sg](!0),j(E,()=>{ae(),te&&te()})};V?V(E,ae,ge):ge()}else r(E,x,k)},_t=(y,x,k,T=!1,A=!1)=>{const{type:E,props:H,ref:D,children:M,dynamicChildren:$,shapeFlag:J,patchFlag:j,dirs:V,cacheIndex:te}=y;if(j===-2&&(A=!1),D!=null&&(Bt(),Kn(D,null,k,y,!0),Ft()),te!=null&&(x.renderCache[te]=void 0),J&256){x.ctx.deactivate(y);return}const ae=J&1&&V,ge=!vn(y);let de;if(ge&&(de=H&&H.onVnodeBeforeUnmount)&&nt(de,x,y),J&6)rp(y.component,k,T);else{if(J&128){y.suspense.unmount(k,T);return}ae&&Ct(y,null,x,"beforeUnmount"),J&64?y.type.remove(y,x,k,Nn,T):$&&!$.hasOnce&&(E!==_e||j>0&&j&64)?dr($,x,k,!1,!0):(E===_e&&j&384||!A&&J&16)&&dr(M,x,k),T&&fl(y)}(ge&&(de=H&&H.onVnodeUnmounted)||ae)&&Qe(()=>{de&&nt(de,x,y),ae&&Ct(y,null,x,"unmounted")},k)},fl=y=>{const{type:x,el:k,anchor:T,transition:A}=y;if(x===_e){np(k,T);return}if(x===xr){v(y);return}const E=()=>{s(k),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(y.shapeFlag&1&&A&&!A.persisted){const{leave:H,delayLeave:D}=A,M=()=>H(k,E);D?D(y.el,E,M):M()}else E()},np=(y,x)=>{let k;for(;y!==x;)k=d(y),s(y),y=k;s(x)},rp=(y,x,k)=>{const{bum:T,scope:A,job:E,subTree:H,um:D,m:M,a:$}=y;Pl(M),Pl($),T&&_s(T),A.stop(),E&&(E.flags|=8,_t(H,y,x,k)),D&&Qe(D,x),Qe(()=>{y.isUnmounted=!0},x)},dr=(y,x,k,T=!1,A=!1,E=0)=>{for(let H=E;H<y.length;H++)_t(y[H],x,k,T,A)},Qr=y=>{if(y.shapeFlag&6)return Qr(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const x=d(y.anchor||y.el),k=x&&x[ng];return k?d(k):x};let Bo=!1;const dl=(y,x,k)=>{y==null?x._vnode&&_t(x._vnode,null,null,!0):g(x._vnode||null,y,x,null,null,null,k),x._vnode=y,Bo||(Bo=!0,wl(),Is(),Bo=!1)},Nn={p:g,um:_t,m:an,r:fl,mt:L,mc:F,pc:U,pbc:N,n:Qr,o:e};let Fo,jo;return t&&([Fo,jo]=t(Nn)),{render:dl,hydrate:Fo,createApp:Ag(dl,Fo)}}function Xo({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 ln({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Sf(e,t,n=!1){const r=e.children,s=t.children;if(Z(r)&&Z(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=Xt(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Sf(i,a)),a.type===Sn&&a.patchFlag!==-1&&(a.el=i.el),a.type===lt&&!a.el&&(a.el=i.el)}}function Og(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<u?o=a+1:i=a;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function kf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:kf(t)}function Pl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Mg=Symbol.for("v-scx"),Dg=()=>xn(Mg);function Af(e,t){return Oa(e,null,t)}function Zt(e,t,n){return Oa(e,t,n)}function Oa(e,t,n=he){const{immediate:r,deep:s,flush:o,once:i}=n,a=Ge({},n),l=t&&r||!t&&o!=="post";let u;if(nr){if(o==="sync"){const h=Dg();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=xt,h.resume=xt,h.pause=xt,h}}const c=Oe;a.call=(h,p,g)=>At(h,c,p,g);let f=!1;o==="post"?a.scheduler=h=>{Qe(h,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():Ea(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Xp(e,t,a);return nr&&(u?u.push(d):l&&d()),d}function Hg(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?Ef(r,e):()=>r[e]:e.bind(r,r);let o;Y(t)?o=t:(o=t.handler,n=t);const i=kn(this),a=Oa(s,o.bind(r),n);return i(),a}function Ef(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Bg=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${at(t)}Modifiers`]||e[`${on(t)}Modifiers`];function Fg(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const o=t.startsWith("update:"),i=o&&Bg(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>we(c)?c.trim():c)),i.number&&(s=n.map(lp)));let a,l=r[a=Uo(t)]||r[a=Uo(at(t))];!l&&o&&(l=r[a=Uo(on(t))]),l&&At(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,At(u,e,6,s)}}const jg=new WeakMap;function Tf(e,t,n=!1){const r=n?jg:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!Y(e)){const l=u=>{const c=Tf(u,t,!0);c&&(a=!0,Ge(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(pe(e)&&r.set(e,null),null):(Z(o)?o.forEach(l=>i[l]=null):Ge(i,o),pe(e)&&r.set(e,i),i)}function wo(e,t){return!e||!qr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,on(t))||ue(e,t))}function Jo(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ls(e);let _,w;try{if(n.shapeFlag&4){const v=s||r,C=v;_=et(u.call(C,v,c,f,h,d,p)),w=a}else{const v=t;_=et(v.length>1?v(f,{attrs:a,slots:i,emit:l}):v(f,null)),w=t.props?a:Gg(a)}}catch(v){Sr.length=0,ir(v,e,1),_=z(lt)}let m=_;if(w&&g!==!1){const v=Object.keys(w),{shapeFlag:C}=m;v.length&&C&7&&(o&&v.some(ga)&&(w=Wg(w,o)),m=tr(m,w,!1,!0))}return n.dirs&&(m=tr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Ta(m,n.transition),_=m,Ls(b),_}function Ug(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(er(s)){if(s.type!==lt||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Gg=e=>{let t;for(const n in e)(n==="class"||n==="style"||qr(n))&&((t||(t={}))[n]=e[n]);return t},Wg=(e,t)=>{const n={};for(const r in e)(!ga(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function zg(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Nl(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(i[d]!==r[d]&&!wo(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Nl(r,i,u):!0:!!i;return!1}function Nl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!wo(n,o))return!0}return!1}function vo({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 $f=e=>e.__isSuspense;let Ri=0;const Vg={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,u){if(e==null)Kg(t,n,r,s,o,i,a,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Xg(e,t,n,r,s,i,a,l,u)}},hydrate:Jg,normalize:Yg},qg=Vg;function Mr(e,t){const n=e.props&&e.props[t];Y(n)&&n()}function Kg(e,t,n,r,s,o,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Rf(e,s,r,t,f,n,o,i,a,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,i),d.deps>0?(Mr(e,"onPending"),Mr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),Xn(d,e.ssFallback)):d.resolve(!1,!0)}function Xg(e,t,n,r,s,o,i,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:b,isHydrating:_}=f;if(g)f.pendingBranch=d,Jt(g,d)?(l(g,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():b&&(_||(l(p,h,n,r,s,null,o,i,a),Xn(f,h)))):(f.pendingId=Ri++,_?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),b?(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(l(p,h,n,r,s,null,o,i,a),Xn(f,h))):p&&Jt(p,d)?(l(p,d,n,r,s,f,o,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0&&f.resolve()));else if(p&&Jt(p,d))l(p,d,n,r,s,f,o,i,a),Xn(f,d);else if(Mr(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Ri++,l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:w,pendingId:m}=f;w>0?setTimeout(()=>{f.pendingId===m&&f.fallback(h)},w):w===0&&f.fallback(h)}}function Rf(e,t,n,r,s,o,i,a,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:g,remove:b}}=u;let _;const w=Zg(e);w&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const m=e.props?cp(e.props.timeout):void 0,v=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Ri++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(S=!1,P=!1){const{vnode:F,activeBranch:G,pendingBranch:N,pendingId:q,effects:W,parentComponent:Q,container:L}=C;let K=!1;C.isHydrating?C.isHydrating=!1:S||(K=G&&N.transition&&N.transition.mode==="out-in",K&&(G.transition.afterLeave=()=>{q===C.pendingId&&(d(N,L,o===v?p(G):o,0),ki(W))}),G&&(g(G.el)===L&&(o=p(G)),h(G,Q,C,!0)),K||d(N,L,o,0)),Xn(C,N),C.pendingBranch=null,C.isInFallback=!1;let O=C.parent,X=!1;for(;O;){if(O.pendingBranch){O.effects.push(...W),X=!0;break}O=O.parent}!X&&!K&&ki(W),C.effects=[],w&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Mr(F,"onResolve")},fallback(S){if(!C.pendingBranch)return;const{vnode:P,activeBranch:F,parentComponent:G,container:N,namespace:q}=C;Mr(P,"onFallback");const W=p(F),Q=()=>{C.isInFallback&&(f(null,S,N,W,G,null,q,a,l),Xn(C,S))},L=S.transition&&S.transition.mode==="out-in";L&&(F.transition.afterLeave=Q),C.isInFallback=!0,h(F,G,null,!0),L||Q()},move(S,P,F){C.activeBranch&&d(C.activeBranch,S,P,F),C.container=S},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(S,P,F){const G=!!C.pendingBranch;G&&C.deps++;const N=S.vnode.el;S.asyncDep.catch(q=>{ir(q,S,0)}).then(q=>{if(S.isUnmounted||C.isUnmounted||C.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:W}=S;Ii(S,q),N&&(W.el=N);const Q=!N&&S.subTree.el;P(S,W,g(N||S.subTree.el),N?null:p(S.subTree),C,i,F),Q&&b(Q),vo(S,W.el),G&&--C.deps===0&&C.resolve()})},unmount(S,P){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,n,S,P),C.pendingBranch&&h(C.pendingBranch,n,S,P)}};return C}function Jg(e,t,n,r,s,o,i,a,l){const u=t.suspense=Rf(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,i);return u.deps===0&&u.resolve(!1,!0),c}function Yg(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Il(r?n.default:n),e.ssFallback=r?Il(n.fallback):z(lt)}function Il(e){let t;if(Y(e)){const n=Qn&&e._c;n&&(e._d=!1,B()),e=e(),n&&(e._d=!0,t=Ke,Nf())}return Z(e)&&(e=Ug(e)),e=et(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Pf(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):ki(e)}function Xn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,vo(r,s))}function Zg(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const _e=Symbol.for("v-fgt"),Sn=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),xr=Symbol.for("v-stc"),Sr=[];let Ke=null;function B(e=!1){Sr.push(Ke=e?null:[])}function Nf(){Sr.pop(),Ke=Sr[Sr.length-1]||null}let Qn=1;function Ds(e,t=!1){Qn+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function If(e){return e.dynamicChildren=Qn>0?Ke||Wn:null,Nf(),Qn>0&&Ke&&Ke.push(e),e}function ee(e,t,n,r,s,o){return If(I(e,t,n,r,s,o,!0))}function be(e,t,n,r,s){return If(z(e,t,n,r,s,!0))}function er(e){return e?e.__v_isVNode===!0:!1}function Jt(e,t){return e.type===t.type&&e.key===t.key}const Lf=({key:e})=>e??null,bs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ce(e)||Y(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,s=null,o=e===_e?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lf(t),ref:t&&bs(t),scopeId:yo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Me};return a?(Da(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),Qn>0&&!i&&Ke&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ke.push(l),l}const z=Qg;function Qg(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===af)&&(e=lt),er(e)){const a=tr(e,t,!0);return n&&Da(a,n),Qn>0&&!o&&Ke&&(a.shapeFlag&6?Ke[Ke.indexOf(e)]=a:Ke.push(a)),a.patchFlag=-2,a}if(cm(e)&&(e=e.__vccOpts),t){t=Ma(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=Ae(a)),pe(l)&&(ka(l)&&!Z(l)&&(l=Ge({},l)),t.style=_n(l))}const i=we(e)?1:$f(e)?128:rg(e)?64:pe(e)?4:Y(e)?2:0;return I(e,t,n,r,s,i,o,!0)}function Ma(e){return e?ka(e)||mf(e)?Ge({},e):e:null}function tr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?Co(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Lf(u),ref:t&&t.ref?n&&o?Z(o)?o.concat(bs(t)):[o,bs(t)]:bs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tr(e.ssContent),ssFallback:e.ssFallback&&tr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ta(c,l.clone(c)),c}function ie(e=" ",t=0){return z(Sn,null,e,t)}function em(e,t){const n=z(xr,null,e);return n.staticCount=t,n}function Le(e="",t=!1){return t?(B(),be(lt,null,e)):z(lt,null,e)}function et(e){return e==null||typeof e=="boolean"?z(lt):Z(e)?z(_e,null,e.slice()):er(e)?Xt(e):z(Sn,null,String(e))}function Xt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tr(e)}function Da(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Z(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Da(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!mf(t)?t._ctx=Me:s===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),r&64?(n=16,t=[ie(t)]):n=8);e.children=t,e.shapeFlag|=n}function Co(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Ae([t.class,r.class]));else if(s==="style")t.style=_n([t.style,r.style]);else if(qr(s)){const o=t[s],i=r[s];i&&o!==i&&!(Z(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function nt(e,t,n,r=null){At(e,t,7,[n,r])}const tm=df();let nm=0;function rm(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||tm,o={uid:nm++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Lu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_f(r,s),emitsOptions:Tf(r,s),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext: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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Fg.bind(null,o),e.ce&&e.ce(o),o}let Oe=null;const En=()=>Oe||Me;let Hs,Pi;{const e=ho(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Hs=t("__VUE_INSTANCE_SETTERS__",n=>Oe=n),Pi=t("__VUE_SSR_SETTERS__",n=>nr=n)}const kn=e=>{const t=Oe;return Hs(e),e.scope.on(),()=>{e.scope.off(),Hs(t)}},Ni=()=>{Oe&&Oe.scope.off(),Hs(null)};function Of(e){return e.vnode.shapeFlag&4}let nr=!1;function sm(e,t=!1,n=!1){t&&Pi(t);const{props:r,children:s}=e.vnode,o=Of(e);Eg(e,r,o,t),Pg(e,s,n||t);const i=o?om(e,t):void 0;return t&&Pi(!1),i}function om(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,_g);const{setup:r}=n;if(r){Bt();const s=e.setupContext=r.length>1?am(e):null,o=kn(e),i=Xr(r,e,0,[e.props,s]),a=ya(i);if(Ft(),o(),(a||e.sp)&&!vn(e)&&$a(e),a){if(i.then(Ni,Ni),t)return i.then(l=>{Ii(e,l)}).catch(l=>{ir(l,e,0)});e.asyncDep=i}else Ii(e,i)}else Mf(e)}function Ii(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Ju(t)),Mf(e)}function Mf(e,t,n){const r=e.type;e.render||(e.render=r.render||xt);{const s=kn(e);Bt();try{wg(e)}finally{Ft(),s()}}}const im={get(e,t){return je(e,"get",""),e[t]}};function am(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,im),slots:e.slots,emit:e.emit,expose:t}}function xo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ju(Hp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cr)return Cr[n](e)},has(t,n){return n in t||n in Cr}})):e.proxy}function lm(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function cm(e){return Y(e)&&"__vccOpts"in e}const ke=(e,t)=>qp(e,t,nr);function Bs(e,t,n){const r=(o,i,a)=>{Ds(-1);try{return z(o,i,a)}finally{Ds(1)}},s=arguments.length;return s===2?pe(t)&&!Z(t)?er(t)?r(e,null,[t]):r(e,t):r(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&er(n)&&(n=[n]),r(e,t,n))}const um="3.5.21";/**
|
|
16
|
+
* @vue/runtime-dom v3.5.21
|
|
17
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
|
+
* @license MIT
|
|
19
|
+
**/let Li;const Ll=typeof window<"u"&&window.trustedTypes;if(Ll)try{Li=Ll.createPolicy("vue",{createHTML:e=>e})}catch{}const Df=Li?e=>Li.createHTML(e):e=>e,fm="http://www.w3.org/2000/svg",dm="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,Ol=Nt&&Nt.createElement("template"),hm={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 s=t==="svg"?Nt.createElementNS(fm,e):t==="mathml"?Nt.createElementNS(dm,e):n?Nt.createElement(e,{is:n}):Nt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ol.innerHTML=Df(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Ol.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},pm=Symbol("_vtc");function gm(e,t,n){const r=e[pm];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ml=Symbol("_vod"),mm=Symbol("_vsh"),ym=Symbol(""),_m=/(?:^|;)\s*display\s*:/;function bm(e,t,n){const r=e.style,s=we(n);let o=!1;if(n&&!s){if(t)if(we(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&ws(r,a,"")}else for(const i in t)n[i]==null&&ws(r,i,"");for(const i in n)i==="display"&&(o=!0),ws(r,i,n[i])}else if(s){if(t!==n){const i=r[ym];i&&(n+=";"+i),r.cssText=n,o=_m.test(n)}}else t&&e.removeAttribute("style");Ml in e&&(e[Ml]=o?r.display:"",e[mm]&&(r.display="none"))}const Dl=/\s*!important$/;function ws(e,t,n){if(Z(n))n.forEach(r=>ws(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=wm(e,t);Dl.test(n)?e.setProperty(on(r),n.replace(Dl,""),"important"):e[r]=n}}const Hl=["Webkit","Moz","ms"],Yo={};function wm(e,t){const n=Yo[t];if(n)return n;let r=at(t);if(r!=="filter"&&r in e)return Yo[t]=r;r=fo(r);for(let s=0;s<Hl.length;s++){const o=Hl[s]+r;if(o in e)return Yo[t]=o}return t}const Bl="http://www.w3.org/1999/xlink";function Fl(e,t,n,r,s,o=gp(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Bl,t.slice(6,t.length)):e.setAttributeNS(Bl,t,n):n==null||o&&!Pu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":gt(n)?String(n):n)}function jl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Df(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Pu(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function Hf(e,t,n,r){e.addEventListener(t,n,r)}function vm(e,t,n,r){e.removeEventListener(t,n,r)}const Ul=Symbol("_vei");function Cm(e,t,n,r,s=null){const o=e[Ul]||(e[Ul]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=xm(t);if(r){const u=o[t]=Am(r,s);Hf(e,a,u,l)}else i&&(vm(e,a,i,l),o[t]=void 0)}}const Gl=/(?:Once|Passive|Capture)$/;function xm(e){let t;if(Gl.test(e)){t={};let r;for(;r=e.match(Gl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):on(e.slice(2)),t]}let Zo=0;const Sm=Promise.resolve(),km=()=>Zo||(Sm.then(()=>Zo=0),Zo=Date.now());function Am(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;At(Em(r,n.value),t,5,[r])};return n.value=e,n.attached=km(),n}function Em(e,t){if(Z(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Tm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?gm(e,r,i):t==="style"?bm(e,n,r):qr(t)?ga(t)||Cm(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$m(e,t,r,i))?(jl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Fl(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?jl(e,at(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Fl(e,t,r,i))};function $m(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Wl(t)&&Y(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Wl(t)&&we(n)?!1:t in e}const zl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>_s(t,n):t},Qo=Symbol("_assign"),Rm={created(e,{value:t},n){e.checked=Es(t,n.props.value),e[Qo]=zl(n),Hf(e,"change",()=>{e[Qo](Pm(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Qo]=zl(r),t!==n&&(e.checked=Es(t,r.props.value))}};function Pm(e){return"_value"in e?e._value:e.value}const Nm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Im=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=on(s.key);if(t.some(i=>i===o||Nm[i]===o))return e(s)}))},Bf=Ge({patchProp:Tm},hm);let kr,Vl=!1;function Lm(){return kr||(kr=Ig(Bf))}function Om(){return kr=Vl?kr:Lg(Bf),Vl=!0,kr}const Ff=((...e)=>{const t=Lm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Uf(r);if(!s)return;const o=t._component;!Y(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,jf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t}),Mm=((...e)=>{const t=Om().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Uf(r);if(s)return n(s,!0,jf(s))},t});function jf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Uf(e){return we(e)?document.querySelector(e):e}const Dm=/"(?:_|\\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*:/,Hm=/"(?: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*:/,Bm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Fm(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){jm(e);return}return t}function jm(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Fs(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Bm.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Dm.test(e)||Hm.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Fm)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Um=/#/g,Gm=/&/g,Wm=/\//g,zm=/=/g,Ha=/\+/g,Vm=/%5e/gi,qm=/%60/gi,Km=/%7c/gi,Xm=/%20/gi;function Jm(e){return encodeURI(""+e).replace(Km,"|")}function Oi(e){return Jm(typeof e=="string"?e:JSON.stringify(e)).replace(Ha,"%2B").replace(Xm,"+").replace(Um,"%23").replace(Gm,"%26").replace(qm,"`").replace(Vm,"^").replace(Wm,"%2F")}function ei(e){return Oi(e).replace(zm,"%3D")}function js(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Ym(e){return js(e.replace(Ha," "))}function Zm(e){return js(e.replace(Ha," "))}function So(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=Ym(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=Zm(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function Qm(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ei(e)}=${Oi(n)}`).join("&"):`${ei(e)}=${Oi(t)}`:ei(e)}function Gf(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Qm(t,e[t])).filter(Boolean).join("&")}const ey=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Wf=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,ty=/^([/\\]\s*){2,}[^/\\]/,ny=/^[\s\0]*(blob|data|javascript|vbscript):$/i,ry=/\/$|\/\?|\/#/,sy=/^\.?\//;function Gt(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?ey.test(e):Wf.test(e)||(t.acceptRelative?ty.test(e):!1)}function oy(e){return!!e&&ny.test(e)}function Mi(e="",t){return t?ry.test(e):e.endsWith("/")}function ko(e="",t){if(!t)return(Mi(e)?e.slice(0,-1):e)||"/";if(!Mi(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function Us(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Mi(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function iy(e=""){return e.startsWith("/")}function ql(e=""){return iy(e)?e:"/"+e}function ay(e,t){if(Vf(t)||Gt(e))return e;const n=ko(t);return e.startsWith(n)?e:Tn(n,e)}function ly(e,t){if(Vf(t))return e;const n=ko(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function zf(e,t){const n=Xf(e),r={...So(n.search),...t};return n.search=Gf(r),Jf(n)}function Vf(e){return!e||e==="/"}function cy(e){return e&&e!=="/"}function Tn(e,...t){let n=e||"";for(const r of t.filter(s=>cy(s)))if(n){const s=r.replace(sy,"");n=Us(n)+s}else n=r;return n}function qf(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Gt(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let o=r.join("/");return s>=0?n[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:n[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,n[n.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function uy(e){return fy(e,"https://")}function fy(e,t){let n=e.match(Wf);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function dy(e,t,n={}){return n.trailingSlash||(e=Us(e),t=Us(t)),n.leadingSlash||(e=ql(e),t=ql(t)),n.encoding||(e=js(e),t=js(t)),e===t}const Kf=Symbol.for("ufo:protocolRelative");function Xf(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(!Gt(e,{acceptRelative:!0}))return Kl(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=Kl(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:u,hash:c,[Kf]:!r}}function Kl(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Jf(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Kf]?(e.protocol||"")+"//":"")+s+o+t+n+r}class hy extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function py(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new hy(i,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const gy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Xl(e="GET"){return gy.has(e.toUpperCase())}function my(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 yy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),_y=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function by(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return _y.test(t)?"json":yy.has(t)||t.startsWith("text/")?"text":"blob"}function wy(e,t,n,r){const s=vy(t?.headers??e?.headers,n?.headers,r);let o;return(n?.query||n?.params||t?.params||t?.query)&&(o={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:o,params:o,headers:s}}function vy(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,o);return r}async function os(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Cy=new Set([408,409,425,429,500,502,503,504]),xy=new Set([101,204,205,304]);function Yf(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=Xl(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Cy.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),o(a.request,{...a.options,retry:c-1})}}const u=py(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const c={request:l,options:wy(l,u,e.defaults,n),response:void 0,error:void 0};c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&await os(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=ay(c.request,c.options.baseURL)),c.options.query&&(c.request=zf(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Xl(c.options.method)&&(my(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let f;if(!c.options.signal&&c.options.timeout){const h=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},c.options.timeout),c.options.signal=h.signal}try{c.response=await t(c.request,c.options)}catch(h){return c.error=h,c.options.onRequestError&&await os(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!xy.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||by(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||Fs;c.response._data=g(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[h]()}}return c.options.onResponse&&await os(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await os(c,c.options.onResponseError),await s(c)):c.response},i=async function(l,u){return(await o(l,u))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>Yf({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Gs=(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")})(),Sy=Gs.fetch?(...e)=>Gs.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),ky=Gs.Headers,Ay=Gs.AbortController,Ey=Yf({fetch:Sy,Headers:ky,AbortController:Ay}),Ty=Ey,$y=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Ba=()=>$y().app,Ry=()=>Ba().baseURL,Py=()=>Ba().buildAssetsDir,Fa=(...e)=>qf(Zf(),Py(),...e),Zf=(...e)=>{const t=Ba(),n=t.cdnURL||t.baseURL;return e.length?qf(n,...e):n};globalThis.__buildAssetsURL=Fa,globalThis.__publicAssetsURL=Zf;globalThis.$fetch||(globalThis.$fetch=Ty.create({baseURL:Ry()}));"global"in globalThis||(globalThis.global=globalThis);function Di(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Di(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const Ny={run:e=>e()},Iy=()=>Ny,Qf=typeof console.createTask<"u"?console.createTask:Iy;function Ly(e,t){const n=t.shift(),r=Qf(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Oy(e,t){const n=t.shift(),r=Qf(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function ti(e,t){for(const n of[...e])n(t)}class My{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 s=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let i=o.message;i||(i=`${s} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}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,s=(...o)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...o));return r=this.hook(t,s),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 s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Di(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=Di(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(Ly,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Oy,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&ti(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&ti(this._after,s)}):(this._after&&s&&ti(this._after,s),o)}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 ed(){return new My}function Dy(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(s){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return s?s.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},u=()=>t===i?l:void 0;Hi.add(u);try{const c=s?s.run(i,a):a();return n||(t=void 0),await c}finally{Hi.delete(u)}}}}function Hy(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Dy({...e,...r})),t[n]}}}const Ws=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Jl="__unctx__",By=Ws[Jl]||(Ws[Jl]=Hy()),Fy=(e,t={})=>By.get(e,t),Yl="__unctx_async_handlers__",Hi=Ws[Yl]||(Ws[Yl]=new Set);function td(e){const t=[];for(const s of Hi){const o=s();o&&t.push(o)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Zl={id:"__nuxt-loader"},jy={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Uy="#__nuxt",nd="nuxt-app",Ql=36e5,Gy="vite:preloadError";function rd(e=nd){return Fy(e,{asyncContext:!1})}const Wy="__nuxt_plugin";function zy(e){let t=0;const n={_id:e.id||nd||"nuxt-app",_scope:yp(),provide:void 0,versions:{get nuxt(){return"4.1.2"},get vue(){return n.vueApp.version}},payload:jn({...e.ssrContext?.payload||{},data:jn({}),state:nn({}),once:new Set,_errors:jn({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!ba()?n._scope.run(()=>ec(n,s)):ec(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:jn({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const o in s)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],s[o]);break;default:n.payload[o]=s[o]}}n.hooks=ed(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const i="$"+s;is(n,i,o),is(n.vueApp.config.globalProperties,i,o)},is(n.vueApp,"$nuxt",n),is(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Gy,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=xe;const s=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function Vy(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function qy(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 Ky(e,t){const n=new Set,r=[],s=[];let o,i=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=qy(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,d])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(i++,await a(d)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;o||=f});l.parallel?s.push(c):await c}}for(const l of t)Vy(e,l);for(const l of t)await a(l);if(await Promise.all(s),i)for(let l=0;l<i;l++)await Promise.all(s);if(o)throw e.payload.error||o}function yt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Wy]:!0,_name:t})}function ec(e,t,n){const r=()=>t();return rd(e._id).set(e),e.vueApp.runWithContext(r)}function Xy(e){let t;return bo()&&(t=En()?.appContext.app.$nuxt),t||=rd(e).tryUse(),t||null}function xe(e){const t=Xy(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function rr(e){return xe().$config}function is(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Jy(e,t){return{ctx:{table:e},matchAll:n=>od(n,e)}}function sd(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,sd(s)])):new Map(Object.entries(e[n]));return t}function Yy(e){return Jy(sd(e))}function od(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of tc(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of tc(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...od(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function tc(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function ni(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 Bi(e,t,n=".",r){if(!ni(t))return Bi(e,{},n,r);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:ni(i)&&ni(s[o])?s[o]=Bi(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function Zy(e){return(...t)=>t.reduce((n,r)=>Bi(n,r,"",e),{})}const Qy=Zy();function e_(e,t){try{return t in e}catch{return!1}}class nc extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:Fi(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=id(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function t_(e){if(typeof e=="string")return new nc(e);if(n_(e))return e;const t=new nc(e.message??e.statusMessage??"",{cause:e.cause||e});if(e_(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=Fi(e.statusCode,t.statusCode):e.status&&(t.statusCode=Fi(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;id(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 n_(e){return e?.constructor?.__h3_error__===!0}const r_=/[^\u0009\u0020-\u007E]/g;function id(e=""){return e.replace(r_,"")}function Fi(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const ad=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Et=()=>xe()?.$router,ld=()=>bo()?xn(ad,xe()._route):xe()._route;const s_=()=>{try{if(xe()._processingMiddleware)return!0}catch{return!1}return!1},cd=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?ji(e):Et().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=[];for(const[f,d]of Object.entries(u))d!==void 0&&c.push(`${f.toLowerCase()}=${d}`);return open(n,l,c.join(", ")),Promise.resolve()}const r=Gt(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!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&&oy(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=s_();if(!s&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=Xf(e);return{path:l,...u&&{query:So(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=Et(),a=xe();return s?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?i.replace(e):i.push(e)};function ji(e){return zf(e.path||"",e.query||{})+(e.hash||"")}const ud="__nuxt_error",ja=()=>Aa(xe().payload,"error"),o_=e=>{const t=Ua(e);try{const n=xe(),r=ja();n.hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},i_=async(e={})=>{const t=xe(),n=ja();t.callHook("app:error:cleared",e),e.redirect&&await Et().replace(e.redirect),n.value=void 0},a_=e=>!!e&&typeof e=="object"&&ud in e,Ua=e=>{const t=t_(e);return Object.defineProperty(t,ud,{value:!0,configurable:!1,writable:!1}),t};function l_(e){const t=u_(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,t.charCodeAt(s));return n}const c_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function u_(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let s=0;s<e.length;s++)n<<=6,n|=c_.indexOf(e[s]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const f_=-1,d_=-2,h_=-3,p_=-4,g_=-5,m_=-6;function y_(e,t){return __(JSON.parse(e),t)}function __(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(o,i=!1){if(o===f_)return;if(o===h_)return NaN;if(o===p_)return 1/0;if(o===g_)return-1/0;if(o===m_)return-0;if(i||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const a=n[o];if(!a||typeof a!="object")r[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t?.[l];if(u)return r[o]=u(s(a[1]));switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const c=new Set;r[o]=c;for(let h=1;h<a.length;h+=1)c.add(s(a[h]));break;case"Map":const f=new Map;r[o]=f;for(let h=1;h<a.length;h+=2)f.set(s(a[h]),s(a[h+1]));break;case"RegExp":r[o]=new RegExp(a[1],a[2]);break;case"Object":r[o]=Object(a[1]);break;case"BigInt":r[o]=BigInt(a[1]);break;case"null":const d=Object.create(null);r[o]=d;for(let h=1;h<a.length;h+=2)d[a[h]]=s(a[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[l],p=new h(s(a[1]));r[o]=a[2]!==void 0?p.subarray(a[2],a[3]):p;break}case"ArrayBuffer":{const h=a[1],p=l_(h);r[o]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=l.slice(9);r[o]=Temporal[h].from(a[1]);break}case"URL":{const h=new URL(a[1]);r[o]=h;break}case"URLSearchParams":{const h=new URLSearchParams(a[1]);r[o]=h;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[o]=l;for(let u=0;u<a.length;u+=1){const c=a[u];c!==d_&&(l[u]=s(c))}}else{const l={};r[o]=l;for(const u in a){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const c=a[u];l[u]=s(c)}}return r[o]}return s(0)}const b_=new Set(["link","style","script","noscript"]),w_=new Set(["title","titleTemplate","script","style","noscript"]),rc=new Set(["base","meta","link","style","script","noscript"]),v_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),C_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),x_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),S_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),k_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),A_=["name","property","http-equiv"],E_=new Set(["viewport","description","keywords","robots"]);function fd(e){const t=e.split(":");return t.length?k_.has(t[1]):!1}function Ui(e){const{props:t,tag:n}=e;if(C_.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of A_)if(t[r]!==void 0){const s=t[r],o=s.includes(":"),i=E_.has(s),l=!(o||i)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(w_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function sc(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function zs(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let s;if(t&&(s=t(n,e)),Array.isArray(s))return s.map(o=>zs(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=zs(s[i],t,i);return o}return s}function T_(e,t){const n=e==="style"?new Map:new Set;function r(s){const o=s.trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(l=>l.trim());i&&a.length&&n.set(i,a.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?n.set(s.trim(),o):r(s))}),n}function dd(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=T_(n,r);return}if(x_.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-");s==="true"||s===""?e.props[n]=o?s:!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function $_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=dd({tag:e,props:{}},n);return r.key&&b_.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),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(s=>({...r,props:{...r.props,content:s}})):r}function R_(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,o)=>{for(let i=0;i<t.length;i++)o=t[i](s,o);return o};e=n(void 0,e);const r=[];return e=zs(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push($_(s,i))}),r.flat()}const oc=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,ic={base:-10,title:10},P_={critical:-8,high:-1,low:2},ac={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},N_=/@import/,gr=e=>e===""||e===!0;function I_(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=P_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:ac;if(t.tag in ic)n=ic[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=ac.meta[o])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?gr(t.props.async)?n=s.script.async:t.props.src&&!gr(t.props.defer)&&!gr(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=s.script.sync:gr(t.props.defer)&&t.props.src&&!gr(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&N_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function lc(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function L_(e={}){const t=ed();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=new Set,i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>lc(i,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??i._entryCount++,f={_i:c,input:a,options:u},d={_poll(h=!1){i.dirty=!0,!h&&o.add(c),t.callHook("entries:updated",i)},dispose(){r.delete(c)&&i.invalidate()},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=h,r.set(c,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const d=o.values().next().value;o.delete(d);const h=r.get(d);if(h){const p={tags:R_(h.input,e.propResolvers||[]).map(g=>Object.assign(g,h.options)),entry:h};await t.callHook("entries:normalize",p),h._tags=p.tags.map((g,b)=>(g._w=I_(i,g),g._p=(h._i<<10)+b,g._d=Ui(g),g))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(oc).reduce((d,h)=>{const p=String(h._d||h._p);if(!d.has(p))return d.set(p,h);const g=d.get(p);if((h?.tagDuplicateStrategy||(S_.has(h.tag)?"merge":null)||(h.key&&h.key===g.key?"merge":null))==="merge"){const _={...g.props};Object.entries(h.props).forEach(([w,m])=>_[w]=w==="style"?new Map([...g.props.style||new Map,...m]):w==="class"?new Set([...g.props.class||new Set,...m]):m),d.set(p,{...h,props:_})}else h._p>>10===g._p>>10&&h.tag==="meta"&&fd(p)?(d.set(p,Object.assign([...Array.isArray(g)?g:[g],h],h)),l=!0):(h._w===g._w?h._p>g._p:h?._w<g?._w)&&d.set(p,h);return d},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(i._title=u?.textContent,c){const d=c?.textContent;if(i._titleTemplate=d,d){let h=typeof d=="function"?d(u?.textContent):d;typeof h=="string"&&!i.plugins.has("template-params")&&(h=h.replace("%s",u?.textContent||"")),u?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:h}):(c.tag="title",c.textContent=h)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(oc)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const d of a.tags){const{innerHTML:h,tag:p,props:g}=d;if(v_.has(p)&&!(Object.keys(g).length===0&&!d.innerHTML&&!d.textContent)&&!(p==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&h){if(g.type?.endsWith("json")){const b=typeof h=="string"?h:JSON.stringify(h);d.innerHTML=b.replace(/</g,"\\u003C")}else typeof h=="string"&&(d.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));d._d=Ui(d)}f.push(d)}}return f},invalidate(){for(const a of r.values())o.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>lc(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const O_=(e,t)=>Ce(t)?Dt(t):t,Ga="usehead";function M_(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Ga,e)}}.install}function D_(){if(bo()){const e=xn(Ga);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function H_(e,t={}){const n=t.head||D_();return n.ssr?n.push(e||{},t):B_(n,e,t)}function B_(e,t,n={}){const r=Ee(!1);let s;return Af(()=>{const i=r.value?{}:zs(t,O_);s?s.patch(i):s=e.push(i,n)}),En()&&(Na(()=>{s.dispose()}),tf(()=>{r.value=!0}),ef(()=>{r.value=!1})),s}function F_(e){const t=e||xe();return t.ssrContext?.head||t.runWithContext(()=>{if(bo()){const n=xn(Ga);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function j_(e,t={}){const n=F_(t.nuxt);return H_(e,{head:n,...t})}const U_="modulepreload",G_=function(e,t){return new URL(e,t).href},cc={},Ar=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=u(n.map(c=>{if(c=G_(c,r),c in cc)return;cc[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=i.length-1;g>=0;g--){const b=i[g];if(b.href===c&&(!f||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":U_,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((g,b)=>{p.addEventListener("load",g),p.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let vs,Cs;function W_(){return vs=$fetch(Fa(`builds/meta/${rr().app.buildId}.json`),{responseType:"json"}),vs.then(e=>{Cs=Yy(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),vs}function Ao(){return vs||W_()}async function Wa(e){const t=typeof e=="string"?e:e.path;if(await Ao(),!Cs)return console.error("[nuxt] Error creating app manifest matcher.",Cs),{};try{return Qy({},...Cs.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function uc(e,t={}){if(!await pd(e))return null;const r=await V_(e,t);return await hd(r)||null}const z_="_payload.json";async function V_(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Gt(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=rr(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await pd(e)?o:r.app.baseURL;return Tn(i,n.pathname,z_+(s?`?${s}`:""))}async function hd(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(gd));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function pd(e=ld().path){const t=xe();return e=ko(e),(await Ao()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await Wa({path:e});return!!r.prerender&&!r.redirect})}let cn=null;async function q_(){if(cn)return cn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await gd(e.textContent||""),n=e.dataset.src?await hd(e.dataset.src):void 0;return cn={...t,...n,...window.__NUXT__},cn.config?.public&&(cn.config.public=nn(cn.config.public)),cn}async function gd(e){return await y_(e,xe()._payloadRevivers)}function K_(e,t){xe()._payloadRevivers[e]=t}const X_=[["NuxtError",e=>Ua(e)],["EmptyShallowRef",e=>Rs(e==="_"?void 0:e==="0n"?BigInt(0):Fs(e))],["EmptyRef",e=>Ee(e==="_"?void 0:e==="0n"?BigInt(0):Fs(e))],["ShallowRef",e=>Rs(e)],["ShallowReactive",e=>jn(e)],["Ref",e=>Ee(e)],["Reactive",e=>nn(e)]],J_=yt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of X_)K_(r,s);Object.assign(e.payload,([t,n]=td(()=>e.runWithContext(q_)),t=await t,n(),t)),delete window.__NUXT__}});async function za(e,t={}){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 e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const o=new Map,i=new Promise(h=>{e.resolveTags().then(p=>{h(p.map(g=>{const b=o.get(g._d)||0,_={tag:g,id:(b?`${g._d}:${b}`:g._d)||sc(g),shouldRender:!0};return g._d&&fd(g._d)&&o.set(g._d,b+1),_}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const p=n[h]?.children;for(const g of p){const b=g.tagName.toLowerCase();if(!rc.has(b))continue;const _=dd({tag:b,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((w,m)=>(w[m]=g.getAttribute(m),w),{})||{}});if(_.key=g.getAttribute("data-hid")||void 0,_._d=Ui(_)||sc(_),a.elMap.has(_._d)){let w=1,m=_._d;for(;a.elMap.has(m);)m=`${_._d}:${w++}`;a.elMap.set(m,g)}else a.elMap.set(_._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,p,g){const b=`${h}:${p}`;a.sideEffects[b]=g,delete a.pendingSideEffects[b]}function u({id:h,$el:p,tag:g}){const b=g.tag.endsWith("Attrs");a.elMap.set(h,p),b||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),l(h,"el",()=>{p?.remove(),a.elMap.delete(h)}));for(const _ in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,_))continue;const w=g.props[_];if(_.startsWith("on")&&typeof w=="function"){const v=p?.dataset;if(v&&v[`${_}fired`]){const C=_.slice(0,-5);w.call(p,new Event(C.substring(2)))}p.getAttribute(`data-${_}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:p).addEventListener(_.substring(2),w.bind(p)),p.setAttribute(`data-${_}`,""));continue}const m=`attr:${_}`;if(_==="class"){if(!w)continue;for(const v of w)b&&l(h,`${m}:${v}`,()=>p.classList.remove(v)),!p.classList.contains(v)&&p.classList.add(v)}else if(_==="style"){if(!w)continue;for(const[v,C]of w)l(h,`${m}:${v}`,()=>{p.style.removeProperty(v)}),p.style.setProperty(v,C)}else w!==!1&&w!==null&&(p.getAttribute(_)!==w&&p.setAttribute(_,w===!0?"":String(w)),b&&l(h,m,()=>p.removeAttribute(_)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const h of d){const{tag:p,shouldRender:g,id:b}=h;if(g){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}h.$el=h.$el||a.elMap.get(b),h.$el?u(h):rc.has(p.tag)&&c.push(h)}}for(const h of c){const p=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),u(h),f[p]=f[p]||n.createDocumentFragment(),f[p].appendChild(h.$el)}for(const h of d)await e.hooks.callHook("dom:renderTag",h,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Y_(e={}){const t=e.domOptions?.render||za;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return L_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Z_(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function Q_(e={}){const t=Y_({domOptions:{render:Z_(()=>za(t),n=>setTimeout(n,0))},...e});return t.install=M_(t),t}const eb={disableDefaults:!0},tb=yt({name:"nuxt:head",enforce:"pre",setup(e){const t=Q_(eb);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await za(t)};t.hooks.hook("dom:beforeRender",s=>{s.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)}}}),nb=async e=>{let t,n;const r=([t,n]=td(()=>Wa({path:e.path})),t=await t,n(),t);if(r.redirect)return Gt(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},rb=[nb];function ri(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=Jf({pathname:e.path||"",search:Gf(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:So(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const sb=yt({name:"nuxt:router",enforce:"pre",setup(e){const t=ly(window.location.pathname,rr().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(f,d)=>(r[f].push(d),()=>r[f].splice(r[f].indexOf(d),1)),o=rr().app.baseURL,i=nn(ri(t));async function a(f,d){try{const h=ri(f);for(const p of r["navigate:before"]){const g=await p(h,i);if(g===!1||g instanceof Error)return;if(typeof g=="string"&&g.length)return a(g,!0)}for(const p of r["resolve:before"])await p(h,i);Object.assign(i,h),window.history[d?"replaceState":"pushState"]({},"",Tn(o,h.fullPath)),e.isHydrating||await e.runWithContext(i_);for(const p of r["navigate:after"])await p(h,i)}catch(h){for(const p of r.error)await p(h)}}const u={currentRoute:ke(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:f=>a(f,!1),replace:f=>a(f,!0),back:()=>window.history.go(-1),go:f=>window.history.go(f),forward:()=>window.history.go(1),beforeResolve:f=>s("resolve:before",f),beforeEach:f=>s("navigate:before",f),afterEach:f=>s("navigate:after",f),onError:f=>s("error",f),resolve:ri,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",mt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:d})=>{const h=()=>a(f.to,f.replace);return()=>{const p=u.resolve(f.to);return f.custom?d.default?.({href:f.to,navigate:h,route:p}):Bs("a",{href:f.to,onClick:g=>(g.preventDefault(),h())},d)}}})),window.addEventListener("popstate",f=>{const d=f.target.location;u.replace(d.href.replace(d.origin,""))}),e._route=i,e._middleware||={global:[],named:{}};const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(f,d)=>{f.meta=nn(f.meta||{}),e.isHydrating&&c&&!jt(f.meta.layout)&&(f.meta.layout=c),e._processingMiddleware=!0;{const h=new Set([...rb,...e._middleware.global]);{const p=await e.runWithContext(()=>Wa({path:f.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const b=e._middleware.named[g];if(!b)return;p.appMiddleware[g]?h.add(b):h.delete(b)}}for(const p of h){const g=await e.runWithContext(()=>p(f,d));if(g!==!0&&(g||g===!1))return g}}}),u.afterEach(()=>{delete e._processingMiddleware}),await u.replace(t),dy(i.fullPath,t)||await e.runWithContext(()=>cd(i.fullPath))}),{provide:{route:i,router:u}}}}),Gi=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),ob=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Eo=e=>{const t=xe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Gi(()=>e())}):Gi(()=>e())},ib="$s";function ab(...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 s=ib+n,o=xe(),i=Aa(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(Ce(a))return o.payload.state[s]=a,a;i.value=a}return i}async function md(e,t=Et()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>md(e,t));t._routePreloaded.add(n);for(const o of r){const i=o.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function lb(e={}){const t=e.path||window.location.pathname;let n={};try{n=Fs(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||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:xe().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const cb=(...e)=>e.find(t=>t!==void 0);function ub(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i,a){const l=a??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return as(o,l);const u="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:as(u,l)}}function s(o){const i=Et(),a=rr(),l=ke(()=>!!o.target&&o.target!=="_self"),u=ke(()=>{const b=o.to||o.href||"";return typeof b=="string"&&Gt(b,{acceptRelative:!0})}),c=rn("RouterLink"),f=c&&typeof c!="string"?c.useLink:void 0,d=ke(()=>{if(o.external)return!0;const b=o.to||o.href||"";return typeof b=="object"?!1:b===""||u.value}),h=ke(()=>{const b=o.to||o.href||"";return d.value?b:r(b,i.resolve,o.trailingSlash)}),p=d.value?void 0:f?.({...o,to:h}),g=ke(()=>{const b=o.trailingSlash??e.trailingSlash;if(!h.value||u.value||n(h.value))return h.value;if(d.value){const _=typeof h.value=="object"&&"path"in h.value?ji(h.value):h.value,w=typeof _=="object"?i.resolve(_).href:_;return as(w,b)}return typeof h.value=="object"?i.resolve(h.value)?.href??null:as(Tn(a.app.baseURL,h.value),b)});return{to:h,hasTarget:l,isAbsoluteUrl:u,isExternal:d,href:g,isActive:p?.isActive??ke(()=>h.value===i.currentRoute.value.path),isExactActive:p?.isExactActive??ke(()=>h.value===i.currentRoute.value.path),route:p?.route??ke(()=>i.resolve(h.value)),async navigate(b){await cd(g.value,{replace:o.replace,external:d.value||l.value})}}}return mt({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},prefetchOn:{type:[String,Object],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},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const a=Et(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=s(o),p=Rs(!1),g=Ee(null),b=m=>{g.value=o.custom?m?.$el?.nextElementSibling:m?.$el};function _(m){return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:o.prefetchOn?.[m]??e.prefetchOn?.[m])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!pb()}async function w(m=xe()){if(p.value)return;p.value=!0;const v=typeof l.value=="string"?l.value:f.value?ji(l.value):a.resolve(l.value).fullPath,C=f.value?new URL(v,window.location.href).href:v;await Promise.all([m.hooks.callHook("link:prefetch",C).catch(()=>{}),!f.value&&!d.value&&md(l.value,a).catch(()=>{})])}if(_("visibility")){const m=xe();let v,C=null;Pa(()=>{const S=db();Eo(()=>{v=Gi(()=>{g?.value?.tagName&&(C=S.observe(g.value,async()=>{C?.(),C=null,await w(m)}))})})}),Na(()=>{v&&ob(v),C?.(),C=null})}return()=>{if(!f.value&&!d.value&&!n(l.value)){const C={ref:b,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||(_("interaction")&&(C.onPointerenter=w.bind(null,void 0),C.onFocus=w.bind(null,void 0)),p.value&&(C.class=o.prefetchedClass||e.prefetchedClass),C.rel=o.rel||void 0),Bs(rn("RouterLink"),C,i.default)}const m=o.target||null,v=cb(o.noRel?"":o.rel,e.externalRelAttribute,h.value||d.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:u.value,navigate:c,prefetch:w,get route(){if(!u.value)return;const C=new URL(u.value,window.location.href);return{path:C.pathname,fullPath:C.pathname,get query(){return So(C.search)},hash:C.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:v,target:m,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Bs("a",{ref:g,href:u.value||null,rel:v,target:m,onClick:C=>{if(!(f.value||d.value))return C.preventDefault(),o.replace?a.replace(u.value):a.push(u.value)}},i.default?.())}}})}const fb=ub(jy);function as(e,t){const n=t==="append"?Us:ko;return Gt(e)&&!e.startsWith("http")?e:n(e,!0)}function db(){const e=xe();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(o,i),t.observe(o),()=>{n.delete(o),t?.unobserve(o),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const hb=/2g/;function pb(){const e=navigator.connection;return!!(e&&(e.saveData||hb.test(e.effectiveType)))}function gb(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!Gt(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=uy(String(e.url)));const t=Object.keys(e).sort((r,s)=>r.localeCompare(s)),n={};for(const r of t)n[r]=e[r];return n}function mb(e){const n=[];function r(o){if(!o||typeof o!="object"||Object.keys(o).length===0)return()=>{};o._context;const i={};for(const l in o){const u=o[l];typeof u<"u"&&u!==""&&(i[l]=u)}let a;return Object.keys(i).filter(l=>!l.startsWith("_")).length>0&&(a=n.push(i)),()=>{typeof a<"u"&&n.splice(a-1,1)}}function s(o){const i={};o?.debug&&(i._context={}),i._priority={};for(const a in n.sort((l,u)=>(l._priority||0)-(u._priority||0)))for(const l in n[a]){const u=l,c=o?.resolveRefs?Dt(n[a][l]):n[a][l];!l.startsWith("_")&&typeof c<"u"&&c!==""&&(i[l]=c,typeof n[a]._priority<"u"&&n[a]._priority!==-1&&(i._priority[u]=n[a]._priority),o?.debug&&(i._context[u]=n[a]._context?.[u]||n[a]._context||"anonymous"))}return o?.skipNormalize?i:gb(i)}return{stack:n,push:r,get:s}}const yb=yt({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=mb(),n=ab("site-config");{const r=n.value||window.__NUXT_SITE_CONFIG__||{};for(const s in r)s[0]!=="_"&&t.push({[s]:r[s],_priority:r._priority?.[s]||-1})}return{provide:{nuxtSiteConfig:t}}}}),_b=yt({name:"nuxt:payload",setup(e){const t=new Set;Et().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await uc(n.path);if(s){for(const o of t)delete e.static.data[o];for(const o in s.data)o in e.static.data||t.add(o),e.static.data[o]=s.data[o]}}),Eo(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await uc(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(Ao,1e3)})}}),bb=yt(()=>{const e=Et();Eo(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),wb=yt(e=>{let t;async function n(){let r;try{r=await Ao()}catch(s){const o=s;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,Ql);try{const s=await $fetch(Fa("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}Eo(()=>{t=setTimeout(n,Ql)})}),vb=yt({name:"nuxt:chunk-reload",setup(e){const t=Et(),n=rr(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const i=Tn(n.app.baseURL,o.fullPath);lb({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Cb=yt({name:"nuxt:global-components"}),xb=yt(()=>{}),Sb=["top","right","bottom","left"],fc=["start","end"],dc=Sb.reduce((e,t)=>e.concat(t,t+"-"+fc[0],t+"-"+fc[1]),[]),Dr=Math.min,hn=Math.max,kb={left:"right",right:"left",bottom:"top",top:"bottom"},Ab={start:"end",end:"start"};function Wi(e,t,n){return hn(e,Dr(t,n))}function $n(e,t){return typeof e=="function"?e(t):e}function Tt(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function yd(e){return e==="x"?"y":"x"}function Va(e){return e==="y"?"height":"width"}const Eb=new Set(["top","bottom"]);function Ot(e){return Eb.has(Tt(e))?"y":"x"}function qa(e){return yd(Ot(e))}function _d(e,t,n){n===void 0&&(n=!1);const r=ht(e),s=qa(e),o=Va(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=qs(i)),[i,qs(i)]}function Tb(e){const t=qs(e);return[Vs(e),t,Vs(t)]}function Vs(e){return e.replace(/start|end/g,t=>Ab[t])}const hc=["left","right"],pc=["right","left"],$b=["top","bottom"],Rb=["bottom","top"];function Pb(e,t,n){switch(e){case"top":case"bottom":return n?t?pc:hc:t?hc:pc;case"left":case"right":return t?$b:Rb;default:return[]}}function Nb(e,t,n,r){const s=ht(e);let o=Pb(Tt(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Vs)))),o}function qs(e){return e.replace(/left|right|bottom|top/g,t=>kb[t])}function Ib(e){return{top:0,right:0,bottom:0,left:0,...e}}function bd(e){return typeof e!="number"?Ib(e):{top:e,right:e,bottom:e,left:e}}function Er(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function gc(e,t,n){let{reference:r,floating:s}=e;const o=Ot(t),i=qa(t),a=Va(i),l=Tt(t),u=o==="y",c=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,d=r[a]/2-s[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-s.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-s.width,y:f};break;default:h={x:r.x,y:r.y}}switch(ht(t)){case"start":h[i]-=d*(n&&u?-1:1);break;case"end":h[i]+=d*(n&&u?-1:1);break}return h}const Lb=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=gc(u,r,l),d=r,h={},p=0;for(let g=0;g<a.length;g++){const{name:b,fn:_}=a[g],{x:w,y:m,data:v,reset:C}=await _({x:c,y:f,initialPlacement:r,placement:d,strategy:s,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});c=w??c,f=m??f,h={...h,[b]:{...h[b],...v}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:f}=gc(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:s,middlewareData:h}};async function To(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=$n(t,e),p=bd(h),b=a[d?f==="floating"?"reference":"floating":f],_=Er(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),w=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),v=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},C=Er(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:m,strategy:l}):w);return{top:(_.top-C.top+p.top)/v.y,bottom:(C.bottom-_.bottom+p.bottom)/v.y,left:(_.left-C.left+p.left)/v.x,right:(C.right-_.right+p.right)/v.x}}const Ob=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=$n(e,t)||{};if(u==null)return{};const f=bd(c),d={x:n,y:r},h=qa(s),p=Va(h),g=await i.getDimensions(u),b=h==="y",_=b?"top":"left",w=b?"bottom":"right",m=b?"clientHeight":"clientWidth",v=o.reference[p]+o.reference[h]-d[h]-o.floating[p],C=d[h]-o.reference[h],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let P=S?S[m]:0;(!P||!await(i.isElement==null?void 0:i.isElement(S)))&&(P=a.floating[m]||o.floating[p]);const F=v/2-C/2,G=P/2-g[p]/2-1,N=Dr(f[_],G),q=Dr(f[w],G),W=N,Q=P-g[p]-q,L=P/2-g[p]/2+F,K=Wi(W,L,Q),O=!l.arrow&&ht(s)!=null&&L!==K&&o.reference[p]/2-(L<W?N:q)-g[p]/2<0,X=O?L<W?L-W:L-Q:0;return{[h]:d[h]+X,data:{[h]:K,centerOffset:L-K-X,...O&&{alignmentOffset:X}},reset:O}}});function Mb(e,t,n){return(e?[...n.filter(s=>ht(s)===e),...n.filter(s=>ht(s)!==e)]:n.filter(s=>Tt(s)===s)).filter(s=>e?ht(s)===e||(t?Vs(s)!==s:!1):!0)}const Db=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,s;const{rects:o,middlewareData:i,placement:a,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:d=dc,autoAlignment:h=!0,...p}=$n(e,t),g=f!==void 0||d===dc?Mb(f||null,h,d):d,b=await To(t,p),_=((n=i.autoPlacement)==null?void 0:n.index)||0,w=g[_];if(w==null)return{};const m=_d(w,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==w)return{reset:{placement:g[0]}};const v=[b[Tt(w)],b[m[0]],b[m[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:w,overflows:v}],S=g[_+1];if(S)return{data:{index:_+1,overflows:C},reset:{placement:S}};const P=C.map(N=>{const q=ht(N.placement);return[N.placement,q&&c?N.overflows.slice(0,2).reduce((W,Q)=>W+Q,0):N.overflows[0],N.overflows]}).sort((N,q)=>N[1]-q[1]),G=((s=P.filter(N=>N[2].slice(0,ht(N[0])?2:3).every(q=>q<=0))[0])==null?void 0:s[0])||P[0][0];return G!==a?{data:{index:_+1,overflows:C},reset:{placement:G}}:{}}}},Hb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...b}=$n(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=Tt(s),w=Ot(a),m=Tt(a)===a,v=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=d||(m||!g?[qs(a)]:Tb(a)),S=p!=="none";!d&&S&&C.push(...Nb(a,g,p,v));const P=[a,...C],F=await To(t,b),G=[];let N=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&G.push(F[_]),f){const L=_d(s,i,v);G.push(F[L[0]],F[L[1]])}if(N=[...N,{placement:s,overflows:G}],!G.every(L=>L<=0)){var q,W;const L=(((q=o.flip)==null?void 0:q.index)||0)+1,K=P[L];if(K&&(!(f==="alignment"?w!==Ot(K):!1)||N.every(U=>Ot(U.placement)===w?U.overflows[0]>0:!0)))return{data:{index:L,overflows:N},reset:{placement:K}};let O=(W=N.filter(X=>X.overflows[0]<=0).sort((X,U)=>X.overflows[1]-U.overflows[1])[0])==null?void 0:W.placement;if(!O)switch(h){case"bestFit":{var Q;const X=(Q=N.filter(U=>{if(S){const fe=Ot(U.placement);return fe===w||fe==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(fe=>fe>0).reduce((fe,Pn)=>fe+Pn,0)]).sort((U,fe)=>U[1]-fe[1])[0])==null?void 0:Q[0];X&&(O=X);break}case"initialPlacement":O=a;break}if(s!==O)return{reset:{placement:O}}}return{}}}},Bb=new Set(["left","top"]);async function Fb(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Tt(n),a=ht(n),l=Ot(n)==="y",u=Bb.has(i)?-1:1,c=o&&l?-1:1,f=$n(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const jb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await Fb(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},Ub=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:_,y:w}=b;return{x:_,y:w}}},...l}=$n(e,t),u={x:n,y:r},c=await To(t,l),f=Ot(Tt(s)),d=yd(f);let h=u[d],p=u[f];if(o){const b=d==="y"?"top":"left",_=d==="y"?"bottom":"right",w=h+c[b],m=h-c[_];h=Wi(w,h,m)}if(i){const b=f==="y"?"top":"left",_=f==="y"?"bottom":"right",w=p+c[b],m=p-c[_];p=Wi(w,p,m)}const g=a.fn({...t,[d]:h,[f]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:o,[f]:i}}}}}},Gb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...u}=$n(e,t),c=await To(t,u),f=Tt(s),d=ht(s),h=Ot(s)==="y",{width:p,height:g}=o.floating;let b,_;f==="top"||f==="bottom"?(b=f,_=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,b=d==="end"?"top":"bottom");const w=g-c.top-c.bottom,m=p-c.left-c.right,v=Dr(g-c[b],w),C=Dr(p-c[_],m),S=!t.middlewareData.shift;let P=v,F=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),S&&!d){const N=hn(c.left,0),q=hn(c.right,0),W=hn(c.top,0),Q=hn(c.bottom,0);h?F=p-2*(N!==0||q!==0?N+q:hn(c.left,c.right)):P=g-2*(W!==0||Q!==0?W+Q:hn(c.top,c.bottom))}await l({...t,availableWidth:F,availableHeight:P});const G=await i.getDimensions(a.floating);return p!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function st(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function St(e){return st(e).getComputedStyle(e)}const mc=Math.min,Tr=Math.max,Ks=Math.round;function wd(e){const t=St(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=Ks(n)!==s||Ks(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function sn(e){return Cd(e)?(e.nodeName||"").toLowerCase():""}let ls;function vd(){if(ls)return ls;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ls=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),ls):navigator.userAgent}function kt(e){return e instanceof st(e).HTMLElement}function Qt(e){return e instanceof st(e).Element}function Cd(e){return e instanceof st(e).Node}function yc(e){return typeof ShadowRoot>"u"?!1:e instanceof st(e).ShadowRoot||e instanceof ShadowRoot}function $o(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=St(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Wb(e){return["table","td","th"].includes(sn(e))}function zi(e){const t=/firefox/i.test(vd()),n=St(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((s=>n.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const o=n.contain;return o!=null&&o.includes(s)}))}function xd(){return!/^((?!chrome|android).)*safari/i.test(vd())}function Ka(e){return["html","body","#document"].includes(sn(e))}function Sd(e){return Qt(e)?e:e.contextElement}const kd={x:1,y:1};function Jn(e){const t=Sd(e);if(!kt(t))return kd;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=wd(t);let i=(o?Ks(n.width):n.width)/r,a=(o?Ks(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function Hr(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Sd(e);let l=kd;t&&(r?Qt(r)&&(l=Jn(r)):l=Jn(e));const u=a?st(a):window,c=!xd()&&n;let f=(i.left+(c&&((s=u.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,d=(i.top+(c&&((o=u.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,h=i.width/l.x,p=i.height/l.y;if(a){const g=st(a),b=r&&Qt(r)?st(r):r;let _=g.frameElement;for(;_&&r&&b!==g;){const w=Jn(_),m=_.getBoundingClientRect(),v=getComputedStyle(_);m.x+=(_.clientLeft+parseFloat(v.paddingLeft))*w.x,m.y+=(_.clientTop+parseFloat(v.paddingTop))*w.y,f*=w.x,d*=w.y,h*=w.x,p*=w.y,f+=m.x,d+=m.y,_=st(_).frameElement}}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function en(e){return((Cd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ro(e){return Qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ad(e){return Hr(en(e)).left+Ro(e).scrollLeft}function Br(e){if(sn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yc(e)&&e.host||en(e);return yc(t)?t.host:t}function Ed(e){const t=Br(e);return Ka(t)?t.ownerDocument.body:kt(t)&&$o(t)?t:Ed(t)}function Xs(e,t){var n;t===void 0&&(t=[]);const r=Ed(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=st(r);return s?t.concat(o,o.visualViewport||[],$o(r)?r:[]):t.concat(r,Xs(r))}function _c(e,t,n){return t==="viewport"?Er((function(r,s){const o=st(r),i=en(r),a=o.visualViewport;let l=i.clientWidth,u=i.clientHeight,c=0,f=0;if(a){l=a.width,u=a.height;const d=xd();(d||!d&&s==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:l,height:u,x:c,y:f}})(e,n)):Qt(t)?Er((function(r,s){const o=Hr(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=kt(r)?Jn(r):{x:1,y:1};return{width:r.clientWidth*l.x,height:r.clientHeight*l.y,x:a*l.x,y:i*l.y}})(t,n)):Er((function(r){const s=en(r),o=Ro(r),i=r.ownerDocument.body,a=Tr(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=Tr(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let u=-o.scrollLeft+Ad(r);const c=-o.scrollTop;return St(i).direction==="rtl"&&(u+=Tr(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:c}})(en(e)))}function bc(e){return kt(e)&&St(e).position!=="fixed"?e.offsetParent:null}function wc(e){const t=st(e);let n=bc(e);for(;n&&Wb(n)&&St(n).position==="static";)n=bc(n);return n&&(sn(n)==="html"||sn(n)==="body"&&St(n).position==="static"&&!zi(n))?t:n||(function(r){let s=Br(r);for(;kt(s)&&!Ka(s);){if(zi(s))return s;s=Br(s)}return null})(e)||t}function zb(e,t,n){const r=kt(t),s=en(t),o=Hr(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((sn(t)!=="body"||$o(s))&&(i=Ro(t)),kt(t)){const l=Hr(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Ad(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const Vb={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=n==="clippingAncestors"?(function(u,c){const f=c.get(u);if(f)return f;let d=Xs(u).filter((b=>Qt(b)&&sn(b)!=="body")),h=null;const p=St(u).position==="fixed";let g=p?Br(u):u;for(;Qt(g)&&!Ka(g);){const b=St(g),_=zi(g);(p?_||h:_||b.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=b:d=d.filter((w=>w!==g)),g=Br(g)}return c.set(u,d),d})(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce(((u,c)=>{const f=_c(t,c,s);return u.top=Tr(f.top,u.top),u.right=mc(f.right,u.right),u.bottom=mc(f.bottom,u.bottom),u.left=Tr(f.left,u.left),u}),_c(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=kt(n),o=en(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((s||!s&&r!=="fixed")&&((sn(n)!=="body"||$o(o))&&(i=Ro(n)),kt(n))){const u=Hr(n);a=Jn(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-i.scrollLeft*a.x+l.x,y:t.y*a.y-i.scrollTop*a.y+l.y}},isElement:Qt,getDimensions:function(e){return kt(e)?wd(e):e.getBoundingClientRect()},getOffsetParent:wc,getDocumentElement:en,getScale:Jn,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||wc,o=this.getDimensions;return{reference:zb(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>St(e).direction==="rtl"},qb=(e,t,n)=>{const r=new Map,s={platform:Vb,...n},o={...s.platform,_c:r};return Lb(e,t,{...s,platform:o})};function Td(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Td(e[n],t[n]):e[n]=t[n])}const pt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Fr(e,t){let n=pt.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=pt.themes[n.$extend]||{}:(n=null,r=pt[t]):n=null;while(n);return r}function Kb(e){const t=[e];let n=pt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=pt.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function vc(e){const t=[e];let n=pt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=pt.themes[n.$extend]||{}):n=null;while(n);return t}let sr=!1;if(typeof window<"u"){sr=!1;try{const e=Object.defineProperty({},"passive",{get(){sr=!0}});window.addEventListener("test",null,e)}catch{}}let $d=!1;typeof window<"u"&&typeof navigator<"u"&&($d=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Rd=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Cc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},xc={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Sc(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function si(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const ut=[];let un=null;const kc={};function Ac(e){let t=kc[e];return t||(t=kc[e]=[]),t}let Vi=function(){};typeof window<"u"&&(Vi=window.Element);function le(e){return function(t){return Fr(t.theme,e)}}const oi="__floating-vue__popper",Pd=()=>mt({name:"VPopper",provide(){return{[oi]:{parentPopper:this}}},inject:{[oi]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:le("disabled")},positioningDisabled:{type:Boolean,default:le("positioningDisabled")},placement:{type:String,default:le("placement"),validator:e=>Rd.includes(e)},delay:{type:[String,Number,Object],default:le("delay")},distance:{type:[Number,String],default:le("distance")},skidding:{type:[Number,String],default:le("skidding")},triggers:{type:Array,default:le("triggers")},showTriggers:{type:[Array,Function],default:le("showTriggers")},hideTriggers:{type:[Array,Function],default:le("hideTriggers")},popperTriggers:{type:Array,default:le("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:le("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:le("popperHideTriggers")},container:{type:[String,Object,Vi,Boolean],default:le("container")},boundary:{type:[String,Vi],default:le("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:le("strategy")},autoHide:{type:[Boolean,Function],default:le("autoHide")},handleResize:{type:Boolean,default:le("handleResize")},instantMove:{type:Boolean,default:le("instantMove")},eagerMount:{type:Boolean,default:le("eagerMount")},popperClass:{type:[String,Array,Object],default:le("popperClass")},computeTransformOrigin:{type:Boolean,default:le("computeTransformOrigin")},autoMinSize:{type:Boolean,default:le("autoMinSize")},autoSize:{type:[Boolean,String],default:le("autoSize")},autoMaxSize:{type:Boolean,default:le("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:le("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:le("preventOverflow")},overflowPadding:{type:[Number,String],default:le("overflowPadding")},arrowPadding:{type:[Number,String],default:le("arrowPadding")},arrowOverflow:{type:Boolean,default:le("arrowOverflow")},flip:{type:Boolean,default:le("flip")},shift:{type:Boolean,default:le("shift")},shiftCrossAxis:{type:Boolean,default:le("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:le("noAutoFocus")},disposeTimeout:{type:Number,default:le("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[oi])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r,s;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(jb({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Db({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Ub({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Hb({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Ob({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:s,middlewareData:o})=>{let i;const{centerOffset:a}=o.arrow;return r.startsWith("top")||r.startsWith("bottom")?i=Math.abs(a)>s.reference.width/2:i=Math.abs(a)>s.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:o,middlewareData:i})=>{var a;if((a=i.autoSize)!=null&&a.skip)return{};let l,u;return o.startsWith("top")||o.startsWith("bottom")?l=s.reference.width:u=s.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Gb({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:s})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const n=await qb(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),un&&this.instantMove&&un.instantMove&&un!==this.parentPopper){un.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(un=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await si(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Xs(this.$_referenceNode),...Xs(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(r.left+n.offsetLeft),o=t.y+t.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${s}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<ut.length;n++)t=ut[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}ut.push(this),document.body.classList.add("v-popper--some-open");for(const t of vc(this.theme))Ac(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await si(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Sc(ut,this),ut.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of vc(this.theme)){const r=Ac(n);Sc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}un===this&&(un=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await si(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Cc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Cc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,xc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],xc,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(r=>r.addEventListener(t,n,sr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,s){let o=n;r!=null&&(o=typeof r=="function"?r(o):r),o.forEach(i=>{const a=t[i];a&&this.$_registerEventListeners(e,a,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:r,eventType:s,handler:o}=n;!e||e===s?r.forEach(i=>i.removeEventListener(s,o)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if($r>=e.left&&$r<=e.right&&Rr>=e.top&&Rr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=$r-Wt,r=Rr-zt,s=t.left+t.width/2-Wt+(t.top+t.height/2)-zt+t.width+t.height,o=Wt+n*s,i=zt+r*s;return cs(Wt,zt,o,i,t.left,t.top,t.left,t.bottom)||cs(Wt,zt,o,i,t.left,t.top,t.right,t.top)||cs(Wt,zt,o,i,t.right,t.top,t.right,t.bottom)||cs(Wt,zt,o,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if($d){const e=sr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Ec(t,!0),e),document.addEventListener("touchend",t=>Tc(t,!0),e)}else window.addEventListener("mousedown",e=>Ec(e,!1),!0),window.addEventListener("click",e=>Tc(e,!1),!0);window.addEventListener("resize",Jb)}function Ec(e,t){if(pt.autoHideOnMousedown)Nd(e,t);else for(let n=0;n<ut.length;n++){const r=ut[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Tc(e,t){pt.autoHideOnMousedown||Nd(e,t)}function Nd(e,t){const n={};for(let r=ut.length-1;r>=0;r--){const s=ut[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&$c(s,o,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let a=s.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let i=s.parentPopper;for(;i&&$c(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function $c(e,t,n){return n.closeAllPopover||n.closePopover&&t||Xb(e,n)&&!t}function Xb(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Jb(){for(let e=0;e<ut.length;e++)ut[e].$_computePosition()}let Wt=0,zt=0,$r=0,Rr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Wt=$r,zt=Rr,$r=e.clientX,Rr=e.clientY},sr?{passive:!0}:void 0);function cs(e,t,n,r,s,o,i,a){const l=((i-s)*(t-o)-(a-o)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t)),u=((n-e)*(t-o)-(r-t)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t));return l>=0&&l<=1&&u>=0&&u<=1}const Yb={extends:Pd()},Po=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function Zb(e,t,n,r,s,o){return B(),ee("div",{ref:"reference",class:Ae(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[qe(e.$slots,"default",Ru(Ma(e.slotData)))],2)}const Qb=Po(Yb,[["render",Zb]]);function ew(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let xs;function qi(){qi.init||(qi.init=!0,xs=ew()!==-1)}var No={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){qi(),ar(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",xs&&this.$el.appendChild(e),e.data="about:blank",xs||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!xs&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const tw=eg();Zp("data-v-b329ee4c");const nw={class:"resize-observer",tabindex:"-1"};Qp();const rw=tw((e,t,n,r,s,o)=>(B(),be("div",nw)));No.render=rw;No.__scopeId="data-v-b329ee4c";No.__file="src/components/ResizeObserver.vue";const Id=(e="theme")=>({computed:{themeClass(){return Kb(this[e])}}}),sw=mt({name:"VPopperContent",components:{ResizeObserver:No},mixins:[Id()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),ow=["id","aria-hidden","tabindex","data-popper-placement"],iw={ref:"inner",class:"v-popper__inner"},aw=I("div",{class:"v-popper__arrow-outer"},null,-1),lw=I("div",{class:"v-popper__arrow-inner"},null,-1),cw=[aw,lw];function uw(e,t,n,r,s,o){const i=rn("ResizeObserver");return B(),ee("div",{id:e.popperId,ref:"popover",class:Ae(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:_n(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Im(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[I("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),I("div",{class:"v-popper__wrapper",style:_n(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[I("div",iw,[e.mounted?(B(),ee(_e,{key:0},[I("div",null,[qe(e.$slots,"default")]),e.handleResize?(B(),be(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Le("",!0)],64)):Le("",!0)],512),I("div",{ref:"arrow",class:"v-popper__arrow-container",style:_n(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},cw,4)],4)],46,ow)}const Ld=Po(sw,[["render",uw]]),Od={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Ki=function(){};typeof window<"u"&&(Ki=window.Element);const fw=mt({name:"VPopperWrapper",components:{Popper:Qb,PopperContent:Ld},mixins:[Od,Id("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Ki,Boolean],default:void 0},boundary:{type:[String,Ki],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function dw(e,t,n,r,s,o){const i=rn("PopperContent"),a=rn("Popper");return B(),be(a,Co({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:se(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,show:h,hide:p,handleResize:g,onResize:b,classes:_,result:w})=>[qe(e.$slots,"default",{shown:u,show:h,hide:p}),z(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:c,"skip-transition":f,"auto-hide":d,"handle-resize":g,classes:_,result:w,onHide:p,onResize:b},{default:se(()=>[qe(e.$slots,"popper",{shown:u,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Xa=Po(fw,[["render",dw]]),hw={...Xa,name:"VDropdown",vPopperTheme:"dropdown"},pw={...Xa,name:"VMenu",vPopperTheme:"menu"},gw={...Xa,name:"VTooltip",vPopperTheme:"tooltip"},mw=mt({name:"VTooltipDirective",components:{Popper:Pd(),PopperContent:Ld},mixins:[Od],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Fr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Fr(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(r=>this.onResult(t,r)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),yw=["innerHTML"],_w=["textContent"];function bw(e,t,n,r,s,o){const i=rn("PopperContent"),a=rn("Popper");return B(),be(a,Co({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:se(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,hide:h,handleResize:p,onResize:g,classes:b,result:_})=>[z(i,{ref:"popperContent",class:Ae({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:u,mounted:c,"skip-transition":f,"auto-hide":d,"handle-resize":p,classes:b,result:_,onHide:h,onResize:g},{default:se(()=>[e.html?(B(),ee("div",{key:0,innerHTML:e.finalContent},null,8,yw)):(B(),ee("div",{key:1,textContent:Ne(e.finalContent)},null,8,_w))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const ww=Po(mw,[["render",bw]]),Md="v-popper--has-tooltip";function vw(e,t){let n=e.placement;if(!n&&t)for(const r of Rd)t[r]&&(n=r);return n||(n=Fr(e.theme||"tooltip","placement")),n}function Dd(e,t,n){let r;const s=typeof t;return s==="string"?r={content:t}:t&&s==="object"?r=t:r={content:!1},r.placement=vw(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let ii,jr,Cw=0;function xw(){if(ii)return;jr=Ee([]),ii=Ff({name:"VTooltipDirectiveApp",setup(){return{directives:jr}},render(){return this.directives.map(t=>Bs(ww,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ii.mount(e)}function Sw(e,t,n){xw();const r=Ee(Dd(e,t,n)),s=Ee(!1),o={id:Cw++,options:r,shown:s};return jr.value.push(o),e.classList&&e.classList.add(Md),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Hd(e){if(e.$_popper){const t=jr.value.indexOf(e.$_popper.item);t!==-1&&jr.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Md)}function Rc(e,{value:t,modifiers:n}){const r=Dd(e,t,n);if(!r.content||Fr(r.theme||"tooltip","disabled"))Hd(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=Sw(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const kw={beforeMount:Rc,updated:Rc,beforeUnmount(e){Hd(e)}};function Pc(e){e.addEventListener("mousedown",Js),e.addEventListener("click",Js),e.addEventListener("touchstart",Bd,sr?{passive:!0}:!1)}function Nc(e){e.removeEventListener("mousedown",Js),e.removeEventListener("click",Js),e.removeEventListener("touchstart",Bd),e.removeEventListener("touchend",Fd),e.removeEventListener("touchcancel",jd)}function Js(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Bd(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Fd),t.addEventListener("touchcancel",jd)}}function Fd(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function jd(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const Aw={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Pc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?Pc(e):Nc(e))},beforeUnmount(e){Nc(e)}};function Ew(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Td(pt,t),e.directive("tooltip",kw),e.directive("close-popper",Aw),e.component("VTooltip",gw),e.component("VDropdown",hw),e.component("VMenu",pw))}const Tw={version:"5.2.2",install:Ew,options:pt},$w=yt(e=>{e.vueApp.use(Tw)}),Rw=[J_,tb,sb,yb,_b,bb,wb,vb,Cb,xb,$w],Ja={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(B(),ee("div",{class:Ae(["n-icon",e.icon])},null,2))}},Io=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Pw={},Nw={class:"n-badge"};function Iw(e,t){return B(),ee("span",Nw,[qe(e.$slots,"default")])}const Ud=Object.assign(Io(Pw,[["render",Iw]]),{__name:"NBadge"}),Lw={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},Gd={__name:"NLink",props:{to:{type:String,required:!1},href:{type:String,required:!1},target:{type:String,required:!1},underline:{type:Boolean,required:!1}},setup(e){const t=e,n=ke(()=>t.href||t.to);return(r,s)=>{const o=fb;return B(),be(o,Co(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:se(()=>[qe(r.$slots,"default"),n.value&&e.target==="_blank"?(B(),ee("div",Lw)):Le("",!0)]),_:3},16,["class"])}}},Ow={},Mw={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dw(e,t){return B(),ee("svg",Mw,[...t[0]||(t[0]=[em('<path d="M377 200C379.16 200 381 198.209 381 196V103C381 103 386 112 395 127L434 194C435.785 197.74 439.744 200 443 200H470V50H443C441.202 50 439 51.4941 439 54V148L421 116L385 55C383.248 51.8912 379.479 50 376 50H350V200H377Z" fill="currentColor"></path><path d="M726 92H739C742.314 92 745 89.3137 745 86V60H773V92H800V116H773V159C773 169.5 778.057 174 787 174H800V200H783C759.948 200 745 185.071 745 160V116H726V92Z" fill="currentColor"></path><path d="M591 92V154C591 168.004 585.742 179.809 578 188C570.258 196.191 559.566 200 545 200C530.434 200 518.742 196.191 511 188C503.389 179.809 498 168.004 498 154V92H514C517.412 92 520.769 92.622 523 95C525.231 97.2459 526 98.5652 526 102V154C526 162.059 526.457 167.037 530 171C533.543 174.831 537.914 176 545 176C552.217 176 555.457 174.831 559 171C562.543 167.037 563 162.059 563 154V102C563 98.5652 563.769 96.378 566 94C567.96 91.9107 570.028 91.9599 573 92C573.411 92.0055 574.586 92 575 92H591Z" fill="currentColor"></path><path d="M676 144L710 92H684C680.723 92 677.812 93.1758 676 96L660 120L645 97C643.188 94.1758 639.277 92 636 92H611L645 143L608 200H634C637.25 200 640.182 196.787 642 194L660 167L679 195C680.818 197.787 683.75 200 687 200H713L676 144Z" fill="currentColor"></path><path d="M168 200H279C282.542 200 285.932 198.756 289 197C292.068 195.244 295.23 193.041 297 190C298.77 186.959 300.002 183.51 300 179.999C299.998 176.488 298.773 173.04 297 170.001L222 41C220.23 37.96 218.067 35.7552 215 34C211.933 32.2448 207.542 31 204 31C200.458 31 197.067 32.2448 194 34C190.933 35.7552 188.77 37.96 187 41L168 74L130 9.99764C128.228 6.95784 126.068 3.75491 123 2C119.932 0.245087 116.542 0 113 0C109.458 0 106.068 0.245087 103 2C99.9323 3.75491 96.7717 6.95784 95 9.99764L2 170.001C0.226979 173.04 0.00154312 176.488 1.90993e-06 179.999C-0.0015393 183.51 0.229648 186.959 2 190C3.77035 193.04 6.93245 195.244 10 197C13.0675 198.756 16.4578 200 20 200H90C117.737 200 137.925 187.558 152 164L186 105L204 74L259 168H186L168 200ZM89 168H40L113 42L150 105L125.491 147.725C116.144 163.01 105.488 168 89 168Z" fill="#00DC82"></path><path d="M892 200C881.746 200 873.788 197.911 866 194C858.212 189.959 851.543 184.169 847 177C842.587 169.7 840.389 161.646 840 152H868C868.649 159.039 870.717 163.959 875 168C879.413 172.041 885.861 174 893 174C899.62 174 904.106 172.737 908 170C912.024 167.263 914 164.084 914 159C914 155.48 913.336 152.086 911 150C908.793 147.784 906.375 146.173 903 145C899.625 143.827 894.23 142.564 888 141C878.784 138.784 870.971 136.477 865 134C859.159 131.393 854.283 127.605 850 122C845.717 116.395 844 108.777 844 99C844 91.5698 845.976 84.8659 850 79C854.024 73.1341 859.861 68.2589 867 65C874.139 61.6108 881.914 60 891 60C900.735 60 909.601 61.4805 917 65C924.528 68.5196 929.846 73.4823 934 80C938.283 86.5177 940.74 94.3967 941 103H913C912.481 97.5251 910.894 93.1285 907 90C903.106 86.7411 897.49 85 891 85C885.289 85 880.375 86.5233 877 89C873.625 91.4767 872 94.959 872 99C872 102.78 873.664 105.784 876 108C878.336 110.216 881.366 111.696 885 113C888.634 114.173 893.64 115.566 900 117C909.346 119.216 916.159 121.654 922 124C927.841 126.346 932.846 130.395 937 136C941.283 141.475 944 148.354 944 158C944 166.473 941.283 173.743 937 180C932.717 186.257 926.788 191.611 919 195C911.342 198.389 902.124 200 892 200Z" fill="#00DC82"></path><path d="M1056 200H961V60H1054V87H990V116H1041V141H990V173H1056V200Z" fill="#00DC82"></path><path d="M1134 200C1120.76 200 1108.64 196.996 1098 191C1087.49 184.873 1080.1 176.559 1074 166C1068.03 155.311 1065 143.296 1065 130C1065 116.704 1068.03 104.559 1074 94C1080.1 83.311 1088.49 74.9963 1099 69C1109.64 62.8734 1120.76 60 1134 60C1147.11 60 1159.49 62.8734 1170 69C1180.64 74.9963 1189.03 83.311 1195 94C1201.1 104.559 1204 116.704 1204 130C1204 143.296 1201.1 155.311 1195 166C1189.03 176.559 1180.64 184.873 1170 191C1159.49 196.996 1147.11 200 1134 200ZM1134 174C1141.66 174 1148.9 172.78 1155 169C1161.23 165.089 1165.63 159.778 1169 153C1172.5 146.222 1174 138.473 1174 130C1174 121.527 1172.5 113.778 1169 107C1165.63 100.222 1161.23 94.9106 1155 91C1148.9 87.0894 1141.66 85 1134 85C1126.34 85 1120.1 87.0894 1114 91C1107.9 94.9106 1102.5 100.222 1099 107C1095.63 113.778 1094 121.527 1094 130C1094 138.473 1095.63 146.222 1099 153C1102.5 159.778 1107.9 165.089 1114 169C1120.1 172.78 1126.34 174 1134 174Z" fill="#00DC82"></path>',8)])])}const Hw=Object.assign(Io(Ow,[["render",Dw]]),{__name:"NuxtSeoLogo"}),Bw={},Fw={class:"n-loading n-panel-grids-center"},jw={class:"flex flex-col animate-pulse items-center text-lg"};function Uw(e,t){return B(),ee("div",Fw,[I("div",jw,[t[1]||(t[1]=I("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),qe(e.$slots,"default",{},()=>[t[0]||(t[0]=ie(" Loading... ",-1))])])])}const Gw=Object.assign(Io(Bw,[["render",Uw]]),{__name:"NLoading"});let Re=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Ww(e){return Ya(e)}function Ya(e){return Array.isArray(e)?zw(e):e instanceof RegExp?e:typeof e=="object"?Vw(e):e}function zw(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Ya(e[n]);return t}function Vw(e){let t={};for(let n in e)t[n]=Ya(e[n]);return t}function Wd(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function zd(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?zd(e.substring(0,e.length-1)):e.substr(~t+1)}var ai=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,us=class{static hasCaptures(e){return e===null?!1:(ai.lastIndex=0,ai.test(e))}static replaceCaptures(e,t,n){return e.replace(ai,(r,s,o,i)=>{let a=n[parseInt(s||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Vd(e,t){return e<t?-1:e>t?1:0}function qd(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 s=0;s<n;s++){let o=Vd(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Ic(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 Kd(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Xd=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Ys=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Xw(e),t)}static createFromParsedTheme(e,t){return Yw(e,t)}_cachedMatchRoot=new Xd(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(s=>qw(e.parent,s.parentScopes));return r?new Jd(r.fontStyle,r.foreground,r.background):null}},li=class Ss{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Ss(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Ss(n,t[r]);return n}push(t){return new Ss(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 qw(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],s=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],s=!0}for(;e&&!Kw(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Kw(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Jd=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Xw(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let s=0,o=t.length;s<o;s++){let i=t[s];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let f=i.settings.fontStyle.split(" ");for(let d=0,h=f.length;d<h;d++)switch(f[d]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof i.settings.foreground=="string"&&Ic(i.settings.foreground)&&(u=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&Ic(i.settings.background)&&(c=i.settings.background);for(let f=0,d=a.length;f<d;f++){let p=a[f].trim().split(" "),g=p[p.length-1],b=null;p.length>1&&(b=p.slice(0,p.length-1),b.reverse()),n[r++]=new Jw(g,b,s,l,u,c)}}return n}var Jw=class{constructor(e,t,n,r,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=s,this.background=o}},Ue=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Ue||{});function Yw(e,t){e.sort((l,u)=>{let c=Vd(l.scope,u.scope);return c!==0||(c=qd(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let n=0,r="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let o=new Zw(t),i=new Jd(n,o.getId(r),o.getId(s)),a=new e0(new Xi(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];a.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new Ys(o,i,a)}var Zw=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Qw=Object.freeze([]),Xi=class Yd{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,s,o){this.scopeDepth=t,this.parentScopes=n||Qw,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new Yd(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,s=t.length;r<s;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},e0=class Ji{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,s=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),s,o;if(r===-1?(s=t,o=""):(s=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Ji._cmpBySpecificity),n}insert(t,n,r,s,o,i){if(n===""){this._doInsertHere(t,r,s,o,i);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new Ji(this._mainRule.clone(),Xi.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,r,s,o,i)}_doInsertHere(t,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(t,r,s,o);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let l=this._rulesWithParentScopes[i];if(qd(l.parentScopes,n)===0){l.acceptOverwrite(t,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Xi(t,n,r,s,o))}},or=class tt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=tt.getLanguageId(t),r=tt.getTokenType(t),s=tt.getFontStyle(t),o=tt.getForeground(t),i=tt.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:o,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,s,o,i,a){let l=tt.getLanguageId(t),u=tt.getTokenType(t),c=tt.containsBalancedBrackets(t)?1:0,f=tt.getFontStyle(t),d=tt.getForeground(t),h=tt.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),s!==null&&(c=s?1:0),o!==-1&&(f=o),i!==0&&(d=i),a!==0&&(h=a),(l<<0|u<<8|c<<10|f<<11|d<<15|h<<24)>>>0}};function Zs(e,t){const n=[],r=t0(e);let s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let u=i();if(n.push({matcher:u,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return u=>!!l&&!l(u)}if(s==="("){s=r.next();const l=a();return s===")"&&(s=r.next()),l}if(Lc(s)){const l=[];do l.push(s),s=r.next();while(Lc(s));return u=>t(l,u)}return null}function i(){const l=[];let u=o();for(;u;)l.push(u),u=o();return c=>l.every(f=>f(c))}function a(){const l=[];let u=i();for(;u&&(l.push(u),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");u=i()}return c=>l.some(f=>f(c))}}function Lc(e){return!!e&&!!e.match(/[\w\.:]+/)}function t0(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 Zd(e){typeof e.dispose=="function"&&e.dispose()}var Ur=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},n0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},r0=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},s0=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ur(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new r0;for(const n of e)o0(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Ur){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function o0(e,t,n,r){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Ur?ks({baseGrammar:o,selfGrammar:s},r):Yi(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);const i=n.injections(e.scopeName);if(i)for(const a of i)r.add(new Ur(a))}function Yi(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Qs([r],t,n)}}function ks(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Qs(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Qs(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Qs(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?Wd({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Qs(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=Qd(o);switch(i.kind){case 0:ks({...t,selfGrammar:t.baseGrammar},n);break;case 1:ks(t,n);break;case 2:Yi(i.ruleName,{...t,repository:s},n);break;case 3:case 4:const a=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:s};i.kind===4?Yi(i.ruleName,l,n):ks(l,n)}else i.kind===4?n.add(new n0(i.scopeName,i.ruleName)):n.add(new Ur(i.scopeName));break}}}var i0=class{kind=0},a0=class{kind=1},l0=class{constructor(e){this.ruleName=e}kind=2},c0=class{constructor(e){this.scopeName=e}kind=3},u0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Qd(e){if(e==="$base")return new i0;if(e==="$self")return new a0;const t=e.indexOf("#");if(t===-1)return new c0(e);if(t===0)return new l0(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new u0(n,r)}}var f0=/\\(\d+)/,Oc=/\\(\d+)/g,d0=-1,eh=-2;var Jr=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=us.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=us.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${zd(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:us.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:us.replaceCaptures(this._contentName,e,t)}},h0=class extends Jr{retokenizeCapturedWithRuleId;constructor(e,t,n,r,s){super(e,t,n,r),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},p0=class extends Jr{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,null),this._match=new Gr(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Wr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Mc=class extends Jr{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,r),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Wr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zi=class extends Jr{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s,o,i,a,l,u){super(e,t,n,r),this._begin=new Gr(s,this.id),this.beginCaptures=o,this._end=new Gr(i||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.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(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Wr;for(const n of this.patterns)e.getRule(n).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},eo=class extends Jr{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,s,o,i,a,l){super(e,t,n,r),this._begin=new Gr(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new Gr(i,eh),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.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(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Wr;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Wr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},th=class He{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new h0(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new p0(t.$vscodeTextmateLocation,t.id,t.name,t.match,He._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Wd({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Mc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,He._compilePatterns(o,n,r))}return t.while?new eo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,He._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,He._compileCaptures(t.whileCaptures||t.captures,n,r),He._compilePatterns(t.patterns,n,r)):new Zi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,He._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,He._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,He._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let s=[];if(t){let o=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)s[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);let l=0;t[i].patterns&&(l=He.getCompiledRuleId(t[i],n,r)),s[a]=He.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return s}static _compilePatterns(t,n,r){let s=[];if(t)for(let o=0,i=t.length;o<i;o++){const a=t[o];let l=-1;if(a.include){const u=Qd(a.include);switch(u.kind){case 0:case 1:l=He.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=He.getCompiledRuleId(c,n,r));break;case 3:case 4:const f=u.scopeName,d=u.kind===4?u.ruleName:null,h=n.getExternalGrammar(f,r);if(h)if(d){let p=h.repository[d];p&&(l=He.getCompiledRuleId(p,n,h.repository))}else l=He.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=He.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Mc||u instanceof Zi||u instanceof eo)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Gr=class nh{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let s=0,o=[],i=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const u=t.charAt(a+1);u==="z"?(o.push(t.substring(s,a)),o.push("$(?!\\n)(?<!\\n)"),s=a+2):(u==="A"||u==="G")&&(i=!0),a++}this.hasAnchor=i,s===0?this.source=t:(o.push(t.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=f0.test(this.source):this.hasBackReferences=!1}clone(){return new nh(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>t.substring(s.start,s.end));return Oc.lastIndex=0,this.source.replace(Oc,(s,o)=>Kd(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],s=[],o,i,a,l;for(o=0,i=this.source.length;o<i;o++)a=this.source.charAt(o),t[o]=a,n[o]=a,r[o]=a,s[o]=a,a==="\\"&&o+1<i&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",s[o+1]="A"):l==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",s[o+1]="G"):(t[o+1]=l,n[o+1]=l,r[o+1]=l,s[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Wr=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Dc(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(s=>s.resolveAnchors(t,n));return new Dc(e,r,this._items.map(s=>s.ruleId))}},Dc=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
20
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ci=class{constructor(e,t){this.languageId=e,this.tokenType=t}},g0=class Qi{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new ci(t,8),this._embeddedLanguagesMatcher=new m0(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Qi._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ci(0,0);_getBasicScopeAttributes=new Xd(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new ci(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Qi.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!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},m0=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Kd(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Hc=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function rh(e,t,n,r,s,o,i,a){const l=t.content.length;let u=!1,c=-1;if(i){const h=y0(e,t,n,r,s,o);s=h.stack,r=h.linePos,n=h.isFirstLine,c=h.anchorPosition}const f=Date.now();for(;!u;){if(a!==0&&Date.now()-f>a)return new Hc(s,!0);d()}return new Hc(s,!1);function d(){const h=_0(e,t,n,r,s,c);if(!h){o.produce(s,l),u=!0;return}const p=h.captureIndices,g=h.matchedRuleId,b=p&&p.length>0?p[0].end>r:!1;if(g===d0){const _=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),br(e,t,n,s,o,_.endCaptures,p),o.produce(s,p[0].end);const w=s;if(s=s.parent,c=w.getAnchorPos(),!b&&w.getEnterPos()===r){s=w,o.produce(s,l),u=!0;return}}else{const _=e.getRule(g);o.produce(s,p[0].start);const w=s,m=_.getName(t.content,p),v=s.contentNameScopesList.pushAttributed(m,e);if(s=s.push(g,r,c,p[0].end===l,null,v,v),_ instanceof Zi){const C=_;br(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const S=C.getContentName(t.content,p),P=v.pushAttributed(S,e);if(s=s.withContentNameScopesList(P),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!b&&w.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(_ instanceof eo){const C=_;br(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const S=C.getContentName(t.content,p),P=v.pushAttributed(S,e);if(s=s.withContentNameScopesList(P),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!b&&w.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(br(e,t,n,s,o,_.captures,p),o.produce(s,p[0].end),s=s.pop(),!b){s=s.safePop(),o.produce(s,l),u=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function y0(e,t,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const u=l.getRule(e);u instanceof eo&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=v0(l.rule,e,l.stack.endRule,n,r===i),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==eh){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),br(e,t,n,l.stack,o,l.rule.whileCaptures,f.captureIndices),o.produce(l.stack,f.captureIndices[0].end),i=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:i,isFirstLine:n}}function _0(e,t,n,r,s,o){const i=b0(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=w0(a,e,t,n,r,s,o);if(!l)return i;if(!i)return l;const u=i.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:i}function b0(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=sh(i,e,s.endRule,n,r===o),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function w0(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,u,c=0;const f=o.contentNameScopesList.getScopeNames();for(let d=0,h=e.length;d<h;d++){const p=e[d];if(!p.matcher(f))continue;const g=t.getRule(p.ruleId),{ruleScanner:b,findOptions:_}=sh(g,t,null,r,s===i),w=b.findNextMatchSync(n,s,_);if(!w)continue;const m=w.captureIndices[0].start;if(!(m>=a)&&(a=m,l=w.captureIndices,u=w.ruleId,c=p.priority,a===s))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function sh(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function v0(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function br(e,t,n,r,s,o,i){if(o.length===0)return;const a=t.content,l=Math.min(o.length,i.length),u=[],c=i[0].end;for(let f=0;f<l;f++){const d=o[f];if(d===null)continue;const h=i[f];if(h.length===0)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?s.produceFromScopes(u[u.length-1].scopes,h.start):s.produce(r,h.start),d.retokenizeCapturedWithRuleId){const g=d.getName(a,i),b=r.contentNameScopesList.pushAttributed(g,e),_=d.getContentName(a,i),w=b.pushAttributed(_,e),m=r.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,b,w),v=e.createOnigString(a.substring(0,h.end));rh(e,v,n&&h.start===0,h.start,m,s,!1,0),Zd(v);continue}const p=d.getName(a,i);if(p!==null){const b=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new C0(b,h.end))}}for(;u.length>0;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var C0=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function x0(e,t,n,r,s,o,i,a){return new k0(e,t,n,r,s,o,i,a)}function Bc(e,t,n,r,s){const o=Zs(t,to),i=th.getCompiledRuleId(n,r,s.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:i,grammar:s,priority:a.priority})}function to(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let s=n;s<t.length;s++)if(S0(t[s],r))return n=s+1,!0;return!1})}function S0(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var k0=class{constructor(e,t,n,r,s,o,i,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new g0(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=Fc(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const u=Zs(l,to);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:s[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const s=r.injections;if(s)for(let i in s)Bc(t,i,s[i],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(i=>{const a=this.getExternalGrammar(i);if(a){const l=a.injectionSelector;l&&Bc(t,l,a,this,a)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Fc(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=th.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===ea.NULL){s=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=or.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),d=this.getRule(this._rootId).getName(null,null);let h;d?h=Pr.createRootAndLookUpScopeName(d,f,this):h=Pr.createRoot("unknown",f),t=new ea(null,this._rootId,-1,-1,!1,null,h,h)}else s=!1,t.reset();e=e+`
|
|
21
|
+
`;const o=this.createOnigString(e),i=o.content.length,a=new E0(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=rh(this,o,s,0,t,a,!0,r);return Zd(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Fc(e,t){return e=Ww(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Pr=class wt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=t?.scopePath??null;for(const o of n)s=li.push(s,o.scopeNames),r=new wt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new wt(null,new li(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new li(null,t),i=r.themeProvider.themeMatch(o),a=wt.mergeAttributes(n,s,i);return new wt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return wt.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 s=-1,o=0,i=0;return r!==null&&(s=r.fontStyle,o=r.foregroundId,i=r.backgroundId),or.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return wt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=wt._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,r){const s=r.getMetadataForScope(n),o=t.scopePath.push(n),i=r.themeProvider.themeMatch(o),a=wt.mergeAttributes(t.tokenAttributes,s,i);return new wt(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},ea=class pn{constructor(t,n,r,s,o,i,a,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}_stackElementBrand=void 0;static NULL=new pn(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:pn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Pr.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){pn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new pn(this,t,n,r,s,o,i,a)}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){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new pn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Pr.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new pn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Pr.fromExtension(r,n.contentNameScopesList))}},A0=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Zs(n,to).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Zs(n,to).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},E0=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(o)&&(r=or.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=or.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},T0=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,x0(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},$0=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new T0(Ys.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Ys.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 A0(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new s0(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(a=>this._loadSingleGrammar(a.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,s,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,s=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,s)}_grammarForScopeName(t,n=0,r=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,s,o)}},ta=ea.NULL;const R0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Yr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Yr.prototype.normal={};Yr.prototype.property={};Yr.prototype.space=void 0;function oh(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new Yr(n,r,t)}function na(e){return e.toLowerCase()}class Xe{constructor(t,n){this.attribute=n,this.property=t}}Xe.prototype.attribute="";Xe.prototype.booleanish=!1;Xe.prototype.boolean=!1;Xe.prototype.commaOrSpaceSeparated=!1;Xe.prototype.commaSeparated=!1;Xe.prototype.defined=!1;Xe.prototype.mustUseProperty=!1;Xe.prototype.number=!1;Xe.prototype.overloadedBoolean=!1;Xe.prototype.property="";Xe.prototype.spaceSeparated=!1;Xe.prototype.space=void 0;let P0=0;const re=Rn(),Se=Rn(),ra=Rn(),R=Rn(),me=Rn(),Yn=Rn(),Ze=Rn();function Rn(){return 2**++P0}const sa=Object.freeze(Object.defineProperty({__proto__:null,boolean:re,booleanish:Se,commaOrSpaceSeparated:Ze,commaSeparated:Yn,number:R,overloadedBoolean:ra,spaceSeparated:me},Symbol.toStringTag,{value:"Module"})),ui=Object.keys(sa);class Za extends Xe{constructor(t,n,r,s){let o=-1;if(super(t,n),jc(this,"space",s),typeof r=="number")for(;++o<ui.length;){const i=ui[o];jc(this,ui[o],(r&sa[i])===sa[i])}}}Za.prototype.defined=!0;function jc(e,t,n){n&&(e[t]=n)}function lr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new Za(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[na(r)]=r,n[na(o.attribute)]=r}return new Yr(t,n,e.space)}const ih=lr({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:me,ariaCurrent:null,ariaDescribedBy:me,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:me,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:me,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:me,ariaLevel:R,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:me,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:me,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:Se,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ah(e,t){return t in e?e[t]:t}function lh(e,t){return ah(e,t.toLowerCase())}const N0=lr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yn,acceptCharset:me,accessKey:me,action:null,allow:null,allowFullScreen:re,allowPaymentRequest:re,allowUserMedia:re,alt:null,as:null,async:re,autoCapitalize:null,autoComplete:me,autoFocus:re,autoPlay:re,blocking:me,capture:null,charSet:null,checked:re,cite:null,className:me,cols:R,colSpan:null,content:null,contentEditable:Se,controls:re,controlsList:me,coords:R|Yn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:re,defer:re,dir:null,dirName:null,disabled:re,download:ra,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:re,formTarget:null,headers:me,height:R,hidden:ra,high:R,href:null,hrefLang:null,htmlFor:me,httpEquiv:me,id:null,imageSizes:null,imageSrcSet:null,inert:re,inputMode:null,integrity:null,is:null,isMap:re,itemId:null,itemProp:me,itemRef:me,itemScope:re,itemType:me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:re,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:re,muted:re,name:null,nonce:null,noModule:re,noValidate:re,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:re,optimum:R,pattern:null,ping:me,placeholder:null,playsInline:re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:re,referrerPolicy:null,rel:me,required:re,reversed:re,rows:R,rowSpan:R,sandbox:me,scope:null,scoped:re,seamless:re,selected:re,shadowRootClonable:re,shadowRootDelegatesFocus:re,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:Se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:re,useMap:null,value:Se,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:me,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:re,declare:re,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:re,noHref:re,noShade:re,noWrap:re,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:Se,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:re,disableRemotePlayback:re,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:lh}),I0=lr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ze,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:me,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:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:re,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,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:Yn,g2:Yn,glyphName:Yn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,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:R,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:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,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:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ah}),ch=lr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),uh=lr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lh}),fh=lr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),L0=/[A-Z]/g,Uc=/-[a-z]/g,O0=/^data[-\w.:]+$/i;function M0(e,t){const n=na(t);let r=t,s=Xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&O0.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Uc,H0);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Uc.test(o)){let i=o.replace(L0,D0);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=Za}return new s(r,t)}function D0(e){return"-"+e.toLowerCase()}function H0(e){return e.charAt(1).toUpperCase()}const B0=oh([ih,N0,ch,uh,fh],"html"),dh=oh([ih,I0,ch,uh,fh],"svg"),Gc={}.hasOwnProperty;function F0(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&Gc.call(s,e)){const l=String(s[e]);i=Gc.call(a,l)?a[l]:r.unknown}if(i)return i.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const j0=/["&'<>`]/g,U0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,G0=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,W0=/[|\\{}()[\]^$+*?.]/g,Wc=new WeakMap;function z0(e,t){if(e=e.replace(t.subset?V0(t.subset):j0,r),t.subset||t.escapeOnly)return e;return e.replace(U0,n).replace(G0,r);function n(s,o,i){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),t)}function r(s,o,i){return t.format(s.charCodeAt(0),i.charCodeAt(o+1),t)}}function V0(e){let t=Wc.get(e);return t||(t=q0(e),Wc.set(e,t)),t}function q0(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(W0,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const K0=/[\dA-Fa-f]/;function X0(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!K0.test(String.fromCharCode(t))?r:r+";"}const J0=/\d/;function Y0(e,t,n){const r="&#"+String(e);return n&&t&&!J0.test(String.fromCharCode(t))?r:r+";"}const Z0=["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"],fi={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:"€"},Q0=["cent","copy","divide","gt","lt","not","para","times"],hh={}.hasOwnProperty,oa={};let fs;for(fs in fi)hh.call(fi,fs)&&(oa[fi[fs]]=fs);const ev=/[^\dA-Za-z]/;function tv(e,t,n,r){const s=String.fromCharCode(e);if(hh.call(oa,s)){const o=oa[s],i="&"+o;return n&&Z0.includes(o)&&!Q0.includes(o)&&(!r||t&&t!==61&&ev.test(String.fromCharCode(t)))?i:i+";"}return""}function nv(e,t,n){let r=X0(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=tv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=Y0(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function Zn(e,t){return z0(e,Object.assign({format:nv},t))}const rv=/^>|^->|<!--|-->|--!>|<!-$/g,sv=[">"],ov=["<",">"];function iv(e,t,n,r){return r.settings.bogusComments?"<?"+Zn(e.value,Object.assign({},r.settings.characterReferences,{subset:sv}))+">":"<!--"+e.value.replace(rv,s)+"-->";function s(o){return Zn(o,Object.assign({},r.settings.characterReferences,{subset:ov}))}}function av(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function zc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;s!==-1;)r++,s=n.indexOf(t,s+t.length);return r}function lv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function cv(e){return e.join(" ").trim()}const uv=/[ \t\n\f\r]/g;function Qa(e){return typeof e=="object"?e.type==="text"?Vc(e.value):!1:Vc(e)}function Vc(e){return e.replace(uv,"")===""}const $e=gh(1),ph=gh(-1),fv=[];function gh(e){return t;function t(n,r,s){const o=n?n.children:fv;let i=(r||0)+e,a=o[i];if(!s)for(;a&&Qa(a);)i+=e,a=o[i];return a}}const dv={}.hasOwnProperty;function mh(e){return t;function t(n,r,s){return dv.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const el=mh({body:pv,caption:di,colgroup:di,dd:_v,dt:yv,head:di,html:hv,li:mv,optgroup:bv,option:wv,p:gv,rp:qc,rt:qc,tbody:Cv,td:Kc,tfoot:xv,th:Kc,thead:vv,tr:Sv});function di(e,t,n){const r=$e(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Qa(r.value.charAt(0)))}function hv(e,t,n){const r=$e(n,t);return!r||r.type!=="comment"}function pv(e,t,n){const r=$e(n,t);return!r||r.type!=="comment"}function gv(e,t,n){const r=$e(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 mv(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&r.tagName==="li"}function yv(e,t,n){const r=$e(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function _v(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function qc(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function bv(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function wv(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function vv(e,t,n){const r=$e(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Cv(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function xv(e,t,n){return!$e(n,t)}function Sv(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Kc(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const kv=mh({body:Tv,colgroup:$v,head:Ev,html:Av,tbody:Rv});function Av(e){const t=$e(e,-1);return!t||t.type!=="comment"}function Ev(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Tv(e){const t=$e(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Qa(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function $v(e,t,n){const r=ph(n,t),s=$e(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&el(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Rv(e,t,n){const r=ph(n,t),s=$e(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&el(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const ds={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 Pv(e,t,n,r){const s=r.schema,o=s.space==="svg"?!1:r.settings.omitOptionalTags;let i=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;s.space==="html"&&e.tagName==="svg"&&(r.schema=dh);const u=Nv(r,e.properties),c=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,c&&(i=!1),(u||!o||!kv(e,t,n))&&(a.push("<",e.tagName,u?" "+u:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!i&&(!o||!el(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function Nv(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=Iv(e,s,t[s]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function Iv(e,t,n){const r=M0(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let i=e.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=Zn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ds.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?lv:cv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=Zn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ds.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&zc(n,i)>zc(n,e.alternative)&&(i=e.alternative),a=i+Zn(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ds.single:ds.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Lv=["<","&"];function yh(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Zn(e.value,Object.assign({},r.settings.characterReferences,{subset:Lv}))}function Ov(e,t,n,r){return r.settings.allowDangerousHtml?e.value:yh(e,t,n,r)}function Mv(e,t,n,r){return r.all(e)}const Dv=F0("type",{invalid:Hv,unknown:Bv,handlers:{comment:iv,doctype:av,element:Pv,raw:Ov,root:Mv,text:yh}});function Hv(e){throw new Error("Expected node, not `"+e+"`")}function Bv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Fv={},jv={},Uv=[];function Gv(e,t){const n=t||Fv,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Wv,all:zv,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||R0,characterReferences:n.characterReferences||jv,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?dh:B0,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Wv(e,t,n){return Dv(e,t,n,this)}function zv(e){const t=[],n=e&&e.children||Uv;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function no(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function tn(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Vv(e){return Array.isArray(e)?e:[e]}async function _h(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function tl(e){return!e||["plaintext","txt","text","plain"].includes(e)}function qv(e){return e==="ansi"||tl(e)}function nl(e){return e==="none"}function Kv(e){return nl(e)}function bh(e,t){if(!t)return e;e.properties||={},e.properties.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 r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Lo(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let o=0;o<n.length;o+=2){const i=t?n[o]+(n[o+1]||""):n[o];s.push([i,r]),r+=n[o].length,r+=n[o+1]?.length||0}return s}function Xv(e){const t=Lo(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,i=0;for(const a of t){if(o<a.length)break;o-=a.length,i++}return{line:i,character:o}}function r(s,o){let i=0;for(let a=0;a<s;a++)i+=t[a].length;return i+=o,i}return{lines:t,indexToPos:n,posToIndex:r}}const rl="light-dark()",Jv=["color","background-color"];function Yv(e,t){let n=0;const r=[];for(const s of t)s>n&&r.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Zv(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,s)=>r-s);return n.length?e.map(r=>r.flatMap(s=>{const o=n.filter(i=>s.offset<i&&i<s.offset+s.content.length).map(i=>i-s.offset).sort((i,a)=>i-a);return o.length?Yv(s,o):s})):e}function Qv(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(c=>ro(e.variants[c])),a=new Set(i.flatMap(c=>Object.keys(c))),l={},u=(c,f)=>{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[c]+(f==="color"?"":d)};return i.forEach((c,f)=>{for(const d of a){const h=c[d]||"inherit";if(f===0&&r&&Jv.includes(d))if(r===rl&&i.length>1){const p=t.findIndex(w=>w==="light"),g=t.findIndex(w=>w==="dark");if(p===-1||g===-1)throw new Re('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const b=i[p][d]||"inherit",_=i[g][d]||"inherit";l[d]=`light-dark(${b}, ${_})`,s==="css-vars"&&(l[u(f,d)]=h)}else l[d]=h;else s==="css-vars"&&(l[u(f,d)]=h)}}),o.htmlStyle=l,o}function ro(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Ue.Italic&&(t["font-style"]="italic"),e.fontStyle&Ue.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Ue.Underline&&n.push("underline"),e.fontStyle&Ue.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function ia(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const wh=new WeakMap;function Oo(e,t){wh.set(e,t)}function zr(e){return wh.get(e)}class cr{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new cr(Object.fromEntries(Vv(n).map(r=>[r,ta])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,s]=t;this.lang=r,this._stacks={[s]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return e1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function e1(e){const t=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);const o=s?.nameScopesList?.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function t1(e,t){if(!(e instanceof cr))throw new Re("Invalid grammar state");return e.getInternalStack(t)}function n1(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new Re(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...s.indexToPos(i),offset:i}}else{const a=s.lines[i.line];if(a===void 0)throw new Re(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);let l=i.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new Re(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,character:l,offset:s.posToIndex(i.line,l)}}};const s=Xv(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));r1(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const s=t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]);return Zv(n,s)},code(n){if(!this.options.decorations?.length)return;const r=t(this),s=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(s.length!==r.converter.lines.length)throw new Re(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(c,f,d,h){const p=s[c];let g="",b=-1,_=-1;if(f===0&&(b=0),d===0&&(_=0),d===Number.POSITIVE_INFINITY&&(_=p.children.length),b===-1||_===-1)for(let m=0;m<p.children.length;m++)g+=vh(p.children[m]),b===-1&&g.length===f&&(b=m+1),_===-1&&g.length===d&&(_=m+1);if(b===-1)throw new Re(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(_===-1)throw new Re(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const w=p.children.slice(b,_);if(!h.alwaysWrap&&w.length===p.children.length)a(p,h,"line");else if(!h.alwaysWrap&&w.length===1&&w[0].type==="element")a(w[0],h,"token");else{const m={type:"element",tagName:"span",properties:{},children:w};a(m,h,"wrapper"),p.children.splice(b,w.length,m)}}function i(c,f){s[c]=a(s[c],f,"line")}function a(c,f,d){const h=f.properties||{},p=f.transform||(g=>g);return c.tagName=f.tagName||"span",c.properties={...c.properties,...h,class:c.properties.class},f.properties?.class&&bh(c,f.properties.class),c=p(c,d)||c,c}const l=[],u=r.decorations.sort((c,f)=>f.start.offset-c.start.offset||c.end.offset-f.end.offset);for(const c of u){const{start:f,end:d}=c;if(f.line===d.line)o(f.line,f.character,d.character,c);else if(f.line<d.line){o(f.line,f.character,Number.POSITIVE_INFINITY,c);for(let h=f.line+1;h<d.line;h++)l.unshift(()=>i(h,c));o(d.line,0,d.character,c)}}l.forEach(c=>c())}}}function r1(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Re(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const s=e[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,i=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||i||a||l){if(o&&i||a&&l||a&&n.start.offset===n.end.offset||i&&s.start.offset===s.end.offset)continue;throw new Re(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function vh(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(vh).join(""):""}const s1=[n1()];function so(e){const t=o1(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...s1]}function o1(e){const t=[],n=[],r=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:t,post:n,normal:r}}var mn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],hi={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function i1(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Xc(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function a1(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)hi[r]&&t.push({type:"setDecoration",value:hi[r]});else if(r<=29){const s=hi[r-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:mn[r-30]}});else if(r===38){const s=Xc(e);s&&t.push({type:"setForegroundColor",value:s})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:mn[r-40]}});else if(r===48){const s=Xc(e);s&&t.push({type:"setBackgroundColor",value:s})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:mn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:mn[r-100+8]}})}return t}function l1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=i1(r,o),a=i.sequence?r.substring(o,i.startPosition):r.substring(o);if(a.length>0&&s.push({value:a,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const l=a1(i.sequence);for(const u of l)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}o=i.position}while(o<r.length);return s}}}var c1={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 u1(e=c1){function t(a){return e[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let u=0;u<mn.length;u++)r.push(t(mn[u]));let a=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let c=0;c<6;c++)for(let f=0;f<6;f++)r.push(n([a[u],a[c],a[f]]));let l=8;for(let u=0;u<24;u++,l+=10)r.push(n([l,l,l]));return r}function o(a){return s()[a]}function i(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return o(a.index)}}return{value:i}}function f1(e,t,n){const r=no(e,n),s=Lo(t),o=u1(Object.fromEntries(mn.map(a=>[a,e.colors?.[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]))),i=l1();return s.map(a=>i.parse(a[0]).map(l=>{let u,c;l.decorations.has("reverse")?(u=l.background?o.value(l.background):e.bg,c=l.foreground?o.value(l.foreground):e.fg):(u=l.foreground?o.value(l.foreground):e.fg,c=l.background?o.value(l.background):void 0),u=tn(u,r),c=tn(c,r),l.decorations.has("dim")&&(u=d1(u));let f=Ue.None;return l.decorations.has("bold")&&(f|=Ue.Bold),l.decorations.has("italic")&&(f|=Ue.Italic),l.decorations.has("underline")&&(f|=Ue.Underline),l.decorations.has("strikethrough")&&(f|=Ue.Strikethrough),{content:l.value,offset:a[1],color:u,bgColor:c,fontStyle:f}}))}function d1(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 sl(e,t,n={}){const{lang:r="text",theme:s=e.getLoadedThemes()[0]}=n;if(tl(r)||nl(s))return Lo(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(s);if(r==="ansi")return f1(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Re(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Re(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return p1(t,a,o,i,n)}function h1(...e){if(e.length===2)return zr(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(tl(s)||nl(o))throw new Re("Plain language does not have grammar state");if(s==="ansi")throw new Re("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new cr(oo(n,l,i,a,r).stateStack,l.name,i.name)}function p1(e,t,n,r,s){const o=oo(e,t,n,r,s),i=new cr(oo(e,t,n,r,s).stateStack,t.name,n.name);return Oo(o.tokens,i),o.tokens}function oo(e,t,n,r,s){const o=no(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=Lo(e);let u=s.grammarState?t1(s.grammarState,n.name)??ta:s.grammarContextCode!=null?oo(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ta,c=[];const f=[];for(let d=0,h=l.length;d<h;d++){const[p,g]=l[d];if(p===""){c=[],f.push([]);continue}if(i>0&&p.length>=i){c=[],f.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}let b,_,w;s.includeExplanation&&(b=t.tokenizeLine(p,u,a),_=b.tokens,w=0);const m=t.tokenizeLine2(p,u,a),v=m.tokens.length/2;for(let C=0;C<v;C++){const S=m.tokens[2*C],P=C+1<v?m.tokens[2*C+2]:p.length;if(S===P)continue;const F=m.tokens[2*C+1],G=tn(r[or.getForeground(F)],o),N=or.getFontStyle(F),q={content:p.substring(S,P),offset:g+S,color:G,fontStyle:N};if(s.includeExplanation){const W=[];if(s.includeExplanation!=="scopeName")for(const L of n.settings){let K;switch(typeof L.scope){case"string":K=L.scope.split(/,/).map(O=>O.trim());break;case"object":K=L.scope;break;default:continue}W.push({settings:L,selectors:K.map(O=>O.split(/ /))})}q.explanation=[];let Q=0;for(;S+Q<P;){const L=_[w],K=p.substring(L.startIndex,L.endIndex);Q+=K.length,q.explanation.push({content:K,scopes:s.includeExplanation==="scopeName"?g1(L.scopes):m1(W,L.scopes)}),w+=1}}c.push(q)}f.push(c),c=[],u=m.ruleStack}return{tokens:f,stateStack:u}}function g1(e){return e.map(t=>({scopeName:t}))}function m1(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:_1(e,o,t.slice(0,r))}}return n}function Jc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function y1(e,t,n){if(!Jc(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)Jc(e[r],n[s])&&(r-=1),s-=1;return r===-1}function _1(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(y1(i,t,n)){r.push(o);break}return r}function Ch(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),s=r.map(l=>{const u=sl(e,t,{...n,theme:l.theme}),c=zr(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=b1(...s.map(l=>l.tokens)),i=o[0].map((l,u)=>l.map((c,f)=>{const d={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=c.explanation),o.forEach((h,p)=>{const{content:g,explanation:b,offset:_,...w}=h[u][f];d.variants[r[p].color]=w}),d})),a=s[0].state?new cr(Object.fromEntries(s.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),s[0].state.lang):void 0;return a&&Oo(i,a),i}function b1(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const s=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(u=>u.content.length));for(let u=0;u<n;u++){const c=a[u];c.content.length===l?(o[u].push(c),i[u]+=1,a[u]=s[u][i[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),a[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}function io(e,t,n){let r,s,o,i,a,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:f="css-vars"}=n,d=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,w)=>_.color===u?-1:w.color===u?1:0);if(d.length===0)throw new Re("`themes` option must not be empty");const h=Ch(e,t,n);if(l=zr(h),u&&rl!==u&&!d.find(_=>_.color===u))throw new Re(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=d.map(_=>e.getTheme(_.theme)),g=d.map(_=>_.color);o=h.map(_=>_.map(w=>Qv(w,g,c,u,f))),l&&Oo(o,l);const b=d.map(_=>no(_.theme,n));s=Yc(d,p,b,c,u,"fg",f),r=Yc(d,p,b,c,u,"bg",f),i=`shiki-themes ${p.map(_=>_.name).join(" ")}`,a=u?void 0:[s,r].join(";")}else if("theme"in n){const u=no(n.theme,n);o=sl(e,t,n);const c=e.getTheme(n.theme);r=tn(c.bg,u),s=tn(c.fg,u),i=c.name,l=zr(o)}else throw new Re("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function Yc(e,t,n,r,s,o,i){return e.map((a,l)=>{const u=tn(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&s){if(s===rl&&e.length>1){const f=e.findIndex(g=>g.color==="light"),d=e.findIndex(g=>g.color==="dark");if(f===-1||d===-1)throw new Re('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=tn(t[f][o],n[f])||"inherit",p=tn(t[d][o],n[d])||"inherit";return`light-dark(${h}, ${p});${c}`}return u}return i==="css-vars"?c:null}).filter(a=>!!a).join(";")}function ao(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>ao(e,s,o),codeToTokens:(s,o)=>io(e,s,o)}){let s=t;for(const p of so(n))s=p.preprocess?.call(r,s,n)||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:u,grammarState:c}=io(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=v1(o):f==="never"&&(o=C1(o)),d&&(o=x1(o));const h={...r,get source(){return s}};for(const p of so(n))o=p.tokens?.call(h,o)||o;return w1(o,{...n,fg:i,bg:a,themeName:l,rootStyle:u},h,c)}function w1(e,t,n,r=zr(e)){const s=so(t),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t;let u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([p])=>!p.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:o};const f=[],d={...n,structure:a,addClassToHast:bh,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return u},get code(){return c},get lines(){return f}};if(e.forEach((p,g)=>{g&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
|
|
30
|
+
`}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const w of p){let m={type:"element",tagName:"span",properties:{...w.htmlAttrs},children:[{type:"text",value:w.content}]};const v=ia(w.htmlStyle||ro(w));v&&(m.properties.style=v);for(const C of s)m=C?.span?.call(d,m,g+1,_,b,w)||m;a==="inline"?i.children.push(m):a==="classic"&&b.children.push(m),_+=w.content.length}if(a==="classic"){for(const w of s)b=w?.line?.call(d,b,g+1)||b;f.push(b),o.push(b)}}),a==="classic"){for(const p of s)c=p?.code?.call(d,c)||c;u.children.push(c);for(const p of s)u=p?.pre?.call(d,u)||u;i.children.push(u)}let h=i;for(const p of s)h=p?.root?.call(d,h)||h;return r&&Oo(h,r),h}function v1(e){return e.map(t=>{const n=[];let r="",s=0;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&Ue.Underline||o.fontStyle&Ue.Strikethrough));l&&o.content.match(/^\s+$/)&&t[i+1]?(s||(s=o.offset),r+=o.content):r?(l?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=0,r=""):n.push(o)}),n})}function C1(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[,s,o,i]=r;if(!s&&!i)return n;const a=[{...n,offset:n.offset+s.length,content:o}];return s&&a.unshift({content:s,offset:n.offset}),i&&a.push({content:i,offset:n.offset+s.length+o.length}),a}))}function x1(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const s=n[n.length-1],o=ia(s.htmlStyle||ro(s)),i=ia(r.htmlStyle||ro(r)),a=s.fontStyle&&(s.fontStyle&Ue.Underline||s.fontStyle&Ue.Strikethrough),l=r.fontStyle&&(r.fontStyle&Ue.Underline||r.fontStyle&Ue.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}const S1=Gv;function k1(e,t,n){const r={meta:{},options:n,codeToHast:(o,i)=>ao(e,o,i),codeToTokens:(o,i)=>io(e,o,i)};let s=S1(ao(e,t,n,r));for(const o of so(n))s=o.postprocess?.call(r,s,n)||s;return s}const Zc={light:"#333333",dark:"#bbbbbb"},Qc={light:"#fffffe",dark:"#1e1e1e"},eu="__shiki_resolved";function ol(e){if(e?.[eu])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const a=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(r=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?Zc.light:Zc.dark),n||(n=t.type==="light"?Qc.light:Qc.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 s=0;const o=new Map;function i(a){if(o.has(a))return o.get(a);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(a):(o.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),u=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!u)return a;const c={...a,settings:{...a.settings}};if(l){const f=i(a.settings.foreground);t.colorReplacements[f]=a.settings.foreground,c.settings.foreground=f}if(u){const f=i(a.settings.background);t.colorReplacements[f]=a.settings.background,c.settings.background=f}return c});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=i(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,eu,{enumerable:!1,writable:!1,value:!0}),t}async function xh(e){return Array.from(new Set((await Promise.all(e.filter(t=>!qv(t)).map(async t=>await _h(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Sh(e){return(await Promise.all(e.map(async n=>Kv(n)?null:ol(await _h(n))))).filter(n=>!!n)}let A1=3;function E1(e,t=3){t>A1||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class Gn extends Error{constructor(t){super(t),this.name="ShikiError"}}class T1 extends $0{constructor(t,n,r,s={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=ol(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Ys.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new Gn(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const s=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(s.name=t.name,this._resolvedGrammars.set(t.name,s),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const s of t)this.resolveEmbeddedLanguages(s);const n=Array.from(this._langGraph.entries()),r=n.filter(([s,o])=>!o);if(r.length){const s=n.filter(([o,i])=>i&&i.embeddedLangs?.some(a=>r.map(([l])=>l).includes(a))).filter(o=>!r.includes(o));throw new Gn(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[s,o]of n)this._resolver.addLanguage(o);for(const[s,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class $1{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let mr=0;function R1(e){mr+=1,e.warnings!==!1&&mr>=10&&mr%10===0&&console.warn(`[Shiki] ${mr} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Gn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(ol),s=new $1(e.engine,n),o=new T1(s,r,n,e.langAlias);let i;function a(w){b();const m=o.getGrammar(typeof w=="string"?w:w.name);if(!m)throw new Gn(`Language \`${w}\` not found, you may need to load it first`);return m}function l(w){if(w==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const m=o.getTheme(w);if(!m)throw new Gn(`Theme \`${w}\` not found, you may need to load it first`);return m}function u(w){b();const m=l(w);i!==w&&(o.setTheme(m),i=w);const v=o.getColorMap();return{theme:m,colorMap:v}}function c(){return b(),o.getLoadedThemes()}function f(){return b(),o.getLoadedLanguages()}function d(...w){b(),o.loadLanguages(w.flat(1))}async function h(...w){return d(await xh(w))}function p(...w){b();for(const m of w.flat(1))o.loadTheme(m)}async function g(...w){return b(),p(await Sh(w))}function b(){if(t)throw new Gn("Shiki instance has been disposed")}function _(){t||(t=!0,o.dispose(),mr-=1)}return{setTheme:u,getTheme:l,getLanguage:a,getLoadedThemes:c,getLoadedLanguages:f,loadLanguage:h,loadLanguageSync:d,loadTheme:g,loadThemeSync:p,dispose:_,[Symbol.dispose]:_}}async function P1(e){e.engine||E1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Sh(e.themes||[]),xh(e.langs||[]),e.engine]);return R1({...e,themes:t,langs:n,engine:r})}async function N1(e){const t=await P1(e);return{getLastGrammarState:(...n)=>h1(t,...n),codeToTokensBase:(n,r)=>sl(t,n,r),codeToTokensWithThemes:(n,r)=>Ch(t,n,r),codeToTokens:(n,r)=>io(t,n,r),codeToHast:(n,r)=>ao(t,n,r),codeToHtml:(n,r)=>k1(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function ur(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function I1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const il=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Pe=String.raw;function fr(e,t){if(e==null)throw new Error(t??"Value expected");return e}const kh=Pe`\[\^?`,Ah=`c.? | C(?:-.?)?|${Pe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Pe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Pe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Pe`o\{[^\}]*\}?`}|${Pe`\d{1,3}`}`,al=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,hs=new RegExp(Pe`
|
|
31
|
+
\\ (?:
|
|
32
|
+
${Ah}
|
|
33
|
+
| [gk]<[^>]*>?
|
|
34
|
+
| [gk]'[^']*'?
|
|
35
|
+
| .
|
|
36
|
+
)
|
|
37
|
+
| \( (?:
|
|
38
|
+
\? (?:
|
|
39
|
+
[:=!>({]
|
|
40
|
+
| <[=!]
|
|
41
|
+
| <[^>]*>
|
|
42
|
+
| '[^']*'
|
|
43
|
+
| ~\|?
|
|
44
|
+
| #(?:[^)\\]|\\.?)*
|
|
45
|
+
| [^:)]*[:)]
|
|
46
|
+
)?
|
|
47
|
+
| \*[^\)]*\)?
|
|
48
|
+
)?
|
|
49
|
+
| (?:${al.source})+
|
|
50
|
+
| ${kh}
|
|
51
|
+
| .
|
|
52
|
+
`.replace(/\s+/g,""),"gsu"),pi=new RegExp(Pe`
|
|
53
|
+
\\ (?:
|
|
54
|
+
${Ah}
|
|
55
|
+
| .
|
|
56
|
+
)
|
|
57
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
58
|
+
| ${kh}
|
|
59
|
+
| &&
|
|
60
|
+
| .
|
|
61
|
+
`.replace(/\s+/g,""),"gsu");function L1(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=Q1(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(f){s.push(f)},replaceCurrentModX(f){s[s.length-1]=f},singleline:n.rules.singleline};let i=[],a;for(hs.lastIndex=0;a=hs.exec(e);){const f=O1(o,e,a[0],hs.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(hs.lastIndex=f.lastIndex)}const l=[];let u=0;i.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++u:f.raw==="("&&l.push(f)}),u||l.forEach((f,d)=>{f.kind="capturing",f.number=d+1});const c=u||l.length;return{tokens:i.map(f=>f.type==="EscapedNumber"?tC(f,c):f).flat(),flags:r}}function O1(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=M1(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:tu(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:V1(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Th(n)}}if(o==="K")return{token:$h("keep",n)};if(o==="N"||o==="R")return{token:yn("newline",n,{negate:o==="N"})};if(o==="O")return{token:yn("any",n)};if(o==="X")return{token:yn("text_segment",n)};const i=Eh(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:J1(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:X1(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Bn("group",n)};if(n==="(?>")return{token:Bn("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Bn(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Bn("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Bn("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:G1(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
|
|
62
|
+
`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:yn("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Pe`\A`,$:Pe`\Z`}[n]:n;return{token:tu(i,n)}}return n==="|"?{token:H1(n)}:al.test(n)?{tokens:nC(n)}:{token:Mt(ur(n),n)}}function M1(e,t,n){const r=[nu(t[1]==="^",t)];let s=1,o;for(pi.lastIndex=n;o=pi.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(nu(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Mt(93,i));else if(s--,r.push(B1(i)),!s)break}else{const a=D1(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:pi.lastIndex||e.length}}function D1(e){if(e[0]==="\\")return Eh(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!il.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return yn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?F1(e):e==="&&"?j1(e):Mt(ur(e),e)}function Eh(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return K1(e);if("dDhHsSwW".includes(n))return Y1(e);if(e.startsWith(Pe`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return Z1(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...s].map(i=>{const a=[...o.encode(i)].map(l=>`\\x${l.toString(16)}`).join("");return Mt(ur(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Mt(eC(e),e);if(ru.has(n))return Mt(ru.get(n),e);if(/\d/.test(n))return U1(t,e);if(e==="\\")throw new Error(Pe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Mt(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function H1(e){return{type:"Alternator",raw:e}}function tu(e,t){return{type:"Assertion",kind:e,raw:t}}function Th(e){return{type:"Backreference",raw:e}}function Mt(e,t){return{type:"Character",value:e,raw:t}}function B1(e){return{type:"CharacterClassClose",raw:e}}function F1(e){return{type:"CharacterClassHyphen",raw:e}}function j1(e){return{type:"CharacterClassIntersector",raw:e}}function nu(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function yn(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function $h(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:fr(n.flags),raw:t}}function U1(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function G1(e){return{type:"GroupClose",raw:e}}function Bn(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function W1(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function z1(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function V1(e){return{type:"Subroutine",raw:e}}const q1=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),ru=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function K1(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Mt(ur(t.toUpperCase())-64,e)}function X1(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=ou(n),i=ou(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),$h("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,Bn("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function J1(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:s}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=s?s.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[i,a,l]=o,u=q1.has(n)?n.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${a}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof a=="number"||!/^(?:[<>!=]=|[<>])$/.test(a))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${a}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return W1(u,r??null,s?.split(",")??null,e)}function su(e){let t=null,n,r;if(e[0]==="{"){const{minStr:s,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+s>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+s,r=o===void 0?+s:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return z1(t,n,r,e)}function Y1(e){const t=e[1].toLowerCase();return yn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function Z1(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return yn("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function ou(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function Q1(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function eC(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function tC(e,t){const{raw:n,inCharClass:r}=e,s=n.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=t))return[Th(n)];const o=[],i=s.match(/^[0-7]+|\d/g);for(let a=0;a<i.length;a++){const l=i[a];let u;if(a===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(Pe`Octal encoded byte above 177 unsupported "${n}"`)}else u=ur(l);o.push(Mt(u,(a===0?"\\":"")+l))}return o}function nC(e){const t=[],n=new RegExp(al,"gy");let r;for(;r=n.exec(e);){const s=r[0];if(s[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(s);if(o){const{min:i,max:a}=o.groups;if(+i>+a&&s.endsWith("?")){n.lastIndex--,t.push(su(s.slice(0,-1)));continue}}}t.push(su(s))}return t}function Rh(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function rC(e){return sC.has(e.type)}const sC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Ph(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=L1(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(d,h)=>{const p=r.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,p.type){case"Alternator":return An();case"Assertion":return oC(p);case"Backreference":return iC(p,o);case"Character":return Mo(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return aC(p,o,h);case"CharacterClassOpen":return lC(p,o,h);case"CharacterSet":return cC(p,o);case"Directive":return gC(p.kind,{flags:p.flags});case"GroupOpen":return uC(p,o,h);case"NamedCallout":return yC(p.kind,p.tag,p.arguments);case"Quantifier":return fC(p,o);case"Subroutine":return dC(p,o);default:throw new Error(`Unexpected token type "${p.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},i=bC(mC(r.flags));let a=i.body[0];for(;o.nextIndex<r.tokens.length;){const d=s(a,{});d.type==="Alternative"?(i.body.push(d),a=d):a.body.push(d)}const{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:c,subroutines:f}=o;if(u&&c.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of f)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined");d&&(l[d-1].isSubroutined=!0)}else if(c.has(d)){if(c.get(d).length>1)throw new Error(Pe`Subroutine uses a duplicate group name "\g<${d}>"`);c.get(d)[0].isSubroutined=!0}else throw new Error(Pe`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function oC({kind:e}){return aa(fr({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Pe`\B`||e===Pe`\Y`})}function iC({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),s=(o,i=!1)=>{const a=t.capturingGroups.length;let l=!1;if(o>a)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,la(i?a+1-o:o,{orphan:l})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return la(r)}return s(+r)}function aC(e,t,n){const{tokens:r,walk:s}=t,o=t.parent,i=o.body.at(-1),a=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&a&&a.type!=="CharacterClassOpen"&&a.type!=="CharacterClassClose"&&a.type!=="CharacterClassIntersector"){const l=s(o,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&l.type==="Character")return o.body.pop(),pC(i,l);throw new Error("Invalid character class range")}return Mo(ur("-"))}function lC({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[As()];let a=lu(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push(As()),t.nextIndex++;else{const u=i.at(-1);u.body.push(s(u,n))}a=lu(r[t.nextIndex],o)}const l=As({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function cC({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const a=Do(n);if(il.has(a)&&!i?.has(a))e="posix",n=a;else return Fn(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?_C(n,{negate:t}):ca(e,{negate:t})}function uC(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=wC(e),u=l.type==="AbsenceFunction",c=au(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&I1(o,l.name,[]).push(l)),u&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=cu(r[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(An()),t.nextIndex++;else{const h=l.body.at(-1),p=a(h,{...n,isInAbsenceFunction:n.isInAbsenceFunction||u,isInLookbehind:n.isInLookbehind||c,isInNegLookbehind:n.isInNegLookbehind||f});if(h.body.push(p),(c||n.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(iu(p)||p.type==="CapturingGroup")throw new Error(g)}else if(iu(p)||au(p)&&p.negate)throw new Error(g)}}d=cu(r[t.nextIndex])}return t.nextIndex++,l}function fC({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!rC(o))throw new Error("Quantifier requires a repeatable token");const i=Ih(e,t,n,o);return s.body.pop(),i}function dC({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let s=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const a=+o.groups.num,l=n.length;if(t.hasNumberedRef=!0,s={"":a,"+":l+a,"-":l+1-a}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const i=Lh(s);return r.push(i),i}function hC(e,t){return{type:"AbsenceFunction",kind:e,body:Zr(t?.body)}}function An(e){return{type:"Alternative",body:Oh(e?.body)}}function aa(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function la(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Nh(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!vC(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Zr(t?.body)}}function Mo(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function As(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Oh(e?.body)}}function pC(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function ca(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function gC(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:fr(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function mC(e){return{type:"Flags",...e}}function ft(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:Zr(e?.body)}}function gn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Zr(e?.body)}}function yC(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function _C(e,t){const n=!!t?.negate;if(!il.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Ih(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function bC(e,t){return{type:"Regex",body:Zr(t?.body),flags:e}}function Lh(e){return{type:"Subroutine",ref:e}}function Fn(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(Do(e));if(!r){if(n.normalizeUnknownPropertyNames)r=CC(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Pe`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function wC({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return hC("repeater");case"atomic":return ft({atomic:!0});case"capturing":return Nh(s,{name:n});case"group":return ft({flags:e});case"lookahead":case"lookbehind":return gn({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Zr(e){if(e===void 0)e=[An()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function Oh(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function iu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function au(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function vC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function CC(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Do(e){return e.replace(/[- _]+/g,"").toLowerCase()}function lu(e,t){return fr(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function cu(e){return fr(e,"Unclosed group")}function Nr(e,t,n=null){function r(o,i){for(let a=0;a<o.length;a++){const l=s(o[a],i,a,o);a=Math.max(-1,a+l)}}function s(o,i=null,a=null,l=null){let u=0,c=!1;const f={node:o,parent:i,key:a,container:l,root:e,remove(){ps(l).splice(Math.max(0,On(a)+u),1),u--,c=!0},removeAllNextSiblings(){return ps(l).splice(On(a)+1)},removeAllPrevSiblings(){const _=On(a)+u;return u-=_,ps(l).splice(0,Math.max(0,_))},replaceWith(_,w={}){const m=!!w.traverse;l?l[Math.max(0,On(a)+u)]=_:fr(i,"Can't replace root node")[a]=_,m&&s(_,i,a,l),c=!0},replaceWithMultiple(_,w={}){const m=!!w.traverse;if(ps(l).splice(Math.max(0,On(a)+u),1,..._),u+=_.length-1,m){let v=0;for(let C=0;C<_.length;C++)v+=s(_[C],i,On(a)+C+v,l)}c=!0},skip(){c=!0}},{type:d}=o,h=t["*"],p=t[d],g=typeof h=="function"?h:h?.enter,b=typeof p=="function"?p:p?.enter;if(g?.(f,n),b?.(f,n),!c)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":r(o.body,o);break;case"Alternative":case"CharacterClass":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":s(o.min,o,"min"),s(o.max,o,"max");break;case"LookaroundAssertion":r(o.body,o);break;case"Quantifier":s(o.body,o,"body");break;case"Regex":r(o.body,o),s(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return p?.exit?.(f,n),h?.exit?.(f,n),u}return s(e),e}function ps(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function On(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const xC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function SC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function kC(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const ot=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ll(e,t,n,r){const s=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let i=0,a="";for(const l of e.matchAll(s)){const{0:u,groups:{$skip:c}}=l;if(!c&&(!r||r===ot.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?ot.CHAR_CLASS:ot.DEFAULT,negated:o[o.length-1]}):a+=n;continue}u[0]==="["?(i++,o.push(u[1]==="^")):u==="]"&&i&&(i--,o.pop()),a+=u}return a}function Mh(e,t,n,r){ll(e,t,n,r)}function AC(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const s=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=n;let o=0,i;for(;i=s.exec(e);){const{0:a,groups:{$skip:l}}=i;if(!l&&(!r||r===ot.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function gs(e,t,n){return!!AC(e,t,0,n)}function EC(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,s=0,o=1,i;for(;i=n.exec(e);){const[a]=i;if(a==="[")s++;else if(s)a==="]"&&s--;else if(a==="(")o++;else if(a===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const uu=new RegExp(String.raw`(?<noncapturingStart>${xC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function TC(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",i=[0],a=[];let l=0,u=0,c=NaN,f;do{f=!1;let d=0,h=0,p=!1,g;for(uu.lastIndex=Number.isNaN(c)?0:c+o.length;g=uu.exec(e);){const{0:b,index:_,groups:{capturingStart:w,noncapturingStart:m}}=g;if(b==="[")d++;else if(d)b==="]"&&d--;else if(b===s&&!p)c=_,p=!0;else if(p&&m)h++;else if(w)p?h++:(l++,i.push(l+u));else if(b===")"&&p){if(!h){u++;const v=l+u;if(e=`${e.slice(0,c)}${o}${e.slice(c+s.length,_)}))<$$${v}>)${e.slice(_+1)}`,f=!0,a.push(v),SC(n,v),r.size){const C=new Map;r.forEach((S,P)=>{C.set(P>=v?P+1:P,S.map(F=>F>=v?F+1:F))}),r=C}break}h--}}}while(f);return n.push(...a),e=ll(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:p}})=>{if(h){const g=+h;if(g>i.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${i[g]}`}return`\\${p}`},ot.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Dh=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,gi=new RegExp(String.raw`
|
|
63
|
+
\\(?: \d+
|
|
64
|
+
| c[A-Za-z]
|
|
65
|
+
| [gk]<[^>]+>
|
|
66
|
+
| [pPu]\{[^\}]+\}
|
|
67
|
+
| u[A-Fa-f\d]{4}
|
|
68
|
+
| x[A-Fa-f\d]{2}
|
|
69
|
+
)
|
|
70
|
+
| \((?: \? (?: [:=!>]
|
|
71
|
+
| <(?:[=!]|[^>]+>)
|
|
72
|
+
| [A-Za-z\-]+:
|
|
73
|
+
| \(DEFINE\)
|
|
74
|
+
))?
|
|
75
|
+
| (?<qBase>${Dh})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
76
|
+
| \\?.
|
|
77
|
+
`.replace(/\s+/g,""),"gsu");function $C(e){if(!new RegExp(`${Dh}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(gi.lastIndex=0;i=gi.exec(e);){const{0:a,index:l,groups:{qBase:u,qMod:c,invalidQ:f}}=i;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(c==="+"&&s&&!s.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${a}"`);let d=-1;if(/^\{\d+\}$/.test(u))e=kC(e,l+u.length,c,"");else{if(s===")"||s==="]"){const h=s===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,h)}(?>${e.slice(h,l)}${u})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${u})${e.slice(l+a.length)}`;d+=4}gi.lastIndex+=d}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const rt=String.raw,RC=rt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,ua=rt`\(\?R=(?<rDepth>[^\)]+)\)|${RC}`,Ho=rt`\(\?<(?![=!])(?<captureName>[^>]+)>`,Hh=rt`${Ho}|(?<unnamed>\()(?!\?)`,fn=new RegExp(rt`${Ho}|${ua}|\(\?|\\?.`,"gsu"),mi="Cannot use multiple overlapping recursions";function PC(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=t?.captureTransfers??new Map;if(!new RegExp(ua,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&gs(e,rt`\(\?\(DEFINE\)`,ot.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=gs(e,rt`\\[1-9]`,ot.DEFAULT),a=new Map,l=[];let u=!1,c=0,f=0,d;for(fn.lastIndex=0;d=fn.exec(e);){const{0:h,groups:{captureName:p,rDepth:g,gRNameOrNum:b,gRDepth:_}}=d;if(h==="[")c++;else if(c)h==="]"&&c--;else if(g){if(fu(g),u)throw new Error(mi);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const w=e.slice(0,d.index),m=e.slice(fn.lastIndex);if(gs(m,ua,ot.DEFAULT))throw new Error(mi);const v=+g-1;e=du(w,m,v,!1,n,o,f),s=pu(s,w,v,o.length,0,f);break}else if(b){fu(_);let w=!1;for(const W of l)if(W.name===b||W.num===+b){if(w=!0,W.hasRecursedWithin)throw new Error(mi);break}if(!w)throw new Error(rt`Recursive \g cannot be used outside the referenced group "${r==="external"?b:rt`\g<${b}&R=${_}>`}"`);const m=a.get(b),v=EC(e,m);if(i&&gs(v,rt`${Ho}|\((?!\?)`,ot.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(m,d.index),S=v.slice(C.length+h.length),P=o.length,F=+_-1,G=du(C,S,F,!0,n,o,f);s=pu(s,C,F,o.length-P,P,f);const N=e.slice(0,m),q=e.slice(m+v.length);e=`${N}${G}${q}`,fn.lastIndex+=G.length-h.length-C.length-S.length,l.forEach(W=>W.hasRecursedWithin=!0),u=!0}else if(p)f++,a.set(String(f),fn.lastIndex),a.set(p,fn.lastIndex),l.push({num:f,name:p});else if(h[0]==="("){const w=h==="(";w&&(f++,a.set(String(f),fn.lastIndex)),l.push(w?{num:f}:{})}else h===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function fu(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function du(e,t,n,r,s,o,i){const a=new Set;r&&Mh(e+t,Ho,({groups:{captureName:u}})=>{a.add(u)},ot.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${hu(`(?:${e}`,"forward",...l)}(?:)${hu(`${t})`,"backward",...l)}${t}`}function hu(e,t,n,r,s,o,i){const l=c=>t==="forward"?c+2:n-c+2-1;let u="";for(let c=0;c<n;c++){const f=l(c);u+=ll(e,rt`${Hh}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return d;const b=`_$${f}`;if(p||h){const _=i+o.length+1;return o.push(_),NC(s,_),p?d:`(?<${h}${b}>`}return rt`\k<${g}${b}>`},ot.DEFAULT)}return u}function NC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function pu(e,t,n,r,s,o){if(e.size&&r){let i=0;Mh(t,Hh,()=>i++,ot.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((u,c)=>{const f=(r-i*n)/n,d=i*n,h=c>a+i?c+r:c,p=[];for(const g of u)if(g<=a)p.push(g);else if(g>a+i+f)p.push(g+r);else if(g<=a+i)for(let b=0;b<=n;b++)p.push(g+i*b);else for(let b=0;b<=n;b++)p.push(g+d+f*b);l.set(h,p)}),l}return e}var Te=String.fromCodePoint,ne=String.raw,Ht={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Ht.bugFlagVLiteralHyphenIsRange=Ht.unicodeSets?(()=>{try{new RegExp(ne`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Ht.bugNestedClassIgnoresNegation=Ht.unicodeSets&&new RegExp("[[^a]]","v").test("a");function lo(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Vr(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function fa(e,t){return gu[e]>=gu[t]}function IC(e,t){if(e==null)throw new Error(t??"Value expected");return e}var gu={ES2025:2025,ES2024:2024,ES2018:2018},LC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Bh(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!LC[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Ht.flagGroups?"ES2025":Ht.unicodeSets?"ES2024":"ES2018"),t}var OC="[ -\r ]",MC=new Set([Te(304),Te(305)]),Rt=ne`[\p{L}\p{M}\p{N}\p{Pc}]`;function Fh(e){if(MC.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=BC.get(n),o=DC.get(n),i=HC.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),s&&t.add(s),t.add(n),o&&t.add(o),[...t]}var cl=new Map(`C Other
|
|
78
|
+
Cc Control cntrl
|
|
79
|
+
Cf Format
|
|
80
|
+
Cn Unassigned
|
|
81
|
+
Co Private_Use
|
|
82
|
+
Cs Surrogate
|
|
83
|
+
L Letter
|
|
84
|
+
LC Cased_Letter
|
|
85
|
+
Ll Lowercase_Letter
|
|
86
|
+
Lm Modifier_Letter
|
|
87
|
+
Lo Other_Letter
|
|
88
|
+
Lt Titlecase_Letter
|
|
89
|
+
Lu Uppercase_Letter
|
|
90
|
+
M Mark Combining_Mark
|
|
91
|
+
Mc Spacing_Mark
|
|
92
|
+
Me Enclosing_Mark
|
|
93
|
+
Mn Nonspacing_Mark
|
|
94
|
+
N Number
|
|
95
|
+
Nd Decimal_Number digit
|
|
96
|
+
Nl Letter_Number
|
|
97
|
+
No Other_Number
|
|
98
|
+
P Punctuation punct
|
|
99
|
+
Pc Connector_Punctuation
|
|
100
|
+
Pd Dash_Punctuation
|
|
101
|
+
Pe Close_Punctuation
|
|
102
|
+
Pf Final_Punctuation
|
|
103
|
+
Pi Initial_Punctuation
|
|
104
|
+
Po Other_Punctuation
|
|
105
|
+
Ps Open_Punctuation
|
|
106
|
+
S Symbol
|
|
107
|
+
Sc Currency_Symbol
|
|
108
|
+
Sk Modifier_Symbol
|
|
109
|
+
Sm Math_Symbol
|
|
110
|
+
So Other_Symbol
|
|
111
|
+
Z Separator
|
|
112
|
+
Zl Line_Separator
|
|
113
|
+
Zp Paragraph_Separator
|
|
114
|
+
Zs Space_Separator
|
|
115
|
+
ASCII
|
|
116
|
+
ASCII_Hex_Digit AHex
|
|
117
|
+
Alphabetic Alpha
|
|
118
|
+
Any
|
|
119
|
+
Assigned
|
|
120
|
+
Bidi_Control Bidi_C
|
|
121
|
+
Bidi_Mirrored Bidi_M
|
|
122
|
+
Case_Ignorable CI
|
|
123
|
+
Cased
|
|
124
|
+
Changes_When_Casefolded CWCF
|
|
125
|
+
Changes_When_Casemapped CWCM
|
|
126
|
+
Changes_When_Lowercased CWL
|
|
127
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
128
|
+
Changes_When_Titlecased CWT
|
|
129
|
+
Changes_When_Uppercased CWU
|
|
130
|
+
Dash
|
|
131
|
+
Default_Ignorable_Code_Point DI
|
|
132
|
+
Deprecated Dep
|
|
133
|
+
Diacritic Dia
|
|
134
|
+
Emoji
|
|
135
|
+
Emoji_Component EComp
|
|
136
|
+
Emoji_Modifier EMod
|
|
137
|
+
Emoji_Modifier_Base EBase
|
|
138
|
+
Emoji_Presentation EPres
|
|
139
|
+
Extended_Pictographic ExtPict
|
|
140
|
+
Extender Ext
|
|
141
|
+
Grapheme_Base Gr_Base
|
|
142
|
+
Grapheme_Extend Gr_Ext
|
|
143
|
+
Hex_Digit Hex
|
|
144
|
+
IDS_Binary_Operator IDSB
|
|
145
|
+
IDS_Trinary_Operator IDST
|
|
146
|
+
ID_Continue IDC
|
|
147
|
+
ID_Start IDS
|
|
148
|
+
Ideographic Ideo
|
|
149
|
+
Join_Control Join_C
|
|
150
|
+
Logical_Order_Exception LOE
|
|
151
|
+
Lowercase Lower
|
|
152
|
+
Math
|
|
153
|
+
Noncharacter_Code_Point NChar
|
|
154
|
+
Pattern_Syntax Pat_Syn
|
|
155
|
+
Pattern_White_Space Pat_WS
|
|
156
|
+
Quotation_Mark QMark
|
|
157
|
+
Radical
|
|
158
|
+
Regional_Indicator RI
|
|
159
|
+
Sentence_Terminal STerm
|
|
160
|
+
Soft_Dotted SD
|
|
161
|
+
Terminal_Punctuation Term
|
|
162
|
+
Unified_Ideograph UIdeo
|
|
163
|
+
Uppercase Upper
|
|
164
|
+
Variation_Selector VS
|
|
165
|
+
White_Space space
|
|
166
|
+
XID_Continue XIDC
|
|
167
|
+
XID_Start XIDS`.split(/\s/).map(e=>[Do(e),e])),DC=new Map([["s",Te(383)],[Te(383),"s"]]),HC=new Map([[Te(223),Te(7838)],[Te(107),Te(8490)],[Te(229),Te(8491)],[Te(969),Te(8486)]]),BC=new Map([Vt(453),Vt(456),Vt(459),Vt(498),...yi(8072,8079),...yi(8088,8095),...yi(8104,8111),Vt(8124),Vt(8140),Vt(8188)]),FC=new Map([["alnum",ne`[\p{Alpha}\p{Nd}]`],["alpha",ne`\p{Alpha}`],["ascii",ne`\p{ASCII}`],["blank",ne`[\p{Zs}\t]`],["cntrl",ne`\p{Cc}`],["digit",ne`\p{Nd}`],["graph",ne`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ne`\p{Lower}`],["print",ne`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ne`[\p{P}\p{S}]`],["space",ne`\p{space}`],["upper",ne`\p{Upper}`],["word",ne`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ne`\p{AHex}`]]);function jC(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Vt(e){const t=Te(e);return[t.toLowerCase(),t]}function yi(e,t){return jC(e,t).map(n=>Vt(n))}var jh=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function UC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Uh(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:fa(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Nr(e,GC,r);const s={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};Nr(e,WC,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Nr(e,zC,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var GC={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=ft();o.body[0].body.push(gn({negate:!0,body:r}),Fn("Any"));const i=ft();i.body[0].body.push(Ih("greedy",0,1/0,o)),n(ve(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++){const i=t.body[o];Vr(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=Wh(t.get(e));if(n){const r=ft({flags:n});r.body[0].body=e.body,e.body=[ve(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:i},a){const{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:f,supportedGNodes:d,wordIsAscii:h}=a;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")i(ve(gn({body:[An({body:[aa("string_end")]}),An({body:[Mo(10)]})]}),t));else if(l==="line_start")i(ve(Pt(ne`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(d.has(e))s.flags.sticky=!0,o();else{const p=r[n-1];if(p&&YC(p))i(ve(gn({negate:!0}),t));else{if(f)throw new Error(ne`Uses "\G" in a way that requires a subclass`);i(qt(aa("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(ve(Pt(ne`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!h&&!c){const p=`(?:(?<=${Rt})(?!${Rt})|(?<!${Rt})(?=${Rt}))`,g=`(?:(?<=${Rt})(?=${Rt})|(?<!${Rt})(?!${Rt}))`;i(ve(Pt(u?g:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!bi(n)&&(n=_i(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!bi(r)&&(r=_i(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=As({body:[e]});n(ve(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:a}){const{kind:l,negate:u,value:c}=e;if(o&&(l==="digit"||c==="digit")){n(qt(ca("digit",{negate:u}),t));return}if(i&&(l==="space"||c==="space")){n(ve(wi(Pt(OC),u),t));return}if(a&&(l==="word"||c==="word")){n(qt(ca("word",{negate:u}),t));return}if(l==="any")n(qt(Fn("Any"),t));else if(l==="digit")n(qt(Fn("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(ne`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=ne`\p{RI}{2}|${f}(?:\u200D${f})*`;n(ve(Pt(ne`(?>\r\n|${s?ne`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(qt(Fn("AHex",{negate:u}),t));else if(l==="newline")n(ve(Pt(u?`[^
|
|
168
|
+
]`:`(?>\r
|
|
169
|
+
?|[
|
|
170
|
+
\v\f
\u2028\u2029])`),t));else if(l==="posix")if(!s&&(c==="graph"||c==="print")){if(r==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[c];u&&(f=`\0-${Te(f.codePointAt(0)-1)}${Te(f.codePointAt(2)+1)}-`),n(ve(Pt(`[${f}]`),t))}else n(ve(wi(Pt(FC.get(c)),u),t));else if(l==="property")cl.has(Do(c))||(e.key="sc");else if(l==="space")n(qt(Fn("space",{negate:u}),t));else if(l==="word")n(ve(wi(Pt(Rt),u),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:i}){const{kind:a,flags:l}=e;if(a==="flags")if(!l.enable&&!l.disable)r();else{const u=ft({flags:l});u.body[0].body=i(),s(ve(u,t),{traverse:!0})}else if(a==="keep"){const u=n.body[0],f=n.body.length===1&&Rh(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(ne`Uses "\K" in a way that's unsupported`);const d=gn({behind:!0});d.body[0].body=o(),s(ve(d,t))}else throw new Error(`Unexpected directive kind "${a}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(ve(gn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=ft();t.body[0].body.push(e.body),e.body=ve(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,s=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const i=Vh(o.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):s=!0}r&&!s&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(ne`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!bi(n)&&(n=_i(n,t),e.ref=n)}},WC={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:s}=e;r||n.set(e,[...t.get(s).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:a,reffedNodesByReferencer:l}){const u=s.get(e);if(u&&a.has(e.number)){const f=qt(mu(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&Vr(i,e.name,[]);const c=i.get(e.name??e.number);for(let f=0;f<c.length;f++){const d=c[f];if(u===d.node||u&&u===d.origin||e===d.origin){c.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:u}),e.name&&i.get(e.name).push({node:e,origin:u}),e.name){const f=Vr(o,e.name,new Map);let d=!1;if(u)d=!0;else for(const h of f.values())if(!h.hasDuplicateNameToRemove){d=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:d})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=lo(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:s,ref:o}=e;if(s){let c=t;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===o||c.number===o)););r.reffedNodesByReferencer.set(e,c);return}const i=r.subroutineRefMap.get(o),a=o===0,l=a?mu(0):Gh(i,r.groupOriginByCopy,null);let u=l;if(!a){const c=Wh(KC(i,d=>d.type==="Group"&&!!d.flags)),f=c?lo(r.globalFlags,c):r.globalFlags;VC(f,r.currentFlags)||(u=ft({flags:XC(f)}),u.body[0].body.push(l))}n(ve(u,t),{traverse:!a})}},zC={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const o=r.reffedNodesByReferencer.get(e).filter(i=>qC(i,e));if(!o.length)n(ve(gn({negate:!0}),t));else if(o.length>1){const i=ft({atomic:!0,body:o.reverse().map(a=>An({body:[la(a.number)]}))});n(ve(i,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const s=Nh();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Uh(e){Nr(e,{"*"({node:t,parent:n}){t.parent=n}})}function VC(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function qC(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=zh(n.parent);for(const s of r){if(s===n)break;if(s===e||qh(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Gh(e,t,n,r){const s=Array.isArray(e)?[]:{};for(const[o,i]of Object.entries(e))o==="parent"?s.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?s[o]=Gh(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function mu(e){const t=Lh(e);return t.isRecursive=!0,t}function KC(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function _i(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function Wh(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{r.enable?.[s]&&(delete n.disable[s],n.enable[s]=!0),r.disable?.[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function XC({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function zh(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Vh(e){const t=e.find(n=>n.kind==="search_start"||ZC(n,{negate:!1})||!JC(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const s=Vh(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function qh(e,t){const n=zh(e)??[];for(const r of n)if(r===t||qh(r,t))return!0;return!1}function JC({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function YC(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function ZC(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Rh(e.body[0],{type:"Assertion",kind:"search_start"})}function bi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Pt(e,t){const r=Ph(e,{...t,unicodePropertyMap:cl}).body;return r.length>1||r[0].body.length>1?ft({body:r}):r[0].body[0]}function wi(e,t){return e.negate=t,e}function qt(e,t){return e.parent=t,e}function ve(e,t){return Uh(e),e.parent=t,e}function QC(e,t){const n=Bh(t),r=fa(n.target,"ES2024"),s=fa(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!s){const h=[e.flags.ignoreCase];Nr(e,ex,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(p){h.push(p)},setHasCasedChar(){h.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!a)};let u=e;const c={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&a),useFlagMods:s,useFlagV:r,verbose:n.verbose};function f(h){return c.lastNode=u,u=h,IC(tx[h.type],`Unexpected node type "${h.type}"`)(h,c,f)}const d={pattern:e.body.map(f).join("|"),flags:f(e.flags),options:{...e.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],c.captureMap.forEach((h,p)=>{h.hidden&&d._hiddenCaptures.push(p),h.transferTo&&Vr(d._captureTransfers,h.transferTo,[]).push(p)}),d}var ex={"*":{enter({node:e},t){if(_u(e)){const n=t.getCurrentModI();t.pushModI(e.flags?lo({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){_u(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ul(Te(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Kh(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&jh.has(e.value)&&t.setHasCasedChar()}},tx={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?ne`\B`:ne`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:s,number:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(i.hidden=!0,o>a.number&&(i.transferTo=a.number)),t.captureMap.set(o,i),`(${s?`?<${s}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Te(e),r=Mn(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&ul(n)){const s=Fh(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:s,parent:o}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");Ht.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(bu)&&(i=[Mo(45),...i.filter(u=>!bu(u))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Ht.bugNestedClassIgnoresNegation)&&!s){const c=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=ft(),d=f.body[0];return f.parent=o,d.parent=f,i=i.filter(h=>!c.includes(h)),e.body=i,i.length?(e.parent=d,d.body.push(e)):f.body.pop(),c.forEach(h=>{const p=An({body:[h]});h.parent=p,p.parent=f,f.body.push(p)}),n(f)}}t.inCharClass=!0;const u=a();return t.inCharClass=!1,u}const l=i[0];if(r==="union"&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(Ht.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&l.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Use of nested character class requires min target ES2024");return a()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=Mn(n,s),i=Mn(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Kh(e);ix(l).forEach(c=>{a.add(Array.isArray(c)?`${Mn(c[0],s)}-${Mn(c[1],s)}`:Mn(c,s))})}return`${o}-${i}${[...a].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},s){if(e==="dot")return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":ne`[^\n]`;if(e==="digit")return t?ne`\D`:ne`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&jh.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ne`\P`:ne`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?ne`\W`:ne`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},s,o){const i=s.currentFlags;n&&(s.currentFlags=lo(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${ax(e,n,s.useFlagMods)}${a})`;return s.currentFlags=i,l},LookaroundAssertion({body:e,kind:t,negate:n},r,s){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(s).join("|")})`},Quantifier(e,t,n){return n(e.body)+lx(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:ne`\g<${t}&R=${r}>`}},nx=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),rx=new Set(["-","\\","]","^","["]),sx=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),yu=new Map([[9,ne`\t`],[10,ne`\n`],[11,ne`\v`],[12,ne`\f`],[13,ne`\r`],[8232,ne`\u2028`],[8233,ne`\u2029`],[65279,ne`\uFEFF`]]),ox=new RegExp("^\\p{Cased}$","u");function ul(e){return ox.test(e)}function Kh(e,t){const n=!!t?.firstOnly,r=e.min.value,s=e.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let i=r;i<=s;i++){const a=Te(i);if(!ul(a))continue;const l=Fh(a).filter(u=>{const c=u.codePointAt(0);return c<r||c>s});if(l.length&&(o.push(...l),n))break}return o}function Mn(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(yu.has(e))return yu.get(e);if(e<32||e>126&&e<160||e>262143||t&&cx(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?sx:rx:nx,o=Te(e);return(s.has(o)?"\\":"")+o}function ix(e){const t=e.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[];let r=null;for(let s=0;s<t.length;s++)t[s+1]===t[s]+1?r??=t[s]:r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function ax(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function lx({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function _u({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function cx(e){return e>47&&e<58}function bu({type:e,value:t}){return e==="Character"&&t===45}var ux=class da extends RegExp{#t=new Map;#e=null;#r;#n=null;#s=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,n,r){const s=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),this.#r=o.source,o instanceof da&&(this.#t=o.#t,this.#n=o.#n,this.#s=o.#s,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(s?"":t,n),this.#r=t,this.#t=dx(o.hiddenCaptures,o.transfers),this.#s=o.strategy,this.rawOptions=r??{}}s||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:s,...o}=this.rawOptions;this.#e=new da(this.#r,this.flags,o)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#s==="clip_search"&&n&&r){this.lastIndex=0;const s=this.#o(t.slice(r));return s&&(fx(s,r,t,this.hasIndices),this.lastIndex+=r),s}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let s;this.hasIndices&&(s=[...n.indices],n.indices.length=1);const o=[0];for(let i=1;i<r.length;i++){const{hidden:a,transferTo:l}=this.#t.get(i)??{};if(a?o.push(null):(o.push(n.length),n.push(r[i]),this.hasIndices&&n.indices.push(s[i])),l&&r[i]!==void 0){const u=o[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(n[u]=r[i],this.hasIndices&&(n.indices[u]=s[i]),n.groups){this.#n||(this.#n=hx(this.source));const c=this.#n.get(l);c&&(n.groups[c]=r[i],this.hasIndices&&(n.indices.groups[c]=s[i]))}}}return n}};function fx(e,t,n,r){if(e.index+=t,e.input=n,r){const s=e.indices;for(let i=0;i<s.length;i++){const a=s[i];a&&(s[i]=[a[0]+t,a[1]+t])}const o=s.groups;o&&Object.keys(o).forEach(i=>{const a=o[i];a&&(o[i]=[a[0]+t,a[1]+t])})}}function dx(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,s]of t)for(const o of s)Vr(n,o,{}).transferTo=r;return n}function hx(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,s=0,o;for(;o=t.exec(e);){const{0:i,groups:{capture:a,name:l}}=o;i==="["?r++:r?i==="]"&&r--:a&&(s++,l&&n.set(s,l))}return n}function px(e,t){const n=gx(e,t);return n.options?new ux(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function gx(e,t){const n=Bh(t),r=Ph(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:cl}),s=UC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=QC(s,n),i=PC(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=$C(i.pattern),l=TC(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),u={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=l.hiddenCaptures.sort((p,g)=>p-g),f=Array.from(l.captureTransfers),d=s._strategy,h=u.pattern.length>=n.lazyCompileLength;(c.length||f.length||d||h)&&(u.options={...c.length&&{hiddenCaptures:c},...f.length&&{transfers:f},...d&&{strategy:d},...h&&{lazyCompile:h}})}return u}const wu=4294967295;class mx{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:s,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const a=s?.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s?.set(i,l),l}catch(l){if(s?.set(i,l),r)return null;throw l}})}regexps;findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function i(a,l,u=0){return{index:a,captureIndices:l.indices.map(c=>c==null?{start:wu,end:wu,length:0}:{start:c[0]+u,end:c[1]+u,length:c[1]-c[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const u=l.exec(s);if(!u)continue;if(u.index===n)return i(a,u,0);o.push([a,u,0])}catch(u){if(this.options.forgiving)continue;throw u}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,u,c]of o)if(u.index===a)return i(l,u,c)}return null}}function yx(e,t){return px(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function _x(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>yx(n,{target:t.target}),{createScanner(n){return new mx(n,t)},createString(n){return{content:n}}}}let bx;const yr=[];function wx(e){if(yr.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&yr.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&yr.forEach(n=>n(t))},get(){return bx.value},configurable:!0}),()=>{yr.splice(yr.indexOf(e),1)}}const Be=Ee(null);async function Xh(){ha.value&&(Be.value=await ha.value("/__sitemap__/debug.json"))}const ha=Ee(),Jh=Ee(),Yh=Ee();wx(async e=>{ha.value=e.host.app.$fetch,Af(()=>{Yh.value=e.host.app.colorMode.value}),Jh.value=e.devtools,Xh()});const Zh=Ee();function vx(){return N1({themes:[Ar(()=>import("./CVO1_9PV.js"),[],import.meta.url),Ar(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[Ar(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:_x()}).then(e=>{Zh.value=e})}function Cx(e,t){return ke(()=>{const n=Jh.value?.colorMode||"light";return Zh.value.codeToHtml(Dt(e),{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const xx=["innerHTML"],Sx=mt({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=ke(()=>{const r=Cx(t.code,"json");return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(B(),ee("pre",{class:Ae(["n-code-block",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,xx))}}),Qh=Object.assign(Sx,{__name:"OCodeBlock"}),kx={flex:"~ gap-3","items-center":""},Ax={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(B(),ee("div",kx,[e.icon?(B(),ee("div",{key:0,class:Ae(e.icon)},null,2)):Le("",!0),qe(t.$slots,"default",{},()=>[I("div",null,Ne(e.text),1)])]))}};function Ex(e){return ba()?(_p(e),!0):!1}const Tx=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $x=e=>typeof e<"u",Rx=Object.prototype.toString,Px=e=>Rx.call(e)==="[object Object]",Nx=()=>{};function Ix(...e){if(e.length!==1)return Aa(...e);const t=e[0];return typeof t=="function"?mo(Up(()=>({get:t,set:Nx}))):Ee(t)}function Lx(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const ep=e=>e();function Ox(e=ep,t={}){const{initialState:n="active"}=t,r=Ix(n==="active");function s(){r.value=!1}function o(){r.value=!0}const i=(...a)=>{r.value&&e(...a)};return{isActive:mo(r),pause:s,resume:o,eventFilter:i}}function vi(e){return Array.isArray(e)?e:[e]}function Mx(e){return En()}function Dx(e,t,n={}){const{eventFilter:r=ep,...s}=n;return Zt(e,Lx(r,t),s)}function Hx(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:u}=Ox(r,{initialState:s});return{stop:Dx(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:u}}function Bx(e,t=!0,n){Mx()?Pa(e,n):t?e():ar(e)}function Fx(e,t,n){return Zt(e,t,{...n,immediate:!0})}const co=Tx?window:void 0;function jx(e){var t;const n=Dt(e);return(t=n?.$el)!=null?t:n}function vu(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,u,c)=>(a.addEventListener(l,u,c),()=>a.removeEventListener(l,u,c)),s=ke(()=>{const a=vi(Dt(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=Fx(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(u=>jx(u)))!=null?l:[co].filter(u=>u!=null),vi(Dt(s.value?e[1]:e[0])),vi(oe(s.value?e[2]:e[1])),Dt(s.value?e[3]:e[2])]},([a,l,u,c])=>{if(n(),!a?.length||!l?.length||!u?.length)return;const f=Px(c)?{...c}:c;t.push(...a.flatMap(d=>l.flatMap(h=>u.map(p=>r(d,h,p,f)))))},{flush:"post"}),i=()=>{o(),n()};return Ex(n),i}function Ux(e){return JSON.parse(JSON.stringify(e))}const ms=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ys="__vueuse_ssr_handlers__",Gx=Wx();function Wx(){return ys in ms||(ms[ys]=ms[ys]||{}),ms[ys]}function zx(e,t){return Gx[e]||t}function Vx(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const qx={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Cu="vueuse-storage";function Kx(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=co,eventFilter:d,onError:h=L=>{console.error(L)},initOnMounted:p}=r,g=(c?Rs:Ee)(t),b=ke(()=>Dt(e));if(!n)try{n=zx("getDefaultStorage",()=>{var L;return(L=co)==null?void 0:L.localStorage})()}catch(L){h(L)}if(!n)return g;const _=Dt(t),w=Vx(_),m=(s=r.serializer)!=null?s:qx[w],{pause:v,resume:C}=Hx(g,L=>N(L),{flush:o,deep:i,eventFilter:d});Zt(b,()=>W(),{flush:o});let S=!1;const P=L=>{p&&!S||W(L)},F=L=>{p&&!S||Q(L)};f&&a&&(n instanceof Storage?vu(f,"storage",P,{passive:!0}):vu(f,Cu,F)),p?Bx(()=>{S=!0,W()}):W();function G(L,K){if(f){const O={key:b.value,oldValue:L,newValue:K,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Cu,{detail:O}))}}function N(L){try{const K=n.getItem(b.value);if(L==null)G(K,null),n.removeItem(b.value);else{const O=m.write(L);K!==O&&(n.setItem(b.value,O),G(K,O))}}catch(K){h(K)}}function q(L){const K=L?L.newValue:n.getItem(b.value);if(K==null)return l&&_!=null&&n.setItem(b.value,m.write(_)),_;if(!L&&u){const O=m.read(K);return typeof u=="function"?u(O,_):w==="object"&&!Array.isArray(O)?{..._,...O}:O}else return typeof K!="string"?K:m.read(K)}function W(L){if(!(L&&L.storageArea!==n)){if(L&&L.key==null){g.value=_;return}if(!(L&&L.key!==b.value)){v();try{const K=m.write(g.value);(L===void 0||L?.newValue!==K)&&(g.value=q(L))}catch(K){h(K)}finally{L?ar(C):C()}}}}function Q(L){W(L.detail)}return g}function Xx(e,t,n={}){const{window:r=co}=n;return Kx(e,t,r?.localStorage,n)}function Jx(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f,shouldEmit:d}=r,h=En(),p=h?.emit||((s=h?.$emit)==null?void 0:s.bind(h))||((i=(o=h?.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(h?.proxy));let g=u;g=g||`update:${t.toString()}`;const b=m=>a?typeof a=="function"?a(m):Ux(m):m,_=()=>$x(e[t])?b(e[t]):f,w=m=>{d?d(m)&&p(g,m):p(g,m)};if(l){const m=_(),v=Ee(m);let C=!1;return Zt(()=>e[t],S=>{C||(C=!0,v.value=b(S),ar(()=>C=!1))}),Zt(v,S=>{!C&&(S!==e[t]||c)&&w(S)},{deep:c}),v}else return ke({get(){return _()},set(m){w(m)}})}const Yx=["open"],Zx={"text-base":""},Qx={key:0,"text-sm":"",op50:""},eS=mt({__name:"OSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(e){const n=Jx(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=Ja,a=Ax;return B(),ee(_e,null,[I("details",{open:oe(n),onToggle:r},[I("summary",{class:Ae(["cursor-pointer select-none n-bg-active hover:bg-active p4 rounded transition-all",s.collapse?"":"pointer-events-none"])},[z(a,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:Ae([oe(n)?"op100":"op60",s.headerClass])},{default:se(()=>[I("div",null,[I("div",Zx,[qe(s.$slots,"text",{},()=>[ie(Ne(s.text),1)],!0)]),s.description||s.$slots.description?(B(),ee("div",Qx,[qe(s.$slots,"description",{},()=>[ie(Ne(s.description),1)],!0)])):Le("",!0)]),o[0]||(o[0]=I("div",{class:"flex-auto"},null,-1)),qe(s.$slots,"actions",{},void 0,!0),s.collapse?(B(),be(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):Le("",!0)]),_:3},8,["icon","text","class"])],2),I("div",{class:Ae(["flex flex-col flex-gap2 pb6 pt2",typeof s.padding=="string"?s.padding:s.padding?"px4":""])},[qe(s.$slots,"details",{},void 0,!0),I("div",{class:Ae([s.containerClass,"mt1"])},[qe(s.$slots,"default",{},void 0,!0)],2),qe(s.$slots,"footer",{},void 0,!0)],2)],40,Yx),o[1]||(o[1]=I("div",{class:"x-divider"},null,-1))],64)}}}),tp=Object.assign(Io(eS,[["__scopeId","data-v-1b9488bc"]]),{__name:"OSectionBlock"}),tS={class:"flex space-x-5"},nS={class:"opacity-80 text-base mb-1 flex space-x-3 items-center"},rS={key:0,class:"flex space-x-2"},sS={key:0,class:"opacity-60 text-sm"},oS={class:"flex items-center space-x-3"},iS={key:0},aS={key:1,class:"text-xs mt-1 opacity-70"},lS={key:0},cS={key:2,class:"px-3 py-3 mt-2 dark:bg-gray-900/50 bg-gray-50/50 opacity-70"},uS={class:"list-disc ml-5"},fS=["innerHTML"],dS=mt({__name:"Source",props:{source:{},showContext:{type:Boolean}},setup(e){const t=e,n=ke(()=>{const s=typeof t.source.fetch=="string"?t.source.fetch:t.source.fetch[0];return s.includes("http")?s:Tn(Be.value?.nitroOrigin||"localhost",s)});function r(s){return s.replace(/`([^`]+)`/g,"<code>$1</code>")}return(s,o)=>{const i=Ja,a=Ud,l=Gd,u=Qh,c=tp;return B(),be(c,null,{text:se(()=>[I("div",tS,[I("h3",nS,[s.source.fetch?(B(),ee("div",rS,[z(i,{icon:"carbon:api-1",class:"opacity-50 text-lg"}),s.source.timeTakenMs?(B(),ee("div",sS,Ne(s.source.timeTakenMs)+"ms ",1)):Le("",!0)])):Le("",!0),I("div",null,Ne(s.source.context.name),1),I("div",null,[z(a,null,{default:se(()=>[ie(Ne(s.source.urls?.length||0),1)]),_:1})])])])]),description:se(()=>[I("div",oS,[s.source.fetch?(B(),ee("div",iS,[z(l,{href:n.value,target:"_blank"},{default:se(()=>[ie(Ne(s.source.fetch),1)]),_:1},8,["href"])])):Le("",!0),s.source.context.description?(B(),ee("div",aS,Ne(s.source.context.description),1)):Le("",!0)])]),default:se(()=>[s.source.error?(B(),ee("div",lS,[z(i,{icon:"carbon:warning",class:"text-red-500"}),ie(" "+Ne(s.source.error),1)])):(B(),be(u,{key:1,class:"max-h-[250px] overflow-y-auto",code:JSON.stringify(s.source.urls,null,2),lang:"json"},null,8,["code"])),s.source.context.tips?.length?(B(),ee("div",cS,[o[0]||(o[0]=I("h3",{class:"text-sm font-bold mb-1"}," Hints ",-1)),I("ul",uS,[(B(!0),ee(_e,null,Hn(s.source.context.tips,(f,d)=>(B(),ee("li",{key:d,class:"text-sm opacity-80 mb-1",innerHTML:r(f)},null,8,fS))),128))])])):Le("",!0)]),_:1})}}}),hS=Object.assign(dS,{__name:"Source"}),pS={class:"relative n-bg-base flex flex-col"},gS={class:"sticky top-0 z-2 px-4 pt-4"},mS={class:"flex justify-between items-start",mb2:""},yS={class:"flex space-x-5"},_S={"text-xl":"",flex:"","items-center":"","gap-2":""},bS={class:"flex items-center space-x-3 text-xl"},wS={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},vS={class:"px-5 py-2"},CS={"text-lg":"",flex:"","items-center":""},xS={class:"px-5 py-2"},SS={"text-lg":"",flex:"","items-center":""},kS={class:"px-5 py-2"},AS={"text-lg":"",flex:"","items-center":""},ES={class:"px-5 py-2"},TS={"text-lg":"",flex:"","items-center":""},$S={class:"px-5 py-2"},RS={"text-lg":"",flex:"","items-center":""},PS=["value","title"],NS={class:"items-center space-x-3 hidden lg:flex"},IS={class:"opacity-80 text-sm"},LS={class:"opacity-80 text-sm"},OS={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},MS={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},DS={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},HS={key:0,class:"space-y-5"},BS={class:"opacity-80 text-base mb-1"},FS={class:"px-3 py-2 space-y-5"},jS={key:0},US={class:"text-sm opacity-70"},GS={key:0,class:"flex space-x-5"},WS={class:"flex-grow"},zS={class:"flex space-x-5"},VS={class:"flex-grow flex flex-col justify-center"},qS={key:0,class:"opacity-70"},KS={key:1,class:"opacity-70"},XS={class:"opacity-50 text-xs mt-2"},JS={class:"flex space-x-5"},YS={class:"n-bg-base/20 flex-grow"},ZS={key:1,class:"space-y-5"},QS={key:2,class:"space-y-5"},ek={key:3,class:"h-full max-h-full overflow-hidden"},tk={class:"opacity-80 text-base mb-1"},nk={class:"px-3 py-2 space-y-5"},rk={key:4,class:"h-full max-h-full overflow-hidden"},sk=mt({__name:"app",async setup(e){let t,n;[t,n]=bg(()=>vx()),await t,n();const r=Ee(!1);async function s(){r.value=!0,Be.value=null,await Xh(),setTimeout(()=>{r.value=!1},300)}const o=Xx("@nuxtjs/sitemap:tab","sitemaps");function i(f){return Be.value?f==="sitemap"||f==="sitemap.xml"?`${Be.value.nitroOrigin}sitemap.xml`:f==="index"?`${Be.value.nitroOrigin}sitemap_index.xml`:Tn(Be.value.nitroOrigin,Be.value.runtimeConfig?.sitemapsPathPrefix||"",`${f}-sitemap.xml`):""}function a(f){const d={};return Object.entries(f).forEach(([h,p])=>{p!==void 0&&(!Array.isArray(p)||p.length>0)&&h!=="includeAppSources"&&(d[h]=p)}),d}j_({htmlAttrs:{class:()=>Yh.value||""}});const l=ke(()=>Be.value?.runtimeConfig?.excludeAppSources||[]),u=ke(()=>(Be.value?.globalSources||[]).filter(f=>f.sourceType==="app")),c=ke(()=>(Be.value?.globalSources||[]).filter(f=>f.sourceType==="user"));return(f,d)=>{const h=Ja,p=Ud,g=rn("VTooltip"),b=Gd,_=Hw,w=Gw,m=hS,v=Qh,C=tp;return B(),ee("div",pS,[I("header",gS,[I("div",mS,[I("div",yS,[I("h1",_S,[z(h,{icon:"carbon:load-balancer-application",class:"text-blue-300"}),d[2]||(d[2]=ie(" Sitemap ",-1)),z(p,{class:"text-sm"},{default:se(()=>[ie(Ne(oe(Be)?.runtimeConfig?.version),1)]),_:1})])]),I("div",bS,[I("fieldset",wS,[(B(),ee(_e,null,Hn(["sitemaps","user-sources","app-sources","debug","docs"],(S,P)=>I("label",{key:P,class:Ae(["relative n-border-base hover:n-bg-active cursor-pointer",[P?"border-l n-border-base ml--1px":"",S===oe(o)?"n-bg-active":""]])},[S==="sitemaps"?(B(),ee("div",{key:0,class:Ae([S===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[3]||(d[3]=[ie(" Sitemaps ",-1)])]),default:se(()=>[I("div",vS,[I("h2",CS,[z(h,{icon:"carbon:load-balancer-application opacity-50"}),z(p,{class:"text-sm"},{default:se(()=>[ie(Ne(Object.keys(oe(Be)?.sitemaps||{}).length||0),1)]),_:1})])])]),_:1})],2)):Le("",!0),S==="user-sources"?(B(),ee("div",{key:1,class:Ae([S===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[4]||(d[4]=[ie(" User Sources ",-1)])]),default:se(()=>[I("div",xS,[I("h2",SS,[z(h,{icon:"carbon:group-account opacity-50"}),z(p,{class:"text-sm"},{default:se(()=>[ie(Ne(c.value.length),1)]),_:1})])])]),_:1})],2)):Le("",!0),S==="app-sources"?(B(),ee("div",{key:2,class:Ae([S===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[5]||(d[5]=[ie(" App Sources ",-1)])]),default:se(()=>[I("div",kS,[I("h2",AS,[z(h,{icon:"carbon:bot opacity-50"}),z(p,{class:"text-sm"},{default:se(()=>[ie(Ne(u.value.length),1)]),_:1})])])]),_:1})],2)):S==="debug"?(B(),ee("div",{key:3,class:Ae([S===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[6]||(d[6]=[ie(" Debug ",-1)])]),default:se(()=>[I("div",ES,[I("h2",TS,[z(h,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):S==="docs"?(B(),ee("div",{key:4,class:Ae([S===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[7]||(d[7]=[ie(" Documentation ",-1)])]),default:se(()=>[I("div",$S,[I("h2",RS,[z(h,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):Le("",!0),tg(I("input",{"onUpdate:modelValue":d[0]||(d[0]=F=>Ce(o)?o.value=F:null),type:"radio",value:S,title:S,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,PS),[[Rm,oe(o)]])],2)),64))]),z(g,null,{popper:se(()=>[...d[8]||(d[8]=[ie(" Refresh ",-1)])]),default:se(()=>[I("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:s},[z(h,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),I("div",NS,[I("div",IS,[z(b,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:se(()=>[z(h,{icon:"carbon:favorite",class:"mr-[2px]"}),d[9]||(d[9]=ie(" Sponsor ",-1))]),_:1})]),I("div",LS,[z(b,{href:"https://github.com/nuxt-modules/sitemap",target:"_blank"},{default:se(()=>[z(h,{icon:"logos:github-icon",class:"mr-[2px]"}),d[10]||(d[10]=ie(" Submit an issue ",-1))]),_:1})]),I("a",OS,[z(_)])])])]),I("div",MS,[I("main",DS,[!oe(Be)?.globalSources||r.value?(B(),be(w,{key:0})):(B(),ee(_e,{key:1},[oe(o)==="sitemaps"?(B(),ee("div",HS,[d[23]||(d[23]=I("div",null,[I("h2",{class:"text-lg mb-1"}," Sitemaps "),I("p",{"text-xs":"",op60:""}," The sitemaps generated from your site. ")],-1)),(B(!0),ee(_e,null,Hn(oe(Be).sitemaps,(S,P)=>(B(),be(C,{key:P},{text:se(()=>[I("h3",BS,[ie(Ne(S.sitemapName)+" ",1),(S.sources||[]).some(F=>!!F.error)?(B(),be(h,{key:0,icon:"carbon:warning",class:"text-red-500"})):Le("",!0)])]),description:se(()=>[z(b,{target:"_blank",href:i(S.sitemapName)},{default:se(()=>[ie(Ne(i(S.sitemapName)),1)]),_:2},1032,["href"])]),default:se(()=>[I("div",FS,[S.sitemapName==="index"?(B(),ee("div",jS,[d[14]||(d[14]=I("div",{class:"text-sm mb-1 opacity-80"}," This is a special sitemap file that links to your other sitemaps. ",-1)),I("div",US,[d[12]||(d[12]=ie(" You can learn about this on the ",-1)),z(b,{underline:"",target:"_blank",href:"https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps"},{default:se(()=>[...d[11]||(d[11]=[ie(" Google Search Central ",-1)])]),_:1}),d[13]||(d[13]=ie(". ",-1))])])):(B(),ee(_e,{key:1},[S.sources&&S.sources.length?(B(),ee("div",GS,[d[15]||(d[15]=I("div",{class:"w-40"},[I("div",{class:"font-bold text-sm mb-1"}," Sources "),I("div",{class:"opacity-40 text-xs max-w-60"},[ie(" Local sources associated with just this sitemap."),I("br"),ie("Example: Load in a dynamic list of URLs from an API endpoint. ")])],-1)),I("div",WS,[(B(!0),ee(_e,null,Hn(S.sources,(F,G)=>(B(),be(m,{key:G,source:F},null,8,["source"]))),128))])])):Le("",!0),I("div",zS,[d[21]||(d[21]=I("div",{class:"w-40"},[I("div",{class:"font-bold text-sm mb-1"}," App Sources "),I("div",{class:"opacity-40 text-xs max-w-60"},[ie(" Configured with the "),I("code",null,"includeAppSources"),ie(" option. ")])],-1)),I("div",VS,[S.includeAppSources&&l.value!==!0?(B(),ee("div",qS,[z(h,{icon:"carbon:checkmark",class:"text-green-500 text-lg"}),d[16]||(d[16]=ie(" Enabled ",-1))])):(B(),ee("div",KS,[z(h,{icon:"carbon:close",class:"text-red-500 text-lg"}),d[17]||(d[17]=ie(" Disabled ",-1))])),I("div",XS,[d[19]||(d[19]=ie(" Switch to ",-1)),z(b,{underline:"",class:"cursor-pointer",onClick:d[1]||(d[1]=F=>o.value="app-sources")},{default:se(()=>[...d[18]||(d[18]=[ie(" App sources ",-1)])]),_:1}),d[20]||(d[20]=ie(" to learn more. ",-1))])])]),I("div",JS,[d[22]||(d[22]=I("div",{class:"w-40"},[I("div",{class:"font-bold text-sm mb-1"}," Sitemap Options "),I("div",{class:"opacity-40 text-xs max-w-60"}," Extra options used to filter the URLs on the final sitemap and set defaults. ")],-1)),I("div",YS,[z(v,{class:"max-h-[350px] min-h-full overflow-y-auto",code:JSON.stringify(a(S),null,2),lang:"json"},null,8,["code"])])])],64))])]),_:2},1024))),128))])):oe(o)==="app-sources"?(B(),ee("div",ZS,[d[24]||(d[24]=I("div",null,[I("h2",{class:"text-lg mb-1"}," App Sources "),I("p",{"text-xs":"",op60:""}," Automatic global sources generated from your application. ")],-1)),(B(!0),ee(_e,null,Hn(u.value,(S,P)=>(B(),be(m,{key:P,source:S},null,8,["source"]))),128))])):oe(o)==="user-sources"?(B(),ee("div",QS,[d[25]||(d[25]=I("div",null,[I("h2",{class:"text-lg mb-1"}," User Sources "),I("p",{"text-xs":"",op60:""}," Manually provided global sources provided by you. ")],-1)),(B(!0),ee(_e,null,Hn(c.value,(S,P)=>(B(),be(m,{key:P,source:S},null,8,["source"]))),128))])):oe(o)==="debug"?(B(),ee("div",ek,[z(C,null,{text:se(()=>[I("h3",tk,[z(h,{icon:"carbon:settings",class:"mr-1"}),d[26]||(d[26]=ie(" Runtime Config ",-1))])]),default:se(()=>[I("div",nk,[z(v,{code:JSON.stringify(oe(Be)?.runtimeConfig,null,2),lang:"json"},null,8,["code"])])]),_:1})])):oe(o)==="docs"?(B(),ee("div",rk,[...d[27]||(d[27]=[I("iframe",{src:"https://nuxtseo.com/sitemap",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)])])):Le("",!0)],64))])])])}}}),ok={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
171
|
+
`).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(`
|
|
172
|
+
`);const r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=s?Sl(()=>Ar(()=>import("./CVMmb_pX.js"),__vite__mapDeps([0,1]),import.meta.url)):Sl(()=>Ar(()=>import("./rHMUQZkV.js"),__vite__mapDeps([2,3]),import.meta.url));return(f,d)=>(B(),be(oe(c),Ru(Ma({statusCode:oe(r),statusMessage:oe(o),description:oe(i),stack:oe(a)})),null,16))}},ik={key:0},xu={__name:"nuxt-root",setup(e){const t=()=>null,n=xe(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Et().beforeEach(u)}const s=!1;hf(ad,ld()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const o=ja(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;sf((u,c,f)=>{if(n.hooks.callHook("vue:error",u,c,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,u),!1;if(a_(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>o_(u)),!1});const l=!1;return(u,c)=>(B(),be(qg,{onResolve:oe(r)},{default:se(()=>[oe(i)?(B(),ee("div",ik)):oe(o)?(B(),be(oe(ok),{key:1,error:oe(o)},null,8,["error"])):oe(l)?(B(),be(oe(t),{key:2,context:oe(l)},null,8,["context"])):oe(s)?(B(),be(yg(oe(s)),{key:3})):(B(),be(oe(sk),{key:4}))]),_:1},8,["onResolve"]))}};let Su;{let e;Su=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?Mm(xu):Ff(xu),s=zy({vueApp:r});async function o(i){await s.callHook("app:error",i),s.payload.error||=Ua(i)}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&Zl.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(Zl.id)?.remove()});try{await Ky(s,Rw)}catch(i){o(i)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Uy),await s.hooks.callHook("app:mounted",r),await ar()}catch(i){o(i)}return r},e=Su().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Io as _,I as a,z as b,ee as c,ie as d,fb as e,B as o,Ne as t,j_ as u,se as w};
|