@nuxtjs/sitemap 7.4.2 → 7.4.3
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 +7 -7
- package/dist/client/404.html +7 -7
- package/dist/client/_nuxt/{K8nf0nmV.js → CnQ734Pf.js} +19 -19
- package/dist/client/_nuxt/{fos25x15.js → DrLDkm_a.js} +1 -1
- package/dist/client/_nuxt/{ChlW3cCD.js → DyQhad1I.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/bdc97cc6-8746-4e08-aaf6-c2b5c273d5b5.json +1 -0
- package/dist/client/_nuxt/error-404.rTOVQ3Ki.css +1 -0
- package/dist/client/_nuxt/error-500.BtbPDLpj.css +1 -0
- package/dist/client/index.html +7 -7
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -2
- 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/sitemap/nitro.js +1 -1
- package/package.json +7 -7
- package/dist/client/_nuxt/builds/meta/c404a32a-6c86-4c3c-8fc9-542298112da2.json +0 -1
- package/dist/client/_nuxt/error-404.rdc6e5v3.css +0 -1
- package/dist/client/_nuxt/error-500.CRTYI814.css +0 -1
- package/dist/runtime/server/composables/getPathRobotConfigPolyfill.js +0 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./
|
|
2
|
-
var yp=Object.defineProperty;var _p=Object.getPrototypeOf;var wp=Reflect.get;var Pl=e=>{throw TypeError(e)};var bp=(e,t,n)=>t in e?yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var k=(e,t,n)=>bp(e,typeof t!="symbol"?t+"":t,n),ti=(e,t,n)=>t.has(e)||Pl("Cannot "+n);var ze=(e,t,n)=>(ti(e,t,"read from private field"),n?n.call(e):t.get(e)),_n=(e,t,n)=>t.has(e)?Pl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ht=(e,t,n,r)=>(ti(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ni=(e,t,n)=>(ti(e,t,"access private method"),n);var
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DrLDkm_a.js","./error-404.rTOVQ3Ki.css","./DyQhad1I.js","./error-500.BtbPDLpj.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var yp=Object.defineProperty;var _p=Object.getPrototypeOf;var wp=Reflect.get;var Pl=e=>{throw TypeError(e)};var bp=(e,t,n)=>t in e?yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var k=(e,t,n)=>bp(e,typeof t!="symbol"?t+"":t,n),ti=(e,t,n)=>t.has(e)||Pl("Cannot "+n);var ze=(e,t,n)=>(ti(e,t,"read from private field"),n?n.call(e):t.get(e)),_n=(e,t,n)=>t.has(e)?Pl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ht=(e,t,n,r)=>(ti(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ni=(e,t,n)=>(ti(e,t,"access private method"),n);var Il=(e,t,n)=>wp(_p(e),n,t);(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
3
|
* @vue/shared v3.5.17
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
5
|
* @license MIT
|
|
6
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
6
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Ia(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pe={},tr=[],At=()=>{},vp=()=>!1,os=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Na=e=>e.startsWith("onUpdate:"),We=Object.assign,Oa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Cp=Object.prototype.hasOwnProperty,fe=(e,t)=>Cp.call(e,t),Z=Array.isArray,nr=e=>is(e)==="[object Map]",Bu=e=>is(e)==="[object Set]",Nl=e=>is(e)==="[object Date]",Q=e=>typeof e=="function",ve=e=>typeof e=="string",wt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Ma=e=>(ge(e)||Q(e))&&Q(e.then)&&Q(e.catch),Fu=Object.prototype.toString,is=e=>Fu.call(e),xp=e=>is(e).slice(8,-1),ju=e=>is(e)==="[object Object]",La=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rr=Ia(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),So=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Sp=/-(\w)/g,ut=So(e=>e.replace(Sp,(t,n)=>n?n.toUpperCase():"")),kp=/\B([A-Z])/g,gn=So(e=>e.replace(kp,"-$1").toLowerCase()),ko=So(e=>e.charAt(0).toUpperCase()+e.slice(1)),ri=So(e=>e?`on${ko(e)}`:""),sn=(e,t)=>!Object.is(e,t),Is=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Di=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ap=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ep=e=>{const t=ve(e)?Number(e):NaN;return isNaN(t)?e:t};let Ol;const Ao=()=>Ol||(Ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rn(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ve(r)?Pp(r):Rn(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(ve(e)||ge(e))return e}const Tp=/;(?![^(]*\))/g,$p=/:([^]+)/,Rp=/\/\*[^]*?\*\//g;function Pp(e){const t={};return e.replace(Rp,"").split(Tp).forEach(n=>{if(n){const r=n.split($p);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ke(e){let t="";if(ve(e))t=e;else if(Z(e))for(let n=0;n<e.length;n++){const r=ke(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Uu(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ve(t)&&(e.class=ke(t)),n&&(e.style=Rn(n)),e}const Ip="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Np=Ia(Ip);function Gu(e){return!!e||e===""}function Op(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=js(e[r],t[r]);return n}function js(e,t){if(e===t)return!0;let n=Nl(e),r=Nl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=wt(e),r=wt(t),n||r)return e===t;if(n=Z(e),r=Z(t),n||r)return n&&r?Op(e,t):!1;if(n=ge(e),r=ge(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||!js(e[i],t[i]))return!1}}return String(e)===String(t)}const Wu=e=>!!(e&&e.__v_isRef===!0),Me=e=>ve(e)?e:e==null?"":Z(e)||ge(e)&&(e.toString===Fu||!Q(e.toString))?Wu(e)?Me(e.value):JSON.stringify(e,zu,2):String(e),zu=(e,t)=>Wu(t)?zu(e,t.value):nr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[si(r,o)+" =>"]=s,n),{})}:Bu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>si(n))}:wt(t)?si(t):ge(t)&&!Z(t)&&!ju(t)?String(t):t,si=(e,t="")=>{var n;return wt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
7
|
* @vue/reactivity v3.5.17
|
|
8
8
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
9
|
* @license MIT
|
|
10
|
-
**/let je;class Vu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=je,!t&&je&&(this.index=(je.scopes||(je.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=je;try{return je=this,t()}finally{je=n}}}on(){++this._on===1&&(this.prevScope=je,je=this)}off(){this._on>0&&--this._on===0&&(je=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 Op(e){return new Vu(e)}function Da(){return je}function Lp(e,t=!1){je&&je.cleanups.push(e)}let _e;const oi=new WeakSet;class qu{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,je&&je.active&&je.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,oi.has(this)&&(oi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ol(this),Ju(this);const t=_e,n=mt;_e=this,mt=!0;try{return this.fn()}finally{Yu(this),_e=t,mt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fa(t);this.deps=this.depsTail=void 0,Ol(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?oi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hi(this)&&this.run()}get dirty(){return Hi(this)}}let Ku=0,Pr,Nr;function Xu(e,t=!1){if(e.flags|=8,t){e.next=Nr,Nr=e;return}e.next=Pr,Pr=e}function Ha(){Ku++}function Ba(){if(--Ku>0)return;if(Nr){let t=Nr;for(Nr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Pr;){let t=Pr;for(Pr=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 Ju(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yu(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Fa(r),Dp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Hi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wr)||(e.globalVersion=Wr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Hi(e))))return;e.flags|=2;const t=e.dep,n=_e,r=mt;_e=e,mt=!0;try{Ju(e);const s=e.fn(e._value);(t.version===0||sn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_e=n,mt=r,Yu(e),e.flags&=-3}}function Fa(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)Fa(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Dp(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let mt=!0;const Qu=[];function Wt(){Qu.push(mt),mt=!1}function zt(){const e=Qu.pop();mt=e===void 0?!0:e}function Ol(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_e;_e=void 0;try{t()}finally{_e=n}}}let Wr=0;class Hp{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 Ao{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(!_e||!mt||_e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_e)n=this.activeLink=new Hp(_e,this),_e.deps?(n.prevDep=_e.depsTail,_e.depsTail.nextDep=n,_e.depsTail=n):_e.deps=_e.depsTail=n,ef(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=_e.depsTail,n.nextDep=void 0,_e.depsTail.nextDep=n,_e.depsTail=n,_e.deps===n&&(_e.deps=r)}return n}trigger(t){this.version++,Wr++,this.notify(t)}notify(t){Ha();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ba()}}}function ef(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)ef(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Us=new WeakMap,Pn=Symbol(""),Bi=Symbol(""),zr=Symbol("");function Ue(e,t,n){if(mt&&_e){let r=Us.get(e);r||Us.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ao),s.map=r,s.key=n),s.track()}}function Ht(e,t,n,r,s,o){const i=Us.get(e);if(!i){Wr++;return}const a=l=>{l&&l.trigger()};if(Ha(),t==="clear")i.forEach(a);else{const l=Z(e),u=l&&La(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===zr||!wt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(zr)),t){case"add":l?u&&a(i.get("length")):(a(i.get(Pn)),nr(e)&&a(i.get(Bi)));break;case"delete":l||(a(i.get(Pn)),nr(e)&&a(i.get(Bi)));break;case"set":nr(e)&&a(i.get(Pn));break}}Ba()}function Bp(e,t){const n=Us.get(e);return n&&n.get(t)}function Wn(e){const t=ue(e);return t===e?t:(Ue(t,"iterate",zr),ct(e)?t:t.map(Le))}function To(e){return Ue(e=ue(e),"iterate",zr),e}const Fp={__proto__:null,[Symbol.iterator](){return ii(this,Symbol.iterator,Le)},concat(...e){return Wn(this).concat(...e.map(t=>Z(t)?Wn(t):t))},entries(){return ii(this,"entries",e=>(e[1]=Le(e[1]),e))},every(e,t){return It(this,"every",e,t,void 0,arguments)},filter(e,t){return It(this,"filter",e,t,n=>n.map(Le),arguments)},find(e,t){return It(this,"find",e,t,Le,arguments)},findIndex(e,t){return It(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return It(this,"findLast",e,t,Le,arguments)},findLastIndex(e,t){return It(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return It(this,"forEach",e,t,void 0,arguments)},includes(...e){return ai(this,"includes",e)},indexOf(...e){return ai(this,"indexOf",e)},join(e){return Wn(this).join(e)},lastIndexOf(...e){return ai(this,"lastIndexOf",e)},map(e,t){return It(this,"map",e,t,void 0,arguments)},pop(){return kr(this,"pop")},push(...e){return kr(this,"push",e)},reduce(e,...t){return Ll(this,"reduce",e,t)},reduceRight(e,...t){return Ll(this,"reduceRight",e,t)},shift(){return kr(this,"shift")},some(e,t){return It(this,"some",e,t,void 0,arguments)},splice(...e){return kr(this,"splice",e)},toReversed(){return Wn(this).toReversed()},toSorted(e){return Wn(this).toSorted(e)},toSpliced(...e){return Wn(this).toSpliced(...e)},unshift(...e){return kr(this,"unshift",e)},values(){return ii(this,"values",Le)}};function ii(e,t,n){const r=To(e),s=r[t]();return r!==e&&!ct(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const jp=Array.prototype;function It(e,t,n,r,s,o){const i=To(e),a=i!==e&&!ct(e),l=i[t];if(l!==jp[t]){const f=l.apply(e,o);return a?Le(f):f}let u=n;i!==e&&(a?u=function(f,d){return n.call(this,Le(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 Ll(e,t,n,r){const s=To(e);let o=n;return s!==e&&(ct(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,Le(a),l,e)}),s[t](o,...r)}function ai(e,t,n){const r=ue(e);Ue(r,"iterate",zr);const s=r[t](...n);return(s===-1||s===!1)&&Ga(n[0])?(n[0]=ue(n[0]),r[t](...n)):s}function kr(e,t,n=[]){Wt(),Ha();const r=ue(e)[t].apply(e,n);return Ba(),zt(),r}const Up=Na("__proto__,__v_isRef,__isVue"),tf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(wt));function Gp(e){wt(e)||(e=String(e));const t=ue(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class nf{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?Qp:af:o?of:sf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Z(t);if(!s){let l;if(i&&(l=Fp[n]))return l;if(n==="hasOwnProperty")return Gp}const a=Reflect.get(t,n,Ee(t)?t:r);return(wt(n)?tf.has(n):Up(n))||(s||Ue(t,"get",n),o)?a:Ee(a)?i&&La(n)?a:a.value:ge(a)?s?$o(a):dn(a):a}}class rf extends nf{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=Vt(o);if(!ct(r)&&!Vt(r)&&(o=ue(o),r=ue(r)),!Z(t)&&Ee(o)&&!Ee(r))return l?!1:(o.value=r,!0)}const i=Z(t)&&La(n)?Number(n)<t.length:fe(t,n),a=Reflect.set(t,n,r,Ee(t)?t:s);return t===ue(s)&&(i?sn(r,o)&&Ht(t,"set",n,r):Ht(t,"add",n,r)),a}deleteProperty(t,n){const r=fe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Ht(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!wt(n)||!tf.has(n))&&Ue(t,"has",n),r}ownKeys(t){return Ue(t,"iterate",Z(t)?"length":Pn),Reflect.ownKeys(t)}}class Wp extends nf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zp=new rf,Vp=new Wp,qp=new rf(!0);const Fi=e=>e,hs=e=>Reflect.getPrototypeOf(e);function Kp(e,t,n){return function(...r){const s=this.__v_raw,o=ue(s),i=nr(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),c=n?Fi:t?Gs:Le;return!t&&Ue(o,"iterate",l?Bi:Pn),{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 ps(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Xp(e,t){const n={get(s){const o=this.__v_raw,i=ue(o),a=ue(s);e||(sn(s,a)&&Ue(i,"get",s),Ue(i,"get",a));const{has:l}=hs(i),u=t?Fi:e?Gs:Le;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&&Ue(ue(s),"iterate",Pn),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=ue(o),a=ue(s);return e||(sn(s,a)&&Ue(i,"has",s),Ue(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=ue(a),u=t?Fi:e?Gs:Le;return!e&&Ue(l,"iterate",Pn),a.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return We(n,e?{add:ps("add"),set:ps("set"),delete:ps("delete"),clear:ps("clear")}:{add(s){!t&&!ct(s)&&!Vt(s)&&(s=ue(s));const o=ue(this);return hs(o).has.call(o,s)||(o.add(s),Ht(o,"add",s,s)),this},set(s,o){!t&&!ct(o)&&!Vt(o)&&(o=ue(o));const i=ue(this),{has:a,get:l}=hs(i);let u=a.call(i,s);u||(s=ue(s),u=a.call(i,s));const c=l.call(i,s);return i.set(s,o),u?sn(o,c)&&Ht(i,"set",s,o):Ht(i,"add",s,o),this},delete(s){const o=ue(this),{has:i,get:a}=hs(o);let l=i.call(o,s);l||(s=ue(s),l=i.call(o,s)),a&&a.call(o,s);const u=o.delete(s);return l&&Ht(o,"delete",s,void 0),u},clear(){const s=ue(this),o=s.size!==0,i=s.clear();return o&&Ht(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Kp(s,e,t)}),n}function ja(e,t){const n=Xp(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(fe(n,s)&&s in r?n:r,s,o)}const Jp={get:ja(!1,!1)},Yp={get:ja(!1,!0)},Zp={get:ja(!0,!1)};const sf=new WeakMap,of=new WeakMap,af=new WeakMap,Qp=new WeakMap;function eg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tg(e){return e.__v_skip||!Object.isExtensible(e)?0:eg(xp(e))}function dn(e){return Vt(e)?e:Ua(e,!1,zp,Jp,sf)}function Zn(e){return Ua(e,!1,qp,Yp,of)}function $o(e){return Ua(e,!0,Vp,Zp,af)}function Ua(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=tg(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 Nn(e){return Vt(e)?Nn(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function ct(e){return!!(e&&e.__v_isShallow)}function Ga(e){return e?!!e.__v_raw:!1}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function ng(e){return!fe(e,"__v_skip")&&Object.isExtensible(e)&&Di(e,"__v_skip",!0),e}const Le=e=>ge(e)?dn(e):e,Gs=e=>ge(e)?$o(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function Ae(e){return lf(e,!1)}function Ws(e){return lf(e,!0)}function lf(e,t){return Ee(e)?e:new rg(e,t)}class rg{constructor(t,n){this.dep=new Ao,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ue(t),this._value=n?t:Le(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||ct(t)||Vt(t);t=r?t:ue(t),sn(t,n)&&(this._rawValue=t,this._value=r?t:Le(t),this.dep.trigger())}}function ie(e){return Ee(e)?e.value:e}function on(e){return Q(e)?e():ie(e)}const sg={get:(e,t,n)=>t==="__v_raw"?e:ie(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ee(s)&&!Ee(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function cf(e){return Nn(e)?e:new Proxy(e,sg)}class og{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ao,{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 ig(e){return new og(e)}class ag{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 Bp(ue(this._object),this._key)}}class lg{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 uf(e,t,n){return Ee(e)?e:Q(e)?new lg(e):ge(e)&&arguments.length>1?cg(e,t,n):Ae(e)}function cg(e,t,n){const r=e[t];return Ee(r)?r:new ag(e,t,n)}class ug{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ao(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return Xu(this,!0),!0}get value(){const t=this.dep.track();return Zu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fg(e,t,n=!1){let r,s;return Q(e)?r=e:(r=e.get,s=e.set),new ug(r,s,n)}const gs={},zs=new WeakMap;let xn;function dg(e,t=!1,n=xn){if(n){let r=zs.get(n);r||zs.set(n,r=[]),r.push(e)}}function hg(e,t,n=pe){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,u=b=>s?b:ct(b)||s===!1||s===0?Bt(b,1):Bt(b);let c,f,d,h,p=!1,g=!1;if(Ee(e)?(f=()=>e.value,p=ct(e)):Nn(e)?(f=()=>u(e),p=!0):Z(e)?(g=!0,p=e.some(b=>Nn(b)||ct(b)),f=()=>e.map(b=>{if(Ee(b))return b.value;if(Nn(b))return u(b);if(Q(b))return l?l(b,2):b()})):Q(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Wt();try{d()}finally{zt()}}const b=xn;xn=c;try{return l?l(e,3,[h]):e(h)}finally{xn=b}}:f=Et,t&&s){const b=f,C=s===!0?1/0:s;f=()=>Bt(b(),C)}const y=Da(),_=()=>{c.stop(),y&&y.active&&Ma(y.effects,c)};if(o&&t){const b=t;t=(...C)=>{b(...C),_()}}let v=g?new Array(e.length).fill(gs):gs;const m=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const C=c.run();if(s||p||(g?C.some((A,S)=>sn(A,v[S])):sn(C,v))){d&&d();const A=xn;xn=c;try{const S=[C,v===gs?void 0:g&&v[0]===gs?[]:v,h];v=C,l?l(t,3,S):t(...S)}finally{xn=A}}}else c.run()};return a&&a(m),c=new qu(f),c.scheduler=i?()=>i(m,!1):m,h=b=>dg(b,!1,c),d=c.onStop=()=>{const b=zs.get(c);if(b){if(l)l(b,4);else for(const C of b)C();zs.delete(c)}},t?r?m(!0):v=c.run():i?i(m.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Bt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ee(e))Bt(e.value,t,n);else if(Z(e))for(let r=0;r<e.length;r++)Bt(e[r],t,n);else if(Bu(e)||nr(e))e.forEach(r=>{Bt(r,t,n)});else if(ju(e)){for(const r in e)Bt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Bt(e[r],t,n)}return e}/**
|
|
10
|
+
**/let je;class Vu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=je,!t&&je&&(this.index=(je.scopes||(je.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=je;try{return je=this,t()}finally{je=n}}}on(){++this._on===1&&(this.prevScope=je,je=this)}off(){this._on>0&&--this._on===0&&(je=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 Mp(e){return new Vu(e)}function Da(){return je}function Lp(e,t=!1){je&&je.cleanups.push(e)}let _e;const oi=new WeakSet;class qu{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,je&&je.active&&je.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,oi.has(this)&&(oi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ju(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ml(this),Xu(this);const t=_e,n=mt;_e=this,mt=!0;try{return this.fn()}finally{Yu(this),_e=t,mt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fa(t);this.deps=this.depsTail=void 0,Ml(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?oi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hi(this)&&this.run()}get dirty(){return Hi(this)}}let Ku=0,Pr,Ir;function Ju(e,t=!1){if(e.flags|=8,t){e.next=Ir,Ir=e;return}e.next=Pr,Pr=e}function Ha(){Ku++}function Ba(){if(--Ku>0)return;if(Ir){let t=Ir;for(Ir=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Pr;){let t=Pr;for(Pr=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 Xu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yu(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Fa(r),Dp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Hi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wr)||(e.globalVersion=Wr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Hi(e))))return;e.flags|=2;const t=e.dep,n=_e,r=mt;_e=e,mt=!0;try{Xu(e);const s=e.fn(e._value);(t.version===0||sn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{_e=n,mt=r,Yu(e),e.flags&=-3}}function Fa(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)Fa(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Dp(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let mt=!0;const Qu=[];function Wt(){Qu.push(mt),mt=!1}function zt(){const e=Qu.pop();mt=e===void 0?!0:e}function Ml(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_e;_e=void 0;try{t()}finally{_e=n}}}let Wr=0;class Hp{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 Eo{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(!_e||!mt||_e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_e)n=this.activeLink=new Hp(_e,this),_e.deps?(n.prevDep=_e.depsTail,_e.depsTail.nextDep=n,_e.depsTail=n):_e.deps=_e.depsTail=n,ef(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=_e.depsTail,n.nextDep=void 0,_e.depsTail.nextDep=n,_e.depsTail=n,_e.deps===n&&(_e.deps=r)}return n}trigger(t){this.version++,Wr++,this.notify(t)}notify(t){Ha();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ba()}}}function ef(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)ef(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Us=new WeakMap,Pn=Symbol(""),Bi=Symbol(""),zr=Symbol("");function Ue(e,t,n){if(mt&&_e){let r=Us.get(e);r||Us.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Eo),s.map=r,s.key=n),s.track()}}function Ht(e,t,n,r,s,o){const i=Us.get(e);if(!i){Wr++;return}const a=l=>{l&&l.trigger()};if(Ha(),t==="clear")i.forEach(a);else{const l=Z(e),u=l&&La(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===zr||!wt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(zr)),t){case"add":l?u&&a(i.get("length")):(a(i.get(Pn)),nr(e)&&a(i.get(Bi)));break;case"delete":l||(a(i.get(Pn)),nr(e)&&a(i.get(Bi)));break;case"set":nr(e)&&a(i.get(Pn));break}}Ba()}function Bp(e,t){const n=Us.get(e);return n&&n.get(t)}function Wn(e){const t=ue(e);return t===e?t:(Ue(t,"iterate",zr),ct(e)?t:t.map(Le))}function To(e){return Ue(e=ue(e),"iterate",zr),e}const Fp={__proto__:null,[Symbol.iterator](){return ii(this,Symbol.iterator,Le)},concat(...e){return Wn(this).concat(...e.map(t=>Z(t)?Wn(t):t))},entries(){return ii(this,"entries",e=>(e[1]=Le(e[1]),e))},every(e,t){return Nt(this,"every",e,t,void 0,arguments)},filter(e,t){return Nt(this,"filter",e,t,n=>n.map(Le),arguments)},find(e,t){return Nt(this,"find",e,t,Le,arguments)},findIndex(e,t){return Nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Nt(this,"findLast",e,t,Le,arguments)},findLastIndex(e,t){return Nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ai(this,"includes",e)},indexOf(...e){return ai(this,"indexOf",e)},join(e){return Wn(this).join(e)},lastIndexOf(...e){return ai(this,"lastIndexOf",e)},map(e,t){return Nt(this,"map",e,t,void 0,arguments)},pop(){return kr(this,"pop")},push(...e){return kr(this,"push",e)},reduce(e,...t){return Ll(this,"reduce",e,t)},reduceRight(e,...t){return Ll(this,"reduceRight",e,t)},shift(){return kr(this,"shift")},some(e,t){return Nt(this,"some",e,t,void 0,arguments)},splice(...e){return kr(this,"splice",e)},toReversed(){return Wn(this).toReversed()},toSorted(e){return Wn(this).toSorted(e)},toSpliced(...e){return Wn(this).toSpliced(...e)},unshift(...e){return kr(this,"unshift",e)},values(){return ii(this,"values",Le)}};function ii(e,t,n){const r=To(e),s=r[t]();return r!==e&&!ct(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const jp=Array.prototype;function Nt(e,t,n,r,s,o){const i=To(e),a=i!==e&&!ct(e),l=i[t];if(l!==jp[t]){const f=l.apply(e,o);return a?Le(f):f}let u=n;i!==e&&(a?u=function(f,d){return n.call(this,Le(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 Ll(e,t,n,r){const s=To(e);let o=n;return s!==e&&(ct(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,Le(a),l,e)}),s[t](o,...r)}function ai(e,t,n){const r=ue(e);Ue(r,"iterate",zr);const s=r[t](...n);return(s===-1||s===!1)&&Ga(n[0])?(n[0]=ue(n[0]),r[t](...n)):s}function kr(e,t,n=[]){Wt(),Ha();const r=ue(e)[t].apply(e,n);return Ba(),zt(),r}const Up=Ia("__proto__,__v_isRef,__isVue"),tf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(wt));function Gp(e){wt(e)||(e=String(e));const t=ue(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class nf{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?Qp:af:o?of:sf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Z(t);if(!s){let l;if(i&&(l=Fp[n]))return l;if(n==="hasOwnProperty")return Gp}const a=Reflect.get(t,n,Ae(t)?t:r);return(wt(n)?tf.has(n):Up(n))||(s||Ue(t,"get",n),o)?a:Ae(a)?i&&La(n)?a:a.value:ge(a)?s?$o(a):dn(a):a}}class rf extends nf{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=Vt(o);if(!ct(r)&&!Vt(r)&&(o=ue(o),r=ue(r)),!Z(t)&&Ae(o)&&!Ae(r))return l?!1:(o.value=r,!0)}const i=Z(t)&&La(n)?Number(n)<t.length:fe(t,n),a=Reflect.set(t,n,r,Ae(t)?t:s);return t===ue(s)&&(i?sn(r,o)&&Ht(t,"set",n,r):Ht(t,"add",n,r)),a}deleteProperty(t,n){const r=fe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Ht(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!wt(n)||!tf.has(n))&&Ue(t,"has",n),r}ownKeys(t){return Ue(t,"iterate",Z(t)?"length":Pn),Reflect.ownKeys(t)}}class Wp extends nf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zp=new rf,Vp=new Wp,qp=new rf(!0);const Fi=e=>e,hs=e=>Reflect.getPrototypeOf(e);function Kp(e,t,n){return function(...r){const s=this.__v_raw,o=ue(s),i=nr(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),c=n?Fi:t?Gs:Le;return!t&&Ue(o,"iterate",l?Bi:Pn),{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 ps(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Jp(e,t){const n={get(s){const o=this.__v_raw,i=ue(o),a=ue(s);e||(sn(s,a)&&Ue(i,"get",s),Ue(i,"get",a));const{has:l}=hs(i),u=t?Fi:e?Gs:Le;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&&Ue(ue(s),"iterate",Pn),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=ue(o),a=ue(s);return e||(sn(s,a)&&Ue(i,"has",s),Ue(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=ue(a),u=t?Fi:e?Gs:Le;return!e&&Ue(l,"iterate",Pn),a.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return We(n,e?{add:ps("add"),set:ps("set"),delete:ps("delete"),clear:ps("clear")}:{add(s){!t&&!ct(s)&&!Vt(s)&&(s=ue(s));const o=ue(this);return hs(o).has.call(o,s)||(o.add(s),Ht(o,"add",s,s)),this},set(s,o){!t&&!ct(o)&&!Vt(o)&&(o=ue(o));const i=ue(this),{has:a,get:l}=hs(i);let u=a.call(i,s);u||(s=ue(s),u=a.call(i,s));const c=l.call(i,s);return i.set(s,o),u?sn(o,c)&&Ht(i,"set",s,o):Ht(i,"add",s,o),this},delete(s){const o=ue(this),{has:i,get:a}=hs(o);let l=i.call(o,s);l||(s=ue(s),l=i.call(o,s)),a&&a.call(o,s);const u=o.delete(s);return l&&Ht(o,"delete",s,void 0),u},clear(){const s=ue(this),o=s.size!==0,i=s.clear();return o&&Ht(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Kp(s,e,t)}),n}function ja(e,t){const n=Jp(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(fe(n,s)&&s in r?n:r,s,o)}const Xp={get:ja(!1,!1)},Yp={get:ja(!1,!0)},Zp={get:ja(!0,!1)};const sf=new WeakMap,of=new WeakMap,af=new WeakMap,Qp=new WeakMap;function eg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tg(e){return e.__v_skip||!Object.isExtensible(e)?0:eg(xp(e))}function dn(e){return Vt(e)?e:Ua(e,!1,zp,Xp,sf)}function Zn(e){return Ua(e,!1,qp,Yp,of)}function $o(e){return Ua(e,!0,Vp,Zp,af)}function Ua(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=tg(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 In(e){return Vt(e)?In(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function ct(e){return!!(e&&e.__v_isShallow)}function Ga(e){return e?!!e.__v_raw:!1}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function ng(e){return!fe(e,"__v_skip")&&Object.isExtensible(e)&&Di(e,"__v_skip",!0),e}const Le=e=>ge(e)?dn(e):e,Gs=e=>ge(e)?$o(e):e;function Ae(e){return e?e.__v_isRef===!0:!1}function Ee(e){return lf(e,!1)}function Ws(e){return lf(e,!0)}function lf(e,t){return Ae(e)?e:new rg(e,t)}class rg{constructor(t,n){this.dep=new Eo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ue(t),this._value=n?t:Le(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||ct(t)||Vt(t);t=r?t:ue(t),sn(t,n)&&(this._rawValue=t,this._value=r?t:Le(t),this.dep.trigger())}}function ie(e){return Ae(e)?e.value:e}function on(e){return Q(e)?e():ie(e)}const sg={get:(e,t,n)=>t==="__v_raw"?e:ie(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ae(s)&&!Ae(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function cf(e){return In(e)?e:new Proxy(e,sg)}class og{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Eo,{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 ig(e){return new og(e)}class ag{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 Bp(ue(this._object),this._key)}}class lg{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 uf(e,t,n){return Ae(e)?e:Q(e)?new lg(e):ge(e)&&arguments.length>1?cg(e,t,n):Ee(e)}function cg(e,t,n){const r=e[t];return Ae(r)?r:new ag(e,t,n)}class ug{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Eo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return Ju(this,!0),!0}get value(){const t=this.dep.track();return Zu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fg(e,t,n=!1){let r,s;return Q(e)?r=e:(r=e.get,s=e.set),new ug(r,s,n)}const gs={},zs=new WeakMap;let xn;function dg(e,t=!1,n=xn){if(n){let r=zs.get(n);r||zs.set(n,r=[]),r.push(e)}}function hg(e,t,n=pe){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,u=b=>s?b:ct(b)||s===!1||s===0?Bt(b,1):Bt(b);let c,f,d,h,p=!1,g=!1;if(Ae(e)?(f=()=>e.value,p=ct(e)):In(e)?(f=()=>u(e),p=!0):Z(e)?(g=!0,p=e.some(b=>In(b)||ct(b)),f=()=>e.map(b=>{if(Ae(b))return b.value;if(In(b))return u(b);if(Q(b))return l?l(b,2):b()})):Q(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Wt();try{d()}finally{zt()}}const b=xn;xn=c;try{return l?l(e,3,[h]):e(h)}finally{xn=b}}:f=At,t&&s){const b=f,C=s===!0?1/0:s;f=()=>Bt(b(),C)}const y=Da(),_=()=>{c.stop(),y&&y.active&&Oa(y.effects,c)};if(o&&t){const b=t;t=(...C)=>{b(...C),_()}}let v=g?new Array(e.length).fill(gs):gs;const m=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const C=c.run();if(s||p||(g?C.some((E,S)=>sn(E,v[S])):sn(C,v))){d&&d();const E=xn;xn=c;try{const S=[C,v===gs?void 0:g&&v[0]===gs?[]:v,h];v=C,l?l(t,3,S):t(...S)}finally{xn=E}}}else c.run()};return a&&a(m),c=new qu(f),c.scheduler=i?()=>i(m,!1):m,h=b=>dg(b,!1,c),d=c.onStop=()=>{const b=zs.get(c);if(b){if(l)l(b,4);else for(const C of b)C();zs.delete(c)}},t?r?m(!0):v=c.run():i?i(m.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Bt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ae(e))Bt(e.value,t,n);else if(Z(e))for(let r=0;r<e.length;r++)Bt(e[r],t,n);else if(Bu(e)||nr(e))e.forEach(r=>{Bt(r,t,n)});else if(ju(e)){for(const r in e)Bt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Bt(e[r],t,n)}return e}/**
|
|
11
11
|
* @vue/runtime-core v3.5.17
|
|
12
12
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
13
|
* @license MIT
|
|
14
|
-
**/function as(e,t,n,r){try{return r?e(...r):e()}catch(s){yr(s,t,n)}}function $t(e,t,n,r){if(Q(e)){const s=as(e,t,n,r);return s&&
|
|
15
|
-
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(W=W.slice(1)),m.textContent!==W&&(ys(m,0)||zn(),m.textContent=b.children)}if(R){if(J||!O||K&48){const W=m.tagName.includes("-");for(const de in R)(J&&(de.endsWith("value")||de==="indeterminate")||os(de)&&!rr(de)||de[0]==="."||W)&&r(m,de,null,R[de],void 0,C)}else if(R.onClick)r(m,"onClick",null,R.onClick,void 0,C);else if(K&4&&Nn(R.style))for(const W in R.style)R.style[W]}let Y;(Y=R&&R.onVnodeBeforeMount)&&st(Y,C,b),ee&&kt(b,null,C,"beforeMount"),((Y=R&&R.onVnodeMounted)||ee||L)&&Wf(()=>{Y&&st(Y,C,b),L&&H.enter(m),ee&&kt(b,null,C,"mounted")},A)}return m.nextSibling},h=(m,b,C,A,S,O,F)=>{F=F||!!b.dynamicChildren;const R=b.children,K=R.length;for(let z=0;z<K;z++){const ee=F?R[z]:R[z]=nt(R[z]),H=ee.type===Ln;m?(H&&!F&&z+1<K&&nt(R[z+1]).type===Ln&&(l(s(m.data.slice(ee.children.length)),C,o(m)),m.data=ee.children),m=f(m,ee,A,S,O,F)):H&&!ee.children?l(ee.el=s(""),C):(ys(C,1)||zn(),n(null,ee,C,null,A,S,ms(C),O))}return m},p=(m,b,C,A,S,O)=>{const{slotScopeIds:F}=b;F&&(S=S?S.concat(F):F);const R=i(m),K=h(o(m),b,R,C,A,S,O);return K&&Qn(K)&&K.data==="]"?o(b.anchor=K):(zn(),l(b.anchor=u("]"),R,K),K)},g=(m,b,C,A,S,O)=>{if(ys(m.parentElement,1)||zn(),b.el=null,O){const K=y(m);for(;;){const z=o(m);if(z&&z!==K)a(z);else break}}const F=o(m),R=i(m);return a(m),n(null,b,R,F,C,A,ms(R),S),C&&(C.vnode.el=b.el,Mo(C,b.el)),F},y=(m,b="[",C="]")=>{let A=0;for(;m;)if(m=o(m),m&&Qn(m)&&(m.data===b&&A++,m.data===C)){if(A===0)return o(m);A--}return m},_=(m,b,C)=>{const A=b.parentNode;A&&A.replaceChild(m,b);let S=C;for(;S;)S.vnode.el===b&&(S.vnode.el=S.subTree.el=m),S=S.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const Bl="data-allow-mismatch",kg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ys(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Bl);)e=e.parentElement;const n=e&&e.getAttribute(Bl);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(kg[t])}}Eo().requestIdleCallback;Eo().cancelIdleCallback;function Eg(e,t){if(Qn(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Qn(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const In=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Fl(e){Q(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((y,_)=>{l(g,()=>y(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 bt({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,y){const _=o?()=>{const m=o(()=>{y()},b=>Eg(p,b));m&&(g.bum||(g.bum=[])).push(m),(g.u||(g.u=[])).push(()=>!0)}:y;c?_():h().then(()=>!g.isUnmounted&&_())},get __asyncResolved(){return c},setup(){const p=$e;if(Va(p),c)return()=>li(c,p);const g=m=>{u=null,yr(m,p,13,!r)};if(a&&p.suspense||hr)return h().then(m=>()=>li(m,p)).catch(m=>(g(m),()=>r?V(r,{error:m}):null));const y=Ae(!1),_=Ae(),v=Ae(!!s);return s&&setTimeout(()=>{v.value=!1},s),i!=null&&setTimeout(()=>{if(!y.value&&!_.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),_.value=m}},i),h().then(()=>{y.value=!0,p.parent&&qa(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),_.value=m}),()=>{if(y.value&&c)return li(c,p);if(_.value&&r)return V(r,{error:_.value});if(n&&!v.value)return V(n)}}})}function li(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=V(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const qa=e=>e.type.__isKeepAlive;function pf(e,t){mf(e,"a",t)}function gf(e,t){mf(e,"da",t)}function mf(e,t,n=$e){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Po(t,r,n),n){let s=n.parent;for(;s&&s.parent;)qa(s.parent.vnode)&&Ag(r,t,n,s),s=s.parent}}function Ag(e,t,n,r){const s=Po(t,e,r,!0);yf(()=>{Ma(r[t],s)},n)}function Po(e,t,n=$e,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Wt();const a=Dn(n),l=$t(t,n,e,i);return a(),zt(),l});return r?s.unshift(o):s.push(o),o}}const qt=e=>(t,n=$e)=>{(!hr||e==="sp")&&Po(e,(...r)=>t(...r),n)},Tg=qt("bm"),Ka=qt("m"),$g=qt("bu"),Rg=qt("u"),Xa=qt("bum"),yf=qt("um"),Pg=qt("sp"),Ng=qt("rtg"),Ig=qt("rtc");function _f(e,t=$e){Po("ec",e,t)}const wf="components";function hn(e,t){return vf(wf,e,!0,t)||e}const bf=Symbol.for("v-ndc");function Mg(e){return ve(e)?vf(wf,e,!1)||e:e||bf}function vf(e,t,n=!0,r=!1){const s=Re||$e;if(s){const o=s.type;{const a=Sm(o,!1);if(a&&(a===t||a===ut(t)||a===ko(ut(t))))return o}const i=jl(s[e]||o[e],t)||jl(s.appContext[e],t);return!i&&r?o:i}}function jl(e,t){return e&&(e[t]||e[ut(t)]||e[ko(ut(t))])}function Xn(e,t,n,r){let s;const o=n,i=Z(e);if(i||ve(e)){const a=i&&Nn(e);let l=!1,u=!1;a&&(l=!ct(e),u=Vt(e),e=To(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Gs(Le(e[c])):Le(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(ge(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 Xe(e,t,n={},r,s){if(Re.ce||Re.parent&&In(Re.parent)&&Re.parent.ce)return t!=="default"&&(n.name=t),G(),be(we,null,[V("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),G();const i=o&&Cf(o(n)),a=n.key||i&&i.key,l=be(we,{key:(a&&!wt(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=>fr(t)?!(t.type===ft||t.type===we&&!Cf(t.children)):!0)?e:null}const Ui=e=>e?Kf(e)?Lo(e):Ui(e.parent):null,Ir=We(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=>Ui(e.parent),$root:e=>Ui(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Sf(e),$forceUpdate:e=>e.f||(e.f=()=>{Wa(e.update)}),$nextTick:e=>e.n||(e.n=_r.bind(e.proxy)),$watch:e=>tm.bind(e)}),ci=(e,t)=>e!==pe&&!e.__isScriptSetup&&fe(e,t),Og={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(ci(r,t))return i[t]=1,r[t];if(s!==pe&&fe(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&fe(u,t))return i[t]=3,o[t];if(n!==pe&&fe(n,t))return i[t]=4,n[t];Gi&&(i[t]=0)}}const c=Ir[t];let f,d;if(c)return t==="$attrs"&&Ue(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==pe&&fe(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,fe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return ci(s,t)?(s[t]=n,!0):r!==pe&&fe(r,t)?(r[t]=n,!0):fe(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}},i){let a;return!!n[i]||e!==pe&&fe(e,i)||ci(t,i)||(a=o[0])&&fe(a,i)||fe(r,i)||fe(Ir,i)||fe(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ul(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Lg(e){const t=ls();let n=e();return Ki(),Oa(n)&&(n=n.catch(r=>{throw Dn(t),r})),[n,()=>Dn(t)]}let Gi=!0;function Dg(e){const t=Sf(e),n=e.proxy,r=e.ctx;Gi=!1,t.beforeCreate&&Gl(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:y,beforeDestroy:_,beforeUnmount:v,destroyed:m,unmounted:b,render:C,renderTracked:A,renderTriggered:S,errorCaptured:O,serverPrefetch:F,expose:R,inheritAttrs:K,components:z,directives:ee,filters:H}=t;if(u&&Hg(u,r,null),i)for(const Y in i){const W=i[Y];Q(W)&&(r[Y]=W.bind(n))}if(s){const Y=s.call(n,n);ge(Y)&&(e.data=dn(Y))}if(Gi=!0,o)for(const Y in o){const W=o[Y],de=Q(W)?W.bind(n,n):Q(W.get)?W.get.bind(n,n):Et,Un=!Q(W)&&Q(W.set)?W.set.bind(n):Et,yn=Se({get:de,set:Un});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>yn.value,set:vt=>yn.value=vt})}if(a)for(const Y in a)xf(a[Y],r,n,Y);if(l){const Y=Q(l)?l.call(n):l;Reflect.ownKeys(Y).forEach(W=>{Ef(W,Y[W])})}c&&Gl(c,e,"c");function L(Y,W){Z(W)?W.forEach(de=>Y(de.bind(n))):W&&Y(W.bind(n))}if(L(Tg,f),L(Ka,d),L($g,h),L(Rg,p),L(pf,g),L(gf,y),L(_f,O),L(Ig,A),L(Ng,S),L(Xa,v),L(yf,b),L(Pg,F),Z(R))if(R.length){const Y=e.exposed||(e.exposed={});R.forEach(W=>{Object.defineProperty(Y,W,{get:()=>n[W],set:de=>n[W]=de})})}else e.exposed||(e.exposed={});C&&e.render===Et&&(e.render=C),K!=null&&(e.inheritAttrs=K),z&&(e.components=z),ee&&(e.directives=ee),F&&Va(e)}function Hg(e,t,n=Et){Z(e)&&(e=Wi(e));for(const r in e){const s=e[r];let o;ge(s)?"default"in s?o=On(s.from||r,s.default,!0):o=On(s.from||r):o=On(s),Ee(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Gl(e,t,n){$t(Z(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function xf(e,t,n,r){let s=r.includes(".")?Ff(n,r):()=>n[r];if(ve(e)){const o=t[e];Q(o)&&an(s,o)}else if(Q(e))an(s,e.bind(n));else if(ge(e))if(Z(e))e.forEach(o=>xf(o,t,n,r));else{const o=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(o)&&an(s,o,e)}}function Sf(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=>Xs(l,u,i,!0)),Xs(l,t,i)),ge(t)&&o.set(t,l),l}function Xs(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Xs(e,o,n,!0),s&&s.forEach(i=>Xs(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Bg[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Bg={data:Wl,props:zl,emits:zl,methods:$r,computed:$r,beforeCreate:Ve,created:Ve,beforeMount:Ve,mounted:Ve,beforeUpdate:Ve,updated:Ve,beforeDestroy:Ve,beforeUnmount:Ve,destroyed:Ve,unmounted:Ve,activated:Ve,deactivated:Ve,errorCaptured:Ve,serverPrefetch:Ve,components:$r,directives:$r,watch:jg,provide:Wl,inject:Fg};function Wl(e,t){return t?e?function(){return We(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Fg(e,t){return $r(Wi(e),Wi(t))}function Wi(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ve(e,t){return e?[...new Set([].concat(e,t))]:t}function $r(e,t){return e?We(Object.create(null),e,t):t}function zl(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:We(Object.create(null),Ul(e),Ul(t??{})):t}function jg(e,t){if(!e)return t;if(!t)return e;const n=We(Object.create(null),e);for(const r in t)n[r]=Ve(e[r],t[r]);return n}function kf(){return{app:null,config:{isNativeTag:vp,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 Ug=0;function Gg(e,t){return function(r,s=null){Q(r)||(r=We({},r)),s!=null&&!ge(s)&&(s=null);const o=kf(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:Ug++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Em,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&Q(c.install)?(i.add(c),c.install(u,...f)):Q(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||V(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,Lo(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&($t(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=Mn;Mn=u;try{return c()}finally{Mn=f}}};return u}}let Mn=null;function Ef(e,t){if($e){let n=$e.provides;const r=$e.parent&&$e.parent.provides;r===n&&(n=$e.provides=Object.create(r)),n[e]=t}}function On(e,t,n=!1){const r=$e||Re;if(r||Mn){let s=Mn?Mn._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&&Q(t)?t.call(r&&r.proxy):t}}function No(){return!!($e||Re||Mn)}const Af={},Tf=()=>Object.create(Af),$f=e=>Object.getPrototypeOf(e)===Af;function Wg(e,t,n,r=!1){const s={},o=Tf();e.propsDefaults=Object.create(null),Rf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Zn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function zg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ue(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(Io(e.emitsOptions,d))continue;const h=t[d];if(l)if(fe(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const p=ut(d);s[p]=zi(l,a,p,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{Rf(e,t,s,o)&&(u=!0);let c;for(const f in a)(!t||!fe(t,f)&&((c=gn(f))===f||!fe(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=zi(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!fe(t,f))&&(delete o[f],u=!0)}u&&Ht(e.attrs,"set","")}function Rf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(rr(l))continue;const u=t[l];let c;s&&fe(s,c=ut(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:Io(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=ue(n),u=a||pe;for(let c=0;c<o.length;c++){const f=o[c];n[f]=zi(s,l,f,u[f],e,!fe(u,f))}}return i}function zi(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=fe(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Q(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=Dn(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===gn(n))&&(r=!0))}return r}const Vg=new WeakMap;function Pf(e,t,n=!1){const r=n?Vg:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!Q(e)){const c=f=>{l=!0;const[d,h]=Pf(f,t,!0);We(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 ge(e)&&r.set(e,tr),tr;if(Z(o))for(let c=0;c<o.length;c++){const f=ut(o[c]);Vl(f)&&(i[f]=pe)}else if(o)for(const c in o){const f=ut(c);if(Vl(f)){const d=o[c],h=i[f]=Z(d)||Q(d)?{type:d}:We({},d),p=h.type;let g=!1,y=!0;if(Z(p))for(let _=0;_<p.length;++_){const v=p[_],m=Q(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=Q(p)&&p.name==="Boolean";h[0]=g,h[1]=y,(g||fe(h,"default"))&&a.push(f)}}const u=[i,a];return ge(e)&&r.set(e,u),u}function Vl(e){return e[0]!=="$"&&!rr(e)}const Ja=e=>e[0]==="_"||e==="$stable",Ya=e=>Z(e)?e.map(nt):[nt(e)],qg=(e,t,n)=>{if(t._n)return t;const r=oe((...s)=>Ya(t(...s)),n);return r._c=!1,r},Nf=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ja(s))continue;const o=e[s];if(Q(o))t[s]=qg(s,o,r);else if(o!=null){const i=Ya(o);t[s]=()=>i}}},If=(e,t)=>{const n=Ya(t);e.slots.default=()=>n},Mf=(e,t,n)=>{for(const r in t)(n||!Ja(r))&&(e[r]=t[r])},Kg=(e,t,n)=>{const r=e.slots=Tf();if(e.vnode.shapeFlag&32){const s=t.__;s&&Di(r,"__",s,!0);const o=t._;o?(Mf(r,t,n),n&&Di(r,"_",o,!0)):Nf(t,r)}else t&&If(e,t)},Xg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=pe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Mf(s,t,n):(o=!t.$stable,Nf(t,s)),i=t}else t&&(If(e,t),i={default:1});if(o)for(const a in s)!Ja(a)&&i[a]==null&&delete s[a]},tt=Wf;function Jg(e){return Of(e)}function Yg(e){return Of(e,Sg)}function Of(e,t){const n=Eo();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=Et,insertStaticContent:p}=e,g=(w,x,E,P=null,T=null,$=null,j=void 0,B=null,D=!!x.dynamicChildren)=>{if(w===x)return;w&&!tn(w,x)&&(P=ds(w),vt(w,T,$,!0),w=null),x.patchFlag===-2&&(D=!1,x.dynamicChildren=null);const{type:N,ref:X,shapeFlag:U}=x;switch(N){case Ln:y(w,x,E,P);break;case ft:_(w,x,E,P);break;case Mr:w==null&&v(x,E,P,j);break;case we:z(w,x,E,P,T,$,j,B,D);break;default:U&1?C(w,x,E,P,T,$,j,B,D):U&6?ee(w,x,E,P,T,$,j,B,D):(U&64||U&128)&&N.process(w,x,E,P,T,$,j,B,D,Gn)}X!=null&&T?or(X,w&&w.ref,$,x||w,!x):X==null&&w&&w.ref!=null&&or(w.ref,null,$,w,!0)},y=(w,x,E,P)=>{if(w==null)r(x.el=a(x.children),E,P);else{const T=x.el=w.el;x.children!==w.children&&u(T,x.children)}},_=(w,x,E,P)=>{w==null?r(x.el=l(x.children||""),E,P):x.el=w.el},v=(w,x,E,P)=>{[w.el,w.anchor]=p(w.children,x,E,P,w.el,w.anchor)},m=({el:w,anchor:x},E,P)=>{let T;for(;w&&w!==x;)T=d(w),r(w,E,P),w=T;r(x,E,P)},b=({el:w,anchor:x})=>{let E;for(;w&&w!==x;)E=d(w),s(w),w=E;s(x)},C=(w,x,E,P,T,$,j,B,D)=>{x.type==="svg"?j="svg":x.type==="math"&&(j="mathml"),w==null?A(x,E,P,T,$,j,B,D):F(w,x,T,$,j,B,D)},A=(w,x,E,P,T,$,j,B)=>{let D,N;const{props:X,shapeFlag:U,transition:q,dirs:ne}=w;if(D=w.el=i(w.type,$,X&&X.is,X),U&8?c(D,w.children):U&16&&O(w.children,D,null,P,T,ui(w,$),j,B),ne&&kt(w,null,P,"created"),S(D,w,w.scopeId,j,P),X){for(const me in X)me!=="value"&&!rr(me)&&o(D,me,null,X[me],$,P);"value"in X&&o(D,"value",null,X.value,$),(N=X.onVnodeBeforeMount)&&st(N,P,w)}ne&&kt(w,null,P,"beforeMount");const le=Lf(T,q);le&&q.beforeEnter(D),r(D,x,E),((N=X&&X.onVnodeMounted)||le||ne)&&tt(()=>{N&&st(N,P,w),le&&q.enter(D),ne&&kt(w,null,P,"mounted")},T)},S=(w,x,E,P,T)=>{if(E&&h(w,E),P)for(let $=0;$<P.length;$++)h(w,P[$]);if(T){let $=T.subTree;if(x===$||Uf($.type)&&($.ssContent===x||$.ssFallback===x)){const j=T.vnode;S(w,j,j.scopeId,j.slotScopeIds,T.parent)}}},O=(w,x,E,P,T,$,j,B,D=0)=>{for(let N=D;N<w.length;N++){const X=w[N]=B?Qt(w[N]):nt(w[N]);g(null,X,x,E,P,T,$,j,B)}},F=(w,x,E,P,T,$,j)=>{const B=x.el=w.el;let{patchFlag:D,dynamicChildren:N,dirs:X}=x;D|=w.patchFlag&16;const U=w.props||pe,q=x.props||pe;let ne;if(E&&wn(E,!1),(ne=q.onVnodeBeforeUpdate)&&st(ne,E,x,w),X&&kt(x,w,E,"beforeUpdate"),E&&wn(E,!0),(U.innerHTML&&q.innerHTML==null||U.textContent&&q.textContent==null)&&c(B,""),N?R(w.dynamicChildren,N,B,E,P,ui(x,T),$):j||W(w,x,B,null,E,P,ui(x,T),$,!1),D>0){if(D&16)K(B,U,q,E,T);else if(D&2&&U.class!==q.class&&o(B,"class",null,q.class,T),D&4&&o(B,"style",U.style,q.style,T),D&8){const le=x.dynamicProps;for(let me=0;me<le.length;me++){const he=le[me],Ke=U[he],He=q[he];(He!==Ke||he==="value")&&o(B,he,Ke,He,T,E)}}D&1&&w.children!==x.children&&c(B,x.children)}else!j&&N==null&&K(B,U,q,E,T);((ne=q.onVnodeUpdated)||X)&&tt(()=>{ne&&st(ne,E,x,w),X&&kt(x,w,E,"updated")},P)},R=(w,x,E,P,T,$,j)=>{for(let B=0;B<x.length;B++){const D=w[B],N=x[B],X=D.el&&(D.type===we||!tn(D,N)||D.shapeFlag&198)?f(D.el):E;g(D,N,X,null,P,T,$,j,!0)}},K=(w,x,E,P,T)=>{if(x!==E){if(x!==pe)for(const $ in x)!rr($)&&!($ in E)&&o(w,$,x[$],null,T,P);for(const $ in E){if(rr($))continue;const j=E[$],B=x[$];j!==B&&$!=="value"&&o(w,$,B,j,T,P)}"value"in E&&o(w,"value",x.value,E.value,T)}},z=(w,x,E,P,T,$,j,B,D)=>{const N=x.el=w?w.el:a(""),X=x.anchor=w?w.anchor:a("");let{patchFlag:U,dynamicChildren:q,slotScopeIds:ne}=x;ne&&(B=B?B.concat(ne):ne),w==null?(r(N,E,P),r(X,E,P),O(x.children||[],E,X,T,$,j,B,D)):U>0&&U&64&&q&&w.dynamicChildren?(R(w.dynamicChildren,q,E,T,$,j,B),(x.key!=null||T&&x===T.subTree)&&Df(w,x,!0)):W(w,x,E,X,T,$,j,B,D)},ee=(w,x,E,P,T,$,j,B,D)=>{x.slotScopeIds=B,w==null?x.shapeFlag&512?T.ctx.activate(x,E,P,j,D):H(x,E,P,T,$,j,D):J(w,x,D)},H=(w,x,E,P,T,$,j)=>{const B=w.component=wm(w,P,T);if(qa(w)&&(B.ctx.renderer=Gn),bm(B,!1,j),B.asyncDep){if(T&&T.registerDep(B,L,j),!w.el){const D=B.subTree=V(ft);_(null,D,x,E)}}else L(B,w,x,E,T,$,j)},J=(w,x,E)=>{const P=x.component=w.component;if(am(w,x,E))if(P.asyncDep&&!P.asyncResolved){Y(P,x,E);return}else P.next=x,P.update();else x.el=w.el,P.vnode=x},L=(w,x,E,P,T,$,j)=>{const B=()=>{if(w.isMounted){let{next:U,bu:q,u:ne,parent:le,vnode:me}=w;{const Ze=Hf(w);if(Ze){U&&(U.el=me.el,Y(w,U,j)),Ze.asyncDep.then(()=>{w.isUnmounted||B()});return}}let he=U,Ke;wn(w,!1),U?(U.el=me.el,Y(w,U,j)):U=me,q&&Ns(q),(Ke=U.props&&U.props.onVnodeBeforeUpdate)&&st(Ke,le,U,me),wn(w,!0);const He=fi(w),dt=w.subTree;w.subTree=He,g(dt,He,f(dt.el),ds(dt),w,T,$),U.el=He.el,he===null&&Mo(w,He.el),ne&&tt(ne,T),(Ke=U.props&&U.props.onVnodeUpdated)&&tt(()=>st(Ke,le,U,me),T)}else{let U;const{el:q,props:ne}=x,{bm:le,m:me,parent:he,root:Ke,type:He}=w,dt=In(x);if(wn(w,!1),le&&Ns(le),!dt&&(U=ne&&ne.onVnodeBeforeMount)&&st(U,he,x),wn(w,!0),q&&ei){const Ze=()=>{w.subTree=fi(w),ei(q,w.subTree,w,T,null)};dt&&He.__asyncHydrate?He.__asyncHydrate(q,w,Ze):Ze()}else{Ke.ce&&Ke.ce._def.shadowRoot!==!1&&Ke.ce._injectChildStyle(He);const Ze=w.subTree=fi(w);g(null,Ze,E,P,w,T,$),x.el=Ze.el}if(me&&tt(me,T),!dt&&(U=ne&&ne.onVnodeMounted)){const Ze=x;tt(()=>st(U,he,Ze),T)}(x.shapeFlag&256||he&&In(he.vnode)&&he.vnode.shapeFlag&256)&&w.a&&tt(w.a,T),w.isMounted=!0,x=E=P=null}};w.scope.on();const D=w.effect=new qu(B);w.scope.off();const N=w.update=D.run.bind(D),X=w.job=D.runIfDirty.bind(D);X.i=w,X.id=w.uid,D.scheduler=()=>Wa(X),wn(w,!0),N()},Y=(w,x,E)=>{x.component=w;const P=w.vnode.props;w.vnode=x,w.next=null,zg(w,x.props,P,E),Xg(w,x.children,E),Wt(),Dl(w),zt()},W=(w,x,E,P,T,$,j,B,D=!1)=>{const N=w&&w.children,X=w?w.shapeFlag:0,U=x.children,{patchFlag:q,shapeFlag:ne}=x;if(q>0){if(q&128){Un(N,U,E,P,T,$,j,B,D);return}else if(q&256){de(N,U,E,P,T,$,j,B,D);return}}ne&8?(X&16&&xr(N,T,$),U!==N&&c(E,U)):X&16?ne&16?Un(N,U,E,P,T,$,j,B,D):xr(N,T,$,!0):(X&8&&c(E,""),ne&16&&O(U,E,P,T,$,j,B,D))},de=(w,x,E,P,T,$,j,B,D)=>{w=w||tr,x=x||tr;const N=w.length,X=x.length,U=Math.min(N,X);let q;for(q=0;q<U;q++){const ne=x[q]=D?Qt(x[q]):nt(x[q]);g(w[q],ne,E,null,T,$,j,B,D)}N>X?xr(w,T,$,!0,!1,U):O(x,E,P,T,$,j,B,D,U)},Un=(w,x,E,P,T,$,j,B,D)=>{let N=0;const X=x.length;let U=w.length-1,q=X-1;for(;N<=U&&N<=q;){const ne=w[N],le=x[N]=D?Qt(x[N]):nt(x[N]);if(tn(ne,le))g(ne,le,E,null,T,$,j,B,D);else break;N++}for(;N<=U&&N<=q;){const ne=w[U],le=x[q]=D?Qt(x[q]):nt(x[q]);if(tn(ne,le))g(ne,le,E,null,T,$,j,B,D);else break;U--,q--}if(N>U){if(N<=q){const ne=q+1,le=ne<X?x[ne].el:P;for(;N<=q;)g(null,x[N]=D?Qt(x[N]):nt(x[N]),E,le,T,$,j,B,D),N++}}else if(N>q)for(;N<=U;)vt(w[N],T,$,!0),N++;else{const ne=N,le=N,me=new Map;for(N=le;N<=q;N++){const Qe=x[N]=D?Qt(x[N]):nt(x[N]);Qe.key!=null&&me.set(Qe.key,N)}let he,Ke=0;const He=q-le+1;let dt=!1,Ze=0;const Sr=new Array(He);for(N=0;N<He;N++)Sr[N]=0;for(N=ne;N<=U;N++){const Qe=w[N];if(Ke>=He){vt(Qe,T,$,!0);continue}let Ct;if(Qe.key!=null)Ct=me.get(Qe.key);else for(he=le;he<=q;he++)if(Sr[he-le]===0&&tn(Qe,x[he])){Ct=he;break}Ct===void 0?vt(Qe,T,$,!0):(Sr[Ct-le]=N+1,Ct>=Ze?Ze=Ct:dt=!0,g(Qe,x[Ct],E,null,T,$,j,B,D),Ke++)}const $l=dt?Zg(Sr):tr;for(he=$l.length-1,N=He-1;N>=0;N--){const Qe=le+N,Ct=x[Qe],Rl=Qe+1<X?x[Qe+1].el:P;Sr[N]===0?g(null,Ct,E,Rl,T,$,j,B,D):dt&&(he<0||N!==$l[he]?yn(Ct,E,Rl,2):he--)}}},yn=(w,x,E,P,T=null)=>{const{el:$,type:j,transition:B,children:D,shapeFlag:N}=w;if(N&6){yn(w.component.subTree,x,E,P);return}if(N&128){w.suspense.move(x,E,P);return}if(N&64){j.move(w,x,E,Gn);return}if(j===we){r($,x,E);for(let U=0;U<D.length;U++)yn(D[U],x,E,P);r(w.anchor,x,E);return}if(j===Mr){m(w,x,E);return}if(P!==2&&N&1&&B)if(P===0)B.beforeEnter($),r($,x,E),tt(()=>B.enter($),T);else{const{leave:U,delayLeave:q,afterLeave:ne}=B,le=()=>{w.ctx.isUnmounted?s($):r($,x,E)},me=()=>{U($,()=>{le(),ne&&ne()})};q?q($,le,me):me()}else r($,x,E)},vt=(w,x,E,P=!1,T=!1)=>{const{type:$,props:j,ref:B,children:D,dynamicChildren:N,shapeFlag:X,patchFlag:U,dirs:q,cacheIndex:ne}=w;if(U===-2&&(T=!1),B!=null&&(Wt(),or(B,null,E,w,!0),zt()),ne!=null&&(x.renderCache[ne]=void 0),X&256){x.ctx.deactivate(w);return}const le=X&1&&q,me=!In(w);let he;if(me&&(he=j&&j.onVnodeBeforeUnmount)&&st(he,x,w),X&6)mp(w.component,E,P);else{if(X&128){w.suspense.unmount(E,P);return}le&&kt(w,null,x,"beforeUnmount"),X&64?w.type.remove(w,x,E,Gn,P):N&&!N.hasOnce&&($!==we||U>0&&U&64)?xr(N,x,E,!1,!0):($===we&&U&384||!T&&X&16)&&xr(D,x,E),P&&Al(w)}(me&&(he=j&&j.onVnodeUnmounted)||le)&&tt(()=>{he&&st(he,x,w),le&&kt(w,null,x,"unmounted")},E)},Al=w=>{const{type:x,el:E,anchor:P,transition:T}=w;if(x===we){gp(E,P);return}if(x===Mr){b(w);return}const $=()=>{s(E),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(w.shapeFlag&1&&T&&!T.persisted){const{leave:j,delayLeave:B}=T,D=()=>j(E,$);B?B(w.el,$,D):D()}else $()},gp=(w,x)=>{let E;for(;w!==x;)E=d(w),s(w),w=E;s(x)},mp=(w,x,E)=>{const{bum:P,scope:T,job:$,subTree:j,um:B,m:D,a:N,parent:X,slots:{__:U}}=w;ql(D),ql(N),P&&Ns(P),X&&Z(U)&&U.forEach(q=>{X.renderCache[q]=void 0}),T.stop(),$&&($.flags|=8,vt(j,w,x,E)),B&&tt(B,x),tt(()=>{w.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},xr=(w,x,E,P=!1,T=!1,$=0)=>{for(let j=$;j<w.length;j++)vt(w[j],x,E,P,T)},ds=w=>{if(w.shapeFlag&6)return ds(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const x=d(w.anchor||w.el),E=x&&x[bg];return E?d(E):x};let Zo=!1;const Tl=(w,x,E)=>{w==null?x._vnode&&vt(x._vnode,null,null,!0):g(x._vnode||null,w,x,null,null,null,E),x._vnode=w,Zo||(Zo=!0,Dl(),qs(),Zo=!1)},Gn={p:g,um:vt,m:yn,r:Al,mt:H,mc:O,pc:W,pbc:R,n:ds,o:e};let Qo,ei;return t&&([Qo,ei]=t(Gn)),{render:Tl,hydrate:Qo,createApp:Gg(Tl,Qo)}}function ui({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 wn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Lf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Df(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]=Qt(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Df(i,a)),a.type===Ln&&(a.el=i.el),a.type===ft&&!a.el&&(a.el=i.el)}}function Zg(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 Hf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hf(t)}function ql(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Qg=Symbol.for("v-scx"),em=()=>On(Qg);function Bf(e,t){return Za(e,null,t)}function an(e,t,n){return Za(e,t,n)}function Za(e,t,n=pe){const{immediate:r,deep:s,flush:o,once:i}=n,a=We({},n),l=t&&r||!t&&o!=="post";let u;if(hr){if(o==="sync"){const h=em();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Et,h.resume=Et,h.pause=Et,h}}const c=$e;a.call=(h,p,g)=>$t(h,c,p,g);let f=!1;o==="post"?a.scheduler=h=>{tt(h,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():Wa(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=hg(e,t,a);return hr&&(u?u.push(d):l&&d()),d}function tm(e,t,n){const r=this.proxy,s=ve(e)?e.includes(".")?Ff(r,e):()=>r[e]:e.bind(r,r);let o;Q(t)?o=t:(o=t.handler,n=t);const i=Dn(this),a=Za(s,o.bind(r),n);return i(),a}function Ff(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 nm=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ut(t)}Modifiers`]||e[`${gn(t)}Modifiers`];function rm(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||pe;let s=n;const o=t.startsWith("update:"),i=o&&nm(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>ve(c)?c.trim():c)),i.number&&(s=n.map(Ep)));let a,l=r[a=ri(t)]||r[a=ri(ut(t))];!l&&o&&(l=r[a=ri(gn(t))]),l&&$t(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,$t(u,e,6,s)}}function jf(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!Q(e)){const l=u=>{const c=jf(u,t,!0);c&&(a=!0,We(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(ge(e)&&r.set(e,null),null):(Z(o)?o.forEach(l=>i[l]=null):We(i,o),ge(e)&&r.set(e,i),i)}function Io(e,t){return!e||!os(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,gn(t))||fe(e,t))}function fi(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,y=Ks(e);let _,v;try{if(n.shapeFlag&4){const b=s||r,C=b;_=nt(u.call(C,b,c,f,h,d,p)),v=a}else{const b=t;_=nt(b.length>1?b(f,{attrs:a,slots:i,emit:l}):b(f,null)),v=t.props?a:om(a)}}catch(b){Or.length=0,yr(b,e,1),_=V(ft)}let m=_;if(v&&g!==!1){const b=Object.keys(v),{shapeFlag:C}=m;b.length&&C&7&&(o&&b.some(Ia)&&(v=im(v,o)),m=dr(m,v,!1,!0))}return n.dirs&&(m=dr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&za(m,n.transition),_=m,Ks(y),_}function sm(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(fr(s)){if(s.type!==ft||s.children==="v-if"){if(n)return;n=s}}else return}return n}const om=e=>{let t;for(const n in e)(n==="class"||n==="style"||os(n))&&((t||(t={}))[n]=e[n]);return t},im=(e,t)=>{const n={};for(const r in e)(!Ia(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function am(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?Kl(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]&&!Io(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Kl(r,i,u):!0:!!i;return!1}function Kl(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]&&!Io(n,o))return!0}return!1}function Mo({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 Uf=e=>e.__isSuspense;let Vi=0;const lm={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,u){if(e==null)um(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}fm(e,t,n,r,s,i,a,l,u)}},hydrate:dm,normalize:hm},cm=lm;function qr(e,t){const n=e.props&&e.props[t];Q(n)&&n()}function um(e,t,n,r,s,o,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Gf(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?(qr(e,"onPending"),qr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),ir(d,e.ssFallback)):d.resolve(!1,!0)}function fm(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:y,isHydrating:_}=f;if(g)f.pendingBranch=d,tn(d,g)?(l(g,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():y&&(_||(l(p,h,n,r,s,null,o,i,a),ir(f,h)))):(f.pendingId=Vi++,_?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),y?(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),ir(f,h))):p&&tn(d,p)?(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&&tn(d,p))l(p,d,n,r,s,f,o,i,a),ir(f,d);else if(qr(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Vi++,l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:m}=f;v>0?setTimeout(()=>{f.pendingId===m&&f.fallback(h)},v):v===0&&f.fallback(h)}}function Gf(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:y}}=u;let _;const v=pm(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const m=e.props?Ap(e.props.timeout):void 0,b=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Vi++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(A=!1,S=!1){const{vnode:O,activeBranch:F,pendingBranch:R,pendingId:K,effects:z,parentComponent:ee,container:H}=C;let J=!1;C.isHydrating?C.isHydrating=!1:A||(J=F&&R.transition&&R.transition.mode==="out-in",J&&(F.transition.afterLeave=()=>{K===C.pendingId&&(d(R,H,o===b?p(F):o,0),ji(z))}),F&&(g(F.el)===H&&(o=p(F)),h(F,ee,C,!0)),J||d(R,H,o,0)),ir(C,R),C.pendingBranch=null,C.isInFallback=!1;let L=C.parent,Y=!1;for(;L;){if(L.pendingBranch){L.effects.push(...z),Y=!0;break}L=L.parent}!Y&&!J&&ji(z),C.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!S&&t.resolve()),qr(O,"onResolve")},fallback(A){if(!C.pendingBranch)return;const{vnode:S,activeBranch:O,parentComponent:F,container:R,namespace:K}=C;qr(S,"onFallback");const z=p(O),ee=()=>{C.isInFallback&&(f(null,A,R,z,F,null,K,a,l),ir(C,A))},H=A.transition&&A.transition.mode==="out-in";H&&(O.transition.afterLeave=ee),C.isInFallback=!0,h(O,F,null,!0),H||ee()},move(A,S,O){C.activeBranch&&d(C.activeBranch,A,S,O),C.container=A},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(A,S,O){const F=!!C.pendingBranch;F&&C.deps++;const R=A.vnode.el;A.asyncDep.catch(K=>{yr(K,A,0)}).then(K=>{if(A.isUnmounted||C.isUnmounted||C.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:z}=A;Xi(A,K),R&&(z.el=R);const ee=!R&&A.subTree.el;S(A,z,g(R||A.subTree.el),R?null:p(A.subTree),C,i,O),ee&&y(ee),Mo(A,z.el),F&&--C.deps===0&&C.resolve()})},unmount(A,S){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,n,A,S),C.pendingBranch&&h(C.pendingBranch,n,A,S)}};return C}function dm(e,t,n,r,s,o,i,a,l){const u=t.suspense=Gf(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 hm(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Xl(r?n.default:n),e.ssFallback=r?Xl(n.fallback):V(ft)}function Xl(e){let t;if(Q(e)){const n=ur&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=Je,zf())}return Z(e)&&(e=sm(e)),e=nt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Wf(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):ji(e)}function ir(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,Mo(r,s))}function pm(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const we=Symbol.for("v-fgt"),Ln=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),Mr=Symbol.for("v-stc"),Or=[];let Je=null;function G(e=!1){Or.push(Je=e?null:[])}function zf(){Or.pop(),Je=Or[Or.length-1]||null}let ur=1;function Jl(e,t=!1){ur+=e,e<0&&Je&&t&&(Je.hasOnce=!0)}function Vf(e){return e.dynamicChildren=ur>0?Je||tr:null,zf(),ur>0&&Je&&Je.push(e),e}function te(e,t,n,r,s,o){return Vf(M(e,t,n,r,s,o,!0))}function be(e,t,n,r,s){return Vf(V(e,t,n,r,s,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function tn(e,t){return e.type===t.type&&e.key===t.key}const qf=({key:e})=>e??null,Is=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||Ee(e)||Q(e)?{i:Re,r:e,k:t,f:!!n}:e:null);function M(e,t=null,n=null,r=0,s=null,o=e===we?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qf(t),ref:t&&Is(t),scopeId:Ro,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:Re};return a?(el(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ve(n)?8:16),ur>0&&!i&&Je&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Je.push(l),l}const V=gm;function gm(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===bf)&&(e=ft),fr(e)){const a=dr(e,t,!0);return n&&el(a,n),ur>0&&!o&&Je&&(a.shapeFlag&6?Je[Je.indexOf(e)]=a:Je.push(a)),a.patchFlag=-2,a}if(km(e)&&(e=e.__vccOpts),t){t=Qa(t);let{class:a,style:l}=t;a&&!ve(a)&&(t.class=ke(a)),ge(l)&&(Ga(l)&&!Z(l)&&(l=We({},l)),t.style=Rn(l))}const i=ve(e)?1:Uf(e)?128:vg(e)?64:ge(e)?4:Q(e)?2:0;return M(e,t,n,r,s,i,o,!0)}function Qa(e){return e?Ga(e)||$f(e)?We({},e):e:null}function dr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?Oo(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&qf(u),ref:t&&t.ref?n&&o?Z(o)?o.concat(Is(t)):[o,Is(t)]:Is(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!==we?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&&dr(e.ssContent),ssFallback:e.ssFallback&&dr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&za(c,l.clone(c)),c}function ae(e=" ",t=0){return V(Ln,null,e,t)}function mm(e,t){const n=V(Mr,null,e);return n.staticCount=t,n}function De(e="",t=!1){return t?(G(),be(ft,null,e)):V(ft,null,e)}function nt(e){return e==null||typeof e=="boolean"?V(ft):Z(e)?V(we,null,e.slice()):fr(e)?Qt(e):V(Ln,null,String(e))}function Qt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:dr(e)}function el(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),el(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!$f(t)?t._ctx=Re:s===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),r&64?(n=16,t=[ae(t)]):n=8);e.children=t,e.shapeFlag|=n}function Oo(...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=ke([t.class,r.class]));else if(s==="style")t.style=Rn([t.style,r.style]);else if(os(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 st(e,t,n,r=null){$t(e,t,7,[n,r])}const ym=kf();let _m=0;function wm(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ym,o={uid:_m++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Vu(!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:Pf(r,s),emitsOptions:jf(r,s),emit:null,emitted:null,propsDefaults:pe,inheritAttrs:r.inheritAttrs,ctx:pe,data:pe,props:pe,attrs:pe,slots:pe,refs:pe,setupState:pe,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=rm.bind(null,o),e.ce&&e.ce(o),o}let $e=null;const ls=()=>$e||Re;let Js,qi;{const e=Eo(),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)}};Js=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),qi=t("__VUE_SSR_SETTERS__",n=>hr=n)}const Dn=e=>{const t=$e;return Js(e),e.scope.on(),()=>{e.scope.off(),Js(t)}},Ki=()=>{$e&&$e.scope.off(),Js(null)};function Kf(e){return e.vnode.shapeFlag&4}let hr=!1;function bm(e,t=!1,n=!1){t&&qi(t);const{props:r,children:s}=e.vnode,o=Kf(e);Wg(e,r,o,t),Kg(e,s,n||t);const i=o?vm(e,t):void 0;return t&&qi(!1),i}function vm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Og);const{setup:r}=n;if(r){Wt();const s=e.setupContext=r.length>1?xm(e):null,o=Dn(e),i=as(r,e,0,[e.props,s]),a=Oa(i);if(zt(),o(),(a||e.sp)&&!In(e)&&Va(e),a){if(i.then(Ki,Ki),t)return i.then(l=>{Xi(e,l)}).catch(l=>{yr(l,e,0)});e.asyncDep=i}else Xi(e,i)}else Xf(e)}function Xi(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=cf(t)),Xf(e)}function Xf(e,t,n){const r=e.type;e.render||(e.render=r.render||Et);{const s=Dn(e);Wt();try{Dg(e)}finally{zt(),s()}}}const Cm={get(e,t){return Ue(e,"get",""),e[t]}};function xm(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Cm),slots:e.slots,emit:e.emit,expose:t}}function Lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(cf(ng(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ir)return Ir[n](e)},has(t,n){return n in t||n in Ir}})):e.proxy}function Sm(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function km(e){return Q(e)&&"__vccOpts"in e}const Se=(e,t)=>fg(e,t,hr);function Ys(e,t,n){const r=arguments.length;return r===2?ge(t)&&!Z(t)?fr(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fr(n)&&(n=[n]),V(e,t,n))}const Em="3.5.17";/**
|
|
14
|
+
**/function as(e,t,n,r){try{return r?e(...r):e()}catch(s){yr(s,t,n)}}function $t(e,t,n,r){if(Q(e)){const s=as(e,t,n,r);return s&&Ma(s)&&s.catch(o=>{yr(o,t,n)}),s}if(Z(e)){const s=[];for(let o=0;o<e.length;o++)s.push($t(e[o],t,n,r));return s}}function yr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||pe;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){Wt(),as(o,null,10,[e,l,u]),zt();return}}pg(e,n,s,r,i)}function pg(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const qe=[];let St=-1;const sr=[];let Zt=null,Kn=0;const ff=Promise.resolve();let Vs=null;function _r(e){const t=Vs||ff;return e?t.then(this?e.bind(this):e):t}function gg(e){let t=St+1,n=qe.length;for(;t<n;){const r=t+n>>>1,s=qe[r],o=Vr(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Wa(e){if(!(e.flags&1)){const t=Vr(e),n=qe[qe.length-1];!n||!(e.flags&2)&&t>=Vr(n)?qe.push(e):qe.splice(gg(t),0,e),e.flags|=1,df()}}function df(){Vs||(Vs=ff.then(hf))}function ji(e){Z(e)?sr.push(...e):Zt&&e.id===-1?Zt.splice(Kn+1,0,e):e.flags&1||(sr.push(e),e.flags|=1),df()}function Dl(e,t,n=St+1){for(;n<qe.length;n++){const r=qe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;qe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function qs(e){if(sr.length){const t=[...new Set(sr)].sort((n,r)=>Vr(n)-Vr(r));if(sr.length=0,Zt){Zt.push(...t);return}for(Zt=t,Kn=0;Kn<Zt.length;Kn++){const n=Zt[Kn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Zt=null,Kn=0}}const Vr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hf(e){try{for(St=0;St<qe.length;St++){const t=qe[St];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),as(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;St<qe.length;St++){const t=qe[St];t&&(t.flags&=-2)}St=-1,qe.length=0,qs(),Vs=null,(qe.length||sr.length)&&hf()}}let Re=null,Ro=null;function Ks(e){const t=Re;return Re=e,Ro=e&&e.type.__scopeId||null,t}function mg(e){Ro=e}function yg(){Ro=null}const _g=e=>oe;function oe(e,t=Re,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Xl(-1);const o=Ks(t);let i;try{i=e(...s)}finally{Ks(o),r._d&&Xl(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function wg(e,t){if(Re===null)return e;const n=Lo(Re),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=pe]=t[s];o&&(Q(o)&&(o={mounted:o,updated:o}),o.deep&&Bt(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function kt(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&&(Wt(),$t(l,n,8,[e.el,a,e,t]),zt())}}const bg=Symbol("_vte"),vg=e=>e.__isTeleport;function za(e,t){e.shapeFlag&6&&e.component?(e.transition=t,za(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function bt(e,t){return Q(e)?We({name:e.name},t,{setup:e}):e}function Va(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function or(e,t,n,r,s=!1){if(Z(e)){e.forEach((p,g)=>or(p,t&&(Z(t)?t[g]:t),n,r,s));return}if(Nn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&or(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Lo(r.component):r.el,i=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===pe?a.refs={}:a.refs,f=a.setupState,d=ue(f),h=f===pe?()=>!1:p=>fe(d,p);if(u!=null&&u!==l&&(ve(u)?(c[u]=null,h(u)&&(f[u]=null)):Ae(u)&&(u.value=null)),Q(l))as(l,a,12,[i,c]);else{const p=ve(l),g=Ae(l);if(p||g){const y=()=>{if(e.f){const _=p?h(l)?f[l]:c[l]:l.value;s?Z(_)&&Oa(_,o):Z(_)?_.includes(o)||_.push(o):p?(c[l]=[o],h(l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else p?(c[l]=i,h(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(c[e.k]=i))};i?(y.id=-1,tt(y,n)):y()}}}let Hl=!1;const zn=()=>{Hl||(console.error("Hydration completed but contains mismatches."),Hl=!0)},Cg=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",xg=e=>e.namespaceURI.includes("MathML"),ms=e=>{if(e.nodeType===1){if(Cg(e))return"svg";if(xg(e))return"mathml"}},Qn=e=>e.nodeType===8;function Sg(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:u}}=e,c=(m,b)=>{if(!b.hasChildNodes()){n(null,m,b),qs(),b._vnode=m;return}f(b.firstChild,m,null,null,null),qs(),b._vnode=m},f=(m,b,C,E,S,M=!1)=>{M=M||!!b.dynamicChildren;const F=Qn(m)&&m.data==="[",R=()=>g(m,b,C,E,S,F),{type:K,ref:z,shapeFlag:ee,patchFlag:H}=b;let X=m.nodeType;b.el=m,H===-2&&(M=!1,b.dynamicChildren=null);let L=null;switch(K){case Ln:X!==3?b.children===""?(l(b.el=s(""),i(m),m),L=m):L=R():(m.data!==b.children&&(zn(),m.data=b.children),L=o(m));break;case ft:v(m)?(L=o(m),_(b.el=m.content.firstChild,m,C)):X!==8||F?L=R():L=o(m);break;case Or:if(F&&(m=o(m),X=m.nodeType),X===1||X===3){L=m;const Y=!b.children.length;for(let W=0;W<b.staticCount;W++)Y&&(b.children+=L.nodeType===1?L.outerHTML:L.data),W===b.staticCount-1&&(b.anchor=L),L=o(L);return F?o(L):L}else R();break;case we:F?L=p(m,b,C,E,S,M):L=R();break;default:if(ee&1)(X!==1||b.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?L=R():L=d(m,b,C,E,S,M);else if(ee&6){b.slotScopeIds=S;const Y=i(m);if(F?L=y(m):Qn(m)&&m.data==="teleport start"?L=y(m,m.data,"teleport end"):L=o(m),t(b,Y,null,C,E,ms(Y),M),Nn(b)&&!b.type.__asyncResolved){let W;F?(W=V(we),W.anchor=L?L.previousSibling:Y.lastChild):W=m.nodeType===3?ae(""):V("div"),W.el=m,b.component.subTree=W}}else ee&64?X!==8?L=R():L=b.type.hydrate(m,b,C,E,S,M,e,h):ee&128&&(L=b.type.hydrate(m,b,C,E,ms(i(m)),S,M,e,f))}return z!=null&&or(z,null,E,b),L},d=(m,b,C,E,S,M)=>{M=M||!!b.dynamicChildren;const{type:F,props:R,patchFlag:K,shapeFlag:z,dirs:ee,transition:H}=b,X=F==="input"||F==="option";if(X||K!==-1){ee&&kt(b,null,C,"created");let L=!1;if(v(m)){L=Lf(null,H)&&C&&C.vnode.props&&C.vnode.props.appear;const W=m.content.firstChild;if(L){const de=W.getAttribute("class");de&&(W.$cls=de),H.beforeEnter(W)}_(W,m,C),b.el=m=W}if(z&16&&!(R&&(R.innerHTML||R.textContent))){let W=h(m.firstChild,b,m,C,E,S,M);for(;W;){ys(m,1)||zn();const de=W;W=W.nextSibling,a(de)}}else if(z&8){let W=b.children;W[0]===`
|
|
15
|
+
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(W=W.slice(1)),m.textContent!==W&&(ys(m,0)||zn(),m.textContent=b.children)}if(R){if(X||!M||K&48){const W=m.tagName.includes("-");for(const de in R)(X&&(de.endsWith("value")||de==="indeterminate")||os(de)&&!rr(de)||de[0]==="."||W)&&r(m,de,null,R[de],void 0,C)}else if(R.onClick)r(m,"onClick",null,R.onClick,void 0,C);else if(K&4&&In(R.style))for(const W in R.style)R.style[W]}let Y;(Y=R&&R.onVnodeBeforeMount)&&st(Y,C,b),ee&&kt(b,null,C,"beforeMount"),((Y=R&&R.onVnodeMounted)||ee||L)&&Wf(()=>{Y&&st(Y,C,b),L&&H.enter(m),ee&&kt(b,null,C,"mounted")},E)}return m.nextSibling},h=(m,b,C,E,S,M,F)=>{F=F||!!b.dynamicChildren;const R=b.children,K=R.length;for(let z=0;z<K;z++){const ee=F?R[z]:R[z]=nt(R[z]),H=ee.type===Ln;m?(H&&!F&&z+1<K&&nt(R[z+1]).type===Ln&&(l(s(m.data.slice(ee.children.length)),C,o(m)),m.data=ee.children),m=f(m,ee,E,S,M,F)):H&&!ee.children?l(ee.el=s(""),C):(ys(C,1)||zn(),n(null,ee,C,null,E,S,ms(C),M))}return m},p=(m,b,C,E,S,M)=>{const{slotScopeIds:F}=b;F&&(S=S?S.concat(F):F);const R=i(m),K=h(o(m),b,R,C,E,S,M);return K&&Qn(K)&&K.data==="]"?o(b.anchor=K):(zn(),l(b.anchor=u("]"),R,K),K)},g=(m,b,C,E,S,M)=>{if(ys(m.parentElement,1)||zn(),b.el=null,M){const K=y(m);for(;;){const z=o(m);if(z&&z!==K)a(z);else break}}const F=o(m),R=i(m);return a(m),n(null,b,R,F,C,E,ms(R),S),C&&(C.vnode.el=b.el,Oo(C,b.el)),F},y=(m,b="[",C="]")=>{let E=0;for(;m;)if(m=o(m),m&&Qn(m)&&(m.data===b&&E++,m.data===C)){if(E===0)return o(m);E--}return m},_=(m,b,C)=>{const E=b.parentNode;E&&E.replaceChild(m,b);let S=C;for(;S;)S.vnode.el===b&&(S.vnode.el=S.subTree.el=m),S=S.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const Bl="data-allow-mismatch",kg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ys(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Bl);)e=e.parentElement;const n=e&&e.getAttribute(Bl);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(kg[t])}}Ao().requestIdleCallback;Ao().cancelIdleCallback;function Ag(e,t){if(Qn(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Qn(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Nn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Fl(e){Q(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((y,_)=>{l(g,()=>y(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 bt({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,y){const _=o?()=>{const m=o(()=>{y()},b=>Ag(p,b));m&&(g.bum||(g.bum=[])).push(m),(g.u||(g.u=[])).push(()=>!0)}:y;c?_():h().then(()=>!g.isUnmounted&&_())},get __asyncResolved(){return c},setup(){const p=$e;if(Va(p),c)return()=>li(c,p);const g=m=>{u=null,yr(m,p,13,!r)};if(a&&p.suspense||hr)return h().then(m=>()=>li(m,p)).catch(m=>(g(m),()=>r?V(r,{error:m}):null));const y=Ee(!1),_=Ee(),v=Ee(!!s);return s&&setTimeout(()=>{v.value=!1},s),i!=null&&setTimeout(()=>{if(!y.value&&!_.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),_.value=m}},i),h().then(()=>{y.value=!0,p.parent&&qa(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),_.value=m}),()=>{if(y.value&&c)return li(c,p);if(_.value&&r)return V(r,{error:_.value});if(n&&!v.value)return V(n)}}})}function li(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=V(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const qa=e=>e.type.__isKeepAlive;function pf(e,t){mf(e,"a",t)}function gf(e,t){mf(e,"da",t)}function mf(e,t,n=$e){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Po(t,r,n),n){let s=n.parent;for(;s&&s.parent;)qa(s.parent.vnode)&&Eg(r,t,n,s),s=s.parent}}function Eg(e,t,n,r){const s=Po(t,e,r,!0);yf(()=>{Oa(r[t],s)},n)}function Po(e,t,n=$e,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Wt();const a=Dn(n),l=$t(t,n,e,i);return a(),zt(),l});return r?s.unshift(o):s.push(o),o}}const qt=e=>(t,n=$e)=>{(!hr||e==="sp")&&Po(e,(...r)=>t(...r),n)},Tg=qt("bm"),Ka=qt("m"),$g=qt("bu"),Rg=qt("u"),Ja=qt("bum"),yf=qt("um"),Pg=qt("sp"),Ig=qt("rtg"),Ng=qt("rtc");function _f(e,t=$e){Po("ec",e,t)}const wf="components";function hn(e,t){return vf(wf,e,!0,t)||e}const bf=Symbol.for("v-ndc");function Og(e){return ve(e)?vf(wf,e,!1)||e:e||bf}function vf(e,t,n=!0,r=!1){const s=Re||$e;if(s){const o=s.type;{const a=Sm(o,!1);if(a&&(a===t||a===ut(t)||a===ko(ut(t))))return o}const i=jl(s[e]||o[e],t)||jl(s.appContext[e],t);return!i&&r?o:i}}function jl(e,t){return e&&(e[t]||e[ut(t)]||e[ko(ut(t))])}function Jn(e,t,n,r){let s;const o=n,i=Z(e);if(i||ve(e)){const a=i&&In(e);let l=!1,u=!1;a&&(l=!ct(e),u=Vt(e),e=To(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Gs(Le(e[c])):Le(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(ge(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 Je(e,t,n={},r,s){if(Re.ce||Re.parent&&Nn(Re.parent)&&Re.parent.ce)return t!=="default"&&(n.name=t),G(),be(we,null,[V("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),G();const i=o&&Cf(o(n)),a=n.key||i&&i.key,l=be(we,{key:(a&&!wt(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=>fr(t)?!(t.type===ft||t.type===we&&!Cf(t.children)):!0)?e:null}const Ui=e=>e?Kf(e)?Lo(e):Ui(e.parent):null,Nr=We(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=>Ui(e.parent),$root:e=>Ui(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Sf(e),$forceUpdate:e=>e.f||(e.f=()=>{Wa(e.update)}),$nextTick:e=>e.n||(e.n=_r.bind(e.proxy)),$watch:e=>tm.bind(e)}),ci=(e,t)=>e!==pe&&!e.__isScriptSetup&&fe(e,t),Mg={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(ci(r,t))return i[t]=1,r[t];if(s!==pe&&fe(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&fe(u,t))return i[t]=3,o[t];if(n!==pe&&fe(n,t))return i[t]=4,n[t];Gi&&(i[t]=0)}}const c=Nr[t];let f,d;if(c)return t==="$attrs"&&Ue(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==pe&&fe(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,fe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return ci(s,t)?(s[t]=n,!0):r!==pe&&fe(r,t)?(r[t]=n,!0):fe(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}},i){let a;return!!n[i]||e!==pe&&fe(e,i)||ci(t,i)||(a=o[0])&&fe(a,i)||fe(r,i)||fe(Nr,i)||fe(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ul(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Lg(e){const t=ls();let n=e();return Ki(),Ma(n)&&(n=n.catch(r=>{throw Dn(t),r})),[n,()=>Dn(t)]}let Gi=!0;function Dg(e){const t=Sf(e),n=e.proxy,r=e.ctx;Gi=!1,t.beforeCreate&&Gl(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:y,beforeDestroy:_,beforeUnmount:v,destroyed:m,unmounted:b,render:C,renderTracked:E,renderTriggered:S,errorCaptured:M,serverPrefetch:F,expose:R,inheritAttrs:K,components:z,directives:ee,filters:H}=t;if(u&&Hg(u,r,null),i)for(const Y in i){const W=i[Y];Q(W)&&(r[Y]=W.bind(n))}if(s){const Y=s.call(n,n);ge(Y)&&(e.data=dn(Y))}if(Gi=!0,o)for(const Y in o){const W=o[Y],de=Q(W)?W.bind(n,n):Q(W.get)?W.get.bind(n,n):At,Un=!Q(W)&&Q(W.set)?W.set.bind(n):At,yn=Se({get:de,set:Un});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>yn.value,set:vt=>yn.value=vt})}if(a)for(const Y in a)xf(a[Y],r,n,Y);if(l){const Y=Q(l)?l.call(n):l;Reflect.ownKeys(Y).forEach(W=>{Af(W,Y[W])})}c&&Gl(c,e,"c");function L(Y,W){Z(W)?W.forEach(de=>Y(de.bind(n))):W&&Y(W.bind(n))}if(L(Tg,f),L(Ka,d),L($g,h),L(Rg,p),L(pf,g),L(gf,y),L(_f,M),L(Ng,E),L(Ig,S),L(Ja,v),L(yf,b),L(Pg,F),Z(R))if(R.length){const Y=e.exposed||(e.exposed={});R.forEach(W=>{Object.defineProperty(Y,W,{get:()=>n[W],set:de=>n[W]=de})})}else e.exposed||(e.exposed={});C&&e.render===At&&(e.render=C),K!=null&&(e.inheritAttrs=K),z&&(e.components=z),ee&&(e.directives=ee),F&&Va(e)}function Hg(e,t,n=At){Z(e)&&(e=Wi(e));for(const r in e){const s=e[r];let o;ge(s)?"default"in s?o=Mn(s.from||r,s.default,!0):o=Mn(s.from||r):o=Mn(s),Ae(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Gl(e,t,n){$t(Z(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function xf(e,t,n,r){let s=r.includes(".")?Ff(n,r):()=>n[r];if(ve(e)){const o=t[e];Q(o)&&an(s,o)}else if(Q(e))an(s,e.bind(n));else if(ge(e))if(Z(e))e.forEach(o=>xf(o,t,n,r));else{const o=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(o)&&an(s,o,e)}}function Sf(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=>Js(l,u,i,!0)),Js(l,t,i)),ge(t)&&o.set(t,l),l}function Js(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Js(e,o,n,!0),s&&s.forEach(i=>Js(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Bg[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Bg={data:Wl,props:zl,emits:zl,methods:$r,computed:$r,beforeCreate:Ve,created:Ve,beforeMount:Ve,mounted:Ve,beforeUpdate:Ve,updated:Ve,beforeDestroy:Ve,beforeUnmount:Ve,destroyed:Ve,unmounted:Ve,activated:Ve,deactivated:Ve,errorCaptured:Ve,serverPrefetch:Ve,components:$r,directives:$r,watch:jg,provide:Wl,inject:Fg};function Wl(e,t){return t?e?function(){return We(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Fg(e,t){return $r(Wi(e),Wi(t))}function Wi(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ve(e,t){return e?[...new Set([].concat(e,t))]:t}function $r(e,t){return e?We(Object.create(null),e,t):t}function zl(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:We(Object.create(null),Ul(e),Ul(t??{})):t}function jg(e,t){if(!e)return t;if(!t)return e;const n=We(Object.create(null),e);for(const r in t)n[r]=Ve(e[r],t[r]);return n}function kf(){return{app:null,config:{isNativeTag:vp,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 Ug=0;function Gg(e,t){return function(r,s=null){Q(r)||(r=We({},r)),s!=null&&!ge(s)&&(s=null);const o=kf(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:Ug++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Am,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&Q(c.install)?(i.add(c),c.install(u,...f)):Q(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||V(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,Lo(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&($t(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=On;On=u;try{return c()}finally{On=f}}};return u}}let On=null;function Af(e,t){if($e){let n=$e.provides;const r=$e.parent&&$e.parent.provides;r===n&&(n=$e.provides=Object.create(r)),n[e]=t}}function Mn(e,t,n=!1){const r=$e||Re;if(r||On){let s=On?On._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&&Q(t)?t.call(r&&r.proxy):t}}function Io(){return!!($e||Re||On)}const Ef={},Tf=()=>Object.create(Ef),$f=e=>Object.getPrototypeOf(e)===Ef;function Wg(e,t,n,r=!1){const s={},o=Tf();e.propsDefaults=Object.create(null),Rf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Zn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function zg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ue(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(No(e.emitsOptions,d))continue;const h=t[d];if(l)if(fe(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const p=ut(d);s[p]=zi(l,a,p,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{Rf(e,t,s,o)&&(u=!0);let c;for(const f in a)(!t||!fe(t,f)&&((c=gn(f))===f||!fe(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=zi(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!fe(t,f))&&(delete o[f],u=!0)}u&&Ht(e.attrs,"set","")}function Rf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(rr(l))continue;const u=t[l];let c;s&&fe(s,c=ut(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:No(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=ue(n),u=a||pe;for(let c=0;c<o.length;c++){const f=o[c];n[f]=zi(s,l,f,u[f],e,!fe(u,f))}}return i}function zi(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=fe(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Q(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=Dn(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===gn(n))&&(r=!0))}return r}const Vg=new WeakMap;function Pf(e,t,n=!1){const r=n?Vg:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!Q(e)){const c=f=>{l=!0;const[d,h]=Pf(f,t,!0);We(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 ge(e)&&r.set(e,tr),tr;if(Z(o))for(let c=0;c<o.length;c++){const f=ut(o[c]);Vl(f)&&(i[f]=pe)}else if(o)for(const c in o){const f=ut(c);if(Vl(f)){const d=o[c],h=i[f]=Z(d)||Q(d)?{type:d}:We({},d),p=h.type;let g=!1,y=!0;if(Z(p))for(let _=0;_<p.length;++_){const v=p[_],m=Q(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=Q(p)&&p.name==="Boolean";h[0]=g,h[1]=y,(g||fe(h,"default"))&&a.push(f)}}const u=[i,a];return ge(e)&&r.set(e,u),u}function Vl(e){return e[0]!=="$"&&!rr(e)}const Xa=e=>e[0]==="_"||e==="$stable",Ya=e=>Z(e)?e.map(nt):[nt(e)],qg=(e,t,n)=>{if(t._n)return t;const r=oe((...s)=>Ya(t(...s)),n);return r._c=!1,r},If=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Xa(s))continue;const o=e[s];if(Q(o))t[s]=qg(s,o,r);else if(o!=null){const i=Ya(o);t[s]=()=>i}}},Nf=(e,t)=>{const n=Ya(t);e.slots.default=()=>n},Of=(e,t,n)=>{for(const r in t)(n||!Xa(r))&&(e[r]=t[r])},Kg=(e,t,n)=>{const r=e.slots=Tf();if(e.vnode.shapeFlag&32){const s=t.__;s&&Di(r,"__",s,!0);const o=t._;o?(Of(r,t,n),n&&Di(r,"_",o,!0)):If(t,r)}else t&&Nf(e,t)},Jg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=pe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Of(s,t,n):(o=!t.$stable,If(t,s)),i=t}else t&&(Nf(e,t),i={default:1});if(o)for(const a in s)!Xa(a)&&i[a]==null&&delete s[a]},tt=Wf;function Xg(e){return Mf(e)}function Yg(e){return Mf(e,Sg)}function Mf(e,t){const n=Ao();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=At,insertStaticContent:p}=e,g=(w,x,A,P=null,T=null,$=null,j=void 0,B=null,D=!!x.dynamicChildren)=>{if(w===x)return;w&&!tn(w,x)&&(P=ds(w),vt(w,T,$,!0),w=null),x.patchFlag===-2&&(D=!1,x.dynamicChildren=null);const{type:I,ref:J,shapeFlag:U}=x;switch(I){case Ln:y(w,x,A,P);break;case ft:_(w,x,A,P);break;case Or:w==null&&v(x,A,P,j);break;case we:z(w,x,A,P,T,$,j,B,D);break;default:U&1?C(w,x,A,P,T,$,j,B,D):U&6?ee(w,x,A,P,T,$,j,B,D):(U&64||U&128)&&I.process(w,x,A,P,T,$,j,B,D,Gn)}J!=null&&T?or(J,w&&w.ref,$,x||w,!x):J==null&&w&&w.ref!=null&&or(w.ref,null,$,w,!0)},y=(w,x,A,P)=>{if(w==null)r(x.el=a(x.children),A,P);else{const T=x.el=w.el;x.children!==w.children&&u(T,x.children)}},_=(w,x,A,P)=>{w==null?r(x.el=l(x.children||""),A,P):x.el=w.el},v=(w,x,A,P)=>{[w.el,w.anchor]=p(w.children,x,A,P,w.el,w.anchor)},m=({el:w,anchor:x},A,P)=>{let T;for(;w&&w!==x;)T=d(w),r(w,A,P),w=T;r(x,A,P)},b=({el:w,anchor:x})=>{let A;for(;w&&w!==x;)A=d(w),s(w),w=A;s(x)},C=(w,x,A,P,T,$,j,B,D)=>{x.type==="svg"?j="svg":x.type==="math"&&(j="mathml"),w==null?E(x,A,P,T,$,j,B,D):F(w,x,T,$,j,B,D)},E=(w,x,A,P,T,$,j,B)=>{let D,I;const{props:J,shapeFlag:U,transition:q,dirs:ne}=w;if(D=w.el=i(w.type,$,J&&J.is,J),U&8?c(D,w.children):U&16&&M(w.children,D,null,P,T,ui(w,$),j,B),ne&&kt(w,null,P,"created"),S(D,w,w.scopeId,j,P),J){for(const me in J)me!=="value"&&!rr(me)&&o(D,me,null,J[me],$,P);"value"in J&&o(D,"value",null,J.value,$),(I=J.onVnodeBeforeMount)&&st(I,P,w)}ne&&kt(w,null,P,"beforeMount");const le=Lf(T,q);le&&q.beforeEnter(D),r(D,x,A),((I=J&&J.onVnodeMounted)||le||ne)&&tt(()=>{I&&st(I,P,w),le&&q.enter(D),ne&&kt(w,null,P,"mounted")},T)},S=(w,x,A,P,T)=>{if(A&&h(w,A),P)for(let $=0;$<P.length;$++)h(w,P[$]);if(T){let $=T.subTree;if(x===$||Uf($.type)&&($.ssContent===x||$.ssFallback===x)){const j=T.vnode;S(w,j,j.scopeId,j.slotScopeIds,T.parent)}}},M=(w,x,A,P,T,$,j,B,D=0)=>{for(let I=D;I<w.length;I++){const J=w[I]=B?Qt(w[I]):nt(w[I]);g(null,J,x,A,P,T,$,j,B)}},F=(w,x,A,P,T,$,j)=>{const B=x.el=w.el;let{patchFlag:D,dynamicChildren:I,dirs:J}=x;D|=w.patchFlag&16;const U=w.props||pe,q=x.props||pe;let ne;if(A&&wn(A,!1),(ne=q.onVnodeBeforeUpdate)&&st(ne,A,x,w),J&&kt(x,w,A,"beforeUpdate"),A&&wn(A,!0),(U.innerHTML&&q.innerHTML==null||U.textContent&&q.textContent==null)&&c(B,""),I?R(w.dynamicChildren,I,B,A,P,ui(x,T),$):j||W(w,x,B,null,A,P,ui(x,T),$,!1),D>0){if(D&16)K(B,U,q,A,T);else if(D&2&&U.class!==q.class&&o(B,"class",null,q.class,T),D&4&&o(B,"style",U.style,q.style,T),D&8){const le=x.dynamicProps;for(let me=0;me<le.length;me++){const he=le[me],Ke=U[he],He=q[he];(He!==Ke||he==="value")&&o(B,he,Ke,He,T,A)}}D&1&&w.children!==x.children&&c(B,x.children)}else!j&&I==null&&K(B,U,q,A,T);((ne=q.onVnodeUpdated)||J)&&tt(()=>{ne&&st(ne,A,x,w),J&&kt(x,w,A,"updated")},P)},R=(w,x,A,P,T,$,j)=>{for(let B=0;B<x.length;B++){const D=w[B],I=x[B],J=D.el&&(D.type===we||!tn(D,I)||D.shapeFlag&198)?f(D.el):A;g(D,I,J,null,P,T,$,j,!0)}},K=(w,x,A,P,T)=>{if(x!==A){if(x!==pe)for(const $ in x)!rr($)&&!($ in A)&&o(w,$,x[$],null,T,P);for(const $ in A){if(rr($))continue;const j=A[$],B=x[$];j!==B&&$!=="value"&&o(w,$,B,j,T,P)}"value"in A&&o(w,"value",x.value,A.value,T)}},z=(w,x,A,P,T,$,j,B,D)=>{const I=x.el=w?w.el:a(""),J=x.anchor=w?w.anchor:a("");let{patchFlag:U,dynamicChildren:q,slotScopeIds:ne}=x;ne&&(B=B?B.concat(ne):ne),w==null?(r(I,A,P),r(J,A,P),M(x.children||[],A,J,T,$,j,B,D)):U>0&&U&64&&q&&w.dynamicChildren?(R(w.dynamicChildren,q,A,T,$,j,B),(x.key!=null||T&&x===T.subTree)&&Df(w,x,!0)):W(w,x,A,J,T,$,j,B,D)},ee=(w,x,A,P,T,$,j,B,D)=>{x.slotScopeIds=B,w==null?x.shapeFlag&512?T.ctx.activate(x,A,P,j,D):H(x,A,P,T,$,j,D):X(w,x,D)},H=(w,x,A,P,T,$,j)=>{const B=w.component=wm(w,P,T);if(qa(w)&&(B.ctx.renderer=Gn),bm(B,!1,j),B.asyncDep){if(T&&T.registerDep(B,L,j),!w.el){const D=B.subTree=V(ft);_(null,D,x,A)}}else L(B,w,x,A,T,$,j)},X=(w,x,A)=>{const P=x.component=w.component;if(am(w,x,A))if(P.asyncDep&&!P.asyncResolved){Y(P,x,A);return}else P.next=x,P.update();else x.el=w.el,P.vnode=x},L=(w,x,A,P,T,$,j)=>{const B=()=>{if(w.isMounted){let{next:U,bu:q,u:ne,parent:le,vnode:me}=w;{const Ze=Hf(w);if(Ze){U&&(U.el=me.el,Y(w,U,j)),Ze.asyncDep.then(()=>{w.isUnmounted||B()});return}}let he=U,Ke;wn(w,!1),U?(U.el=me.el,Y(w,U,j)):U=me,q&&Is(q),(Ke=U.props&&U.props.onVnodeBeforeUpdate)&&st(Ke,le,U,me),wn(w,!0);const He=fi(w),dt=w.subTree;w.subTree=He,g(dt,He,f(dt.el),ds(dt),w,T,$),U.el=He.el,he===null&&Oo(w,He.el),ne&&tt(ne,T),(Ke=U.props&&U.props.onVnodeUpdated)&&tt(()=>st(Ke,le,U,me),T)}else{let U;const{el:q,props:ne}=x,{bm:le,m:me,parent:he,root:Ke,type:He}=w,dt=Nn(x);if(wn(w,!1),le&&Is(le),!dt&&(U=ne&&ne.onVnodeBeforeMount)&&st(U,he,x),wn(w,!0),q&&ei){const Ze=()=>{w.subTree=fi(w),ei(q,w.subTree,w,T,null)};dt&&He.__asyncHydrate?He.__asyncHydrate(q,w,Ze):Ze()}else{Ke.ce&&Ke.ce._def.shadowRoot!==!1&&Ke.ce._injectChildStyle(He);const Ze=w.subTree=fi(w);g(null,Ze,A,P,w,T,$),x.el=Ze.el}if(me&&tt(me,T),!dt&&(U=ne&&ne.onVnodeMounted)){const Ze=x;tt(()=>st(U,he,Ze),T)}(x.shapeFlag&256||he&&Nn(he.vnode)&&he.vnode.shapeFlag&256)&&w.a&&tt(w.a,T),w.isMounted=!0,x=A=P=null}};w.scope.on();const D=w.effect=new qu(B);w.scope.off();const I=w.update=D.run.bind(D),J=w.job=D.runIfDirty.bind(D);J.i=w,J.id=w.uid,D.scheduler=()=>Wa(J),wn(w,!0),I()},Y=(w,x,A)=>{x.component=w;const P=w.vnode.props;w.vnode=x,w.next=null,zg(w,x.props,P,A),Jg(w,x.children,A),Wt(),Dl(w),zt()},W=(w,x,A,P,T,$,j,B,D=!1)=>{const I=w&&w.children,J=w?w.shapeFlag:0,U=x.children,{patchFlag:q,shapeFlag:ne}=x;if(q>0){if(q&128){Un(I,U,A,P,T,$,j,B,D);return}else if(q&256){de(I,U,A,P,T,$,j,B,D);return}}ne&8?(J&16&&xr(I,T,$),U!==I&&c(A,U)):J&16?ne&16?Un(I,U,A,P,T,$,j,B,D):xr(I,T,$,!0):(J&8&&c(A,""),ne&16&&M(U,A,P,T,$,j,B,D))},de=(w,x,A,P,T,$,j,B,D)=>{w=w||tr,x=x||tr;const I=w.length,J=x.length,U=Math.min(I,J);let q;for(q=0;q<U;q++){const ne=x[q]=D?Qt(x[q]):nt(x[q]);g(w[q],ne,A,null,T,$,j,B,D)}I>J?xr(w,T,$,!0,!1,U):M(x,A,P,T,$,j,B,D,U)},Un=(w,x,A,P,T,$,j,B,D)=>{let I=0;const J=x.length;let U=w.length-1,q=J-1;for(;I<=U&&I<=q;){const ne=w[I],le=x[I]=D?Qt(x[I]):nt(x[I]);if(tn(ne,le))g(ne,le,A,null,T,$,j,B,D);else break;I++}for(;I<=U&&I<=q;){const ne=w[U],le=x[q]=D?Qt(x[q]):nt(x[q]);if(tn(ne,le))g(ne,le,A,null,T,$,j,B,D);else break;U--,q--}if(I>U){if(I<=q){const ne=q+1,le=ne<J?x[ne].el:P;for(;I<=q;)g(null,x[I]=D?Qt(x[I]):nt(x[I]),A,le,T,$,j,B,D),I++}}else if(I>q)for(;I<=U;)vt(w[I],T,$,!0),I++;else{const ne=I,le=I,me=new Map;for(I=le;I<=q;I++){const Qe=x[I]=D?Qt(x[I]):nt(x[I]);Qe.key!=null&&me.set(Qe.key,I)}let he,Ke=0;const He=q-le+1;let dt=!1,Ze=0;const Sr=new Array(He);for(I=0;I<He;I++)Sr[I]=0;for(I=ne;I<=U;I++){const Qe=w[I];if(Ke>=He){vt(Qe,T,$,!0);continue}let Ct;if(Qe.key!=null)Ct=me.get(Qe.key);else for(he=le;he<=q;he++)if(Sr[he-le]===0&&tn(Qe,x[he])){Ct=he;break}Ct===void 0?vt(Qe,T,$,!0):(Sr[Ct-le]=I+1,Ct>=Ze?Ze=Ct:dt=!0,g(Qe,x[Ct],A,null,T,$,j,B,D),Ke++)}const $l=dt?Zg(Sr):tr;for(he=$l.length-1,I=He-1;I>=0;I--){const Qe=le+I,Ct=x[Qe],Rl=Qe+1<J?x[Qe+1].el:P;Sr[I]===0?g(null,Ct,A,Rl,T,$,j,B,D):dt&&(he<0||I!==$l[he]?yn(Ct,A,Rl,2):he--)}}},yn=(w,x,A,P,T=null)=>{const{el:$,type:j,transition:B,children:D,shapeFlag:I}=w;if(I&6){yn(w.component.subTree,x,A,P);return}if(I&128){w.suspense.move(x,A,P);return}if(I&64){j.move(w,x,A,Gn);return}if(j===we){r($,x,A);for(let U=0;U<D.length;U++)yn(D[U],x,A,P);r(w.anchor,x,A);return}if(j===Or){m(w,x,A);return}if(P!==2&&I&1&&B)if(P===0)B.beforeEnter($),r($,x,A),tt(()=>B.enter($),T);else{const{leave:U,delayLeave:q,afterLeave:ne}=B,le=()=>{w.ctx.isUnmounted?s($):r($,x,A)},me=()=>{U($,()=>{le(),ne&&ne()})};q?q($,le,me):me()}else r($,x,A)},vt=(w,x,A,P=!1,T=!1)=>{const{type:$,props:j,ref:B,children:D,dynamicChildren:I,shapeFlag:J,patchFlag:U,dirs:q,cacheIndex:ne}=w;if(U===-2&&(T=!1),B!=null&&(Wt(),or(B,null,A,w,!0),zt()),ne!=null&&(x.renderCache[ne]=void 0),J&256){x.ctx.deactivate(w);return}const le=J&1&&q,me=!Nn(w);let he;if(me&&(he=j&&j.onVnodeBeforeUnmount)&&st(he,x,w),J&6)mp(w.component,A,P);else{if(J&128){w.suspense.unmount(A,P);return}le&&kt(w,null,x,"beforeUnmount"),J&64?w.type.remove(w,x,A,Gn,P):I&&!I.hasOnce&&($!==we||U>0&&U&64)?xr(I,x,A,!1,!0):($===we&&U&384||!T&&J&16)&&xr(D,x,A),P&&El(w)}(me&&(he=j&&j.onVnodeUnmounted)||le)&&tt(()=>{he&&st(he,x,w),le&&kt(w,null,x,"unmounted")},A)},El=w=>{const{type:x,el:A,anchor:P,transition:T}=w;if(x===we){gp(A,P);return}if(x===Or){b(w);return}const $=()=>{s(A),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(w.shapeFlag&1&&T&&!T.persisted){const{leave:j,delayLeave:B}=T,D=()=>j(A,$);B?B(w.el,$,D):D()}else $()},gp=(w,x)=>{let A;for(;w!==x;)A=d(w),s(w),w=A;s(x)},mp=(w,x,A)=>{const{bum:P,scope:T,job:$,subTree:j,um:B,m:D,a:I,parent:J,slots:{__:U}}=w;ql(D),ql(I),P&&Is(P),J&&Z(U)&&U.forEach(q=>{J.renderCache[q]=void 0}),T.stop(),$&&($.flags|=8,vt(j,w,x,A)),B&&tt(B,x),tt(()=>{w.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},xr=(w,x,A,P=!1,T=!1,$=0)=>{for(let j=$;j<w.length;j++)vt(w[j],x,A,P,T)},ds=w=>{if(w.shapeFlag&6)return ds(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const x=d(w.anchor||w.el),A=x&&x[bg];return A?d(A):x};let Zo=!1;const Tl=(w,x,A)=>{w==null?x._vnode&&vt(x._vnode,null,null,!0):g(x._vnode||null,w,x,null,null,null,A),x._vnode=w,Zo||(Zo=!0,Dl(),qs(),Zo=!1)},Gn={p:g,um:vt,m:yn,r:El,mt:H,mc:M,pc:W,pbc:R,n:ds,o:e};let Qo,ei;return t&&([Qo,ei]=t(Gn)),{render:Tl,hydrate:Qo,createApp:Gg(Tl,Qo)}}function ui({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 wn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Lf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Df(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]=Qt(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Df(i,a)),a.type===Ln&&(a.el=i.el),a.type===ft&&!a.el&&(a.el=i.el)}}function Zg(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 Hf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hf(t)}function ql(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Qg=Symbol.for("v-scx"),em=()=>Mn(Qg);function Bf(e,t){return Za(e,null,t)}function an(e,t,n){return Za(e,t,n)}function Za(e,t,n=pe){const{immediate:r,deep:s,flush:o,once:i}=n,a=We({},n),l=t&&r||!t&&o!=="post";let u;if(hr){if(o==="sync"){const h=em();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=At,h.resume=At,h.pause=At,h}}const c=$e;a.call=(h,p,g)=>$t(h,c,p,g);let f=!1;o==="post"?a.scheduler=h=>{tt(h,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():Wa(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=hg(e,t,a);return hr&&(u?u.push(d):l&&d()),d}function tm(e,t,n){const r=this.proxy,s=ve(e)?e.includes(".")?Ff(r,e):()=>r[e]:e.bind(r,r);let o;Q(t)?o=t:(o=t.handler,n=t);const i=Dn(this),a=Za(s,o.bind(r),n);return i(),a}function Ff(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 nm=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ut(t)}Modifiers`]||e[`${gn(t)}Modifiers`];function rm(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||pe;let s=n;const o=t.startsWith("update:"),i=o&&nm(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>ve(c)?c.trim():c)),i.number&&(s=n.map(Ap)));let a,l=r[a=ri(t)]||r[a=ri(ut(t))];!l&&o&&(l=r[a=ri(gn(t))]),l&&$t(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,$t(u,e,6,s)}}function jf(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!Q(e)){const l=u=>{const c=jf(u,t,!0);c&&(a=!0,We(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(ge(e)&&r.set(e,null),null):(Z(o)?o.forEach(l=>i[l]=null):We(i,o),ge(e)&&r.set(e,i),i)}function No(e,t){return!e||!os(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,gn(t))||fe(e,t))}function fi(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,y=Ks(e);let _,v;try{if(n.shapeFlag&4){const b=s||r,C=b;_=nt(u.call(C,b,c,f,h,d,p)),v=a}else{const b=t;_=nt(b.length>1?b(f,{attrs:a,slots:i,emit:l}):b(f,null)),v=t.props?a:om(a)}}catch(b){Mr.length=0,yr(b,e,1),_=V(ft)}let m=_;if(v&&g!==!1){const b=Object.keys(v),{shapeFlag:C}=m;b.length&&C&7&&(o&&b.some(Na)&&(v=im(v,o)),m=dr(m,v,!1,!0))}return n.dirs&&(m=dr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&za(m,n.transition),_=m,Ks(y),_}function sm(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(fr(s)){if(s.type!==ft||s.children==="v-if"){if(n)return;n=s}}else return}return n}const om=e=>{let t;for(const n in e)(n==="class"||n==="style"||os(n))&&((t||(t={}))[n]=e[n]);return t},im=(e,t)=>{const n={};for(const r in e)(!Na(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function am(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?Kl(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]&&!No(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Kl(r,i,u):!0:!!i;return!1}function Kl(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]&&!No(n,o))return!0}return!1}function Oo({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 Uf=e=>e.__isSuspense;let Vi=0;const lm={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,u){if(e==null)um(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}fm(e,t,n,r,s,i,a,l,u)}},hydrate:dm,normalize:hm},cm=lm;function qr(e,t){const n=e.props&&e.props[t];Q(n)&&n()}function um(e,t,n,r,s,o,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Gf(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?(qr(e,"onPending"),qr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),ir(d,e.ssFallback)):d.resolve(!1,!0)}function fm(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:y,isHydrating:_}=f;if(g)f.pendingBranch=d,tn(d,g)?(l(g,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():y&&(_||(l(p,h,n,r,s,null,o,i,a),ir(f,h)))):(f.pendingId=Vi++,_?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),y?(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),ir(f,h))):p&&tn(d,p)?(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&&tn(d,p))l(p,d,n,r,s,f,o,i,a),ir(f,d);else if(qr(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Vi++,l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:m}=f;v>0?setTimeout(()=>{f.pendingId===m&&f.fallback(h)},v):v===0&&f.fallback(h)}}function Gf(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:y}}=u;let _;const v=pm(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const m=e.props?Ep(e.props.timeout):void 0,b=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Vi++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(E=!1,S=!1){const{vnode:M,activeBranch:F,pendingBranch:R,pendingId:K,effects:z,parentComponent:ee,container:H}=C;let X=!1;C.isHydrating?C.isHydrating=!1:E||(X=F&&R.transition&&R.transition.mode==="out-in",X&&(F.transition.afterLeave=()=>{K===C.pendingId&&(d(R,H,o===b?p(F):o,0),ji(z))}),F&&(g(F.el)===H&&(o=p(F)),h(F,ee,C,!0)),X||d(R,H,o,0)),ir(C,R),C.pendingBranch=null,C.isInFallback=!1;let L=C.parent,Y=!1;for(;L;){if(L.pendingBranch){L.effects.push(...z),Y=!0;break}L=L.parent}!Y&&!X&&ji(z),C.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!S&&t.resolve()),qr(M,"onResolve")},fallback(E){if(!C.pendingBranch)return;const{vnode:S,activeBranch:M,parentComponent:F,container:R,namespace:K}=C;qr(S,"onFallback");const z=p(M),ee=()=>{C.isInFallback&&(f(null,E,R,z,F,null,K,a,l),ir(C,E))},H=E.transition&&E.transition.mode==="out-in";H&&(M.transition.afterLeave=ee),C.isInFallback=!0,h(M,F,null,!0),H||ee()},move(E,S,M){C.activeBranch&&d(C.activeBranch,E,S,M),C.container=E},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(E,S,M){const F=!!C.pendingBranch;F&&C.deps++;const R=E.vnode.el;E.asyncDep.catch(K=>{yr(K,E,0)}).then(K=>{if(E.isUnmounted||C.isUnmounted||C.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:z}=E;Ji(E,K),R&&(z.el=R);const ee=!R&&E.subTree.el;S(E,z,g(R||E.subTree.el),R?null:p(E.subTree),C,i,M),ee&&y(ee),Oo(E,z.el),F&&--C.deps===0&&C.resolve()})},unmount(E,S){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,n,E,S),C.pendingBranch&&h(C.pendingBranch,n,E,S)}};return C}function dm(e,t,n,r,s,o,i,a,l){const u=t.suspense=Gf(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 hm(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Jl(r?n.default:n),e.ssFallback=r?Jl(n.fallback):V(ft)}function Jl(e){let t;if(Q(e)){const n=ur&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=Xe,zf())}return Z(e)&&(e=sm(e)),e=nt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Wf(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):ji(e)}function ir(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,Oo(r,s))}function pm(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const we=Symbol.for("v-fgt"),Ln=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),Or=Symbol.for("v-stc"),Mr=[];let Xe=null;function G(e=!1){Mr.push(Xe=e?null:[])}function zf(){Mr.pop(),Xe=Mr[Mr.length-1]||null}let ur=1;function Xl(e,t=!1){ur+=e,e<0&&Xe&&t&&(Xe.hasOnce=!0)}function Vf(e){return e.dynamicChildren=ur>0?Xe||tr:null,zf(),ur>0&&Xe&&Xe.push(e),e}function te(e,t,n,r,s,o){return Vf(O(e,t,n,r,s,o,!0))}function be(e,t,n,r,s){return Vf(V(e,t,n,r,s,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function tn(e,t){return e.type===t.type&&e.key===t.key}const qf=({key:e})=>e??null,Ns=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||Ae(e)||Q(e)?{i:Re,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,s=null,o=e===we?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qf(t),ref:t&&Ns(t),scopeId:Ro,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:Re};return a?(el(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ve(n)?8:16),ur>0&&!i&&Xe&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Xe.push(l),l}const V=gm;function gm(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===bf)&&(e=ft),fr(e)){const a=dr(e,t,!0);return n&&el(a,n),ur>0&&!o&&Xe&&(a.shapeFlag&6?Xe[Xe.indexOf(e)]=a:Xe.push(a)),a.patchFlag=-2,a}if(km(e)&&(e=e.__vccOpts),t){t=Qa(t);let{class:a,style:l}=t;a&&!ve(a)&&(t.class=ke(a)),ge(l)&&(Ga(l)&&!Z(l)&&(l=We({},l)),t.style=Rn(l))}const i=ve(e)?1:Uf(e)?128:vg(e)?64:ge(e)?4:Q(e)?2:0;return O(e,t,n,r,s,i,o,!0)}function Qa(e){return e?Ga(e)||$f(e)?We({},e):e:null}function dr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?Mo(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&qf(u),ref:t&&t.ref?n&&o?Z(o)?o.concat(Ns(t)):[o,Ns(t)]:Ns(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!==we?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&&dr(e.ssContent),ssFallback:e.ssFallback&&dr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&za(c,l.clone(c)),c}function ae(e=" ",t=0){return V(Ln,null,e,t)}function mm(e,t){const n=V(Or,null,e);return n.staticCount=t,n}function De(e="",t=!1){return t?(G(),be(ft,null,e)):V(ft,null,e)}function nt(e){return e==null||typeof e=="boolean"?V(ft):Z(e)?V(we,null,e.slice()):fr(e)?Qt(e):V(Ln,null,String(e))}function Qt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:dr(e)}function el(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),el(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!$f(t)?t._ctx=Re:s===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),r&64?(n=16,t=[ae(t)]):n=8);e.children=t,e.shapeFlag|=n}function Mo(...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=ke([t.class,r.class]));else if(s==="style")t.style=Rn([t.style,r.style]);else if(os(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 st(e,t,n,r=null){$t(e,t,7,[n,r])}const ym=kf();let _m=0;function wm(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ym,o={uid:_m++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Vu(!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:Pf(r,s),emitsOptions:jf(r,s),emit:null,emitted:null,propsDefaults:pe,inheritAttrs:r.inheritAttrs,ctx:pe,data:pe,props:pe,attrs:pe,slots:pe,refs:pe,setupState:pe,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=rm.bind(null,o),e.ce&&e.ce(o),o}let $e=null;const ls=()=>$e||Re;let Xs,qi;{const e=Ao(),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)}};Xs=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),qi=t("__VUE_SSR_SETTERS__",n=>hr=n)}const Dn=e=>{const t=$e;return Xs(e),e.scope.on(),()=>{e.scope.off(),Xs(t)}},Ki=()=>{$e&&$e.scope.off(),Xs(null)};function Kf(e){return e.vnode.shapeFlag&4}let hr=!1;function bm(e,t=!1,n=!1){t&&qi(t);const{props:r,children:s}=e.vnode,o=Kf(e);Wg(e,r,o,t),Kg(e,s,n||t);const i=o?vm(e,t):void 0;return t&&qi(!1),i}function vm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Mg);const{setup:r}=n;if(r){Wt();const s=e.setupContext=r.length>1?xm(e):null,o=Dn(e),i=as(r,e,0,[e.props,s]),a=Ma(i);if(zt(),o(),(a||e.sp)&&!Nn(e)&&Va(e),a){if(i.then(Ki,Ki),t)return i.then(l=>{Ji(e,l)}).catch(l=>{yr(l,e,0)});e.asyncDep=i}else Ji(e,i)}else Jf(e)}function Ji(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=cf(t)),Jf(e)}function Jf(e,t,n){const r=e.type;e.render||(e.render=r.render||At);{const s=Dn(e);Wt();try{Dg(e)}finally{zt(),s()}}}const Cm={get(e,t){return Ue(e,"get",""),e[t]}};function xm(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Cm),slots:e.slots,emit:e.emit,expose:t}}function Lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(cf(ng(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Nr)return Nr[n](e)},has(t,n){return n in t||n in Nr}})):e.proxy}function Sm(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function km(e){return Q(e)&&"__vccOpts"in e}const Se=(e,t)=>fg(e,t,hr);function Ys(e,t,n){const r=arguments.length;return r===2?ge(t)&&!Z(t)?fr(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fr(n)&&(n=[n]),V(e,t,n))}const Am="3.5.17";/**
|
|
16
16
|
* @vue/runtime-dom v3.5.17
|
|
17
17
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
18
|
* @license MIT
|
|
19
|
-
**/let Ji;const Yl=typeof window<"u"&&window.trustedTypes;if(Yl)try{Ji=Yl.createPolicy("vue",{createHTML:e=>e})}catch{}const Jf=Ji?e=>Ji.createHTML(e):e=>e,Am="http://www.w3.org/2000/svg",Tm="http://www.w3.org/1998/Math/MathML",Lt=typeof document<"u"?document:null,Zl=Lt&&Lt.createElement("template"),$m={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"?Lt.createElementNS(Am,e):t==="mathml"?Lt.createElementNS(Tm,e):n?Lt.createElement(e,{is:n}):Lt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Lt.createTextNode(e),createComment:e=>Lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lt.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{Zl.innerHTML=Jf(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Zl.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]}},Rm=Symbol("_vtc");function Pm(e,t,n){const r=e[Rm];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ql=Symbol("_vod"),Nm=Symbol("_vsh"),Im=Symbol(""),Mm=/(^|;)\s*display\s*:/;function Om(e,t,n){const r=e.style,s=ve(n);let o=!1;if(n&&!s){if(t)if(ve(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Ms(r,a,"")}else for(const i in t)n[i]==null&&Ms(r,i,"");for(const i in n)i==="display"&&(o=!0),Ms(r,i,n[i])}else if(s){if(t!==n){const i=r[Im];i&&(n+=";"+i),r.cssText=n,o=Mm.test(n)}}else t&&e.removeAttribute("style");Ql in e&&(e[Ql]=o?r.display:"",e[Nm]&&(r.display="none"))}const ec=/\s*!important$/;function Ms(e,t,n){if(Z(n))n.forEach(r=>Ms(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Lm(e,t);ec.test(n)?e.setProperty(gn(r),n.replace(ec,""),"important"):e[r]=n}}const tc=["Webkit","Moz","ms"],di={};function Lm(e,t){const n=di[t];if(n)return n;let r=ut(t);if(r!=="filter"&&r in e)return di[t]=r;r=ko(r);for(let s=0;s<tc.length;s++){const o=tc[s]+r;if(o in e)return di[t]=o}return t}const nc="http://www.w3.org/1999/xlink";function rc(e,t,n,r,s,o=Ip(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(nc,t.slice(6,t.length)):e.setAttributeNS(nc,t,n):n==null||o&&!Gu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":wt(n)?String(n):n)}function sc(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Jf(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=Gu(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 Yf(e,t,n,r){e.addEventListener(t,n,r)}function Dm(e,t,n,r){e.removeEventListener(t,n,r)}const oc=Symbol("_vei");function Hm(e,t,n,r,s=null){const o=e[oc]||(e[oc]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=Bm(t);if(r){const u=o[t]=Um(r,s);Yf(e,a,u,l)}else i&&(Dm(e,a,i,l),o[t]=void 0)}}const ic=/(?:Once|Passive|Capture)$/;function Bm(e){let t;if(ic.test(e)){t={};let r;for(;r=e.match(ic);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):gn(e.slice(2)),t]}let hi=0;const Fm=Promise.resolve(),jm=()=>hi||(Fm.then(()=>hi=0),hi=Date.now());function Um(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;$t(Gm(r,n.value),t,5,[r])};return n.value=e,n.attached=jm(),n}function Gm(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 ac=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?Pm(e,r,i):t==="style"?Om(e,n,r):os(t)?Ia(t)||Hm(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zm(e,t,r,i))?(sc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rc(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ve(r))?sc(e,ut(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rc(e,t,r,i))};function zm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ac(t)&&Q(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 ac(t)&&ve(n)?!1:t in e}const lc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>Ns(t,n):t},pi=Symbol("_assign"),Vm={created(e,{value:t},n){e.checked=js(t,n.props.value),e[pi]=lc(n),Yf(e,"change",()=>{e[pi](qm(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[pi]=lc(r),t!==n&&(e.checked=js(t,r.props.value))}};function qm(e){return"_value"in e?e._value:e.value}const Km={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Xm=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=gn(s.key);if(t.some(i=>i===o||Km[i]===o))return e(s)})},Zf=We({patchProp:Wm},$m);let Lr,cc=!1;function Jm(){return Lr||(Lr=Jg(Zf))}function Ym(){return Lr=cc?Lr:Yg(Zf),cc=!0,Lr}const Qf=(...e)=>{const t=Jm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=td(r);if(!s)return;const o=t._component;!Q(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,ed(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},Zm=(...e)=>{const t=Ym().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=td(r);if(s)return n(s,!0,ed(s))},t};function ed(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function td(e){return ve(e)?document.querySelector(e):e}const Qm=/"(?:_|\\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*:/,ey=/"(?: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*:/,ty=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ny(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ry(e);return}return t}function ry(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Zs(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(!ty.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Qm.test(e)||ey.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ny)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const sy=/#/g,oy=/&/g,iy=/\//g,ay=/=/g,tl=/\+/g,ly=/%5e/gi,cy=/%60/gi,uy=/%7c/gi,fy=/%20/gi;function dy(e){return encodeURI(""+e).replace(uy,"|")}function Yi(e){return dy(typeof e=="string"?e:JSON.stringify(e)).replace(tl,"%2B").replace(fy,"+").replace(sy,"%23").replace(oy,"%26").replace(cy,"`").replace(ly,"^").replace(iy,"%2F")}function gi(e){return Yi(e).replace(ay,"%3D")}function Qs(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function hy(e){return Qs(e.replace(tl," "))}function py(e){return Qs(e.replace(tl," "))}function Do(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=hy(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=py(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 gy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${gi(e)}=${Yi(n)}`).join("&"):`${gi(e)}=${Yi(t)}`:gi(e)}function nd(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>gy(t,e[t])).filter(Boolean).join("&")}const my=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,yy=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_y=/^([/\\]\s*){2,}[^/\\]/,wy=/^[\s\0]*(blob|data|javascript|vbscript):$/i,by=/\/$|\/\?|\/#/,vy=/^\.?\//;function mn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?my.test(e):yy.test(e)||(t.acceptRelative?_y.test(e):!1)}function Cy(e){return!!e&&wy.test(e)}function Zi(e="",t){return t?by.test(e):e.endsWith("/")}function Ho(e="",t){if(!t)return(Zi(e)?e.slice(0,-1):e)||"/";if(!Zi(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 eo(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Zi(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 xy(e=""){return e.startsWith("/")}function uc(e=""){return xy(e)?e:"/"+e}function Sy(e,t){if(sd(t)||mn(e))return e;const n=Ho(t);return e.startsWith(n)?e:Bn(n,e)}function ky(e,t){if(sd(t))return e;const n=Ho(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function rd(e,t){const n=ad(e),r={...Do(n.search),...t};return n.search=nd(r),ld(n)}function sd(e){return!e||e==="/"}function Ey(e){return e&&e!=="/"}function Bn(e,...t){let n=e||"";for(const r of t.filter(s=>Ey(s)))if(n){const s=r.replace(vy,"");n=eo(n)+s}else n=r;return n}function od(...e){var i,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const c of n)if(!(!c||c==="/")){for(const[f,d]of c.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&mn(r[0]))continue;r.pop(),s--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),s++}}let o=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!o.startsWith("/")?o="/"+o:(l=n[0])!=null&&l.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,(u=n[n.length-1])!=null&&u.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function Ay(e,t,n={}){return n.trailingSlash||(e=eo(e),t=eo(t)),n.leadingSlash||(e=uc(e),t=uc(t)),n.encoding||(e=Qs(e),t=Qs(t)),e===t}const id=Symbol.for("ufo:protocolRelative");function ad(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(!mn(e,{acceptRelative:!0}))return fc(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}=fc(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:u,hash:c,[id]:!r}}function fc(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function ld(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[id]?(e.protocol||"")+"//":"")+s+o+t+n+r}class Ty extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function $y(e){var l,u,c,f,d;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.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 Ty(i,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[p]}});return a}const Ry=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function dc(e="GET"){return Ry.has(e.toUpperCase())}function Py(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 Ny=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Iy=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function My(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Iy.test(t)?"json":Ny.has(t)||t.startsWith("text/")?"text":"blob"}function Oy(e,t,n,r){const s=Ly((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let o;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(o={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:o,params:o,headers:s}}function Ly(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 _s(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Dy=new Set([408,409,425,429,500,502,503,504]),Hy=new Set([101,204,205,304]);function cd(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=dc(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):Dy.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=$y(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const c={request:l,options:Oy(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 _s(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Sy(c.request,c.options.baseURL)),c.options.query&&(c.request=rd(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&&dc(c.options.method)&&(Py(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 _s(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!Hy.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||My(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||Zs;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 _s(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await _s(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={})=>cd({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const to=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")}(),By=to.fetch?(...e)=>to.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Fy=to.Headers,jy=to.AbortController,Uy=cd({fetch:By,Headers:Fy,AbortController:jy}),Gy=Uy,Wy=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},no=Wy().app,zy=()=>no.baseURL,Vy=()=>no.buildAssetsDir,nl=(...e)=>od(ud(),Vy(),...e),ud=(...e)=>{const t=no.cdnURL||no.baseURL;return e.length?od(t,...e):t};globalThis.__buildAssetsURL=nl,globalThis.__publicAssetsURL=ud;globalThis.$fetch||(globalThis.$fetch=Gy.create({baseURL:zy()}));"global"in globalThis||(globalThis.global=globalThis);function Qi(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Qi(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const qy={run:e=>e()},Ky=()=>qy,fd=typeof console.createTask<"u"?console.createTask:Ky;function Xy(e,t){const n=t.shift(),r=fd(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Jy(e,t){const n=t.shift(),r=fd(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function mi(e,t){for(const n of[...e])n(t)}class Yy{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=Qi(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=Qi(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(Xy,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Jy,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&mi(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&mi(this._after,s)}):(this._after&&s&&mi(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 dd(){return new Yy}function Zy(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;ea.add(u);try{const c=s?s.run(i,a):a();return n||(t=void 0),await c}finally{ea.delete(u)}}}}function Qy(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Zy({...e,...r})),t[n]}}}const ro=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},hc="__unctx__",e_=ro[hc]||(ro[hc]=Qy()),t_=(e,t={})=>e_.get(e,t),pc="__unctx_async_handlers__",ea=ro[pc]||(ro[pc]=new Set);function hd(e){const t=[];for(const s of ea){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 n_={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},r_=null,s_="#__nuxt",pd="nuxt-app",gc=36e5,o_="vite:preloadError";function gd(e=pd){return t_(e,{asyncContext:!1})}const i_="__nuxt_plugin";function a_(e){var s;let t=0;const n={_id:e.id||pd||"nuxt-app",_scope:Op(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.17.5"},get vue(){return n.vueApp.version}},payload:Zn({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:Zn({}),state:dn({}),once:new Set,_errors:Zn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Da()?n._scope.run(()=>mc(n,o)):mc(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Zn({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=dd(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;ws(n,a,i),ws(n.vueApp.config.globalProperties,a,i)},ws(n.vueApp,"$nuxt",n),ws(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(o_,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Pe);const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function l_(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function c_(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 u_(e,t){const n=new Set,r=[],s=[],o=[];let i=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(f=>t.some(d=>d._name===f)&&!n.has(f)))??[];if(u.length>0)r.push([new Set(u),l]);else{const f=c_(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([d,h])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(h)))})))});l.parallel?s.push(f.catch(d=>o.push(d))):await f}}for(const l of t)l_(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.length)throw o[0]}function Nt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[i_]:!0,_name:t})}function mc(e,t,n){const r=()=>t();return gd(e._id).set(e),e.vueApp.runWithContext(r)}function md(e){var n;let t;return No()&&(t=(n=ls())==null?void 0:n.appContext.app.$nuxt),t||(t=gd(e).tryUse()),t||null}function Pe(e){const t=md(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function pr(e){return Pe().$config}function ws(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function f_(e,t){return{ctx:{table:e},matchAll:n=>_d(n,e)}}function yd(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,yd(s)])):new Map(Object.entries(e[n]));return t}function d_(e){return f_(yd(e))}function _d(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of yc(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of yc(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(..._d(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function yc(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function yi(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 ta(e,t,n=".",r){if(!yi(t))return ta(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]]:yi(i)&&yi(s[o])?s[o]=ta(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function h_(e){return(...t)=>t.reduce((n,r)=>ta(n,r,"",e),{})}const p_=h_();function g_(e,t){try{return t in e}catch{return!1}}class na extends Error{constructor(n,r={}){super(n,r);k(this,"statusCode",500);k(this,"fatal",!1);k(this,"unhandled",!1);k(this,"statusMessage");k(this,"data");k(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:ra(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=wd(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}k(na,"__h3_error__",!0);function m_(e){if(typeof e=="string")return new na(e);if(y_(e))return e;const t=new na(e.message??e.statusMessage??"",{cause:e.cause||e});if(g_(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=ra(e.statusCode,t.statusCode):e.status&&(t.statusCode=ra(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;wd(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 y_(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const __=/[^\u0009\u0020-\u007E]/g;function wd(e=""){return e.replace(__,"")}function ra(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const bd=Symbol("route"),Rt=()=>{var e;return(e=Pe())==null?void 0:e.$router},vd=()=>No()?On(bd,Pe()._route):Pe()._route;const w_=()=>{try{if(Pe()._processingMiddleware)return!0}catch{return!1}return!1},Cd=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?sa(e):Rt().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=Object.entries(u).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(n,l,c),Promise.resolve()}const r=mn(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&Cy(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=w_();if(!s&&o){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=ad(e);return{path:l,...u&&{query:Do(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=Rt(),a=Pe();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function sa(e){return rd(e.path||"",e.query||{})+(e.hash||"")}const xd="__nuxt_error",rl=()=>uf(Pe().payload,"error"),b_=e=>{const t=sl(e);try{const n=Pe(),r=rl();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},v_=async(e={})=>{const t=Pe(),n=rl();t.callHook("app:error:cleared",e),e.redirect&&await Rt().replace(e.redirect),n.value=r_},C_=e=>!!e&&typeof e=="object"&&xd in e,sl=e=>{const t=m_(e);return Object.defineProperty(t,xd,{value:!0,configurable:!1,writable:!1}),t};function _c(e){const t=S_(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 x_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function S_(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|=x_.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 k_=-1,E_=-2,A_=-3,T_=-4,$_=-5,R_=-6;function P_(e,t){return N_(JSON.parse(e),t)}function N_(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===k_)return;if(o===A_)return NaN;if(o===T_)return 1/0;if(o===$_)return-1/0;if(o===R_)return-0;if(i)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==null?void 0: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=a[1],g=_c(p),y=new h(g);r[o]=y;break}case"ArrayBuffer":{const h=a[1],p=_c(h);r[o]=p;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!==E_&&(l[u]=s(c))}}else{const l={};r[o]=l;for(const u in a){const c=a[u];l[u]=s(c)}}return r[o]}return s(0)}const I_=new Set(["link","style","script","noscript"]),M_=new Set(["title","titleTemplate","script","style","noscript"]),wc=new Set(["base","meta","link","style","script","noscript"]),O_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),L_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),D_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),H_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),B_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const F_=["name","property","http-equiv"];function Sd(e){const t=e.split(":");return t.length?B_.has(t[1]):!1}function oa(e){const{props:t,tag:n}=e;if(L_.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 F_)if(t[r]!==void 0)return`${n}:${t[r]}`}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(M_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function bc(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 so(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=>so(o,t));if((s==null?void 0:s.constructor)===Object){const o={};for(const i of Object.keys(s))o[i]=so(s[i],t,i);return o}return s}function j_(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 kd(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=j_(n,r);return}if(D_.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!(i!=null&&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}function U_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=kd({tag:e,props:{}},n);return r.key&&I_.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 G_(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=so(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(U_(s,i))}),r.flat()}const ia=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,vc={base:-10,title:10},W_={critical:-8,high:-1,low:2},Cc={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}},z_=/@import/,Er=e=>e===""||e===!0;function V_(e,t){var o;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=W_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Cc;if(t.tag in vc)n=vc[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=Cc.meta[i])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?Er(t.props.async)?n=s.script.async:t.props.src&&!Er(t.props.defer)&&!Er(t.props.async)&&t.props.type!=="module"&&!((o=t.props.type)!=null&&o.endsWith("json"))?n=s.script.sync:Er(t.props.defer)&&t.props.src&&!Er(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&z_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function xc(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 q_(e={}){var a;const t=dd();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=[],i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:l=>xc(i,l),push(l,u){const c={...u||{}};delete c.head;const f=c._index??i._entryCount++,d={_i:f,input:l,options:c},h={_poll(p=!1){i.dirty=!0,!p&&o.push(f),t.callHook("entries:updated",i)},dispose(){r.delete(f)&&h._poll(!0)},patch(p){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(d.input=p,r.set(f,d),h._poll())}};return h.patch(l),h},async resolveTags(){var h;const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);o.length;){const p=o.shift(),g=r.get(p);if(g){const y={tags:G_(g.input,e.propResolvers||[]).map(_=>Object.assign(_,g.options)),entry:g};await t.callHook("entries:normalize",y),g._tags=y.tags.map((_,v)=>(_._w=V_(i,_),_._p=(g._i<<10)+v,_._d=oa(_),_))}}let u=!1;l.entries.flatMap(p=>(p._tags||[]).map(g=>({...g,props:{...g.props}}))).sort(ia).reduce((p,g)=>{const y=String(g._d||g._p);if(!p.has(y))return p.set(y,g);const _=p.get(y);if(((g==null?void 0:g.tagDuplicateStrategy)||(H_.has(g.tag)?"merge":null)||(g.key&&g.key===_.key?"merge":null))==="merge"){const m={..._.props};Object.entries(g.props).forEach(([b,C])=>m[b]=b==="style"?new Map([..._.props.style||new Map,...C]):b==="class"?new Set([..._.props.class||new Set,...C]):C),p.set(y,{...g,props:m})}else g._p>>10===_._p>>10&&g.tag==="meta"&&Sd(y)?(p.set(y,Object.assign([...Array.isArray(_)?_:[_],g],g)),u=!0):(g._w===_._w?g._p>_._p:(g==null?void 0:g._w)<(_==null?void 0:_._w))&&p.set(y,g);return p},l.tagMap);const c=l.tagMap.get("title"),f=l.tagMap.get("titleTemplate");if(i._title=c==null?void 0:c.textContent,f){const p=f==null?void 0:f.textContent;if(i._titleTemplate=p,p){let g=typeof p=="function"?p(c==null?void 0:c.textContent):p;typeof g=="string"&&!i.plugins.has("template-params")&&(g=g.replace("%s",(c==null?void 0:c.textContent)||"")),c?g===null?l.tagMap.delete("title"):l.tagMap.set("title",{...c,textContent:g}):(f.tag="title",f.textContent=g)}}l.tags=Array.from(l.tagMap.values()),u&&(l.tags=l.tags.flat().sort(ia)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const d=[];for(const p of l.tags){const{innerHTML:g,tag:y,props:_}=p;if(O_.has(y)&&!(Object.keys(_).length===0&&!p.innerHTML&&!p.textContent)&&!(y==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(y==="script"&&g){if((h=_.type)!=null&&h.endsWith("json")){const v=typeof g=="string"?g:JSON.stringify(g);p.innerHTML=v.replace(/</g,"\\u003C")}else typeof g=="string"&&(p.innerHTML=g.replace(new RegExp(`</${y}`,"g"),`<\\/${y}`));p._d=oa(p)}d.push(p)}}return d}};return((e==null?void 0:e.plugins)||[]).forEach(l=>xc(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const en="%separator",K_=new RegExp(`${en}(?:\\s*${en})*`,"g");function X_(e,t,n=!1){var s;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=(s=e[t.substring(0,o)])==null?void 0:s[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function bs(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const o=s.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const i=e.includes(en);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===en||!o.includes(a))return a;const l=X_(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(en)&&(e=e.slice(0,-en.length)),e.startsWith(en)&&(e=e.slice(en.length)),e=e.replace(K_,n||"").trim()),e}const Sc=e=>e.includes(":key")?e:e.split(":").join(":key:"),J_={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const o=Sc(s.slice(7)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p-1,t=!0)}else if(s.startsWith("after:")){const o=Sc(s.slice(6)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(ia))}}},Y_={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function aa(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>aa(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await aa(e[r]);return n}return e}const Z_={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(aa(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},Q_={meta:"content",link:"href",htmlAttrs:"lang"},ew=["innerHTML","textContent"],tw=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var r,s,o;const n=((s=(r=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:r[0])==null?void 0:s.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((o=e._ssrPayload)==null?void 0:o.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var o;const r=((o=t.get("templateParams"))==null?void 0:o.props)||{},s=r.separator||"|";delete r.separator,r.pageTitle=bs(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const a=Q_[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=bs(i.props[a],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of ew)typeof i[l]=="string"&&(i[l]=bs(i[l],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=bs(n.textContent,e._templateParams,e._separator))}}}),nw=(e,t)=>Ee(t)?on(t):t,ol="usehead";function rw(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(ol,e)}}.install}function sw(){if(No()){const e=On(ol);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 ow(e,t={}){const n=t.head||sw();return n.ssr?n.push(e||{},t):iw(n,e,t)}function iw(e,t,n={}){const r=Ae(!1);let s;return Bf(()=>{const i=r.value?{}:so(t,nw);s?s.patch(i):s=e.push(i,n)}),ls()&&(Xa(()=>{s.dispose()}),gf(()=>{r.value=!0}),pf(()=>{r.value=!1})),s}function aw(e){var n;const t=e||md();return((n=t==null?void 0:t.ssrContext)==null?void 0:n.head)||(t==null?void 0:t.runWithContext(()=>{if(No())return On(ol)}))}function lw(e,t={}){const n=aw(t.nuxt);if(n)return ow(e,{head:n,...t})}const cw="modulepreload",uw=function(e,t){return new URL(e,t).href},kc={},Dr=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let i=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=i(n.map(c=>{if(c=uw(c,r),c in kc)return;kc[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=a.length-1;g>=0;g--){const y=a[g];if(y.href===c&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":cw,f||(p.as="script"),p.crossOrigin="",p.href=c,u&&p.setAttribute("nonce",u),document.head.appendChild(p),f)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(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 Os,Ls;function fw(){return Os=$fetch(nl(`builds/meta/${pr().app.buildId}.json`),{responseType:"json"}),Os.then(e=>{Ls=d_(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Os}function Bo(){return Os||fw()}async function il(e){const t=typeof e=="string"?e:e.path;if(await Bo(),!Ls)return console.error("[nuxt] Error creating app manifest matcher.",Ls),{};try{return p_({},...Ls.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Ec(e,t={}){if(!await Ad(e))return null;const r=await hw(e,t);return await Ed(r)||null}const dw="_payload.json";async function hw(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||mn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=pr(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await Ad(e)?o:r.app.baseURL;return Bn(i,n.pathname,dw+(s?`?${s}`:""))}async function Ed(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Td));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Ad(e=vd().path){const t=Pe();return e=Ho(e),(await Bo()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await il({path:e});return!!r.prerender&&!r.redirect})}let bn=null;async function pw(){var r;if(bn)return bn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Td(e.textContent||""),n=e.dataset.src?await Ed(e.dataset.src):void 0;return bn={...t,...n,...window.__NUXT__},(r=bn.config)!=null&&r.public&&(bn.config.public=dn(bn.config.public)),bn}async function Td(e){return await P_(e,Pe()._payloadRevivers)}function gw(e,t){Pe()._payloadRevivers[e]=t}const mw=[["NuxtError",e=>sl(e)],["EmptyShallowRef",e=>Ws(e==="_"?void 0:e==="0n"?BigInt(0):Zs(e))],["EmptyRef",e=>Ae(e==="_"?void 0:e==="0n"?BigInt(0):Zs(e))],["ShallowRef",e=>Ws(e)],["ShallowReactive",e=>Zn(e)],["Ref",e=>Ae(e)],["Reactive",e=>dn(e)]],yw=Nt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of mw)gw(r,s);Object.assign(e.payload,([t,n]=hd(()=>e.runWithContext(pw)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function al(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=>{var h;const o=new Map,i=new Promise(p=>{e.resolveTags().then(g=>{p(g.map(y=>{const _=o.get(y._d)||0,v={tag:y,id:(_?`${y._d}:${_}`:y._d)||bc(y),shouldRender:!0};return y._d&&Sd(y._d)&&o.set(y._d,_+1),v}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const p of["body","head"]){const g=(h=n[p])==null?void 0:h.children;for(const y of g){const _=y.tagName.toLowerCase();if(!wc.has(_))continue;const v=kd({tag:_,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((m,b)=>(m[b]=y.getAttribute(b),m),{})||{}});if(v.key=y.getAttribute("data-hid")||void 0,v._d=oa(v)||bc(v),a.elMap.has(v._d)){let m=1,b=v._d;for(;a.elMap.has(b);)b=`${v._d}:${m++}`;a.elMap.set(b,y)}else a.elMap.set(v._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(p,g,y){const _=`${p}:${g}`;a.sideEffects[_]=y,delete a.pendingSideEffects[_]}function u({id:p,$el:g,tag:y}){const _=y.tag.endsWith("Attrs");a.elMap.set(p,g),_||(y.textContent&&y.textContent!==g.textContent&&(g.textContent=y.textContent),y.innerHTML&&y.innerHTML!==g.innerHTML&&(g.innerHTML=y.innerHTML),l(p,"el",()=>{g==null||g.remove(),a.elMap.delete(p)}));for(const v in y.props){if(!Object.prototype.hasOwnProperty.call(y.props,v))continue;const m=y.props[v];if(v.startsWith("on")&&typeof m=="function"){const C=g==null?void 0:g.dataset;if(C&&C[`${v}fired`]){const A=v.slice(0,-5);m.call(g,new Event(A.substring(2)))}g.getAttribute(`data-${v}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:g).addEventListener(v.substring(2),m.bind(g)),g.setAttribute(`data-${v}`,""));continue}const b=`attr:${v}`;if(v==="class"){if(!m)continue;for(const C of m)_&&l(p,`${b}:${C}`,()=>g.classList.remove(C)),!g.classList.contains(C)&&g.classList.add(C)}else if(v==="style"){if(!m)continue;for(const[C,A]of m)l(p,`${b}:${C}`,()=>{g.style.removeProperty(C)}),g.style.setProperty(C,A)}else m!==!1&&m!==null&&(g.getAttribute(v)!==m&&g.setAttribute(v,m===!0?"":String(m)),_&&l(p,b,()=>g.removeAttribute(v)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const p of d){const{tag:g,shouldRender:y,id:_}=p;if(y){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(_),p.$el?u(p):wc.has(g.tag)&&c.push(p)}}for(const p of c){const g=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),u(p),f[g]=f[g]||n.createDocumentFragment(),f[g].appendChild(p.$el)}for(const p of d)await e.hooks.callHook("dom:renderTag",p,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 p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function _w(e={}){var r,s,o;const t=((r=e.domOptions)==null?void 0:r.render)||al;e.document=e.document||(typeof window<"u"?document:void 0);const n=((o=(s=e.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return q_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function ww(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function bw(e={}){const t=_w({domOptions:{render:ww(()=>al(t),n=>setTimeout(n,0))},...e});return t.install=rw(t),t}const vw={disableDefaults:!0,disableCapoSorting:!1,plugins:[Y_,Z_,tw,J_]},Cw=Nt({name:"nuxt:head",enforce:"pre",setup(e){const t=bw(vw);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await al(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)}}}),xw=async e=>{let t,n;const r=([t,n]=hd(()=>il({path:e.path})),t=await t,n(),t);if(r.redirect)return mn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},Sw=[xw];function _i(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=ld({pathname:e.path||"",search:nd(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:Do(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const kw=Nt({name:"nuxt:router",enforce:"pre",setup(e){const t=ky(window.location.pathname,pr().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=pr().app.baseURL,i=dn(_i(t));async function a(f,d){try{const h=_i(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"]({},"",Bn(o,h.fullPath)),e.isHydrating||await e.runWithContext(v_);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:Se(()=>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:_i,addRoute:(f,d)=>{n.push(d)},getRoutes:()=>n,hasRoute:f=>n.some(d=>d.name===f),removeRoute:f=>{const d=n.findIndex(h=>h.name===f);d!==-1&&n.splice(d,1)}};e.vueApp.component("RouterLink",bt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:d})=>{const h=()=>a(f.to,f.replace);return()=>{var g;const p=u.resolve(f.to);return f.custom?(g=d.default)==null?void 0:g.call(d,{href:f.to,navigate:h,route:p}):Ys("a",{href:f.to,onClick:y=>(y.preventDefault(),h())},d)}}})),window.addEventListener("popstate",f=>{const d=f.target.location;u.replace(d.href.replace(d.origin,""))}),e._route=i,e._middleware||(e._middleware={global:[],named:{}});const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(f,d)=>{f.meta=dn(f.meta||{}),e.isHydrating&&c&&!Vt(f.meta.layout)&&(f.meta.layout=c),e._processingMiddleware=!0;{const h=new Set([...Sw,...e._middleware.global]);{const p=await e.runWithContext(()=>il({path:f.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const y=e._middleware.named[g];if(!y)return;p.appMiddleware[g]?h.add(y):h.delete(y)}}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),Ay(i.fullPath,t)||await e.runWithContext(()=>Cd(i.fullPath))}),{provide:{route:i,router:u}}}}),la=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Ew=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Fo=e=>{const t=Pe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{la(()=>e())}):la(()=>e())},Aw=Nt({name:"nuxt:payload",setup(e){const t=new Set;Rt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await Ec(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]}}),Fo(()=>{var n;e.hooks.hook("link:prefetch",async r=>{const{hostname:s}=new URL(r,window.location.href);s===window.location.hostname&&await Ec(r).catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})}),((n=navigator.connection)==null?void 0:n.effectiveType)!=="slow-2g"&&setTimeout(Bo,1e3)})}}),Tw=Nt(()=>{const e=Rt();Fo(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),$w=Nt(e=>{let t;async function n(){const r=await Bo();t&&clearTimeout(t),t=setTimeout(n,gc);try{const s=await $fetch(nl("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}Fo(()=>{t=setTimeout(n,gc)})});function Rw(e={}){const t=e.path||window.location.pathname;let n={};try{n=Zs(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Pe().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Pw=Nt({name:"nuxt:chunk-reload",setup(e){const t=Rt(),n=pr(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const a="href"in o&&o.href[0]==="#"?n.app.baseURL+o.href:Bn(n.app.baseURL,o.fullPath);Rw({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Nw=Nt({name:"nuxt:global-components"}),Iw=Nt(()=>{}),Mw=["top","right","bottom","left"],Ac=["start","end"],Tc=Mw.reduce((e,t)=>e.concat(t,t+"-"+Ac[0],t+"-"+Ac[1]),[]),Kr=Math.min,Sn=Math.max,Ow={left:"right",right:"left",bottom:"top",top:"bottom"},Lw={start:"end",end:"start"};function ca(e,t,n){return Sn(e,Kr(t,n))}function Fn(e,t){return typeof e=="function"?e(t):e}function Pt(e){return e.split("-")[0]}function yt(e){return e.split("-")[1]}function $d(e){return e==="x"?"y":"x"}function ll(e){return e==="y"?"height":"width"}function jt(e){return["top","bottom"].includes(Pt(e))?"y":"x"}function cl(e){return $d(jt(e))}function Rd(e,t,n){n===void 0&&(n=!1);const r=yt(e),s=cl(e),o=ll(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=io(i)),[i,io(i)]}function Dw(e){const t=io(e);return[oo(e),t,oo(t)]}function oo(e){return e.replace(/start|end/g,t=>Lw[t])}function Hw(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function Bw(e,t,n,r){const s=yt(e);let o=Hw(Pt(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(oo)))),o}function io(e){return e.replace(/left|right|bottom|top/g,t=>Ow[t])}function Fw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pd(e){return typeof e!="number"?Fw(e):{top:e,right:e,bottom:e,left:e}}function Hr(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 $c(e,t,n){let{reference:r,floating:s}=e;const o=jt(t),i=cl(t),a=ll(i),l=Pt(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(yt(t)){case"start":h[i]-=d*(n&&u?-1:1);break;case"end":h[i]+=d*(n&&u?-1:1);break}return h}const jw=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}=$c(u,r,l),d=r,h={},p=0;for(let g=0;g<a.length;g++){const{name:y,fn:_}=a[g],{x:v,y:m,data:b,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=v??c,f=m??f,h={...h,[y]:{...h[y],...b}},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}=$c(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:s,middlewareData:h}};async function jo(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}=Fn(t,e),p=Pd(h),y=a[d?f==="floating"?"reference":"floating":f],_=Hr(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=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)),b=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=Hr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:m,strategy:l}):v);return{top:(_.top-C.top+p.top)/b.y,bottom:(C.bottom-_.bottom+p.bottom)/b.y,left:(_.left-C.left+p.left)/b.x,right:(C.right-_.right+p.right)/b.x}}const Uw=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}=Fn(e,t)||{};if(u==null)return{};const f=Pd(c),d={x:n,y:r},h=cl(s),p=ll(h),g=await i.getDimensions(u),y=h==="y",_=y?"top":"left",v=y?"bottom":"right",m=y?"clientHeight":"clientWidth",b=o.reference[p]+o.reference[h]-d[h]-o.floating[p],C=d[h]-o.reference[h],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let S=A?A[m]:0;(!S||!await(i.isElement==null?void 0:i.isElement(A)))&&(S=a.floating[m]||o.floating[p]);const O=b/2-C/2,F=S/2-g[p]/2-1,R=Kr(f[_],F),K=Kr(f[v],F),z=R,ee=S-g[p]-K,H=S/2-g[p]/2+O,J=ca(z,H,ee),L=!l.arrow&&yt(s)!=null&&H!==J&&o.reference[p]/2-(H<z?R:K)-g[p]/2<0,Y=L?H<z?H-z:H-ee:0;return{[h]:d[h]+Y,data:{[h]:J,centerOffset:H-J-Y,...L&&{alignmentOffset:Y}},reset:L}}});function Gw(e,t,n){return(e?[...n.filter(s=>yt(s)===e),...n.filter(s=>yt(s)!==e)]:n.filter(s=>Pt(s)===s)).filter(s=>e?yt(s)===e||(t?oo(s)!==s:!1):!0)}const Ww=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=Tc,autoAlignment:h=!0,...p}=Fn(e,t),g=f!==void 0||d===Tc?Gw(f||null,h,d):d,y=await jo(t,p),_=((n=i.autoPlacement)==null?void 0:n.index)||0,v=g[_];if(v==null)return{};const m=Rd(v,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==v)return{reset:{placement:g[0]}};const b=[y[Pt(v)],y[m[0]],y[m[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:b}],A=g[_+1];if(A)return{data:{index:_+1,overflows:C},reset:{placement:A}};const S=C.map(R=>{const K=yt(R.placement);return[R.placement,K&&c?R.overflows.slice(0,2).reduce((z,ee)=>z+ee,0):R.overflows[0],R.overflows]}).sort((R,K)=>R[1]-K[1]),F=((s=S.filter(R=>R[2].slice(0,yt(R[0])?2:3).every(K=>K<=0))[0])==null?void 0:s[0])||S[0][0];return F!==a?{data:{index:_+1,overflows:C},reset:{placement:F}}:{}}}},zw=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,...y}=Fn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=Pt(s),v=jt(a),m=Pt(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=d||(m||!g?[io(a)]:Dw(a)),A=p!=="none";!d&&A&&C.push(...Bw(a,g,p,b));const S=[a,...C],O=await jo(t,y),F=[];let R=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&F.push(O[_]),f){const H=Rd(s,i,b);F.push(O[H[0]],O[H[1]])}if(R=[...R,{placement:s,overflows:F}],!F.every(H=>H<=0)){var K,z;const H=(((K=o.flip)==null?void 0:K.index)||0)+1,J=S[H];if(J&&(!(f==="alignment"?v!==jt(J):!1)||R.every(W=>W.overflows[0]>0&&jt(W.placement)===v)))return{data:{index:H,overflows:R},reset:{placement:J}};let L=(z=R.filter(Y=>Y.overflows[0]<=0).sort((Y,W)=>Y.overflows[1]-W.overflows[1])[0])==null?void 0:z.placement;if(!L)switch(h){case"bestFit":{var ee;const Y=(ee=R.filter(W=>{if(A){const de=jt(W.placement);return de===v||de==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(de=>de>0).reduce((de,Un)=>de+Un,0)]).sort((W,de)=>W[1]-de[1])[0])==null?void 0:ee[0];Y&&(L=Y);break}case"initialPlacement":L=a;break}if(s!==L)return{reset:{placement:L}}}return{}}}};async function Vw(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Pt(n),a=yt(n),l=jt(n)==="y",u=["left","top"].includes(i)?-1:1,c=o&&l?-1:1,f=Fn(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 qw=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 Vw(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}}}}},Kw=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:y=>{let{x:_,y:v}=y;return{x:_,y:v}}},...l}=Fn(e,t),u={x:n,y:r},c=await jo(t,l),f=jt(Pt(s)),d=$d(f);let h=u[d],p=u[f];if(o){const y=d==="y"?"top":"left",_=d==="y"?"bottom":"right",v=h+c[y],m=h-c[_];h=ca(v,h,m)}if(i){const y=f==="y"?"top":"left",_=f==="y"?"bottom":"right",v=p+c[y],m=p-c[_];p=ca(v,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}}}}}},Xw=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}=Fn(e,t),c=await jo(t,u),f=Pt(s),d=yt(s),h=jt(s)==="y",{width:p,height:g}=o.floating;let y,_;f==="top"||f==="bottom"?(y=f,_=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,y=d==="end"?"top":"bottom");const v=g-c.top-c.bottom,m=p-c.left-c.right,b=Kr(g-c[y],v),C=Kr(p-c[_],m),A=!t.middlewareData.shift;let S=b,O=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=v),A&&!d){const R=Sn(c.left,0),K=Sn(c.right,0),z=Sn(c.top,0),ee=Sn(c.bottom,0);h?O=p-2*(R!==0||K!==0?R+K:Sn(c.left,c.right)):S=g-2*(z!==0||ee!==0?z+ee:Sn(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:S});const F=await i.getDimensions(a.floating);return p!==F.width||g!==F.height?{reset:{rects:!0}}:{}}}};function at(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function At(e){return at(e).getComputedStyle(e)}const Rc=Math.min,Br=Math.max,ao=Math.round;function Nd(e){const t=At(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=ao(n)!==s||ao(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function pn(e){return Md(e)?(e.nodeName||"").toLowerCase():""}let vs;function Id(){if(vs)return vs;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(vs=e.brands.map(t=>t.brand+"/"+t.version).join(" "),vs):navigator.userAgent}function Tt(e){return e instanceof at(e).HTMLElement}function ln(e){return e instanceof at(e).Element}function Md(e){return e instanceof at(e).Node}function Pc(e){return typeof ShadowRoot>"u"?!1:e instanceof at(e).ShadowRoot||e instanceof ShadowRoot}function Uo(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=At(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Jw(e){return["table","td","th"].includes(pn(e))}function ua(e){const t=/firefox/i.test(Id()),n=At(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 Od(){return!/^((?!chrome|android).)*safari/i.test(Id())}function ul(e){return["html","body","#document"].includes(pn(e))}function Ld(e){return ln(e)?e:e.contextElement}const Dd={x:1,y:1};function ar(e){const t=Ld(e);if(!Tt(t))return Dd;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Nd(t);let i=(o?ao(n.width):n.width)/r,a=(o?ao(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function Xr(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Ld(e);let l=Dd;t&&(r?ln(r)&&(l=ar(r)):l=ar(e));const u=a?at(a):window,c=!Od()&&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=at(a),y=r&&ln(r)?at(r):r;let _=g.frameElement;for(;_&&r&&y!==g;){const v=ar(_),m=_.getBoundingClientRect(),b=getComputedStyle(_);m.x+=(_.clientLeft+parseFloat(b.paddingLeft))*v.x,m.y+=(_.clientTop+parseFloat(b.paddingTop))*v.y,f*=v.x,d*=v.y,h*=v.x,p*=v.y,f+=m.x,d+=m.y,_=at(_).frameElement}}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function cn(e){return((Md(e)?e.ownerDocument:e.document)||window.document).documentElement}function Go(e){return ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Hd(e){return Xr(cn(e)).left+Go(e).scrollLeft}function Jr(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pc(e)&&e.host||cn(e);return Pc(t)?t.host:t}function Bd(e){const t=Jr(e);return ul(t)?t.ownerDocument.body:Tt(t)&&Uo(t)?t:Bd(t)}function lo(e,t){var n;t===void 0&&(t=[]);const r=Bd(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=at(r);return s?t.concat(o,o.visualViewport||[],Uo(r)?r:[]):t.concat(r,lo(r))}function Nc(e,t,n){return t==="viewport"?Hr(function(r,s){const o=at(r),i=cn(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=Od();(d||!d&&s==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:l,height:u,x:c,y:f}}(e,n)):ln(t)?Hr(function(r,s){const o=Xr(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=Tt(r)?ar(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)):Hr(function(r){const s=cn(r),o=Go(r),i=r.ownerDocument.body,a=Br(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=Br(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let u=-o.scrollLeft+Hd(r);const c=-o.scrollTop;return At(i).direction==="rtl"&&(u+=Br(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:c}}(cn(e)))}function Ic(e){return Tt(e)&&At(e).position!=="fixed"?e.offsetParent:null}function Mc(e){const t=at(e);let n=Ic(e);for(;n&&Jw(n)&&At(n).position==="static";)n=Ic(n);return n&&(pn(n)==="html"||pn(n)==="body"&&At(n).position==="static"&&!ua(n))?t:n||function(r){let s=Jr(r);for(;Tt(s)&&!ul(s);){if(ua(s))return s;s=Jr(s)}return null}(e)||t}function Yw(e,t,n){const r=Tt(t),s=cn(t),o=Xr(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((pn(t)!=="body"||Uo(s))&&(i=Go(t)),Tt(t)){const l=Xr(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Hd(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const Zw={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=lo(u).filter(y=>ln(y)&&pn(y)!=="body"),h=null;const p=At(u).position==="fixed";let g=p?Jr(u):u;for(;ln(g)&&!ul(g);){const y=At(g),_=ua(g);(p?_||h:_||y.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=y:d=d.filter(v=>v!==g),g=Jr(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=Nc(t,c,s);return u.top=Br(f.top,u.top),u.right=Rc(f.right,u.right),u.bottom=Rc(f.bottom,u.bottom),u.left=Br(f.left,u.left),u},Nc(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=Tt(n),o=cn(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")&&((pn(n)!=="body"||Uo(o))&&(i=Go(n)),Tt(n))){const u=Xr(n);a=ar(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:ln,getDimensions:function(e){return Tt(e)?Nd(e):e.getBoundingClientRect()},getOffsetParent:Mc,getDocumentElement:cn,getScale:ar,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||Mc,o=this.getDimensions;return{reference:Yw(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>At(e).direction==="rtl"},Qw=(e,t,n)=>{const r=new Map,s={platform:Zw,...n},o={...s.platform,_c:r};return jw(e,t,{...s,platform:o})};function Fd(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Fd(e[n],t[n]):e[n]=t[n])}const _t={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 Yr(e,t){let n=_t.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=_t.themes[n.$extend]||{}:(n=null,r=_t[t]):n=null;while(n);return r}function eb(e){const t=[e];let n=_t.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=_t.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function Oc(e){const t=[e];let n=_t.themes[e]||{};do n.$extend?(t.push(n.$extend),n=_t.themes[n.$extend]||{}):n=null;while(n);return t}let gr=!1;if(typeof window<"u"){gr=!1;try{const e=Object.defineProperty({},"passive",{get(){gr=!0}});window.addEventListener("test",null,e)}catch{}}let jd=!1;typeof window<"u"&&typeof navigator<"u"&&(jd=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ud=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Lc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Dc={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Hc(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function wi(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const pt=[];let vn=null;const Bc={};function Fc(e){let t=Bc[e];return t||(t=Bc[e]=[]),t}let fa=function(){};typeof window<"u"&&(fa=window.Element);function ce(e){return function(t){return Yr(t.theme,e)}}const bi="__floating-vue__popper",Gd=()=>bt({name:"VPopper",provide(){return{[bi]:{parentPopper:this}}},inject:{[bi]:{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:ce("disabled")},positioningDisabled:{type:Boolean,default:ce("positioningDisabled")},placement:{type:String,default:ce("placement"),validator:e=>Ud.includes(e)},delay:{type:[String,Number,Object],default:ce("delay")},distance:{type:[Number,String],default:ce("distance")},skidding:{type:[Number,String],default:ce("skidding")},triggers:{type:Array,default:ce("triggers")},showTriggers:{type:[Array,Function],default:ce("showTriggers")},hideTriggers:{type:[Array,Function],default:ce("hideTriggers")},popperTriggers:{type:Array,default:ce("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ce("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ce("popperHideTriggers")},container:{type:[String,Object,fa,Boolean],default:ce("container")},boundary:{type:[String,fa],default:ce("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ce("strategy")},autoHide:{type:[Boolean,Function],default:ce("autoHide")},handleResize:{type:Boolean,default:ce("handleResize")},instantMove:{type:Boolean,default:ce("instantMove")},eagerMount:{type:Boolean,default:ce("eagerMount")},popperClass:{type:[String,Array,Object],default:ce("popperClass")},computeTransformOrigin:{type:Boolean,default:ce("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ce("autoMinSize")},autoSize:{type:[Boolean,String],default:ce("autoSize")},autoMaxSize:{type:Boolean,default:ce("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ce("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ce("preventOverflow")},overflowPadding:{type:[Number,String],default:ce("overflowPadding")},arrowPadding:{type:[Number,String],default:ce("arrowPadding")},arrowOverflow:{type:Boolean,default:ce("arrowOverflow")},flip:{type:Boolean,default:ce("flip")},shift:{type:Boolean,default:ce("shift")},shiftCrossAxis:{type:Boolean,default:ce("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ce("noAutoFocus")},disposeTimeout:{type:Number,default:ce("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[bi])==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(qw({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Ww({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Kw({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(zw({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Uw({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(Xw({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 Qw(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),vn&&this.instantMove&&vn.instantMove&&vn!==this.parentPopper){vn.$_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&&(vn=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 wi(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...lo(this.$_referenceNode),...lo(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<pt.length;n++)t=pt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}pt.push(this),document.body.classList.add("v-popper--some-open");for(const t of Oc(this.theme))Fc(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 wi(),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,Hc(pt,this),pt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Oc(this.theme)){const r=Fc(n);Hc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}vn===this&&(vn=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 wi(),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,Lc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Lc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Dc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Dc,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,gr?{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(Fr>=e.left&&Fr<=e.right&&jr>=e.top&&jr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Fr-Kt,r=jr-Xt,s=t.left+t.width/2-Kt+(t.top+t.height/2)-Xt+t.width+t.height,o=Kt+n*s,i=Xt+r*s;return Cs(Kt,Xt,o,i,t.left,t.top,t.left,t.bottom)||Cs(Kt,Xt,o,i,t.left,t.top,t.right,t.top)||Cs(Kt,Xt,o,i,t.right,t.top,t.right,t.bottom)||Cs(Kt,Xt,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(jd){const e=gr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>jc(t,!0),e),document.addEventListener("touchend",t=>Uc(t,!0),e)}else window.addEventListener("mousedown",e=>jc(e,!1),!0),window.addEventListener("click",e=>Uc(e,!1),!0);window.addEventListener("resize",nb)}function jc(e,t){if(_t.autoHideOnMousedown)Wd(e,t);else for(let n=0;n<pt.length;n++){const r=pt[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Uc(e,t){_t.autoHideOnMousedown||Wd(e,t)}function Wd(e,t){const n={};for(let r=pt.length-1;r>=0;r--){const s=pt[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Gc(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&&Gc(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Gc(e,t,n){return n.closeAllPopover||n.closePopover&&t||tb(e,n)&&!t}function tb(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function nb(){for(let e=0;e<pt.length;e++)pt[e].$_computePosition()}let Kt=0,Xt=0,Fr=0,jr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Kt=Fr,Xt=jr,Fr=e.clientX,jr=e.clientY},gr?{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 rb={extends:Gd()},Wo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function sb(e,t,n,r,s,o){return G(),te("div",{ref:"reference",class:ke(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Xe(e.$slots,"default",Uu(Qa(e.slotData)))],2)}const ob=Wo(rb,[["render",sb]]);function ib(){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 Ds;function da(){da.init||(da.init=!0,Ds=ib()!==-1)}var zo={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){da(),_r(()=>{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",Ds&&this.$el.appendChild(e),e.data="about:blank",Ds||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&&(!Ds&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ab=_g();mg("data-v-b329ee4c");const lb={class:"resize-observer",tabindex:"-1"};yg();const cb=ab((e,t,n,r,s,o)=>(G(),be("div",lb)));zo.render=cb;zo.__scopeId="data-v-b329ee4c";zo.__file="src/components/ResizeObserver.vue";const zd=(e="theme")=>({computed:{themeClass(){return eb(this[e])}}}),ub=bt({name:"VPopperContent",components:{ResizeObserver:zo},mixins:[zd()],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}}}),fb=["id","aria-hidden","tabindex","data-popper-placement"],db={ref:"inner",class:"v-popper__inner"},hb=M("div",{class:"v-popper__arrow-outer"},null,-1),pb=M("div",{class:"v-popper__arrow-inner"},null,-1),gb=[hb,pb];function mb(e,t,n,r,s,o){const i=hn("ResizeObserver");return G(),te("div",{id:e.popperId,ref:"popover",class:ke(["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:Rn(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]=Xm(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[M("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),M("div",{class:"v-popper__wrapper",style:Rn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[M("div",db,[e.mounted?(G(),te(we,{key:0},[M("div",null,[Xe(e.$slots,"default")]),e.handleResize?(G(),be(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):De("",!0)],64)):De("",!0)],512),M("div",{ref:"arrow",class:"v-popper__arrow-container",style:Rn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},gb,4)],4)],46,fb)}const Vd=Wo(ub,[["render",mb]]),qd={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 ha=function(){};typeof window<"u"&&(ha=window.Element);const yb=bt({name:"VPopperWrapper",components:{Popper:ob,PopperContent:Vd},mixins:[qd,zd("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,ha,Boolean],default:void 0},boundary:{type:[String,ha],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 _b(e,t,n,r,s,o){const i=hn("PopperContent"),a=hn("Popper");return G(),be(a,Oo({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:oe(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,show:h,hide:p,handleResize:g,onResize:y,classes:_,result:v})=>[Xe(e.$slots,"default",{shown:u,show:h,hide:p}),V(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:c,"skip-transition":f,"auto-hide":d,"handle-resize":g,classes:_,result:v,onHide:p,onResize:y},{default:oe(()=>[Xe(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 fl=Wo(yb,[["render",_b]]),wb={...fl,name:"VDropdown",vPopperTheme:"dropdown"},bb={...fl,name:"VMenu",vPopperTheme:"menu"},vb={...fl,name:"VTooltip",vPopperTheme:"tooltip"},Cb=bt({name:"VTooltipDirective",components:{Popper:Gd(),PopperContent:Vd},mixins:[qd],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Yr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Yr(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}}}),xb=["innerHTML"],Sb=["textContent"];function kb(e,t,n,r,s,o){const i=hn("PopperContent"),a=hn("Popper");return G(),be(a,Oo({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:oe(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,hide:h,handleResize:p,onResize:g,classes:y,result:_})=>[V(i,{ref:"popperContent",class:ke({"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:y,result:_,onHide:h,onResize:g},{default:oe(()=>[e.html?(G(),te("div",{key:0,innerHTML:e.finalContent},null,8,xb)):(G(),te("div",{key:1,textContent:Oe(e.finalContent)},null,8,Sb))]),_: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 Eb=Wo(Cb,[["render",kb]]),Kd="v-popper--has-tooltip";function Ab(e,t){let n=e.placement;if(!n&&t)for(const r of Ud)t[r]&&(n=r);return n||(n=Yr(e.theme||"tooltip","placement")),n}function Xd(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=Ab(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let vi,Zr,Tb=0;function $b(){if(vi)return;Zr=Ae([]),vi=Qf({name:"VTooltipDirectiveApp",setup(){return{directives:Zr}},render(){return this.directives.map(t=>Ys(Eb,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),vi.mount(e)}function Rb(e,t,n){$b();const r=Ae(Xd(e,t,n)),s=Ae(!1),o={id:Tb++,options:r,shown:s};return Zr.value.push(o),e.classList&&e.classList.add(Kd),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Jd(e){if(e.$_popper){const t=Zr.value.indexOf(e.$_popper.item);t!==-1&&Zr.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Kd)}function Wc(e,{value:t,modifiers:n}){const r=Xd(e,t,n);if(!r.content||Yr(r.theme||"tooltip","disabled"))Jd(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=Rb(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Pb={beforeMount:Wc,updated:Wc,beforeUnmount(e){Jd(e)}};function zc(e){e.addEventListener("mousedown",co),e.addEventListener("click",co),e.addEventListener("touchstart",Yd,gr?{passive:!0}:!1)}function Vc(e){e.removeEventListener("mousedown",co),e.removeEventListener("click",co),e.removeEventListener("touchstart",Yd),e.removeEventListener("touchend",Zd),e.removeEventListener("touchcancel",Qd)}function co(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Yd(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",Zd),t.addEventListener("touchcancel",Qd)}}function Zd(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 Qd(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const Nb={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&zc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?zc(e):Vc(e))},beforeUnmount(e){Vc(e)}};function Ib(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Fd(_t,t),e.directive("tooltip",Pb),e.directive("close-popper",Nb),e.component("VTooltip",vb),e.component("VDropdown",wb),e.component("VMenu",bb))}const Mb={version:"5.2.2",install:Ib,options:_t},Ob=Nt(e=>{e.vueApp.use(Mb)}),Lb=[yw,Cw,kw,Aw,Tw,$w,Pw,Nw,Iw,Ob],dl={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(G(),te("div",{class:ke(["n-icon",e.icon])},null,2))}},Vo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Db={},Hb={class:"n-badge"};function Bb(e,t){return G(),te("span",Hb,[Xe(e.$slots,"default")])}const eh=Vo(Db,[["render",Bb]]);async function th(e,t=Rt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const s=t._preloadPromises||(t._preloadPromises=[]);if(s.length>4)return Promise.all(s).then(()=>th(e,t));t._routePreloaded.add(n);const o=r.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of o){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}const Fb=(...e)=>e.find(t=>t!==void 0);function jb(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 xs(o,l);const u="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:xs(u,l)}}function s(o){const i=Rt(),a=pr(),l=Se(()=>!!o.target&&o.target!=="_self"),u=Se(()=>{const y=o.to||o.href||"";return typeof y=="string"&&mn(y,{acceptRelative:!0})}),c=hn("RouterLink"),f=c&&typeof c!="string"?c.useLink:void 0,d=Se(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||u.value}),h=Se(()=>{const y=o.to||o.href||"";return d.value?y:r(y,i.resolve,o.trailingSlash)}),p=d.value||f==null?void 0:f({...o,to:h}),g=Se(()=>{var _;const y=o.trailingSlash??e.trailingSlash;if(!h.value||u.value||n(h.value))return h.value;if(d.value){const v=typeof h.value=="object"&&"path"in h.value?sa(h.value):h.value,m=typeof v=="object"?i.resolve(v).href:v;return xs(m,y)}return typeof h.value=="object"?((_=i.resolve(h.value))==null?void 0:_.href)??null:xs(Bn(a.app.baseURL,h.value),y)});return{to:h,hasTarget:l,isAbsoluteUrl:u,isExternal:d,href:g,isActive:(p==null?void 0:p.isActive)??Se(()=>h.value===i.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??Se(()=>h.value===i.currentRoute.value.path),route:(p==null?void 0:p.route)??Se(()=>i.resolve(h.value)),async navigate(y){await Cd(g.value,{replace:o.replace,external:d.value||l.value})}}}return bt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},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=Rt(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=s(o),p=Ws(!1),g=Ae(null),y=m=>{var b;g.value=o.custom?(b=m==null?void 0:m.$el)==null?void 0:b.nextElementSibling:m==null?void 0:m.$el};function _(m){var b,C;return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:((b=o.prefetchOn)==null?void 0:b[m])??((C=e.prefetchOn)==null?void 0:C[m]))&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!zb()}async function v(m=Pe()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:f.value?sa(l.value):a.resolve(l.value).fullPath,C=f.value?new URL(b,window.location.href).href:b;await Promise.all([m.hooks.callHook("link:prefetch",C).catch(()=>{}),!f.value&&!d.value&&th(l.value,a).catch(()=>{})])}if(_("visibility")){const m=Pe();let b,C=null;Ka(()=>{const A=Gb();Fo(()=>{b=la(()=>{var S;(S=g==null?void 0:g.value)!=null&&S.tagName&&(C=A.observe(g.value,async()=>{C==null||C(),C=null,await v(m)}))})})}),Xa(()=>{b&&Ew(b),C==null||C(),C=null})}return()=>{var C;if(!f.value&&!d.value&&!n(l.value)){const A={ref:y,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(_("interaction")&&(A.onPointerenter=v.bind(null,void 0),A.onFocus=v.bind(null,void 0)),p.value&&(A.class=o.prefetchedClass||e.prefetchedClass),A.rel=o.rel||void 0),Ys(hn("RouterLink"),A,i.default)}const m=o.target||null,b=Fb(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:v,get route(){if(!u.value)return;const A=new URL(u.value,window.location.href);return{path:A.pathname,fullPath:A.pathname,get query(){return Do(A.search)},hash:A.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:b,target:m,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Ys("a",{ref:g,href:u.value||null,rel:b,target:m},(C=i.default)==null?void 0:C.call(i))}}})}const Ub=jb(n_);function xs(e,t){const n=t==="append"?eo:Ho;return mn(e)&&!e.startsWith("http")?e:n(e,!0)}function Gb(){const e=Pe();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||(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==null||t.unobserve(o),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:r}}const Wb=/2g/;function zb(){const e=navigator.connection;return!!(e&&(e.saveData||Wb.test(e.effectiveType)))}const Vb={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},nh={__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=Se(()=>t.href||t.to);return(r,s)=>{const o=Ub;return G(),be(o,Oo(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:oe(()=>[Xe(r.$slots,"default"),n.value&&e.target==="_blank"?(G(),te("div",Vb)):De("",!0)]),_:3},16,["class"])}}},qb={},Kb={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xb(e,t){return G(),te("svg",Kb,t[0]||(t[0]=[mm('<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 Jb=Vo(qb,[["render",Xb]]),Yb={},Zb={class:"n-loading n-panel-grids-center"},Qb={class:"flex flex-col animate-pulse items-center text-lg"};function e0(e,t){return G(),te("div",Zb,[M("div",Qb,[t[1]||(t[1]=M("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),Xe(e.$slots,"default",{},()=>[t[0]||(t[0]=ae(" Loading... "))])])])}const t0=Vo(Yb,[["render",e0]]);let Ie=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function n0(e){return hl(e)}function hl(e){return Array.isArray(e)?r0(e):e instanceof RegExp?e:typeof e=="object"?s0(e):e}function r0(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=hl(e[n]);return t}function s0(e){let t={};for(let n in e)t[n]=hl(e[n]);return t}function rh(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function sh(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?sh(e.substring(0,e.length-1)):e.substr(~t+1)}var Ci=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ss=class{static hasCaptures(e){return e===null?!1:(Ci.lastIndex=0,Ci.test(e))}static replaceCaptures(e,t,n){return e.replace(Ci,(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 oh(e,t){return e<t?-1:e>t?1:0}function ih(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=oh(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function qc(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 ah(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var lh=class{constructor(e){k(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},uo=class{constructor(e,t,n){k(this,"_cachedMatchRoot",new lh(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(a0(e),t)}static createFromParsedTheme(e,t){return c0(e,t)}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=>o0(e.parent,s.parentScopes));return r?new ch(r.fontStyle,r.foreground,r.background):null}},xi=class Hs{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Hs(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Hs(n,t[r]);return n}push(t){return new Hs(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 o0(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&&!i0(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function i0(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var ch=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function a0(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"&&qc(i.settings.foreground)&&(u=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&qc(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],y=null;p.length>1&&(y=p.slice(0,p.length-1),y.reverse()),n[r++]=new l0(g,y,s,l,u,c)}}return n}var l0=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}},Ge=(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))(Ge||{});function c0(e,t){e.sort((l,u)=>{let c=oh(l.scope,u.scope);return c!==0||(c=ih(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 u0(t),i=new ch(n,o.getId(r),o.getId(s)),a=new d0(new pa(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 uo(o,i,a)}var u0=class{constructor(e){k(this,"_isFrozen");k(this,"_lastColorId");k(this,"_id2color");k(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},f0=Object.freeze([]),pa=class uh{constructor(t,n,r,s,o){k(this,"scopeDepth");k(this,"parentScopes");k(this,"fontStyle");k(this,"foreground");k(this,"background");this.scopeDepth=t,this.parentScopes=n||f0,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new uh(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)}},d0=class ga{constructor(t,n=[],r={}){k(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}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(ga._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 ga(this._mainRule.clone(),pa.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(ih(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 pa(t,n,r,s,o))}},mr=class rt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=rt.getLanguageId(t),r=rt.getTokenType(t),s=rt.getFontStyle(t),o=rt.getForeground(t),i=rt.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=rt.getLanguageId(t),u=rt.getTokenType(t),c=rt.containsBalancedBrackets(t)?1:0,f=rt.getFontStyle(t),d=rt.getForeground(t),h=rt.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 fo(e,t){const n=[],r=h0(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(Kc(s)){const l=[];do l.push(s),s=r.next();while(Kc(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 Kc(e){return!!e&&!!e.match(/[\w\.:]+/)}function h0(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 fh(e){typeof e.dispose=="function"&&e.dispose()}var Qr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},p0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},g0=class{constructor(){k(this,"_references",[]);k(this,"_seenReferenceKeys",new Set);k(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},m0=class{constructor(e,t){k(this,"seenFullScopeRequests",new Set);k(this,"seenPartialScopeRequests",new Set);k(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Qr(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new g0;for(const n of e)y0(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Qr){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 y0(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 Qr?Bs({baseGrammar:o,selfGrammar:s},r):ma(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 Qr(a))}function ma(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];ho([r],t,n)}}function Bs(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ho(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ho(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ho(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?rh({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ho(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=dh(o);switch(i.kind){case 0:Bs({...t,selfGrammar:t.baseGrammar},n);break;case 1:Bs(t,n);break;case 2:ma(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?ma(i.ruleName,l,n):Bs(l,n)}else i.kind===4?n.add(new p0(i.scopeName,i.ruleName)):n.add(new Qr(i.scopeName));break}}}var _0=class{constructor(){k(this,"kind",0)}},w0=class{constructor(){k(this,"kind",1)}},b0=class{constructor(e){k(this,"kind",2);this.ruleName=e}},v0=class{constructor(e){k(this,"kind",3);this.scopeName=e}},C0=class{constructor(e,t){k(this,"kind",4);this.scopeName=e,this.ruleName=t}};function dh(e){if(e==="$base")return new _0;if(e==="$self")return new w0;const t=e.indexOf("#");if(t===-1)return new v0(e);if(t===0)return new b0(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new C0(n,r)}}var x0=/\\(\d+)/,Xc=/\\(\d+)/g,S0=-1,hh=-2;var cs=class{constructor(e,t,n,r){k(this,"$location");k(this,"id");k(this,"_nameIsCapturing");k(this,"_name");k(this,"_contentNameIsCapturing");k(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Ss.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Ss.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${sh(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:Ss.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ss.replaceCaptures(this._contentName,e,t)}},k0=class extends cs{constructor(t,n,r,s,o){super(t,n,r,s);k(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,s){throw new Error("Not supported!")}},E0=class extends cs{constructor(t,n,r,s,o){super(t,n,r,null);k(this,"_match");k(this,"captures");k(this,"_cachedCompiledPatterns");this._match=new es(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ts,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Jc=class extends cs{constructor(t,n,r,s,o){super(t,n,r,s);k(this,"hasMissingPatterns");k(this,"patterns");k(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ts,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ya=class extends cs{constructor(t,n,r,s,o,i,a,l,u,c){super(t,n,r,s);k(this,"_begin");k(this,"beginCaptures");k(this,"_end");k(this,"endHasBackReferences");k(this,"endCaptures");k(this,"applyEndPatternLast");k(this,"hasMissingPatterns");k(this,"patterns");k(this,"_cachedCompiledPatterns");this._begin=new es(o,this.id),this.beginCaptures=i,this._end=new es(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ts;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},po=class extends cs{constructor(t,n,r,s,o,i,a,l,u){super(t,n,r,s);k(this,"_begin");k(this,"beginCaptures");k(this,"whileCaptures");k(this,"_while");k(this,"whileHasBackReferences");k(this,"hasMissingPatterns");k(this,"patterns");k(this,"_cachedCompiledPatterns");k(this,"_cachedCompiledWhilePatterns");this._begin=new es(o,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new es(a,hh),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ts;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ts,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},ph=class Be{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new k0(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new E0(t.$vscodeTextmateLocation,t.id,t.name,t.match,Be._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=rh({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Jc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Be._compilePatterns(o,n,r))}return t.while?new po(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Be._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Be._compileCaptures(t.whileCaptures||t.captures,n,r),Be._compilePatterns(t.patterns,n,r)):new ya(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Be._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Be._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Be._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=Be.getCompiledRuleId(t[i],n,r)),s[a]=Be.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=dh(a.include);switch(u.kind){case 0:case 1:l=Be.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=Be.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=Be.getCompiledRuleId(p,n,h.repository))}else l=Be.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=Be.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Jc||u instanceof ya||u instanceof po)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},es=class gh{constructor(t,n){k(this,"source");k(this,"ruleId");k(this,"hasAnchor");k(this,"hasBackReferences");k(this,"_anchorCache");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=x0.test(this.source):this.hasBackReferences=!1}clone(){return new gh(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 Xc.lastIndex=0,this.source.replace(Xc,(s,o)=>ah(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}},ts=class{constructor(){k(this,"_items");k(this,"_hasAnchors");k(this,"_cached");k(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Yc(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 Yc(e,r,this._items.map(s=>s.ruleId))}},Yc=class{constructor(e,t,n){k(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
20
|
-
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Si=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ft,
|
|
21
|
-
`;const o=this.createOnigString(e),i=o.content.length,a=new B0(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=mh(this,o,s,0,t,a,!0,r);return fh(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eu(e,t){return e=n0(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 Ur=class xt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=xi.push(s,o.scopeNames),r=new xt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new xt(null,new xi(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new xi(null,t),i=r.themeProvider.themeMatch(o),a=xt.mergeAttributes(n,s,i);return new xt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return xt.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),mr.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return xt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=xt._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=xt.mergeAttributes(t.tokenAttributes,s,i);return new xt(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((s=r.parent)==null?void 0:s.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},ot,_a=(ot=class{constructor(t,n,r,s,o,i,a,l){k(this,"_stackElementBrand");k(this,"_enterPos");k(this,"_anchorPos");k(this,"depth");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}equals(t){return t===null?!1:ot._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Ur.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(){ot._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new ot(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){var r,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ot(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=Ur.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new ot(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ur.fromExtension(r,n.contentNameScopesList))}},k(ot,"NULL",new ot(null,0,0,0,!1,null,null,null)),ot),H0=class{constructor(e,t){k(this,"balancedBracketScopes");k(this,"unbalancedBracketScopes");k(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):fo(n,go).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>fo(n,go).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}},B0=class{constructor(e,t,n,r){k(this,"_emitBinaryTokens");k(this,"_lineText");k(this,"_tokens");k(this,"_binaryTokens");k(this,"_lastTokenEndIndex");k(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(e==null?void 0:e.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(i)&&(s=mr.set(s,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(s=mr.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},F0=class{constructor(e,t){k(this,"_grammars",new Map);k(this,"_rawGrammars",new Map);k(this,"_injectionGrammars",new Map);k(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,O0(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},j0=class{constructor(t){k(this,"_options");k(this,"_syncRegistry");k(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new F0(uo.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(uo.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 H0(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new m0(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)}},wa=_a.NULL;const U0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class us{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}us.prototype.normal={};us.prototype.property={};us.prototype.space=void 0;function _h(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new us(n,r,t)}function ba(e){return e.toLowerCase()}class Ye{constructor(t,n){this.attribute=n,this.property=t}}Ye.prototype.attribute="";Ye.prototype.booleanish=!1;Ye.prototype.boolean=!1;Ye.prototype.commaOrSpaceSeparated=!1;Ye.prototype.commaSeparated=!1;Ye.prototype.defined=!1;Ye.prototype.mustUseProperty=!1;Ye.prototype.number=!1;Ye.prototype.overloadedBoolean=!1;Ye.prototype.property="";Ye.prototype.spaceSeparated=!1;Ye.prototype.space=void 0;let G0=0;const se=jn(),xe=jn(),va=jn(),I=jn(),ye=jn(),lr=jn(),et=jn();function jn(){return 2**++G0}const Ca=Object.freeze(Object.defineProperty({__proto__:null,boolean:se,booleanish:xe,commaOrSpaceSeparated:et,commaSeparated:lr,number:I,overloadedBoolean:va,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),ki=Object.keys(Ca);class pl extends Ye{constructor(t,n,r,s){let o=-1;if(super(t,n),tu(this,"space",s),typeof r=="number")for(;++o<ki.length;){const i=ki[o];tu(this,ki[o],(r&Ca[i])===Ca[i])}}}pl.prototype.defined=!0;function tu(e,t,n){n&&(e[t]=n)}function wr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new pl(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ba(r)]=r,n[ba(o.attribute)]=r}return new us(t,n,e.space)}const wh=wr({properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:ye,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:I,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:ye,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:xe,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bh(e,t){return t in e?e[t]:t}function vh(e,t){return bh(e,t.toLowerCase())}const W0=wr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lr,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:ye,autoFocus:se,autoPlay:se,blocking:ye,capture:null,charSet:null,checked:se,cite:null,className:ye,cols:I,colSpan:null,content:null,contentEditable:xe,controls:se,controlsList:ye,coords:I|lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:va,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:ye,height:I,hidden:va,high:I,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:ye,itemRef:ye,itemScope:se,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:se,muted:se,name:null,nonce:null,noModule:se,noValidate:se,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:se,optimum:I,pattern:null,ping:ye,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:ye,required:se,reversed:se,rows:I,rowSpan:I,sandbox:ye,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:xe,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:se,declare:se,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:xe,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:se,disableRemotePlayback:se,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:vh}),z0=wr({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:et,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:ye,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:lr,g2:lr,glyphName:lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bh}),Ch=wr({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()}}),xh=wr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vh}),Sh=wr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),V0=/[A-Z]/g,nu=/-[a-z]/g,q0=/^data[-\w.:]+$/i;function K0(e,t){const n=ba(t);let r=t,s=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&q0.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(nu,J0);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!nu.test(o)){let i=o.replace(V0,X0);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=pl}return new s(r,t)}function X0(e){return"-"+e.toLowerCase()}function J0(e){return e.charAt(1).toUpperCase()}const Y0=_h([wh,W0,Ch,xh,Sh],"html"),kh=_h([wh,z0,Ch,xh,Sh],"svg"),ru={}.hasOwnProperty;function Z0(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&ru.call(s,e)){const l=String(s[e]);i=ru.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 Q0=/["&'<>`]/g,ev=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tv=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,nv=/[|\\{}()[\]^$+*?.]/g,su=new WeakMap;function rv(e,t){if(e=e.replace(t.subset?sv(t.subset):Q0,r),t.subset||t.escapeOnly)return e;return e.replace(ev,n).replace(tv,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 sv(e){let t=su.get(e);return t||(t=ov(e),su.set(e,t)),t}function ov(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(nv,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const iv=/[\dA-Fa-f]/;function av(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!iv.test(String.fromCharCode(t))?r:r+";"}const lv=/\d/;function cv(e,t,n){const r="&#"+String(e);return n&&t&&!lv.test(String.fromCharCode(t))?r:r+";"}const uv=["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"],Ei={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:"€"},fv=["cent","copy","divide","gt","lt","not","para","times"],Eh={}.hasOwnProperty,xa={};let ks;for(ks in Ei)Eh.call(Ei,ks)&&(xa[Ei[ks]]=ks);const dv=/[^\dA-Za-z]/;function hv(e,t,n,r){const s=String.fromCharCode(e);if(Eh.call(xa,s)){const o=xa[s],i="&"+o;return n&&uv.includes(o)&&!fv.includes(o)&&(!r||t&&t!==61&&dv.test(String.fromCharCode(t)))?i:i+";"}return""}function pv(e,t,n){let r=av(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=hv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=cv(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function cr(e,t){return rv(e,Object.assign({format:pv},t))}const gv=/^>|^->|<!--|-->|--!>|<!-$/g,mv=[">"],yv=["<",">"];function _v(e,t,n,r){return r.settings.bogusComments?"<?"+cr(e.value,Object.assign({},r.settings.characterReferences,{subset:mv}))+">":"<!--"+e.value.replace(gv,s)+"-->";function s(o){return cr(o,Object.assign({},r.settings.characterReferences,{subset:yv}))}}function wv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function ou(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 bv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function vv(e){return e.join(" ").trim()}const Cv=/[ \t\n\f\r]/g;function gl(e){return typeof e=="object"?e.type==="text"?iu(e.value):!1:iu(e)}function iu(e){return e.replace(Cv,"")===""}const Ne=Th(1),Ah=Th(-1),xv=[];function Th(e){return t;function t(n,r,s){const o=n?n.children:xv;let i=(r||0)+e,a=o[i];if(!s)for(;a&&gl(a);)i+=e,a=o[i];return a}}const Sv={}.hasOwnProperty;function $h(e){return t;function t(n,r,s){return Sv.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const ml=$h({body:Ev,caption:Ai,colgroup:Ai,dd:Rv,dt:$v,head:Ai,html:kv,li:Tv,optgroup:Pv,option:Nv,p:Av,rp:au,rt:au,tbody:Mv,td:lu,tfoot:Ov,th:lu,thead:Iv,tr:Lv});function Ai(e,t,n){const r=Ne(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&gl(r.value.charAt(0)))}function kv(e,t,n){const r=Ne(n,t);return!r||r.type!=="comment"}function Ev(e,t,n){const r=Ne(n,t);return!r||r.type!=="comment"}function Av(e,t,n){const r=Ne(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 Tv(e,t,n){const r=Ne(n,t);return!r||r.type==="element"&&r.tagName==="li"}function $v(e,t,n){const r=Ne(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Rv(e,t,n){const r=Ne(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function au(e,t,n){const r=Ne(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Pv(e,t,n){const r=Ne(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Nv(e,t,n){const r=Ne(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Iv(e,t,n){const r=Ne(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Mv(e,t,n){const r=Ne(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ov(e,t,n){return!Ne(n,t)}function Lv(e,t,n){const r=Ne(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function lu(e,t,n){const r=Ne(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Dv=$h({body:Fv,colgroup:jv,head:Bv,html:Hv,tbody:Uv});function Hv(e){const t=Ne(e,-1);return!t||t.type!=="comment"}function Bv(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 Fv(e){const t=Ne(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&gl(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function jv(e,t,n){const r=Ah(n,t),s=Ne(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ml(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Uv(e,t,n){const r=Ah(n,t),s=Ne(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ml(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const Es={name:[[`
|
|
19
|
+
**/let Xi;const Yl=typeof window<"u"&&window.trustedTypes;if(Yl)try{Xi=Yl.createPolicy("vue",{createHTML:e=>e})}catch{}const Xf=Xi?e=>Xi.createHTML(e):e=>e,Em="http://www.w3.org/2000/svg",Tm="http://www.w3.org/1998/Math/MathML",Lt=typeof document<"u"?document:null,Zl=Lt&&Lt.createElement("template"),$m={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"?Lt.createElementNS(Em,e):t==="mathml"?Lt.createElementNS(Tm,e):n?Lt.createElement(e,{is:n}):Lt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Lt.createTextNode(e),createComment:e=>Lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lt.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{Zl.innerHTML=Xf(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Zl.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]}},Rm=Symbol("_vtc");function Pm(e,t,n){const r=e[Rm];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ql=Symbol("_vod"),Im=Symbol("_vsh"),Nm=Symbol(""),Om=/(^|;)\s*display\s*:/;function Mm(e,t,n){const r=e.style,s=ve(n);let o=!1;if(n&&!s){if(t)if(ve(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Os(r,a,"")}else for(const i in t)n[i]==null&&Os(r,i,"");for(const i in n)i==="display"&&(o=!0),Os(r,i,n[i])}else if(s){if(t!==n){const i=r[Nm];i&&(n+=";"+i),r.cssText=n,o=Om.test(n)}}else t&&e.removeAttribute("style");Ql in e&&(e[Ql]=o?r.display:"",e[Im]&&(r.display="none"))}const ec=/\s*!important$/;function Os(e,t,n){if(Z(n))n.forEach(r=>Os(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Lm(e,t);ec.test(n)?e.setProperty(gn(r),n.replace(ec,""),"important"):e[r]=n}}const tc=["Webkit","Moz","ms"],di={};function Lm(e,t){const n=di[t];if(n)return n;let r=ut(t);if(r!=="filter"&&r in e)return di[t]=r;r=ko(r);for(let s=0;s<tc.length;s++){const o=tc[s]+r;if(o in e)return di[t]=o}return t}const nc="http://www.w3.org/1999/xlink";function rc(e,t,n,r,s,o=Np(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(nc,t.slice(6,t.length)):e.setAttributeNS(nc,t,n):n==null||o&&!Gu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":wt(n)?String(n):n)}function sc(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Xf(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=Gu(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 Yf(e,t,n,r){e.addEventListener(t,n,r)}function Dm(e,t,n,r){e.removeEventListener(t,n,r)}const oc=Symbol("_vei");function Hm(e,t,n,r,s=null){const o=e[oc]||(e[oc]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=Bm(t);if(r){const u=o[t]=Um(r,s);Yf(e,a,u,l)}else i&&(Dm(e,a,i,l),o[t]=void 0)}}const ic=/(?:Once|Passive|Capture)$/;function Bm(e){let t;if(ic.test(e)){t={};let r;for(;r=e.match(ic);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):gn(e.slice(2)),t]}let hi=0;const Fm=Promise.resolve(),jm=()=>hi||(Fm.then(()=>hi=0),hi=Date.now());function Um(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;$t(Gm(r,n.value),t,5,[r])};return n.value=e,n.attached=jm(),n}function Gm(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 ac=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?Pm(e,r,i):t==="style"?Mm(e,n,r):os(t)?Na(t)||Hm(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zm(e,t,r,i))?(sc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rc(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ve(r))?sc(e,ut(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rc(e,t,r,i))};function zm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ac(t)&&Q(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 ac(t)&&ve(n)?!1:t in e}const lc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>Is(t,n):t},pi=Symbol("_assign"),Vm={created(e,{value:t},n){e.checked=js(t,n.props.value),e[pi]=lc(n),Yf(e,"change",()=>{e[pi](qm(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[pi]=lc(r),t!==n&&(e.checked=js(t,r.props.value))}};function qm(e){return"_value"in e?e._value:e.value}const Km={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Jm=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=gn(s.key);if(t.some(i=>i===o||Km[i]===o))return e(s)})},Zf=We({patchProp:Wm},$m);let Lr,cc=!1;function Xm(){return Lr||(Lr=Xg(Zf))}function Ym(){return Lr=cc?Lr:Yg(Zf),cc=!0,Lr}const Qf=(...e)=>{const t=Xm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=td(r);if(!s)return;const o=t._component;!Q(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,ed(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},Zm=(...e)=>{const t=Ym().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=td(r);if(s)return n(s,!0,ed(s))},t};function ed(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function td(e){return ve(e)?document.querySelector(e):e}const Qm=/"(?:_|\\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*:/,ey=/"(?: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*:/,ty=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ny(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ry(e);return}return t}function ry(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Zs(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(!ty.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Qm.test(e)||ey.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ny)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const sy=/#/g,oy=/&/g,iy=/\//g,ay=/=/g,tl=/\+/g,ly=/%5e/gi,cy=/%60/gi,uy=/%7c/gi,fy=/%20/gi;function dy(e){return encodeURI(""+e).replace(uy,"|")}function Yi(e){return dy(typeof e=="string"?e:JSON.stringify(e)).replace(tl,"%2B").replace(fy,"+").replace(sy,"%23").replace(oy,"%26").replace(cy,"`").replace(ly,"^").replace(iy,"%2F")}function gi(e){return Yi(e).replace(ay,"%3D")}function Qs(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function hy(e){return Qs(e.replace(tl," "))}function py(e){return Qs(e.replace(tl," "))}function Do(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=hy(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=py(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 gy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${gi(e)}=${Yi(n)}`).join("&"):`${gi(e)}=${Yi(t)}`:gi(e)}function nd(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>gy(t,e[t])).filter(Boolean).join("&")}const my=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,yy=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_y=/^([/\\]\s*){2,}[^/\\]/,wy=/^[\s\0]*(blob|data|javascript|vbscript):$/i,by=/\/$|\/\?|\/#/,vy=/^\.?\//;function mn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?my.test(e):yy.test(e)||(t.acceptRelative?_y.test(e):!1)}function Cy(e){return!!e&&wy.test(e)}function Zi(e="",t){return t?by.test(e):e.endsWith("/")}function Ho(e="",t){if(!t)return(Zi(e)?e.slice(0,-1):e)||"/";if(!Zi(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 eo(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Zi(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 xy(e=""){return e.startsWith("/")}function uc(e=""){return xy(e)?e:"/"+e}function Sy(e,t){if(sd(t)||mn(e))return e;const n=Ho(t);return e.startsWith(n)?e:Bn(n,e)}function ky(e,t){if(sd(t))return e;const n=Ho(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function rd(e,t){const n=ad(e),r={...Do(n.search),...t};return n.search=nd(r),ld(n)}function sd(e){return!e||e==="/"}function Ay(e){return e&&e!=="/"}function Bn(e,...t){let n=e||"";for(const r of t.filter(s=>Ay(s)))if(n){const s=r.replace(vy,"");n=eo(n)+s}else n=r;return n}function od(...e){var i,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const c of n)if(!(!c||c==="/")){for(const[f,d]of c.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&mn(r[0]))continue;r.pop(),s--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),s++}}let o=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!o.startsWith("/")?o="/"+o:(l=n[0])!=null&&l.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,(u=n[n.length-1])!=null&&u.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function Ey(e,t,n={}){return n.trailingSlash||(e=eo(e),t=eo(t)),n.leadingSlash||(e=uc(e),t=uc(t)),n.encoding||(e=Qs(e),t=Qs(t)),e===t}const id=Symbol.for("ufo:protocolRelative");function ad(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(!mn(e,{acceptRelative:!0}))return fc(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}=fc(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:u,hash:c,[id]:!r}}function fc(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function ld(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[id]?(e.protocol||"")+"//":"")+s+o+t+n+r}class Ty extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function $y(e){var l,u,c,f,d;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.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 Ty(i,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[p]}});return a}const Ry=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function dc(e="GET"){return Ry.has(e.toUpperCase())}function Py(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 Iy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Ny=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Oy(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Ny.test(t)?"json":Iy.has(t)||t.startsWith("text/")?"text":"blob"}function My(e,t,n,r){const s=Ly((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let o;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(o={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:o,params:o,headers:s}}function Ly(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 _s(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Dy=new Set([408,409,425,429,500,502,503,504]),Hy=new Set([101,204,205,304]);function cd(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=dc(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):Dy.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=$y(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const c={request:l,options:My(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 _s(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Sy(c.request,c.options.baseURL)),c.options.query&&(c.request=rd(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&&dc(c.options.method)&&(Py(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 _s(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!Hy.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||Oy(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||Zs;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 _s(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await _s(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={})=>cd({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const to=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")}(),By=to.fetch?(...e)=>to.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Fy=to.Headers,jy=to.AbortController,Uy=cd({fetch:By,Headers:Fy,AbortController:jy}),Gy=Uy,Wy=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},no=Wy().app,zy=()=>no.baseURL,Vy=()=>no.buildAssetsDir,nl=(...e)=>od(ud(),Vy(),...e),ud=(...e)=>{const t=no.cdnURL||no.baseURL;return e.length?od(t,...e):t};globalThis.__buildAssetsURL=nl,globalThis.__publicAssetsURL=ud;globalThis.$fetch||(globalThis.$fetch=Gy.create({baseURL:zy()}));"global"in globalThis||(globalThis.global=globalThis);function Qi(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Qi(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const qy={run:e=>e()},Ky=()=>qy,fd=typeof console.createTask<"u"?console.createTask:Ky;function Jy(e,t){const n=t.shift(),r=fd(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Xy(e,t){const n=t.shift(),r=fd(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function mi(e,t){for(const n of[...e])n(t)}class Yy{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=Qi(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=Qi(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(Jy,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Xy,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&mi(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&mi(this._after,s)}):(this._after&&s&&mi(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 dd(){return new Yy}function Zy(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;ea.add(u);try{const c=s?s.run(i,a):a();return n||(t=void 0),await c}finally{ea.delete(u)}}}}function Qy(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Zy({...e,...r})),t[n]}}}const ro=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},hc="__unctx__",e_=ro[hc]||(ro[hc]=Qy()),t_=(e,t={})=>e_.get(e,t),pc="__unctx_async_handlers__",ea=ro[pc]||(ro[pc]=new Set);function hd(e){const t=[];for(const s of ea){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 n_={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},r_=null,s_="#__nuxt",pd="nuxt-app",gc=36e5,o_="vite:preloadError";function gd(e=pd){return t_(e,{asyncContext:!1})}const i_="__nuxt_plugin";function a_(e){var s;let t=0;const n={_id:e.id||pd||"nuxt-app",_scope:Mp(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.17.5"},get vue(){return n.vueApp.version}},payload:Zn({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:Zn({}),state:dn({}),once:new Set,_errors:Zn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Da()?n._scope.run(()=>mc(n,o)):mc(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Zn({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=dd(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;ws(n,a,i),ws(n.vueApp.config.globalProperties,a,i)},ws(n.vueApp,"$nuxt",n),ws(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(o_,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Pe);const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function l_(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function c_(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 u_(e,t){const n=new Set,r=[],s=[],o=[];let i=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(f=>t.some(d=>d._name===f)&&!n.has(f)))??[];if(u.length>0)r.push([new Set(u),l]);else{const f=c_(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([d,h])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(h)))})))});l.parallel?s.push(f.catch(d=>o.push(d))):await f}}for(const l of t)l_(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.length)throw o[0]}function It(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[i_]:!0,_name:t})}function mc(e,t,n){const r=()=>t();return gd(e._id).set(e),e.vueApp.runWithContext(r)}function md(e){var n;let t;return Io()&&(t=(n=ls())==null?void 0:n.appContext.app.$nuxt),t||(t=gd(e).tryUse()),t||null}function Pe(e){const t=md(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function pr(e){return Pe().$config}function ws(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function f_(e,t){return{ctx:{table:e},matchAll:n=>_d(n,e)}}function yd(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,yd(s)])):new Map(Object.entries(e[n]));return t}function d_(e){return f_(yd(e))}function _d(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of yc(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of yc(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(..._d(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function yc(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function yi(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 ta(e,t,n=".",r){if(!yi(t))return ta(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]]:yi(i)&&yi(s[o])?s[o]=ta(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function h_(e){return(...t)=>t.reduce((n,r)=>ta(n,r,"",e),{})}const p_=h_();function g_(e,t){try{return t in e}catch{return!1}}class na extends Error{constructor(n,r={}){super(n,r);k(this,"statusCode",500);k(this,"fatal",!1);k(this,"unhandled",!1);k(this,"statusMessage");k(this,"data");k(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:ra(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=wd(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}k(na,"__h3_error__",!0);function m_(e){if(typeof e=="string")return new na(e);if(y_(e))return e;const t=new na(e.message??e.statusMessage??"",{cause:e.cause||e});if(g_(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=ra(e.statusCode,t.statusCode):e.status&&(t.statusCode=ra(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;wd(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 y_(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const __=/[^\u0009\u0020-\u007E]/g;function wd(e=""){return e.replace(__,"")}function ra(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const bd=Symbol("route"),Rt=()=>{var e;return(e=Pe())==null?void 0:e.$router},vd=()=>Io()?Mn(bd,Pe()._route):Pe()._route;const w_=()=>{try{if(Pe()._processingMiddleware)return!0}catch{return!1}return!1},Cd=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?sa(e):Rt().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=Object.entries(u).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(n,l,c),Promise.resolve()}const r=mn(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&Cy(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=w_();if(!s&&o){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=ad(e);return{path:l,...u&&{query:Do(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=Rt(),a=Pe();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function sa(e){return rd(e.path||"",e.query||{})+(e.hash||"")}const xd="__nuxt_error",rl=()=>uf(Pe().payload,"error"),b_=e=>{const t=sl(e);try{const n=Pe(),r=rl();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},v_=async(e={})=>{const t=Pe(),n=rl();t.callHook("app:error:cleared",e),e.redirect&&await Rt().replace(e.redirect),n.value=r_},C_=e=>!!e&&typeof e=="object"&&xd in e,sl=e=>{const t=m_(e);return Object.defineProperty(t,xd,{value:!0,configurable:!1,writable:!1}),t};function _c(e){const t=S_(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 x_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function S_(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|=x_.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 k_=-1,A_=-2,E_=-3,T_=-4,$_=-5,R_=-6;function P_(e,t){return I_(JSON.parse(e),t)}function I_(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===k_)return;if(o===E_)return NaN;if(o===T_)return 1/0;if(o===$_)return-1/0;if(o===R_)return-0;if(i)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==null?void 0: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=a[1],g=_c(p),y=new h(g);r[o]=y;break}case"ArrayBuffer":{const h=a[1],p=_c(h);r[o]=p;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!==A_&&(l[u]=s(c))}}else{const l={};r[o]=l;for(const u in a){const c=a[u];l[u]=s(c)}}return r[o]}return s(0)}const N_=new Set(["link","style","script","noscript"]),O_=new Set(["title","titleTemplate","script","style","noscript"]),wc=new Set(["base","meta","link","style","script","noscript"]),M_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),L_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),D_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),H_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),B_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const F_=["name","property","http-equiv"];function Sd(e){const t=e.split(":");return t.length?B_.has(t[1]):!1}function oa(e){const{props:t,tag:n}=e;if(L_.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 F_)if(t[r]!==void 0)return`${n}:${t[r]}`}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(O_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function bc(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 so(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=>so(o,t));if((s==null?void 0:s.constructor)===Object){const o={};for(const i of Object.keys(s))o[i]=so(s[i],t,i);return o}return s}function j_(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 kd(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=j_(n,r);return}if(D_.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!(i!=null&&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}function U_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=kd({tag:e,props:{}},n);return r.key&&N_.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 G_(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=so(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(U_(s,i))}),r.flat()}const ia=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,vc={base:-10,title:10},W_={critical:-8,high:-1,low:2},Cc={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}},z_=/@import/,Ar=e=>e===""||e===!0;function V_(e,t){var o;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=W_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Cc;if(t.tag in vc)n=vc[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=Cc.meta[i])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?Ar(t.props.async)?n=s.script.async:t.props.src&&!Ar(t.props.defer)&&!Ar(t.props.async)&&t.props.type!=="module"&&!((o=t.props.type)!=null&&o.endsWith("json"))?n=s.script.sync:Ar(t.props.defer)&&t.props.src&&!Ar(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&z_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function xc(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 q_(e={}){var a;const t=dd();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=[],i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:l=>xc(i,l),push(l,u){const c={...u||{}};delete c.head;const f=c._index??i._entryCount++,d={_i:f,input:l,options:c},h={_poll(p=!1){i.dirty=!0,!p&&o.push(f),t.callHook("entries:updated",i)},dispose(){r.delete(f)&&h._poll(!0)},patch(p){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(d.input=p,r.set(f,d),h._poll())}};return h.patch(l),h},async resolveTags(){var h;const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);o.length;){const p=o.shift(),g=r.get(p);if(g){const y={tags:G_(g.input,e.propResolvers||[]).map(_=>Object.assign(_,g.options)),entry:g};await t.callHook("entries:normalize",y),g._tags=y.tags.map((_,v)=>(_._w=V_(i,_),_._p=(g._i<<10)+v,_._d=oa(_),_))}}let u=!1;l.entries.flatMap(p=>(p._tags||[]).map(g=>({...g,props:{...g.props}}))).sort(ia).reduce((p,g)=>{const y=String(g._d||g._p);if(!p.has(y))return p.set(y,g);const _=p.get(y);if(((g==null?void 0:g.tagDuplicateStrategy)||(H_.has(g.tag)?"merge":null)||(g.key&&g.key===_.key?"merge":null))==="merge"){const m={..._.props};Object.entries(g.props).forEach(([b,C])=>m[b]=b==="style"?new Map([..._.props.style||new Map,...C]):b==="class"?new Set([..._.props.class||new Set,...C]):C),p.set(y,{...g,props:m})}else g._p>>10===_._p>>10&&g.tag==="meta"&&Sd(y)?(p.set(y,Object.assign([...Array.isArray(_)?_:[_],g],g)),u=!0):(g._w===_._w?g._p>_._p:(g==null?void 0:g._w)<(_==null?void 0:_._w))&&p.set(y,g);return p},l.tagMap);const c=l.tagMap.get("title"),f=l.tagMap.get("titleTemplate");if(i._title=c==null?void 0:c.textContent,f){const p=f==null?void 0:f.textContent;if(i._titleTemplate=p,p){let g=typeof p=="function"?p(c==null?void 0:c.textContent):p;typeof g=="string"&&!i.plugins.has("template-params")&&(g=g.replace("%s",(c==null?void 0:c.textContent)||"")),c?g===null?l.tagMap.delete("title"):l.tagMap.set("title",{...c,textContent:g}):(f.tag="title",f.textContent=g)}}l.tags=Array.from(l.tagMap.values()),u&&(l.tags=l.tags.flat().sort(ia)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const d=[];for(const p of l.tags){const{innerHTML:g,tag:y,props:_}=p;if(M_.has(y)&&!(Object.keys(_).length===0&&!p.innerHTML&&!p.textContent)&&!(y==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(y==="script"&&g){if((h=_.type)!=null&&h.endsWith("json")){const v=typeof g=="string"?g:JSON.stringify(g);p.innerHTML=v.replace(/</g,"\\u003C")}else typeof g=="string"&&(p.innerHTML=g.replace(new RegExp(`</${y}`,"g"),`<\\/${y}`));p._d=oa(p)}d.push(p)}}return d}};return((e==null?void 0:e.plugins)||[]).forEach(l=>xc(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const en="%separator",K_=new RegExp(`${en}(?:\\s*${en})*`,"g");function J_(e,t,n=!1){var s;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=(s=e[t.substring(0,o)])==null?void 0:s[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function bs(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const o=s.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const i=e.includes(en);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===en||!o.includes(a))return a;const l=J_(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(en)&&(e=e.slice(0,-en.length)),e.startsWith(en)&&(e=e.slice(en.length)),e=e.replace(K_,n||"").trim()),e}const Sc=e=>e.includes(":key")?e:e.split(":").join(":key:"),X_={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const o=Sc(s.slice(7)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p-1,t=!0)}else if(s.startsWith("after:")){const o=Sc(s.slice(6)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(ia))}}},Y_={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function aa(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>aa(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await aa(e[r]);return n}return e}const Z_={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(aa(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},Q_={meta:"content",link:"href",htmlAttrs:"lang"},ew=["innerHTML","textContent"],tw=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var r,s,o;const n=((s=(r=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:r[0])==null?void 0:s.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((o=e._ssrPayload)==null?void 0:o.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var o;const r=((o=t.get("templateParams"))==null?void 0:o.props)||{},s=r.separator||"|";delete r.separator,r.pageTitle=bs(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const a=Q_[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=bs(i.props[a],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of ew)typeof i[l]=="string"&&(i[l]=bs(i[l],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=bs(n.textContent,e._templateParams,e._separator))}}}),nw=(e,t)=>Ae(t)?on(t):t,ol="usehead";function rw(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(ol,e)}}.install}function sw(){if(Io()){const e=Mn(ol);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 ow(e,t={}){const n=t.head||sw();return n.ssr?n.push(e||{},t):iw(n,e,t)}function iw(e,t,n={}){const r=Ee(!1);let s;return Bf(()=>{const i=r.value?{}:so(t,nw);s?s.patch(i):s=e.push(i,n)}),ls()&&(Ja(()=>{s.dispose()}),gf(()=>{r.value=!0}),pf(()=>{r.value=!1})),s}function aw(e){var n;const t=e||md();return((n=t==null?void 0:t.ssrContext)==null?void 0:n.head)||(t==null?void 0:t.runWithContext(()=>{if(Io())return Mn(ol)}))}function lw(e,t={}){const n=aw(t.nuxt);if(n)return ow(e,{head:n,...t})}const cw="modulepreload",uw=function(e,t){return new URL(e,t).href},kc={},Dr=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let i=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=i(n.map(c=>{if(c=uw(c,r),c in kc)return;kc[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=a.length-1;g>=0;g--){const y=a[g];if(y.href===c&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":cw,f||(p.as="script"),p.crossOrigin="",p.href=c,u&&p.setAttribute("nonce",u),document.head.appendChild(p),f)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(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 Ms,Ls;function fw(){return Ms=$fetch(nl(`builds/meta/${pr().app.buildId}.json`),{responseType:"json"}),Ms.then(e=>{Ls=d_(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Ms}function Bo(){return Ms||fw()}async function il(e){const t=typeof e=="string"?e:e.path;if(await Bo(),!Ls)return console.error("[nuxt] Error creating app manifest matcher.",Ls),{};try{return p_({},...Ls.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Ac(e,t={}){if(!await Ed(e))return null;const r=await hw(e,t);return await Ad(r)||null}const dw="_payload.json";async function hw(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||mn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=pr(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await Ed(e)?o:r.app.baseURL;return Bn(i,n.pathname,dw+(s?`?${s}`:""))}async function Ad(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Td));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Ed(e=vd().path){const t=Pe();return e=Ho(e),(await Bo()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await il({path:e});return!!r.prerender&&!r.redirect})}let bn=null;async function pw(){var r;if(bn)return bn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Td(e.textContent||""),n=e.dataset.src?await Ad(e.dataset.src):void 0;return bn={...t,...n,...window.__NUXT__},(r=bn.config)!=null&&r.public&&(bn.config.public=dn(bn.config.public)),bn}async function Td(e){return await P_(e,Pe()._payloadRevivers)}function gw(e,t){Pe()._payloadRevivers[e]=t}const mw=[["NuxtError",e=>sl(e)],["EmptyShallowRef",e=>Ws(e==="_"?void 0:e==="0n"?BigInt(0):Zs(e))],["EmptyRef",e=>Ee(e==="_"?void 0:e==="0n"?BigInt(0):Zs(e))],["ShallowRef",e=>Ws(e)],["ShallowReactive",e=>Zn(e)],["Ref",e=>Ee(e)],["Reactive",e=>dn(e)]],yw=It({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of mw)gw(r,s);Object.assign(e.payload,([t,n]=hd(()=>e.runWithContext(pw)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function al(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=>{var h;const o=new Map,i=new Promise(p=>{e.resolveTags().then(g=>{p(g.map(y=>{const _=o.get(y._d)||0,v={tag:y,id:(_?`${y._d}:${_}`:y._d)||bc(y),shouldRender:!0};return y._d&&Sd(y._d)&&o.set(y._d,_+1),v}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const p of["body","head"]){const g=(h=n[p])==null?void 0:h.children;for(const y of g){const _=y.tagName.toLowerCase();if(!wc.has(_))continue;const v=kd({tag:_,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((m,b)=>(m[b]=y.getAttribute(b),m),{})||{}});if(v.key=y.getAttribute("data-hid")||void 0,v._d=oa(v)||bc(v),a.elMap.has(v._d)){let m=1,b=v._d;for(;a.elMap.has(b);)b=`${v._d}:${m++}`;a.elMap.set(b,y)}else a.elMap.set(v._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(p,g,y){const _=`${p}:${g}`;a.sideEffects[_]=y,delete a.pendingSideEffects[_]}function u({id:p,$el:g,tag:y}){const _=y.tag.endsWith("Attrs");a.elMap.set(p,g),_||(y.textContent&&y.textContent!==g.textContent&&(g.textContent=y.textContent),y.innerHTML&&y.innerHTML!==g.innerHTML&&(g.innerHTML=y.innerHTML),l(p,"el",()=>{g==null||g.remove(),a.elMap.delete(p)}));for(const v in y.props){if(!Object.prototype.hasOwnProperty.call(y.props,v))continue;const m=y.props[v];if(v.startsWith("on")&&typeof m=="function"){const C=g==null?void 0:g.dataset;if(C&&C[`${v}fired`]){const E=v.slice(0,-5);m.call(g,new Event(E.substring(2)))}g.getAttribute(`data-${v}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:g).addEventListener(v.substring(2),m.bind(g)),g.setAttribute(`data-${v}`,""));continue}const b=`attr:${v}`;if(v==="class"){if(!m)continue;for(const C of m)_&&l(p,`${b}:${C}`,()=>g.classList.remove(C)),!g.classList.contains(C)&&g.classList.add(C)}else if(v==="style"){if(!m)continue;for(const[C,E]of m)l(p,`${b}:${C}`,()=>{g.style.removeProperty(C)}),g.style.setProperty(C,E)}else m!==!1&&m!==null&&(g.getAttribute(v)!==m&&g.setAttribute(v,m===!0?"":String(m)),_&&l(p,b,()=>g.removeAttribute(v)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const p of d){const{tag:g,shouldRender:y,id:_}=p;if(y){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(_),p.$el?u(p):wc.has(g.tag)&&c.push(p)}}for(const p of c){const g=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),u(p),f[g]=f[g]||n.createDocumentFragment(),f[g].appendChild(p.$el)}for(const p of d)await e.hooks.callHook("dom:renderTag",p,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 p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function _w(e={}){var r,s,o;const t=((r=e.domOptions)==null?void 0:r.render)||al;e.document=e.document||(typeof window<"u"?document:void 0);const n=((o=(s=e.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return q_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function ww(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function bw(e={}){const t=_w({domOptions:{render:ww(()=>al(t),n=>setTimeout(n,0))},...e});return t.install=rw(t),t}const vw={disableDefaults:!0,disableCapoSorting:!1,plugins:[Y_,Z_,tw,X_]},Cw=It({name:"nuxt:head",enforce:"pre",setup(e){const t=bw(vw);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await al(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)}}}),xw=async e=>{let t,n;const r=([t,n]=hd(()=>il({path:e.path})),t=await t,n(),t);if(r.redirect)return mn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},Sw=[xw];function _i(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=ld({pathname:e.path||"",search:nd(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:Do(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const kw=It({name:"nuxt:router",enforce:"pre",setup(e){const t=ky(window.location.pathname,pr().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=pr().app.baseURL,i=dn(_i(t));async function a(f,d){try{const h=_i(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"]({},"",Bn(o,h.fullPath)),e.isHydrating||await e.runWithContext(v_);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:Se(()=>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:_i,addRoute:(f,d)=>{n.push(d)},getRoutes:()=>n,hasRoute:f=>n.some(d=>d.name===f),removeRoute:f=>{const d=n.findIndex(h=>h.name===f);d!==-1&&n.splice(d,1)}};e.vueApp.component("RouterLink",bt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:d})=>{const h=()=>a(f.to,f.replace);return()=>{var g;const p=u.resolve(f.to);return f.custom?(g=d.default)==null?void 0:g.call(d,{href:f.to,navigate:h,route:p}):Ys("a",{href:f.to,onClick:y=>(y.preventDefault(),h())},d)}}})),window.addEventListener("popstate",f=>{const d=f.target.location;u.replace(d.href.replace(d.origin,""))}),e._route=i,e._middleware||(e._middleware={global:[],named:{}});const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(f,d)=>{f.meta=dn(f.meta||{}),e.isHydrating&&c&&!Vt(f.meta.layout)&&(f.meta.layout=c),e._processingMiddleware=!0;{const h=new Set([...Sw,...e._middleware.global]);{const p=await e.runWithContext(()=>il({path:f.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const y=e._middleware.named[g];if(!y)return;p.appMiddleware[g]?h.add(y):h.delete(y)}}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),Ey(i.fullPath,t)||await e.runWithContext(()=>Cd(i.fullPath))}),{provide:{route:i,router:u}}}}),la=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Aw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Fo=e=>{const t=Pe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{la(()=>e())}):la(()=>e())},Ew=It({name:"nuxt:payload",setup(e){const t=new Set;Rt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await Ac(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]}}),Fo(()=>{var n;e.hooks.hook("link:prefetch",async r=>{const{hostname:s}=new URL(r,window.location.href);s===window.location.hostname&&await Ac(r).catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})}),((n=navigator.connection)==null?void 0:n.effectiveType)!=="slow-2g"&&setTimeout(Bo,1e3)})}}),Tw=It(()=>{const e=Rt();Fo(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),$w=It(e=>{let t;async function n(){const r=await Bo();t&&clearTimeout(t),t=setTimeout(n,gc);try{const s=await $fetch(nl("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}Fo(()=>{t=setTimeout(n,gc)})});function Rw(e={}){const t=e.path||window.location.pathname;let n={};try{n=Zs(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Pe().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Pw=It({name:"nuxt:chunk-reload",setup(e){const t=Rt(),n=pr(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const a="href"in o&&o.href[0]==="#"?n.app.baseURL+o.href:Bn(n.app.baseURL,o.fullPath);Rw({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Iw=It({name:"nuxt:global-components"}),Nw=It(()=>{}),Ow=["top","right","bottom","left"],Ec=["start","end"],Tc=Ow.reduce((e,t)=>e.concat(t,t+"-"+Ec[0],t+"-"+Ec[1]),[]),Kr=Math.min,Sn=Math.max,Mw={left:"right",right:"left",bottom:"top",top:"bottom"},Lw={start:"end",end:"start"};function ca(e,t,n){return Sn(e,Kr(t,n))}function Fn(e,t){return typeof e=="function"?e(t):e}function Pt(e){return e.split("-")[0]}function yt(e){return e.split("-")[1]}function $d(e){return e==="x"?"y":"x"}function ll(e){return e==="y"?"height":"width"}function jt(e){return["top","bottom"].includes(Pt(e))?"y":"x"}function cl(e){return $d(jt(e))}function Rd(e,t,n){n===void 0&&(n=!1);const r=yt(e),s=cl(e),o=ll(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=io(i)),[i,io(i)]}function Dw(e){const t=io(e);return[oo(e),t,oo(t)]}function oo(e){return e.replace(/start|end/g,t=>Lw[t])}function Hw(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function Bw(e,t,n,r){const s=yt(e);let o=Hw(Pt(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(oo)))),o}function io(e){return e.replace(/left|right|bottom|top/g,t=>Mw[t])}function Fw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pd(e){return typeof e!="number"?Fw(e):{top:e,right:e,bottom:e,left:e}}function Hr(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 $c(e,t,n){let{reference:r,floating:s}=e;const o=jt(t),i=cl(t),a=ll(i),l=Pt(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(yt(t)){case"start":h[i]-=d*(n&&u?-1:1);break;case"end":h[i]+=d*(n&&u?-1:1);break}return h}const jw=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}=$c(u,r,l),d=r,h={},p=0;for(let g=0;g<a.length;g++){const{name:y,fn:_}=a[g],{x:v,y:m,data:b,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=v??c,f=m??f,h={...h,[y]:{...h[y],...b}},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}=$c(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:s,middlewareData:h}};async function jo(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}=Fn(t,e),p=Pd(h),y=a[d?f==="floating"?"reference":"floating":f],_=Hr(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=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)),b=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=Hr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:m,strategy:l}):v);return{top:(_.top-C.top+p.top)/b.y,bottom:(C.bottom-_.bottom+p.bottom)/b.y,left:(_.left-C.left+p.left)/b.x,right:(C.right-_.right+p.right)/b.x}}const Uw=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}=Fn(e,t)||{};if(u==null)return{};const f=Pd(c),d={x:n,y:r},h=cl(s),p=ll(h),g=await i.getDimensions(u),y=h==="y",_=y?"top":"left",v=y?"bottom":"right",m=y?"clientHeight":"clientWidth",b=o.reference[p]+o.reference[h]-d[h]-o.floating[p],C=d[h]-o.reference[h],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let S=E?E[m]:0;(!S||!await(i.isElement==null?void 0:i.isElement(E)))&&(S=a.floating[m]||o.floating[p]);const M=b/2-C/2,F=S/2-g[p]/2-1,R=Kr(f[_],F),K=Kr(f[v],F),z=R,ee=S-g[p]-K,H=S/2-g[p]/2+M,X=ca(z,H,ee),L=!l.arrow&&yt(s)!=null&&H!==X&&o.reference[p]/2-(H<z?R:K)-g[p]/2<0,Y=L?H<z?H-z:H-ee:0;return{[h]:d[h]+Y,data:{[h]:X,centerOffset:H-X-Y,...L&&{alignmentOffset:Y}},reset:L}}});function Gw(e,t,n){return(e?[...n.filter(s=>yt(s)===e),...n.filter(s=>yt(s)!==e)]:n.filter(s=>Pt(s)===s)).filter(s=>e?yt(s)===e||(t?oo(s)!==s:!1):!0)}const Ww=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=Tc,autoAlignment:h=!0,...p}=Fn(e,t),g=f!==void 0||d===Tc?Gw(f||null,h,d):d,y=await jo(t,p),_=((n=i.autoPlacement)==null?void 0:n.index)||0,v=g[_];if(v==null)return{};const m=Rd(v,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==v)return{reset:{placement:g[0]}};const b=[y[Pt(v)],y[m[0]],y[m[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:b}],E=g[_+1];if(E)return{data:{index:_+1,overflows:C},reset:{placement:E}};const S=C.map(R=>{const K=yt(R.placement);return[R.placement,K&&c?R.overflows.slice(0,2).reduce((z,ee)=>z+ee,0):R.overflows[0],R.overflows]}).sort((R,K)=>R[1]-K[1]),F=((s=S.filter(R=>R[2].slice(0,yt(R[0])?2:3).every(K=>K<=0))[0])==null?void 0:s[0])||S[0][0];return F!==a?{data:{index:_+1,overflows:C},reset:{placement:F}}:{}}}},zw=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,...y}=Fn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=Pt(s),v=jt(a),m=Pt(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=d||(m||!g?[io(a)]:Dw(a)),E=p!=="none";!d&&E&&C.push(...Bw(a,g,p,b));const S=[a,...C],M=await jo(t,y),F=[];let R=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&F.push(M[_]),f){const H=Rd(s,i,b);F.push(M[H[0]],M[H[1]])}if(R=[...R,{placement:s,overflows:F}],!F.every(H=>H<=0)){var K,z;const H=(((K=o.flip)==null?void 0:K.index)||0)+1,X=S[H];if(X&&(!(f==="alignment"?v!==jt(X):!1)||R.every(W=>W.overflows[0]>0&&jt(W.placement)===v)))return{data:{index:H,overflows:R},reset:{placement:X}};let L=(z=R.filter(Y=>Y.overflows[0]<=0).sort((Y,W)=>Y.overflows[1]-W.overflows[1])[0])==null?void 0:z.placement;if(!L)switch(h){case"bestFit":{var ee;const Y=(ee=R.filter(W=>{if(E){const de=jt(W.placement);return de===v||de==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(de=>de>0).reduce((de,Un)=>de+Un,0)]).sort((W,de)=>W[1]-de[1])[0])==null?void 0:ee[0];Y&&(L=Y);break}case"initialPlacement":L=a;break}if(s!==L)return{reset:{placement:L}}}return{}}}};async function Vw(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Pt(n),a=yt(n),l=jt(n)==="y",u=["left","top"].includes(i)?-1:1,c=o&&l?-1:1,f=Fn(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 qw=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 Vw(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}}}}},Kw=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:y=>{let{x:_,y:v}=y;return{x:_,y:v}}},...l}=Fn(e,t),u={x:n,y:r},c=await jo(t,l),f=jt(Pt(s)),d=$d(f);let h=u[d],p=u[f];if(o){const y=d==="y"?"top":"left",_=d==="y"?"bottom":"right",v=h+c[y],m=h-c[_];h=ca(v,h,m)}if(i){const y=f==="y"?"top":"left",_=f==="y"?"bottom":"right",v=p+c[y],m=p-c[_];p=ca(v,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}}}}}},Jw=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}=Fn(e,t),c=await jo(t,u),f=Pt(s),d=yt(s),h=jt(s)==="y",{width:p,height:g}=o.floating;let y,_;f==="top"||f==="bottom"?(y=f,_=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,y=d==="end"?"top":"bottom");const v=g-c.top-c.bottom,m=p-c.left-c.right,b=Kr(g-c[y],v),C=Kr(p-c[_],m),E=!t.middlewareData.shift;let S=b,M=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=v),E&&!d){const R=Sn(c.left,0),K=Sn(c.right,0),z=Sn(c.top,0),ee=Sn(c.bottom,0);h?M=p-2*(R!==0||K!==0?R+K:Sn(c.left,c.right)):S=g-2*(z!==0||ee!==0?z+ee:Sn(c.top,c.bottom))}await l({...t,availableWidth:M,availableHeight:S});const F=await i.getDimensions(a.floating);return p!==F.width||g!==F.height?{reset:{rects:!0}}:{}}}};function at(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Et(e){return at(e).getComputedStyle(e)}const Rc=Math.min,Br=Math.max,ao=Math.round;function Id(e){const t=Et(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=ao(n)!==s||ao(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function pn(e){return Od(e)?(e.nodeName||"").toLowerCase():""}let vs;function Nd(){if(vs)return vs;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(vs=e.brands.map(t=>t.brand+"/"+t.version).join(" "),vs):navigator.userAgent}function Tt(e){return e instanceof at(e).HTMLElement}function ln(e){return e instanceof at(e).Element}function Od(e){return e instanceof at(e).Node}function Pc(e){return typeof ShadowRoot>"u"?!1:e instanceof at(e).ShadowRoot||e instanceof ShadowRoot}function Uo(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Xw(e){return["table","td","th"].includes(pn(e))}function ua(e){const t=/firefox/i.test(Nd()),n=Et(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 Md(){return!/^((?!chrome|android).)*safari/i.test(Nd())}function ul(e){return["html","body","#document"].includes(pn(e))}function Ld(e){return ln(e)?e:e.contextElement}const Dd={x:1,y:1};function ar(e){const t=Ld(e);if(!Tt(t))return Dd;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Id(t);let i=(o?ao(n.width):n.width)/r,a=(o?ao(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function Jr(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Ld(e);let l=Dd;t&&(r?ln(r)&&(l=ar(r)):l=ar(e));const u=a?at(a):window,c=!Md()&&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=at(a),y=r&&ln(r)?at(r):r;let _=g.frameElement;for(;_&&r&&y!==g;){const v=ar(_),m=_.getBoundingClientRect(),b=getComputedStyle(_);m.x+=(_.clientLeft+parseFloat(b.paddingLeft))*v.x,m.y+=(_.clientTop+parseFloat(b.paddingTop))*v.y,f*=v.x,d*=v.y,h*=v.x,p*=v.y,f+=m.x,d+=m.y,_=at(_).frameElement}}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function cn(e){return((Od(e)?e.ownerDocument:e.document)||window.document).documentElement}function Go(e){return ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Hd(e){return Jr(cn(e)).left+Go(e).scrollLeft}function Xr(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pc(e)&&e.host||cn(e);return Pc(t)?t.host:t}function Bd(e){const t=Xr(e);return ul(t)?t.ownerDocument.body:Tt(t)&&Uo(t)?t:Bd(t)}function lo(e,t){var n;t===void 0&&(t=[]);const r=Bd(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=at(r);return s?t.concat(o,o.visualViewport||[],Uo(r)?r:[]):t.concat(r,lo(r))}function Ic(e,t,n){return t==="viewport"?Hr(function(r,s){const o=at(r),i=cn(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=Md();(d||!d&&s==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:l,height:u,x:c,y:f}}(e,n)):ln(t)?Hr(function(r,s){const o=Jr(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=Tt(r)?ar(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)):Hr(function(r){const s=cn(r),o=Go(r),i=r.ownerDocument.body,a=Br(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=Br(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let u=-o.scrollLeft+Hd(r);const c=-o.scrollTop;return Et(i).direction==="rtl"&&(u+=Br(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:c}}(cn(e)))}function Nc(e){return Tt(e)&&Et(e).position!=="fixed"?e.offsetParent:null}function Oc(e){const t=at(e);let n=Nc(e);for(;n&&Xw(n)&&Et(n).position==="static";)n=Nc(n);return n&&(pn(n)==="html"||pn(n)==="body"&&Et(n).position==="static"&&!ua(n))?t:n||function(r){let s=Xr(r);for(;Tt(s)&&!ul(s);){if(ua(s))return s;s=Xr(s)}return null}(e)||t}function Yw(e,t,n){const r=Tt(t),s=cn(t),o=Jr(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((pn(t)!=="body"||Uo(s))&&(i=Go(t)),Tt(t)){const l=Jr(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Hd(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const Zw={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=lo(u).filter(y=>ln(y)&&pn(y)!=="body"),h=null;const p=Et(u).position==="fixed";let g=p?Xr(u):u;for(;ln(g)&&!ul(g);){const y=Et(g),_=ua(g);(p?_||h:_||y.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=y:d=d.filter(v=>v!==g),g=Xr(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=Ic(t,c,s);return u.top=Br(f.top,u.top),u.right=Rc(f.right,u.right),u.bottom=Rc(f.bottom,u.bottom),u.left=Br(f.left,u.left),u},Ic(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=Tt(n),o=cn(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")&&((pn(n)!=="body"||Uo(o))&&(i=Go(n)),Tt(n))){const u=Jr(n);a=ar(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:ln,getDimensions:function(e){return Tt(e)?Id(e):e.getBoundingClientRect()},getOffsetParent:Oc,getDocumentElement:cn,getScale:ar,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||Oc,o=this.getDimensions;return{reference:Yw(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Et(e).direction==="rtl"},Qw=(e,t,n)=>{const r=new Map,s={platform:Zw,...n},o={...s.platform,_c:r};return jw(e,t,{...s,platform:o})};function Fd(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Fd(e[n],t[n]):e[n]=t[n])}const _t={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 Yr(e,t){let n=_t.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=_t.themes[n.$extend]||{}:(n=null,r=_t[t]):n=null;while(n);return r}function eb(e){const t=[e];let n=_t.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=_t.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function Mc(e){const t=[e];let n=_t.themes[e]||{};do n.$extend?(t.push(n.$extend),n=_t.themes[n.$extend]||{}):n=null;while(n);return t}let gr=!1;if(typeof window<"u"){gr=!1;try{const e=Object.defineProperty({},"passive",{get(){gr=!0}});window.addEventListener("test",null,e)}catch{}}let jd=!1;typeof window<"u"&&typeof navigator<"u"&&(jd=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ud=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Lc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Dc={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Hc(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function wi(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const pt=[];let vn=null;const Bc={};function Fc(e){let t=Bc[e];return t||(t=Bc[e]=[]),t}let fa=function(){};typeof window<"u"&&(fa=window.Element);function ce(e){return function(t){return Yr(t.theme,e)}}const bi="__floating-vue__popper",Gd=()=>bt({name:"VPopper",provide(){return{[bi]:{parentPopper:this}}},inject:{[bi]:{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:ce("disabled")},positioningDisabled:{type:Boolean,default:ce("positioningDisabled")},placement:{type:String,default:ce("placement"),validator:e=>Ud.includes(e)},delay:{type:[String,Number,Object],default:ce("delay")},distance:{type:[Number,String],default:ce("distance")},skidding:{type:[Number,String],default:ce("skidding")},triggers:{type:Array,default:ce("triggers")},showTriggers:{type:[Array,Function],default:ce("showTriggers")},hideTriggers:{type:[Array,Function],default:ce("hideTriggers")},popperTriggers:{type:Array,default:ce("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ce("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ce("popperHideTriggers")},container:{type:[String,Object,fa,Boolean],default:ce("container")},boundary:{type:[String,fa],default:ce("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ce("strategy")},autoHide:{type:[Boolean,Function],default:ce("autoHide")},handleResize:{type:Boolean,default:ce("handleResize")},instantMove:{type:Boolean,default:ce("instantMove")},eagerMount:{type:Boolean,default:ce("eagerMount")},popperClass:{type:[String,Array,Object],default:ce("popperClass")},computeTransformOrigin:{type:Boolean,default:ce("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ce("autoMinSize")},autoSize:{type:[Boolean,String],default:ce("autoSize")},autoMaxSize:{type:Boolean,default:ce("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ce("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ce("preventOverflow")},overflowPadding:{type:[Number,String],default:ce("overflowPadding")},arrowPadding:{type:[Number,String],default:ce("arrowPadding")},arrowOverflow:{type:Boolean,default:ce("arrowOverflow")},flip:{type:Boolean,default:ce("flip")},shift:{type:Boolean,default:ce("shift")},shiftCrossAxis:{type:Boolean,default:ce("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ce("noAutoFocus")},disposeTimeout:{type:Number,default:ce("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[bi])==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(qw({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Ww({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Kw({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(zw({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Uw({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(Jw({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 Qw(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),vn&&this.instantMove&&vn.instantMove&&vn!==this.parentPopper){vn.$_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&&(vn=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 wi(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...lo(this.$_referenceNode),...lo(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<pt.length;n++)t=pt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}pt.push(this),document.body.classList.add("v-popper--some-open");for(const t of Mc(this.theme))Fc(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 wi(),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,Hc(pt,this),pt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Mc(this.theme)){const r=Fc(n);Hc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}vn===this&&(vn=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 wi(),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,Lc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Lc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Dc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Dc,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,gr?{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(Fr>=e.left&&Fr<=e.right&&jr>=e.top&&jr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Fr-Kt,r=jr-Jt,s=t.left+t.width/2-Kt+(t.top+t.height/2)-Jt+t.width+t.height,o=Kt+n*s,i=Jt+r*s;return Cs(Kt,Jt,o,i,t.left,t.top,t.left,t.bottom)||Cs(Kt,Jt,o,i,t.left,t.top,t.right,t.top)||Cs(Kt,Jt,o,i,t.right,t.top,t.right,t.bottom)||Cs(Kt,Jt,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(jd){const e=gr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>jc(t,!0),e),document.addEventListener("touchend",t=>Uc(t,!0),e)}else window.addEventListener("mousedown",e=>jc(e,!1),!0),window.addEventListener("click",e=>Uc(e,!1),!0);window.addEventListener("resize",nb)}function jc(e,t){if(_t.autoHideOnMousedown)Wd(e,t);else for(let n=0;n<pt.length;n++){const r=pt[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Uc(e,t){_t.autoHideOnMousedown||Wd(e,t)}function Wd(e,t){const n={};for(let r=pt.length-1;r>=0;r--){const s=pt[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Gc(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&&Gc(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Gc(e,t,n){return n.closeAllPopover||n.closePopover&&t||tb(e,n)&&!t}function tb(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function nb(){for(let e=0;e<pt.length;e++)pt[e].$_computePosition()}let Kt=0,Jt=0,Fr=0,jr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Kt=Fr,Jt=jr,Fr=e.clientX,jr=e.clientY},gr?{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 rb={extends:Gd()},Wo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function sb(e,t,n,r,s,o){return G(),te("div",{ref:"reference",class:ke(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Je(e.$slots,"default",Uu(Qa(e.slotData)))],2)}const ob=Wo(rb,[["render",sb]]);function ib(){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 Ds;function da(){da.init||(da.init=!0,Ds=ib()!==-1)}var zo={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){da(),_r(()=>{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",Ds&&this.$el.appendChild(e),e.data="about:blank",Ds||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&&(!Ds&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ab=_g();mg("data-v-b329ee4c");const lb={class:"resize-observer",tabindex:"-1"};yg();const cb=ab((e,t,n,r,s,o)=>(G(),be("div",lb)));zo.render=cb;zo.__scopeId="data-v-b329ee4c";zo.__file="src/components/ResizeObserver.vue";const zd=(e="theme")=>({computed:{themeClass(){return eb(this[e])}}}),ub=bt({name:"VPopperContent",components:{ResizeObserver:zo},mixins:[zd()],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}}}),fb=["id","aria-hidden","tabindex","data-popper-placement"],db={ref:"inner",class:"v-popper__inner"},hb=O("div",{class:"v-popper__arrow-outer"},null,-1),pb=O("div",{class:"v-popper__arrow-inner"},null,-1),gb=[hb,pb];function mb(e,t,n,r,s,o){const i=hn("ResizeObserver");return G(),te("div",{id:e.popperId,ref:"popover",class:ke(["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:Rn(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]=Jm(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[O("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),O("div",{class:"v-popper__wrapper",style:Rn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[O("div",db,[e.mounted?(G(),te(we,{key:0},[O("div",null,[Je(e.$slots,"default")]),e.handleResize?(G(),be(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):De("",!0)],64)):De("",!0)],512),O("div",{ref:"arrow",class:"v-popper__arrow-container",style:Rn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},gb,4)],4)],46,fb)}const Vd=Wo(ub,[["render",mb]]),qd={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 ha=function(){};typeof window<"u"&&(ha=window.Element);const yb=bt({name:"VPopperWrapper",components:{Popper:ob,PopperContent:Vd},mixins:[qd,zd("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,ha,Boolean],default:void 0},boundary:{type:[String,ha],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 _b(e,t,n,r,s,o){const i=hn("PopperContent"),a=hn("Popper");return G(),be(a,Mo({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:oe(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,show:h,hide:p,handleResize:g,onResize:y,classes:_,result:v})=>[Je(e.$slots,"default",{shown:u,show:h,hide:p}),V(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:c,"skip-transition":f,"auto-hide":d,"handle-resize":g,classes:_,result:v,onHide:p,onResize:y},{default:oe(()=>[Je(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 fl=Wo(yb,[["render",_b]]),wb={...fl,name:"VDropdown",vPopperTheme:"dropdown"},bb={...fl,name:"VMenu",vPopperTheme:"menu"},vb={...fl,name:"VTooltip",vPopperTheme:"tooltip"},Cb=bt({name:"VTooltipDirective",components:{Popper:Gd(),PopperContent:Vd},mixins:[qd],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Yr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Yr(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}}}),xb=["innerHTML"],Sb=["textContent"];function kb(e,t,n,r,s,o){const i=hn("PopperContent"),a=hn("Popper");return G(),be(a,Mo({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:oe(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,hide:h,handleResize:p,onResize:g,classes:y,result:_})=>[V(i,{ref:"popperContent",class:ke({"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:y,result:_,onHide:h,onResize:g},{default:oe(()=>[e.html?(G(),te("div",{key:0,innerHTML:e.finalContent},null,8,xb)):(G(),te("div",{key:1,textContent:Me(e.finalContent)},null,8,Sb))]),_: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 Ab=Wo(Cb,[["render",kb]]),Kd="v-popper--has-tooltip";function Eb(e,t){let n=e.placement;if(!n&&t)for(const r of Ud)t[r]&&(n=r);return n||(n=Yr(e.theme||"tooltip","placement")),n}function Jd(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=Eb(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let vi,Zr,Tb=0;function $b(){if(vi)return;Zr=Ee([]),vi=Qf({name:"VTooltipDirectiveApp",setup(){return{directives:Zr}},render(){return this.directives.map(t=>Ys(Ab,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),vi.mount(e)}function Rb(e,t,n){$b();const r=Ee(Jd(e,t,n)),s=Ee(!1),o={id:Tb++,options:r,shown:s};return Zr.value.push(o),e.classList&&e.classList.add(Kd),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Xd(e){if(e.$_popper){const t=Zr.value.indexOf(e.$_popper.item);t!==-1&&Zr.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Kd)}function Wc(e,{value:t,modifiers:n}){const r=Jd(e,t,n);if(!r.content||Yr(r.theme||"tooltip","disabled"))Xd(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=Rb(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Pb={beforeMount:Wc,updated:Wc,beforeUnmount(e){Xd(e)}};function zc(e){e.addEventListener("mousedown",co),e.addEventListener("click",co),e.addEventListener("touchstart",Yd,gr?{passive:!0}:!1)}function Vc(e){e.removeEventListener("mousedown",co),e.removeEventListener("click",co),e.removeEventListener("touchstart",Yd),e.removeEventListener("touchend",Zd),e.removeEventListener("touchcancel",Qd)}function co(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Yd(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",Zd),t.addEventListener("touchcancel",Qd)}}function Zd(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 Qd(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const Ib={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&zc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?zc(e):Vc(e))},beforeUnmount(e){Vc(e)}};function Nb(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Fd(_t,t),e.directive("tooltip",Pb),e.directive("close-popper",Ib),e.component("VTooltip",vb),e.component("VDropdown",wb),e.component("VMenu",bb))}const Ob={version:"5.2.2",install:Nb,options:_t},Mb=It(e=>{e.vueApp.use(Ob)}),Lb=[yw,Cw,kw,Ew,Tw,$w,Pw,Iw,Nw,Mb],dl={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(G(),te("div",{class:ke(["n-icon",e.icon])},null,2))}},Vo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Db={},Hb={class:"n-badge"};function Bb(e,t){return G(),te("span",Hb,[Je(e.$slots,"default")])}const eh=Vo(Db,[["render",Bb]]);async function th(e,t=Rt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const s=t._preloadPromises||(t._preloadPromises=[]);if(s.length>4)return Promise.all(s).then(()=>th(e,t));t._routePreloaded.add(n);const o=r.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of o){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}const Fb=(...e)=>e.find(t=>t!==void 0);function jb(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 xs(o,l);const u="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:xs(u,l)}}function s(o){const i=Rt(),a=pr(),l=Se(()=>!!o.target&&o.target!=="_self"),u=Se(()=>{const y=o.to||o.href||"";return typeof y=="string"&&mn(y,{acceptRelative:!0})}),c=hn("RouterLink"),f=c&&typeof c!="string"?c.useLink:void 0,d=Se(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||u.value}),h=Se(()=>{const y=o.to||o.href||"";return d.value?y:r(y,i.resolve,o.trailingSlash)}),p=d.value||f==null?void 0:f({...o,to:h}),g=Se(()=>{var _;const y=o.trailingSlash??e.trailingSlash;if(!h.value||u.value||n(h.value))return h.value;if(d.value){const v=typeof h.value=="object"&&"path"in h.value?sa(h.value):h.value,m=typeof v=="object"?i.resolve(v).href:v;return xs(m,y)}return typeof h.value=="object"?((_=i.resolve(h.value))==null?void 0:_.href)??null:xs(Bn(a.app.baseURL,h.value),y)});return{to:h,hasTarget:l,isAbsoluteUrl:u,isExternal:d,href:g,isActive:(p==null?void 0:p.isActive)??Se(()=>h.value===i.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??Se(()=>h.value===i.currentRoute.value.path),route:(p==null?void 0:p.route)??Se(()=>i.resolve(h.value)),async navigate(y){await Cd(g.value,{replace:o.replace,external:d.value||l.value})}}}return bt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},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=Rt(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=s(o),p=Ws(!1),g=Ee(null),y=m=>{var b;g.value=o.custom?(b=m==null?void 0:m.$el)==null?void 0:b.nextElementSibling:m==null?void 0:m.$el};function _(m){var b,C;return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:((b=o.prefetchOn)==null?void 0:b[m])??((C=e.prefetchOn)==null?void 0:C[m]))&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!zb()}async function v(m=Pe()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:f.value?sa(l.value):a.resolve(l.value).fullPath,C=f.value?new URL(b,window.location.href).href:b;await Promise.all([m.hooks.callHook("link:prefetch",C).catch(()=>{}),!f.value&&!d.value&&th(l.value,a).catch(()=>{})])}if(_("visibility")){const m=Pe();let b,C=null;Ka(()=>{const E=Gb();Fo(()=>{b=la(()=>{var S;(S=g==null?void 0:g.value)!=null&&S.tagName&&(C=E.observe(g.value,async()=>{C==null||C(),C=null,await v(m)}))})})}),Ja(()=>{b&&Aw(b),C==null||C(),C=null})}return()=>{var C;if(!f.value&&!d.value&&!n(l.value)){const E={ref:y,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(_("interaction")&&(E.onPointerenter=v.bind(null,void 0),E.onFocus=v.bind(null,void 0)),p.value&&(E.class=o.prefetchedClass||e.prefetchedClass),E.rel=o.rel||void 0),Ys(hn("RouterLink"),E,i.default)}const m=o.target||null,b=Fb(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:v,get route(){if(!u.value)return;const E=new URL(u.value,window.location.href);return{path:E.pathname,fullPath:E.pathname,get query(){return Do(E.search)},hash:E.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:b,target:m,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Ys("a",{ref:g,href:u.value||null,rel:b,target:m},(C=i.default)==null?void 0:C.call(i))}}})}const Ub=jb(n_);function xs(e,t){const n=t==="append"?eo:Ho;return mn(e)&&!e.startsWith("http")?e:n(e,!0)}function Gb(){const e=Pe();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||(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==null||t.unobserve(o),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:r}}const Wb=/2g/;function zb(){const e=navigator.connection;return!!(e&&(e.saveData||Wb.test(e.effectiveType)))}const Vb={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},nh={__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=Se(()=>t.href||t.to);return(r,s)=>{const o=Ub;return G(),be(o,Mo(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:oe(()=>[Je(r.$slots,"default"),n.value&&e.target==="_blank"?(G(),te("div",Vb)):De("",!0)]),_:3},16,["class"])}}},qb={},Kb={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jb(e,t){return G(),te("svg",Kb,t[0]||(t[0]=[mm('<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 Xb=Vo(qb,[["render",Jb]]),Yb={},Zb={class:"n-loading n-panel-grids-center"},Qb={class:"flex flex-col animate-pulse items-center text-lg"};function e0(e,t){return G(),te("div",Zb,[O("div",Qb,[t[1]||(t[1]=O("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),Je(e.$slots,"default",{},()=>[t[0]||(t[0]=ae(" Loading... "))])])])}const t0=Vo(Yb,[["render",e0]]);let Ne=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function n0(e){return hl(e)}function hl(e){return Array.isArray(e)?r0(e):e instanceof RegExp?e:typeof e=="object"?s0(e):e}function r0(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=hl(e[n]);return t}function s0(e){let t={};for(let n in e)t[n]=hl(e[n]);return t}function rh(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function sh(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?sh(e.substring(0,e.length-1)):e.substr(~t+1)}var Ci=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ss=class{static hasCaptures(e){return e===null?!1:(Ci.lastIndex=0,Ci.test(e))}static replaceCaptures(e,t,n){return e.replace(Ci,(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 oh(e,t){return e<t?-1:e>t?1:0}function ih(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=oh(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function qc(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 ah(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var lh=class{constructor(e){k(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},uo=class{constructor(e,t,n){k(this,"_cachedMatchRoot",new lh(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(a0(e),t)}static createFromParsedTheme(e,t){return c0(e,t)}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=>o0(e.parent,s.parentScopes));return r?new ch(r.fontStyle,r.foreground,r.background):null}},xi=class Hs{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Hs(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Hs(n,t[r]);return n}push(t){return new Hs(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 o0(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&&!i0(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function i0(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var ch=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function a0(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"&&qc(i.settings.foreground)&&(u=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&qc(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],y=null;p.length>1&&(y=p.slice(0,p.length-1),y.reverse()),n[r++]=new l0(g,y,s,l,u,c)}}return n}var l0=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}},Ge=(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))(Ge||{});function c0(e,t){e.sort((l,u)=>{let c=oh(l.scope,u.scope);return c!==0||(c=ih(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 u0(t),i=new ch(n,o.getId(r),o.getId(s)),a=new d0(new pa(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 uo(o,i,a)}var u0=class{constructor(e){k(this,"_isFrozen");k(this,"_lastColorId");k(this,"_id2color");k(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},f0=Object.freeze([]),pa=class uh{constructor(t,n,r,s,o){k(this,"scopeDepth");k(this,"parentScopes");k(this,"fontStyle");k(this,"foreground");k(this,"background");this.scopeDepth=t,this.parentScopes=n||f0,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new uh(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)}},d0=class ga{constructor(t,n=[],r={}){k(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}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(ga._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 ga(this._mainRule.clone(),pa.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(ih(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 pa(t,n,r,s,o))}},mr=class rt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=rt.getLanguageId(t),r=rt.getTokenType(t),s=rt.getFontStyle(t),o=rt.getForeground(t),i=rt.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=rt.getLanguageId(t),u=rt.getTokenType(t),c=rt.containsBalancedBrackets(t)?1:0,f=rt.getFontStyle(t),d=rt.getForeground(t),h=rt.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 fo(e,t){const n=[],r=h0(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(Kc(s)){const l=[];do l.push(s),s=r.next();while(Kc(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 Kc(e){return!!e&&!!e.match(/[\w\.:]+/)}function h0(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 fh(e){typeof e.dispose=="function"&&e.dispose()}var Qr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},p0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},g0=class{constructor(){k(this,"_references",[]);k(this,"_seenReferenceKeys",new Set);k(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},m0=class{constructor(e,t){k(this,"seenFullScopeRequests",new Set);k(this,"seenPartialScopeRequests",new Set);k(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Qr(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new g0;for(const n of e)y0(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Qr){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 y0(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 Qr?Bs({baseGrammar:o,selfGrammar:s},r):ma(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 Qr(a))}function ma(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];ho([r],t,n)}}function Bs(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ho(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ho(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ho(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?rh({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ho(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=dh(o);switch(i.kind){case 0:Bs({...t,selfGrammar:t.baseGrammar},n);break;case 1:Bs(t,n);break;case 2:ma(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?ma(i.ruleName,l,n):Bs(l,n)}else i.kind===4?n.add(new p0(i.scopeName,i.ruleName)):n.add(new Qr(i.scopeName));break}}}var _0=class{constructor(){k(this,"kind",0)}},w0=class{constructor(){k(this,"kind",1)}},b0=class{constructor(e){k(this,"kind",2);this.ruleName=e}},v0=class{constructor(e){k(this,"kind",3);this.scopeName=e}},C0=class{constructor(e,t){k(this,"kind",4);this.scopeName=e,this.ruleName=t}};function dh(e){if(e==="$base")return new _0;if(e==="$self")return new w0;const t=e.indexOf("#");if(t===-1)return new v0(e);if(t===0)return new b0(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new C0(n,r)}}var x0=/\\(\d+)/,Jc=/\\(\d+)/g,S0=-1,hh=-2;var cs=class{constructor(e,t,n,r){k(this,"$location");k(this,"id");k(this,"_nameIsCapturing");k(this,"_name");k(this,"_contentNameIsCapturing");k(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Ss.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Ss.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${sh(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:Ss.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ss.replaceCaptures(this._contentName,e,t)}},k0=class extends cs{constructor(t,n,r,s,o){super(t,n,r,s);k(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,s){throw new Error("Not supported!")}},A0=class extends cs{constructor(t,n,r,s,o){super(t,n,r,null);k(this,"_match");k(this,"captures");k(this,"_cachedCompiledPatterns");this._match=new es(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ts,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Xc=class extends cs{constructor(t,n,r,s,o){super(t,n,r,s);k(this,"hasMissingPatterns");k(this,"patterns");k(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ts,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ya=class extends cs{constructor(t,n,r,s,o,i,a,l,u,c){super(t,n,r,s);k(this,"_begin");k(this,"beginCaptures");k(this,"_end");k(this,"endHasBackReferences");k(this,"endCaptures");k(this,"applyEndPatternLast");k(this,"hasMissingPatterns");k(this,"patterns");k(this,"_cachedCompiledPatterns");this._begin=new es(o,this.id),this.beginCaptures=i,this._end=new es(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ts;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},po=class extends cs{constructor(t,n,r,s,o,i,a,l,u){super(t,n,r,s);k(this,"_begin");k(this,"beginCaptures");k(this,"whileCaptures");k(this,"_while");k(this,"whileHasBackReferences");k(this,"hasMissingPatterns");k(this,"patterns");k(this,"_cachedCompiledPatterns");k(this,"_cachedCompiledWhilePatterns");this._begin=new es(o,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new es(a,hh),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ts;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ts,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},ph=class Be{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new k0(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new A0(t.$vscodeTextmateLocation,t.id,t.name,t.match,Be._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=rh({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Xc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Be._compilePatterns(o,n,r))}return t.while?new po(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Be._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Be._compileCaptures(t.whileCaptures||t.captures,n,r),Be._compilePatterns(t.patterns,n,r)):new ya(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Be._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Be._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Be._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=Be.getCompiledRuleId(t[i],n,r)),s[a]=Be.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=dh(a.include);switch(u.kind){case 0:case 1:l=Be.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=Be.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=Be.getCompiledRuleId(p,n,h.repository))}else l=Be.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=Be.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Xc||u instanceof ya||u instanceof po)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},es=class gh{constructor(t,n){k(this,"source");k(this,"ruleId");k(this,"hasAnchor");k(this,"hasBackReferences");k(this,"_anchorCache");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=x0.test(this.source):this.hasBackReferences=!1}clone(){return new gh(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 Jc.lastIndex=0,this.source.replace(Jc,(s,o)=>ah(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}},ts=class{constructor(){k(this,"_items");k(this,"_hasAnchors");k(this,"_cached");k(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Yc(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 Yc(e,r,this._items.map(s=>s.ruleId))}},Yc=class{constructor(e,t,n){k(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
20
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Si=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Ft,E0=(Ft=class{constructor(t,n){k(this,"_defaultAttributes");k(this,"_embeddedLanguagesMatcher");k(this,"_getBasicScopeAttributes",new lh(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Si(n,r)}));this._defaultAttributes=new Si(t,8),this._embeddedLanguagesMatcher=new T0(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ft._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ft.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!")}},k(Ft,"_NULL_SCOPE_METADATA",new Si(0,0)),k(Ft,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Ft),T0=class{constructor(e){k(this,"values");k(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>ah(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])}},Zc=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function mh(e,t,n,r,s,o,i,a){const l=t.content.length;let u=!1,c=-1;if(i){const h=$0(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 Zc(s,!0);d()}return new Zc(s,!1);function d(){const h=R0(e,t,n,r,s,c);if(!h){o.produce(s,l),u=!0;return}const p=h.captureIndices,g=h.matchedRuleId,y=p&&p.length>0?p[0].end>r:!1;if(g===S0){const _=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),Rr(e,t,n,s,o,_.endCaptures,p),o.produce(s,p[0].end);const v=s;if(s=s.parent,c=v.getAnchorPos(),!y&&v.getEnterPos()===r){s=v,o.produce(s,l),u=!0;return}}else{const _=e.getRule(g);o.produce(s,p[0].start);const v=s,m=_.getName(t.content,p),b=s.contentNameScopesList.pushAttributed(m,e);if(s=s.push(g,r,c,p[0].end===l,null,b,b),_ instanceof ya){const C=_;Rr(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const E=C.getContentName(t.content,p),S=b.pushAttributed(E,e);if(s=s.withContentNameScopesList(S),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(_ instanceof po){const C=_;Rr(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const E=C.getContentName(t.content,p),S=b.pushAttributed(E,e);if(s=s.withContentNameScopesList(S),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(Rr(e,t,n,s,o,_.captures,p),o.produce(s,p[0].end),s=s.pop(),!y){s=s.safePop(),o.produce(s,l),u=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function $0(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 po&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=N0(l.rule,e,l.stack.endRule,n,r===i),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==hh){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),Rr(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 R0(e,t,n,r,s,o){const i=P0(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=I0(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 P0(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=yh(i,e,s.endRule,n,r===o),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function I0(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:y,findOptions:_}=yh(g,t,null,r,s===i),v=y.findNextMatchSync(n,s,_);if(!v)continue;const m=v.captureIndices[0].start;if(!(m>=a)&&(a=m,l=v.captureIndices,u=v.ruleId,c=p.priority,a===s))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function yh(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function N0(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function Rr(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),y=r.contentNameScopesList.pushAttributed(g,e),_=d.getContentName(a,i),v=y.pushAttributed(_,e),m=r.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,y,v),b=e.createOnigString(a.substring(0,h.end));mh(e,b,n&&h.start===0,h.start,m,s,!1,0),fh(b);continue}const p=d.getName(a,i);if(p!==null){const y=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new O0(y,h.end))}}for(;u.length>0;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var O0=class{constructor(e,t){k(this,"scopes");k(this,"endPos");this.scopes=e,this.endPos=t}};function M0(e,t,n,r,s,o,i,a){return new D0(e,t,n,r,s,o,i,a)}function Qc(e,t,n,r,s){const o=fo(t,go),i=ph.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 go(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(L0(t[s],r))return n=s+1,!0;return!1})}function L0(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 D0=class{constructor(e,t,n,r,s,o,i,a){k(this,"_rootId");k(this,"_lastRuleId");k(this,"_ruleId2desc");k(this,"_includedGrammars");k(this,"_grammarRepository");k(this,"_grammar");k(this,"_injections");k(this,"_basicScopeAttributesProvider");k(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new E0(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=eu(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const u=fo(l,go);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:s[l]})}}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)Qc(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&&Qc(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]=eu(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=ph.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===_a.NULL){s=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=mr.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=Ur.createRootAndLookUpScopeName(d,f,this):h=Ur.createRoot("unknown",f),t=new _a(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 B0(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=mh(this,o,s,0,t,a,!0,r);return fh(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eu(e,t){return e=n0(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 Ur=class xt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=xi.push(s,o.scopeNames),r=new xt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new xt(null,new xi(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new xi(null,t),i=r.themeProvider.themeMatch(o),a=xt.mergeAttributes(n,s,i);return new xt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return xt.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),mr.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return xt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=xt._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=xt.mergeAttributes(t.tokenAttributes,s,i);return new xt(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((s=r.parent)==null?void 0:s.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},ot,_a=(ot=class{constructor(t,n,r,s,o,i,a,l){k(this,"_stackElementBrand");k(this,"_enterPos");k(this,"_anchorPos");k(this,"depth");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}equals(t){return t===null?!1:ot._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Ur.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(){ot._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new ot(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){var r,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ot(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=Ur.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new ot(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ur.fromExtension(r,n.contentNameScopesList))}},k(ot,"NULL",new ot(null,0,0,0,!1,null,null,null)),ot),H0=class{constructor(e,t){k(this,"balancedBracketScopes");k(this,"unbalancedBracketScopes");k(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):fo(n,go).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>fo(n,go).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}},B0=class{constructor(e,t,n,r){k(this,"_emitBinaryTokens");k(this,"_lineText");k(this,"_tokens");k(this,"_binaryTokens");k(this,"_lastTokenEndIndex");k(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(e==null?void 0:e.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(i)&&(s=mr.set(s,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(s=mr.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},F0=class{constructor(e,t){k(this,"_grammars",new Map);k(this,"_rawGrammars",new Map);k(this,"_injectionGrammars",new Map);k(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,M0(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},j0=class{constructor(t){k(this,"_options");k(this,"_syncRegistry");k(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new F0(uo.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(uo.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 H0(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new m0(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)}},wa=_a.NULL;const U0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class us{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}us.prototype.normal={};us.prototype.property={};us.prototype.space=void 0;function _h(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new us(n,r,t)}function ba(e){return e.toLowerCase()}class Ye{constructor(t,n){this.attribute=n,this.property=t}}Ye.prototype.attribute="";Ye.prototype.booleanish=!1;Ye.prototype.boolean=!1;Ye.prototype.commaOrSpaceSeparated=!1;Ye.prototype.commaSeparated=!1;Ye.prototype.defined=!1;Ye.prototype.mustUseProperty=!1;Ye.prototype.number=!1;Ye.prototype.overloadedBoolean=!1;Ye.prototype.property="";Ye.prototype.spaceSeparated=!1;Ye.prototype.space=void 0;let G0=0;const se=jn(),xe=jn(),va=jn(),N=jn(),ye=jn(),lr=jn(),et=jn();function jn(){return 2**++G0}const Ca=Object.freeze(Object.defineProperty({__proto__:null,boolean:se,booleanish:xe,commaOrSpaceSeparated:et,commaSeparated:lr,number:N,overloadedBoolean:va,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),ki=Object.keys(Ca);class pl extends Ye{constructor(t,n,r,s){let o=-1;if(super(t,n),tu(this,"space",s),typeof r=="number")for(;++o<ki.length;){const i=ki[o];tu(this,ki[o],(r&Ca[i])===Ca[i])}}}pl.prototype.defined=!0;function tu(e,t,n){n&&(e[t]=n)}function wr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new pl(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ba(r)]=r,n[ba(o.attribute)]=r}return new us(t,n,e.space)}const wh=wr({properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:ye,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:N,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:ye,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:xe,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bh(e,t){return t in e?e[t]:t}function vh(e,t){return bh(e,t.toLowerCase())}const W0=wr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lr,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:ye,autoFocus:se,autoPlay:se,blocking:ye,capture:null,charSet:null,checked:se,cite:null,className:ye,cols:N,colSpan:null,content:null,contentEditable:xe,controls:se,controlsList:ye,coords:N|lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:va,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:ye,height:N,hidden:va,high:N,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:ye,itemRef:ye,itemScope:se,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:se,muted:se,name:null,nonce:null,noModule:se,noValidate:se,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:se,optimum:N,pattern:null,ping:ye,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:ye,required:se,reversed:se,rows:N,rowSpan:N,sandbox:ye,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:xe,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:se,declare:se,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:xe,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:se,disableRemotePlayback:se,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:vh}),z0=wr({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:et,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:ye,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:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,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:lr,g2:lr,glyphName:lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,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:N,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:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,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:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bh}),Ch=wr({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()}}),xh=wr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vh}),Sh=wr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),V0=/[A-Z]/g,nu=/-[a-z]/g,q0=/^data[-\w.:]+$/i;function K0(e,t){const n=ba(t);let r=t,s=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&q0.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(nu,X0);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!nu.test(o)){let i=o.replace(V0,J0);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=pl}return new s(r,t)}function J0(e){return"-"+e.toLowerCase()}function X0(e){return e.charAt(1).toUpperCase()}const Y0=_h([wh,W0,Ch,xh,Sh],"html"),kh=_h([wh,z0,Ch,xh,Sh],"svg"),ru={}.hasOwnProperty;function Z0(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&ru.call(s,e)){const l=String(s[e]);i=ru.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 Q0=/["&'<>`]/g,ev=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tv=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,nv=/[|\\{}()[\]^$+*?.]/g,su=new WeakMap;function rv(e,t){if(e=e.replace(t.subset?sv(t.subset):Q0,r),t.subset||t.escapeOnly)return e;return e.replace(ev,n).replace(tv,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 sv(e){let t=su.get(e);return t||(t=ov(e),su.set(e,t)),t}function ov(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(nv,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const iv=/[\dA-Fa-f]/;function av(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!iv.test(String.fromCharCode(t))?r:r+";"}const lv=/\d/;function cv(e,t,n){const r="&#"+String(e);return n&&t&&!lv.test(String.fromCharCode(t))?r:r+";"}const uv=["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"],Ai={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:"€"},fv=["cent","copy","divide","gt","lt","not","para","times"],Ah={}.hasOwnProperty,xa={};let ks;for(ks in Ai)Ah.call(Ai,ks)&&(xa[Ai[ks]]=ks);const dv=/[^\dA-Za-z]/;function hv(e,t,n,r){const s=String.fromCharCode(e);if(Ah.call(xa,s)){const o=xa[s],i="&"+o;return n&&uv.includes(o)&&!fv.includes(o)&&(!r||t&&t!==61&&dv.test(String.fromCharCode(t)))?i:i+";"}return""}function pv(e,t,n){let r=av(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=hv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=cv(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function cr(e,t){return rv(e,Object.assign({format:pv},t))}const gv=/^>|^->|<!--|-->|--!>|<!-$/g,mv=[">"],yv=["<",">"];function _v(e,t,n,r){return r.settings.bogusComments?"<?"+cr(e.value,Object.assign({},r.settings.characterReferences,{subset:mv}))+">":"<!--"+e.value.replace(gv,s)+"-->";function s(o){return cr(o,Object.assign({},r.settings.characterReferences,{subset:yv}))}}function wv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function ou(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 bv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function vv(e){return e.join(" ").trim()}const Cv=/[ \t\n\f\r]/g;function gl(e){return typeof e=="object"?e.type==="text"?iu(e.value):!1:iu(e)}function iu(e){return e.replace(Cv,"")===""}const Ie=Th(1),Eh=Th(-1),xv=[];function Th(e){return t;function t(n,r,s){const o=n?n.children:xv;let i=(r||0)+e,a=o[i];if(!s)for(;a&&gl(a);)i+=e,a=o[i];return a}}const Sv={}.hasOwnProperty;function $h(e){return t;function t(n,r,s){return Sv.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const ml=$h({body:Av,caption:Ei,colgroup:Ei,dd:Rv,dt:$v,head:Ei,html:kv,li:Tv,optgroup:Pv,option:Iv,p:Ev,rp:au,rt:au,tbody:Ov,td:lu,tfoot:Mv,th:lu,thead:Nv,tr:Lv});function Ei(e,t,n){const r=Ie(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&gl(r.value.charAt(0)))}function kv(e,t,n){const r=Ie(n,t);return!r||r.type!=="comment"}function Av(e,t,n){const r=Ie(n,t);return!r||r.type!=="comment"}function Ev(e,t,n){const r=Ie(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 Tv(e,t,n){const r=Ie(n,t);return!r||r.type==="element"&&r.tagName==="li"}function $v(e,t,n){const r=Ie(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Rv(e,t,n){const r=Ie(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function au(e,t,n){const r=Ie(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Pv(e,t,n){const r=Ie(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Iv(e,t,n){const r=Ie(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Nv(e,t,n){const r=Ie(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ov(e,t,n){const r=Ie(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Mv(e,t,n){return!Ie(n,t)}function Lv(e,t,n){const r=Ie(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function lu(e,t,n){const r=Ie(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Dv=$h({body:Fv,colgroup:jv,head:Bv,html:Hv,tbody:Uv});function Hv(e){const t=Ie(e,-1);return!t||t.type!=="comment"}function Bv(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 Fv(e){const t=Ie(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&gl(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function jv(e,t,n){const r=Eh(n,t),s=Ie(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ml(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Uv(e,t,n){const r=Eh(n,t),s=Ie(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ml(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const As={name:[[`
|
|
22
22
|
\f\r &/=>`.split(""),`
|
|
23
23
|
\f\r "&'/=>\``.split("")],[`\0
|
|
24
24
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -26,8 +26,8 @@ var yp=Object.defineProperty;var _p=Object.getPrototypeOf;var wp=Reflect.get;var
|
|
|
26
26
|
\f\r &>`.split(""),`\0
|
|
27
27
|
\f\r "&'<=>\``.split("")],[`\0
|
|
28
28
|
\f\r "&'<=>\``.split(""),`\0
|
|
29
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Gv(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=kh);const u=Wv(r,e.properties),c=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,c&&(i=!1),(u||!o||!Dv(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||!ml(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function Wv(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=zv(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 zv(e,t,n){const r=K0(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=cr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Es.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?bv:vv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=cr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Es.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&ou(n,i)>ou(n,e.alternative)&&(i=e.alternative),a=i+cr(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?Es.single:Es.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Vv=["<","&"];function Rh(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:cr(e.value,Object.assign({},r.settings.characterReferences,{subset:Vv}))}function qv(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Rh(e,t,n,r)}function Kv(e,t,n,r){return r.all(e)}const Xv=Z0("type",{invalid:Jv,unknown:Yv,handlers:{comment:_v,doctype:wv,element:Gv,raw:qv,root:Kv,text:Rh}});function Jv(e){throw new Error("Expected node, not `"+e+"`")}function Yv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Zv={},Qv={},e1=[];function t1(e,t){const n=t||Zv,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:n1,all:r1,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||U0,characterReferences:n.characterReferences||Qv,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?kh:Y0,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function n1(e,t,n){return Xv(e,t,n,this)}function r1(e){const t=[],n=e&&e.children||e1;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function mo(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function un(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function s1(e){return Array.isArray(e)?e:[e]}async function Ph(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function yl(e){return!e||["plaintext","txt","text","plain"].includes(e)}function o1(e){return e==="ansi"||yl(e)}function _l(e){return e==="none"}function i1(e){return _l(e)}function Nh(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function qo(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let i=0;i<n.length;i+=2){const a=t?n[i]+(n[i+1]||""):n[i];s.push([a,r]),r+=n[i].length,r+=((o=n[i+1])==null?void 0:o.length)||0}return s}function a1(e){const t=qo(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 wl="light-dark()",l1=["color","background-color"];function c1(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 u1(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?c1(s,o):s})):e}function f1(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(c=>yo(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&&l1.includes(d))if(r===wl&&i.length>1){const p=t.findIndex(v=>v==="light"),g=t.findIndex(v=>v==="dark");if(p===-1||g===-1)throw new Ie('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=i[p][d]||"inherit",_=i[g][d]||"inherit";l[d]=`light-dark(${y}, ${_})`,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 yo(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Ge.Italic&&(t["font-style"]="italic"),e.fontStyle&Ge.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Ge.Underline&&n.push("underline"),e.fontStyle&Ge.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Sa(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Ih=new WeakMap;function Ko(e,t){Ih.set(e,t)}function ns(e){return Ih.get(e)}class br{constructor(...t){k(this,"_stacks",{});k(this,"lang");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}}}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 br(Object.fromEntries(s1(n).map(r=>[r,wa])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return d1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function d1(e){const t=[],n=new Set;function r(s){var i;if(n.has(s))return;n.add(s);const o=(i=s==null?void 0:s.nameScopesList)==null?void 0:i.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function h1(e,t){if(!(e instanceof br))throw new Ie("Invalid grammar state");return e.getInternalStack(t)}function p1(){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 Ie(`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 Ie(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);if(i.character<0||i.character>a.length)throw new Ie(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,offset:s.posToIndex(i.line,i.character)}}};const s=a1(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));g1(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var i;if(!((i=this.options.decorations)!=null&&i.length))return;const s=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return u1(n,s)},code(n){var c;if(!((c=this.options.decorations)!=null&&c.length))return;const r=t(this),s=Array.from(n.children).filter(f=>f.type==="element"&&f.tagName==="span");if(s.length!==r.converter.lines.length)throw new Ie(`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(f,d,h,p){const g=s[f];let y="",_=-1,v=-1;if(d===0&&(_=0),h===0&&(v=0),h===Number.POSITIVE_INFINITY&&(v=g.children.length),_===-1||v===-1)for(let b=0;b<g.children.length;b++)y+=Mh(g.children[b]),_===-1&&y.length===d&&(_=b+1),v===-1&&y.length===h&&(v=b+1);if(_===-1)throw new Ie(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(v===-1)throw new Ie(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const m=g.children.slice(_,v);if(!p.alwaysWrap&&m.length===g.children.length)a(g,p,"line");else if(!p.alwaysWrap&&m.length===1&&m[0].type==="element")a(m[0],p,"token");else{const b={type:"element",tagName:"span",properties:{},children:m};a(b,p,"wrapper"),g.children.splice(_,m.length,b)}}function i(f,d){s[f]=a(s[f],d,"line")}function a(f,d,h){var y;const p=d.properties||{},g=d.transform||(_=>_);return f.tagName=d.tagName||"span",f.properties={...f.properties,...p,class:f.properties.class},(y=d.properties)!=null&&y.class&&Nh(f,d.properties.class),f=g(f,h)||f,f}const l=[],u=r.decorations.sort((f,d)=>d.start.offset-f.start.offset||f.end.offset-d.end.offset);for(const f of u){const{start:d,end:h}=f;if(d.line===h.line)o(d.line,d.character,h.character,f);else if(d.line<h.line){o(d.line,d.character,Number.POSITIVE_INFINITY,f);for(let p=d.line+1;p<h.line;p++)l.unshift(()=>i(p,f));o(h.line,0,h.character,f)}}l.forEach(f=>f())}}}function g1(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ie(`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)continue;throw new Ie(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Mh(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Mh).join(""):""}const m1=[p1()];function _o(e){return[...e.transformers||[],...m1]}var En=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ti={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function y1(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 cu(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 _1(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)Ti[r]&&t.push({type:"setDecoration",value:Ti[r]});else if(r<=29){const s=Ti[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:En[r-30]}});else if(r===38){const s=cu(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:En[r-40]}});else if(r===48){const s=cu(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:En[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:En[r-100+8]}})}return t}function w1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=y1(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=_1(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 b1={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 v1(e=b1){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<En.length;u++)r.push(t(En[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 C1(e,t,n){const r=mo(e,n),s=qo(t),o=v1(Object.fromEntries(En.map(a=>{var l;return[a,(l=e.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),i=w1();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=un(u,r),c=un(c,r),l.decorations.has("dim")&&(u=x1(u));let f=Ge.None;return l.decorations.has("bold")&&(f|=Ge.Bold),l.decorations.has("italic")&&(f|=Ge.Italic),l.decorations.has("underline")&&(f|=Ge.Underline),l.decorations.has("strikethrough")&&(f|=Ge.Strikethrough),{content:l.value,offset:a[1],color:u,bgColor:c,fontStyle:f}}))}function x1(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 bl(e,t,n={}){const{lang:r="text",theme:s=e.getLoadedThemes()[0]}=n;if(yl(r)||_l(s))return qo(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(s);if(r==="ansi")return C1(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ie(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ie(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return k1(t,a,o,i,n)}function S1(...e){if(e.length===2)return ns(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(yl(s)||_l(o))throw new Ie("Plain language does not have grammar state");if(s==="ansi")throw new Ie("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new br(wo(n,l,i,a,r).stateStack,l.name,i.name)}function k1(e,t,n,r,s){const o=wo(e,t,n,r,s),i=new br(wo(e,t,n,r,s).stateStack,t.name,n.name);return Ko(o.tokens,i),o.tokens}function wo(e,t,n,r,s){const o=mo(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=qo(e);let u=s.grammarState?h1(s.grammarState,n.name)??wa:s.grammarContextCode!=null?wo(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:wa,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 y,_,v;s.includeExplanation&&(y=t.tokenizeLine(p,u,a),_=y.tokens,v=0);const m=t.tokenizeLine2(p,u,a),b=m.tokens.length/2;for(let C=0;C<b;C++){const A=m.tokens[2*C],S=C+1<b?m.tokens[2*C+2]:p.length;if(A===S)continue;const O=m.tokens[2*C+1],F=un(r[mr.getForeground(O)],o),R=mr.getFontStyle(O),K={content:p.substring(A,S),offset:g+A,color:F,fontStyle:R};if(s.includeExplanation){const z=[];if(s.includeExplanation!=="scopeName")for(const H of n.settings){let J;switch(typeof H.scope){case"string":J=H.scope.split(/,/).map(L=>L.trim());break;case"object":J=H.scope;break;default:continue}z.push({settings:H,selectors:J.map(L=>L.split(/ /))})}K.explanation=[];let ee=0;for(;A+ee<S;){const H=_[v],J=p.substring(H.startIndex,H.endIndex);ee+=J.length,K.explanation.push({content:J,scopes:s.includeExplanation==="scopeName"?E1(H.scopes):A1(z,H.scopes)}),v+=1}}c.push(K)}f.push(c),c=[],u=m.ruleStack}return{tokens:f,stateStack:u}}function E1(e){return e.map(t=>({scopeName:t}))}function A1(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 uu(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function T1(e,t,n){if(!uu(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)uu(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(T1(i,t,n)){r.push(o);break}return r}function Oh(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=bl(e,t,{...n,theme:l.theme}),c=ns(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=R1(...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:y,offset:_,...v}=h[u][f];d.variants[r[p].color]=v}),d})),a=s[0].state?new br(Object.fromEntries(s.map(l=>{var u;return[l.theme,(u=l.state)==null?void 0:u.getInternalStack(l.theme)]})),s[0].state.lang):void 0;return a&&Ko(i,a),i}function R1(...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 bo(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((_,v)=>_.color===u?-1:v.color===u?1:0);if(d.length===0)throw new Ie("`themes` option must not be empty");const h=Oh(e,t,n);if(l=ns(h),u&&wl!==u&&!d.find(_=>_.color===u))throw new Ie(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=d.map(_=>e.getTheme(_.theme)),g=d.map(_=>_.color);o=h.map(_=>_.map(v=>f1(v,g,c,u,f))),l&&Ko(o,l);const y=d.map(_=>mo(_.theme,n));s=fu(d,p,y,c,u,"fg",f),r=fu(d,p,y,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=mo(n.theme,n);o=bl(e,t,n);const c=e.getTheme(n.theme);r=un(c.bg,u),s=un(c.fg,u),i=c.name,l=ns(o)}else throw new Ie("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function fu(e,t,n,r,s,o,i){return e.map((a,l)=>{const u=un(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&s){if(s===wl&&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 Ie('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=un(t[f][o],n[f])||"inherit",p=un(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 vo(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>vo(e,s,o),codeToTokens:(s,o)=>bo(e,s,o)}){var p,g;let s=t;for(const y of _o(n))s=((p=y.preprocess)==null?void 0:p.call(r,s,n))||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:u,grammarState:c}=bo(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=N1(o):f==="never"&&(o=I1(o)),d&&(o=M1(o));const h={...r,get source(){return s}};for(const y of _o(n))o=((g=y.tokens)==null?void 0:g.call(h,o))||o;return P1(o,{...n,fg:i,bg:a,themeName:l,rootStyle:u},h,c)}function P1(e,t,n,r=ns(e)){var p,g,y;const s=_o(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(([_])=>!_.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:o};const f=[],d={...n,structure:a,addClassToHast:Nh,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((_,v)=>{var C,A;v&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
|
|
30
|
-
`}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(const S of _){let O={type:"element",tagName:"span",properties:{...S.htmlAttrs},children:[{type:"text",value:S.content}]};const F=Sa(S.htmlStyle||yo(S));F&&(O.properties.style=F);for(const R of s)O=((C=R==null?void 0:R.span)==null?void 0:C.call(d,O,v+1,b,m,S))||O;a==="inline"?i.children.push(O):a==="classic"&&m.children.push(O),b+=S.content.length}if(a==="classic"){for(const S of s)m=((A=S==null?void 0:S.line)==null?void 0:A.call(d,m,v+1))||m;f.push(m),o.push(m)}}),a==="classic"){for(const _ of s)c=((p=_==null?void 0:_.code)==null?void 0:p.call(d,c))||c;u.children.push(c);for(const _ of s)u=((g=_==null?void 0:_.pre)==null?void 0:g.call(d,u))||u;i.children.push(u)}let h=i;for(const _ of s)h=((y=_==null?void 0:_.root)==null?void 0:y.call(d,h))||h;return r&&Ko(h,r),h}function N1(e){return e.map(t=>{const n=[];let r="",s=0;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&Ge.Underline||o.fontStyle&Ge.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 I1(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 M1(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=Sa(s.htmlStyle||yo(s)),i=Sa(r.htmlStyle||yo(r)),a=s.fontStyle&&(s.fontStyle&Ge.Underline||s.fontStyle&Ge.Strikethrough),l=r.fontStyle&&(r.fontStyle&Ge.Underline||r.fontStyle&Ge.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}const O1=t1;function L1(e,t,n){var o;const r={meta:{},options:n,codeToHast:(i,a)=>vo(e,i,a),codeToTokens:(i,a)=>bo(e,i,a)};let s=O1(vo(e,t,n,r));for(const i of _o(n))s=((o=i.postprocess)==null?void 0:o.call(r,s,n))||s;return s}const du={light:"#333333",dark:"#bbbbbb"},hu={light:"#fffffe",dark:"#1e1e1e"},pu="__shiki_resolved";function vl(e){var a,l,u,c,f;if(e!=null&&e[pu])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const d=t.settings?t.settings.find(h=>!h.name&&!h.scope):void 0;(a=d==null?void 0:d.settings)!=null&&a.foreground&&(r=d.settings.foreground),(l=d==null?void 0:d.settings)!=null&&l.background&&(n=d.settings.background),!r&&((u=t==null?void 0:t.colors)!=null&&u["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((c=t==null?void 0:t.colors)!=null&&c["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?du.light:du.dark),n||(n=t.type==="light"?hu.light:hu.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(d){var p;if(o.has(d))return o.get(d);s+=1;const h=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(p=t.colorReplacements)!=null&&p[`#${h}`]?i(d):(o.set(d,h),h)}t.settings=t.settings.map(d=>{var y,_;const h=((y=d.settings)==null?void 0:y.foreground)&&!d.settings.foreground.startsWith("#"),p=((_=d.settings)==null?void 0:_.background)&&!d.settings.background.startsWith("#");if(!h&&!p)return d;const g={...d,settings:{...d.settings}};if(h){const v=i(d.settings.foreground);t.colorReplacements[v]=d.settings.foreground,g.settings.foreground=v}if(p){const v=i(d.settings.background);t.colorReplacements[v]=d.settings.background,g.settings.background=v}return g});for(const d of Object.keys(t.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!((f=t.colors[d])!=null&&f.startsWith("#"))){const h=i(t.colors[d]);t.colorReplacements[h]=t.colors[d],t.colors[d]=h}return Object.defineProperty(t,pu,{enumerable:!1,writable:!1,value:!0}),t}async function Lh(e){return Array.from(new Set((await Promise.all(e.filter(t=>!o1(t)).map(async t=>await Ph(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Dh(e){return(await Promise.all(e.map(async n=>i1(n)?null:vl(await Ph(n))))).filter(n=>!!n)}let D1=3;function H1(e,t=3){t>D1||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class er extends Error{constructor(t){super(t),this.name="ShikiError"}}class B1 extends j0{constructor(n,r,s,o={}){super(n);k(this,"_resolvedThemes",new Map);k(this,"_resolvedGrammars",new Map);k(this,"_langMap",new Map);k(this,"_langGraph",new Map);k(this,"_textmateThemeCache",new WeakMap);k(this,"_loadedThemesCache",null);k(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=s,this._alias=o,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=vl(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=uo.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new er(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var i,a,l,u;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(c=>{var f;return(f=c.embeddedLangsLazy)==null?void 0:f.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(c=>{this._alias[c]=n.name}),this._loadedLanguagesCache=null,r.size)for(const c of r)this._resolvedGrammars.delete(c.name),this._loadedLanguagesCache=null,(a=(i=this._syncRegistry)==null?void 0:i._injectionGrammars)==null||a.delete(c.scopeName),(u=(l=this._syncRegistry)==null?void 0:l._grammars)==null||u.delete(c.scopeName),this.loadLanguage(this._langMap.get(c.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),s=r.filter(([o,i])=>!i);if(s.length){const o=r.filter(([i,a])=>{var l;return a&&((l=a.embeddedLangs)==null?void 0:l.some(u=>s.map(([c])=>c).includes(u)))}).filter(i=>!s.includes(i));throw new er(`Missing languages ${s.map(([i])=>`\`${i}\``).join(", ")}, required by ${o.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[o,i]of r)this._resolver.addLanguage(i);for(const[o,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class F1{constructor(t,n){k(this,"_langs",new Map);k(this,"_scopeToLang",new Map);k(this,"_injections",new Map);k(this,"_onigLib");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 Ar=0;function j1(e){Ar+=1,e.warnings!==!1&&Ar>=10&&Ar%10===0&&console.warn(`[Shiki] ${Ar} 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 er("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(vl),s=new F1(e.engine,n),o=new B1(s,r,n,e.langAlias);let i;function a(v){y();const m=o.getGrammar(typeof v=="string"?v:v.name);if(!m)throw new er(`Language \`${v}\` not found, you may need to load it first`);return m}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const m=o.getTheme(v);if(!m)throw new er(`Theme \`${v}\` not found, you may need to load it first`);return m}function u(v){y();const m=l(v);i!==v&&(o.setTheme(m),i=v);const b=o.getColorMap();return{theme:m,colorMap:b}}function c(){return y(),o.getLoadedThemes()}function f(){return y(),o.getLoadedLanguages()}function d(...v){y(),o.loadLanguages(v.flat(1))}async function h(...v){return d(await Lh(v))}function p(...v){y();for(const m of v.flat(1))o.loadTheme(m)}async function g(...v){return y(),p(await Dh(v))}function y(){if(t)throw new er("Shiki instance has been disposed")}function _(){t||(t=!0,o.dispose(),Ar-=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 U1(e){e.engine||H1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Dh(e.themes||[]),Lh(e.langs||[]),e.engine]);return j1({...e,themes:t,langs:n,engine:r})}async function G1(e){const t=await U1(e);return{getLastGrammarState:(...n)=>S1(t,...n),codeToTokensBase:(n,r)=>bl(t,n,r),codeToTokensWithThemes:(n,r)=>Oh(t,n,r),codeToTokens:(n,r)=>bo(t,n,r),codeToHast:(n,r)=>vo(t,n,r),codeToHtml:(n,r)=>L1(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function vr(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function W1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const Cl=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Me=String.raw;function Cr(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Hh=Me`\[\^?`,Bh=`c.? | C(?:-.?)?|${Me`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Me`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Me`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Me`o\{[^\}]*\}?`}|${Me`\d{1,3}`}`,xl=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,As=new RegExp(Me`
|
|
29
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Gv(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=kh);const u=Wv(r,e.properties),c=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,c&&(i=!1),(u||!o||!Dv(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||!ml(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function Wv(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=zv(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 zv(e,t,n){const r=K0(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=cr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:As.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?bv:vv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=cr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:As.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&ou(n,i)>ou(n,e.alternative)&&(i=e.alternative),a=i+cr(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?As.single:As.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Vv=["<","&"];function Rh(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:cr(e.value,Object.assign({},r.settings.characterReferences,{subset:Vv}))}function qv(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Rh(e,t,n,r)}function Kv(e,t,n,r){return r.all(e)}const Jv=Z0("type",{invalid:Xv,unknown:Yv,handlers:{comment:_v,doctype:wv,element:Gv,raw:qv,root:Kv,text:Rh}});function Xv(e){throw new Error("Expected node, not `"+e+"`")}function Yv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Zv={},Qv={},e1=[];function t1(e,t){const n=t||Zv,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:n1,all:r1,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||U0,characterReferences:n.characterReferences||Qv,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?kh:Y0,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function n1(e,t,n){return Jv(e,t,n,this)}function r1(e){const t=[],n=e&&e.children||e1;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function mo(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function un(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function s1(e){return Array.isArray(e)?e:[e]}async function Ph(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function yl(e){return!e||["plaintext","txt","text","plain"].includes(e)}function o1(e){return e==="ansi"||yl(e)}function _l(e){return e==="none"}function i1(e){return _l(e)}function Ih(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function qo(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let i=0;i<n.length;i+=2){const a=t?n[i]+(n[i+1]||""):n[i];s.push([a,r]),r+=n[i].length,r+=((o=n[i+1])==null?void 0:o.length)||0}return s}function a1(e){const t=qo(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 wl="light-dark()",l1=["color","background-color"];function c1(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 u1(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?c1(s,o):s})):e}function f1(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(c=>yo(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&&l1.includes(d))if(r===wl&&i.length>1){const p=t.findIndex(v=>v==="light"),g=t.findIndex(v=>v==="dark");if(p===-1||g===-1)throw new Ne('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=i[p][d]||"inherit",_=i[g][d]||"inherit";l[d]=`light-dark(${y}, ${_})`,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 yo(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Ge.Italic&&(t["font-style"]="italic"),e.fontStyle&Ge.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Ge.Underline&&n.push("underline"),e.fontStyle&Ge.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Sa(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Nh=new WeakMap;function Ko(e,t){Nh.set(e,t)}function ns(e){return Nh.get(e)}class br{constructor(...t){k(this,"_stacks",{});k(this,"lang");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}}}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 br(Object.fromEntries(s1(n).map(r=>[r,wa])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return d1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function d1(e){const t=[],n=new Set;function r(s){var i;if(n.has(s))return;n.add(s);const o=(i=s==null?void 0:s.nameScopesList)==null?void 0:i.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function h1(e,t){if(!(e instanceof br))throw new Ne("Invalid grammar state");return e.getInternalStack(t)}function p1(){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 Ne(`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 Ne(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);if(i.character<0||i.character>a.length)throw new Ne(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,offset:s.posToIndex(i.line,i.character)}}};const s=a1(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));g1(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var i;if(!((i=this.options.decorations)!=null&&i.length))return;const s=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return u1(n,s)},code(n){var c;if(!((c=this.options.decorations)!=null&&c.length))return;const r=t(this),s=Array.from(n.children).filter(f=>f.type==="element"&&f.tagName==="span");if(s.length!==r.converter.lines.length)throw new Ne(`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(f,d,h,p){const g=s[f];let y="",_=-1,v=-1;if(d===0&&(_=0),h===0&&(v=0),h===Number.POSITIVE_INFINITY&&(v=g.children.length),_===-1||v===-1)for(let b=0;b<g.children.length;b++)y+=Oh(g.children[b]),_===-1&&y.length===d&&(_=b+1),v===-1&&y.length===h&&(v=b+1);if(_===-1)throw new Ne(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(v===-1)throw new Ne(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const m=g.children.slice(_,v);if(!p.alwaysWrap&&m.length===g.children.length)a(g,p,"line");else if(!p.alwaysWrap&&m.length===1&&m[0].type==="element")a(m[0],p,"token");else{const b={type:"element",tagName:"span",properties:{},children:m};a(b,p,"wrapper"),g.children.splice(_,m.length,b)}}function i(f,d){s[f]=a(s[f],d,"line")}function a(f,d,h){var y;const p=d.properties||{},g=d.transform||(_=>_);return f.tagName=d.tagName||"span",f.properties={...f.properties,...p,class:f.properties.class},(y=d.properties)!=null&&y.class&&Ih(f,d.properties.class),f=g(f,h)||f,f}const l=[],u=r.decorations.sort((f,d)=>d.start.offset-f.start.offset||f.end.offset-d.end.offset);for(const f of u){const{start:d,end:h}=f;if(d.line===h.line)o(d.line,d.character,h.character,f);else if(d.line<h.line){o(d.line,d.character,Number.POSITIVE_INFINITY,f);for(let p=d.line+1;p<h.line;p++)l.unshift(()=>i(p,f));o(h.line,0,h.character,f)}}l.forEach(f=>f())}}}function g1(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ne(`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)continue;throw new Ne(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Oh(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Oh).join(""):""}const m1=[p1()];function _o(e){return[...e.transformers||[],...m1]}var An=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ti={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function y1(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 cu(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 _1(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)Ti[r]&&t.push({type:"setDecoration",value:Ti[r]});else if(r<=29){const s=Ti[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:An[r-30]}});else if(r===38){const s=cu(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:An[r-40]}});else if(r===48){const s=cu(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:An[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:An[r-100+8]}})}return t}function w1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=y1(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=_1(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 b1={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 v1(e=b1){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<An.length;u++)r.push(t(An[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 C1(e,t,n){const r=mo(e,n),s=qo(t),o=v1(Object.fromEntries(An.map(a=>{var l;return[a,(l=e.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),i=w1();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=un(u,r),c=un(c,r),l.decorations.has("dim")&&(u=x1(u));let f=Ge.None;return l.decorations.has("bold")&&(f|=Ge.Bold),l.decorations.has("italic")&&(f|=Ge.Italic),l.decorations.has("underline")&&(f|=Ge.Underline),l.decorations.has("strikethrough")&&(f|=Ge.Strikethrough),{content:l.value,offset:a[1],color:u,bgColor:c,fontStyle:f}}))}function x1(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 bl(e,t,n={}){const{lang:r="text",theme:s=e.getLoadedThemes()[0]}=n;if(yl(r)||_l(s))return qo(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(s);if(r==="ansi")return C1(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ne(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ne(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return k1(t,a,o,i,n)}function S1(...e){if(e.length===2)return ns(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(yl(s)||_l(o))throw new Ne("Plain language does not have grammar state");if(s==="ansi")throw new Ne("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new br(wo(n,l,i,a,r).stateStack,l.name,i.name)}function k1(e,t,n,r,s){const o=wo(e,t,n,r,s),i=new br(wo(e,t,n,r,s).stateStack,t.name,n.name);return Ko(o.tokens,i),o.tokens}function wo(e,t,n,r,s){const o=mo(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=qo(e);let u=s.grammarState?h1(s.grammarState,n.name)??wa:s.grammarContextCode!=null?wo(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:wa,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 y,_,v;s.includeExplanation&&(y=t.tokenizeLine(p,u,a),_=y.tokens,v=0);const m=t.tokenizeLine2(p,u,a),b=m.tokens.length/2;for(let C=0;C<b;C++){const E=m.tokens[2*C],S=C+1<b?m.tokens[2*C+2]:p.length;if(E===S)continue;const M=m.tokens[2*C+1],F=un(r[mr.getForeground(M)],o),R=mr.getFontStyle(M),K={content:p.substring(E,S),offset:g+E,color:F,fontStyle:R};if(s.includeExplanation){const z=[];if(s.includeExplanation!=="scopeName")for(const H of n.settings){let X;switch(typeof H.scope){case"string":X=H.scope.split(/,/).map(L=>L.trim());break;case"object":X=H.scope;break;default:continue}z.push({settings:H,selectors:X.map(L=>L.split(/ /))})}K.explanation=[];let ee=0;for(;E+ee<S;){const H=_[v],X=p.substring(H.startIndex,H.endIndex);ee+=X.length,K.explanation.push({content:X,scopes:s.includeExplanation==="scopeName"?A1(H.scopes):E1(z,H.scopes)}),v+=1}}c.push(K)}f.push(c),c=[],u=m.ruleStack}return{tokens:f,stateStack:u}}function A1(e){return e.map(t=>({scopeName:t}))}function E1(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 uu(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function T1(e,t,n){if(!uu(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)uu(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(T1(i,t,n)){r.push(o);break}return r}function Mh(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=bl(e,t,{...n,theme:l.theme}),c=ns(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=R1(...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:y,offset:_,...v}=h[u][f];d.variants[r[p].color]=v}),d})),a=s[0].state?new br(Object.fromEntries(s.map(l=>{var u;return[l.theme,(u=l.state)==null?void 0:u.getInternalStack(l.theme)]})),s[0].state.lang):void 0;return a&&Ko(i,a),i}function R1(...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 bo(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((_,v)=>_.color===u?-1:v.color===u?1:0);if(d.length===0)throw new Ne("`themes` option must not be empty");const h=Mh(e,t,n);if(l=ns(h),u&&wl!==u&&!d.find(_=>_.color===u))throw new Ne(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=d.map(_=>e.getTheme(_.theme)),g=d.map(_=>_.color);o=h.map(_=>_.map(v=>f1(v,g,c,u,f))),l&&Ko(o,l);const y=d.map(_=>mo(_.theme,n));s=fu(d,p,y,c,u,"fg",f),r=fu(d,p,y,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=mo(n.theme,n);o=bl(e,t,n);const c=e.getTheme(n.theme);r=un(c.bg,u),s=un(c.fg,u),i=c.name,l=ns(o)}else throw new Ne("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function fu(e,t,n,r,s,o,i){return e.map((a,l)=>{const u=un(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&s){if(s===wl&&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 Ne('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=un(t[f][o],n[f])||"inherit",p=un(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 vo(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>vo(e,s,o),codeToTokens:(s,o)=>bo(e,s,o)}){var p,g;let s=t;for(const y of _o(n))s=((p=y.preprocess)==null?void 0:p.call(r,s,n))||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:u,grammarState:c}=bo(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=I1(o):f==="never"&&(o=N1(o)),d&&(o=O1(o));const h={...r,get source(){return s}};for(const y of _o(n))o=((g=y.tokens)==null?void 0:g.call(h,o))||o;return P1(o,{...n,fg:i,bg:a,themeName:l,rootStyle:u},h,c)}function P1(e,t,n,r=ns(e)){var p,g,y;const s=_o(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(([_])=>!_.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:o};const f=[],d={...n,structure:a,addClassToHast:Ih,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((_,v)=>{var C,E;v&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
|
|
30
|
+
`}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(const S of _){let M={type:"element",tagName:"span",properties:{...S.htmlAttrs},children:[{type:"text",value:S.content}]};const F=Sa(S.htmlStyle||yo(S));F&&(M.properties.style=F);for(const R of s)M=((C=R==null?void 0:R.span)==null?void 0:C.call(d,M,v+1,b,m,S))||M;a==="inline"?i.children.push(M):a==="classic"&&m.children.push(M),b+=S.content.length}if(a==="classic"){for(const S of s)m=((E=S==null?void 0:S.line)==null?void 0:E.call(d,m,v+1))||m;f.push(m),o.push(m)}}),a==="classic"){for(const _ of s)c=((p=_==null?void 0:_.code)==null?void 0:p.call(d,c))||c;u.children.push(c);for(const _ of s)u=((g=_==null?void 0:_.pre)==null?void 0:g.call(d,u))||u;i.children.push(u)}let h=i;for(const _ of s)h=((y=_==null?void 0:_.root)==null?void 0:y.call(d,h))||h;return r&&Ko(h,r),h}function I1(e){return e.map(t=>{const n=[];let r="",s=0;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&Ge.Underline||o.fontStyle&Ge.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 N1(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 O1(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=Sa(s.htmlStyle||yo(s)),i=Sa(r.htmlStyle||yo(r)),a=s.fontStyle&&(s.fontStyle&Ge.Underline||s.fontStyle&Ge.Strikethrough),l=r.fontStyle&&(r.fontStyle&Ge.Underline||r.fontStyle&Ge.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}const M1=t1;function L1(e,t,n){var o;const r={meta:{},options:n,codeToHast:(i,a)=>vo(e,i,a),codeToTokens:(i,a)=>bo(e,i,a)};let s=M1(vo(e,t,n,r));for(const i of _o(n))s=((o=i.postprocess)==null?void 0:o.call(r,s,n))||s;return s}const du={light:"#333333",dark:"#bbbbbb"},hu={light:"#fffffe",dark:"#1e1e1e"},pu="__shiki_resolved";function vl(e){var a,l,u,c,f;if(e!=null&&e[pu])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const d=t.settings?t.settings.find(h=>!h.name&&!h.scope):void 0;(a=d==null?void 0:d.settings)!=null&&a.foreground&&(r=d.settings.foreground),(l=d==null?void 0:d.settings)!=null&&l.background&&(n=d.settings.background),!r&&((u=t==null?void 0:t.colors)!=null&&u["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((c=t==null?void 0:t.colors)!=null&&c["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?du.light:du.dark),n||(n=t.type==="light"?hu.light:hu.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(d){var p;if(o.has(d))return o.get(d);s+=1;const h=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(p=t.colorReplacements)!=null&&p[`#${h}`]?i(d):(o.set(d,h),h)}t.settings=t.settings.map(d=>{var y,_;const h=((y=d.settings)==null?void 0:y.foreground)&&!d.settings.foreground.startsWith("#"),p=((_=d.settings)==null?void 0:_.background)&&!d.settings.background.startsWith("#");if(!h&&!p)return d;const g={...d,settings:{...d.settings}};if(h){const v=i(d.settings.foreground);t.colorReplacements[v]=d.settings.foreground,g.settings.foreground=v}if(p){const v=i(d.settings.background);t.colorReplacements[v]=d.settings.background,g.settings.background=v}return g});for(const d of Object.keys(t.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!((f=t.colors[d])!=null&&f.startsWith("#"))){const h=i(t.colors[d]);t.colorReplacements[h]=t.colors[d],t.colors[d]=h}return Object.defineProperty(t,pu,{enumerable:!1,writable:!1,value:!0}),t}async function Lh(e){return Array.from(new Set((await Promise.all(e.filter(t=>!o1(t)).map(async t=>await Ph(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Dh(e){return(await Promise.all(e.map(async n=>i1(n)?null:vl(await Ph(n))))).filter(n=>!!n)}let D1=3;function H1(e,t=3){t>D1||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class er extends Error{constructor(t){super(t),this.name="ShikiError"}}class B1 extends j0{constructor(n,r,s,o={}){super(n);k(this,"_resolvedThemes",new Map);k(this,"_resolvedGrammars",new Map);k(this,"_langMap",new Map);k(this,"_langGraph",new Map);k(this,"_textmateThemeCache",new WeakMap);k(this,"_loadedThemesCache",null);k(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=s,this._alias=o,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=vl(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=uo.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new er(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var i,a,l,u;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(c=>{var f;return(f=c.embeddedLangsLazy)==null?void 0:f.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(c=>{this._alias[c]=n.name}),this._loadedLanguagesCache=null,r.size)for(const c of r)this._resolvedGrammars.delete(c.name),this._loadedLanguagesCache=null,(a=(i=this._syncRegistry)==null?void 0:i._injectionGrammars)==null||a.delete(c.scopeName),(u=(l=this._syncRegistry)==null?void 0:l._grammars)==null||u.delete(c.scopeName),this.loadLanguage(this._langMap.get(c.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),s=r.filter(([o,i])=>!i);if(s.length){const o=r.filter(([i,a])=>{var l;return a&&((l=a.embeddedLangs)==null?void 0:l.some(u=>s.map(([c])=>c).includes(u)))}).filter(i=>!s.includes(i));throw new er(`Missing languages ${s.map(([i])=>`\`${i}\``).join(", ")}, required by ${o.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[o,i]of r)this._resolver.addLanguage(i);for(const[o,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class F1{constructor(t,n){k(this,"_langs",new Map);k(this,"_scopeToLang",new Map);k(this,"_injections",new Map);k(this,"_onigLib");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 Er=0;function j1(e){Er+=1,e.warnings!==!1&&Er>=10&&Er%10===0&&console.warn(`[Shiki] ${Er} 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 er("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(vl),s=new F1(e.engine,n),o=new B1(s,r,n,e.langAlias);let i;function a(v){y();const m=o.getGrammar(typeof v=="string"?v:v.name);if(!m)throw new er(`Language \`${v}\` not found, you may need to load it first`);return m}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const m=o.getTheme(v);if(!m)throw new er(`Theme \`${v}\` not found, you may need to load it first`);return m}function u(v){y();const m=l(v);i!==v&&(o.setTheme(m),i=v);const b=o.getColorMap();return{theme:m,colorMap:b}}function c(){return y(),o.getLoadedThemes()}function f(){return y(),o.getLoadedLanguages()}function d(...v){y(),o.loadLanguages(v.flat(1))}async function h(...v){return d(await Lh(v))}function p(...v){y();for(const m of v.flat(1))o.loadTheme(m)}async function g(...v){return y(),p(await Dh(v))}function y(){if(t)throw new er("Shiki instance has been disposed")}function _(){t||(t=!0,o.dispose(),Er-=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 U1(e){e.engine||H1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Dh(e.themes||[]),Lh(e.langs||[]),e.engine]);return j1({...e,themes:t,langs:n,engine:r})}async function G1(e){const t=await U1(e);return{getLastGrammarState:(...n)=>S1(t,...n),codeToTokensBase:(n,r)=>bl(t,n,r),codeToTokensWithThemes:(n,r)=>Mh(t,n,r),codeToTokens:(n,r)=>bo(t,n,r),codeToHast:(n,r)=>vo(t,n,r),codeToHtml:(n,r)=>L1(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function vr(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function W1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const Cl=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Oe=String.raw;function Cr(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Hh=Oe`\[\^?`,Bh=`c.? | C(?:-.?)?|${Oe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Oe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Oe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Oe`o\{[^\}]*\}?`}|${Oe`\d{1,3}`}`,xl=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Es=new RegExp(Oe`
|
|
31
31
|
\\ (?:
|
|
32
32
|
${Bh}
|
|
33
33
|
| [gk]<[^>]*>?
|
|
@@ -49,7 +49,7 @@ var yp=Object.defineProperty;var _p=Object.getPrototypeOf;var wp=Reflect.get;var
|
|
|
49
49
|
| (?:${xl.source})+
|
|
50
50
|
| ${Hh}
|
|
51
51
|
| .
|
|
52
|
-
`.replace(/\s+/g,""),"gsu"),$i=new RegExp(
|
|
52
|
+
`.replace(/\s+/g,""),"gsu"),$i=new RegExp(Oe`
|
|
53
53
|
\\ (?:
|
|
54
54
|
${Bh}
|
|
55
55
|
| .
|
|
@@ -58,8 +58,8 @@ var yp=Object.defineProperty;var _p=Object.getPrototypeOf;var wp=Reflect.get;var
|
|
|
58
58
|
| ${Hh}
|
|
59
59
|
| &&
|
|
60
60
|
| .
|
|
61
|
-
`.replace(/\s+/g,""),"gsu");function z1(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=uC(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(
|
|
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:An("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Me`\A`,$:Me`\Z`}[n]:n;return{token:gu(i,n)}}return n==="|"?{token:X1(n)}:xl.test(n)?{tokens:hC(n)}:{token:Ut(vr(n),n)}}function q1(e,t,n){const r=[mu(t[1]==="^",t)];let s=1,o;for($i.lastIndex=n;o=$i.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(mu(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Ut(93,i));else if(s--,r.push(J1(i)),!s)break}else{const a=K1(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:$i.lastIndex||e.length}}function K1(e){if(e[0]==="\\")return Fh(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Cl.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return An("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Y1(e):e==="&&"?Z1(e):Ut(vr(e),e)}function Fh(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return oC(e);if("dDhHsSwW".includes(n))return lC(e);if(e.startsWith(Me`\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 cC(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 Ut(vr(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Ut(fC(e),e);if(yu.has(n))return Ut(yu.get(n),e);if(/\d/.test(n))return Q1(t,e);if(e==="\\")throw new Error(Me`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Ut(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function X1(e){return{type:"Alternator",raw:e}}function gu(e,t){return{type:"Assertion",kind:e,raw:t}}function jh(e){return{type:"Backreference",raw:e}}function Ut(e,t){return{type:"Character",value:e,raw:t}}function J1(e){return{type:"CharacterClassClose",raw:e}}function Y1(e){return{type:"CharacterClassHyphen",raw:e}}function Z1(e){return{type:"CharacterClassIntersector",raw:e}}function mu(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function An(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Uh(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Cr(n.flags),raw:t}}function Q1(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function eC(e){return{type:"GroupClose",raw:e}}function Jn(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function tC(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function nC(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function rC(e){return{type:"Subroutine",raw:e}}const sC=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),yu=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function oC(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 Ut(vr(t.toUpperCase())-64,e)}function iC(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=wu(n),i=wu(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),Uh("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,Jn("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function aC(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=sC.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 tC(u,r??null,(s==null?void 0:s.split(","))??null,e)}function _u(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 nC(t,n,r,e)}function lC(e){const t=e[1].toLowerCase();return An({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function cC(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return An("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function wu(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 uC(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 fC(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 dC(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[jh(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(Me`Octal encoded byte above 177 unsupported "${n}"`)}else u=vr(l);o.push(Ut(u,(a===0?"\\":"")+l))}return o}function hC(e){const t=[],n=new RegExp(xl,"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(_u(s.slice(0,-1)));continue}}}t.push(_u(s))}return t}function Gh(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 pC(e){return gC.has(e.type)}const gC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Wh(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=z1(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 Hn();case"Assertion":return mC(p);case"Backreference":return yC(p,o);case"Character":return Xo(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return _C(p,o,h);case"CharacterClassOpen":return wC(p,o,h);case"CharacterSet":return bC(p,o);case"Directive":return EC(p.kind,{flags:p.flags});case"GroupOpen":return vC(p,o,h);case"NamedCallout":return TC(p.kind,p.tag,p.arguments);case"Quantifier":return CC(p,o);case"Subroutine":return xC(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=RC(AC(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(Me`Subroutine uses a duplicate group name "\g<${d}>"`);c.get(d)[0].isSubroutined=!0}else throw new Error(Me`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function mC({kind:e}){return ka(Cr({"^":"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===Me`\B`||e===Me`\Y`})}function yC({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,Ea(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 Ea(r)}return s(+r)}function _C(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(),kC(i,l);throw new Error("Invalid character class range")}return Xo(vr("-"))}function wC({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[Fs()];let a=Cu(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push(Fs()),t.nextIndex++;else{const u=i.at(-1);u.body.push(s(u,n))}a=Cu(r[t.nextIndex],o)}const l=Fs({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 bC({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const a=Jo(n);if(Cl.has(a)&&!(i!=null&&i.has(a)))e="posix",n=a;else return Yn(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?$C(n,{negate:t}):Aa(e,{negate:t})}function vC(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=PC(e),u=l.type==="AbsenceFunction",c=vu(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&W1(o,l.name,[]).push(l)),u&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=xu(r[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(Hn()),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(bu(p)||p.type==="CapturingGroup")throw new Error(g)}else if(bu(p)||vu(p)&&p.negate)throw new Error(g)}}d=xu(r[t.nextIndex])}return t.nextIndex++,l}function CC({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!pC(o))throw new Error("Quantifier requires a repeatable token");const i=Vh(e,t,n,o);return s.body.pop(),i}function xC({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=qh(s);return r.push(i),i}function SC(e,t){return{type:"AbsenceFunction",kind:e,body:fs(t==null?void 0:t.body)}}function Hn(e){return{type:"Alternative",body:Kh(e==null?void 0:e.body)}}function ka(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function Ea(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function zh(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!NC(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:fs(t==null?void 0:t.body)}}function Xo(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 Fs(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Kh(e==null?void 0:e.body)}}function kC(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Aa(e,t){const n=!!(t!=null&&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 EC(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Cr(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function AC(e){return{type:"Flags",...e}}function gt(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:fs(e==null?void 0:e.body)}}function kn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:fs(e==null?void 0:e.body)}}function TC(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function $C(e,t){const n=!!(t!=null&&t.negate);if(!Cl.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Vh(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 RC(e,t){return{type:"Regex",body:fs(t==null?void 0:t.body),flags:e}}function qh(e){return{type:"Subroutine",ref:e}}function Yn(e,t){var s;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(s=n.unicodePropertyMap)==null?void 0:s.get(Jo(e));if(!r){if(n.normalizeUnknownPropertyNames)r=IC(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Me`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function PC({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return SC("repeater");case"atomic":return gt({atomic:!0});case"capturing":return zh(s,{name:n});case"group":return gt({flags:e});case"lookahead":case"lookbehind":return kn({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function fs(e){if(e===void 0)e=[Hn()];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 Kh(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 bu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function vu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function NC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function IC(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 Jo(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Cu(e,t){return Cr(e,`${(t==null?void 0:t.type)==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function xu(e){return Cr(e,"Unclosed group")}function Gr(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){var _,v;let u=0,c=!1;const f={node:o,parent:i,key:a,container:l,root:e,remove(){Ts(l).splice(Math.max(0,Vn(a)+u),1),u--,c=!0},removeAllNextSiblings(){return Ts(l).splice(Vn(a)+1)},removeAllPrevSiblings(){const m=Vn(a)+u;return u-=m,Ts(l).splice(0,Math.max(0,m))},replaceWith(m,b={}){const C=!!b.traverse;l?l[Math.max(0,Vn(a)+u)]=m:Cr(i,"Can't replace root node")[a]=m,C&&s(m,i,a,l),c=!0},replaceWithMultiple(m,b={}){const C=!!b.traverse;if(Ts(l).splice(Math.max(0,Vn(a)+u),1,...m),u+=m.length-1,C){let A=0;for(let S=0;S<m.length;S++)A+=s(m[S],i,Vn(a)+S+A,l)}c=!0},skip(){c=!0}},{type:d}=o,h=t["*"],p=t[d],g=typeof h=="function"?h:h==null?void 0:h.enter,y=typeof p=="function"?p:p==null?void 0:p.enter;if(g==null||g(f,n),y==null||y(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==null?void 0:p.exit)==null||_.call(p,f,n),(v=h==null?void 0:h.exit)==null||v.call(h,f,n),u}return s(e),e}function Ts(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Vn(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const MC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function OC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function LC(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const lt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Sl(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===lt.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?lt.CHAR_CLASS:lt.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 Xh(e,t,n,r){Sl(e,t,n,r)}function DC(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===lt.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function $s(e,t,n){return!!DC(e,t,0,n)}function HC(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 Su=new RegExp(String.raw`(?<noncapturingStart>${MC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function BC(e,t){const n=(t==null?void 0:t.hiddenCaptures)??[];let r=(t==null?void 0: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(Su.lastIndex=Number.isNaN(c)?0:c+o.length;g=Su.exec(e);){const{0:y,index:_,groups:{capturingStart:v,noncapturingStart:m}}=g;if(y==="[")d++;else if(d)y==="]"&&d--;else if(y===s&&!p)c=_,p=!0;else if(p&&m)h++;else if(v)p?h++:(l++,i.push(l+u));else if(y===")"&&p){if(!h){u++;const b=l+u;if(e=`${e.slice(0,c)}${o}${e.slice(c+s.length,_)}))<$$${b}>)${e.slice(_+1)}`,f=!0,a.push(b),OC(n,b),r.size){const C=new Map;r.forEach((A,S)=>{C.set(S>=b?S+1:S,A.map(O=>O>=b?O+1:O))}),r=C}break}h--}}}while(f);return n.push(...a),e=Sl(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}`},lt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Jh=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ri=new RegExp(String.raw`
|
|
61
|
+
`.replace(/\s+/g,""),"gsu");function z1(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=uC(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(Es.lastIndex=0;a=Es.exec(e);){const f=V1(o,e,a[0],Es.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(Es.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"?dC(f,c):f).flat(),flags:r}}function V1(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=q1(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:gu(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:rC(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:jh(n)}}if(o==="K")return{token:Uh("keep",n)};if(o==="N"||o==="R")return{token:En("newline",n,{negate:o==="N"})};if(o==="O")return{token:En("any",n)};if(o==="X")return{token:En("text_segment",n)};const i=Fh(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:aC(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:iC(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Xn("group",n)};if(n==="(?>")return{token:Xn("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Xn(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Xn("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Xn("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:eC(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:En("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Oe`\A`,$:Oe`\Z`}[n]:n;return{token:gu(i,n)}}return n==="|"?{token:J1(n)}:xl.test(n)?{tokens:hC(n)}:{token:Ut(vr(n),n)}}function q1(e,t,n){const r=[mu(t[1]==="^",t)];let s=1,o;for($i.lastIndex=n;o=$i.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(mu(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Ut(93,i));else if(s--,r.push(X1(i)),!s)break}else{const a=K1(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:$i.lastIndex||e.length}}function K1(e){if(e[0]==="\\")return Fh(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Cl.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return En("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Y1(e):e==="&&"?Z1(e):Ut(vr(e),e)}function Fh(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return oC(e);if("dDhHsSwW".includes(n))return lC(e);if(e.startsWith(Oe`\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 cC(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 Ut(vr(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Ut(fC(e),e);if(yu.has(n))return Ut(yu.get(n),e);if(/\d/.test(n))return Q1(t,e);if(e==="\\")throw new Error(Oe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Ut(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function J1(e){return{type:"Alternator",raw:e}}function gu(e,t){return{type:"Assertion",kind:e,raw:t}}function jh(e){return{type:"Backreference",raw:e}}function Ut(e,t){return{type:"Character",value:e,raw:t}}function X1(e){return{type:"CharacterClassClose",raw:e}}function Y1(e){return{type:"CharacterClassHyphen",raw:e}}function Z1(e){return{type:"CharacterClassIntersector",raw:e}}function mu(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function En(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Uh(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Cr(n.flags),raw:t}}function Q1(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function eC(e){return{type:"GroupClose",raw:e}}function Xn(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function tC(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function nC(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function rC(e){return{type:"Subroutine",raw:e}}const sC=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),yu=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function oC(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 Ut(vr(t.toUpperCase())-64,e)}function iC(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=wu(n),i=wu(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),Uh("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,Xn("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function aC(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=sC.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 tC(u,r??null,(s==null?void 0:s.split(","))??null,e)}function _u(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 nC(t,n,r,e)}function lC(e){const t=e[1].toLowerCase();return En({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function cC(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return En("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function wu(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 uC(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 fC(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 dC(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[jh(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(Oe`Octal encoded byte above 177 unsupported "${n}"`)}else u=vr(l);o.push(Ut(u,(a===0?"\\":"")+l))}return o}function hC(e){const t=[],n=new RegExp(xl,"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(_u(s.slice(0,-1)));continue}}}t.push(_u(s))}return t}function Gh(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 pC(e){return gC.has(e.type)}const gC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Wh(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=z1(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 Hn();case"Assertion":return mC(p);case"Backreference":return yC(p,o);case"Character":return Jo(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return _C(p,o,h);case"CharacterClassOpen":return wC(p,o,h);case"CharacterSet":return bC(p,o);case"Directive":return AC(p.kind,{flags:p.flags});case"GroupOpen":return vC(p,o,h);case"NamedCallout":return TC(p.kind,p.tag,p.arguments);case"Quantifier":return CC(p,o);case"Subroutine":return xC(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=RC(EC(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(Oe`Subroutine uses a duplicate group name "\g<${d}>"`);c.get(d)[0].isSubroutined=!0}else throw new Error(Oe`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function mC({kind:e}){return ka(Cr({"^":"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===Oe`\B`||e===Oe`\Y`})}function yC({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,Aa(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 Aa(r)}return s(+r)}function _C(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(),kC(i,l);throw new Error("Invalid character class range")}return Jo(vr("-"))}function wC({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[Fs()];let a=Cu(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push(Fs()),t.nextIndex++;else{const u=i.at(-1);u.body.push(s(u,n))}a=Cu(r[t.nextIndex],o)}const l=Fs({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 bC({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const a=Xo(n);if(Cl.has(a)&&!(i!=null&&i.has(a)))e="posix",n=a;else return Yn(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?$C(n,{negate:t}):Ea(e,{negate:t})}function vC(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=PC(e),u=l.type==="AbsenceFunction",c=vu(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&W1(o,l.name,[]).push(l)),u&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=xu(r[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(Hn()),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(bu(p)||p.type==="CapturingGroup")throw new Error(g)}else if(bu(p)||vu(p)&&p.negate)throw new Error(g)}}d=xu(r[t.nextIndex])}return t.nextIndex++,l}function CC({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!pC(o))throw new Error("Quantifier requires a repeatable token");const i=Vh(e,t,n,o);return s.body.pop(),i}function xC({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=qh(s);return r.push(i),i}function SC(e,t){return{type:"AbsenceFunction",kind:e,body:fs(t==null?void 0:t.body)}}function Hn(e){return{type:"Alternative",body:Kh(e==null?void 0:e.body)}}function ka(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function Aa(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function zh(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!IC(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:fs(t==null?void 0:t.body)}}function Jo(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 Fs(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Kh(e==null?void 0:e.body)}}function kC(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Ea(e,t){const n=!!(t!=null&&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 AC(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Cr(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function EC(e){return{type:"Flags",...e}}function gt(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:fs(e==null?void 0:e.body)}}function kn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:fs(e==null?void 0:e.body)}}function TC(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function $C(e,t){const n=!!(t!=null&&t.negate);if(!Cl.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Vh(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 RC(e,t){return{type:"Regex",body:fs(t==null?void 0:t.body),flags:e}}function qh(e){return{type:"Subroutine",ref:e}}function Yn(e,t){var s;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(s=n.unicodePropertyMap)==null?void 0:s.get(Xo(e));if(!r){if(n.normalizeUnknownPropertyNames)r=NC(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Oe`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function PC({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return SC("repeater");case"atomic":return gt({atomic:!0});case"capturing":return zh(s,{name:n});case"group":return gt({flags:e});case"lookahead":case"lookbehind":return kn({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function fs(e){if(e===void 0)e=[Hn()];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 Kh(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 bu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function vu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function IC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function NC(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 Xo(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Cu(e,t){return Cr(e,`${(t==null?void 0:t.type)==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function xu(e){return Cr(e,"Unclosed group")}function Gr(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){var _,v;let u=0,c=!1;const f={node:o,parent:i,key:a,container:l,root:e,remove(){Ts(l).splice(Math.max(0,Vn(a)+u),1),u--,c=!0},removeAllNextSiblings(){return Ts(l).splice(Vn(a)+1)},removeAllPrevSiblings(){const m=Vn(a)+u;return u-=m,Ts(l).splice(0,Math.max(0,m))},replaceWith(m,b={}){const C=!!b.traverse;l?l[Math.max(0,Vn(a)+u)]=m:Cr(i,"Can't replace root node")[a]=m,C&&s(m,i,a,l),c=!0},replaceWithMultiple(m,b={}){const C=!!b.traverse;if(Ts(l).splice(Math.max(0,Vn(a)+u),1,...m),u+=m.length-1,C){let E=0;for(let S=0;S<m.length;S++)E+=s(m[S],i,Vn(a)+S+E,l)}c=!0},skip(){c=!0}},{type:d}=o,h=t["*"],p=t[d],g=typeof h=="function"?h:h==null?void 0:h.enter,y=typeof p=="function"?p:p==null?void 0:p.enter;if(g==null||g(f,n),y==null||y(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==null?void 0:p.exit)==null||_.call(p,f,n),(v=h==null?void 0:h.exit)==null||v.call(h,f,n),u}return s(e),e}function Ts(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Vn(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const OC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function MC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function LC(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const lt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Sl(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===lt.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?lt.CHAR_CLASS:lt.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 Jh(e,t,n,r){Sl(e,t,n,r)}function DC(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===lt.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function $s(e,t,n){return!!DC(e,t,0,n)}function HC(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 Su=new RegExp(String.raw`(?<noncapturingStart>${OC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function BC(e,t){const n=(t==null?void 0:t.hiddenCaptures)??[];let r=(t==null?void 0: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(Su.lastIndex=Number.isNaN(c)?0:c+o.length;g=Su.exec(e);){const{0:y,index:_,groups:{capturingStart:v,noncapturingStart:m}}=g;if(y==="[")d++;else if(d)y==="]"&&d--;else if(y===s&&!p)c=_,p=!0;else if(p&&m)h++;else if(v)p?h++:(l++,i.push(l+u));else if(y===")"&&p){if(!h){u++;const b=l+u;if(e=`${e.slice(0,c)}${o}${e.slice(c+s.length,_)}))<$$${b}>)${e.slice(_+1)}`,f=!0,a.push(b),MC(n,b),r.size){const C=new Map;r.forEach((E,S)=>{C.set(S>=b?S+1:S,E.map(M=>M>=b?M+1:M))}),r=C}break}h--}}}while(f);return n.push(...a),e=Sl(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}`},lt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Xh=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ri=new RegExp(String.raw`
|
|
63
63
|
\\(?: \d+
|
|
64
64
|
| c[A-Za-z]
|
|
65
65
|
| [gk]<[^>]+>
|
|
@@ -72,9 +72,9 @@ var yp=Object.defineProperty;var _p=Object.getPrototypeOf;var wp=Reflect.get;var
|
|
|
72
72
|
| [A-Za-z\-]+:
|
|
73
73
|
| \(DEFINE\)
|
|
74
74
|
))?
|
|
75
|
-
| (?<qBase>${
|
|
75
|
+
| (?<qBase>${Xh})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
76
76
|
| \\?.
|
|
77
|
-
`.replace(/\s+/g,""),"gsu");function FC(e){if(!new RegExp(`${
|
|
77
|
+
`.replace(/\s+/g,""),"gsu");function FC(e){if(!new RegExp(`${Xh}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(Ri.lastIndex=0;i=Ri.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=LC(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}Ri.lastIndex+=d}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const it=String.raw,jC=it`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Ta=it`\(\?R=(?<rDepth>[^\)]+)\)|${jC}`,Yo=it`\(\?<(?![=!])(?<captureName>[^>]+)>`,Yh=it`${Yo}|(?<unnamed>\()(?!\?)`,Cn=new RegExp(it`${Yo}|${Ta}|\(\?|\\?.`,"gsu"),Pi="Cannot use multiple overlapping recursions";function UC(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(Ta,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&$s(e,it`\(\?\(DEFINE\)`,lt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=$s(e,it`\\[1-9]`,lt.DEFAULT),a=new Map,l=[];let u=!1,c=0,f=0,d;for(Cn.lastIndex=0;d=Cn.exec(e);){const{0:h,groups:{captureName:p,rDepth:g,gRNameOrNum:y,gRDepth:_}}=d;if(h==="[")c++;else if(c)h==="]"&&c--;else if(g){if(ku(g),u)throw new Error(Pi);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,d.index),m=e.slice(Cn.lastIndex);if($s(m,Ta,lt.DEFAULT))throw new Error(Pi);const b=+g-1;e=Au(v,m,b,!1,n,o,f),s=Tu(s,v,b,o.length,0,f);break}else if(y){ku(_);let v=!1;for(const z of l)if(z.name===y||z.num===+y){if(v=!0,z.hasRecursedWithin)throw new Error(Pi);break}if(!v)throw new Error(it`Recursive \g cannot be used outside the referenced group "${r==="external"?y:it`\g<${y}&R=${_}>`}"`);const m=a.get(y),b=HC(e,m);if(i&&$s(b,it`${Yo}|\((?!\?)`,lt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(m,d.index),E=b.slice(C.length+h.length),S=o.length,M=+_-1,F=Au(C,E,M,!0,n,o,f);s=Tu(s,C,M,o.length-S,S,f);const R=e.slice(0,m),K=e.slice(m+b.length);e=`${R}${F}${K}`,Cn.lastIndex+=F.length-h.length-C.length-E.length,l.forEach(z=>z.hasRecursedWithin=!0),u=!0}else if(p)f++,a.set(String(f),Cn.lastIndex),a.set(p,Cn.lastIndex),l.push({num:f,name:p});else if(h[0]==="("){const v=h==="(";v&&(f++,a.set(String(f),Cn.lastIndex)),l.push(v?{num:f}:{})}else h===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function ku(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 Au(e,t,n,r,s,o,i){const a=new Set;r&&Jh(e+t,Yo,({groups:{captureName:u}})=>{a.add(u)},lt.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${Eu(`(?:${e}`,"forward",...l)}(?:)${Eu(`${t})`,"backward",...l)}${t}`}function Eu(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+=Sl(e,it`${Yh}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return d;const y=`_$${f}`;if(p||h){const _=i+o.length+1;return o.push(_),GC(s,_),p?d:`(?<${h}${y}>`}return it`\k<${g}${y}>`},lt.DEFAULT)}return u}function GC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Tu(e,t,n,r,s,o){if(e.size&&r){let i=0;Jh(t,Yh,()=>i++,lt.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 y=0;y<=n;y++)p.push(g+i*y);else for(let y=0;y<=n;y++)p.push(g+d+f*y);l.set(h,p)}),l}return e}var Te=String.fromCodePoint,re=String.raw,Gt={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Gt.bugFlagVLiteralHyphenIsRange=Gt.unicodeSets?(()=>{try{new RegExp(re`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Gt.bugNestedClassIgnoresNegation=Gt.unicodeSets&&new RegExp("[[^a]]","v").test("a");function Co(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function rs(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function $a(e,t){return $u[e]>=$u[t]}function WC(e,t){if(e==null)throw new Error(t??"Value expected");return e}var $u={ES2025:2025,ES2024:2024,ES2018:2018},zC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Zh(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!zC[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=Gt.flagGroups?"ES2025":Gt.unicodeSets?"ES2024":"ES2018"),t}var VC="[ -\r ]",qC=new Set([Te(304),Te(305)]),Ot=re`[\p{L}\p{M}\p{N}\p{Pc}]`;function Qh(e){if(qC.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=XC.get(n),o=KC.get(n),i=JC.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 kl=new Map(`C Other
|
|
78
78
|
Cc Control cntrl
|
|
79
79
|
Cf Format
|
|
80
80
|
Cn Unassigned
|
|
@@ -164,9 +164,9 @@ Uppercase Upper
|
|
|
164
164
|
Variation_Selector VS
|
|
165
165
|
White_Space space
|
|
166
166
|
XID_Continue XIDC
|
|
167
|
-
XID_Start XIDS`.split(/\s/).map(e=>[
|
|
167
|
+
XID_Start XIDS`.split(/\s/).map(e=>[Xo(e),e])),KC=new Map([["s",Te(383)],[Te(383),"s"]]),JC=new Map([[Te(223),Te(7838)],[Te(107),Te(8490)],[Te(229),Te(8491)],[Te(969),Te(8486)]]),XC=new Map([Xt(453),Xt(456),Xt(459),Xt(498),...Ii(8072,8079),...Ii(8088,8095),...Ii(8104,8111),Xt(8124),Xt(8140),Xt(8188)]),YC=new Map([["alnum",re`[\p{Alpha}\p{Nd}]`],["alpha",re`\p{Alpha}`],["ascii",re`\p{ASCII}`],["blank",re`[\p{Zs}\t]`],["cntrl",re`\p{Cc}`],["digit",re`\p{Nd}`],["graph",re`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",re`\p{Lower}`],["print",re`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",re`[\p{P}\p{S}]`],["space",re`\p{space}`],["upper",re`\p{Upper}`],["word",re`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",re`\p{AHex}`]]);function ZC(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Xt(e){const t=Te(e);return[t.toLowerCase(),t]}function Ii(e,t){return ZC(e,t).map(n=>Xt(n))}var ep=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function QC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};tp(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:$a(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};Gr(e,ex,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};Gr(e,tx,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Gr(e,nx,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var ex={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=gt();o.body[0].body.push(kn({negate:!0,body:r}),Yn("Any"));const i=gt();i.body[0].body.push(Vh("greedy",0,1/0,o)),n(Ce(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];rs(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=rp(t.get(e));if(r){const s=gt({flags:r});s.body[0].body=e.body,e.body=[Ce(s,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(Ce(kn({body:[Hn({body:[ka("string_end")]}),Hn({body:[Jo(10)]})]}),t));else if(l==="line_start")i(Ce(Mt(re`(?<=\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&&lx(p))i(Ce(kn({negate:!0}),t));else{if(f)throw new Error(re`Uses "\G" in a way that requires a subclass`);i(Yt(ka("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(Ce(Mt(re`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!h&&!c){const p=`(?:(?<=${Ot})(?!${Ot})|(?<!${Ot})(?=${Ot}))`,g=`(?:(?<=${Ot})(?=${Ot})|(?<!${Ot})(?!${Ot}))`;i(Ce(Mt(u?g:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Oi(n)&&(n=Ni(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Oi(r)&&(r=Ni(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=Fs({body:[e]});n(Ce(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(Yt(Ea("digit",{negate:u}),t));return}if(i&&(l==="space"||c==="space")){n(Ce(Mi(Mt(VC),u),t));return}if(a&&(l==="word"||c==="word")){n(Yt(Ea("word",{negate:u}),t));return}if(l==="any")n(Yt(Yn("Any"),t));else if(l==="digit")n(Yt(Yn("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(re`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=re`\p{RI}{2}|${f}(?:\u200D${f})*`;n(Ce(Mt(re`(?>\r\n|${s?re`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(Yt(Yn("AHex",{negate:u}),t));else if(l==="newline")n(Ce(Mt(u?`[^
|
|
168
168
|
]`:`(?>\r
|
|
169
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(Ce(Ot(`[${f}]`),t))}else n(Ce(Oi(Ot(YC.get(c)),u),t));else if(l==="property")kl.has(Jo(c))||(e.key="sc");else if(l==="space")n(Yt(Yn("space",{negate:u}),t));else if(l==="word")n(Ce(Oi(Ot(Mt),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=gt({flags:l});u.body[0].body=i(),s(Ce(u,t),{traverse:!0})}else if(a==="keep"){const u=n.body[0],f=n.body.length===1&&Gh(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(re`Uses "\K" in a way that's unsupported`);const d=kn({behind:!0});d.body[0].body=o(),s(Ce(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!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&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(Ce(kn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=gt();t.body[0].body.push(e.body),e.body=Ce(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=op(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(re`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Mi(n)&&(n=Ii(n,t),e.ref=n)}},tx={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=Yt(Ru(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&rs(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=rs(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=Co(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?Ru(0):np(i,r.groupOriginByCopy,null);let u=l;if(!a){const c=rp(ox(i,d=>d.type==="Group"&&!!d.flags)),f=c?Co(r.globalFlags,c):r.globalFlags;rx(f,r.currentFlags)||(u=gt({flags:ix(f)}),u.body[0].body.push(l))}n(Ce(u,t),{traverse:!a})}},nx={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=>sx(i,e));if(!o.length)n(Ce(kn({negate:!0}),t));else if(o.length>1){const i=gt({atomic:!0,body:o.reverse().map(a=>Hn({body:[Ea(a.number)]}))});n(Ce(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=zh();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function tp(e){Gr(e,{"*"({node:t,parent:n}){t.parent=n}})}function rx(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function sx(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=sp(n.parent);for(const s of r){if(s===n)break;if(s===e||ip(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function np(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]=np(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function Ru(e){const t=qh(e);return t.isRecursive=!0,t}function ox(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Ii(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 rp(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{var o,i;(o=r.enable)!=null&&o[s]&&(delete n.disable[s],n.enable[s]=!0),(i=r.disable)!=null&&i[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 ix({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 sp(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function op(e){const t=e.find(n=>n.kind==="search_start"||cx(n,{negate:!1})||!ax(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=op(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function ip(e,t){const n=sp(e)??[];for(const r of n)if(r===t||ip(r,t))return!0;return!1}function ax({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function lx(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function cx(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Gh(e.body[0],{type:"Assertion",kind:"search_start"})}function Mi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Ot(e,t){const r=Wh(e,{...t,unicodePropertyMap:kl}).body;return r.length>1||r[0].body.length>1?gt({body:r}):r[0].body[0]}function Oi(e,t){return e.negate=t,e}function Yt(e,t){return e.parent=t,e}function Ce(e,t){return tp(e),e.parent=t,e}function ux(e,t){const n=Zh(t),r=$a(n.target,"ES2024"),s=$a(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];Gr(e,fx,{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,WC(dx[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&&rs(d._captureTransfers,h.transferTo,[]).push(p)}),d}var fx={"*":{enter({node:e},t){if(Nu(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Co({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Nu(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){El(Te(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),ap(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&ep.has(e.value)&&t.setHasCasedChar()}},dx={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?re`\B`:re`\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=qn(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&El(n)){const s=Qh(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");Gt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Iu)&&(i=[Xo(45),...i.filter(u=>!Iu(u))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Gt.bugNestedClassIgnoresNegation)&&!s){const c=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=gt(),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=Hn({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"&&!(Gt.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=qn(n,s),i=qn(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=ap(e);yx(l).forEach(c=>{a.add(Array.isArray(c)?`${qn(c[0],s)}-${qn(c[1],s)}`:qn(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?".":"[^]":re`[^\n]`;if(e==="digit")return t?re`\D`:re`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&ep.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?re`\P`:re`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?re`\W`:re`\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=Co(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${_x(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)+wx(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})`:re`\g<${t}&R=${r}>`}},hx=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),px=new Set(["-","\\","]","^","["]),gx=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Pu=new Map([[9,re`\t`],[10,re`\n`],[11,re`\v`],[12,re`\f`],[13,re`\r`],[8232,re`\u2028`],[8233,re`\u2029`],[65279,re`\uFEFF`]]),mx=new RegExp("^\\p{Cased}$","u");function El(e){return mx.test(e)}function ap(e,t){const n=!!(t!=null&&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(!El(a))continue;const l=Qh(a).filter(u=>{const c=u.codePointAt(0);return c<r||c>s});if(l.length&&(o.push(...l),n))break}return o}function qn(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Pu.has(e))return Pu.get(e);if(e<32||e>126&&e<160||e>262143||t&&bx(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?gx:px:hx,o=Te(e);return(s.has(o)?"\\":"")+o}function yx(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??(r=t[s]):r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function _x(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s!=null&&s.ignoreCase?"i":"")+(s!=null&&s.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${r}:`}function wx({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 Nu({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function bx(e){return e>47&&e<58}function Iu({type:e,value:t}){return e==="Character"&&t===45}var nn,Dt,Tn,rn,$n,ss,Ra,fn,vx=(fn=class extends RegExp{constructor(n,r,s){var t=(...Yk)=>(super(...Yk),_n(this,ss),_n(this,nn,new Map),_n(this,Dt,null),_n(this,Tn),_n(this,rn,null),_n(this,$n,null),k(this,"rawOptions",{}),this);const o=!!(s!=null&&s.lazyCompile);if(n instanceof RegExp){if(s)throw new Error("Cannot provide options when copying a regexp");const i=n;t(i,r),ht(this,Tn,i.source),i instanceof fn&&(ht(this,nn,ze(i,nn)),ht(this,rn,ze(i,rn)),ht(this,$n,ze(i,$n)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...s};t(o?"":n,r),ht(this,Tn,n),ht(this,nn,xx(i.hiddenCaptures,i.transfers)),ht(this,$n,i.strategy),this.rawOptions=s??{}}o||ht(this,Dt,this)}get source(){return ze(this,Tn)||"(?:)"}exec(n){if(!ze(this,Dt)){const{lazyCompile:o,...i}=this.rawOptions;ht(this,Dt,new fn(ze(this,Tn),this.flags,i))}const r=this.global||this.sticky,s=this.lastIndex;if(ze(this,$n)==="clip_search"&&r&&s){this.lastIndex=0;const o=ni(this,ss,Ra).call(this,n.slice(s));return o&&(Cx(o,s,n,this.hasIndices),this.lastIndex+=s),o}return ni(this,ss,Ra).call(this,n)}},nn=new WeakMap,Dt=new WeakMap,Tn=new WeakMap,rn=new WeakMap,$n=new WeakMap,ss=new WeakSet,Ra=function(n){ze(this,Dt).lastIndex=this.lastIndex;const r=Nl(fn.prototype,this,"exec").call(ze(this,Dt),n);if(this.lastIndex=ze(this,Dt).lastIndex,!r||!ze(this,nn).size)return r;const s=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);const i=[0];for(let a=1;a<s.length;a++){const{hidden:l,transferTo:u}=ze(this,nn).get(a)??{};if(l?i.push(null):(i.push(r.length),r.push(s[a]),this.hasIndices&&r.indices.push(o[a])),u&&s[a]!==void 0){const c=i[u];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(r[c]=s[a],this.hasIndices&&(r.indices[c]=o[a]),r.groups){ze(this,rn)||ht(this,rn,Sx(this.source));const f=ze(this,rn).get(u);f&&(r.groups[f]=s[a],this.hasIndices&&(r.indices.groups[f]=o[a]))}}}return r},fn);function Cx(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 xx(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)rs(n,o,{}).transferTo=r;return n}function Sx(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 kx(e,t){const n=Ex(e,t);return n.options?new vx(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Ex(e,t){const n=Zh(t),r=Wh(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:kl}),s=QC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=ux(s,n),i=UC(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=FC(i.pattern),l=BC(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 Mu=4294967295;class Ax{constructor(t,n={}){k(this,"regexps");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==null?void 0:s.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s==null||s.set(i,l),l}catch(l){if(s==null||s.set(i,l),r)return null;throw l}})}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:Mu,end:Mu,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 Tx(e,t){return kx(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||(t.regexConstructor=n=>Tx(n,{target:t.target})),{createScanner(n){return new Ax(n,t)},createString(n){return{content:n}}}}let Rx;const Tr=[];function Px(e){if(Tr.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Tr.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Tr.forEach(n=>n(t))},get(){return Rx.value},configurable:!0}),()=>{Tr.splice(Tr.indexOf(e),1)}}const Fe=Ae(null);async function lp(){Pa.value&&(Fe.value=await Pa.value("/__sitemap__/debug.json"))}const Pa=Ae(),cp=Ae(),up=Ae();Px(async e=>{Pa.value=e.host.app.$fetch,Bf(()=>{up.value=e.host.app.colorMode.value}),cp.value=e.devtools,lp()});const fp=Ae();function Nx(){return G1({themes:[Dr(()=>import("./CVO1_9PV.js"),[],import.meta.url),Dr(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[Dr(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:$x()}).then(e=>{fp.value=e})}function Ix(e,t){return Se(()=>{var r;const n=((r=cp.value)==null?void 0:r.colorMode)||"light";return fp.value.codeToHtml(on(e),{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Mx=["innerHTML"],dp=bt({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=Se(()=>{const r=Ix(t.code,"json");return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(G(),te("pre",{class:ke(["n-code-block",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Mx))}}),Ox={flex:"~ gap-3","items-center":""},Lx={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(G(),te("div",Ox,[e.icon?(G(),te("div",{key:0,class:ke(e.icon)},null,2)):De("",!0),Xe(t.$slots,"default",{},()=>[M("div",null,Oe(e.text),1)])]))}};function Dx(e){return Da()?(Lp(e),!0):!1}const Hx=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Bx=e=>typeof e<"u",Fx=Object.prototype.toString,jx=e=>Fx.call(e)==="[object Object]",Ux=()=>{};function Gx(...e){if(e.length!==1)return uf(...e);const t=e[0];return typeof t=="function"?$o(ig(()=>({get:t,set:Ux}))):Ae(t)}function Wx(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 hp=e=>e();function zx(e=hp,t={}){const{initialState:n="active"}=t,r=Gx(n==="active");function s(){r.value=!1}function o(){r.value=!0}const i=(...a)=>{r.value&&e(...a)};return{isActive:$o(r),pause:s,resume:o,eventFilter:i}}function Li(e){return Array.isArray(e)?e:[e]}function Vx(e){return ls()}function qx(e,t,n={}){const{eventFilter:r=hp,...s}=n;return an(e,Wx(r,t),s)}function Kx(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:u}=zx(r,{initialState:s});return{stop:qx(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:u}}function Xx(e,t=!0,n){Vx()?Ka(e,n):t?e():_r(e)}function Jx(e,t,n){return an(e,t,{...n,immediate:!0})}const xo=Hx?window:void 0;function Yx(e){var t;const n=on(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Ou(...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=Se(()=>{const a=Li(on(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=Jx(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(u=>Yx(u)))!=null?l:[xo].filter(u=>u!=null),Li(on(s.value?e[1]:e[0])),Li(ie(s.value?e[2]:e[1])),on(s.value?e[3]:e[2])]},([a,l,u,c])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(u!=null&&u.length))return;const f=jx(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 Dx(n),i}function Zx(e){return JSON.parse(JSON.stringify(e))}const Rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ps="__vueuse_ssr_handlers__",Qx=eS();function eS(){return Ps in Rs||(Rs[Ps]=Rs[Ps]||{}),Rs[Ps]}function tS(e,t){return Qx[e]||t}function nS(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 rS={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()}},Lu="vueuse-storage";function sS(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=xo,eventFilter:d,onError:h=H=>{console.error(H)},initOnMounted:p}=r,g=(c?Ws:Ae)(t),y=Se(()=>on(e));if(!n)try{n=tS("getDefaultStorage",()=>{var H;return(H=xo)==null?void 0:H.localStorage})()}catch(H){h(H)}if(!n)return g;const _=on(t),v=nS(_),m=(s=r.serializer)!=null?s:rS[v],{pause:b,resume:C}=Kx(g,()=>R(g.value),{flush:o,deep:i,eventFilter:d});an(y,()=>z(),{flush:o});let A=!1;const S=H=>{p&&!A||z(H)},O=H=>{p&&!A||ee(H)};f&&a&&(n instanceof Storage?Ou(f,"storage",S,{passive:!0}):Ou(f,Lu,O)),p?Xx(()=>{A=!0,z()}):z();function F(H,J){if(f){const L={key:y.value,oldValue:H,newValue:J,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",L):new CustomEvent(Lu,{detail:L}))}}function R(H){try{const J=n.getItem(y.value);if(H==null)F(J,null),n.removeItem(y.value);else{const L=m.write(H);J!==L&&(n.setItem(y.value,L),F(J,L))}}catch(J){h(J)}}function K(H){const J=H?H.newValue:n.getItem(y.value);if(J==null)return l&&_!=null&&n.setItem(y.value,m.write(_)),_;if(!H&&u){const L=m.read(J);return typeof u=="function"?u(L,_):v==="object"&&!Array.isArray(L)?{..._,...L}:L}else return typeof J!="string"?J:m.read(J)}function z(H){if(!(H&&H.storageArea!==n)){if(H&&H.key==null){g.value=_;return}if(!(H&&H.key!==y.value)){b();try{(H==null?void 0:H.newValue)!==m.write(g.value)&&(g.value=K(H))}catch(J){h(J)}finally{H?_r(C):C()}}}}function ee(H){z(H.detail)}return g}function oS(e,t,n={}){const{window:r=xo}=n;return sS(e,t,r==null?void 0:r.localStorage,n)}function iS(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=ls(),p=(h==null?void 0:h.emit)||((s=h==null?void 0:h.$emit)==null?void 0:s.bind(h))||((i=(o=h==null?void 0:h.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(h==null?void 0:h.proxy));let g=u;g=g||`update:${t.toString()}`;const y=m=>a?typeof a=="function"?a(m):Zx(m):m,_=()=>Bx(e[t])?y(e[t]):f,v=m=>{d?d(m)&&p(g,m):p(g,m)};if(l){const m=_(),b=Ae(m);let C=!1;return an(()=>e[t],A=>{C||(C=!0,b.value=y(A),_r(()=>C=!1))}),an(b,A=>{!C&&(A!==e[t]||c)&&v(A)},{deep:c}),b}else return Se({get(){return _()},set(m){v(m)}})}const aS=["open"],lS={"text-base":""},cS={key:0,"text-sm":"",op50:""},uS=bt({__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=iS(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=dl,a=Lx;return G(),te(we,null,[M("details",{open:ie(n),onToggle:r},[M("summary",{class:ke(["cursor-pointer select-none n-bg-active hover:bg-active p4 rounded transition-all",s.collapse?"":"pointer-events-none"])},[V(a,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:ke([ie(n)?"op100":"op60",s.headerClass])},{default:oe(()=>[M("div",null,[M("div",lS,[Xe(s.$slots,"text",{},()=>[ae(Oe(s.text),1)],!0)]),s.description||s.$slots.description?(G(),te("div",cS,[Xe(s.$slots,"description",{},()=>[ae(Oe(s.description),1)],!0)])):De("",!0)]),o[0]||(o[0]=M("div",{class:"flex-auto"},null,-1)),Xe(s.$slots,"actions",{},void 0,!0),s.collapse?(G(),be(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):De("",!0)]),_:3,__:[0]},8,["icon","text","class"])],2),M("div",{class:ke(["flex flex-col flex-gap2 pb6 pt2",typeof s.padding=="string"?s.padding:s.padding?"px4":""])},[Xe(s.$slots,"details",{},void 0,!0),M("div",{class:ke([s.containerClass,"mt1"])},[Xe(s.$slots,"default",{},void 0,!0)],2),Xe(s.$slots,"footer",{},void 0,!0)],2)],40,aS),o[1]||(o[1]=M("div",{class:"x-divider"},null,-1))],64)}}}),pp=Vo(uS,[["__scopeId","data-v-1b9488bc"]]),fS={class:"flex space-x-5"},dS={class:"opacity-80 text-base mb-1 flex space-x-3 items-center"},hS={key:0,class:"flex space-x-2"},pS={key:0,class:"opacity-60 text-sm"},gS={class:"flex items-center space-x-3"},mS={key:0},yS={key:1,class:"text-xs mt-1 opacity-70"},_S={key:0},wS={key:2,class:"px-3 py-3 mt-2 dark:bg-gray-900/50 bg-gray-50/50 opacity-70"},bS={class:"list-disc ml-5"},vS=["innerHTML"],CS=bt({__name:"Source",props:{source:{},showContext:{type:Boolean}},setup(e){const t=e,n=Se(()=>{var o;const s=typeof t.source.fetch=="string"?t.source.fetch:t.source.fetch[0];return s.includes("http")?s:Bn(((o=Fe.value)==null?void 0:o.nitroOrigin)||"localhost",s)});function r(s){return s.replace(/`([^`]+)`/g,"<code>$1</code>")}return(s,o)=>{const i=dl,a=eh,l=nh,u=dp,c=pp;return G(),be(c,null,{text:oe(()=>[M("div",fS,[M("h3",dS,[s.source.fetch?(G(),te("div",hS,[V(i,{icon:"carbon:api-1",class:"opacity-50 text-lg"}),s.source.timeTakenMs?(G(),te("div",pS,Oe(s.source.timeTakenMs)+"ms ",1)):De("",!0)])):De("",!0),M("div",null,Oe(s.source.context.name),1),M("div",null,[V(a,null,{default:oe(()=>{var f;return[ae(Oe(((f=s.source.urls)==null?void 0:f.length)||0),1)]}),_:1})])])])]),description:oe(()=>[M("div",gS,[s.source.fetch?(G(),te("div",mS,[V(l,{href:ie(n),target:"_blank"},{default:oe(()=>[ae(Oe(s.source.fetch),1)]),_:1},8,["href"])])):De("",!0),s.source.context.description?(G(),te("div",yS,Oe(s.source.context.description),1)):De("",!0)])]),default:oe(()=>{var f;return[s.source.error?(G(),te("div",_S,[V(i,{icon:"carbon:warning",class:"text-red-500"}),ae(" "+Oe(s.source.error),1)])):(G(),be(u,{key:1,class:"max-h-[250px] overflow-y-auto",code:JSON.stringify(s.source.urls,null,2),lang:"json"},null,8,["code"])),(f=s.source.context.tips)!=null&&f.length?(G(),te("div",wS,[o[0]||(o[0]=M("h3",{class:"text-sm font-bold mb-1"}," Hints ",-1)),M("ul",bS,[(G(!0),te(we,null,Xn(s.source.context.tips,(d,h)=>(G(),te("li",{key:h,class:"text-sm opacity-80 mb-1",innerHTML:r(d)},null,8,vS))),128))])])):De("",!0)]}),_:1})}}}),xS={class:"relative n-bg-base flex flex-col"},SS={class:"sticky top-0 z-2 px-4 pt-4"},kS={class:"flex justify-between items-start",mb2:""},ES={class:"flex space-x-5"},AS={"text-xl":"",flex:"","items-center":"","gap-2":""},TS={class:"flex items-center space-x-3 text-xl"},$S={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},RS={class:"px-5 py-2"},PS={"text-lg":"",flex:"","items-center":""},NS={class:"px-5 py-2"},IS={"text-lg":"",flex:"","items-center":""},MS={class:"px-5 py-2"},OS={"text-lg":"",flex:"","items-center":""},LS={class:"px-5 py-2"},DS={"text-lg":"",flex:"","items-center":""},HS={class:"px-5 py-2"},BS={"text-lg":"",flex:"","items-center":""},FS=["value","title"],jS={class:"items-center space-x-3 hidden lg:flex"},US={class:"opacity-80 text-sm"},GS={class:"opacity-80 text-sm"},WS={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},zS={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},VS={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},qS={key:0,class:"space-y-5"},KS={class:"opacity-80 text-base mb-1"},XS={class:"px-3 py-2 space-y-5"},JS={key:0},YS={class:"text-sm opacity-70"},ZS={key:0,class:"flex space-x-5"},QS={class:"flex-grow"},ek={class:"flex space-x-5"},tk={class:"flex-grow flex flex-col justify-center"},nk={key:0,class:"opacity-70"},rk={key:1,class:"opacity-70"},sk={class:"opacity-50 text-xs mt-2"},ok={class:"flex space-x-5"},ik={class:"n-bg-base/20 flex-grow"},ak={key:1,class:"space-y-5"},lk={key:2,class:"space-y-5"},ck={key:3,class:"h-full max-h-full overflow-hidden"},uk={class:"opacity-80 text-base mb-1"},fk={class:"px-3 py-2 space-y-5"},dk={key:4,class:"h-full max-h-full overflow-hidden"},hk=bt({__name:"app",async setup(e){let t,n;[t,n]=Lg(()=>Nx()),await t,n();const r=Ae(!1);async function s(){r.value=!0,Fe.value=null,await lp(),setTimeout(()=>{r.value=!1},300)}const o=oS("@nuxtjs/sitemap:tab","sitemaps");function i(f){var d;return Fe.value?f==="sitemap"||f==="sitemap.xml"?`${Fe.value.nitroOrigin}sitemap.xml`:f==="index"?`${Fe.value.nitroOrigin}sitemap_index.xml`:Bn(Fe.value.nitroOrigin,(d=Fe.value.runtimeConfig)==null?void 0:d.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}lw({htmlAttrs:{class:()=>up.value||""}});const l=Se(()=>{var f,d;return((d=(f=Fe.value)==null?void 0:f.runtimeConfig)==null?void 0:d.excludeAppSources)||[]}),u=Se(()=>{var f;return(((f=Fe.value)==null?void 0:f.globalSources)||[]).filter(d=>d.sourceType==="app")}),c=Se(()=>{var f;return(((f=Fe.value)==null?void 0:f.globalSources)||[]).filter(d=>d.sourceType==="user")});return(f,d)=>{var A;const h=dl,p=eh,g=hn("VTooltip"),y=nh,_=Jb,v=t0,m=CS,b=dp,C=pp;return G(),te("div",xS,[M("header",SS,[M("div",kS,[M("div",ES,[M("h1",AS,[V(h,{icon:"carbon:load-balancer-application",class:"text-blue-300"}),d[2]||(d[2]=ae(" Sitemap ")),V(p,{class:"text-sm"},{default:oe(()=>{var S,O;return[ae(Oe((O=(S=ie(Fe))==null?void 0:S.runtimeConfig)==null?void 0:O.version),1)]}),_:1})])]),M("div",TS,[M("fieldset",$S,[(G(),te(we,null,Xn(["sitemaps","user-sources","app-sources","debug","docs"],(S,O)=>M("label",{key:O,class:ke(["relative n-border-base hover:n-bg-active cursor-pointer",[O?"border-l n-border-base ml--1px":"",S===ie(o)?"n-bg-active":""]])},[S==="sitemaps"?(G(),te("div",{key:0,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[3]||(d[3]=[ae(" Sitemaps ")])),default:oe(()=>[M("div",RS,[M("h2",PS,[V(h,{icon:"carbon:load-balancer-application opacity-50"}),V(p,{class:"text-sm"},{default:oe(()=>{var F;return[ae(Oe(Object.keys(((F=ie(Fe))==null?void 0:F.sitemaps)||{}).length||0),1)]}),_:1})])])]),_:1})],2)):De("",!0),S==="user-sources"?(G(),te("div",{key:1,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[4]||(d[4]=[ae(" User Sources ")])),default:oe(()=>[M("div",NS,[M("h2",IS,[V(h,{icon:"carbon:group-account opacity-50"}),V(p,{class:"text-sm"},{default:oe(()=>[ae(Oe(c.value.length),1)]),_:1})])])]),_:1})],2)):De("",!0),S==="app-sources"?(G(),te("div",{key:2,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[5]||(d[5]=[ae(" App Sources ")])),default:oe(()=>[M("div",MS,[M("h2",OS,[V(h,{icon:"carbon:bot opacity-50"}),V(p,{class:"text-sm"},{default:oe(()=>[ae(Oe(u.value.length),1)]),_:1})])])]),_:1})],2)):S==="debug"?(G(),te("div",{key:3,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[6]||(d[6]=[ae(" Debug ")])),default:oe(()=>[M("div",LS,[M("h2",DS,[V(h,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):S==="docs"?(G(),te("div",{key:4,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[7]||(d[7]=[ae(" Documentation ")])),default:oe(()=>[M("div",HS,[M("h2",BS,[V(h,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):De("",!0),wg(M("input",{"onUpdate:modelValue":d[0]||(d[0]=F=>Ee(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,FS),[[Vm,ie(o)]])],2)),64))]),V(g,null,{popper:oe(()=>d[8]||(d[8]=[ae(" Refresh ")])),default:oe(()=>[M("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:s},[V(h,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),M("div",jS,[M("div",US,[V(y,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:oe(()=>[V(h,{icon:"carbon:favorite",class:"mr-[2px]"}),d[9]||(d[9]=ae(" Sponsor "))]),_:1,__:[9]})]),M("div",GS,[V(y,{href:"https://github.com/nuxt-modules/sitemap",target:"_blank"},{default:oe(()=>[V(h,{icon:"logos:github-icon",class:"mr-[2px]"}),d[10]||(d[10]=ae(" Submit an issue "))]),_:1,__:[10]})]),M("a",WS,[V(_)])])])]),M("div",zS,[M("main",VS,[!((A=ie(Fe))!=null&&A.globalSources)||r.value?(G(),be(v,{key:0})):(G(),te(we,{key:1},[ie(o)==="sitemaps"?(G(),te("div",qS,[d[23]||(d[23]=M("div",null,[M("h2",{class:"text-lg mb-1"}," Sitemaps "),M("p",{"text-xs":"",op60:""}," The sitemaps generated from your site. ")],-1)),(G(!0),te(we,null,Xn(ie(Fe).sitemaps,(S,O)=>(G(),be(C,{key:O},{text:oe(()=>[M("h3",KS,[ae(Oe(S.sitemapName)+" ",1),(S.sources||[]).some(F=>!!F.error)?(G(),be(h,{key:0,icon:"carbon:warning",class:"text-red-500"})):De("",!0)])]),description:oe(()=>[V(y,{target:"_blank",href:i(S.sitemapName)},{default:oe(()=>[ae(Oe(i(S.sitemapName)),1)]),_:2},1032,["href"])]),default:oe(()=>[M("div",XS,[S.sitemapName==="index"?(G(),te("div",JS,[d[14]||(d[14]=M("div",{class:"text-sm mb-1 opacity-80"}," This is a special sitemap file that links to your other sitemaps. ",-1)),M("div",YS,[d[12]||(d[12]=ae(" You can learn about this on the ")),V(y,{underline:"",target:"_blank",href:"https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps"},{default:oe(()=>d[11]||(d[11]=[ae(" Google Search Central ")])),_:1,__:[11]}),d[13]||(d[13]=ae(". "))])])):(G(),te(we,{key:1},[S.sources&&S.sources.length?(G(),te("div",ZS,[d[15]||(d[15]=M("div",{class:"w-40"},[M("div",{class:"font-bold text-sm mb-1"}," Sources "),M("div",{class:"opacity-40 text-xs max-w-60"},[ae(" Local sources associated with just this sitemap."),M("br"),ae("Example: Load in a dynamic list of URLs from an API endpoint. ")])],-1)),M("div",QS,[(G(!0),te(we,null,Xn(S.sources,(F,R)=>(G(),be(m,{key:R,source:F},null,8,["source"]))),128))])])):De("",!0),M("div",ek,[d[21]||(d[21]=M("div",{class:"w-40"},[M("div",{class:"font-bold text-sm mb-1"}," App Sources "),M("div",{class:"opacity-40 text-xs max-w-60"},[ae(" Configured with the "),M("code",null,"includeAppSources"),ae(" option. ")])],-1)),M("div",tk,[S.includeAppSources&&l.value!==!0?(G(),te("div",nk,[V(h,{icon:"carbon:checkmark",class:"text-green-500 text-lg"}),d[16]||(d[16]=ae(" Enabled "))])):(G(),te("div",rk,[V(h,{icon:"carbon:close",class:"text-red-500 text-lg"}),d[17]||(d[17]=ae(" Disabled "))])),M("div",sk,[d[19]||(d[19]=ae(" Switch to ")),V(y,{underline:"",class:"cursor-pointer",onClick:d[1]||(d[1]=F=>o.value="app-sources")},{default:oe(()=>d[18]||(d[18]=[ae(" App sources ")])),_:1,__:[18]}),d[20]||(d[20]=ae(" to learn more. "))])])]),M("div",ok,[d[22]||(d[22]=M("div",{class:"w-40"},[M("div",{class:"font-bold text-sm mb-1"}," Sitemap Options "),M("div",{class:"opacity-40 text-xs max-w-60"}," Extra options used to filter the URLs on the final sitemap and set defaults. ")],-1)),M("div",ik,[V(b,{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))])):ie(o)==="app-sources"?(G(),te("div",ak,[d[24]||(d[24]=M("div",null,[M("h2",{class:"text-lg mb-1"}," App Sources "),M("p",{"text-xs":"",op60:""}," Automatic global sources generated from your application. ")],-1)),(G(!0),te(we,null,Xn(u.value,(S,O)=>(G(),be(m,{key:O,source:S},null,8,["source"]))),128))])):ie(o)==="user-sources"?(G(),te("div",lk,[d[25]||(d[25]=M("div",null,[M("h2",{class:"text-lg mb-1"}," User Sources "),M("p",{"text-xs":"",op60:""}," Manually provided global sources provided by you. ")],-1)),(G(!0),te(we,null,Xn(c.value,(S,O)=>(G(),be(m,{key:O,source:S},null,8,["source"]))),128))])):ie(o)==="debug"?(G(),te("div",ck,[V(C,null,{text:oe(()=>[M("h3",uk,[V(h,{icon:"carbon:settings",class:"mr-1"}),d[26]||(d[26]=ae(" Runtime Config "))])]),default:oe(()=>{var S;return[M("div",fk,[V(b,{code:JSON.stringify((S=ie(Fe))==null?void 0:S.runtimeConfig,null,2),lang:"json"},null,8,["code"])])]}),_:1})])):ie(o)==="docs"?(G(),te("div",dk,d[27]||(d[27]=[M("iframe",{src:"https://nuxtseo.com/sitemap",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)]))):De("",!0)],64))])])])}}}),pk={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
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(Ce(Mt(`[${f}]`),t))}else n(Ce(Mi(Mt(YC.get(c)),u),t));else if(l==="property")kl.has(Xo(c))||(e.key="sc");else if(l==="space")n(Yt(Yn("space",{negate:u}),t));else if(l==="word")n(Ce(Mi(Mt(Ot),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=gt({flags:l});u.body[0].body=i(),s(Ce(u,t),{traverse:!0})}else if(a==="keep"){const u=n.body[0],f=n.body.length===1&&Gh(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(re`Uses "\K" in a way that's unsupported`);const d=kn({behind:!0});d.body[0].body=o(),s(Ce(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!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&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(Ce(kn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=gt();t.body[0].body.push(e.body),e.body=Ce(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=op(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(re`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Oi(n)&&(n=Ni(n,t),e.ref=n)}},tx={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=Yt(Ru(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&rs(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=rs(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=Co(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?Ru(0):np(i,r.groupOriginByCopy,null);let u=l;if(!a){const c=rp(ox(i,d=>d.type==="Group"&&!!d.flags)),f=c?Co(r.globalFlags,c):r.globalFlags;rx(f,r.currentFlags)||(u=gt({flags:ix(f)}),u.body[0].body.push(l))}n(Ce(u,t),{traverse:!a})}},nx={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=>sx(i,e));if(!o.length)n(Ce(kn({negate:!0}),t));else if(o.length>1){const i=gt({atomic:!0,body:o.reverse().map(a=>Hn({body:[Aa(a.number)]}))});n(Ce(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=zh();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function tp(e){Gr(e,{"*"({node:t,parent:n}){t.parent=n}})}function rx(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function sx(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=sp(n.parent);for(const s of r){if(s===n)break;if(s===e||ip(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function np(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]=np(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function Ru(e){const t=qh(e);return t.isRecursive=!0,t}function ox(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Ni(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 rp(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{var o,i;(o=r.enable)!=null&&o[s]&&(delete n.disable[s],n.enable[s]=!0),(i=r.disable)!=null&&i[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 ix({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 sp(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function op(e){const t=e.find(n=>n.kind==="search_start"||cx(n,{negate:!1})||!ax(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=op(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function ip(e,t){const n=sp(e)??[];for(const r of n)if(r===t||ip(r,t))return!0;return!1}function ax({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function lx(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function cx(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Gh(e.body[0],{type:"Assertion",kind:"search_start"})}function Oi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Mt(e,t){const r=Wh(e,{...t,unicodePropertyMap:kl}).body;return r.length>1||r[0].body.length>1?gt({body:r}):r[0].body[0]}function Mi(e,t){return e.negate=t,e}function Yt(e,t){return e.parent=t,e}function Ce(e,t){return tp(e),e.parent=t,e}function ux(e,t){const n=Zh(t),r=$a(n.target,"ES2024"),s=$a(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];Gr(e,fx,{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,WC(dx[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&&rs(d._captureTransfers,h.transferTo,[]).push(p)}),d}var fx={"*":{enter({node:e},t){if(Iu(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Co({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Iu(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Al(Te(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),ap(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&ep.has(e.value)&&t.setHasCasedChar()}},dx={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?re`\B`:re`\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=qn(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Al(n)){const s=Qh(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");Gt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Nu)&&(i=[Jo(45),...i.filter(u=>!Nu(u))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Gt.bugNestedClassIgnoresNegation)&&!s){const c=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=gt(),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=Hn({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"&&!(Gt.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=qn(n,s),i=qn(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=ap(e);yx(l).forEach(c=>{a.add(Array.isArray(c)?`${qn(c[0],s)}-${qn(c[1],s)}`:qn(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?".":"[^]":re`[^\n]`;if(e==="digit")return t?re`\D`:re`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&ep.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?re`\P`:re`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?re`\W`:re`\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=Co(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${_x(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)+wx(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})`:re`\g<${t}&R=${r}>`}},hx=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),px=new Set(["-","\\","]","^","["]),gx=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Pu=new Map([[9,re`\t`],[10,re`\n`],[11,re`\v`],[12,re`\f`],[13,re`\r`],[8232,re`\u2028`],[8233,re`\u2029`],[65279,re`\uFEFF`]]),mx=new RegExp("^\\p{Cased}$","u");function Al(e){return mx.test(e)}function ap(e,t){const n=!!(t!=null&&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(!Al(a))continue;const l=Qh(a).filter(u=>{const c=u.codePointAt(0);return c<r||c>s});if(l.length&&(o.push(...l),n))break}return o}function qn(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Pu.has(e))return Pu.get(e);if(e<32||e>126&&e<160||e>262143||t&&bx(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?gx:px:hx,o=Te(e);return(s.has(o)?"\\":"")+o}function yx(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??(r=t[s]):r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function _x(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s!=null&&s.ignoreCase?"i":"")+(s!=null&&s.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${r}:`}function wx({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 Iu({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function bx(e){return e>47&&e<58}function Nu({type:e,value:t}){return e==="Character"&&t===45}var nn,Dt,Tn,rn,$n,ss,Ra,fn,vx=(fn=class extends RegExp{constructor(n,r,s){var t=(...Yk)=>(super(...Yk),_n(this,ss),_n(this,nn,new Map),_n(this,Dt,null),_n(this,Tn),_n(this,rn,null),_n(this,$n,null),k(this,"rawOptions",{}),this);const o=!!(s!=null&&s.lazyCompile);if(n instanceof RegExp){if(s)throw new Error("Cannot provide options when copying a regexp");const i=n;t(i,r),ht(this,Tn,i.source),i instanceof fn&&(ht(this,nn,ze(i,nn)),ht(this,rn,ze(i,rn)),ht(this,$n,ze(i,$n)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...s};t(o?"":n,r),ht(this,Tn,n),ht(this,nn,xx(i.hiddenCaptures,i.transfers)),ht(this,$n,i.strategy),this.rawOptions=s??{}}o||ht(this,Dt,this)}get source(){return ze(this,Tn)||"(?:)"}exec(n){if(!ze(this,Dt)){const{lazyCompile:o,...i}=this.rawOptions;ht(this,Dt,new fn(ze(this,Tn),this.flags,i))}const r=this.global||this.sticky,s=this.lastIndex;if(ze(this,$n)==="clip_search"&&r&&s){this.lastIndex=0;const o=ni(this,ss,Ra).call(this,n.slice(s));return o&&(Cx(o,s,n,this.hasIndices),this.lastIndex+=s),o}return ni(this,ss,Ra).call(this,n)}},nn=new WeakMap,Dt=new WeakMap,Tn=new WeakMap,rn=new WeakMap,$n=new WeakMap,ss=new WeakSet,Ra=function(n){ze(this,Dt).lastIndex=this.lastIndex;const r=Il(fn.prototype,this,"exec").call(ze(this,Dt),n);if(this.lastIndex=ze(this,Dt).lastIndex,!r||!ze(this,nn).size)return r;const s=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);const i=[0];for(let a=1;a<s.length;a++){const{hidden:l,transferTo:u}=ze(this,nn).get(a)??{};if(l?i.push(null):(i.push(r.length),r.push(s[a]),this.hasIndices&&r.indices.push(o[a])),u&&s[a]!==void 0){const c=i[u];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(r[c]=s[a],this.hasIndices&&(r.indices[c]=o[a]),r.groups){ze(this,rn)||ht(this,rn,Sx(this.source));const f=ze(this,rn).get(u);f&&(r.groups[f]=s[a],this.hasIndices&&(r.indices.groups[f]=o[a]))}}}return r},fn);function Cx(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 xx(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)rs(n,o,{}).transferTo=r;return n}function Sx(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 kx(e,t){const n=Ax(e,t);return n.options?new vx(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Ax(e,t){const n=Zh(t),r=Wh(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:kl}),s=QC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=ux(s,n),i=UC(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=FC(i.pattern),l=BC(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 Ou=4294967295;class Ex{constructor(t,n={}){k(this,"regexps");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==null?void 0:s.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s==null||s.set(i,l),l}catch(l){if(s==null||s.set(i,l),r)return null;throw l}})}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:Ou,end:Ou,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 Tx(e,t){return kx(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||(t.regexConstructor=n=>Tx(n,{target:t.target})),{createScanner(n){return new Ex(n,t)},createString(n){return{content:n}}}}let Rx;const Tr=[];function Px(e){if(Tr.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Tr.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Tr.forEach(n=>n(t))},get(){return Rx.value},configurable:!0}),()=>{Tr.splice(Tr.indexOf(e),1)}}const Fe=Ee(null);async function lp(){Pa.value&&(Fe.value=await Pa.value("/__sitemap__/debug.json"))}const Pa=Ee(),cp=Ee(),up=Ee();Px(async e=>{Pa.value=e.host.app.$fetch,Bf(()=>{up.value=e.host.app.colorMode.value}),cp.value=e.devtools,lp()});const fp=Ee();function Ix(){return G1({themes:[Dr(()=>import("./CVO1_9PV.js"),[],import.meta.url),Dr(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[Dr(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:$x()}).then(e=>{fp.value=e})}function Nx(e,t){return Se(()=>{var r;const n=((r=cp.value)==null?void 0:r.colorMode)||"light";return fp.value.codeToHtml(on(e),{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Ox=["innerHTML"],dp=bt({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=Se(()=>{const r=Nx(t.code,"json");return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(G(),te("pre",{class:ke(["n-code-block",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Ox))}}),Mx={flex:"~ gap-3","items-center":""},Lx={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(G(),te("div",Mx,[e.icon?(G(),te("div",{key:0,class:ke(e.icon)},null,2)):De("",!0),Je(t.$slots,"default",{},()=>[O("div",null,Me(e.text),1)])]))}};function Dx(e){return Da()?(Lp(e),!0):!1}const Hx=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Bx=e=>typeof e<"u",Fx=Object.prototype.toString,jx=e=>Fx.call(e)==="[object Object]",Ux=()=>{};function Gx(...e){if(e.length!==1)return uf(...e);const t=e[0];return typeof t=="function"?$o(ig(()=>({get:t,set:Ux}))):Ee(t)}function Wx(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 hp=e=>e();function zx(e=hp,t={}){const{initialState:n="active"}=t,r=Gx(n==="active");function s(){r.value=!1}function o(){r.value=!0}const i=(...a)=>{r.value&&e(...a)};return{isActive:$o(r),pause:s,resume:o,eventFilter:i}}function Li(e){return Array.isArray(e)?e:[e]}function Vx(e){return ls()}function qx(e,t,n={}){const{eventFilter:r=hp,...s}=n;return an(e,Wx(r,t),s)}function Kx(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:u}=zx(r,{initialState:s});return{stop:qx(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:u}}function Jx(e,t=!0,n){Vx()?Ka(e,n):t?e():_r(e)}function Xx(e,t,n){return an(e,t,{...n,immediate:!0})}const xo=Hx?window:void 0;function Yx(e){var t;const n=on(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Mu(...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=Se(()=>{const a=Li(on(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=Xx(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(u=>Yx(u)))!=null?l:[xo].filter(u=>u!=null),Li(on(s.value?e[1]:e[0])),Li(ie(s.value?e[2]:e[1])),on(s.value?e[3]:e[2])]},([a,l,u,c])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(u!=null&&u.length))return;const f=jx(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 Dx(n),i}function Zx(e){return JSON.parse(JSON.stringify(e))}const Rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ps="__vueuse_ssr_handlers__",Qx=eS();function eS(){return Ps in Rs||(Rs[Ps]=Rs[Ps]||{}),Rs[Ps]}function tS(e,t){return Qx[e]||t}function nS(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 rS={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()}},Lu="vueuse-storage";function sS(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=xo,eventFilter:d,onError:h=H=>{console.error(H)},initOnMounted:p}=r,g=(c?Ws:Ee)(t),y=Se(()=>on(e));if(!n)try{n=tS("getDefaultStorage",()=>{var H;return(H=xo)==null?void 0:H.localStorage})()}catch(H){h(H)}if(!n)return g;const _=on(t),v=nS(_),m=(s=r.serializer)!=null?s:rS[v],{pause:b,resume:C}=Kx(g,()=>R(g.value),{flush:o,deep:i,eventFilter:d});an(y,()=>z(),{flush:o});let E=!1;const S=H=>{p&&!E||z(H)},M=H=>{p&&!E||ee(H)};f&&a&&(n instanceof Storage?Mu(f,"storage",S,{passive:!0}):Mu(f,Lu,M)),p?Jx(()=>{E=!0,z()}):z();function F(H,X){if(f){const L={key:y.value,oldValue:H,newValue:X,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",L):new CustomEvent(Lu,{detail:L}))}}function R(H){try{const X=n.getItem(y.value);if(H==null)F(X,null),n.removeItem(y.value);else{const L=m.write(H);X!==L&&(n.setItem(y.value,L),F(X,L))}}catch(X){h(X)}}function K(H){const X=H?H.newValue:n.getItem(y.value);if(X==null)return l&&_!=null&&n.setItem(y.value,m.write(_)),_;if(!H&&u){const L=m.read(X);return typeof u=="function"?u(L,_):v==="object"&&!Array.isArray(L)?{..._,...L}:L}else return typeof X!="string"?X:m.read(X)}function z(H){if(!(H&&H.storageArea!==n)){if(H&&H.key==null){g.value=_;return}if(!(H&&H.key!==y.value)){b();try{(H==null?void 0:H.newValue)!==m.write(g.value)&&(g.value=K(H))}catch(X){h(X)}finally{H?_r(C):C()}}}}function ee(H){z(H.detail)}return g}function oS(e,t,n={}){const{window:r=xo}=n;return sS(e,t,r==null?void 0:r.localStorage,n)}function iS(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=ls(),p=(h==null?void 0:h.emit)||((s=h==null?void 0:h.$emit)==null?void 0:s.bind(h))||((i=(o=h==null?void 0:h.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(h==null?void 0:h.proxy));let g=u;g=g||`update:${t.toString()}`;const y=m=>a?typeof a=="function"?a(m):Zx(m):m,_=()=>Bx(e[t])?y(e[t]):f,v=m=>{d?d(m)&&p(g,m):p(g,m)};if(l){const m=_(),b=Ee(m);let C=!1;return an(()=>e[t],E=>{C||(C=!0,b.value=y(E),_r(()=>C=!1))}),an(b,E=>{!C&&(E!==e[t]||c)&&v(E)},{deep:c}),b}else return Se({get(){return _()},set(m){v(m)}})}const aS=["open"],lS={"text-base":""},cS={key:0,"text-sm":"",op50:""},uS=bt({__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=iS(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=dl,a=Lx;return G(),te(we,null,[O("details",{open:ie(n),onToggle:r},[O("summary",{class:ke(["cursor-pointer select-none n-bg-active hover:bg-active p4 rounded transition-all",s.collapse?"":"pointer-events-none"])},[V(a,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:ke([ie(n)?"op100":"op60",s.headerClass])},{default:oe(()=>[O("div",null,[O("div",lS,[Je(s.$slots,"text",{},()=>[ae(Me(s.text),1)],!0)]),s.description||s.$slots.description?(G(),te("div",cS,[Je(s.$slots,"description",{},()=>[ae(Me(s.description),1)],!0)])):De("",!0)]),o[0]||(o[0]=O("div",{class:"flex-auto"},null,-1)),Je(s.$slots,"actions",{},void 0,!0),s.collapse?(G(),be(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):De("",!0)]),_:3,__:[0]},8,["icon","text","class"])],2),O("div",{class:ke(["flex flex-col flex-gap2 pb6 pt2",typeof s.padding=="string"?s.padding:s.padding?"px4":""])},[Je(s.$slots,"details",{},void 0,!0),O("div",{class:ke([s.containerClass,"mt1"])},[Je(s.$slots,"default",{},void 0,!0)],2),Je(s.$slots,"footer",{},void 0,!0)],2)],40,aS),o[1]||(o[1]=O("div",{class:"x-divider"},null,-1))],64)}}}),pp=Vo(uS,[["__scopeId","data-v-1b9488bc"]]),fS={class:"flex space-x-5"},dS={class:"opacity-80 text-base mb-1 flex space-x-3 items-center"},hS={key:0,class:"flex space-x-2"},pS={key:0,class:"opacity-60 text-sm"},gS={class:"flex items-center space-x-3"},mS={key:0},yS={key:1,class:"text-xs mt-1 opacity-70"},_S={key:0},wS={key:2,class:"px-3 py-3 mt-2 dark:bg-gray-900/50 bg-gray-50/50 opacity-70"},bS={class:"list-disc ml-5"},vS=["innerHTML"],CS=bt({__name:"Source",props:{source:{},showContext:{type:Boolean}},setup(e){const t=e,n=Se(()=>{var o;const s=typeof t.source.fetch=="string"?t.source.fetch:t.source.fetch[0];return s.includes("http")?s:Bn(((o=Fe.value)==null?void 0:o.nitroOrigin)||"localhost",s)});function r(s){return s.replace(/`([^`]+)`/g,"<code>$1</code>")}return(s,o)=>{const i=dl,a=eh,l=nh,u=dp,c=pp;return G(),be(c,null,{text:oe(()=>[O("div",fS,[O("h3",dS,[s.source.fetch?(G(),te("div",hS,[V(i,{icon:"carbon:api-1",class:"opacity-50 text-lg"}),s.source.timeTakenMs?(G(),te("div",pS,Me(s.source.timeTakenMs)+"ms ",1)):De("",!0)])):De("",!0),O("div",null,Me(s.source.context.name),1),O("div",null,[V(a,null,{default:oe(()=>{var f;return[ae(Me(((f=s.source.urls)==null?void 0:f.length)||0),1)]}),_:1})])])])]),description:oe(()=>[O("div",gS,[s.source.fetch?(G(),te("div",mS,[V(l,{href:ie(n),target:"_blank"},{default:oe(()=>[ae(Me(s.source.fetch),1)]),_:1},8,["href"])])):De("",!0),s.source.context.description?(G(),te("div",yS,Me(s.source.context.description),1)):De("",!0)])]),default:oe(()=>{var f;return[s.source.error?(G(),te("div",_S,[V(i,{icon:"carbon:warning",class:"text-red-500"}),ae(" "+Me(s.source.error),1)])):(G(),be(u,{key:1,class:"max-h-[250px] overflow-y-auto",code:JSON.stringify(s.source.urls,null,2),lang:"json"},null,8,["code"])),(f=s.source.context.tips)!=null&&f.length?(G(),te("div",wS,[o[0]||(o[0]=O("h3",{class:"text-sm font-bold mb-1"}," Hints ",-1)),O("ul",bS,[(G(!0),te(we,null,Jn(s.source.context.tips,(d,h)=>(G(),te("li",{key:h,class:"text-sm opacity-80 mb-1",innerHTML:r(d)},null,8,vS))),128))])])):De("",!0)]}),_:1})}}}),xS={class:"relative n-bg-base flex flex-col"},SS={class:"sticky top-0 z-2 px-4 pt-4"},kS={class:"flex justify-between items-start",mb2:""},AS={class:"flex space-x-5"},ES={"text-xl":"",flex:"","items-center":"","gap-2":""},TS={class:"flex items-center space-x-3 text-xl"},$S={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},RS={class:"px-5 py-2"},PS={"text-lg":"",flex:"","items-center":""},IS={class:"px-5 py-2"},NS={"text-lg":"",flex:"","items-center":""},OS={class:"px-5 py-2"},MS={"text-lg":"",flex:"","items-center":""},LS={class:"px-5 py-2"},DS={"text-lg":"",flex:"","items-center":""},HS={class:"px-5 py-2"},BS={"text-lg":"",flex:"","items-center":""},FS=["value","title"],jS={class:"items-center space-x-3 hidden lg:flex"},US={class:"opacity-80 text-sm"},GS={class:"opacity-80 text-sm"},WS={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},zS={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},VS={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},qS={key:0,class:"space-y-5"},KS={class:"opacity-80 text-base mb-1"},JS={class:"px-3 py-2 space-y-5"},XS={key:0},YS={class:"text-sm opacity-70"},ZS={key:0,class:"flex space-x-5"},QS={class:"flex-grow"},ek={class:"flex space-x-5"},tk={class:"flex-grow flex flex-col justify-center"},nk={key:0,class:"opacity-70"},rk={key:1,class:"opacity-70"},sk={class:"opacity-50 text-xs mt-2"},ok={class:"flex space-x-5"},ik={class:"n-bg-base/20 flex-grow"},ak={key:1,class:"space-y-5"},lk={key:2,class:"space-y-5"},ck={key:3,class:"h-full max-h-full overflow-hidden"},uk={class:"opacity-80 text-base mb-1"},fk={class:"px-3 py-2 space-y-5"},dk={key:4,class:"h-full max-h-full overflow-hidden"},hk=bt({__name:"app",async setup(e){let t,n;[t,n]=Lg(()=>Ix()),await t,n();const r=Ee(!1);async function s(){r.value=!0,Fe.value=null,await lp(),setTimeout(()=>{r.value=!1},300)}const o=oS("@nuxtjs/sitemap:tab","sitemaps");function i(f){var d;return Fe.value?f==="sitemap"||f==="sitemap.xml"?`${Fe.value.nitroOrigin}sitemap.xml`:f==="index"?`${Fe.value.nitroOrigin}sitemap_index.xml`:Bn(Fe.value.nitroOrigin,(d=Fe.value.runtimeConfig)==null?void 0:d.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}lw({htmlAttrs:{class:()=>up.value||""}});const l=Se(()=>{var f,d;return((d=(f=Fe.value)==null?void 0:f.runtimeConfig)==null?void 0:d.excludeAppSources)||[]}),u=Se(()=>{var f;return(((f=Fe.value)==null?void 0:f.globalSources)||[]).filter(d=>d.sourceType==="app")}),c=Se(()=>{var f;return(((f=Fe.value)==null?void 0:f.globalSources)||[]).filter(d=>d.sourceType==="user")});return(f,d)=>{var E;const h=dl,p=eh,g=hn("VTooltip"),y=nh,_=Xb,v=t0,m=CS,b=dp,C=pp;return G(),te("div",xS,[O("header",SS,[O("div",kS,[O("div",AS,[O("h1",ES,[V(h,{icon:"carbon:load-balancer-application",class:"text-blue-300"}),d[2]||(d[2]=ae(" Sitemap ")),V(p,{class:"text-sm"},{default:oe(()=>{var S,M;return[ae(Me((M=(S=ie(Fe))==null?void 0:S.runtimeConfig)==null?void 0:M.version),1)]}),_:1})])]),O("div",TS,[O("fieldset",$S,[(G(),te(we,null,Jn(["sitemaps","user-sources","app-sources","debug","docs"],(S,M)=>O("label",{key:M,class:ke(["relative n-border-base hover:n-bg-active cursor-pointer",[M?"border-l n-border-base ml--1px":"",S===ie(o)?"n-bg-active":""]])},[S==="sitemaps"?(G(),te("div",{key:0,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[3]||(d[3]=[ae(" Sitemaps ")])),default:oe(()=>[O("div",RS,[O("h2",PS,[V(h,{icon:"carbon:load-balancer-application opacity-50"}),V(p,{class:"text-sm"},{default:oe(()=>{var F;return[ae(Me(Object.keys(((F=ie(Fe))==null?void 0:F.sitemaps)||{}).length||0),1)]}),_:1})])])]),_:1})],2)):De("",!0),S==="user-sources"?(G(),te("div",{key:1,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[4]||(d[4]=[ae(" User Sources ")])),default:oe(()=>[O("div",IS,[O("h2",NS,[V(h,{icon:"carbon:group-account opacity-50"}),V(p,{class:"text-sm"},{default:oe(()=>[ae(Me(c.value.length),1)]),_:1})])])]),_:1})],2)):De("",!0),S==="app-sources"?(G(),te("div",{key:2,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[5]||(d[5]=[ae(" App Sources ")])),default:oe(()=>[O("div",OS,[O("h2",MS,[V(h,{icon:"carbon:bot opacity-50"}),V(p,{class:"text-sm"},{default:oe(()=>[ae(Me(u.value.length),1)]),_:1})])])]),_:1})],2)):S==="debug"?(G(),te("div",{key:3,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[6]||(d[6]=[ae(" Debug ")])),default:oe(()=>[O("div",LS,[O("h2",DS,[V(h,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):S==="docs"?(G(),te("div",{key:4,class:ke([S===ie(o)?"":"op35"])},[V(g,null,{popper:oe(()=>d[7]||(d[7]=[ae(" Documentation ")])),default:oe(()=>[O("div",HS,[O("h2",BS,[V(h,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):De("",!0),wg(O("input",{"onUpdate:modelValue":d[0]||(d[0]=F=>Ae(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,FS),[[Vm,ie(o)]])],2)),64))]),V(g,null,{popper:oe(()=>d[8]||(d[8]=[ae(" Refresh ")])),default:oe(()=>[O("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:s},[V(h,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),O("div",jS,[O("div",US,[V(y,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:oe(()=>[V(h,{icon:"carbon:favorite",class:"mr-[2px]"}),d[9]||(d[9]=ae(" Sponsor "))]),_:1,__:[9]})]),O("div",GS,[V(y,{href:"https://github.com/nuxt-modules/sitemap",target:"_blank"},{default:oe(()=>[V(h,{icon:"logos:github-icon",class:"mr-[2px]"}),d[10]||(d[10]=ae(" Submit an issue "))]),_:1,__:[10]})]),O("a",WS,[V(_)])])])]),O("div",zS,[O("main",VS,[!((E=ie(Fe))!=null&&E.globalSources)||r.value?(G(),be(v,{key:0})):(G(),te(we,{key:1},[ie(o)==="sitemaps"?(G(),te("div",qS,[d[23]||(d[23]=O("div",null,[O("h2",{class:"text-lg mb-1"}," Sitemaps "),O("p",{"text-xs":"",op60:""}," The sitemaps generated from your site. ")],-1)),(G(!0),te(we,null,Jn(ie(Fe).sitemaps,(S,M)=>(G(),be(C,{key:M},{text:oe(()=>[O("h3",KS,[ae(Me(S.sitemapName)+" ",1),(S.sources||[]).some(F=>!!F.error)?(G(),be(h,{key:0,icon:"carbon:warning",class:"text-red-500"})):De("",!0)])]),description:oe(()=>[V(y,{target:"_blank",href:i(S.sitemapName)},{default:oe(()=>[ae(Me(i(S.sitemapName)),1)]),_:2},1032,["href"])]),default:oe(()=>[O("div",JS,[S.sitemapName==="index"?(G(),te("div",XS,[d[14]||(d[14]=O("div",{class:"text-sm mb-1 opacity-80"}," This is a special sitemap file that links to your other sitemaps. ",-1)),O("div",YS,[d[12]||(d[12]=ae(" You can learn about this on the ")),V(y,{underline:"",target:"_blank",href:"https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps"},{default:oe(()=>d[11]||(d[11]=[ae(" Google Search Central ")])),_:1,__:[11]}),d[13]||(d[13]=ae(". "))])])):(G(),te(we,{key:1},[S.sources&&S.sources.length?(G(),te("div",ZS,[d[15]||(d[15]=O("div",{class:"w-40"},[O("div",{class:"font-bold text-sm mb-1"}," Sources "),O("div",{class:"opacity-40 text-xs max-w-60"},[ae(" Local sources associated with just this sitemap."),O("br"),ae("Example: Load in a dynamic list of URLs from an API endpoint. ")])],-1)),O("div",QS,[(G(!0),te(we,null,Jn(S.sources,(F,R)=>(G(),be(m,{key:R,source:F},null,8,["source"]))),128))])])):De("",!0),O("div",ek,[d[21]||(d[21]=O("div",{class:"w-40"},[O("div",{class:"font-bold text-sm mb-1"}," App Sources "),O("div",{class:"opacity-40 text-xs max-w-60"},[ae(" Configured with the "),O("code",null,"includeAppSources"),ae(" option. ")])],-1)),O("div",tk,[S.includeAppSources&&l.value!==!0?(G(),te("div",nk,[V(h,{icon:"carbon:checkmark",class:"text-green-500 text-lg"}),d[16]||(d[16]=ae(" Enabled "))])):(G(),te("div",rk,[V(h,{icon:"carbon:close",class:"text-red-500 text-lg"}),d[17]||(d[17]=ae(" Disabled "))])),O("div",sk,[d[19]||(d[19]=ae(" Switch to ")),V(y,{underline:"",class:"cursor-pointer",onClick:d[1]||(d[1]=F=>o.value="app-sources")},{default:oe(()=>d[18]||(d[18]=[ae(" App sources ")])),_:1,__:[18]}),d[20]||(d[20]=ae(" to learn more. "))])])]),O("div",ok,[d[22]||(d[22]=O("div",{class:"w-40"},[O("div",{class:"font-bold text-sm mb-1"}," Sitemap Options "),O("div",{class:"opacity-40 text-xs max-w-60"}," Extra options used to filter the URLs on the final sitemap and set defaults. ")],-1)),O("div",ik,[V(b,{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))])):ie(o)==="app-sources"?(G(),te("div",ak,[d[24]||(d[24]=O("div",null,[O("h2",{class:"text-lg mb-1"}," App Sources "),O("p",{"text-xs":"",op60:""}," Automatic global sources generated from your application. ")],-1)),(G(!0),te(we,null,Jn(u.value,(S,M)=>(G(),be(m,{key:M,source:S},null,8,["source"]))),128))])):ie(o)==="user-sources"?(G(),te("div",lk,[d[25]||(d[25]=O("div",null,[O("h2",{class:"text-lg mb-1"}," User Sources "),O("p",{"text-xs":"",op60:""}," Manually provided global sources provided by you. ")],-1)),(G(!0),te(we,null,Jn(c.value,(S,M)=>(G(),be(m,{key:M,source:S},null,8,["source"]))),128))])):ie(o)==="debug"?(G(),te("div",ck,[V(C,null,{text:oe(()=>[O("h3",uk,[V(h,{icon:"carbon:settings",class:"mr-1"}),d[26]||(d[26]=ae(" Runtime Config "))])]),default:oe(()=>{var S;return[O("div",fk,[V(b,{code:JSON.stringify((S=ie(Fe))==null?void 0:S.runtimeConfig,null,2),lang:"json"},null,8,["code"])])]}),_:1})])):ie(o)==="docs"?(G(),te("div",dk,d[27]||(d[27]=[O("iframe",{src:"https://nuxtseo.com/sitemap",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)]))):De("",!0)],64))])])])}}}),pk={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
171
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?Fl(()=>Dr(()=>import("./
|
|
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?Fl(()=>Dr(()=>import("./DrLDkm_a.js"),__vite__mapDeps([0,1]),import.meta.url)):Fl(()=>Dr(()=>import("./DyQhad1I.js"),__vite__mapDeps([2,3]),import.meta.url));return(f,d)=>(G(),be(ie(c),Uu(Qa({statusCode:ie(r),statusMessage:ie(o),description:ie(i),stack:ie(a)})),null,16))}},gk={key:0},Du={__name:"nuxt-root",setup(e){const t=()=>null,n=Pe(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Rt().beforeEach(u)}const s=!1;Af(bd,vd()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const o=rl(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;_f((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(C_(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>b_(u)),!1});const l=!1;return(u,c)=>(G(),be(cm,{onResolve:ie(r)},{default:oe(()=>[ie(i)?(G(),te("div",gk)):ie(o)?(G(),be(ie(pk),{key:1,error:ie(o)},null,8,["error"])):ie(l)?(G(),be(ie(t),{key:2,context:ie(l)},null,8,["context"])):ie(s)?(G(),be(Og(ie(s)),{key:3})):(G(),be(ie(hk),{key:4}))]),_:1},8,["onResolve"]))}};let Hu;{let e;Hu=async function(){var i,a;if(e)return e;const r=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Zm(Du):Qf(Du),s=a_({vueApp:r});async function o(l){var u;await s.callHook("app:error",l),(u=s.payload).error||(u.error=sl(l))}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)});try{await u_(s,Lb)}catch(l){o(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(s_),await s.hooks.callHook("app:mounted",r),await _r()}catch(l){o(l)}return r},e=Hu().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Vo as _,O as a,V as b,te as c,ae as d,Ub as e,G as o,Me as t,lw as u,oe as w};
|