nuxt-schema-org 5.0.3 → 5.0.5
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/LICENSE.md +9 -9
- package/README.md +71 -71
- package/dist/client/200.html +10 -10
- package/dist/client/404.html +10 -10
- package/dist/client/_nuxt/BhHM3WET.js +174 -0
- package/dist/client/_nuxt/Ck282nrP.js +1 -0
- package/dist/client/_nuxt/D1xklhWM.js +1 -0
- package/dist/client/_nuxt/DPXMwXsw.js +1 -0
- package/dist/client/_nuxt/Dtw-SHSX.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/9b75ec4d-4079-4c7e-a7d3-1cdd769495a0.json +1 -0
- package/dist/client/_nuxt/{entry.C6QaoFy4.css → entry.Oxc0fhVq.css} +1 -1
- package/dist/client/_nuxt/error-404.BXund5EP.css +1 -0
- package/dist/client/_nuxt/error-500.B1Sz3h0E.css +1 -0
- package/dist/client/index.html +10 -10
- package/dist/module.cjs +2 -5
- package/dist/module.d.cts +3 -1
- package/dist/module.d.ts +3 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +2 -5
- package/dist/runtime/app/plugins/defaults.js +9 -7
- package/dist/runtime/app/plugins/i18n/defaults.js +16 -15
- package/dist/runtime/app/plugins/i18n/init.js +1 -0
- package/dist/runtime/app/plugins/i18n/tsconfig.json +3 -3
- package/dist/runtime/app/utils/shared.js +32 -15
- package/dist/runtime/server/plugins/nuxt-content-v2.js +1 -1
- package/dist/runtime/server/routes/__schema-org__/debug.d.ts +1 -1
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/schema.cjs +7 -0
- package/dist/types.d.mts +2 -2
- package/package.json +38 -38
- package/content.d.ts +0 -1
- package/dist/client/_nuxt/BcPhSJxU.js +0 -1
- package/dist/client/_nuxt/CgGSSGCG.js +0 -1
- package/dist/client/_nuxt/DTAJTTim.js +0 -1
- package/dist/client/_nuxt/DiWZrkno.js +0 -171
- package/dist/client/_nuxt/builds/meta/2b563cbd-2bcc-4694-8e01-f54f61f2dd05.json +0 -1
- package/dist/client/_nuxt/error-404.xH3Cf7mp.css +0 -1
- package/dist/client/_nuxt/error-500.D1eGBBaO.css +0 -1
- package/dist/client/_nuxt/ySlJ1b_l.js +0 -1
- package/dist/types.d.ts +0 -7
- package/schema.d.ts +0 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Ck282nrP.js","./error-404.BXund5EP.css","./D1xklhWM.js","./error-500.B1Sz3h0E.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var dp=Object.defineProperty;var pp=Object.getPrototypeOf;var gp=Reflect.get;var Pl=e=>{throw TypeError(e)};var mp=(e,t,n)=>t in e?dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var x=(e,t,n)=>mp(e,typeof t!="symbol"?t+"":t,n),Yo=(e,t,n)=>t.has(e)||Pl("Cannot "+n);var Ke=(e,t,n)=>(Yo(e,t,"read from private field"),n?n.call(e):t.get(e)),Sn=(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),yt=(e,t,n,r)=>(Yo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Zo=(e,t,n)=>(Yo(e,t,"access private method"),n);var $l=(e,t,n)=>gp(pp(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
|
+
* @vue/shared v3.5.13
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Ta(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ye={},sr=[],It=()=>{},yp=()=>!1,fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ra=e=>e.startsWith("onUpdate:"),qe=Object.assign,Pa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_p=Object.prototype.hasOwnProperty,de=(e,t)=>_p.call(e,t),Z=Array.isArray,or=e=>hs(e)==="[object Map]",Lu=e=>hs(e)==="[object Set]",Nl=e=>hs(e)==="[object Date]",Y=e=>typeof e=="function",ke=e=>typeof e=="string",St=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",$a=e=>(we(e)||Y(e))&&Y(e.then)&&Y(e.catch),Mu=Object.prototype.toString,hs=e=>Mu.call(e),wp=e=>hs(e).slice(8,-1),Du=e=>hs(e)==="[object Object]",Na=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ir=Ta(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Co=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bp=/-(\w)/g,gt=Co(e=>e.replace(bp,(t,n)=>n?n.toUpperCase():"")),vp=/\B([A-Z])/g,wn=Co(e=>e.replace(vp,"-$1").toLowerCase()),So=Co(e=>e.charAt(0).toUpperCase()+e.slice(1)),ei=Co(e=>e?`on${So(e)}`:""),un=(e,t)=>!Object.is(e,t),Is=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Bu=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Cp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Sp=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Ol;const xo=()=>Ol||(Ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function In(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ke(r)?Ap(r):In(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(ke(e)||we(e))return e}const xp=/;(?![^(]*\))/g,kp=/:([^]+)/,Ep=/\/\*[^]*?\*\//g;function Ap(e){const t={};return e.replace(Ep,"").split(xp).forEach(n=>{if(n){const r=n.split(kp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Oe(e){let t="";if(ke(e))t=e;else if(Z(e))for(let n=0;n<e.length;n++){const r=Oe(e[n]);r&&(t+=r+" ")}else if(we(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Hu(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ke(t)&&(e.class=Oe(t)),n&&(e.style=In(n)),e}const Tp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Rp=Ta(Tp);function Fu(e){return!!e||e===""}function Pp(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Us(e[r],t[r]);return n}function Us(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=St(e),r=St(t),n||r)return e===t;if(n=Z(e),r=Z(t),n||r)return n&&r?Pp(e,t):!1;if(n=we(e),r=we(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||!Us(e[i],t[i]))return!1}}return String(e)===String(t)}const ju=e=>!!(e&&e.__v_isRef===!0),fn=e=>ke(e)?e:e==null?"":Z(e)||we(e)&&(e.toString===Mu||!Y(e.toString))?ju(e)?fn(e.value):JSON.stringify(e,Gu,2):String(e),Gu=(e,t)=>ju(t)?Gu(e,t.value):or(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[ti(r,o)+" =>"]=s,n),{})}:Lu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ti(n))}:St(t)?ti(t):we(t)&&!Z(t)&&!Du(t)?String(t):t,ti=(e,t="")=>{var n;return St(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
|
+
* @vue/reactivity v3.5.13
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/let Je;class Uu{constructor(t=!1){this.detached=t,this._active=!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(){Je=this}off(){Je=this.parent}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 $p(e){return new Uu(e)}function Oa(){return Je}function Il(e,t=!1){Je&&Je.cleanups.push(e)}let Se;const ni=new WeakSet;class Wu{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,ni.has(this)&&(ni.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Vu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ll(this),qu(this);const t=Se,n=bt;Se=this,bt=!0;try{return this.fn()}finally{Ku(this),Se=t,bt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ma(t);this.deps=this.depsTail=void 0,Ll(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ni.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ii(this)&&this.run()}get dirty(){return Ii(this)}}let zu=0,Ir,Lr;function Vu(e,t=!1){if(e.flags|=8,t){e.next=Lr,Lr=e;return}e.next=Ir,Ir=e}function Ia(){zu++}function La(){if(--zu>0)return;if(Lr){let t=Lr;for(Lr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ir;){let t=Ir;for(Ir=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 qu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ku(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Ma(r),Np(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ii(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kr))return;e.globalVersion=Kr;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Ii(e)){e.flags&=-3;return}const n=Se,r=bt;Se=e,bt=!0;try{qu(e);const s=e.fn(e._value);(t.version===0||un(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Se=n,bt=r,Ku(e),e.flags&=-3}}function Ma(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)Ma(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Np(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let bt=!0;const Ju=[];function bn(){Ju.push(bt),bt=!1}function vn(){const e=Ju.pop();bt=e===void 0?!0:e}function Ll(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Se;Se=void 0;try{t()}finally{Se=n}}}let Kr=0;class Op{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 Da{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}track(t){if(!Se||!bt||Se===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Se)n=this.activeLink=new Op(Se,this),Se.deps?(n.prevDep=Se.depsTail,Se.depsTail.nextDep=n,Se.depsTail=n):Se.deps=Se.depsTail=n,Qu(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=Se.depsTail,n.nextDep=void 0,Se.depsTail.nextDep=n,Se.depsTail=n,Se.deps===n&&(Se.deps=r)}return n}trigger(t){this.version++,Kr++,this.notify(t)}notify(t){Ia();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{La()}}}function Qu(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)Qu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ws=new WeakMap,Ln=Symbol(""),Li=Symbol(""),Xr=Symbol("");function Ue(e,t,n){if(bt&&Se){let r=Ws.get(e);r||Ws.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Da),s.map=r,s.key=n),s.track()}}function Vt(e,t,n,r,s,o){const i=Ws.get(e);if(!i){Kr++;return}const a=l=>{l&&l.trigger()};if(Ia(),t==="clear")i.forEach(a);else{const l=Z(e),f=l&&Na(n);if(l&&n==="length"){const u=Number(r);i.forEach((c,h)=>{(h==="length"||h===Xr||!St(h)&&h>=u)&&a(c)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),f&&a(i.get(Xr)),t){case"add":l?f&&a(i.get("length")):(a(i.get(Ln)),or(e)&&a(i.get(Li)));break;case"delete":l||(a(i.get(Ln)),or(e)&&a(i.get(Li)));break;case"set":or(e)&&a(i.get(Ln));break}}La()}function Ip(e,t){const n=Ws.get(e);return n&&n.get(t)}function qn(e){const t=fe(e);return t===e?t:(Ue(t,"iterate",Xr),pt(e)?t:t.map(We))}function ko(e){return Ue(e=fe(e),"iterate",Xr),e}const Lp={__proto__:null,[Symbol.iterator](){return ri(this,Symbol.iterator,We)},concat(...e){return qn(this).concat(...e.map(t=>Z(t)?qn(t):t))},entries(){return ri(this,"entries",e=>(e[1]=We(e[1]),e))},every(e,t){return Ft(this,"every",e,t,void 0,arguments)},filter(e,t){return Ft(this,"filter",e,t,n=>n.map(We),arguments)},find(e,t){return Ft(this,"find",e,t,We,arguments)},findIndex(e,t){return Ft(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ft(this,"findLast",e,t,We,arguments)},findLastIndex(e,t){return Ft(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ft(this,"forEach",e,t,void 0,arguments)},includes(...e){return si(this,"includes",e)},indexOf(...e){return si(this,"indexOf",e)},join(e){return qn(this).join(e)},lastIndexOf(...e){return si(this,"lastIndexOf",e)},map(e,t){return Ft(this,"map",e,t,void 0,arguments)},pop(){return Tr(this,"pop")},push(...e){return Tr(this,"push",e)},reduce(e,...t){return Ml(this,"reduce",e,t)},reduceRight(e,...t){return Ml(this,"reduceRight",e,t)},shift(){return Tr(this,"shift")},some(e,t){return Ft(this,"some",e,t,void 0,arguments)},splice(...e){return Tr(this,"splice",e)},toReversed(){return qn(this).toReversed()},toSorted(e){return qn(this).toSorted(e)},toSpliced(...e){return qn(this).toSpliced(...e)},unshift(...e){return Tr(this,"unshift",e)},values(){return ri(this,"values",We)}};function ri(e,t,n){const r=ko(e),s=r[t]();return r!==e&&!pt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const Mp=Array.prototype;function Ft(e,t,n,r,s,o){const i=ko(e),a=i!==e&&!pt(e),l=i[t];if(l!==Mp[t]){const c=l.apply(e,o);return a?We(c):c}let f=n;i!==e&&(a?f=function(c,h){return n.call(this,We(c),h,e)}:n.length>2&&(f=function(c,h){return n.call(this,c,h,e)}));const u=l.call(i,f,r);return a&&s?s(u):u}function Ml(e,t,n,r){const s=ko(e);let o=n;return s!==e&&(pt(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,We(a),l,e)}),s[t](o,...r)}function si(e,t,n){const r=fe(e);Ue(r,"iterate",Xr);const s=r[t](...n);return(s===-1||s===!1)&&Fa(n[0])?(n[0]=fe(n[0]),r[t](...n)):s}function Tr(e,t,n=[]){bn(),Ia();const r=fe(e)[t].apply(e,n);return La(),vn(),r}const Dp=Ta("__proto__,__v_isRef,__isVue"),Yu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(St));function Bp(e){St(e)||(e=String(e));const t=fe(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Zu{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?Kp:rf:o?nf:tf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Z(t);if(!s){let l;if(i&&(l=Lp[n]))return l;if(n==="hasOwnProperty")return Bp}const a=Reflect.get(t,n,Te(t)?t:r);return(St(n)?Yu.has(n):Dp(n))||(s||Ue(t,"get",n),o)?a:Te(a)?i&&Na(n)?a:a.value:we(a)?s?sf(a):gn(a):a}}class ef extends Zu{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=mn(o);if(!pt(r)&&!mn(r)&&(o=fe(o),r=fe(r)),!Z(t)&&Te(o)&&!Te(r))return l?!1:(o.value=r,!0)}const i=Z(t)&&Na(n)?Number(n)<t.length:de(t,n),a=Reflect.set(t,n,r,Te(t)?t:s);return t===fe(s)&&(i?un(r,o)&&Vt(t,"set",n,r):Vt(t,"add",n,r)),a}deleteProperty(t,n){const r=de(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Vt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!St(n)||!Yu.has(n))&&Ue(t,"has",n),r}ownKeys(t){return Ue(t,"iterate",Z(t)?"length":Ln),Reflect.ownKeys(t)}}class Hp extends Zu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Fp=new ef,jp=new Hp,Gp=new ef(!0);const Mi=e=>e,ws=e=>Reflect.getPrototypeOf(e);function Up(e,t,n){return function(...r){const s=this.__v_raw,o=fe(s),i=or(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,f=s[e](...r),u=n?Mi:t?Di:We;return!t&&Ue(o,"iterate",l?Li:Ln),{next(){const{value:c,done:h}=f.next();return h?{value:c,done:h}:{value:a?[u(c[0]),u(c[1])]:u(c),done:h}},[Symbol.iterator](){return this}}}}function bs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Wp(e,t){const n={get(s){const o=this.__v_raw,i=fe(o),a=fe(s);e||(un(s,a)&&Ue(i,"get",s),Ue(i,"get",a));const{has:l}=ws(i),f=t?Mi:e?Di:We;if(l.call(i,s))return f(o.get(s));if(l.call(i,a))return f(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Ue(fe(s),"iterate",Ln),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=fe(o),a=fe(s);return e||(un(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=fe(a),f=t?Mi:e?Di:We;return!e&&Ue(l,"iterate",Ln),a.forEach((u,c)=>s.call(o,f(u),f(c),i))}};return qe(n,e?{add:bs("add"),set:bs("set"),delete:bs("delete"),clear:bs("clear")}:{add(s){!t&&!pt(s)&&!mn(s)&&(s=fe(s));const o=fe(this);return ws(o).has.call(o,s)||(o.add(s),Vt(o,"add",s,s)),this},set(s,o){!t&&!pt(o)&&!mn(o)&&(o=fe(o));const i=fe(this),{has:a,get:l}=ws(i);let f=a.call(i,s);f||(s=fe(s),f=a.call(i,s));const u=l.call(i,s);return i.set(s,o),f?un(o,u)&&Vt(i,"set",s,o):Vt(i,"add",s,o),this},delete(s){const o=fe(this),{has:i,get:a}=ws(o);let l=i.call(o,s);l||(s=fe(s),l=i.call(o,s)),a&&a.call(o,s);const f=o.delete(s);return l&&Vt(o,"delete",s,void 0),f},clear(){const s=fe(this),o=s.size!==0,i=s.clear();return o&&Vt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Up(s,e,t)}),n}function Ba(e,t){const n=Wp(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(de(n,s)&&s in r?n:r,s,o)}const zp={get:Ba(!1,!1)},Vp={get:Ba(!1,!0)},qp={get:Ba(!0,!1)};const tf=new WeakMap,nf=new WeakMap,rf=new WeakMap,Kp=new WeakMap;function Xp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Jp(e){return e.__v_skip||!Object.isExtensible(e)?0:Xp(wp(e))}function gn(e){return mn(e)?e:Ha(e,!1,Fp,zp,tf)}function Zn(e){return Ha(e,!1,Gp,Vp,nf)}function sf(e){return Ha(e,!0,jp,qp,rf)}function Ha(e,t,n,r,s){if(!we(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Jp(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Mn(e){return mn(e)?Mn(e.__v_raw):!!(e&&e.__v_isReactive)}function mn(e){return!!(e&&e.__v_isReadonly)}function pt(e){return!!(e&&e.__v_isShallow)}function Fa(e){return e?!!e.__v_raw:!1}function fe(e){const t=e&&e.__v_raw;return t?fe(t):e}function Qp(e){return!de(e,"__v_skip")&&Object.isExtensible(e)&&Bu(e,"__v_skip",!0),e}const We=e=>we(e)?gn(e):e,Di=e=>we(e)?sf(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function _e(e){return of(e,!1)}function Bi(e){return of(e,!0)}function of(e,t){return Te(e)?e:new Yp(e,t)}class Yp{constructor(t,n){this.dep=new Da,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:fe(t),this._value=n?t:We(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||pt(t)||mn(t);t=r?t:fe(t),un(t,n)&&(this._rawValue=t,this._value=r?t:We(t),this.dep.trigger())}}function oe(e){return Te(e)?e.value:e}function Jr(e){return Y(e)?e():oe(e)}const Zp={get:(e,t,n)=>t==="__v_raw"?e:oe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Te(s)&&!Te(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function af(e){return Mn(e)?e:new Proxy(e,Zp)}class eg{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 Ip(fe(this._object),this._key)}}class tg{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 ja(e,t,n){return Te(e)?e:Y(e)?new tg(e):we(e)&&arguments.length>1?ng(e,t,n):_e(e)}function ng(e,t,n){const r=e[t];return Te(r)?r:new eg(e,t,n)}class rg{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Da(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Se!==this)return Vu(this,!0),!0}get value(){const t=this.dep.track();return Xu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function sg(e,t,n=!1){let r,s;return Y(e)?r=e:(r=e.get,s=e.set),new rg(r,s,n)}const vs={},zs=new WeakMap;let Tn;function og(e,t=!1,n=Tn){if(n){let r=zs.get(n);r||zs.set(n,r=[]),r.push(e)}}function ig(e,t,n=ye){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,f=b=>s?b:pt(b)||s===!1||s===0?qt(b,1):qt(b);let u,c,h,d,p=!1,g=!1;if(Te(e)?(c=()=>e.value,p=pt(e)):Mn(e)?(c=()=>f(e),p=!0):Z(e)?(g=!0,p=e.some(b=>Mn(b)||pt(b)),c=()=>e.map(b=>{if(Te(b))return b.value;if(Mn(b))return f(b);if(Y(b))return l?l(b,2):b()})):Y(e)?t?c=l?()=>l(e,2):e:c=()=>{if(h){bn();try{h()}finally{vn()}}const b=Tn;Tn=u;try{return l?l(e,3,[d]):e(d)}finally{Tn=b}}:c=It,t&&s){const b=c,C=s===!0?1/0:s;c=()=>qt(b(),C)}const y=Oa(),_=()=>{u.stop(),y&&y.active&&Pa(y.effects,u)};if(o&&t){const b=t;t=(...C)=>{b(...C),_()}}let v=g?new Array(e.length).fill(vs):vs;const m=b=>{if(!(!(u.flags&1)||!u.dirty&&!b))if(t){const C=u.run();if(s||p||(g?C.some((A,E)=>un(A,v[E])):un(C,v))){h&&h();const A=Tn;Tn=u;try{const E=[C,v===vs?void 0:g&&v[0]===vs?[]:v,d];l?l(t,3,E):t(...E),v=C}finally{Tn=A}}}else u.run()};return a&&a(m),u=new Wu(c),u.scheduler=i?()=>i(m,!1):m,d=b=>og(b,!1,u),h=u.onStop=()=>{const b=zs.get(u);if(b){if(l)l(b,4);else for(const C of b)C();zs.delete(u)}},t?r?m(!0):v=u.run():i?i(m.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function qt(e,t=1/0,n){if(t<=0||!we(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Te(e))qt(e.value,t,n);else if(Z(e))for(let r=0;r<e.length;r++)qt(e[r],t,n);else if(Lu(e)||or(e))e.forEach(r=>{qt(r,t,n)});else if(Du(e)){for(const r in e)qt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&qt(e[r],t,n)}return e}/**
|
|
11
|
+
* @vue/runtime-core v3.5.13
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/function ds(e,t,n,r){try{return r?e(...r):e()}catch(s){Sr(s,t,n)}}function Dt(e,t,n,r){if(Y(e)){const s=ds(e,t,n,r);return s&&$a(s)&&s.catch(o=>{Sr(o,t,n)}),s}if(Z(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Dt(e[o],t,n,r));return s}}function Sr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ye;if(t){let a=t.parent;const l=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,l,f)===!1)return}a=a.parent}if(o){bn(),ds(o,null,10,[e,l,f]),vn();return}}ag(e,n,s,r,i)}function ag(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Qe=[];let Pt=-1;const ar=[];let tn=null,Xn=0;const lf=Promise.resolve();let Vs=null;function Eo(e){const t=Vs||lf;return e?t.then(this?e.bind(this):e):t}function lg(e){let t=Pt+1,n=Qe.length;for(;t<n;){const r=t+n>>>1,s=Qe[r],o=Qr(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Ga(e){if(!(e.flags&1)){const t=Qr(e),n=Qe[Qe.length-1];!n||!(e.flags&2)&&t>=Qr(n)?Qe.push(e):Qe.splice(lg(t),0,e),e.flags|=1,cf()}}function cf(){Vs||(Vs=lf.then(uf))}function Hi(e){Z(e)?ar.push(...e):tn&&e.id===-1?tn.splice(Xn+1,0,e):e.flags&1||(ar.push(e),e.flags|=1),cf()}function Dl(e,t,n=Pt+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(ar.length){const t=[...new Set(ar)].sort((n,r)=>Qr(n)-Qr(r));if(ar.length=0,tn){tn.push(...t);return}for(tn=t,Xn=0;Xn<tn.length;Xn++){const n=tn[Xn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}tn=null,Xn=0}}const Qr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function uf(e){try{for(Pt=0;Pt<Qe.length;Pt++){const t=Qe[Pt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ds(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pt<Qe.length;Pt++){const t=Qe[Pt];t&&(t.flags&=-2)}Pt=-1,Qe.length=0,qs(),Vs=null,(Qe.length||ar.length)&&uf()}}let Le=null,Ao=null;function Ks(e){const t=Le;return Le=e,Ao=e&&e.type.__scopeId||null,t}function cg(e){Ao=e}function ug(){Ao=null}const fg=e=>ue;function ue(e,t=Le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Jl(-1);const o=Ks(t);let i;try{i=e(...s)}finally{Ks(o),r._d&&Jl(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function hg(e,t){if(Le===null)return e;const n=Oo(Le),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=ye]=t[s];o&&(Y(o)&&(o={mounted:o,updated:o}),o.deep&&qt(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function $t(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&&(bn(),Dt(l,n,8,[e.el,a,e,t]),vn())}}const dg=Symbol("_vte"),pg=e=>e.__isTeleport;function Ua(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ua(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 Ze(e,t){return Y(e)?qe({name:e.name},t,{setup:e}):e}function Wa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yr(e,t,n,r,s=!1){if(Z(e)){e.forEach((p,g)=>Yr(p,t&&(Z(t)?t[g]:t),n,r,s));return}if(Dn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Yr(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Oo(r.component):r.el,i=s?null:o,{i:a,r:l}=e,f=t&&t.r,u=a.refs===ye?a.refs={}:a.refs,c=a.setupState,h=fe(c),d=c===ye?()=>!1:p=>de(h,p);if(f!=null&&f!==l&&(ke(f)?(u[f]=null,d(f)&&(c[f]=null)):Te(f)&&(f.value=null)),Y(l))ds(l,a,12,[i,u]);else{const p=ke(l),g=Te(l);if(p||g){const y=()=>{if(e.f){const _=p?d(l)?c[l]:u[l]:l.value;s?Z(_)&&Pa(_,o):Z(_)?_.includes(o)||_.push(o):p?(u[l]=[o],d(l)&&(c[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,d(l)&&(c[l]=i)):g&&(l.value=i,e.k&&(u[e.k]=i))};i?(y.id=-1,ot(y,n)):y()}}}let Bl=!1;const Kn=()=>{Bl||(console.error("Hydration completed but contains mismatches."),Bl=!0)},gg=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",mg=e=>e.namespaceURI.includes("MathML"),Cs=e=>{if(e.nodeType===1){if(gg(e))return"svg";if(mg(e))return"mathml"}},er=e=>e.nodeType===8;function yg(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:f}}=e,u=(m,b)=>{if(!b.hasChildNodes()){n(null,m,b),qs(),b._vnode=m;return}c(b.firstChild,m,null,null,null),qs(),b._vnode=m},c=(m,b,C,A,E,B=!1)=>{B=B||!!b.dynamicChildren;const H=er(m)&&m.data==="[",I=()=>g(m,b,C,A,E,H),{type:K,ref:q,shapeFlag:ne,patchFlag:ee}=b;let ce=m.nodeType;b.el=m,ee===-2&&(B=!1,b.dynamicChildren=null);let F=null;switch(K){case Fn:ce!==3?b.children===""?(l(b.el=s(""),i(m),m),F=m):F=I():(m.data!==b.children&&(Kn(),m.data=b.children),F=o(m));break;case xt:v(m)?(F=o(m),_(b.el=m.content.firstChild,m,C)):ce!==8||H?F=I():F=o(m);break;case Dr:if(H&&(m=o(m),ce=m.nodeType),ce===1||ce===3){F=m;const X=!b.children.length;for(let G=0;G<b.staticCount;G++)X&&(b.children+=F.nodeType===1?F.outerHTML:F.data),G===b.staticCount-1&&(b.anchor=F),F=o(F);return H?o(F):F}else I();break;case Ne:H?F=p(m,b,C,A,E,B):F=I();break;default:if(ne&1)(ce!==1||b.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?F=I():F=h(m,b,C,A,E,B);else if(ne&6){b.slotScopeIds=E;const X=i(m);if(H?F=y(m):er(m)&&m.data==="teleport start"?F=y(m,m.data,"teleport end"):F=o(m),t(b,X,null,C,A,Cs(X),B),Dn(b)&&!b.type.__asyncResolved){let G;H?(G=z(Ne),G.anchor=F?F.previousSibling:X.lastChild):G=m.nodeType===3?Ee(""):z("div"),G.el=m,b.component.subTree=G}}else ne&64?ce!==8?F=I():F=b.type.hydrate(m,b,C,A,E,B,e,d):ne&128&&(F=b.type.hydrate(m,b,C,A,Cs(i(m)),E,B,e,c))}return q!=null&&Yr(q,null,A,b),F},h=(m,b,C,A,E,B)=>{B=B||!!b.dynamicChildren;const{type:H,props:I,patchFlag:K,shapeFlag:q,dirs:ne,transition:ee}=b,ce=H==="input"||H==="option";if(ce||K!==-1){ne&&$t(b,null,C,"created");let F=!1;if(v(m)){F=Lf(null,ee)&&C&&C.vnode.props&&C.vnode.props.appear;const G=m.content.firstChild;F&&ee.beforeEnter(G),_(G,m,C),b.el=m=G}if(q&16&&!(I&&(I.innerHTML||I.textContent))){let G=d(m.firstChild,b,m,C,A,E,B);for(;G;){Ss(m,1)||Kn();const be=G;G=G.nextSibling,a(be)}}else if(q&8){let G=b.children;G[0]===`
|
|
15
|
+
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(G=G.slice(1)),m.textContent!==G&&(Ss(m,0)||Kn(),m.textContent=b.children)}if(I){if(ce||!B||K&48){const G=m.tagName.includes("-");for(const be in I)(ce&&(be.endsWith("value")||be==="indeterminate")||fs(be)&&!ir(be)||be[0]==="."||G)&&r(m,be,null,I[be],void 0,C)}else if(I.onClick)r(m,"onClick",null,I.onClick,void 0,C);else if(K&4&&Mn(I.style))for(const G in I.style)I.style[G]}let X;(X=I&&I.onVnodeBeforeMount)&<(X,C,b),ne&&$t(b,null,C,"beforeMount"),((X=I&&I.onVnodeMounted)||ne||F)&&Gf(()=>{X&<(X,C,b),F&&ee.enter(m),ne&&$t(b,null,C,"mounted")},A)}return m.nextSibling},d=(m,b,C,A,E,B,H)=>{H=H||!!b.dynamicChildren;const I=b.children,K=I.length;for(let q=0;q<K;q++){const ne=H?I[q]:I[q]=it(I[q]),ee=ne.type===Fn;m?(ee&&!H&&q+1<K&&it(I[q+1]).type===Fn&&(l(s(m.data.slice(ne.children.length)),C,o(m)),m.data=ne.children),m=c(m,ne,A,E,B,H)):ee&&!ne.children?l(ne.el=s(""),C):(Ss(C,1)||Kn(),n(null,ne,C,null,A,E,Cs(C),B))}return m},p=(m,b,C,A,E,B)=>{const{slotScopeIds:H}=b;H&&(E=E?E.concat(H):H);const I=i(m),K=d(o(m),b,I,C,A,E,B);return K&&er(K)&&K.data==="]"?o(b.anchor=K):(Kn(),l(b.anchor=f("]"),I,K),K)},g=(m,b,C,A,E,B)=>{if(Ss(m.parentElement,1)||Kn(),b.el=null,B){const K=y(m);for(;;){const q=o(m);if(q&&q!==K)a(q);else break}}const H=o(m),I=i(m);return a(m),n(null,b,I,H,C,A,Cs(I),E),C&&(C.vnode.el=b.el,$o(C,b.el)),H},y=(m,b="[",C="]")=>{let A=0;for(;m;)if(m=o(m),m&&er(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 E=C;for(;E;)E.vnode.el===b&&(E.vnode.el=E.subTree.el=m),E=E.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[u,c]}const Hl="data-allow-mismatch",_g={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ss(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Hl);)e=e.parentElement;const n=e&&e.getAttribute(Hl);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(_g[t])}}xo().requestIdleCallback;xo().cancelIdleCallback;function wg(e,t){if(er(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(er(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Dn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Fl(e){Y(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let f=null,u,c=0;const h=()=>(c++,f=null,d()),d=()=>{let p;return f||(p=f=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,_)=>{l(g,()=>y(h()),()=>_(g),c+1)});throw g}).then(g=>p!==f&&f?f:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return Ze({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(p,g,y){const _=o?()=>{const v=o(y,m=>wg(p,m));v&&(g.bum||(g.bum=[])).push(v)}:y;u?_():d().then(()=>!g.isUnmounted&&_())},get __asyncResolved(){return u},setup(){const p=Ie;if(Wa(p),u)return()=>oi(u,p);const g=m=>{f=null,Sr(m,p,13,!r)};if(a&&p.suspense||mr)return d().then(m=>()=>oi(m,p)).catch(m=>(g(m),()=>r?z(r,{error:m}):null));const y=_e(!1),_=_e(),v=_e(!!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),d().then(()=>{y.value=!0,p.parent&&za(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),_.value=m}),()=>{if(y.value&&u)return oi(u,p);if(_.value&&r)return z(r,{error:_.value});if(n&&!v.value)return z(n)}}})}function oi(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=z(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const za=e=>e.type.__isKeepAlive;function ff(e,t){df(e,"a",t)}function hf(e,t){df(e,"da",t)}function df(e,t,n=Ie){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(To(t,r,n),n){let s=n.parent;for(;s&&s.parent;)za(s.parent.vnode)&&bg(r,t,n,s),s=s.parent}}function bg(e,t,n,r){const s=To(t,e,r,!0);qa(()=>{Pa(r[t],s)},n)}function To(e,t,n=Ie,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{bn();const a=jn(n),l=Dt(t,n,e,i);return a(),vn(),l});return r?s.unshift(o):s.push(o),o}}const Xt=e=>(t,n=Ie)=>{(!mr||e==="sp")&&To(e,(...r)=>t(...r),n)},pf=Xt("bm"),gf=Xt("m"),vg=Xt("bu"),Cg=Xt("u"),Va=Xt("bum"),qa=Xt("um"),Sg=Xt("sp"),xg=Xt("rtg"),kg=Xt("rtc");function mf(e,t=Ie){To("ec",e,t)}const yf="components";function yn(e,t){return wf(yf,e,!0,t)||e}const _f=Symbol.for("v-ndc");function Eg(e){return ke(e)?wf(yf,e,!1)||e:e||_f}function wf(e,t,n=!0,r=!1){const s=Le||Ie;if(s){const o=s.type;{const a=ym(o,!1);if(a&&(a===t||a===gt(t)||a===So(gt(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[gt(t)]||e[So(gt(t))])}function ii(e,t,n,r){let s;const o=n,i=Z(e);if(i||ke(e)){const a=i&&Mn(e);let l=!1;a&&(l=!pt(e),e=ko(e)),s=new Array(e.length);for(let f=0,u=e.length;f<u;f++)s[f]=t(l?We(e[f]):e[f],f,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(we(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,f=a.length;l<f;l++){const u=a[l];s[l]=t(e[u],u,l,o)}}else s=[];return s}function ze(e,t,n={},r,s){if(Le.ce||Le.parent&&Dn(Le.parent)&&Le.parent.ce)return t!=="default"&&(n.name=t),Q(),De(Ne,null,[z("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),Q();const i=o&&bf(o(n)),a=n.key||i&&i.key,l=De(Ne,{key:(a&&!St(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 bf(e){return e.some(t=>pr(t)?!(t.type===xt||t.type===Ne&&!bf(t.children)):!0)?e:null}const Fi=e=>e?Vf(e)?Oo(e):Fi(e.parent):null,Mr=qe(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=>Fi(e.parent),$root:e=>Fi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Cf(e),$forceUpdate:e=>e.f||(e.f=()=>{Ga(e.update)}),$nextTick:e=>e.n||(e.n=Eo.bind(e.proxy)),$watch:e=>Kg.bind(e)}),ai=(e,t)=>e!==ye&&!e.__isScriptSetup&&de(e,t),Ag={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 f;if(t[0]!=="$"){const d=i[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(ai(r,t))return i[t]=1,r[t];if(s!==ye&&de(s,t))return i[t]=2,s[t];if((f=e.propsOptions[0])&&de(f,t))return i[t]=3,o[t];if(n!==ye&&de(n,t))return i[t]=4,n[t];ji&&(i[t]=0)}}const u=Mr[t];let c,h;if(u)return t==="$attrs"&&Ue(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==ye&&de(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,de(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return ai(s,t)?(s[t]=n,!0):r!==ye&&de(r,t)?(r[t]=n,!0):de(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!==ye&&de(e,i)||ai(t,i)||(a=o[0])&&de(a,i)||de(r,i)||de(Mr,i)||de(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Gl(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Tg(e){const t=ps();let n=e();return Vi(),$a(n)&&(n=n.catch(r=>{throw jn(t),r})),[n,()=>jn(t)]}let ji=!0;function Rg(e){const t=Cf(e),n=e.proxy,r=e.ctx;ji=!1,t.beforeCreate&&Ul(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:f,created:u,beforeMount:c,mounted:h,beforeUpdate:d,updated:p,activated:g,deactivated:y,beforeDestroy:_,beforeUnmount:v,destroyed:m,unmounted:b,render:C,renderTracked:A,renderTriggered:E,errorCaptured:B,serverPrefetch:H,expose:I,inheritAttrs:K,components:q,directives:ne,filters:ee}=t;if(f&&Pg(f,r,null),i)for(const X in i){const G=i[X];Y(G)&&(r[X]=G.bind(n))}if(s){const X=s.call(n,n);we(X)&&(e.data=gn(X))}if(ji=!0,o)for(const X in o){const G=o[X],be=Y(G)?G.bind(n,n):Y(G.get)?G.get.bind(n,n):It,zn=!Y(G)&&Y(G.set)?G.set.bind(n):It,Cn=je({get:be,set:zn});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>Cn.value,set:Et=>Cn.value=Et})}if(a)for(const X in a)vf(a[X],r,n,X);if(l){const X=Y(l)?l.call(n):l;Reflect.ownKeys(X).forEach(G=>{xf(G,X[G])})}u&&Ul(u,e,"c");function F(X,G){Z(G)?G.forEach(be=>X(be.bind(n))):G&&X(G.bind(n))}if(F(pf,c),F(gf,h),F(vg,d),F(Cg,p),F(ff,g),F(hf,y),F(mf,B),F(kg,A),F(xg,E),F(Va,v),F(qa,b),F(Sg,H),Z(I))if(I.length){const X=e.exposed||(e.exposed={});I.forEach(G=>{Object.defineProperty(X,G,{get:()=>n[G],set:be=>n[G]=be})})}else e.exposed||(e.exposed={});C&&e.render===It&&(e.render=C),K!=null&&(e.inheritAttrs=K),q&&(e.components=q),ne&&(e.directives=ne),H&&Wa(e)}function Pg(e,t,n=It){Z(e)&&(e=Gi(e));for(const r in e){const s=e[r];let o;we(s)?"default"in s?o=Hn(s.from||r,s.default,!0):o=Hn(s.from||r):o=Hn(s),Te(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Ul(e,t,n){Dt(Z(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function vf(e,t,n,r){let s=r.includes(".")?Bf(n,r):()=>n[r];if(ke(e)){const o=t[e];Y(o)&&lr(s,o)}else if(Y(e))lr(s,e.bind(n));else if(we(e))if(Z(e))e.forEach(o=>vf(o,t,n,r));else{const o=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(o)&&lr(s,o,e)}}function Cf(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(f=>Xs(l,f,i,!0)),Xs(l,t,i)),we(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=$g[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const $g={data:Wl,props:zl,emits:zl,methods:Nr,computed:Nr,beforeCreate:Xe,created:Xe,beforeMount:Xe,mounted:Xe,beforeUpdate:Xe,updated:Xe,beforeDestroy:Xe,beforeUnmount:Xe,destroyed:Xe,unmounted:Xe,activated:Xe,deactivated:Xe,errorCaptured:Xe,serverPrefetch:Xe,components:Nr,directives:Nr,watch:Og,provide:Wl,inject:Ng};function Wl(e,t){return t?e?function(){return qe(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Ng(e,t){return Nr(Gi(e),Gi(t))}function Gi(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Xe(e,t){return e?[...new Set([].concat(e,t))]:t}function Nr(e,t){return e?qe(Object.create(null),e,t):t}function zl(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:qe(Object.create(null),Gl(e),Gl(t??{})):t}function Og(e,t){if(!e)return t;if(!t)return e;const n=qe(Object.create(null),e);for(const r in t)n[r]=Xe(e[r],t[r]);return n}function Sf(){return{app:null,config:{isNativeTag:yp,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 Ig=0;function Lg(e,t){return function(r,s=null){Y(r)||(r=qe({},r)),s!=null&&!we(s)&&(s=null);const o=Sf(),i=new WeakSet,a=[];let l=!1;const f=o.app={_uid:Ig++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:wm,get config(){return o.config},set config(u){},use(u,...c){return i.has(u)||(u&&Y(u.install)?(i.add(u),u.install(f,...c)):Y(u)&&(i.add(u),u(f,...c))),f},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),f},component(u,c){return c?(o.components[u]=c,f):o.components[u]},directive(u,c){return c?(o.directives[u]=c,f):o.directives[u]},mount(u,c,h){if(!l){const d=f._ceVNode||z(r,s);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),c&&t?t(d,u):e(d,u,h),l=!0,f._container=u,u.__vue_app__=f,Oo(d.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Dt(a,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(u,c){return o.provides[u]=c,f},runWithContext(u){const c=Bn;Bn=f;try{return u()}finally{Bn=c}}};return f}}let Bn=null;function xf(e,t){if(Ie){let n=Ie.provides;const r=Ie.parent&&Ie.parent.provides;r===n&&(n=Ie.provides=Object.create(r)),n[e]=t}}function Hn(e,t,n=!1){const r=Ie||Le;if(r||Bn){const s=Bn?Bn._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Y(t)?t.call(r&&r.proxy):t}}function Ro(){return!!(Ie||Le||Bn)}const kf={},Ef=()=>Object.create(kf),Af=e=>Object.getPrototypeOf(e)===kf;function Mg(e,t,n,r=!1){const s={},o=Ef();e.propsDefaults=Object.create(null),Tf(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 Dg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=fe(s),[l]=e.propsOptions;let f=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let c=0;c<u.length;c++){let h=u[c];if(Po(e.emitsOptions,h))continue;const d=t[h];if(l)if(de(o,h))d!==o[h]&&(o[h]=d,f=!0);else{const p=gt(h);s[p]=Ui(l,a,p,d,e,!1)}else d!==o[h]&&(o[h]=d,f=!0)}}}else{Tf(e,t,s,o)&&(f=!0);let u;for(const c in a)(!t||!de(t,c)&&((u=wn(c))===c||!de(t,u)))&&(l?n&&(n[c]!==void 0||n[u]!==void 0)&&(s[c]=Ui(l,a,c,void 0,e,!0)):delete s[c]);if(o!==a)for(const c in o)(!t||!de(t,c))&&(delete o[c],f=!0)}f&&Vt(e.attrs,"set","")}function Tf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(ir(l))continue;const f=t[l];let u;s&&de(s,u=gt(l))?!o||!o.includes(u)?n[u]=f:(a||(a={}))[u]=f:Po(e.emitsOptions,l)||(!(l in r)||f!==r[l])&&(r[l]=f,i=!0)}if(o){const l=fe(n),f=a||ye;for(let u=0;u<o.length;u++){const c=o[u];n[c]=Ui(s,l,c,f[c],e,!de(f,c))}}return i}function Ui(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=de(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Y(l)){const{propsDefaults:f}=s;if(n in f)r=f[n];else{const u=jn(s);r=f[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===wn(n))&&(r=!0))}return r}const Bg=new WeakMap;function Rf(e,t,n=!1){const r=n?Bg:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!Y(e)){const u=c=>{l=!0;const[h,d]=Rf(c,t,!0);qe(i,h),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return we(e)&&r.set(e,sr),sr;if(Z(o))for(let u=0;u<o.length;u++){const c=gt(o[u]);Vl(c)&&(i[c]=ye)}else if(o)for(const u in o){const c=gt(u);if(Vl(c)){const h=o[u],d=i[c]=Z(h)||Y(h)?{type:h}:qe({},h),p=d.type;let g=!1,y=!0;if(Z(p))for(let _=0;_<p.length;++_){const v=p[_],m=Y(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=Y(p)&&p.name==="Boolean";d[0]=g,d[1]=y,(g||de(d,"default"))&&a.push(c)}}const f=[i,a];return we(e)&&r.set(e,f),f}function Vl(e){return e[0]!=="$"&&!ir(e)}const Pf=e=>e[0]==="_"||e==="$stable",Ka=e=>Z(e)?e.map(it):[it(e)],Hg=(e,t,n)=>{if(t._n)return t;const r=ue((...s)=>Ka(t(...s)),n);return r._c=!1,r},$f=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Pf(s))continue;const o=e[s];if(Y(o))t[s]=Hg(s,o,r);else if(o!=null){const i=Ka(o);t[s]=()=>i}}},Nf=(e,t)=>{const n=Ka(t);e.slots.default=()=>n},Of=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Fg=(e,t,n)=>{const r=e.slots=Ef();if(e.vnode.shapeFlag&32){const s=t._;s?(Of(r,t,n),n&&Bu(r,"_",s,!0)):$f(t,r)}else t&&Nf(e,t)},jg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=ye;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Of(s,t,n):(o=!t.$stable,$f(t,s)),i=t}else t&&(Nf(e,t),i={default:1});if(o)for(const a in s)!Pf(a)&&i[a]==null&&delete s[a]},ot=Gf;function Gg(e){return If(e)}function Ug(e){return If(e,yg)}function If(e,t){const n=xo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:f,setElementText:u,parentNode:c,nextSibling:h,setScopeId:d=It,insertStaticContent:p}=e,g=(w,S,k,P=null,T=null,R=null,D=void 0,M=null,L=!!S.dynamicChildren)=>{if(w===S)return;w&&!on(w,S)&&(P=_s(w),Et(w,T,R,!0),w=null),S.patchFlag===-2&&(L=!1,S.dynamicChildren=null);const{type:$,ref:J,shapeFlag:j}=S;switch($){case Fn:y(w,S,k,P);break;case xt:_(w,S,k,P);break;case Dr:w==null&&v(S,k,P,D);break;case Ne:q(w,S,k,P,T,R,D,M,L);break;default:j&1?C(w,S,k,P,T,R,D,M,L):j&6?ne(w,S,k,P,T,R,D,M,L):(j&64||j&128)&&$.process(w,S,k,P,T,R,D,M,L,Vn)}J!=null&&T&&Yr(J,w&&w.ref,R,S||w,!S)},y=(w,S,k,P)=>{if(w==null)r(S.el=a(S.children),k,P);else{const T=S.el=w.el;S.children!==w.children&&f(T,S.children)}},_=(w,S,k,P)=>{w==null?r(S.el=l(S.children||""),k,P):S.el=w.el},v=(w,S,k,P)=>{[w.el,w.anchor]=p(w.children,S,k,P,w.el,w.anchor)},m=({el:w,anchor:S},k,P)=>{let T;for(;w&&w!==S;)T=h(w),r(w,k,P),w=T;r(S,k,P)},b=({el:w,anchor:S})=>{let k;for(;w&&w!==S;)k=h(w),s(w),w=k;s(S)},C=(w,S,k,P,T,R,D,M,L)=>{S.type==="svg"?D="svg":S.type==="math"&&(D="mathml"),w==null?A(S,k,P,T,R,D,M,L):H(w,S,T,R,D,M,L)},A=(w,S,k,P,T,R,D,M)=>{let L,$;const{props:J,shapeFlag:j,transition:V,dirs:te}=w;if(L=w.el=i(w.type,R,J&&J.is,J),j&8?u(L,w.children):j&16&&B(w.children,L,null,P,T,li(w,R),D,M),te&&$t(w,null,P,"created"),E(L,w,w.scopeId,D,P),J){for(const ve in J)ve!=="value"&&!ir(ve)&&o(L,ve,null,J[ve],R,P);"value"in J&&o(L,"value",null,J.value,R),($=J.onVnodeBeforeMount)&<($,P,w)}te&&$t(w,null,P,"beforeMount");const ae=Lf(T,V);ae&&V.beforeEnter(L),r(L,S,k),(($=J&&J.onVnodeMounted)||ae||te)&&ot(()=>{$&<($,P,w),ae&&V.enter(L),te&&$t(w,null,P,"mounted")},T)},E=(w,S,k,P,T)=>{if(k&&d(w,k),P)for(let R=0;R<P.length;R++)d(w,P[R]);if(T){let R=T.subTree;if(S===R||Ff(R.type)&&(R.ssContent===S||R.ssFallback===S)){const D=T.vnode;E(w,D,D.scopeId,D.slotScopeIds,T.parent)}}},B=(w,S,k,P,T,R,D,M,L=0)=>{for(let $=L;$<w.length;$++){const J=w[$]=M?nn(w[$]):it(w[$]);g(null,J,S,k,P,T,R,D,M)}},H=(w,S,k,P,T,R,D)=>{const M=S.el=w.el;let{patchFlag:L,dynamicChildren:$,dirs:J}=S;L|=w.patchFlag&16;const j=w.props||ye,V=S.props||ye;let te;if(k&&xn(k,!1),(te=V.onVnodeBeforeUpdate)&<(te,k,S,w),J&&$t(S,w,k,"beforeUpdate"),k&&xn(k,!0),(j.innerHTML&&V.innerHTML==null||j.textContent&&V.textContent==null)&&u(M,""),$?I(w.dynamicChildren,$,M,k,P,li(S,T),R):D||G(w,S,M,null,k,P,li(S,T),R,!1),L>0){if(L&16)K(M,j,V,k,T);else if(L&2&&j.class!==V.class&&o(M,"class",null,V.class,T),L&4&&o(M,"style",j.style,V.style,T),L&8){const ae=S.dynamicProps;for(let ve=0;ve<ae.length;ve++){const pe=ae[ve],tt=j[pe],He=V[pe];(He!==tt||pe==="value")&&o(M,pe,tt,He,T,k)}}L&1&&w.children!==S.children&&u(M,S.children)}else!D&&$==null&&K(M,j,V,k,T);((te=V.onVnodeUpdated)||J)&&ot(()=>{te&<(te,k,S,w),J&&$t(S,w,k,"updated")},P)},I=(w,S,k,P,T,R,D)=>{for(let M=0;M<S.length;M++){const L=w[M],$=S[M],J=L.el&&(L.type===Ne||!on(L,$)||L.shapeFlag&70)?c(L.el):k;g(L,$,J,null,P,T,R,D,!0)}},K=(w,S,k,P,T)=>{if(S!==k){if(S!==ye)for(const R in S)!ir(R)&&!(R in k)&&o(w,R,S[R],null,T,P);for(const R in k){if(ir(R))continue;const D=k[R],M=S[R];D!==M&&R!=="value"&&o(w,R,M,D,T,P)}"value"in k&&o(w,"value",S.value,k.value,T)}},q=(w,S,k,P,T,R,D,M,L)=>{const $=S.el=w?w.el:a(""),J=S.anchor=w?w.anchor:a("");let{patchFlag:j,dynamicChildren:V,slotScopeIds:te}=S;te&&(M=M?M.concat(te):te),w==null?(r($,k,P),r(J,k,P),B(S.children||[],k,J,T,R,D,M,L)):j>0&&j&64&&V&&w.dynamicChildren?(I(w.dynamicChildren,V,k,T,R,D,M),(S.key!=null||T&&S===T.subTree)&&Mf(w,S,!0)):G(w,S,k,J,T,R,D,M,L)},ne=(w,S,k,P,T,R,D,M,L)=>{S.slotScopeIds=M,w==null?S.shapeFlag&512?T.ctx.activate(S,k,P,D,L):ee(S,k,P,T,R,D,L):ce(w,S,L)},ee=(w,S,k,P,T,R,D)=>{const M=w.component=hm(w,P,T);if(za(w)&&(M.ctx.renderer=Vn),dm(M,!1,D),M.asyncDep){if(T&&T.registerDep(M,F,D),!w.el){const L=M.subTree=z(xt);_(null,L,S,k)}}else F(M,w,S,k,T,R,D)},ce=(w,S,k)=>{const P=S.component=w.component;if(em(w,S,k))if(P.asyncDep&&!P.asyncResolved){X(P,S,k);return}else P.next=S,P.update();else S.el=w.el,P.vnode=S},F=(w,S,k,P,T,R,D)=>{const M=()=>{if(w.isMounted){let{next:j,bu:V,u:te,parent:ae,vnode:ve}=w;{const nt=Df(w);if(nt){j&&(j.el=ve.el,X(w,j,D)),nt.asyncDep.then(()=>{w.isUnmounted||M()});return}}let pe=j,tt;xn(w,!1),j?(j.el=ve.el,X(w,j,D)):j=ve,V&&Is(V),(tt=j.props&&j.props.onVnodeBeforeUpdate)&<(tt,ae,j,ve),xn(w,!0);const He=ci(w),mt=w.subTree;w.subTree=He,g(mt,He,c(mt.el),_s(mt),w,T,R),j.el=He.el,pe===null&&$o(w,He.el),te&&ot(te,T),(tt=j.props&&j.props.onVnodeUpdated)&&ot(()=>lt(tt,ae,j,ve),T)}else{let j;const{el:V,props:te}=S,{bm:ae,m:ve,parent:pe,root:tt,type:He}=w,mt=Dn(S);if(xn(w,!1),ae&&Is(ae),!mt&&(j=te&&te.onVnodeBeforeMount)&<(j,pe,S),xn(w,!0),V&&Qo){const nt=()=>{w.subTree=ci(w),Qo(V,w.subTree,w,T,null)};mt&&He.__asyncHydrate?He.__asyncHydrate(V,w,nt):nt()}else{tt.ce&&tt.ce._injectChildStyle(He);const nt=w.subTree=ci(w);g(null,nt,k,P,w,T,R),S.el=nt.el}if(ve&&ot(ve,T),!mt&&(j=te&&te.onVnodeMounted)){const nt=S;ot(()=>lt(j,pe,nt),T)}(S.shapeFlag&256||pe&&Dn(pe.vnode)&&pe.vnode.shapeFlag&256)&&w.a&&ot(w.a,T),w.isMounted=!0,S=k=P=null}};w.scope.on();const L=w.effect=new Wu(M);w.scope.off();const $=w.update=L.run.bind(L),J=w.job=L.runIfDirty.bind(L);J.i=w,J.id=w.uid,L.scheduler=()=>Ga(J),xn(w,!0),$()},X=(w,S,k)=>{S.component=w;const P=w.vnode.props;w.vnode=S,w.next=null,Dg(w,S.props,P,k),jg(w,S.children,k),bn(),Dl(w),vn()},G=(w,S,k,P,T,R,D,M,L=!1)=>{const $=w&&w.children,J=w?w.shapeFlag:0,j=S.children,{patchFlag:V,shapeFlag:te}=S;if(V>0){if(V&128){zn($,j,k,P,T,R,D,M,L);return}else if(V&256){be($,j,k,P,T,R,D,M,L);return}}te&8?(J&16&&Er($,T,R),j!==$&&u(k,j)):J&16?te&16?zn($,j,k,P,T,R,D,M,L):Er($,T,R,!0):(J&8&&u(k,""),te&16&&B(j,k,P,T,R,D,M,L))},be=(w,S,k,P,T,R,D,M,L)=>{w=w||sr,S=S||sr;const $=w.length,J=S.length,j=Math.min($,J);let V;for(V=0;V<j;V++){const te=S[V]=L?nn(S[V]):it(S[V]);g(w[V],te,k,null,T,R,D,M,L)}$>J?Er(w,T,R,!0,!1,j):B(S,k,P,T,R,D,M,L,j)},zn=(w,S,k,P,T,R,D,M,L)=>{let $=0;const J=S.length;let j=w.length-1,V=J-1;for(;$<=j&&$<=V;){const te=w[$],ae=S[$]=L?nn(S[$]):it(S[$]);if(on(te,ae))g(te,ae,k,null,T,R,D,M,L);else break;$++}for(;$<=j&&$<=V;){const te=w[j],ae=S[V]=L?nn(S[V]):it(S[V]);if(on(te,ae))g(te,ae,k,null,T,R,D,M,L);else break;j--,V--}if($>j){if($<=V){const te=V+1,ae=te<J?S[te].el:P;for(;$<=V;)g(null,S[$]=L?nn(S[$]):it(S[$]),k,ae,T,R,D,M,L),$++}}else if($>V)for(;$<=j;)Et(w[$],T,R,!0),$++;else{const te=$,ae=$,ve=new Map;for($=ae;$<=V;$++){const rt=S[$]=L?nn(S[$]):it(S[$]);rt.key!=null&&ve.set(rt.key,$)}let pe,tt=0;const He=V-ae+1;let mt=!1,nt=0;const Ar=new Array(He);for($=0;$<He;$++)Ar[$]=0;for($=te;$<=j;$++){const rt=w[$];if(tt>=He){Et(rt,T,R,!0);continue}let At;if(rt.key!=null)At=ve.get(rt.key);else for(pe=ae;pe<=V;pe++)if(Ar[pe-ae]===0&&on(rt,S[pe])){At=pe;break}At===void 0?Et(rt,T,R,!0):(Ar[At-ae]=$+1,At>=nt?nt=At:mt=!0,g(rt,S[At],k,null,T,R,D,M,L),tt++)}const Tl=mt?Wg(Ar):sr;for(pe=Tl.length-1,$=He-1;$>=0;$--){const rt=ae+$,At=S[rt],Rl=rt+1<J?S[rt+1].el:P;Ar[$]===0?g(null,At,k,Rl,T,R,D,M,L):mt&&(pe<0||$!==Tl[pe]?Cn(At,k,Rl,2):pe--)}}},Cn=(w,S,k,P,T=null)=>{const{el:R,type:D,transition:M,children:L,shapeFlag:$}=w;if($&6){Cn(w.component.subTree,S,k,P);return}if($&128){w.suspense.move(S,k,P);return}if($&64){D.move(w,S,k,Vn);return}if(D===Ne){r(R,S,k);for(let j=0;j<L.length;j++)Cn(L[j],S,k,P);r(w.anchor,S,k);return}if(D===Dr){m(w,S,k);return}if(P!==2&&$&1&&M)if(P===0)M.beforeEnter(R),r(R,S,k),ot(()=>M.enter(R),T);else{const{leave:j,delayLeave:V,afterLeave:te}=M,ae=()=>r(R,S,k),ve=()=>{j(R,()=>{ae(),te&&te()})};V?V(R,ae,ve):ve()}else r(R,S,k)},Et=(w,S,k,P=!1,T=!1)=>{const{type:R,props:D,ref:M,children:L,dynamicChildren:$,shapeFlag:J,patchFlag:j,dirs:V,cacheIndex:te}=w;if(j===-2&&(T=!1),M!=null&&Yr(M,null,k,w,!0),te!=null&&(S.renderCache[te]=void 0),J&256){S.ctx.deactivate(w);return}const ae=J&1&&V,ve=!Dn(w);let pe;if(ve&&(pe=D&&D.onVnodeBeforeUnmount)&<(pe,S,w),J&6)hp(w.component,k,P);else{if(J&128){w.suspense.unmount(k,P);return}ae&&$t(w,null,S,"beforeUnmount"),J&64?w.type.remove(w,S,k,Vn,P):$&&!$.hasOnce&&(R!==Ne||j>0&&j&64)?Er($,S,k,!1,!0):(R===Ne&&j&384||!T&&J&16)&&Er(L,S,k),P&&El(w)}(ve&&(pe=D&&D.onVnodeUnmounted)||ae)&&ot(()=>{pe&<(pe,S,w),ae&&$t(w,null,S,"unmounted")},k)},El=w=>{const{type:S,el:k,anchor:P,transition:T}=w;if(S===Ne){fp(k,P);return}if(S===Dr){b(w);return}const R=()=>{s(k),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(w.shapeFlag&1&&T&&!T.persisted){const{leave:D,delayLeave:M}=T,L=()=>D(k,R);M?M(w.el,R,L):L()}else R()},fp=(w,S)=>{let k;for(;w!==S;)k=h(w),s(w),w=k;s(S)},hp=(w,S,k)=>{const{bum:P,scope:T,job:R,subTree:D,um:M,m:L,a:$}=w;ql(L),ql($),P&&Is(P),T.stop(),R&&(R.flags|=8,Et(D,w,S,k)),M&&ot(M,S),ot(()=>{w.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve())},Er=(w,S,k,P=!1,T=!1,R=0)=>{for(let D=R;D<w.length;D++)Et(w[D],S,k,P,T)},_s=w=>{if(w.shapeFlag&6)return _s(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const S=h(w.anchor||w.el),k=S&&S[dg];return k?h(k):S};let Xo=!1;const Al=(w,S,k)=>{w==null?S._vnode&&Et(S._vnode,null,null,!0):g(S._vnode||null,w,S,null,null,null,k),S._vnode=w,Xo||(Xo=!0,Dl(),qs(),Xo=!1)},Vn={p:g,um:Et,m:Cn,r:El,mt:ee,mc:B,pc:G,pbc:I,n:_s,o:e};let Jo,Qo;return t&&([Jo,Qo]=t(Vn)),{render:Al,hydrate:Jo,createApp:Lg(Al,Jo)}}function li({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 xn({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 Mf(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]=nn(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Mf(i,a)),a.type===Fn&&(a.el=i.el)}}function Wg(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const f=e[r];if(f!==0){if(s=n[n.length-1],e[s]<f){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<f?o=a+1:i=a;f<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 Df(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Df(t)}function ql(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const zg=Symbol.for("v-scx"),Vg=()=>Hn(zg);function qg(e,t){return Xa(e,null,t)}function lr(e,t,n){return Xa(e,t,n)}function Xa(e,t,n=ye){const{immediate:r,deep:s,flush:o,once:i}=n,a=qe({},n),l=t&&r||!t&&o!=="post";let f;if(mr){if(o==="sync"){const d=Vg();f=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=It,d.resume=It,d.pause=It,d}}const u=Ie;a.call=(d,p,g)=>Dt(d,u,p,g);let c=!1;o==="post"?a.scheduler=d=>{ot(d,u&&u.suspense)}:o!=="sync"&&(c=!0,a.scheduler=(d,p)=>{p?d():Ga(d)}),a.augmentJob=d=>{t&&(d.flags|=4),c&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const h=ig(e,t,a);return mr&&(f?f.push(h):l&&h()),h}function Kg(e,t,n){const r=this.proxy,s=ke(e)?e.includes(".")?Bf(r,e):()=>r[e]:e.bind(r,r);let o;Y(t)?o=t:(o=t.handler,n=t);const i=jn(this),a=Xa(s,o.bind(r),n);return i(),a}function Bf(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 Xg=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${gt(t)}Modifiers`]||e[`${wn(t)}Modifiers`];function Jg(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ye;let s=n;const o=t.startsWith("update:"),i=o&&Xg(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>ke(u)?u.trim():u)),i.number&&(s=n.map(Cp)));let a,l=r[a=ei(t)]||r[a=ei(gt(t))];!l&&o&&(l=r[a=ei(wn(t))]),l&&Dt(l,e,6,s);const f=r[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Dt(f,e,6,s)}}function Hf(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(!Y(e)){const l=f=>{const u=Hf(f,t,!0);u&&(a=!0,qe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(we(e)&&r.set(e,null),null):(Z(o)?o.forEach(l=>i[l]=null):qe(i,o),we(e)&&r.set(e,i),i)}function Po(e,t){return!e||!fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,wn(t))||de(e,t))}function ci(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:f,renderCache:u,props:c,data:h,setupState:d,ctx:p,inheritAttrs:g}=e,y=Ks(e);let _,v;try{if(n.shapeFlag&4){const b=s||r,C=b;_=it(f.call(C,b,u,c,d,h,p)),v=a}else{const b=t;_=it(b.length>1?b(c,{attrs:a,slots:i,emit:l}):b(c,null)),v=t.props?a:Yg(a)}}catch(b){Br.length=0,Sr(b,e,1),_=z(xt)}let m=_;if(v&&g!==!1){const b=Object.keys(v),{shapeFlag:C}=m;b.length&&C&7&&(o&&b.some(Ra)&&(v=Zg(v,o)),m=gr(m,v,!1,!0))}return n.dirs&&(m=gr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Ua(m,n.transition),_=m,Ks(y),_}function Qg(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(pr(s)){if(s.type!==xt||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Yg=e=>{let t;for(const n in e)(n==="class"||n==="style"||fs(n))&&((t||(t={}))[n]=e[n]);return t},Zg=(e,t)=>{const n={};for(const r in e)(!Ra(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function em(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,f=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,f):!!i;if(l&8){const u=t.dynamicProps;for(let c=0;c<u.length;c++){const h=u[c];if(i[h]!==r[h]&&!Po(f,h))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Kl(r,i,f):!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]&&!Po(n,o))return!0}return!1}function $o({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 Ff=e=>e.__isSuspense;let Wi=0;const tm={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,f){if(e==null)rm(t,n,r,s,o,i,a,l,f);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}sm(e,t,n,r,s,i,a,l,f)}},hydrate:om,normalize:im},nm=tm;function Zr(e,t){const n=e.props&&e.props[t];Y(n)&&n()}function rm(e,t,n,r,s,o,i,a,l){const{p:f,o:{createElement:u}}=l,c=u("div"),h=e.suspense=jf(e,s,r,t,c,n,o,i,a,l);f(null,h.pendingBranch=e.ssContent,c,null,r,h,o,i),h.deps>0?(Zr(e,"onPending"),Zr(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,o,i),cr(h,e.ssFallback)):h.resolve(!1,!0)}function sm(e,t,n,r,s,o,i,a,{p:l,um:f,o:{createElement:u}}){const c=t.suspense=e.suspense;c.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:y,isHydrating:_}=c;if(g)c.pendingBranch=h,on(h,g)?(l(g,h,c.hiddenContainer,null,s,c,o,i,a),c.deps<=0?c.resolve():y&&(_||(l(p,d,n,r,s,null,o,i,a),cr(c,d)))):(c.pendingId=Wi++,_?(c.isHydrating=!1,c.activeBranch=g):f(g,s,c),c.deps=0,c.effects.length=0,c.hiddenContainer=u("div"),y?(l(null,h,c.hiddenContainer,null,s,c,o,i,a),c.deps<=0?c.resolve():(l(p,d,n,r,s,null,o,i,a),cr(c,d))):p&&on(h,p)?(l(p,h,n,r,s,c,o,i,a),c.resolve(!0)):(l(null,h,c.hiddenContainer,null,s,c,o,i,a),c.deps<=0&&c.resolve()));else if(p&&on(h,p))l(p,h,n,r,s,c,o,i,a),cr(c,h);else if(Zr(t,"onPending"),c.pendingBranch=h,h.shapeFlag&512?c.pendingId=h.component.suspenseId:c.pendingId=Wi++,l(null,h,c.hiddenContainer,null,s,c,o,i,a),c.deps<=0)c.resolve();else{const{timeout:v,pendingId:m}=c;v>0?setTimeout(()=>{c.pendingId===m&&c.fallback(d)},v):v===0&&c.fallback(d)}}function jf(e,t,n,r,s,o,i,a,l,f,u=!1){const{p:c,m:h,um:d,n:p,o:{parentNode:g,remove:y}}=f;let _;const v=am(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const m=e.props?Sp(e.props.timeout):void 0,b=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Wi++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(A=!1,E=!1){const{vnode:B,activeBranch:H,pendingBranch:I,pendingId:K,effects:q,parentComponent:ne,container:ee}=C;let ce=!1;C.isHydrating?C.isHydrating=!1:A||(ce=H&&I.transition&&I.transition.mode==="out-in",ce&&(H.transition.afterLeave=()=>{K===C.pendingId&&(h(I,ee,o===b?p(H):o,0),Hi(q))}),H&&(g(H.el)===ee&&(o=p(H)),d(H,ne,C,!0)),ce||h(I,ee,o,0)),cr(C,I),C.pendingBranch=null,C.isInFallback=!1;let F=C.parent,X=!1;for(;F;){if(F.pendingBranch){F.effects.push(...q),X=!0;break}F=F.parent}!X&&!ce&&Hi(q),C.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Zr(B,"onResolve")},fallback(A){if(!C.pendingBranch)return;const{vnode:E,activeBranch:B,parentComponent:H,container:I,namespace:K}=C;Zr(E,"onFallback");const q=p(B),ne=()=>{C.isInFallback&&(c(null,A,I,q,H,null,K,a,l),cr(C,A))},ee=A.transition&&A.transition.mode==="out-in";ee&&(B.transition.afterLeave=ne),C.isInFallback=!0,d(B,H,null,!0),ee||ne()},move(A,E,B){C.activeBranch&&h(C.activeBranch,A,E,B),C.container=A},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(A,E,B){const H=!!C.pendingBranch;H&&C.deps++;const I=A.vnode.el;A.asyncDep.catch(K=>{Sr(K,A,0)}).then(K=>{if(A.isUnmounted||C.isUnmounted||C.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:q}=A;qi(A,K),I&&(q.el=I);const ne=!I&&A.subTree.el;E(A,q,g(I||A.subTree.el),I?null:p(A.subTree),C,i,B),ne&&y(ne),$o(A,q.el),H&&--C.deps===0&&C.resolve()})},unmount(A,E){C.isUnmounted=!0,C.activeBranch&&d(C.activeBranch,n,A,E),C.pendingBranch&&d(C.pendingBranch,n,A,E)}};return C}function om(e,t,n,r,s,o,i,a,l){const f=t.suspense=jf(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),u=l(e,f.pendingBranch=t.ssContent,n,f,o,i);return f.deps===0&&f.resolve(!1,!0),u}function im(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Xl(r?n.default:n),e.ssFallback=r?Xl(n.fallback):z(xt)}function Xl(e){let t;if(Y(e)){const n=dr&&e._c;n&&(e._d=!1,Q()),e=e(),n&&(e._d=!0,t=Ye,Uf())}return Z(e)&&(e=Qg(e)),e=it(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Gf(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):Hi(e)}function cr(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,$o(r,s))}function am(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ne=Symbol.for("v-fgt"),Fn=Symbol.for("v-txt"),xt=Symbol.for("v-cmt"),Dr=Symbol.for("v-stc"),Br=[];let Ye=null;function Q(e=!1){Br.push(Ye=e?null:[])}function Uf(){Br.pop(),Ye=Br[Br.length-1]||null}let dr=1;function Jl(e,t=!1){dr+=e,e<0&&Ye&&t&&(Ye.hasOnce=!0)}function Wf(e){return e.dynamicChildren=dr>0?Ye||sr:null,Uf(),dr>0&&Ye&&Ye.push(e),e}function he(e,t,n,r,s,o){return Wf(W(e,t,n,r,s,o,!0))}function De(e,t,n,r,s){return Wf(z(e,t,n,r,s,!0))}function pr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const zf=({key:e})=>e??null,Ls=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Te(e)||Y(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function W(e,t=null,n=null,r=0,s=null,o=e===Ne?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zf(t),ref:t&&Ls(t),scopeId:Ao,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:Le};return a?(Qa(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),dr>0&&!i&&Ye&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ye.push(l),l}const z=lm;function lm(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===_f)&&(e=xt),pr(e)){const a=gr(e,t,!0);return n&&Qa(a,n),dr>0&&!o&&Ye&&(a.shapeFlag&6?Ye[Ye.indexOf(e)]=a:Ye.push(a)),a.patchFlag=-2,a}if(_m(e)&&(e=e.__vccOpts),t){t=Ja(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=Oe(a)),we(l)&&(Fa(l)&&!Z(l)&&(l=qe({},l)),t.style=In(l))}const i=ke(e)?1:Ff(e)?128:pg(e)?64:we(e)?4:Y(e)?2:0;return W(e,t,n,r,s,i,o,!0)}function Ja(e){return e?Fa(e)||Af(e)?qe({},e):e:null}function gr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,f=t?No(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&zf(f),ref:t&&t.ref?n&&o?Z(o)?o.concat(Ls(t)):[o,Ls(t)]:Ls(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!==Ne?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&&gr(e.ssContent),ssFallback:e.ssFallback&&gr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ua(u,l.clone(u)),u}function Ee(e=" ",t=0){return z(Fn,null,e,t)}function cm(e,t){const n=z(Dr,null,e);return n.staticCount=t,n}function Nt(e="",t=!1){return t?(Q(),De(xt,null,e)):z(xt,null,e)}function it(e){return e==null||typeof e=="boolean"?z(xt):Z(e)?z(Ne,null,e.slice()):pr(e)?nn(e):z(Fn,null,String(e))}function nn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gr(e)}function Qa(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),Qa(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Af(t)?t._ctx=Le:s===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),r&64?(n=16,t=[Ee(t)]):n=8);e.children=t,e.shapeFlag|=n}function No(...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=Oe([t.class,r.class]));else if(s==="style")t.style=In([t.style,r.style]);else if(fs(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 lt(e,t,n,r=null){Dt(e,t,7,[n,r])}const um=Sf();let fm=0;function hm(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||um,o={uid:fm++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Uu(!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:Rf(r,s),emitsOptions:Hf(r,s),emit:null,emitted:null,propsDefaults:ye,inheritAttrs:r.inheritAttrs,ctx:ye,data:ye,props:ye,attrs:ye,slots:ye,refs:ye,setupState:ye,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=Jg.bind(null,o),e.ce&&e.ce(o),o}let Ie=null;const ps=()=>Ie||Le;let Js,zi;{const e=xo(),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=>Ie=n),zi=t("__VUE_SSR_SETTERS__",n=>mr=n)}const jn=e=>{const t=Ie;return Js(e),e.scope.on(),()=>{e.scope.off(),Js(t)}},Vi=()=>{Ie&&Ie.scope.off(),Js(null)};function Vf(e){return e.vnode.shapeFlag&4}let mr=!1;function dm(e,t=!1,n=!1){t&&zi(t);const{props:r,children:s}=e.vnode,o=Vf(e);Mg(e,r,o,t),Fg(e,s,n);const i=o?pm(e,t):void 0;return t&&zi(!1),i}function pm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ag);const{setup:r}=n;if(r){bn();const s=e.setupContext=r.length>1?mm(e):null,o=jn(e),i=ds(r,e,0,[e.props,s]),a=$a(i);if(vn(),o(),(a||e.sp)&&!Dn(e)&&Wa(e),a){if(i.then(Vi,Vi),t)return i.then(l=>{qi(e,l)}).catch(l=>{Sr(l,e,0)});e.asyncDep=i}else qi(e,i)}else qf(e)}function qi(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:we(t)&&(e.setupState=af(t)),qf(e)}function qf(e,t,n){const r=e.type;e.render||(e.render=r.render||It);{const s=jn(e);bn();try{Rg(e)}finally{vn(),s()}}}const gm={get(e,t){return Ue(e,"get",""),e[t]}};function mm(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,gm),slots:e.slots,emit:e.emit,expose:t}}function Oo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(af(Qp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Mr)return Mr[n](e)},has(t,n){return n in t||n in Mr}})):e.proxy}function ym(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function _m(e){return Y(e)&&"__vccOpts"in e}const je=(e,t)=>sg(e,t,mr);function yr(e,t,n){const r=arguments.length;return r===2?we(t)&&!Z(t)?pr(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pr(n)&&(n=[n]),z(e,t,n))}const wm="3.5.13";/**
|
|
16
|
+
* @vue/runtime-dom v3.5.13
|
|
17
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
|
+
* @license MIT
|
|
19
|
+
**/let Ki;const Ql=typeof window<"u"&&window.trustedTypes;if(Ql)try{Ki=Ql.createPolicy("vue",{createHTML:e=>e})}catch{}const Kf=Ki?e=>Ki.createHTML(e):e=>e,bm="http://www.w3.org/2000/svg",vm="http://www.w3.org/1998/Math/MathML",Gt=typeof document<"u"?document:null,Yl=Gt&&Gt.createElement("template"),Cm={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"?Gt.createElementNS(bm,e):t==="mathml"?Gt.createElementNS(vm,e):n?Gt.createElement(e,{is:n}):Gt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Gt.createTextNode(e),createComment:e=>Gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gt.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{Yl.innerHTML=Kf(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Yl.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]}},Sm=Symbol("_vtc");function xm(e,t,n){const r=e[Sm];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zl=Symbol("_vod"),km=Symbol("_vsh"),Em=Symbol(""),Am=/(^|;)\s*display\s*:/;function Tm(e,t,n){const r=e.style,s=ke(n);let o=!1;if(n&&!s){if(t)if(ke(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[Em];i&&(n+=";"+i),r.cssText=n,o=Am.test(n)}}else t&&e.removeAttribute("style");Zl in e&&(e[Zl]=o?r.display:"",e[km]&&(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=Rm(e,t);ec.test(n)?e.setProperty(wn(r),n.replace(ec,""),"important"):e[r]=n}}const tc=["Webkit","Moz","ms"],ui={};function Rm(e,t){const n=ui[t];if(n)return n;let r=gt(t);if(r!=="filter"&&r in e)return ui[t]=r;r=So(r);for(let s=0;s<tc.length;s++){const o=tc[s]+r;if(o in e)return ui[t]=o}return t}const nc="http://www.w3.org/1999/xlink";function rc(e,t,n,r,s,o=Rp(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(nc,t.slice(6,t.length)):e.setAttributeNS(nc,t,n):n==null||o&&!Fu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":St(n)?String(n):n)}function sc(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Kf(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=Fu(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 Xf(e,t,n,r){e.addEventListener(t,n,r)}function Pm(e,t,n,r){e.removeEventListener(t,n,r)}const oc=Symbol("_vei");function $m(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]=Nm(t);if(r){const f=o[t]=Lm(r,s);Xf(e,a,f,l)}else i&&(Pm(e,a,i,l),o[t]=void 0)}}const ic=/(?:Once|Passive|Capture)$/;function Nm(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):wn(e.slice(2)),t]}let fi=0;const Om=Promise.resolve(),Im=()=>fi||(Om.then(()=>fi=0),fi=Date.now());function Lm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Dt(Mm(r,n.value),t,5,[r])};return n.value=e,n.attached=Im(),n}function Mm(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,Dm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?xm(e,r,i):t==="style"?Tm(e,n,r):fs(t)?Ra(t)||$m(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Bm(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)||!ke(r))?sc(e,gt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rc(e,t,r,i))};function Bm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ac(t)&&Y(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ac(t)&&ke(n)?!1:t in e}const lc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>Is(t,n):t},hi=Symbol("_assign"),Hm={created(e,{value:t},n){e.checked=Us(t,n.props.value),e[hi]=lc(n),Xf(e,"change",()=>{e[hi](Fm(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[hi]=lc(r),t!==n&&(e.checked=Us(t,r.props.value))}};function Fm(e){return"_value"in e?e._value:e.value}const jm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Gm=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=wn(s.key);if(t.some(i=>i===o||jm[i]===o))return e(s)})},Jf=qe({patchProp:Dm},Cm);let Hr,cc=!1;function Um(){return Hr||(Hr=Gg(Jf))}function Wm(){return Hr=cc?Hr:Ug(Jf),cc=!0,Hr}const Qf=(...e)=>{const t=Um().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Zf(r);if(!s)return;const o=t._component;!Y(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Yf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},zm=(...e)=>{const t=Wm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Zf(r);if(s)return n(s,!0,Yf(s))},t};function Yf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Zf(e){return ke(e)?document.querySelector(e):e}const Vm=/"(?:_|\\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*:/,qm=/"(?: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*:/,Km=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Xm(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Jm(e);return}return t}function Jm(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Qs(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(!Km.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Vm.test(e)||qm.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Xm)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Qm=/#/g,Ym=/&/g,Zm=/\//g,ey=/=/g,Ya=/\+/g,ty=/%5e/gi,ny=/%60/gi,ry=/%7c/gi,sy=/%20/gi;function oy(e){return encodeURI(""+e).replace(ry,"|")}function Xi(e){return oy(typeof e=="string"?e:JSON.stringify(e)).replace(Ya,"%2B").replace(sy,"+").replace(Qm,"%23").replace(Ym,"%26").replace(ny,"`").replace(ty,"^").replace(Zm,"%2F")}function di(e){return Xi(e).replace(ey,"%3D")}function Ys(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function iy(e){return Ys(e.replace(Ya," "))}function ay(e){return Ys(e.replace(Ya," "))}function Io(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=iy(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=ay(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 ly(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${di(e)}=${Xi(n)}`).join("&"):`${di(e)}=${Xi(t)}`:di(e)}function eh(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>ly(t,e[t])).filter(Boolean).join("&")}const cy=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,th=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,uy=/^([/\\]\s*){2,}[^/\\]/,fy=/^[\s\0]*(blob|data|javascript|vbscript):$/i,hy=/\/$|\/\?|\/#/,dy=/^\.?\//;function Jt(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?cy.test(e):th.test(e)||(t.acceptRelative?uy.test(e):!1)}function py(e){return!!e&&fy.test(e)}function Ji(e="",t){return t?hy.test(e):e.endsWith("/")}function Lo(e="",t){if(!t)return(Ji(e)?e.slice(0,-1):e)||"/";if(!Ji(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 Zs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ji(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 gy(e=""){return e.startsWith("/")}function uc(e=""){return gy(e)?e:"/"+e}function nh(e,t){if(sh(t)||Jt(e))return e;const n=Lo(t);return e.startsWith(n)?e:gs(n,e)}function my(e,t){if(sh(t))return e;const n=Lo(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function rh(e,t){const n=ah(e),r={...Io(n.search),...t};return n.search=eh(r),lh(n)}function sh(e){return!e||e==="/"}function yy(e){return e&&e!=="/"}function gs(e,...t){let n=e||"";for(const r of t.filter(s=>yy(s)))if(n){const s=r.replace(dy,"");n=Zs(n)+s}else n=r;return n}function oh(...e){var i,a,l,f;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const u of n)if(!(!u||u==="/")){for(const[c,h]of u.split(t).entries())if(!(!h||h===".")){if(h===".."){if(r.length===1&&Jt(r[0]))continue;r.pop(),s--;continue}if(c===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+h;continue}r.push(h),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,(f=n[n.length-1])!=null&&f.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function _y(e){return wy(e,"https://")}function wy(e,t){let n=e.match(th);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function by(e,t,n={}){return n.trailingSlash||(e=Zs(e),t=Zs(t)),n.leadingSlash||(e=uc(e),t=uc(t)),n.encoding||(e=Ys(e),t=Ys(t)),e===t}const ih=Symbol.for("ufo:protocolRelative");function ah(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,c,h=""]=n;return{protocol:c.toLowerCase(),pathname:h,href:c+h,auth:"",host:"",search:"",hash:""}}if(!Jt(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:f,hash:u}=fc(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:f,hash:u,[ih]:!r}}function fc(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function lh(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[ih]?(e.protocol||"")+"//":"")+s+o+t+n+r}class vy extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Cy(e){var l,f,u,c,h;const t=((l=e.error)==null?void 0:l.message)||((f=e.error)==null?void 0:f.toString())||"",n=((u=e.request)==null?void 0:u.method)||((c=e.options)==null?void 0:c.method)||"GET",r=((h=e.request)==null?void 0:h.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 vy(i,e.error?{cause:e.error}:void 0);for(const d of["request","options","response"])Object.defineProperty(a,d,{get(){return e[d]}});for(const[d,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,d,{get(){return e.response&&e.response[p]}});return a}const Sy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function hc(e="GET"){return Sy.has(e.toUpperCase())}function xy(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 ky=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Ey=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Ay(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Ey.test(t)?"json":ky.has(t)||t.startsWith("text/")?"text":"blob"}function Ty(e,t,n,r){const s=Ry((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 Ry(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 xs(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Py=new Set([408,409,425,429,500,502,503,504]),$y=new Set([101,204,205,304]);function ch(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 u;typeof a.options.retry=="number"?u=a.options.retry:u=hc(a.options.method)?0:1;const c=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(c):Py.has(c))){const h=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),o(a.request,{...a.options,retry:u-1})}}const f=Cy(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,o),f}const o=async function(l,f={}){const u={request:l,options:Ty(l,f,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await xs(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=nh(u.request,u.options.baseURL)),u.options.query&&(u.request=rh(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&hc(u.options.method)&&(xy(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let c;if(!u.options.signal&&u.options.timeout){const d=new r;c=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,d.abort(p)},u.options.timeout),u.options.signal=d.signal}try{u.response=await t(u.request,u.options)}catch(d){return u.error=d,u.options.onRequestError&&await xs(u,u.options.onRequestError),await s(u)}finally{c&&clearTimeout(c)}if((u.response.body||u.response._bodyInit)&&!$y.has(u.response.status)&&u.options.method!=="HEAD"){const d=(u.options.parseResponse?"json":u.options.responseType)||Ay(u.response.headers.get("content-type")||"");switch(d){case"json":{const p=await u.response.text(),g=u.options.parseResponse||Qs;u.response._data=g(p);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[d]()}}return u.options.onResponse&&await xs(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await xs(u,u.options.onResponseError),await s(u)):u.response},i=async function(l,f){return(await o(l,f))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>ch({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const eo=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")}(),Ny=eo.fetch?(...e)=>eo.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Oy=eo.Headers,Iy=eo.AbortController,Ly=ch({fetch:Ny,Headers:Oy,AbortController:Iy}),My=Ly,Dy=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},to=Dy().app,By=()=>to.baseURL,Hy=()=>to.buildAssetsDir,Za=(...e)=>oh(uh(),Hy(),...e),uh=(...e)=>{const t=to.cdnURL||to.baseURL;return e.length?oh(t,...e):t};globalThis.__buildAssetsURL=Za,globalThis.__publicAssetsURL=uh;globalThis.$fetch||(globalThis.$fetch=My.create({baseURL:By()}));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 Fy={run:e=>e()},jy=()=>Fy,fh=typeof console.createTask<"u"?console.createTask:jy;function Gy(e,t){const n=t.shift(),r=fh(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Uy(e,t){const n=t.shift(),r=fh(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function pi(e,t){for(const n of[...e])n(t)}class Wy{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(Gy,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Uy,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&pi(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&pi(this._after,s)}):(this._after&&s&&pi(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 hh(){return new Wy}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},f=()=>t===i?l:void 0;Yi.add(f);try{const u=s?s.run(i,a):a();return n||(t=void 0),await u}finally{Yi.delete(f)}}}}function Vy(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=zy({...e,...r})),t[n]}}}const no=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},dc="__unctx__",qy=no[dc]||(no[dc]=Vy()),Ky=(e,t={})=>qy.get(e,t),pc="__unctx_async_handlers__",Yi=no[pc]||(no[pc]=new Set);function dh(e){const t=[];for(const s of Yi){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 Xy={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},tr={value:null,errorValue:null,deep:!0},Jy=null,Qy="#__nuxt",ph="nuxt-app",gc=36e5,Yy="vite:preloadError";function gh(e=ph){return Ky(e,{asyncContext:!1})}const Zy="__nuxt_plugin";function e_(e){var s;let t=0;const n={_id:e.id||ph||"nuxt-app",_scope:$p(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.2"},get vue(){return n.vueApp.version}},payload:Zn({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:Zn({}),state:gn({}),once:new Set,_errors:Zn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Oa()?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=hh(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;ks(n,a,i),ks(n.vueApp.config.globalProperties,a,i)},ks(n.vueApp,"$nuxt",n),ks(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Yy,i=>{n.callHook("app:chunkError",{error:i.payload}),(n.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Re);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 t_(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function n_(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 r_(e,t){const n=[],r=[],s=[],o=[];let i=0;async function a(l){var u;const f=((u=l.dependsOn)==null?void 0:u.filter(c=>t.some(h=>h._name===c)&&!n.includes(c)))??[];if(f.length>0)r.push([new Set(f),l]);else{const c=n_(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([h,d])=>{h.has(l._name)&&(h.delete(l._name),h.size===0&&(i++,await a(d)))})))});l.parallel?s.push(c.catch(h=>o.push(h))):await c}}for(const l of t)t_(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 kt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Zy]:!0,_name:t})}function mc(e,t,n){const r=()=>t();return gh(e._id).set(e),e.vueApp.runWithContext(r)}function mh(e){var n;let t;return Ro()&&(t=(n=ps())==null?void 0:n.appContext.app.$nuxt),t||(t=gh(e).tryUse()),t||null}function Re(e){const t=mh(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function _r(e){return Re().$config}function ks(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function s_(e,t){return{ctx:{table:e},matchAll:n=>_h(n,e)}}function yh(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,yh(s)])):new Map(Object.entries(e[n]));return t}function o_(e){return s_(yh(e))}function _h(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(..._h(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 gi(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 Zi(e,t,n=".",r){if(!gi(t))return Zi(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]]:gi(i)&&gi(s[o])?s[o]=Zi(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function i_(e){return(...t)=>t.reduce((n,r)=>Zi(n,r,"",e),{})}const a_=i_();function l_(e,t){try{return t in e}catch{return!1}}class ea extends Error{constructor(n,r={}){super(n,r);x(this,"statusCode",500);x(this,"fatal",!1);x(this,"unhandled",!1);x(this,"statusMessage");x(this,"data");x(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:ta(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=wh(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}x(ea,"__h3_error__",!0);function c_(e){if(typeof e=="string")return new ea(e);if(u_(e))return e;const t=new ea(e.message??e.statusMessage??"",{cause:e.cause||e});if(l_(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=ta(e.statusCode,t.statusCode):e.status&&(t.statusCode=ta(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;wh(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 u_(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const f_=/[^\u0009\u0020-\u007E]/g;function wh(e=""){return e.replace(f_,"")}function ta(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const bh=Symbol("route"),Bt=()=>{var e;return(e=Re())==null?void 0:e.$router},vh=()=>Ro()?Hn(bh,Re()._route):Re()._route;const h_=()=>{try{if(Re()._processingMiddleware)return!0}catch{return!1}return!1},Ch=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?na(e):Bt().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:f={}}=t.open,u=Object.entries(f).filter(([c,h])=>h!==void 0).map(([c,h])=>`${c.toLowerCase()}=${h}`).join(", ");return open(n,l,u),Promise.resolve()}const r=Jt(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&&py(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=h_();if(!s&&o){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:f,hash:u}=ah(e);return{path:l,...f&&{query:Io(f)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Bt(),a=Re();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 na(e){return rh(e.path||"",e.query||{})+(e.hash||"")}const Sh="__nuxt_error",el=()=>ja(Re().payload,"error"),d_=e=>{const t=Mo(e);try{const n=Re(),r=el();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},p_=async(e={})=>{const t=Re(),n=el();t.callHook("app:error:cleared",e),e.redirect&&await Bt().replace(e.redirect),n.value=Jy},g_=e=>!!e&&typeof e=="object"&&Sh in e,Mo=e=>{const t=c_(e);return Object.defineProperty(t,Sh,{value:!0,configurable:!1,writable:!1}),t};function _c(e){const t=y_(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 m_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function y_(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|=m_.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 __=-1,w_=-2,b_=-3,v_=-4,C_=-5,S_=-6;function x_(e,t){return k_(JSON.parse(e),t)}function k_(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===__)return;if(o===b_)return NaN;if(o===v_)return 1/0;if(o===C_)return-1/0;if(o===S_)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],f=t==null?void 0:t[l];if(f)return r[o]=f(s(a[1]));switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;d<a.length;d+=1)u.add(s(a[d]));break;case"Map":const c=new Map;r[o]=c;for(let d=1;d<a.length;d+=2)c.set(s(a[d]),s(a[d+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 h=Object.create(null);r[o]=h;for(let d=1;d<a.length;d+=2)h[a[d]]=s(a[d+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 d=globalThis[l],p=a[1],g=_c(p),y=new d(g);r[o]=y;break}case"ArrayBuffer":{const d=a[1],p=_c(d);r[o]=p;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[o]=l;for(let f=0;f<a.length;f+=1){const u=a[f];u!==w_&&(l[f]=s(u))}}else{const l={};r[o]=l;for(const f in a){const u=a[f];l[f]=s(u)}}return r[o]}return s(0)}const E_=new Set(["link","style","script","noscript"]),A_=new Set(["title","titleTemplate","script","style","noscript"]),wc=new Set(["base","meta","link","style","script","noscript"]),T_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),R_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),P_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),$_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),N_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const O_=["name","property","http-equiv"];function xh(e){const t=e.split(":")[1];return N_.has(t)}function ra(e){const{props:t,tag:n}=e;if(R_.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 O_)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(A_.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 ro(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=>ro(o,t));if((s==null?void 0:s.constructor)===Object){const o={};for(const i of Object.keys(s))o[i]=ro(s[i],t,i);return o}return s}function I_(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 kh(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]=I_(n,r);return}if(P_.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 L_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=kh({tag:e,props:{}},n);return r.key&&E_.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 M_(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=ro(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(L_(s,i))}),r.flat()}const sa=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,vc={base:-10,title:10},D_={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}},B_=/@import/,Rr=e=>e===""||e===!0;function H_(e,t){var o;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=D_[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"?Rr(t.props.async)?n=s.script.async:t.props.src&&!Rr(t.props.defer)&&!Rr(t.props.async)&&t.props.type!=="module"&&!((o=t.props.type)!=null&&o.endsWith("json"))?n=s.script.sync:Rr(t.props.defer)&&t.props.src&&!Rr(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&B_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function Sc(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 F_(e={}){var a;const t=hh();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=>Sc(i,l),push(l,f){const u={...f||{}};delete u.head;const c=u._index??i._entryCount++,h={_i:c,input:l,options:u},d={_poll(p=!1){i.dirty=!0,!p&&o.push(c),t.callHook("entries:updated",i)},dispose(){r.delete(c)&&d._poll(!0)},patch(p){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(h.input=p,r.set(c,h),d._poll())}};return d.patch(l),d},async resolveTags(){var d;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:M_(g.input,e.propResolvers||[]).map(_=>Object.assign(_,g.options)),entry:g};await t.callHook("entries:normalize",y),g._tags=y.tags.map((_,v)=>(_._w=H_(i,_),_._p=(g._i<<10)+v,_._d=ra(_),_))}}let f=!1;l.entries.flatMap(p=>(p._tags||[]).map(g=>({...g,props:{...g.props}}))).sort(sa).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)||($_.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&&xh(g._d)?(p.set(y,Object.assign([...Array.isArray(_)?_:[_],g],g)),f=!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 u=l.tagMap.get("title"),c=l.tagMap.get("titleTemplate");if(i._title=u==null?void 0:u.textContent,c){const p=c==null?void 0:c.textContent;if(i._titleTemplate=p,p){let g=typeof p=="function"?p(u==null?void 0:u.textContent):p;typeof g=="string"&&!i.plugins.has("template-params")&&(g=g.replace("%s",(u==null?void 0:u.textContent)||"")),u?g===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:g}):(c.tag="title",c.textContent=g)}}l.tags=Array.from(l.tagMap.values()),f&&(l.tags=l.tags.flat().sort(sa)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const h=[];for(const p of l.tags){const{innerHTML:g,tag:y,props:_}=p;if(T_.has(y)&&!(Object.keys(_).length===0&&!p.innerHTML&&!p.textContent)&&!(y==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(y==="script"&&g){if((d=_.type)!=null&&d.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=ra(p)}h.push(p)}}return h}};return((e==null?void 0:e.plugins)||[]).forEach(l=>Sc(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const rn="%separator",j_=new RegExp(`${rn}(?:\\s*${rn})*`,"g");function G_(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 Es(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(rn);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===rn||!o.includes(a))return a;const l=G_(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(rn)&&(e=e.slice(0,-rn.length)),e.startsWith(rn)&&(e=e.slice(rn.length)),e=e.replace(j_,n||"").trim()),e}const xc=e=>e.includes(":key")?e:e.split(":").join(":key:"),U_={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=xc(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=xc(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(sa))}}},W_={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 oa(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=>oa(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await oa(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(oa(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},V_={meta:"content",link:"href",htmlAttrs:"lang"},q_=["innerHTML","textContent"],K_=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=Es(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const a=V_[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=Es(i.props[a],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of q_)typeof i[l]=="string"&&(i[l]=Es(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=Es(n.textContent,e._templateParams,e._separator))}}}),X_=(e,t)=>Te(t)?Jr(t):t,tl="usehead";function J_(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(tl,e)}}.install}function Q_(){if(Ro()){const e=Hn(tl);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 Y_(e,t={}){const n=t.head||Q_();return n.ssr?n.push(e||{},t):Z_(n,e,t)}function Z_(e,t,n={}){const r=_e(!1);let s;return qg(()=>{const i=r.value?{}:ro(t,X_);s?s.patch(i):s=e.push(i,n)}),ps()&&(Va(()=>{s.dispose()}),hf(()=>{r.value=!0}),ff(()=>{r.value=!1})),s}function ew(e){var n;const t=e||mh();return((n=t==null?void 0:t.ssrContext)==null?void 0:n.head)||(t==null?void 0:t.runWithContext(()=>{if(Ro())return Hn(tl)}))}function tw(e,t={}){const n=ew(t.nuxt);if(n)return Y_(e,{head:n,...t})}const nw="modulepreload",rw=function(e,t){return new URL(e,t).href},kc={},nr=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(f=>{if(f=rw(f,r),f in kc)return;kc[f]=!0;const u=f.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const g=i[p];if(g.href===f&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":nw,u||(d.as="script"),d.crossOrigin="",d.href=f,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${f}`)))})}))}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 Ds,Bs;function sw(){return Ds=$fetch(Za(`builds/meta/${_r().app.buildId}.json`),{responseType:"json"}),Ds.then(e=>{Bs=o_(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Ds}function Do(){return Ds||sw()}async function nl(e){const t=typeof e=="string"?e:e.path;if(await Do(),!Bs)return console.error("[nuxt] Error creating app manifest matcher.",Bs),{};try{return a_({},...Bs.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Ec(e,t={}){if(!await Ah(e))return null;const r=await iw(e,t);return await Eh(r)||null}const ow="_payload.json";async function iw(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Jt(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=_r(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await Ah(e)?o:r.app.baseURL;return gs(i,n.pathname,ow+(s?`?${s}`:""))}async function Eh(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Th));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Ah(e=vh().path){const t=Re();return e=Lo(e),(await Do()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await nl({path:e});return!!r.prerender&&!r.redirect})}let kn=null;async function aw(){var r;if(kn)return kn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Th(e.textContent||""),n=e.dataset.src?await Eh(e.dataset.src):void 0;return kn={...t,...n,...window.__NUXT__},(r=kn.config)!=null&&r.public&&(kn.config.public=gn(kn.config.public)),kn}async function Th(e){return await x_(e,Re()._payloadRevivers)}function lw(e,t){Re()._payloadRevivers[e]=t}const cw=[["NuxtError",e=>Mo(e)],["EmptyShallowRef",e=>Bi(e==="_"?void 0:e==="0n"?BigInt(0):Qs(e))],["EmptyRef",e=>_e(e==="_"?void 0:e==="0n"?BigInt(0):Qs(e))],["ShallowRef",e=>Bi(e)],["ShallowReactive",e=>Zn(e)],["Ref",e=>_e(e)],["Reactive",e=>gn(e)]],uw=kt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of cw)lw(r,s);Object.assign(e.payload,([t,n]=dh(()=>e.runWithContext(aw)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function rl(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 d;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&&xh(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=(d=n[p])==null?void 0:d.children;for(const y of g){const _=y.tagName.toLowerCase();if(!wc.has(_))continue;const v=kh({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=ra(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 f({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 u=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const p of h){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?f(p):wc.has(g.tag)&&u.push(p)}}for(const p of u){const g=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),f(p),c[g]=c[g]||n.createDocumentFragment(),c[g].appendChild(p.$el)}for(const p of h)await e.hooks.callHook("dom:renderTag",p,n,l);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose);for(const p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function fw(e={}){var r,s,o;const t=((r=e.domOptions)==null?void 0:r.render)||rl;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 F_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function hw(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function dw(e={}){const t=fw({domOptions:{render:hw(()=>rl(t),n=>setTimeout(n,0))},...e});return t.install=J_(t),t}const pw={disableDefaults:!0,disableCapoSorting:!1,plugins:[W_,z_,K_,U_]},gw=kt({name:"nuxt:head",enforce:"pre",setup(e){const t=dw(pw);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await rl(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)}}}),mw=async e=>{let t,n;const r=([t,n]=dh(()=>nl({path:e.path})),t=await t,n(),t);if(r.redirect)return Jt(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},yw=[mw];function mi(e){typeof e=="object"&&(e=lh({pathname:e.path||"",search:eh(e.query||{}),hash:e.hash||""}));const t=new URL(e.toString(),window.location.href);return{path:t.pathname,fullPath:e,query:Io(t.search),hash:t.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:e}}const _w=kt({name:"nuxt:router",enforce:"pre",setup(e){const t=my(window.location.pathname,_r().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(c,h)=>(r[c].push(h),()=>r[c].splice(r[c].indexOf(h),1)),o=_r().app.baseURL,i=gn(mi(t));async function a(c,h){try{const d=mi(c);for(const p of r["navigate:before"]){const g=await p(d,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(d,i);Object.assign(i,d),window.history[h?"replaceState":"pushState"]({},"",gs(o,d.fullPath)),e.isHydrating||await e.runWithContext(p_);for(const p of r["navigate:after"])await p(d,i)}catch(d){for(const p of r.error)await p(d)}}const f={currentRoute:je(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:c=>a(c,!1),replace:c=>a(c,!0),back:()=>window.history.go(-1),go:c=>window.history.go(c),forward:()=>window.history.go(1),beforeResolve:c=>s("resolve:before",c),beforeEach:c=>s("navigate:before",c),afterEach:c=>s("navigate:after",c),onError:c=>s("error",c),resolve:mi,addRoute:(c,h)=>{n.push(h)},getRoutes:()=>n,hasRoute:c=>n.some(h=>h.name===c),removeRoute:c=>{const h=n.findIndex(d=>d.name===c);h!==-1&&n.splice(h,1)}};e.vueApp.component("RouterLink",Ze({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(c,{slots:h})=>{const d=()=>a(c.to,c.replace);return()=>{var g;const p=f.resolve(c.to);return c.custom?(g=h.default)==null?void 0:g.call(h,{href:c.to,navigate:d,route:p}):yr("a",{href:c.to,onClick:y=>(y.preventDefault(),d())},h)}}})),window.addEventListener("popstate",c=>{const h=c.target.location;f.replace(h.href.replace(h.origin,""))}),e._route=i,e._middleware||(e._middleware={global:[],named:{}});const u=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{f.beforeEach(async(c,h)=>{c.meta=gn(c.meta||{}),e.isHydrating&&u&&!mn(c.meta.layout)&&(c.meta.layout=u),e._processingMiddleware=!0;{const d=new Set([...yw,...e._middleware.global]);{const p=await e.runWithContext(()=>nl({path:c.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const y=e._middleware.named[g];if(!y)return;p.appMiddleware[g]?d.add(y):d.delete(y)}}for(const p of d){const g=await e.runWithContext(()=>p(c,h));if(g!==!0&&(g||g===!1))return g}}}),f.afterEach(()=>{delete e._processingMiddleware}),await f.replace(t),by(i.fullPath,t)||await e.runWithContext(()=>Ch(i.fullPath))}),{provide:{route:i,router:f}}}}),ia=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),ww=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Bo=e=>{const t=Re();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{ia(()=>e())}):ia(()=>e())},bw=e=>e==="defer"||e===!1;function vw(...e){var g;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,s={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const o=Re(),i=r,a=()=>tr.value,l=()=>o.isHydrating?o.payload.data[n]:o.static.data[n];s.server??(s.server=!0),s.default??(s.default=a),s.getCachedData??(s.getCachedData=l),s.lazy??(s.lazy=!1),s.immediate??(s.immediate=!0),s.deep??(s.deep=tr.deep),s.dedupe??(s.dedupe="cancel");const f=s.getCachedData(n,o),u=f!=null;if(!o._asyncData[n]||!s.immediate){(g=o.payload._errors)[n]??(g[n]=tr.errorValue);const y=s.deep?_e:Bi;o._asyncData[n]={data:y(u?f:s.default()),pending:_e(!u),error:ja(o.payload._errors,n),status:_e("idle"),_default:s.default}}const c={...o._asyncData[n]};delete c._default,c.refresh=c.execute=(y={})=>{if(o._asyncDataPromises[n]){if(bw(y.dedupe??s.dedupe))return o._asyncDataPromises[n];o._asyncDataPromises[n].cancelled=!0}if(y._initial||o.isHydrating&&y._initial!==!1){const v=y._initial?f:s.getCachedData(n,o);if(v!=null)return Promise.resolve(v)}c.pending.value=!0,c.status.value="pending";const _=new Promise((v,m)=>{try{v(i(o))}catch(b){m(b)}}).then(async v=>{if(_.cancelled)return o._asyncDataPromises[n];let m=v;s.transform&&(m=await s.transform(v)),s.pick&&(m=Sw(m,s.pick)),o.payload.data[n]=m,c.data.value=m,c.error.value=tr.errorValue,c.status.value="success"}).catch(v=>{if(_.cancelled)return o._asyncDataPromises[n];c.error.value=Mo(v),c.data.value=oe(s.default()),c.status.value="error"}).finally(()=>{_.cancelled||(c.pending.value=!1,delete o._asyncDataPromises[n])});return o._asyncDataPromises[n]=_,o._asyncDataPromises[n]},c.clear=()=>Cw(o,n);const h=()=>c.refresh({_initial:!0}),d=s.server!==!1&&o.payload.serverRendered;{const y=ps();if(y&&d&&s.immediate&&!y.sp&&(y.sp=[]),y&&!y._nuxtOnBeforeMountCbs){y._nuxtOnBeforeMountCbs=[];const m=y._nuxtOnBeforeMountCbs;pf(()=>{m.forEach(b=>{b()}),m.splice(0,m.length)}),qa(()=>m.splice(0,m.length))}d&&o.isHydrating&&(c.error.value||f!=null)?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):y&&(o.payload.serverRendered&&o.isHydrating||s.lazy)&&s.immediate?y._nuxtOnBeforeMountCbs.push(h):s.immediate&&h();const _=Oa();if(s.watch){const m=lr(s.watch,()=>c.refresh());_&&Il(m)}const v=o.hook("app:data:refresh",async m=>{(!m||m.includes(n))&&await c.refresh()});_&&Il(v)}const p=Promise.resolve(o._asyncDataPromises[n]).then(()=>c);return Object.assign(p,c),p}function Cw(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=tr.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=tr.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function Sw(e,t){const n={};for(const r of t)n[r]=e[r];return n}const xw="$s";function kw(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=xw+n,o=Re(),i=ja(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(Te(a))return o.payload.state[s]=a,a;i.value=a}return i}async function Rh(e,t=Bt()){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(()=>Rh(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)}function Ew(e={}){const t=e.path||window.location.pathname;let n={};try{n=Qs(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:Re().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Aw=(...e)=>e.find(t=>t!==void 0);function Tw(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i){if(!o||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return o;if(typeof o=="string")return Ac(o,e.trailingSlash);const a="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:Ac(a,e.trailingSlash)}}function s(o){const i=Bt(),a=_r(),l=je(()=>!!o.target&&o.target!=="_self"),f=je(()=>{const y=o.to||o.href||"";return typeof y=="string"&&Jt(y,{acceptRelative:!0})}),u=yn("RouterLink"),c=u&&typeof u!="string"?u.useLink:void 0,h=je(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||f.value}),d=je(()=>{const y=o.to||o.href||"";return h.value?y:r(y,i.resolve)}),p=h.value||c==null?void 0:c({...o,to:d}),g=je(()=>{var y;if(!d.value||f.value||n(d.value))return d.value;if(h.value){const _=typeof d.value=="object"&&"path"in d.value?na(d.value):d.value,v=typeof _=="object"?i.resolve(_).href:_;return r(v,i.resolve)}return typeof d.value=="object"?((y=i.resolve(d.value))==null?void 0:y.href)??null:r(gs(a.app.baseURL,d.value),i.resolve)});return{to:d,hasTarget:l,isAbsoluteUrl:f,isExternal:h,href:g,isActive:(p==null?void 0:p.isActive)??je(()=>d.value===i.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??je(()=>d.value===i.currentRoute.value.path),route:(p==null?void 0:p.route)??je(()=>i.resolve(d.value)),async navigate(y){await Ch(g.value,{replace:o.replace,external:h.value||l.value})}}}return Ze({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}},useLink:s,setup(o,{slots:i}){const a=Bt(),{to:l,href:f,navigate:u,isExternal:c,hasTarget:h,isAbsoluteUrl:d}=s(o),p=_e(!1),g=_e(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"&&!$w()}async function v(m=Re()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:c.value?na(l.value):a.resolve(l.value).fullPath,C=c.value?new URL(b,window.location.href).href:b;await Promise.all([m.hooks.callHook("link:prefetch",C).catch(()=>{}),!c.value&&!h.value&&Rh(l.value,a).catch(()=>{})])}if(_("visibility")){const m=Re();let b,C=null;gf(()=>{const A=Rw();Bo(()=>{b=ia(()=>{var E;(E=g==null?void 0:g.value)!=null&&E.tagName&&(C=A.observe(g.value,async()=>{C==null||C(),C=null,await v(m)}))})})}),Va(()=>{b&&ww(b),C==null||C(),C=null})}return()=>{var C;if(!c.value&&!h.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),yr(yn("RouterLink"),A,i.default)}const m=o.target||null,b=Aw(o.noRel?"":o.rel,e.externalRelAttribute,d.value||h.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:f.value,navigate:u,prefetch:v,get route(){if(!f.value)return;const A=new URL(f.value,window.location.href);return{path:A.pathname,fullPath:A.pathname,get query(){return Io(A.search)},hash:A.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f.value}},rel:b,target:m,isExternal:c.value||h.value,isActive:!1,isExactActive:!1}):null:yr("a",{ref:g,href:f.value||null,rel:b,target:m},(C=i.default)==null?void 0:C.call(i))}}})}const sl=Tw(Xy);function Ac(e,t){const n=t==="append"?Zs:Lo;return Jt(e)&&!e.startsWith("http")?e:n(e,!0)}function Rw(){const e=Re();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 f=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&f&&f()}})),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 Pw=/2g/;function $w(){const e=navigator.connection;return!!(e&&(e.saveData||Pw.test(e.effectiveType)))}function Nw(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!Jt(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=_y(String(e.url)));const t=Object.keys(e).sort((r,s)=>r.localeCompare(s)),n={};for(const r of t)n[r]=e[r];return n}function Ow(e){const n=[];function r(o){if(!o||typeof o!="object"||Object.keys(o).length===0)return()=>{};o._context;const i={};for(const l in o){const f=o[l];typeof f<"u"&&f!==""&&(i[l]=f)}let a;return Object.keys(i).filter(l=>!l.startsWith("_")).length>0&&(a=n.push(i)),()=>{typeof a<"u"&&n.splice(a-1,1)}}function s(o){var a;const i={};o!=null&&o.debug&&(i._context={}),i._priority={};for(const l in n.sort((f,u)=>(f._priority||0)-(u._priority||0)))for(const f in n[l]){const u=f,c=o!=null&&o.resolveRefs?Jr(n[l][f]):n[l][f];!f.startsWith("_")&&typeof c<"u"&&c!==""&&(i[f]=c,typeof n[l]._priority<"u"&&n[l]._priority!==-1&&(i._priority[u]=n[l]._priority),o!=null&&o.debug&&(i._context[u]=((a=n[l]._context)==null?void 0:a[u])||n[l]._context||"anonymous"))}return o!=null&&o.skipNormalize?i:Nw(i)}return{stack:n,push:r,get:s}}const Iw=kt({name:"nuxt-site-config:init",enforce:"pre",async setup(e){var r;const t=Ow(),n=kw("site-config");{const s=n.value||window.__NUXT_SITE_CONFIG__||{};for(const o in s)o[0]!=="_"&&t.push({[o]:s[o],_priority:((r=s._priority)==null?void 0:r[o])||-1})}return{provide:{nuxtSiteConfig:t}}}}),Lw=kt({name:"nuxt:payload",setup(e){const t=new Set;Bt().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]}}),Bo(()=>{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(Do,1e3)})}}),Mw=kt(()=>{const e=Bt();Bo(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Dw=kt(e=>{let t;async function n(){const r=await Do();t&&clearTimeout(t),t=setTimeout(n,gc);try{const s=await $fetch(Za("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}Bo(()=>{t=setTimeout(n,gc)})}),Bw=kt({name:"nuxt:chunk-reload",setup(e){const t=Bt(),n=_r(),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:gs(n.app.baseURL,o.fullPath);Ew({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Hw=kt({name:"nuxt:global-components"}),Fw=kt(()=>{}),jw=["top","right","bottom","left"],Tc=["start","end"],Rc=jw.reduce((e,t)=>e.concat(t,t+"-"+Tc[0],t+"-"+Tc[1]),[]),es=Math.min,Rn=Math.max,Gw={left:"right",right:"left",bottom:"top",top:"bottom"},Uw={start:"end",end:"start"};function aa(e,t,n){return Rn(e,es(t,n))}function Un(e,t){return typeof e=="function"?e(t):e}function Ht(e){return e.split("-")[0]}function vt(e){return e.split("-")[1]}function Ph(e){return e==="x"?"y":"x"}function ol(e){return e==="y"?"height":"width"}function Gn(e){return["top","bottom"].includes(Ht(e))?"y":"x"}function il(e){return Ph(Gn(e))}function $h(e,t,n){n===void 0&&(n=!1);const r=vt(e),s=il(e),o=ol(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=oo(i)),[i,oo(i)]}function Ww(e){const t=oo(e);return[so(e),t,so(t)]}function so(e){return e.replace(/start|end/g,t=>Uw[t])}function zw(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 Vw(e,t,n,r){const s=vt(e);let o=zw(Ht(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(so)))),o}function oo(e){return e.replace(/left|right|bottom|top/g,t=>Gw[t])}function qw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nh(e){return typeof e!="number"?qw(e):{top:e,right:e,bottom:e,left:e}}function Fr(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 Pc(e,t,n){let{reference:r,floating:s}=e;const o=Gn(t),i=il(t),a=ol(i),l=Ht(t),f=o==="y",u=r.x+r.width/2-s.width/2,c=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let d;switch(l){case"top":d={x:u,y:r.y-s.height};break;case"bottom":d={x:u,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:c};break;case"left":d={x:r.x-s.width,y:c};break;default:d={x:r.x,y:r.y}}switch(vt(t)){case"start":d[i]-=h*(n&&f?-1:1);break;case"end":d[i]+=h*(n&&f?-1:1);break}return d}const Kw=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 f=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:c}=Pc(f,r,l),h=r,d={},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:u,y:c,initialPlacement:r,placement:h,strategy:s,middlewareData:d,rects:f,platform:i,elements:{reference:e,floating:t}});u=v??u,c=m??c,d={...d,[y]:{...d[y],...b}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(f=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:u,y:c}=Pc(f,h,l)),g=-1)}return{x:u,y:c,placement:h,strategy:s,middlewareData:d}};async function Ho(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:h=!1,padding:d=0}=Un(t,e),p=Nh(d),y=a[h?c==="floating"?"reference":"floating":c],_=Fr(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:f,rootBoundary:u,strategy:l})),v=c==="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=Fr(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 Xw=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:f,padding:u=0}=Un(e,t)||{};if(f==null)return{};const c=Nh(u),h={x:n,y:r},d=il(s),p=ol(d),g=await i.getDimensions(f),y=d==="y",_=y?"top":"left",v=y?"bottom":"right",m=y?"clientHeight":"clientWidth",b=o.reference[p]+o.reference[d]-h[d]-o.floating[p],C=h[d]-o.reference[d],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let E=A?A[m]:0;(!E||!await(i.isElement==null?void 0:i.isElement(A)))&&(E=a.floating[m]||o.floating[p]);const B=b/2-C/2,H=E/2-g[p]/2-1,I=es(c[_],H),K=es(c[v],H),q=I,ne=E-g[p]-K,ee=E/2-g[p]/2+B,ce=aa(q,ee,ne),F=!l.arrow&&vt(s)!=null&&ee!==ce&&o.reference[p]/2-(ee<q?I:K)-g[p]/2<0,X=F?ee<q?ee-q:ee-ne:0;return{[d]:h[d]+X,data:{[d]:ce,centerOffset:ee-ce-X,...F&&{alignmentOffset:X}},reset:F}}});function Jw(e,t,n){return(e?[...n.filter(s=>vt(s)===e),...n.filter(s=>vt(s)!==e)]:n.filter(s=>Ht(s)===s)).filter(s=>e?vt(s)===e||(t?so(s)!==s:!1):!0)}const Qw=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:f}=t,{crossAxis:u=!1,alignment:c,allowedPlacements:h=Rc,autoAlignment:d=!0,...p}=Un(e,t),g=c!==void 0||h===Rc?Jw(c||null,d,h):h,y=await Ho(t,p),_=((n=i.autoPlacement)==null?void 0:n.index)||0,v=g[_];if(v==null)return{};const m=$h(v,o,await(l.isRTL==null?void 0:l.isRTL(f.floating)));if(a!==v)return{reset:{placement:g[0]}};const b=[y[Ht(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 E=C.map(I=>{const K=vt(I.placement);return[I.placement,K&&u?I.overflows.slice(0,2).reduce((q,ne)=>q+ne,0):I.overflows[0],I.overflows]}).sort((I,K)=>I[1]-K[1]),H=((s=E.filter(I=>I[2].slice(0,vt(I[0])?2:3).every(K=>K<=0))[0])==null?void 0:s[0])||E[0][0];return H!==a?{data:{index:_+1,overflows:C},reset:{placement:H}}:{}}}},Yw=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:f}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...y}=Un(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=Ht(s),v=Gn(a),m=Ht(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(f.floating)),C=h||(m||!g?[oo(a)]:Ww(a)),A=p!=="none";!h&&A&&C.push(...Vw(a,g,p,b));const E=[a,...C],B=await Ho(t,y),H=[];let I=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&H.push(B[_]),c){const ee=$h(s,i,b);H.push(B[ee[0]],B[ee[1]])}if(I=[...I,{placement:s,overflows:H}],!H.every(ee=>ee<=0)){var K,q;const ee=(((K=o.flip)==null?void 0:K.index)||0)+1,ce=E[ee];if(ce)return{data:{index:ee,overflows:I},reset:{placement:ce}};let F=(q=I.filter(X=>X.overflows[0]<=0).sort((X,G)=>X.overflows[1]-G.overflows[1])[0])==null?void 0:q.placement;if(!F)switch(d){case"bestFit":{var ne;const X=(ne=I.filter(G=>{if(A){const be=Gn(G.placement);return be===v||be==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(be=>be>0).reduce((be,zn)=>be+zn,0)]).sort((G,be)=>G[1]-be[1])[0])==null?void 0:ne[0];X&&(F=X);break}case"initialPlacement":F=a;break}if(s!==F)return{reset:{placement:F}}}return{}}}};async function Zw(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Ht(n),a=vt(n),l=Gn(n)==="y",f=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,c=Un(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof p=="number"&&(d=a==="end"?p*-1:p),l?{x:d*u,y:h*f}:{x:h*f,y:d*u}}const e0=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 Zw(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}}}}},t0=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}=Un(e,t),f={x:n,y:r},u=await Ho(t,l),c=Gn(Ht(s)),h=Ph(c);let d=f[h],p=f[c];if(o){const y=h==="y"?"top":"left",_=h==="y"?"bottom":"right",v=d+u[y],m=d-u[_];d=aa(v,d,m)}if(i){const y=c==="y"?"top":"left",_=c==="y"?"bottom":"right",v=p+u[y],m=p-u[_];p=aa(v,p,m)}const g=a.fn({...t,[h]:d,[c]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[c]:i}}}}}},n0=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=()=>{},...f}=Un(e,t),u=await Ho(t,f),c=Ht(s),h=vt(s),d=Gn(s)==="y",{width:p,height:g}=o.floating;let y,_;c==="top"||c==="bottom"?(y=c,_=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=c,y=h==="end"?"top":"bottom");const v=g-u.top-u.bottom,m=p-u.left-u.right,b=es(g-u[y],v),C=es(p-u[_],m),A=!t.middlewareData.shift;let E=b,B=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=v),A&&!h){const I=Rn(u.left,0),K=Rn(u.right,0),q=Rn(u.top,0),ne=Rn(u.bottom,0);d?B=p-2*(I!==0||K!==0?I+K:Rn(u.left,u.right)):E=g-2*(q!==0||ne!==0?q+ne:Rn(u.top,u.bottom))}await l({...t,availableWidth:B,availableHeight:E});const H=await i.getDimensions(a.floating);return p!==H.width||g!==H.height?{reset:{rects:!0}}:{}}}};function ht(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lt(e){return ht(e).getComputedStyle(e)}const $c=Math.min,jr=Math.max,io=Math.round;function Oh(e){const t=Lt(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=io(n)!==s||io(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function _n(e){return Lh(e)?(e.nodeName||"").toLowerCase():""}let As;function Ih(){if(As)return As;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(As=e.brands.map(t=>t.brand+"/"+t.version).join(" "),As):navigator.userAgent}function Mt(e){return e instanceof ht(e).HTMLElement}function hn(e){return e instanceof ht(e).Element}function Lh(e){return e instanceof ht(e).Node}function Nc(e){return typeof ShadowRoot>"u"?!1:e instanceof ht(e).ShadowRoot||e instanceof ShadowRoot}function Fo(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function r0(e){return["table","td","th"].includes(_n(e))}function la(e){const t=/firefox/i.test(Ih()),n=Lt(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 Mh(){return!/^((?!chrome|android).)*safari/i.test(Ih())}function al(e){return["html","body","#document"].includes(_n(e))}function Dh(e){return hn(e)?e:e.contextElement}const Bh={x:1,y:1};function ur(e){const t=Dh(e);if(!Mt(t))return Bh;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Oh(t);let i=(o?io(n.width):n.width)/r,a=(o?io(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function ts(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Dh(e);let l=Bh;t&&(r?hn(r)&&(l=ur(r)):l=ur(e));const f=a?ht(a):window,u=!Mh()&&n;let c=(i.left+(u&&((s=f.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,h=(i.top+(u&&((o=f.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,d=i.width/l.x,p=i.height/l.y;if(a){const g=ht(a),y=r&&hn(r)?ht(r):r;let _=g.frameElement;for(;_&&r&&y!==g;){const v=ur(_),m=_.getBoundingClientRect(),b=getComputedStyle(_);m.x+=(_.clientLeft+parseFloat(b.paddingLeft))*v.x,m.y+=(_.clientTop+parseFloat(b.paddingTop))*v.y,c*=v.x,h*=v.y,d*=v.x,p*=v.y,c+=m.x,h+=m.y,_=ht(_).frameElement}}return{width:d,height:p,top:h,right:c+d,bottom:h+p,left:c,x:c,y:h}}function dn(e){return((Lh(e)?e.ownerDocument:e.document)||window.document).documentElement}function jo(e){return hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Hh(e){return ts(dn(e)).left+jo(e).scrollLeft}function ns(e){if(_n(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nc(e)&&e.host||dn(e);return Nc(t)?t.host:t}function Fh(e){const t=ns(e);return al(t)?t.ownerDocument.body:Mt(t)&&Fo(t)?t:Fh(t)}function ao(e,t){var n;t===void 0&&(t=[]);const r=Fh(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=ht(r);return s?t.concat(o,o.visualViewport||[],Fo(r)?r:[]):t.concat(r,ao(r))}function Oc(e,t,n){return t==="viewport"?Fr(function(r,s){const o=ht(r),i=dn(r),a=o.visualViewport;let l=i.clientWidth,f=i.clientHeight,u=0,c=0;if(a){l=a.width,f=a.height;const h=Mh();(h||!h&&s==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}return{width:l,height:f,x:u,y:c}}(e,n)):hn(t)?Fr(function(r,s){const o=ts(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=Mt(r)?ur(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)):Fr(function(r){const s=dn(r),o=jo(r),i=r.ownerDocument.body,a=jr(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=jr(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let f=-o.scrollLeft+Hh(r);const u=-o.scrollTop;return Lt(i).direction==="rtl"&&(f+=jr(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:f,y:u}}(dn(e)))}function Ic(e){return Mt(e)&&Lt(e).position!=="fixed"?e.offsetParent:null}function Lc(e){const t=ht(e);let n=Ic(e);for(;n&&r0(n)&&Lt(n).position==="static";)n=Ic(n);return n&&(_n(n)==="html"||_n(n)==="body"&&Lt(n).position==="static"&&!la(n))?t:n||function(r){let s=ns(r);for(;Mt(s)&&!al(s);){if(la(s))return s;s=ns(s)}return null}(e)||t}function s0(e,t,n){const r=Mt(t),s=dn(t),o=ts(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((_n(t)!=="body"||Fo(s))&&(i=jo(t)),Mt(t)){const l=ts(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Hh(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const o0={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=n==="clippingAncestors"?function(f,u){const c=u.get(f);if(c)return c;let h=ao(f).filter(y=>hn(y)&&_n(y)!=="body"),d=null;const p=Lt(f).position==="fixed";let g=p?ns(f):f;for(;hn(g)&&!al(g);){const y=Lt(g),_=la(g);(p?_||d:_||y.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=y:h=h.filter(v=>v!==g),g=ns(g)}return u.set(f,h),h}(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce((f,u)=>{const c=Oc(t,u,s);return f.top=jr(c.top,f.top),f.right=$c(c.right,f.right),f.bottom=$c(c.bottom,f.bottom),f.left=jr(c.left,f.left),f},Oc(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=Mt(n),o=dn(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")&&((_n(n)!=="body"||Fo(o))&&(i=jo(n)),Mt(n))){const f=ts(n);a=ur(n),l.x=f.x+n.clientLeft,l.y=f.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:hn,getDimensions:function(e){return Mt(e)?Oh(e):e.getBoundingClientRect()},getOffsetParent:Lc,getDocumentElement:dn,getScale:ur,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||Lc,o=this.getDimensions;return{reference:s0(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Lt(e).direction==="rtl"},i0=(e,t,n)=>{const r=new Map,s={platform:o0,...n},o={...s.platform,_c:r};return Kw(e,t,{...s,platform:o})};function jh(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?jh(e[n],t[n]):e[n]=t[n])}const Ct={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 rs(e,t){let n=Ct.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=Ct.themes[n.$extend]||{}:(n=null,r=Ct[t]):n=null;while(n);return r}function a0(e){const t=[e];let n=Ct.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Ct.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function Mc(e){const t=[e];let n=Ct.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Ct.themes[n.$extend]||{}):n=null;while(n);return t}let wr=!1;if(typeof window<"u"){wr=!1;try{const e=Object.defineProperty({},"passive",{get(){wr=!0}});window.addEventListener("test",null,e)}catch{}}let Gh=!1;typeof window<"u"&&typeof navigator<"u"&&(Gh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Uh=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Dc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Bc={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 yi(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const _t=[];let En=null;const Fc={};function jc(e){let t=Fc[e];return t||(t=Fc[e]=[]),t}let ca=function(){};typeof window<"u"&&(ca=window.Element);function le(e){return function(t){return rs(t.theme,e)}}const _i="__floating-vue__popper",Wh=()=>Ze({name:"VPopper",provide(){return{[_i]:{parentPopper:this}}},inject:{[_i]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:le("disabled")},positioningDisabled:{type:Boolean,default:le("positioningDisabled")},placement:{type:String,default:le("placement"),validator:e=>Uh.includes(e)},delay:{type:[String,Number,Object],default:le("delay")},distance:{type:[Number,String],default:le("distance")},skidding:{type:[Number,String],default:le("skidding")},triggers:{type:Array,default:le("triggers")},showTriggers:{type:[Array,Function],default:le("showTriggers")},hideTriggers:{type:[Array,Function],default:le("hideTriggers")},popperTriggers:{type:Array,default:le("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:le("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:le("popperHideTriggers")},container:{type:[String,Object,ca,Boolean],default:le("container")},boundary:{type:[String,ca],default:le("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:le("strategy")},autoHide:{type:[Boolean,Function],default:le("autoHide")},handleResize:{type:Boolean,default:le("handleResize")},instantMove:{type:Boolean,default:le("instantMove")},eagerMount:{type:Boolean,default:le("eagerMount")},popperClass:{type:[String,Array,Object],default:le("popperClass")},computeTransformOrigin:{type:Boolean,default:le("computeTransformOrigin")},autoMinSize:{type:Boolean,default:le("autoMinSize")},autoSize:{type:[Boolean,String],default:le("autoSize")},autoMaxSize:{type:Boolean,default:le("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:le("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:le("preventOverflow")},overflowPadding:{type:[Number,String],default:le("overflowPadding")},arrowPadding:{type:[Number,String],default:le("arrowPadding")},arrowOverflow:{type:Boolean,default:le("arrowOverflow")},flip:{type:Boolean,default:le("flip")},shift:{type:Boolean,default:le("shift")},shiftCrossAxis:{type:Boolean,default:le("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:le("noAutoFocus")},disposeTimeout:{type:Number,default:le("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[_i])==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(e0({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Qw({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(t0({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Yw({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Xw({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,f;return o.startsWith("top")||o.startsWith("bottom")?l=s.reference.width:f=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"]=f!=null?`${f}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(n0({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 i0(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),En&&this.instantMove&&En.instantMove&&En!==this.parentPopper){En.$_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&&(En=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 yi(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ao(this.$_referenceNode),...ao(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<_t.length;n++)t=_t[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}_t.push(this),document.body.classList.add("v-popper--some-open");for(const t of Mc(this.theme))jc(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 yi(),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(_t,this),_t.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Mc(this.theme)){const r=jc(n);Hc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}En===this&&(En=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 yi(),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,Dc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Dc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Bc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Bc,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,wr?{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(Gr>=e.left&&Gr<=e.right&&Ur>=e.top&&Ur<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Gr-Yt,r=Ur-Zt,s=t.left+t.width/2-Yt+(t.top+t.height/2)-Zt+t.width+t.height,o=Yt+n*s,i=Zt+r*s;return Ts(Yt,Zt,o,i,t.left,t.top,t.left,t.bottom)||Ts(Yt,Zt,o,i,t.left,t.top,t.right,t.top)||Ts(Yt,Zt,o,i,t.right,t.top,t.right,t.bottom)||Ts(Yt,Zt,o,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Gh){const e=wr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Gc(t,!0),e),document.addEventListener("touchend",t=>Uc(t,!0),e)}else window.addEventListener("mousedown",e=>Gc(e,!1),!0),window.addEventListener("click",e=>Uc(e,!1),!0);window.addEventListener("resize",c0)}function Gc(e,t){if(Ct.autoHideOnMousedown)zh(e,t);else for(let n=0;n<_t.length;n++){const r=_t[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Uc(e,t){Ct.autoHideOnMousedown||zh(e,t)}function zh(e,t){const n={};for(let r=_t.length-1;r>=0;r--){const s=_t[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Wc(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&&Wc(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Wc(e,t,n){return n.closeAllPopover||n.closePopover&&t||l0(e,n)&&!t}function l0(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function c0(){for(let e=0;e<_t.length;e++)_t[e].$_computePosition()}let Yt=0,Zt=0,Gr=0,Ur=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Yt=Gr,Zt=Ur,Gr=e.clientX,Ur=e.clientY},wr?{passive:!0}:void 0);function Ts(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)),f=((n-e)*(t-o)-(r-t)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t));return l>=0&&l<=1&&f>=0&&f<=1}const u0={extends:Wh()},Go=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function f0(e,t,n,r,s,o){return Q(),he("div",{ref:"reference",class:Oe(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ze(e.$slots,"default",Hu(Ja(e.slotData)))],2)}const h0=Go(u0,[["render",f0]]);function d0(){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 Hs;function ua(){ua.init||(ua.init=!0,Hs=d0()!==-1)}var Uo={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ua(),Eo(()=>{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",Hs&&this.$el.appendChild(e),e.data="about:blank",Hs||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&&(!Hs&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const p0=fg();cg("data-v-b329ee4c");const g0={class:"resize-observer",tabindex:"-1"};ug();const m0=p0((e,t,n,r,s,o)=>(Q(),De("div",g0)));Uo.render=m0;Uo.__scopeId="data-v-b329ee4c";Uo.__file="src/components/ResizeObserver.vue";const Vh=(e="theme")=>({computed:{themeClass(){return a0(this[e])}}}),y0=Ze({name:"VPopperContent",components:{ResizeObserver:Uo},mixins:[Vh()],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}}}),_0=["id","aria-hidden","tabindex","data-popper-placement"],w0={ref:"inner",class:"v-popper__inner"},b0=W("div",{class:"v-popper__arrow-outer"},null,-1),v0=W("div",{class:"v-popper__arrow-inner"},null,-1),C0=[b0,v0];function S0(e,t,n,r,s,o){const i=yn("ResizeObserver");return Q(),he("div",{id:e.popperId,ref:"popover",class:Oe(["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:In(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]=Gm(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[W("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),W("div",{class:"v-popper__wrapper",style:In(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[W("div",w0,[e.mounted?(Q(),he(Ne,{key:0},[W("div",null,[ze(e.$slots,"default")]),e.handleResize?(Q(),De(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Nt("",!0)],64)):Nt("",!0)],512),W("div",{ref:"arrow",class:"v-popper__arrow-container",style:In(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},C0,4)],4)],46,_0)}const qh=Go(y0,[["render",S0]]),Kh={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 fa=function(){};typeof window<"u"&&(fa=window.Element);const x0=Ze({name:"VPopperWrapper",components:{Popper:h0,PopperContent:qh},mixins:[Kh,Vh("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,fa,Boolean],default:void 0},boundary:{type:[String,fa],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 k0(e,t,n,r,s,o){const i=yn("PopperContent"),a=yn("Popper");return Q(),De(a,No({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:ue(({popperId:l,isShown:f,shouldMountContent:u,skipTransition:c,autoHide:h,show:d,hide:p,handleResize:g,onResize:y,classes:_,result:v})=>[ze(e.$slots,"default",{shown:f,show:d,hide:p}),z(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:f,mounted:u,"skip-transition":c,"auto-hide":h,"handle-resize":g,classes:_,result:v,onHide:p,onResize:y},{default:ue(()=>[ze(e.$slots,"popper",{shown:f,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 ll=Go(x0,[["render",k0]]),E0={...ll,name:"VDropdown",vPopperTheme:"dropdown"},A0={...ll,name:"VMenu",vPopperTheme:"menu"},T0={...ll,name:"VTooltip",vPopperTheme:"tooltip"},R0=Ze({name:"VTooltipDirective",components:{Popper:Wh(),PopperContent:qh},mixins:[Kh],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>rs(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>rs(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}}}),P0=["innerHTML"],$0=["textContent"];function N0(e,t,n,r,s,o){const i=yn("PopperContent"),a=yn("Popper");return Q(),De(a,No({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ue(({popperId:l,isShown:f,shouldMountContent:u,skipTransition:c,autoHide:h,hide:d,handleResize:p,onResize:g,classes:y,result:_})=>[z(i,{ref:"popperContent",class:Oe({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:f,mounted:u,"skip-transition":c,"auto-hide":h,"handle-resize":p,classes:y,result:_,onHide:d,onResize:g},{default:ue(()=>[e.html?(Q(),he("div",{key:0,innerHTML:e.finalContent},null,8,P0)):(Q(),he("div",{key:1,textContent:fn(e.finalContent)},null,8,$0))]),_: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 O0=Go(R0,[["render",N0]]),Xh="v-popper--has-tooltip";function I0(e,t){let n=e.placement;if(!n&&t)for(const r of Uh)t[r]&&(n=r);return n||(n=rs(e.theme||"tooltip","placement")),n}function Jh(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=I0(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let wi,ss,L0=0;function M0(){if(wi)return;ss=_e([]),wi=Qf({name:"VTooltipDirectiveApp",setup(){return{directives:ss}},render(){return this.directives.map(t=>yr(O0,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),wi.mount(e)}function D0(e,t,n){M0();const r=_e(Jh(e,t,n)),s=_e(!1),o={id:L0++,options:r,shown:s};return ss.value.push(o),e.classList&&e.classList.add(Xh),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Qh(e){if(e.$_popper){const t=ss.value.indexOf(e.$_popper.item);t!==-1&&ss.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Xh)}function zc(e,{value:t,modifiers:n}){const r=Jh(e,t,n);if(!r.content||rs(r.theme||"tooltip","disabled"))Qh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=D0(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const B0={beforeMount:zc,updated:zc,beforeUnmount(e){Qh(e)}};function Vc(e){e.addEventListener("mousedown",lo),e.addEventListener("click",lo),e.addEventListener("touchstart",Yh,wr?{passive:!0}:!1)}function qc(e){e.removeEventListener("mousedown",lo),e.removeEventListener("click",lo),e.removeEventListener("touchstart",Yh),e.removeEventListener("touchend",Zh),e.removeEventListener("touchcancel",ed)}function lo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Yh(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",Zh),t.addEventListener("touchcancel",ed)}}function Zh(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 ed(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const H0={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Vc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?Vc(e):qc(e))},beforeUnmount(e){qc(e)}};function F0(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,jh(Ct,t),e.directive("tooltip",B0),e.directive("close-popper",H0),e.component("VTooltip",T0),e.component("VDropdown",E0),e.component("VMenu",A0))}const j0={version:"5.2.2",install:F0,options:Ct},G0=kt(e=>{e.vueApp.use(j0)}),U0=[uw,gw,_w,Iw,Lw,Mw,Dw,Bw,Hw,Fw,G0],cl=Ze({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(Q(),he("div",{class:Oe(["n-icon",t.icon])},null,2))}}),Wo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},W0={},z0={class:"n-badge"};function V0(e,t){return Q(),he("span",z0,[ze(e.$slots,"default")])}const q0=Wo(W0,[["render",V0]]),K0={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},X0=Ze({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(e){const t=e,n=je(()=>t.href||t.to);return(r,s)=>{const o=sl;return Q(),De(o,No(n.value?{href:n.value,target:r.target,rel:r.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||r.underline}}),{default:ue(()=>[ze(r.$slots,"default"),n.value&&r.target==="_blank"?(Q(),he("div",K0)):Nt("",!0)]),_:3},16,["class"])}}}),J0={},Q0={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y0(e,t){return Q(),he("svg",Q0,t[0]||(t[0]=[cm('<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 Z0=Wo(J0,[["render",Y0]]),eb={},tb={class:"n-loading n-panel-grids-center"},nb={class:"flex flex-col animate-pulse items-center text-lg"};function rb(e,t){return Q(),he("div",tb,[W("div",nb,[t[1]||(t[1]=W("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),ze(e.$slots,"default",{},()=>[t[0]||(t[0]=Ee(" Loading... "))])])])}const sb=Wo(eb,[["render",rb]]);let Ve=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function ob(e){return ul(e)}function ul(e){return Array.isArray(e)?ib(e):e instanceof RegExp?e:typeof e=="object"?ab(e):e}function ib(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=ul(e[n]);return t}function ab(e){let t={};for(let n in e)t[n]=ul(e[n]);return t}function td(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function nd(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?nd(e.substring(0,e.length-1)):e.substr(~t+1)}var bi=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Rs=class{static hasCaptures(e){return e===null?!1:(bi.lastIndex=0,bi.test(e))}static replaceCaptures(e,t,n){return e.replace(bi,(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 rd(e,t){return e<t?-1:e>t?1:0}function sd(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=rd(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Kc(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 od(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var id=class{constructor(e){x(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}},co=class{constructor(e,t,n){x(this,"_cachedMatchRoot",new id(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(ub(e),t)}static createFromParsedTheme(e,t){return hb(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=>lb(e.parent,s.parentScopes));return r?new ad(r.fontStyle,r.foreground,r.background):null}},vi=class Fs{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Fs(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Fs(n,t[r]);return n}push(t){return new Fs(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 lb(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&&!cb(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function cb(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var ad=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function ub(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 c=i.scope;c=c.replace(/^[,]+/,""),c=c.replace(/[,]+$/,""),a=c.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let c=i.settings.fontStyle.split(" ");for(let h=0,d=c.length;h<d;h++)switch(c[h]){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 f=null;typeof i.settings.foreground=="string"&&Kc(i.settings.foreground)&&(f=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&Kc(i.settings.background)&&(u=i.settings.background);for(let c=0,h=a.length;c<h;c++){let p=a[c].trim().split(" "),g=p[p.length-1],y=null;p.length>1&&(y=p.slice(0,p.length-1),y.reverse()),n[r++]=new fb(g,y,s,l,f,u)}}return n}var fb=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}},ut=(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))(ut||{});function hb(e,t){e.sort((l,f)=>{let u=rd(l.scope,f.scope);return u!==0||(u=sd(l.parentScopes,f.parentScopes),u!==0)?u:l.index-f.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 db(t),i=new ad(n,o.getId(r),o.getId(s)),a=new gb(new ha(0,null,-1,0,0),[]);for(let l=0,f=e.length;l<f;l++){let u=e[l];a.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new co(o,i,a)}var db=class{constructor(e){x(this,"_isFrozen");x(this,"_lastColorId");x(this,"_id2color");x(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)}},pb=Object.freeze([]),ha=class ld{constructor(t,n,r,s,o){x(this,"scopeDepth");x(this,"parentScopes");x(this,"fontStyle");x(this,"foreground");x(this,"background");this.scopeDepth=t,this.parentScopes=n||pb,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new ld(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)}},gb=class da{constructor(t,n=[],r={}){x(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(da._cmpBySpecificity),n}insert(t,n,r,s,o,i){if(n===""){this._doInsertHere(t,r,s,o,i);return}let a=n.indexOf("."),l,f;a===-1?(l=n,f=""):(l=n.substring(0,a),f=n.substring(a+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new da(this._mainRule.clone(),ha.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,f,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(sd(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 ha(t,n,r,s,o))}},br=class at{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=at.getLanguageId(t),r=at.getTokenType(t),s=at.getFontStyle(t),o=at.getForeground(t),i=at.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=at.getLanguageId(t),f=at.getTokenType(t),u=at.containsBalancedBrackets(t)?1:0,c=at.getFontStyle(t),h=at.getForeground(t),d=at.getBackground(t);return n!==0&&(l=n),r!==8&&(f=r),s!==null&&(u=s?1:0),o!==-1&&(c=o),i!==0&&(h=i),a!==0&&(d=a),(l<<0|f<<8|u<<10|c<<11|h<<15|d<<24)>>>0}};function uo(e,t){const n=[],r=mb(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 f=i();if(n.push({matcher:f,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return f=>!!l&&!l(f)}if(s==="("){s=r.next();const l=a();return s===")"&&(s=r.next()),l}if(Xc(s)){const l=[];do l.push(s),s=r.next();while(Xc(s));return f=>t(l,f)}return null}function i(){const l=[];let f=o();for(;f;)l.push(f),f=o();return u=>l.every(c=>c(u))}function a(){const l=[];let f=i();for(;f&&(l.push(f),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");f=i()}return u=>l.some(c=>c(u))}}function Xc(e){return!!e&&!!e.match(/[\w\.:]+/)}function mb(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 cd(e){typeof e.dispose=="function"&&e.dispose()}var os=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},yb=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},_b=class{constructor(){x(this,"_references",[]);x(this,"_seenReferenceKeys",new Set);x(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))}},wb=class{constructor(e,t){x(this,"seenFullScopeRequests",new Set);x(this,"seenPartialScopeRequests",new Set);x(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new os(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new _b;for(const n of e)bb(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof os){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 bb(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 os?js({baseGrammar:o,selfGrammar:s},r):pa(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 os(a))}function pa(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];fo([r],t,n)}}function js(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&fo(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&fo(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function fo(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?td({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&fo(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=ud(o);switch(i.kind){case 0:js({...t,selfGrammar:t.baseGrammar},n);break;case 1:js(t,n);break;case 2:pa(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?pa(i.ruleName,l,n):js(l,n)}else i.kind===4?n.add(new yb(i.scopeName,i.ruleName)):n.add(new os(i.scopeName));break}}}var vb=class{constructor(){x(this,"kind",0)}},Cb=class{constructor(){x(this,"kind",1)}},Sb=class{constructor(e){x(this,"kind",2);this.ruleName=e}},xb=class{constructor(e){x(this,"kind",3);this.scopeName=e}},kb=class{constructor(e,t){x(this,"kind",4);this.scopeName=e,this.ruleName=t}};function ud(e){if(e==="$base")return new vb;if(e==="$self")return new Cb;const t=e.indexOf("#");if(t===-1)return new xb(e);if(t===0)return new Sb(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new kb(n,r)}}var Eb=/\\(\d+)/,Jc=/\\(\d+)/g,Ab=-1,fd=-2;var ms=class{constructor(e,t,n,r){x(this,"$location");x(this,"id");x(this,"_nameIsCapturing");x(this,"_name");x(this,"_contentNameIsCapturing");x(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Rs.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Rs.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${nd(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:Rs.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Rs.replaceCaptures(this._contentName,e,t)}},Tb=class extends ms{constructor(t,n,r,s,o){super(t,n,r,s);x(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!")}},Rb=class extends ms{constructor(t,n,r,s,o){super(t,n,r,null);x(this,"_match");x(this,"captures");x(this,"_cachedCompiledPatterns");this._match=new is(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 as,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qc=class extends ms{constructor(t,n,r,s,o){super(t,n,r,s);x(this,"hasMissingPatterns");x(this,"patterns");x(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 as,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ga=class extends ms{constructor(t,n,r,s,o,i,a,l,f,u){super(t,n,r,s);x(this,"_begin");x(this,"beginCaptures");x(this,"_end");x(this,"endHasBackReferences");x(this,"endCaptures");x(this,"applyEndPatternLast");x(this,"hasMissingPatterns");x(this,"patterns");x(this,"_cachedCompiledPatterns");this._begin=new is(o,this.id),this.beginCaptures=i,this._end=new is(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=f||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(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 as;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}},ho=class extends ms{constructor(t,n,r,s,o,i,a,l,f){super(t,n,r,s);x(this,"_begin");x(this,"beginCaptures");x(this,"whileCaptures");x(this,"_while");x(this,"whileHasBackReferences");x(this,"hasMissingPatterns");x(this,"patterns");x(this,"_cachedCompiledPatterns");x(this,"_cachedCompiledWhilePatterns");this._begin=new is(o,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new is(a,fd),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.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 as;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 as,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},hd=class Fe{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new Tb(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new Rb(t.$vscodeTextmateLocation,t.id,t.name,t.match,Fe._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=td({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Qc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Fe._compilePatterns(o,n,r))}return t.while?new ho(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Fe._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Fe._compileCaptures(t.whileCaptures||t.captures,n,r),Fe._compilePatterns(t.patterns,n,r)):new ga(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Fe._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Fe._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Fe._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=Fe.getCompiledRuleId(t[i],n,r)),s[a]=Fe.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 f=ud(a.include);switch(f.kind){case 0:case 1:l=Fe.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[f.ruleName];u&&(l=Fe.getCompiledRuleId(u,n,r));break;case 3:case 4:const c=f.scopeName,h=f.kind===4?f.ruleName:null,d=n.getExternalGrammar(c,r);if(d)if(h){let p=d.repository[h];p&&(l=Fe.getCompiledRuleId(p,n,d.repository))}else l=Fe.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else l=Fe.getCompiledRuleId(a,n,r);if(l!==-1){const f=n.getRule(l);let u=!1;if((f instanceof Qc||f instanceof ga||f instanceof ho)&&f.hasMissingPatterns&&f.patterns.length===0&&(u=!0),u)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},is=class dd{constructor(t,n){x(this,"source");x(this,"ruleId");x(this,"hasAnchor");x(this,"hasBackReferences");x(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 f=t.charAt(a+1);f==="z"?(o.push(t.substring(s,a)),o.push("$(?!\\n)(?<!\\n)"),s=a+2):(f==="A"||f==="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=Eb.test(this.source):this.hasBackReferences=!1}clone(){return new dd(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)=>od(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}},as=class{constructor(){x(this,"_items");x(this,"_hasAnchors");x(this,"_cached");x(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){x(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}},Ci=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Kt,Pb=(Kt=class{constructor(t,n){x(this,"_defaultAttributes");x(this,"_embeddedLanguagesMatcher");x(this,"_getBasicScopeAttributes",new id(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Ci(n,r)}));this._defaultAttributes=new Ci(t,8),this._embeddedLanguagesMatcher=new $b(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Kt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Kt.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!")}},x(Kt,"_NULL_SCOPE_METADATA",new Ci(0,0)),x(Kt,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Kt),$b=class{constructor(e){x(this,"values");x(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>od(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 pd(e,t,n,r,s,o,i,a){const l=t.content.length;let f=!1,u=-1;if(i){const d=Nb(e,t,n,r,s,o);s=d.stack,r=d.linePos,n=d.isFirstLine,u=d.anchorPosition}const c=Date.now();for(;!f;){if(a!==0&&Date.now()-c>a)return new Zc(s,!0);h()}return new Zc(s,!1);function h(){const d=Ob(e,t,n,r,s,u);if(!d){o.produce(s,l),f=!0;return}const p=d.captureIndices,g=d.matchedRuleId,y=p&&p.length>0?p[0].end>r:!1;if(g===Ab){const _=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),Or(e,t,n,s,o,_.endCaptures,p),o.produce(s,p[0].end);const v=s;if(s=s.parent,u=v.getAnchorPos(),!y&&v.getEnterPos()===r){s=v,o.produce(s,l),f=!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,u,p[0].end===l,null,b,b),_ instanceof ga){const C=_;Or(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const A=C.getContentName(t.content,p),E=b.pushAttributed(A,e);if(s=s.withContentNameScopesList(E),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),f=!0;return}}else if(_ instanceof ho){const C=_;Or(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const A=C.getContentName(t.content,p),E=b.pushAttributed(A,e);if(s=s.withContentNameScopesList(E),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),f=!0;return}}else if(Or(e,t,n,s,o,_.captures,p),o.produce(s,p[0].end),s=s.pop(),!y){s=s.safePop(),o.produce(s,l),f=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function Nb(e,t,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const f=l.getRule(e);f instanceof ho&&a.push({rule:f,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:f,findOptions:u}=Mb(l.rule,e,l.stack.endRule,n,r===i),c=f.findNextMatchSync(t,r,u);if(c){if(c.ruleId!==fd){s=l.stack.pop();break}c.captureIndices&&c.captureIndices.length&&(o.produce(l.stack,c.captureIndices[0].start),Or(e,t,n,l.stack,o,l.rule.whileCaptures,c.captureIndices),o.produce(l.stack,c.captureIndices[0].end),i=c.captureIndices[0].end,c.captureIndices[0].end>r&&(r=c.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:i,isFirstLine:n}}function Ob(e,t,n,r,s,o){const i=Ib(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=Lb(a,e,t,n,r,s,o);if(!l)return i;if(!i)return l;const f=i.captureIndices[0].start,u=l.captureIndices[0].start;return u<f||l.priorityMatch&&u===f?l:i}function Ib(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=gd(i,e,s.endRule,n,r===o),f=a.findNextMatchSync(t,r,l);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function Lb(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,f,u=0;const c=o.contentNameScopesList.getScopeNames();for(let h=0,d=e.length;h<d;h++){const p=e[h];if(!p.matcher(c))continue;const g=t.getRule(p.ruleId),{ruleScanner:y,findOptions:_}=gd(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,f=v.ruleId,u=p.priority,a===s))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:f}:null}function gd(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function Mb(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function Or(e,t,n,r,s,o,i){if(o.length===0)return;const a=t.content,l=Math.min(o.length,i.length),f=[],u=i[0].end;for(let c=0;c<l;c++){const h=o[c];if(h===null)continue;const d=i[c];if(d.length===0)continue;if(d.start>u)break;for(;f.length>0&&f[f.length-1].endPos<=d.start;)s.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?s.produceFromScopes(f[f.length-1].scopes,d.start):s.produce(r,d.start),h.retokenizeCapturedWithRuleId){const g=h.getName(a,i),y=r.contentNameScopesList.pushAttributed(g,e),_=h.getContentName(a,i),v=y.pushAttributed(_,e),m=r.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,y,v),b=e.createOnigString(a.substring(0,d.end));pd(e,b,n&&d.start===0,d.start,m,s,!1,0),cd(b);continue}const p=h.getName(a,i);if(p!==null){const y=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);f.push(new Db(y,d.end))}}for(;f.length>0;)s.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var Db=class{constructor(e,t){x(this,"scopes");x(this,"endPos");this.scopes=e,this.endPos=t}};function Bb(e,t,n,r,s,o,i,a){return new Fb(e,t,n,r,s,o,i,a)}function eu(e,t,n,r,s){const o=uo(t,po),i=hd.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 po(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(Hb(t[s],r))return n=s+1,!0;return!1})}function Hb(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 Fb=class{constructor(e,t,n,r,s,o,i,a){x(this,"_rootId");x(this,"_lastRuleId");x(this,"_ruleId2desc");x(this,"_includedGrammars");x(this,"_grammarRepository");x(this,"_grammar");x(this,"_injections");x(this,"_basicScopeAttributesProvider");x(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new Pb(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=tu(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const f=uo(l,po);for(const u of f)this._tokenTypeMatchers.push({matcher:u.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)eu(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&&eu(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]=tu(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=hd.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===ma.NULL){s=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),c=br.set(0,f.languageId,f.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),h=this.getRule(this._rootId).getName(null,null);let d;h?d=Wr.createRootAndLookUpScopeName(h,c,this):d=Wr.createRoot("unknown",c),t=new ma(null,this._rootId,-1,-1,!1,null,d,d)}else s=!1,t.reset();e=e+`
|
|
21
|
+
`;const o=this.createOnigString(e),i=o.content.length,a=new Gb(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=pd(this,o,s,0,t,a,!0,r);return cd(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function tu(e,t){return e=ob(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 Wr=class Rt{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=vi.push(s,o.scopeNames),r=new Rt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Rt(null,new vi(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new vi(null,t),i=r.themeProvider.themeMatch(o),a=Rt.mergeAttributes(n,s,i);return new Rt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Rt.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),br.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Rt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=Rt._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=Rt.mergeAttributes(t.tokenAttributes,s,i);return new Rt(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}},ct,ma=(ct=class{constructor(t,n,r,s,o,i,a,l){x(this,"_stackElementBrand");x(this,"_enterPos");x(this,"_anchorPos");x(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:ct._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Wr.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(){ct._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new ct(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 ct(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=Wr.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new ct(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Wr.fromExtension(r,n.contentNameScopesList))}},x(ct,"NULL",new ct(null,0,0,0,!1,null,null,null)),ct),jb=class{constructor(e,t){x(this,"balancedBracketScopes");x(this,"unbalancedBracketScopes");x(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):uo(n,po).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>uo(n,po).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}},Gb=class{constructor(e,t,n,r){x(this,"_emitBinaryTokens");x(this,"_lineText");x(this,"_tokens");x(this,"_binaryTokens");x(this,"_lastTokenEndIndex");x(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=br.set(s,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(s=br.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}},Ub=class{constructor(e,t){x(this,"_grammars",new Map);x(this,"_rawGrammars",new Map);x(this,"_injectionGrammars",new Map);x(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,Bb(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},Wb=class{constructor(t){x(this,"_options");x(this,"_syncRegistry");x(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Ub(co.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(co.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 jb(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new wb(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)}},ya=ma.NULL;const zb=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ys{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ys.prototype.normal={};ys.prototype.property={};ys.prototype.space=void 0;function md(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new ys(n,r,t)}function _a(e){return e.toLowerCase()}class et{constructor(t,n){this.attribute=n,this.property=t}}et.prototype.attribute="";et.prototype.booleanish=!1;et.prototype.boolean=!1;et.prototype.commaOrSpaceSeparated=!1;et.prototype.commaSeparated=!1;et.prototype.defined=!1;et.prototype.mustUseProperty=!1;et.prototype.number=!1;et.prototype.overloadedBoolean=!1;et.prototype.property="";et.prototype.spaceSeparated=!1;et.prototype.space=void 0;let Vb=0;const se=Wn(),Pe=Wn(),yd=Wn(),O=Wn(),Ce=Wn(),fr=Wn(),st=Wn();function Wn(){return 2**++Vb}const wa=Object.freeze(Object.defineProperty({__proto__:null,boolean:se,booleanish:Pe,commaOrSpaceSeparated:st,commaSeparated:fr,number:O,overloadedBoolean:yd,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),Si=Object.keys(wa);class fl extends et{constructor(t,n,r,s){let o=-1;if(super(t,n),nu(this,"space",s),typeof r=="number")for(;++o<Si.length;){const i=Si[o];nu(this,Si[o],(r&wa[i])===wa[i])}}}fl.prototype.defined=!0;function nu(e,t,n){n&&(e[t]=n)}function xr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new fl(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[_a(r)]=r,n[_a(o.attribute)]=r}return new ys(t,n,e.space)}const _d=xr({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:Ce,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:O,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:Ce,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:Pe,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function wd(e,t){return t in e?e[t]:t}function bd(e,t){return wd(e,t.toLowerCase())}const qb=xr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fr,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:Ce,autoFocus:se,autoPlay:se,blocking:Ce,capture:null,charSet:null,checked:se,cite:null,className:Ce,cols:O,colSpan:null,content:null,contentEditable:Pe,controls:se,controlsList:Ce,coords:O|fr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:yd,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:Ce,height:O,hidden:se,high:O,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:se,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,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:O,pattern:null,ping:Ce,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:Ce,required:se,reversed:se,rows:O,rowSpan:O,sandbox:Ce,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:Pe,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,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:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:se,disableRemotePlayback:se,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:bd}),Kb=xr({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:st,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:Ce,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:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,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:fr,g2:fr,glyphName:fr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,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:O,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:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,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:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:wd}),vd=xr({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()}}),Cd=xr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:bd}),Sd=xr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Xb=/[A-Z]/g,ru=/-[a-z]/g,Jb=/^data[-\w.:]+$/i;function Qb(e,t){const n=_a(t);let r=t,s=et;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Jb.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ru,Zb);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ru.test(o)){let i=o.replace(Xb,Yb);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=fl}return new s(r,t)}function Yb(e){return"-"+e.toLowerCase()}function Zb(e){return e.charAt(1).toUpperCase()}const ev=md([_d,qb,vd,Cd,Sd],"html"),xd=md([_d,Kb,vd,Cd,Sd],"svg"),su={}.hasOwnProperty;function tv(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&su.call(s,e)){const l=String(s[e]);i=su.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 nv=/["&'<>`]/g,rv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sv=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ov=/[|\\{}()[\]^$+*?.]/g,ou=new WeakMap;function iv(e,t){if(e=e.replace(t.subset?av(t.subset):nv,r),t.subset||t.escapeOnly)return e;return e.replace(rv,n).replace(sv,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 av(e){let t=ou.get(e);return t||(t=lv(e),ou.set(e,t)),t}function lv(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(ov,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const cv=/[\dA-Fa-f]/;function uv(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!cv.test(String.fromCharCode(t))?r:r+";"}const fv=/\d/;function hv(e,t,n){const r="&#"+String(e);return n&&t&&!fv.test(String.fromCharCode(t))?r:r+";"}const dv=["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"],xi={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:"€"},pv=["cent","copy","divide","gt","lt","not","para","times"],kd={}.hasOwnProperty,ba={};let Ps;for(Ps in xi)kd.call(xi,Ps)&&(ba[xi[Ps]]=Ps);const gv=/[^\dA-Za-z]/;function mv(e,t,n,r){const s=String.fromCharCode(e);if(kd.call(ba,s)){const o=ba[s],i="&"+o;return n&&dv.includes(o)&&!pv.includes(o)&&(!r||t&&t!==61&&gv.test(String.fromCharCode(t)))?i:i+";"}return""}function yv(e,t,n){let r=uv(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=mv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=hv(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function hr(e,t){return iv(e,Object.assign({format:yv},t))}const _v=/^>|^->|<!--|-->|--!>|<!-$/g,wv=[">"],bv=["<",">"];function vv(e,t,n,r){return r.settings.bogusComments?"<?"+hr(e.value,Object.assign({},r.settings.characterReferences,{subset:wv}))+">":"<!--"+e.value.replace(_v,s)+"-->";function s(o){return hr(o,Object.assign({},r.settings.characterReferences,{subset:bv}))}}function Cv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function iu(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 Sv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function xv(e){return e.join(" ").trim()}const kv=/[ \t\n\f\r]/g;function hl(e){return typeof e=="object"?e.type==="text"?au(e.value):!1:au(e)}function au(e){return e.replace(kv,"")===""}const Me=Ad(1),Ed=Ad(-1),Ev=[];function Ad(e){return t;function t(n,r,s){const o=n?n.children:Ev;let i=(r||0)+e,a=o[i];if(!s)for(;a&&hl(a);)i+=e,a=o[i];return a}}const Av={}.hasOwnProperty;function Td(e){return t;function t(n,r,s){return Av.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const dl=Td({body:Rv,caption:ki,colgroup:ki,dd:Ov,dt:Nv,head:ki,html:Tv,li:$v,optgroup:Iv,option:Lv,p:Pv,rp:lu,rt:lu,tbody:Dv,td:cu,tfoot:Bv,th:cu,thead:Mv,tr:Hv});function ki(e,t,n){const r=Me(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&hl(r.value.charAt(0)))}function Tv(e,t,n){const r=Me(n,t);return!r||r.type!=="comment"}function Rv(e,t,n){const r=Me(n,t);return!r||r.type!=="comment"}function Pv(e,t,n){const r=Me(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function $v(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Nv(e,t,n){const r=Me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Ov(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function lu(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Iv(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Lv(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Mv(e,t,n){const r=Me(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Dv(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Bv(e,t,n){return!Me(n,t)}function Hv(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function cu(e,t,n){const r=Me(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Fv=Td({body:Uv,colgroup:Wv,head:Gv,html:jv,tbody:zv});function jv(e){const t=Me(e,-1);return!t||t.type!=="comment"}function Gv(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 Uv(e){const t=Me(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&hl(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Wv(e,t,n){const r=Ed(n,t),s=Me(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&dl(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function zv(e,t,n){const r=Ed(n,t),s=Me(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&dl(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const $s={name:[[`
|
|
22
|
+
\f\r &/=>`.split(""),`
|
|
23
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
24
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
25
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
26
|
+
\f\r &>`.split(""),`\0
|
|
27
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
28
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
29
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Vv(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=xd);const f=qv(r,e.properties),u=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,u&&(i=!1),(f||!o||!Fv(e,t,n))&&(a.push("<",e.tagName,f?" "+f:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=f.charAt(f.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(u),!i&&(!o||!dl(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function qv(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=Kv(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 Kv(e,t,n){const r=Qb(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=hr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:$s.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Sv:xv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=hr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:$s.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&iu(n,i)>iu(n,e.alternative)&&(i=e.alternative),a=i+hr(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?$s.single:$s.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Xv=["<","&"];function Rd(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:hr(e.value,Object.assign({},r.settings.characterReferences,{subset:Xv}))}function Jv(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Rd(e,t,n,r)}function Qv(e,t,n,r){return r.all(e)}const Yv=tv("type",{invalid:Zv,unknown:e1,handlers:{comment:vv,doctype:Cv,element:Vv,raw:Jv,root:Qv,text:Rd}});function Zv(e){throw new Error("Expected node, not `"+e+"`")}function e1(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const t1={},n1={},r1=[];function s1(e,t){const n=t||t1,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:o1,all:i1,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||zb,characterReferences:n.characterReferences||n1,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?xd:ev,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function o1(e,t,n){return Yv(e,t,n,this)}function i1(e){const t=[],n=e&&e.children||r1;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function go(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 Pn(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function a1(e){return Array.isArray(e)?e:[e]}async function Pd(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function pl(e){return!e||["plaintext","txt","text","plain"].includes(e)}function l1(e){return e==="ansi"||pl(e)}function gl(e){return e==="none"}function c1(e){return gl(e)}function $d(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 zo(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 u1(e){const t=zo(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}}function f1(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 h1(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?f1(s,o):s})):e}function d1(e,t,n,r){const s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(l=>Nd(e.variants[l])),i=new Set(o.flatMap(l=>Object.keys(l))),a={};return o.forEach((l,f)=>{for(const u of i){const c=l[u]||"inherit";if(f===0&&r)a[u]=c;else{const h=u==="color"?"":u==="background-color"?"-bg":`-${u}`,d=n+t[f]+(u==="color"?"":h);a[d]=c}}}),s.htmlStyle=a,s}function Nd(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&ut.Italic&&(t["font-style"]="italic"),e.fontStyle&ut.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&ut.Underline&&n.push("underline"),e.fontStyle&ut.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function p1(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Od=new WeakMap;function Vo(e,t){Od.set(e,t)}function ls(e){return Od.get(e)}class kr{constructor(...t){x(this,"_stacks",{});x(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 kr(Object.fromEntries(a1(n).map(r=>[r,ya])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return g1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function g1(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 m1(e,t){if(!(e instanceof kr))throw new Ve("Invalid grammar state");return e.getInternalStack(t)}function y1(){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 Ve(`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 Ve(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);if(i.character<0||i.character>a.length)throw new Ve(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,offset:s.posToIndex(i.line,i.character)}}};const s=u1(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));_1(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 h1(n,s)},code(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const r=t(this),s=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(s.length!==r.converter.lines.length)throw new Ve(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(c,h,d,p){const g=s[c];let y="",_=-1,v=-1;if(h===0&&(_=0),d===0&&(v=0),d===Number.POSITIVE_INFINITY&&(v=g.children.length),_===-1||v===-1)for(let b=0;b<g.children.length;b++)y+=Id(g.children[b]),_===-1&&y.length===h&&(_=b+1),v===-1&&y.length===d&&(v=b+1);if(_===-1)throw new Ve(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(v===-1)throw new Ve(`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(c,h){s[c]=a(s[c],h,"line")}function a(c,h,d){var y;const p=h.properties||{},g=h.transform||(_=>_);return c.tagName=h.tagName||"span",c.properties={...c.properties,...p,class:c.properties.class},(y=h.properties)!=null&&y.class&&$d(c,h.properties.class),c=g(c,d)||c,c}const l=[],f=r.decorations.sort((c,h)=>h.start.offset-c.start.offset||c.end.offset-h.end.offset);for(const c of f){const{start:h,end:d}=c;if(h.line===d.line)o(h.line,h.character,d.character,c);else if(h.line<d.line){o(h.line,h.character,Number.POSITIVE_INFINITY,c);for(let p=h.line+1;p<d.line;p++)l.unshift(()=>i(p,c));o(d.line,0,d.character,c)}}l.forEach(c=>c())}}}function _1(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ve(`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 Ve(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Id(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Id).join(""):""}const w1=[y1()];function mo(e){return[...e.transformers||[],...w1]}var $n=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ei={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function b1(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 uu(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 v1(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)Ei[r]&&t.push({type:"setDecoration",value:Ei[r]});else if(r<=29){const s=Ei[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:$n[r-30]}});else if(r===38){const s=uu(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:$n[r-40]}});else if(r===48){const s=uu(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:$n[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:$n[r-100+8]}})}return t}function C1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=b1(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=v1(i.sequence);for(const f of l)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of l)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}o=i.position}while(o<r.length);return s}}}var S1={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 x1(e=S1){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 f=0;f<$n.length;f++)r.push(t($n[f]));let a=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let u=0;u<6;u++)for(let c=0;c<6;c++)r.push(n([a[f],a[u],a[c]]));let l=8;for(let f=0;f<24;f++,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 k1(e,t,n){const r=go(e,n),s=zo(t),o=x1(Object.fromEntries($n.map(a=>{var l;return[a,(l=e.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),i=C1();return s.map(a=>i.parse(a[0]).map(l=>{let f,u;l.decorations.has("reverse")?(f=l.background?o.value(l.background):e.bg,u=l.foreground?o.value(l.foreground):e.fg):(f=l.foreground?o.value(l.foreground):e.fg,u=l.background?o.value(l.background):void 0),f=Pn(f,r),u=Pn(u,r),l.decorations.has("dim")&&(f=E1(f));let c=ut.None;return l.decorations.has("bold")&&(c|=ut.Bold),l.decorations.has("italic")&&(c|=ut.Italic),l.decorations.has("underline")&&(c|=ut.Underline),l.decorations.has("strikethrough")&&(c|=ut.Strikethrough),{content:l.value,offset:a[1],color:f,bgColor:u,fontStyle:c}}))}function E1(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 ml(e,t,n={}){const{lang:r="text",theme:s=e.getLoadedThemes()[0]}=n;if(pl(r)||gl(s))return zo(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(s);if(r==="ansi")return k1(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ve(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ve(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return T1(t,a,o,i,n)}function A1(...e){if(e.length===2)return ls(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(pl(s)||gl(o))throw new Ve("Plain language does not have grammar state");if(s==="ansi")throw new Ve("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new kr(yo(n,l,i,a,r).stateStack,l.name,i.name)}function T1(e,t,n,r,s){const o=yo(e,t,n,r,s),i=new kr(yo(e,t,n,r,s).stateStack,t.name,n.name);return Vo(o.tokens,i),o.tokens}function yo(e,t,n,r,s){const o=go(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=zo(e);let f=s.grammarState?m1(s.grammarState,n.name)??ya:s.grammarContextCode!=null?yo(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ya,u=[];const c=[];for(let h=0,d=l.length;h<d;h++){const[p,g]=l[h];if(p===""){u=[],c.push([]);continue}if(i>0&&p.length>=i){u=[],c.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}let y,_,v;s.includeExplanation&&(y=t.tokenizeLine(p,f,a),_=y.tokens,v=0);const m=t.tokenizeLine2(p,f,a),b=m.tokens.length/2;for(let C=0;C<b;C++){const A=m.tokens[2*C],E=C+1<b?m.tokens[2*C+2]:p.length;if(A===E)continue;const B=m.tokens[2*C+1],H=Pn(r[br.getForeground(B)],o),I=br.getFontStyle(B),K={content:p.substring(A,E),offset:g+A,color:H,fontStyle:I};if(s.includeExplanation){const q=[];if(s.includeExplanation!=="scopeName")for(const ee of n.settings){let ce;switch(typeof ee.scope){case"string":ce=ee.scope.split(/,/).map(F=>F.trim());break;case"object":ce=ee.scope;break;default:continue}q.push({settings:ee,selectors:ce.map(F=>F.split(/ /))})}K.explanation=[];let ne=0;for(;A+ne<E;){const ee=_[v],ce=p.substring(ee.startIndex,ee.endIndex);ne+=ce.length,K.explanation.push({content:ce,scopes:s.includeExplanation==="scopeName"?R1(ee.scopes):P1(q,ee.scopes)}),v+=1}}u.push(K)}c.push(u),u=[],f=m.ruleStack}return{tokens:c,stateStack:f}}function R1(e){return e.map(t=>({scopeName:t}))}function P1(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:N1(e,o,t.slice(0,r))}}return n}function fu(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function $1(e,t,n){if(!fu(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)fu(e[r],n[s])&&(r-=1),s-=1;return r===-1}function N1(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if($1(i,t,n)){r.push(o);break}return r}function Ld(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 f=ml(e,t,{...n,theme:l.theme}),u=ls(f),c=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:f,state:u,theme:c}}),o=O1(...s.map(l=>l.tokens)),i=o[0].map((l,f)=>l.map((u,c)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=u.explanation),o.forEach((d,p)=>{const{content:g,explanation:y,offset:_,...v}=d[f][c];h.variants[r[p].color]=v}),h})),a=s[0].state?new kr(Object.fromEntries(s.map(l=>{var f;return[l.theme,(f=l.state)==null?void 0:f.getInternalStack(l.theme)]})),s[0].state.lang):void 0;return a&&Vo(i,a),i}function O1(...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,f)=>l.push(o[f]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(f=>f.content.length));for(let f=0;f<n;f++){const u=a[f];u.content.length===l?(o[f].push(u),i[f]+=1,a[f]=s[f][i[f]]):(o[f].push({...u,content:u.content.slice(0,l)}),a[f]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}function _o(e,t,n){let r,s,o,i,a,l;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:u="--shiki-"}=n,c=Object.entries(n.themes).filter(y=>y[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,_)=>y.color===f?-1:_.color===f?1:0);if(c.length===0)throw new Ve("`themes` option must not be empty");const h=Ld(e,t,n);if(l=ls(h),f&&!c.find(y=>y.color===f))throw new Ve(`\`themes\` option must contain the defaultColor key \`${f}\``);const d=c.map(y=>e.getTheme(y.theme)),p=c.map(y=>y.color);o=h.map(y=>y.map(_=>d1(_,p,u,f))),l&&Vo(o,l);const g=c.map(y=>go(y.theme,n));s=c.map((y,_)=>(_===0&&f?"":`${u+y.color}:`)+(Pn(d[_].fg,g[_])||"inherit")).join(";"),r=c.map((y,_)=>(_===0&&f?"":`${u+y.color}-bg:`)+(Pn(d[_].bg,g[_])||"inherit")).join(";"),i=`shiki-themes ${d.map(y=>y.name).join(" ")}`,a=f?void 0:[s,r].join(";")}else if("theme"in n){const f=go(n.theme,n);o=ml(e,t,n);const u=e.getTheme(n.theme);r=Pn(u.bg,f),s=Pn(u.fg,f),i=u.name,l=ls(o)}else throw new Ve("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function wo(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>wo(e,s,o),codeToTokens:(s,o)=>_o(e,s,o)}){var d,p;let s=t;for(const g of mo(n))s=((d=g.preprocess)==null?void 0:d.call(r,s,n))||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:f,grammarState:u}=_o(e,s,n);const{mergeWhitespaces:c=!0}=n;c===!0?o=L1(o):c==="never"&&(o=M1(o));const h={...r,get source(){return s}};for(const g of mo(n))o=((p=g.tokens)==null?void 0:p.call(h,o))||o;return I1(o,{...n,fg:i,bg:a,themeName:l,rootStyle:f},h,u)}function I1(e,t,n,r=ls(e)){var p,g,y;const s=mo(t),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t;let f={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:[]},u={type:"element",tagName:"code",properties:{},children:o};const c=[],h={...n,structure:a,addClassToHast:$d,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return f},get code(){return u},get lines(){return c}};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 E of _){let B={type:"element",tagName:"span",properties:{...E.htmlAttrs},children:[{type:"text",value:E.content}]};const H=p1(E.htmlStyle||Nd(E));H&&(B.properties.style=H);for(const I of s)B=((C=I==null?void 0:I.span)==null?void 0:C.call(h,B,v+1,b,m,E))||B;a==="inline"?i.children.push(B):a==="classic"&&m.children.push(B),b+=E.content.length}if(a==="classic"){for(const E of s)m=((A=E==null?void 0:E.line)==null?void 0:A.call(h,m,v+1))||m;c.push(m),o.push(m)}}),a==="classic"){for(const _ of s)u=((p=_==null?void 0:_.code)==null?void 0:p.call(h,u))||u;f.children.push(u);for(const _ of s)f=((g=_==null?void 0:_.pre)==null?void 0:g.call(h,f))||f;i.children.push(f)}let d=i;for(const _ of s)d=((y=_==null?void 0:_.root)==null?void 0:y.call(h,d))||d;return r&&Vo(d,r),d}function L1(e){return e.map(t=>{const n=[];let r="",s=0;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&ut.Underline||o.fontStyle&ut.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 M1(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}))}const D1=s1;function B1(e,t,n){var o;const r={meta:{},options:n,codeToHast:(i,a)=>wo(e,i,a),codeToTokens:(i,a)=>_o(e,i,a)};let s=D1(wo(e,t,n,r));for(const i of mo(n))s=((o=i.postprocess)==null?void 0:o.call(r,s,n))||s;return s}const hu={light:"#333333",dark:"#bbbbbb"},du={light:"#fffffe",dark:"#1e1e1e"},pu="__shiki_resolved";function yl(e){var a,l,f,u,c;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 h=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;(a=h==null?void 0:h.settings)!=null&&a.foreground&&(r=h.settings.foreground),(l=h==null?void 0:h.settings)!=null&&l.background&&(n=h.settings.background),!r&&((f=t==null?void 0:t.colors)!=null&&f["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((u=t==null?void 0:t.colors)!=null&&u["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?hu.light:hu.dark),n||(n=t.type==="light"?du.light:du.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(h){var p;if(o.has(h))return o.get(h);s+=1;const d=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(p=t.colorReplacements)!=null&&p[`#${d}`]?i(h):(o.set(h,d),d)}t.settings=t.settings.map(h=>{var y,_;const d=((y=h.settings)==null?void 0:y.foreground)&&!h.settings.foreground.startsWith("#"),p=((_=h.settings)==null?void 0:_.background)&&!h.settings.background.startsWith("#");if(!d&&!p)return h;const g={...h,settings:{...h.settings}};if(d){const v=i(h.settings.foreground);t.colorReplacements[v]=h.settings.foreground,g.settings.foreground=v}if(p){const v=i(h.settings.background);t.colorReplacements[v]=h.settings.background,g.settings.background=v}return g});for(const h of Object.keys(t.colors||{}))if((h==="editor.foreground"||h==="editor.background"||h.startsWith("terminal.ansi"))&&!((c=t.colors[h])!=null&&c.startsWith("#"))){const d=i(t.colors[h]);t.colorReplacements[d]=t.colors[h],t.colors[h]=d}return Object.defineProperty(t,pu,{enumerable:!1,writable:!1,value:!0}),t}async function Md(e){return Array.from(new Set((await Promise.all(e.filter(t=>!l1(t)).map(async t=>await Pd(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Dd(e){return(await Promise.all(e.map(async n=>c1(n)?null:yl(await Pd(n))))).filter(n=>!!n)}let H1=3;function F1(e,t=3){t>H1||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class rr extends Error{constructor(t){super(t),this.name="ShikiError"}}class j1 extends Wb{constructor(n,r,s,o={}){super(n);x(this,"_resolvedThemes",new Map);x(this,"_resolvedGrammars",new Map);x(this,"_langMap",new Map);x(this,"_langGraph",new Map);x(this,"_textmateThemeCache",new WeakMap);x(this,"_loadedThemesCache",null);x(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=yl(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=co.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 rr(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var i,a,l,f;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(u=>{var c;return(c=u.embeddedLangsLazy)==null?void 0:c.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(u=>{this._alias[u]=n.name}),this._loadedLanguagesCache=null,r.size)for(const u of r)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(a=(i=this._syncRegistry)==null?void 0:i._injectionGrammars)==null||a.delete(u.scopeName),(f=(l=this._syncRegistry)==null?void 0:l._grammars)==null||f.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.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(f=>s.map(([u])=>u).includes(f)))}).filter(i=>!s.includes(i));throw new rr(`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 G1{constructor(t,n){x(this,"_langs",new Map);x(this,"_scopeToLang",new Map);x(this,"_injections",new Map);x(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 Pr=0;function U1(e){Pr+=1,e.warnings!==!1&&Pr>=10&&Pr%10===0&&console.warn(`[Shiki] ${Pr} 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 rr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(yl),s=new G1(e.engine,n),o=new j1(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 rr(`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 rr(`Theme \`${v}\` not found, you may need to load it first`);return m}function f(v){y();const m=l(v);i!==v&&(o.setTheme(m),i=v);const b=o.getColorMap();return{theme:m,colorMap:b}}function u(){return y(),o.getLoadedThemes()}function c(){return y(),o.getLoadedLanguages()}function h(...v){y(),o.loadLanguages(v.flat(1))}async function d(...v){return h(await Md(v))}function p(...v){y();for(const m of v.flat(1))o.loadTheme(m)}async function g(...v){return y(),p(await Dd(v))}function y(){if(t)throw new rr("Shiki instance has been disposed")}function _(){t||(t=!0,o.dispose(),Pr-=1)}return{setTheme:f,getTheme:l,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:c,loadLanguage:d,loadLanguageSync:h,loadTheme:g,loadThemeSync:p,dispose:_,[Symbol.dispose]:_}}async function W1(e){e.engine||F1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Dd(e.themes||[]),Md(e.langs||[]),e.engine]);return U1({...e,themes:t,langs:n,engine:r})}async function z1(e){const t=await W1(e);return{getLastGrammarState:(...n)=>A1(t,...n),codeToTokensBase:(n,r)=>ml(t,n,r),codeToTokensWithThemes:(n,r)=>Ld(t,n,r),codeToTokens:(n,r)=>_o(t,n,r),codeToHast:(n,r)=>wo(t,n,r),codeToHtml:(n,r)=>B1(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}const Be=String.raw,_l=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]);function V1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Ot(e,t){if(!e)throw new Error(t??"Value expected");return e}const U={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subroutine:"Subroutine",Quantifier:"Quantifier",EscapedNumber:"EscapedNumber"},Ae={any:"any",digit:"digit",dot:"dot",grapheme:"grapheme",hex:"hex",newline:"newline",posix:"posix",property:"property",space:"space",word:"word"},wl={flags:"flags",keep:"keep"},Ge={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},Jn={greedy:"greedy",lazy:"lazy",possessive:"possessive"},gu=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),Bd=Be`\[\^?`,Hd=`c.? | C(?:-.?)?|${Be`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Be`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Be`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Be`o\{[^\}]*\}?`}|${Be`\d{1,3}`}`,Fd=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ns=new RegExp(Be`
|
|
31
|
+
\\ (?:
|
|
32
|
+
${Hd}
|
|
33
|
+
| [gk]<[^>]*>?
|
|
34
|
+
| [gk]'[^']*'?
|
|
35
|
+
| .
|
|
36
|
+
)
|
|
37
|
+
| \( (?:
|
|
38
|
+
\? (?:
|
|
39
|
+
[:=!>({]
|
|
40
|
+
| <[=!]
|
|
41
|
+
| <[^>]*>
|
|
42
|
+
| '[^']*'
|
|
43
|
+
| ~\|?
|
|
44
|
+
| #(?:[^)\\]|\\.?)*
|
|
45
|
+
| [^:)]*[:)]
|
|
46
|
+
)?
|
|
47
|
+
| \*
|
|
48
|
+
)?
|
|
49
|
+
| ${Fd.source}
|
|
50
|
+
| ${Bd}
|
|
51
|
+
| .
|
|
52
|
+
`.replace(/\s+/g,""),"gsu"),Ai=new RegExp(Be`
|
|
53
|
+
\\ (?:
|
|
54
|
+
${Hd}
|
|
55
|
+
| .
|
|
56
|
+
)
|
|
57
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
58
|
+
| ${Bd}
|
|
59
|
+
| &&
|
|
60
|
+
| .
|
|
61
|
+
`.replace(/\s+/g,""),"gsu");function q1(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=nC(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX:()=>s.at(-1),numOpenGroups:0,popModX(){s.pop()},pushModX(c){s.push(c)},replaceCurrentModX(c){s[s.length-1]=c},singleline:n.rules.singleline};let i=[],a;for(Ns.lastIndex=0;a=Ns.exec(e);){const c=K1(o,e,a[0],Ns.lastIndex);c.tokens?i.push(...c.tokens):c.token&&i.push(c.token),c.lastIndex!==void 0&&(Ns.lastIndex=c.lastIndex)}const l=[];let f=0;i.forEach(c=>{c.type===U.GroupOpen&&(c.kind===Ge.capturing?c.number=++f:c.raw==="("&&l.push(c))}),f||l.forEach((c,h)=>{c.kind=Ge.capturing,c.number=h+1});const u=f||l.length;return i=i.map(c=>c.type===U.EscapedNumber?sC(c,u):c).flat(),{tokens:i,flags:r}}function K1(e,t,n,r){const[s,o]=n;if(s==="["){const i=X1(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:ie(U.Assertion,n,{kind:n})};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:ie(U.Subroutine,n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:ie(U.Backreference,n)}}if(o==="K")return{token:ie(U.Directive,n,{kind:wl.keep})};if(o==="N"||o==="R")return{token:ie(U.CharacterSet,n,{kind:Ae.newline,negate:o==="N"})};if(o==="O")return{token:ie(U.CharacterSet,n,{kind:Ae.any})};if(o==="X")return{token:ie(U.CharacterSet,n,{kind:Ae.grapheme})};const i=jd(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(n==="(*")throw new Error(`Unsupported named callout "${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:Y1(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:ie(U.GroupOpen,n,{kind:Ge.group})};if(n==="(?>")return{token:ie(U.GroupOpen,n,{kind:Ge.atomic})};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:ie(U.GroupOpen,n,{kind:n[2]==="<"?Ge.lookbehind:Ge.lookahead,negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'")){const i=ie(U.GroupOpen,n,{kind:Ge.capturing});return n!=="("&&(i.name=n.slice(3,-1)),{token:i}}if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absent function kind "${n}"`);return{token:ie(U.GroupOpen,n,{kind:Ge.absent_repeater})}}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:ie(U.GroupClose,n)}}if(n==="#"&&e.getCurrentModX()){const i=t.indexOf(`
|
|
62
|
+
`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)&&e.getCurrentModX()){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}if(n===".")return{token:ie(U.CharacterSet,n,{kind:Ae.dot})};if(n==="^"||n==="$"){const i=e.singleline?{"^":Be`\A`,$:Be`\Z`}[n]:n;return{token:ie(U.Assertion,n,{kind:i})}}return n==="|"?{token:ie(U.Alternator,n)}:Fd.test(n)?{token:Z1(n)}:(Gd(n),{token:ie(U.Character,n,{value:n.codePointAt(0)})})}function X1(e,t,n){const r=[ie(U.CharacterClassOpen,t,{negate:t[1]==="^"})];let s=1,o;for(Ai.lastIndex=n;o=Ai.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(ie(U.CharacterClassOpen,i,{negate:i[1]==="^"}));else if(i==="]"){if(r.at(-1).type===U.CharacterClassOpen)r.push(ie(U.Character,i,{value:93}));else if(s--,r.push(ie(U.CharacterClassClose,i)),!s)break}else{const a=J1(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:Ai.lastIndex||e.length}}function J1(e){if(e[0]==="\\")return jd(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!_l.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ie(U.CharacterSet,e,{kind:Ae.posix,value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?ie(U.CharacterClassHyphen,e):e==="&&"?ie(U.CharacterClassIntersector,e):(Gd(e),ie(U.Character,e,{value:e.codePointAt(0)}))}function jd(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return Q1(e);if("dDhHsSwW".includes(n))return eC(e);if(e.startsWith(Be`\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 tC(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 ie(U.Character,a,{value:i.codePointAt(0)})})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return ie(U.Character,e,{value:rC(e)});if(gu.has(n))return ie(U.Character,e,{value:gu.get(n)});if(/\d/.test(n))return ie(U.EscapedNumber,e,{inCharClass:t});if(e==="\\")throw new Error(Be`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return ie(U.Character,e,{value:e.codePointAt(1)});throw new Error(`Unexpected escape "${e}"`)}function ie(e,t,n){return{type:e,raw:t,...n}}function Q1(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 ie(U.Character,e,{value:t.toUpperCase().codePointAt(0)-64})}function Y1(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=mu(n),i=mu(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),ie(U.Directive,e,{kind:wl.flags,flags:a});if(e.endsWith(":")){t.pushModX(s),t.numOpenGroups++;const l=ie(U.GroupOpen,e,{kind:Ge.group});return(o||i)&&(l.flags=a),l}throw new Error(`Unexpected flag modifier "${e}"`)}function Z1(e){const t={};if(e[0]==="{"){const{min:n,max:r}=/^\{(?<min>\d*)(?:,(?<max>\d*))?/.exec(e).groups,s=1e5;if(+n>s||+r>s)throw new Error("Quantifier value unsupported in Oniguruma");t.min=+n,t.max=r===void 0?+n:r===""?1/0:+r,t.kind=e.endsWith("?")?Jn.lazy:Jn.greedy}else t.min=e[0]==="+"?1:0,t.max=e[0]==="?"?1:1/0,t.kind=e[1]==="+"?Jn.possessive:e[1]==="?"?Jn.lazy:Jn.greedy;return ie(U.Quantifier,e,t)}function eC(e){const t=e[1].toLowerCase();return ie(U.CharacterSet,e,{kind:{d:Ae.digit,h:Ae.hex,s:Ae.space,w:Ae.word}[t],negate:e[1]!==t})}function tC(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups,s=t==="P"&&!n||t==="p"&&!!n;return ie(U.CharacterSet,e,{kind:Ae.property,value:r,negate:s})}function mu(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 nC(e){if(!/^[imxDPSW]*$/.test(e))throw new Error(`Flags "${e}" includes unsupported value`);const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1};for(const n of e)t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0;return t}function rC(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 sC(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[ie(U.Backreference,n)];const o=[],i=s.match(/^[0-7]+|\d/g);for(let a=0;a<i.length;a++){const l=i[a];let f;if(a===0&&l!=="8"&&l!=="9"){if(f=parseInt(l,8),f>127)throw new Error(Be`Octal encoded byte above 177 unsupported "${n}"`)}else f=l.codePointAt(0);o.push(ie(U.Character,(a===0?"\\":"")+l,{value:f}))}return o}function Gd(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`)}const N={AbsentFunction:"AbsentFunction",Alternative:"Alternative",Assertion:"Assertion",Backreference:"Backreference",CapturingGroup:"CapturingGroup",Character:"Character",CharacterClass:"CharacterClass",CharacterClassRange:"CharacterClassRange",CharacterSet:"CharacterSet",Directive:"Directive",Flags:"Flags",Group:"Group",LookaroundAssertion:"LookaroundAssertion",Pattern:"Pattern",Quantifier:"Quantifier",Regex:"Regex",Subroutine:"Subroutine",Recursion:"Recursion"},Ud={repeater:"repeater"},me={grapheme_boundary:"grapheme_boundary",line_end:"line_end",line_start:"line_start",search_start:"search_start",string_end:"string_end",string_end_newline:"string_end_newline",string_start:"string_start",word_boundary:"word_boundary"},Wt={union:"union",intersection:"intersection"},xe=Ae,zr=wl,va=Jn,cn={lookahead:"lookahead",lookbehind:"lookbehind"};function Wd(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=q1(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s={capturingGroups:[],current:0,hasNumberedRef:!1,namedGroupsByName:new Map,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],token:null,tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:o};function o(h,d){const p=r.tokens[s.current];switch(s.parent=h,s.token=p,s.current++,p.type){case U.Alternator:return Qt();case U.Assertion:return dC(p);case U.Backreference:return oC(s);case U.Character:return bl(p.value,{useLastValid:!!d.isCheckingRangeEnd});case U.CharacterClassHyphen:return iC(s,d);case U.CharacterClassOpen:return aC(s,d);case U.CharacterSet:return lC(s);case U.Directive:return mC(Ot(zr[p.kind],`Unexpected directive kind "${p.kind}"`),{flags:p.flags});case U.GroupOpen:return cC(s,d);case U.Quantifier:return uC(s);case U.Subroutine:return fC(s);default:throw new Error(`Unexpected token type "${p.type}"`)}}const i=bC(_C(),yC(r.flags));let a=i.pattern.alternatives[0];for(;s.current<r.tokens.length;){const h=o(a,{});h.type===N.Alternative?(i.pattern.alternatives.push(h),a=h):a.elements.push(h)}const{capturingGroups:l,hasNumberedRef:f,namedGroupsByName:u,subroutines:c}=s;if(f&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:h}of c)if(typeof h=="number"){if(h>l.length)throw new Error("Subroutine uses a group number that's not defined")}else if(u.has(h)){if(u.get(h).length>1)throw new Error(Be`Subroutine uses a duplicate group name "\g<${h}>"`)}else throw new Error(Be`Subroutine uses a group name that's not defined "\g<${h}>"`);return i}function oC(e){const{raw:t}=e.token,n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),s=(o,i=!1)=>{const a=e.capturingGroups.length;let l=!1;if(o>a)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,Ca(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 "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return Ca(r)}return s(+r)}function iC(e,t){const{parent:n,tokens:r,walk:s}=e,o=n.elements.at(-1),i=r[e.current];if(!t.isCheckingRangeEnd&&o&&o.type!==N.CharacterClass&&o.type!==N.CharacterClassRange&&i&&i.type!==U.CharacterClassOpen&&i.type!==U.CharacterClassClose&&i.type!==U.CharacterClassIntersector){const a=s(n,{...t,isCheckingRangeEnd:!0});if(o.type===N.Character&&a.type===N.Character)return n.elements.pop(),gC(o,a);throw new Error("Invalid character class range")}return bl(45)}function aC(e,t){const{token:n,tokens:r,walk:s}=e,o=r[e.current],i=[Gs()];let a=yu(o);for(;a.type!==U.CharacterClassClose;){if(a.type===U.CharacterClassIntersector)i.push(Gs()),e.current++;else{const f=i.at(-1);f.elements.push(s(f,t))}a=yu(r[e.current],o)}const l=Gs({negate:n.negate});return i.length===1?l.elements=i[0].elements:(l.kind=Wt.intersection,l.elements=i.map(f=>f.elements.length===1?f.elements[0]:f)),e.current++,l}function lC({token:e,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r}){let{kind:s,negate:o,value:i}=e;if(s===Ae.property){const a=qo(i);if(_l.has(a)&&!(r!=null&&r.has(a)))s=Ae.posix,i=a;else return Qn(i,{negate:o,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r})}return s===Ae.posix?wC(i,{negate:o}):Sa(s,{negate:o})}function cC(e,t){const{token:n,tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=e;let l=pC(n);const f=l.type===N.AbsentFunction,u=l.kind===cn.lookbehind,c=u&&l.negate;if(l.type===N.CapturingGroup&&(s.push(l),l.name&&V1(o,l.name,[]).push(l)),f&&t.isInAbsentFunction)throw new Error("Nested absent function not supported by Oniguruma");let h=_u(r[e.current]);for(;h.type!==U.GroupClose;){if(h.type===U.Alternator)l.alternatives.push(Qt()),e.current++;else{const d=l.alternatives.at(-1),p=a(d,{...t,isInAbsentFunction:t.isInAbsentFunction||f,isInLookbehind:t.isInLookbehind||u,isInNegLookbehind:t.isInNegLookbehind||c});if(d.elements.push(p),(u||t.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(c||t.isInNegLookbehind){if(p.kind===cn.lookahead||p.type===N.CapturingGroup)throw new Error(g)}else if(p.kind===cn.lookahead||p.kind===cn.lookbehind&&p.negate)throw new Error(g)}}h=_u(r[e.current])}return e.current++,l}function uC({token:e,parent:t}){const{min:n,max:r,kind:s}=e,o=t.elements.at(-1);if(!o||o.type===N.Assertion||o.type===N.Directive||o.type===N.LookaroundAssertion)throw new Error("Quantifier requires a repeatable token");const i=qd(o,n,r,Ot(va[s],`Unexpected quantifier kind "${s}"`));return t.elements.pop(),i}function fC(e){const{token:t,capturingGroups:n,subroutines:r}=e;let s=t.raw.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const a=+o.groups.num,l=n.length;if(e.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=vC(s);return r.push(i),i}function hC(e){return{type:N.AbsentFunction,kind:e,alternatives:[Qt()]}}function Qt(){return{type:N.Alternative,elements:[]}}function zd(e,t){const n={type:N.Assertion,kind:e};return(e===me.word_boundary||e===me.grapheme_boundary)&&(n.negate=!!(t!=null&&t.negate)),n}function dC({kind:e}){return zd(Ot({"^":me.line_start,$:me.line_end,"\\A":me.string_start,"\\b":me.word_boundary,"\\B":me.word_boundary,"\\G":me.search_start,"\\y":me.grapheme_boundary,"\\Y":me.grapheme_boundary,"\\z":me.string_end,"\\Z":me.string_end_newline}[e],`Unexpected assertion kind "${e}"`),{negate:e===Be`\B`||e===Be`\Y`})}function Ca(e,t){const n=!!(t!=null&&t.orphan);return{type:N.Backreference,ref:e,...n&&{orphan:n}}}function pC({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case Ge.absent_repeater:return hC(Ud.repeater);case Ge.atomic:return wt({atomic:!0});case Ge.capturing:return Vd(s,n);case Ge.group:return wt({flags:e});case Ge.lookahead:case Ge.lookbehind:return Vr({behind:t===Ge.lookbehind,negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Vd(e,t){const n=t!==void 0;if(n&&!CC(t))throw new Error(`Group name "${t}" invalid in Oniguruma`);return{type:N.CapturingGroup,number:e,...n&&{name:t},alternatives:[Qt()]}}function bl(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:N.Character,value:e}}function Gs(e){const t={kind:Wt.union,negate:!1,...e};return{type:N.CharacterClass,kind:t.kind,negate:t.negate,elements:[]}}function gC(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:N.CharacterClassRange,min:e,max:t}}function Sa(e,t){const n=!!(t!=null&&t.negate),r={type:N.CharacterSet,kind:Ot(xe[e],`Unexpected character set kind "${e}"`)};return(e===Ae.digit||e===Ae.hex||e===Ae.newline||e===Ae.space||e===Ae.word)&&(r.negate=n),(e===Ae.grapheme||e===Ae.newline&&!n)&&(r.variableLength=!0),r}function mC(e,t){const n={type:N.Directive,kind:e};return e===zr.flags&&(n.flags=t.flags),n}function yC(e){return{type:N.Flags,...e}}function wt(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;return{type:N.Group,...t&&{atomic:t},...n&&{flags:n},alternatives:[Qt()]}}function Vr(e){const t={behind:!1,negate:!1,...e};return{type:N.LookaroundAssertion,kind:t.behind?cn.lookbehind:cn.lookahead,negate:t.negate,alternatives:[Qt()]}}function _C(){return{type:N.Pattern,alternatives:[Qt()]}}function wC(e,t){const n=!!(t!=null&&t.negate);if(!_l.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:N.CharacterSet,kind:xe.posix,value:e,negate:n}}function qd(e,t,n,r=va.greedy){const s={type:N.Quantifier,min:t,max:n,kind:r,element:e};return n<t?{...s,min:n,max:t,kind:va.possessive}:s}function bC(e,t){return{type:N.Regex,pattern:e,flags:t}}function vC(e){return{type:N.Subroutine,ref:e}}function Qn(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(qo(e));if(!r){if(n.normalizeUnknownPropertyNames)r=SC(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Be`Invalid Unicode property "\p{${e}}"`)}return{type:N.CharacterSet,kind:xe.property,value:r??e,negate:n.negate}}function CC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function SC(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 qo(e){return e.replace(/[- _]+/g,"").toLowerCase()}function yu(e,t){return Ot(e,`${(t==null?void 0:t.value)===93?"Empty":"Unclosed"} character class`)}function _u(e){return Ot(e,"Unclosed group")}const vl=String.raw,wu=vl`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`,bu=vl`\u{E0061}-\u{E007A}`,xC=()=>new RegExp(vl`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${bu}]{2}[\u{E0030}-\u{E0039}${bu}]{1,3}\u{E007F}|${wu}(?:\u200D${wu})*`,"gu");function qr(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;const f="Container expected";let u=0,c=!1;const h={node:o,parent:i,key:a,container:l,root:e,remove(){Ot(l,f).splice(Math.max(0,a+u),1),u--,c=!0},removeAllNextSiblings(){return Ot(l,f).splice(a+1)},removeAllPrevSiblings(){const m=a+u;return u-=m,Ot(l,f).splice(0,Math.max(0,m))},replaceWith(m,b={}){const C=!!b.traverse;l?l[Math.max(0,a+u)]=m:i[a]=m,C&&s(m,i,a,l),c=!0},replaceWithMultiple(m,b={}){const C=!!b.traverse;if(Ot(l,f).splice(Math.max(0,a+u),1,...m),u+=m.length-1,C){let A=0;for(let E=0;E<m.length;E++)A+=s(m[E],i,a+E+A,l)}c=!0},skip(){c=!0}},d=t["*"],p=t[o.type],g=typeof d=="function"?d:d==null?void 0:d.enter,y=typeof p=="function"?p:p==null?void 0:p.enter;if(g==null||g(h,n),y==null||y(h,n),!c)switch(o.type){case N.Regex:s(o.pattern,o,"pattern"),s(o.flags,o,"flags");break;case N.Alternative:case N.CharacterClass:r(o.elements,o);break;case N.Assertion:case N.Backreference:case N.Character:case N.CharacterSet:case N.Directive:case N.Flags:case N.Recursion:case N.Subroutine:break;case N.AbsentFunction:case N.CapturingGroup:case N.Group:case N.Pattern:r(o.alternatives,o);break;case N.CharacterClassRange:s(o.min,o,"min"),s(o.max,o,"max");break;case N.LookaroundAssertion:r(o.alternatives,o);break;case N.Quantifier:s(o.element,o,"element");break;default:throw new Error(`Unexpected node type "${o.type}"`)}return(_=d==null?void 0:d.exit)==null||_.call(d,h,n),(v=p==null?void 0:p.exit)==null||v.call(p,h,n),u}s(e)}const kC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function EC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function AC(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const dt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Cl(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:f,groups:{$skip:u}}=l;if(!u&&(!r||r===dt.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?dt.CHAR_CLASS:dt.DEFAULT,negated:o[o.length-1]}):a+=n;continue}f[0]==="["?(i++,o.push(f[1]==="^")):f==="]"&&i&&(i--,o.pop()),a+=f}return a}function Kd(e,t,n,r){Cl(e,t,n,r)}function TC(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===dt.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function Os(e,t,n){return!!TC(e,t,0,n)}function RC(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 vu=new RegExp(String.raw`(?<noncapturingStart>${kC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function PC(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,f=0,u=NaN,c;do{c=!1;let h=0,d=0,p=!1,g;for(vu.lastIndex=Number.isNaN(u)?0:u+o.length;g=vu.exec(e);){const{0:y,index:_,groups:{capturingStart:v,noncapturingStart:m}}=g;if(y==="[")h++;else if(h)y==="]"&&h--;else if(y===s&&!p)u=_,p=!0;else if(p&&m)d++;else if(v)p?d++:(l++,i.push(l+f));else if(y===")"&&p){if(!d){f++;const b=l+f;if(e=`${e.slice(0,u)}${o}${e.slice(u+s.length,_)}))<$$${b}>)${e.slice(_+1)}`,c=!0,a.push(b),EC(n,b),r.size){const C=new Map;r.forEach((A,E)=>{C.set(E>=b?E+1:E,A.map(B=>B>=b?B+1:B))}),r=C}break}d--}}}while(c);return n.push(...a),e=Cl(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:d,wrappedBackrefNum:p}})=>{if(d){const g=+d;if(g>i.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${i[g]}`}return`\\${p}`},dt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Xd=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ti=new RegExp(String.raw`
|
|
63
|
+
\\(?: \d+
|
|
64
|
+
| c[A-Za-z]
|
|
65
|
+
| [gk]<[^>]+>
|
|
66
|
+
| [pPu]\{[^\}]+\}
|
|
67
|
+
| u[A-Fa-f\d]{4}
|
|
68
|
+
| x[A-Fa-f\d]{2}
|
|
69
|
+
)
|
|
70
|
+
| \((?: \? (?: [:=!>]
|
|
71
|
+
| <(?:[=!]|[^>]+>)
|
|
72
|
+
| [A-Za-z\-]+:
|
|
73
|
+
| \(DEFINE\)
|
|
74
|
+
))?
|
|
75
|
+
| (?<qBase>${Xd})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
76
|
+
| \\?.
|
|
77
|
+
`.replace(/\s+/g,""),"gsu");function $C(e){if(!new RegExp(`${Xd}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(Ti.lastIndex=0;i=Ti.exec(e);){const{0:a,index:l,groups:{qBase:f,qMod:u,invalidQ:c}}=i;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(u==="+"&&s&&!s.startsWith("(")){if(c)throw new Error(`Invalid quantifier "${a}"`);let h=-1;if(/^\{\d+\}$/.test(f))e=AC(e,l+f.length,u,"");else{if(s===")"||s==="]"){const d=s===")"?n:r;if(d===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,d)}(?>${e.slice(d,l)}${f})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${f})${e.slice(l+a.length)}`;h+=4}Ti.lastIndex+=h}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const ft=String.raw,NC=ft`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,xa=ft`\(\?R=(?<rDepth>[^\)]+)\)|${NC}`,Ko=ft`\(\?<(?![=!])(?<captureName>[^>]+)>`,Jd=ft`${Ko}|(?<unnamed>\()(?!\?)`,An=new RegExp(ft`${Ko}|${xa}|\(\?|\\?.`,"gsu"),Ri="Cannot use multiple overlapping recursions";function OC(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(xa,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&Os(e,ft`\(\?\(DEFINE\)`,dt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=Os(e,ft`\\[1-9]`,dt.DEFAULT),a=new Map,l=[];let f=!1,u=0,c=0,h;for(An.lastIndex=0;h=An.exec(e);){const{0:d,groups:{captureName:p,rDepth:g,gRNameOrNum:y,gRDepth:_}}=h;if(d==="[")u++;else if(u)d==="]"&&u--;else if(g){if(Cu(g),f)throw new Error(Ri);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,h.index),m=e.slice(An.lastIndex);if(Os(m,xa,dt.DEFAULT))throw new Error(Ri);const b=+g-1;e=Su(v,m,b,!1,n,o,c),s=ku(s,v,b,o.length,0,c);break}else if(y){Cu(_);let v=!1;for(const q of l)if(q.name===y||q.num===+y){if(v=!0,q.hasRecursedWithin)throw new Error(Ri);break}if(!v)throw new Error(ft`Recursive \g cannot be used outside the referenced group "${r==="external"?y:ft`\g<${y}&R=${_}>`}"`);const m=a.get(y),b=RC(e,m);if(i&&Os(b,ft`${Ko}|\((?!\?)`,dt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(m,h.index),A=b.slice(C.length+d.length),E=o.length,B=+_-1,H=Su(C,A,B,!0,n,o,c);s=ku(s,C,B,o.length-E,E,c);const I=e.slice(0,m),K=e.slice(m+b.length);e=`${I}${H}${K}`,An.lastIndex+=H.length-d.length-C.length-A.length,l.forEach(q=>q.hasRecursedWithin=!0),f=!0}else if(p)c++,a.set(String(c),An.lastIndex),a.set(p,An.lastIndex),l.push({num:c,name:p});else if(d[0]==="("){const v=d==="(";v&&(c++,a.set(String(c),An.lastIndex)),l.push(v?{num:c}:{})}else d===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function Cu(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 Su(e,t,n,r,s,o,i){const a=new Set;r&&Kd(e+t,Ko,({groups:{captureName:f}})=>{a.add(f)},dt.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${xu(`(?:${e}`,"forward",...l)}(?:)${xu(`${t})`,"backward",...l)}${t}`}function xu(e,t,n,r,s,o,i){const l=u=>t==="forward"?u+2:n-u+2-1;let f="";for(let u=0;u<n;u++){const c=l(u);f+=Cl(e,ft`${Jd}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:d,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return h;const y=`_$${c}`;if(p||d){const _=i+o.length+1;return o.push(_),IC(s,_),p?h:`(?<${d}${y}>`}return ft`\k<${g}${y}>`},dt.DEFAULT)}return f}function IC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function ku(e,t,n,r,s,o){if(e.size&&r){let i=0;Kd(t,Jd,()=>i++,dt.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((f,u)=>{const c=(r-i*n)/n,h=i*n,d=u>a+i?u+r:u,p=[];for(const g of f)if(g<=a)p.push(g);else if(g>a+i+c)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+h+c*y);l.set(d,p)}),l}return e}var $e=String.fromCodePoint,re=String.raw,vr={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};vr.literalHyphenIncorrectlyCreatesRange=(()=>{if(!vr.unicodeSets)return!1;try{new RegExp(re`[\d\-a]`,"v")}catch{return!0}return!1})();function bo(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 cs(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function ka(e,t){return Eu[e]>=Eu[t]}function LC(e,t){if(!e)throw new Error("Value expected");return e}var Eu={ES2025:2025,ES2024:2024,ES2018:2018},MC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Qd(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!MC[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=vr.flagGroups?"ES2025":vr.unicodeSets?"ES2024":"ES2018"),t}var DC="[ -\r ]",jt=re`[\p{L}\p{M}\p{N}\p{Pc}]`,BC=new Set([$e(304),$e(305)]);function Yd(e){if(BC.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=jC.get(n),o=HC.get(n),i=FC.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 Sl=new Map(`C Other
|
|
78
|
+
Cc Control cntrl
|
|
79
|
+
Cf Format
|
|
80
|
+
Cn Unassigned
|
|
81
|
+
Co Private_Use
|
|
82
|
+
Cs Surrogate
|
|
83
|
+
L Letter
|
|
84
|
+
LC Cased_Letter
|
|
85
|
+
Ll Lowercase_Letter
|
|
86
|
+
Lm Modifier_Letter
|
|
87
|
+
Lo Other_Letter
|
|
88
|
+
Lt Titlecase_Letter
|
|
89
|
+
Lu Uppercase_Letter
|
|
90
|
+
M Mark Combining_Mark
|
|
91
|
+
Mc Spacing_Mark
|
|
92
|
+
Me Enclosing_Mark
|
|
93
|
+
Mn Nonspacing_Mark
|
|
94
|
+
N Number
|
|
95
|
+
Nd Decimal_Number digit
|
|
96
|
+
Nl Letter_Number
|
|
97
|
+
No Other_Number
|
|
98
|
+
P Punctuation punct
|
|
99
|
+
Pc Connector_Punctuation
|
|
100
|
+
Pd Dash_Punctuation
|
|
101
|
+
Pe Close_Punctuation
|
|
102
|
+
Pf Final_Punctuation
|
|
103
|
+
Pi Initial_Punctuation
|
|
104
|
+
Po Other_Punctuation
|
|
105
|
+
Ps Open_Punctuation
|
|
106
|
+
S Symbol
|
|
107
|
+
Sc Currency_Symbol
|
|
108
|
+
Sk Modifier_Symbol
|
|
109
|
+
Sm Math_Symbol
|
|
110
|
+
So Other_Symbol
|
|
111
|
+
Z Separator
|
|
112
|
+
Zl Line_Separator
|
|
113
|
+
Zp Paragraph_Separator
|
|
114
|
+
Zs Space_Separator
|
|
115
|
+
ASCII
|
|
116
|
+
ASCII_Hex_Digit AHex
|
|
117
|
+
Alphabetic Alpha
|
|
118
|
+
Any
|
|
119
|
+
Assigned
|
|
120
|
+
Bidi_Control Bidi_C
|
|
121
|
+
Bidi_Mirrored Bidi_M
|
|
122
|
+
Case_Ignorable CI
|
|
123
|
+
Cased
|
|
124
|
+
Changes_When_Casefolded CWCF
|
|
125
|
+
Changes_When_Casemapped CWCM
|
|
126
|
+
Changes_When_Lowercased CWL
|
|
127
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
128
|
+
Changes_When_Titlecased CWT
|
|
129
|
+
Changes_When_Uppercased CWU
|
|
130
|
+
Dash
|
|
131
|
+
Default_Ignorable_Code_Point DI
|
|
132
|
+
Deprecated Dep
|
|
133
|
+
Diacritic Dia
|
|
134
|
+
Emoji
|
|
135
|
+
Emoji_Component EComp
|
|
136
|
+
Emoji_Modifier EMod
|
|
137
|
+
Emoji_Modifier_Base EBase
|
|
138
|
+
Emoji_Presentation EPres
|
|
139
|
+
Extended_Pictographic ExtPict
|
|
140
|
+
Extender Ext
|
|
141
|
+
Grapheme_Base Gr_Base
|
|
142
|
+
Grapheme_Extend Gr_Ext
|
|
143
|
+
Hex_Digit Hex
|
|
144
|
+
IDS_Binary_Operator IDSB
|
|
145
|
+
IDS_Trinary_Operator IDST
|
|
146
|
+
ID_Continue IDC
|
|
147
|
+
ID_Start IDS
|
|
148
|
+
Ideographic Ideo
|
|
149
|
+
Join_Control Join_C
|
|
150
|
+
Logical_Order_Exception LOE
|
|
151
|
+
Lowercase Lower
|
|
152
|
+
Math
|
|
153
|
+
Noncharacter_Code_Point NChar
|
|
154
|
+
Pattern_Syntax Pat_Syn
|
|
155
|
+
Pattern_White_Space Pat_WS
|
|
156
|
+
Quotation_Mark QMark
|
|
157
|
+
Radical
|
|
158
|
+
Regional_Indicator RI
|
|
159
|
+
Sentence_Terminal STerm
|
|
160
|
+
Soft_Dotted SD
|
|
161
|
+
Terminal_Punctuation Term
|
|
162
|
+
Unified_Ideograph UIdeo
|
|
163
|
+
Uppercase Upper
|
|
164
|
+
Variation_Selector VS
|
|
165
|
+
White_Space space
|
|
166
|
+
XID_Continue XIDC
|
|
167
|
+
XID_Start XIDS`.split(/\s/).map(e=>[qo(e),e])),HC=new Map([["s",$e(383)],[$e(383),"s"]]),FC=new Map([[$e(223),$e(7838)],[$e(107),$e(8490)],[$e(229),$e(8491)],[$e(969),$e(8486)]]),jC=new Map([en(453),en(456),en(459),en(498),...Pi(8072,8079),...Pi(8088,8095),...Pi(8104,8111),en(8124),en(8140),en(8188)]),GC=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 UC(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function en(e){const t=$e(e);return[t.toLowerCase(),t]}function Pi(e,t){return UC(e,t).map(n=>en(n))}var Zd=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function WC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};ep(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ka(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};qr(e,zC,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};qr(e,VC,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return qr(e,qC,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var zC={AbsentFunction({node:e,parent:t,replaceWith:n}){const{kind:r,alternatives:s}=e;if(r===Ud.repeater){const o=Ut(wt(),[Cr(Vr({negate:!0}),s),Qn("Any")]),i=qd(o,0,1/0);o.parent=i,n(ge(Ut(wt(),[i]),t),{traverse:!0})}else throw new Error(`Unexpected absent function kind "${r}"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.elements.filter(o=>o.kind===zr.flags);for(let o=n+1;o<t.alternatives.length;o++){const i=t.alternatives[o];cs(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=np(t.get(e));if(r){const s=ge(Ut(wt({flags:r}),e.elements),e);e.elements=[s]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:i},a){const{kind:l,negate:f}=e,{asciiWordBoundaries:u,avoidSubclass:c,supportedGNodes:h,wordIsAscii:d}=a;if(l===me.grapheme_boundary)throw new Error(`Unsupported grapheme boundary "\\${f?"Y":"y"}"`);if(l===me.line_end)i(ge(Tt(re`(?=\z|\n)`),t));else if(l===me.line_start)i(ge(Tt(re`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l===me.search_start)if(h.has(e))s.flags.sticky=!0,o();else{const p=r[n-1];if(p&&ZC(p))i(ge(Ut(Vr({negate:!0})),t));else{if(c)throw new Error(re`Uses "\G" in a way that requires a subclass`);i(ge(zd(me.string_start),t)),a.strategy="clip_search"}}else if(!(l===me.string_end||l===me.string_start))if(l===me.string_end_newline)i(ge(Tt(re`(?=\n?\z)`),t));else if(l===me.word_boundary){if(!d&&!u){const p=`(?:(?<=${jt})(?!${jt})|(?<!${jt})(?=${jt}))`,g=`(?:(?<=${jt})(?=${jt})|(?<!${jt})(?!${jt}))`;i(ge(Tt(f?g:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ni(n)&&(n=$i(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Ni(r)&&(r=$i(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===Wt.intersection&&n(ge(Cr(Gs(),[e]),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:a}){const{kind:l,negate:f,value:u}=e;if(o&&(l===xe.digit||u==="digit")){n(ge(Sa(xe.digit,{negate:f}),t));return}if(i&&(l===xe.space||u==="space")){n(ge(Oi(Tt(DC),f),t));return}if(a&&(l===xe.word||u==="word")){n(ge(Sa(xe.word,{negate:f}),t));return}if(l===xe.any)n(ge(Qn("Any"),t));else if(l===xe.digit)n(ge(Qn("Nd",{negate:f}),t));else if(l!==xe.dot)if(l===xe.grapheme){if(r==="strict")throw new Error(re`Use of "\X" requires non-strict accuracy`);const c=s?re`\p{RGI_Emoji}`:xC().source.replace(/\\u\{/g,"\\x{");n(ge(Tt(re`(?>\r\n|${c}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l===xe.hex)n(ge(Qn("AHex",{negate:f}),t));else if(l===xe.newline)n(ge(Tt(f?`[^
|
|
168
|
+
]`:`(?>\r
|
|
169
|
+
?|[
|
|
170
|
+
\v\f
\u2028\u2029])`),t));else if(l===xe.posix)if(!s&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let c={graph:"!-~",print:" -~"}[u];f&&(c=`\0-${$e(c.codePointAt(0)-1)}${$e(c.codePointAt(2)+1)}-`),n(ge(Tt(`[${c}]`),t))}else n(ge(Oi(Tt(GC.get(u)),f),t));else if(l===xe.property)Sl.has(qo(u))||(e.key="sc");else if(l===xe.space)n(ge(Qn("space",{negate:f}),t));else if(l===xe.word)n(ge(Oi(Tt(jt),f),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===zr.flags)!l.enable&&!l.disable?r():s(ge(Ut(wt({flags:l}),i()),t),{traverse:!0});else if(a===zr.keep){const f=n.pattern.alternatives[0].elements[0],c=ip(n.pattern,h=>h.type===N.Group)&&f.alternatives.length===1?f:n.pattern;if(t.parent!==c||c.alternatives.length>1)throw new Error(re`Uses "\K" in a way that's unsupported`);s(ge(Ut(Vr({behind:!0}),o()),t))}else throw new Error(`Unexpected directive kind "${a}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii"].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===cn.lookbehind&&(t.passedLookbehind=!0)},Pattern:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,s=!1;for(const o of e.alternatives)if(o.elements.length===1&&o.elements[0].kind===me.search_start)o.elements.pop();else{const i=sp(o.elements);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`)}},Quantifier({node:e}){if(e.element.type===N.Quantifier){const t=ge(Ut(wt(),[e.element]),e);e.element=t}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ni(n)&&(n=$i(n,t),e.ref=n)}},VC={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 f=s.get(e);if(f&&a.has(e.number)){const c=ge(Au(e.number),t);l.set(c,a.get(e.number)),n(c);return}a.set(e.number,e),i.set(e.number,[]),e.name&&cs(i,e.name,[]);const u=i.get(e.name??e.number);for(let c=0;c<u.length;c++){const h=u[c];if(f===h.node||f&&f===h.origin||e===h.origin){u.splice(c,1);break}}if(i.get(e.number).push({node:e,origin:f}),e.name&&i.get(e.name).push({node:e,origin:f}),e.name){const c=cs(o,e.name,new Map);let h=!1;if(f)h=!0;else for(const d of c.values())if(!d.hasDuplicateNameToRemove){h=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:h})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=bo(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Recursion({node:e,parent:t},{reffedNodesByReferencer:n}){const{ref:r}=e;let s=t;for(;(s=s.parent)&&!(s.type===N.CapturingGroup&&(s.name===r||s.number===r)););n.set(e,s)},Subroutine({node:e,parent:t,replaceWith:n},r){const{ref:s}=e,o=r.subroutineRefMap.get(s),i=s===0,a=i?Au(0):tp(o,r.groupOriginByCopy,null);let l=a;if(!i){const f=np(JC(o,c=>c.type===N.Group&&!!c.flags)),u=f?bo(r.globalFlags,f):r.globalFlags;KC(u,r.currentFlags)||(l=Ut(wt({flags:QC(u)}),[a]))}n(ge(l,t),{traverse:!i})}},qC={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=>XC(i,e));if(!o.length)n(ge(Ut(Vr({negate:!0})),t));else if(o.length>1){const i=o.map(a=>Cr(Qt(),[Ca(a.number)]));n(ge(Cr(wt(),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},Recursion({node:e},t){e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const s=Vd();e.pattern.alternatives.at(-1).elements.push(s)}}}};function ep(e){qr(e,{"*"({node:t,parent:n}){t.parent=n}})}function Cr(e,t){return t.forEach(n=>n.parent=e),e[xl(e)]=t,e}function KC(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function XC(e,t){let n=t;do{if(n.type===N.Pattern)return!1;if(n.type===N.Alternative)continue;if(n===e)return!1;const r=rp(n.parent);for(const s of r){if(s===n)break;if(s===e||op(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function tp(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]=tp(i,t,s,n):(o==="type"&&i===N.CapturingGroup&&t.set(s,t.get(e)??e),s[o]=i);return s}function Au(e){return{type:N.Recursion,ref:e}}function JC(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function $i(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function xl(e){for(const t of["alternatives","elements"])if(e[t])return t;return null}function np(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 QC({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 rp(e){if(!e)throw new Error("Node expected");if(e.type===N.Quantifier)return[e.element];const t=xl(e);return t&&e[t]}function sp(e){const t=e.find(n=>n.kind===me.search_start||eS(n,{negate:!1})||!YC(n));if(!t)return null;if(t.kind===me.search_start)return t;if(t.type===N.LookaroundAssertion)return t.alternatives[0].elements[0];if(t.type===N.CapturingGroup||t.type===N.Group){const n=[];for(const r of t.alternatives){const s=sp(r.elements);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function op(e,t){const n=rp(e)??[];for(const r of n)if(r===t||op(r,t))return!0;return!1}function ip({alternatives:e},t){return e.length===1&&e[0].elements.length===1&&(!t||t(e[0].elements[0]))}function YC({type:e}){return e===N.Assertion||e===N.Directive||e===N.LookaroundAssertion}function ZC(e){const t=[N.Character,N.CharacterClass,N.CharacterSet];return t.includes(e.type)||e.type===N.Quantifier&&e.min&&t.includes(e.element.type)}function eS(e,t){const n={negate:null,...t};return e.type===N.LookaroundAssertion&&(n.negate===null||e.negate===n.negate)&&ip(e,r=>r.kind===me.search_start)}function Ni(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Tt(e,t){const n=Wd(e,{...t,unicodePropertyMap:Sl});ep(n);const r=n.pattern.alternatives;return r.length>1||r[0].elements.length>1?Cr(wt(),r):r[0].elements[0]}function Ut(e,t){const n=xl(e);return e[n][0].parent=e,t&&Cr(e[n][0],t),e}function Oi(e,t){return e.negate=t,e}function ge(e,t){return e.parent=t,e}function tS(e,t){const n=Qd(t),r=ka(n.target,"ES2024"),s=ka(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 d=[e.flags.ignoreCase];qr(e,nS,{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(p){d.push(p)},setHasCasedChar(){d.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!a)};let f=null;const u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:f,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&a),useFlagMods:s,useFlagV:r,verbose:n.verbose};function c(d){switch(u.lastNode=f,f=d,d.type){case N.Regex:return{pattern:c(d.pattern),flags:c(d.flags),options:{...d.options}};case N.Alternative:return d.elements.map(c).join("");case N.Assertion:return aS(d);case N.Backreference:return lS(d,u);case N.CapturingGroup:return cS(d,u,c);case N.Character:return uS(d,u);case N.CharacterClass:return fS(d,u,c);case N.CharacterClassRange:return hS(d,u);case N.CharacterSet:return dS(d,u);case N.Flags:return pS(d,u);case N.Group:return gS(d,u,c);case N.LookaroundAssertion:return mS(d,u,c);case N.Pattern:return d.alternatives.map(c).join("|");case N.Quantifier:return c(d.element)+bS(d);case N.Recursion:return yS(d,u);default:throw new Error(`Unexpected node type "${d.type}"`)}}const h=c(e);return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],u.captureMap.forEach((d,p)=>{d.hidden&&h._hiddenCaptures.push(p),d.transferTo&&cs(h._captureTransfers,d.transferTo,[]).push(p)}),h}var nS={"*":{enter({node:e},t){if(Ru(e)){const n=t.getCurrentModI();t.pushModI(e.flags?bo({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Ru(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){kl($e(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),ap(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===xe.property&&Zd.has(e.value)&&t.setHasCasedChar()}},rS=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),sS=new Set(["-","\\","]","^","["]),oS=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Tu=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`]]),iS=new RegExp("^\\p{Cased}$","u");function kl(e){return iS.test(e)}function aS({kind:e,negate:t}){if(e===me.string_end)return"$";if(e===me.string_start)return"^";if(e===me.word_boundary)return t?re`\B`:re`\b`;throw new Error(`Unexpected assertion kind "${e}"`)}function lS({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}function cS(e,t,n){const{name:r,number:s,alternatives:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(i.hidden=!0,s>a.number&&(i.transferTo=a.number)),t.captureMap.set(s,i),`(${r?`?<${r}>`:""}${o.map(n).join("|")})`}function uS({value:e},t){const n=$e(e),r=Yn(e,{escDigit:t.lastNode.type===N.Backreference,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&kl(n)){const s=Yd(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n}function fS(e,t,n){const{kind:r,negate:s,parent:o}=e;let{elements:i}=e;if(r===Wt.intersection&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");vr.literalHyphenIncorrectlyCreatesRange&&t.useFlagV&&i.some(Pu)&&(i=i.filter(f=>!Pu(f)),i.push(bl(45)));const a=()=>`[${s?"^":""}${i.map(n).join(r===Wt.intersection?"&&":"")}]`;if(!t.inCharClass){if(!t.useFlagV&&!s){const u=i.filter(c=>c.type===N.CharacterClass&&c.kind===Wt.union&&c.negate);if(u.length){const c=wt(),h=c.alternatives[0];return c.parent=o,h.parent=c,i=i.filter(d=>!u.includes(d)),e.elements=i,i.length?(e.parent=h,h.elements.push(e)):c.alternatives.pop(),u.forEach(d=>{const p=Qt();p.parent=c,d.parent=p,p.elements.push(d),c.alternatives.push(p)}),n(c)}}t.inCharClass=!0;const f=a();return t.inCharClass=!1,f}const l=i[0];if(r===Wt.union&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind===Wt.union&&!(vr.literalHyphenIncorrectlyCreatesRange&&t.useFlagV)||!t.verbose&&o.kind===Wt.intersection&&i.length===1&&l.type!==N.CharacterClassRange))return i.map(n).join("");if(!t.useFlagV&&o.type===N.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");return a()}function hS(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=Yn(n,s),i=Yn(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=ap(e);_S(l).forEach(u=>{a.add(Array.isArray(u)?`${Yn(u[0],s)}-${Yn(u[1],s)}`:Yn(u,s))})}return`${o}-${i}${[...a].join("")}`}function dS({kind:e,negate:t,value:n,key:r},s){if(e===xe.dot)return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":re`[^\n]`;if(e===xe.digit)return t?re`\D`:re`\d`;if(e===xe.property){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&Zd.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===xe.word)return t?re`\W`:re`\w`;throw new Error(`Unexpected character set kind "${e}"`)}function pS(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")}function gS({atomic:e,flags:t,parent:n,alternatives:r},s,o){const i=s.currentFlags;t&&(s.currentFlags=bo(i,t));const a=r.map(o).join("|"),l=!s.verbose&&r.length===1&&n.type!==N.Quantifier&&!e&&(!s.useFlagMods||!t)?a:`(?${wS(e,t,s.useFlagMods)}${a})`;return s.currentFlags=i,l}function mS({kind:e,negate:t,alternatives:n},r,s){return`(?${`${e===cn.lookahead?"":"<"}${t?"!":"="}`}${n.map(s).join("|")})`}function yS({ref:e},t){const n=t.recursionLimit;return e===0?`(?R=${n})`:re`\g<${e}&R=${n}>`}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=$e(i);if(!kl(a))continue;const l=Yd(a).filter(f=>{const u=f.codePointAt(0);return u<r||u>s});if(l.length&&(o.push(...l),n))break}return o}function Yn(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Tu.has(e))return Tu.get(e);if(e<32||e>126&&e<160||e>262143||t&&vS(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?oS:sS:rS,o=$e(e);return(s.has(o)?"\\":"")+o}function _S(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 wS(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 bS({min:e,max:t,kind:n}){let r;return!e&&t===1?r="?":!e&&t===1/0?r="*":e===1&&t===1/0?r="+":e===t?r=`{${e}}`:r=`{${e},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[n]}function Ru({type:e}){return e===N.Group||e===N.CapturingGroup||e===N.LookaroundAssertion}function vS(e){return e>47&&e<58}function Pu({type:e,value:t}){return e===N.Character&&t===45}var an,zt,Nn,ln,On,us,Ea,pn,CS=(pn=class extends RegExp{constructor(n,r,s){var t=(...vk)=>(super(...vk),Sn(this,us),Sn(this,an,new Map),Sn(this,zt,null),Sn(this,Nn),Sn(this,ln,null),Sn(this,On,null),x(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),yt(this,Nn,i.source),i instanceof pn&&(yt(this,an,Ke(i,an)),yt(this,ln,Ke(i,ln)),yt(this,On,Ke(i,On)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...s};t(o?"":n,r),yt(this,Nn,n),yt(this,an,xS(i.hiddenCaptures,i.transfers)),yt(this,On,i.strategy),this.rawOptions=s??{}}o||yt(this,zt,this)}get source(){return Ke(this,Nn)||"(?:)"}exec(n){if(!Ke(this,zt)){const{lazyCompile:o,...i}=this.rawOptions;yt(this,zt,new pn(Ke(this,Nn),this.flags,i))}const r=this.global||this.sticky,s=this.lastIndex;if(Ke(this,On)==="clip_search"&&r&&s){this.lastIndex=0;const o=Zo(this,us,Ea).call(this,n.slice(s));return o&&(SS(o,s,n,this.hasIndices),this.lastIndex+=s),o}return Zo(this,us,Ea).call(this,n)}},an=new WeakMap,zt=new WeakMap,Nn=new WeakMap,ln=new WeakMap,On=new WeakMap,us=new WeakSet,Ea=function(n){Ke(this,zt).lastIndex=this.lastIndex;const r=$l(pn.prototype,this,"exec").call(Ke(this,zt),n);if(this.lastIndex=Ke(this,zt).lastIndex,!r||!Ke(this,an).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:f}=Ke(this,an).get(a)??{};if(l?i.push(null):(i.push(r.length),r.push(s[a]),this.hasIndices&&r.indices.push(o[a])),f&&s[a]!==void 0){const u=LC(i[f]);if(r[u]=s[a],this.hasIndices&&(r.indices[u]=o[a]),r.groups){Ke(this,ln)||yt(this,ln,kS(this.source));const c=Ke(this,ln).get(f);c&&(r.groups[c]=s[a],this.hasIndices&&(r.indices.groups[c]=o[a]))}}}return r},pn);function SS(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 xS(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)cs(n,o,{}).transferTo=r;return n}function kS(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 ES(e,t){const n=AS(e,t);return n.options?new CS(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function AS(e,t){const n=Qd(t),r=Wd(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Sl}),s=WC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=tS(s,n),i=OC(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=$C(i.pattern),l=PC(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),f={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 u=l.hiddenCaptures.sort((p,g)=>p-g),c=Array.from(l.captureTransfers),h=s._strategy,d=f.pattern.length>=n.lazyCompileLength;(u.length||c.length||h||d)&&(f.options={...u.length&&{hiddenCaptures:u},...c.length&&{transfers:c},...h&&{strategy:h},...d&&{lazyCompile:d}})}return f}const $u=4294967295;class TS{constructor(t,n={}){x(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,f=0){return{index:a,captureIndices:l.indices.map(u=>u==null?{start:$u,end:$u,length:0}:{start:u[0]+f,end:u[1]+f,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const f=l.exec(s);if(!f)continue;if(f.index===n)return i(a,f,0);o.push([a,f,0])}catch(f){if(this.options.forgiving)continue;throw f}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,f,u]of o)if(f.index===a)return i(l,f,u)}return null}}function RS(e,t){return ES(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function PS(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=n=>RS(n,{target:t.target})),{createScanner(n){return new TS(n,t)},createString(n){return{content:n}}}}let $S;const $r=[];function NS(e){if($r.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&$r.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&$r.forEach(n=>n(t))},get(){return $S.value},configurable:!0}),()=>{$r.splice($r.indexOf(e),1)}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const OS=e=>typeof e<"u",Nu=()=>{};function IS(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}function LS(e,t={}){let n,r,s=Nu;const o=l=>{clearTimeout(l),s(),s=Nu};let i;return l=>{const f=Jr(e),u=Jr(t.maxWait);return n&&o(n),f<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((c,h)=>{s=t.rejectOnCancel?h:c,i=l,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,c(i())},u)),n=setTimeout(()=>{r&&o(r),r=null,c(l())},f)})}}function MS(e,t=200,n={}){return IS(LS(t,n),e)}function DS(e){return JSON.parse(JSON.stringify(e))}function BS(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:f,deep:u=!1,defaultValue:c,shouldEmit:h}=r,d=ps(),p=(d==null?void 0:d.emit)||((s=d==null?void 0:d.$emit)==null?void 0:s.bind(d))||((i=(o=d==null?void 0:d.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(d==null?void 0:d.proxy));let g=f;g=g||`update:${t.toString()}`;const y=m=>a?typeof a=="function"?a(m):DS(m):m,_=()=>OS(e[t])?y(e[t]):c,v=m=>{h?h(m)&&p(g,m):p(g,m)};if(l){const m=_(),b=_e(m);let C=!1;return lr(()=>e[t],A=>{C||(C=!0,b.value=y(A),Eo(()=>C=!1))}),lr(b,A=>{!C&&(A!==e[t]||u)&&v(A)},{deep:u}),b}else return je({get(){return _()},set(m){v(m)}})}const sn=_e(null);_e(Date.now());const HS=_e(Date.now()),FS=window.location.host;_e("/");_e();const jS=_e("/");je(()=>nh(jS.value,`${window.location.protocol}//${FS}`));const lp=_e(),cp=_e(),up=_e(),GS=MS(async()=>{var e;sn.value=((e=(await lp.value.resolveTags()).filter(t=>!!t.props["data-nuxt-schema-org"])[0])==null?void 0:e.innerHTML)||{}},300);async function vo(){sn.value="loading",GS()}NS(async e=>{up.value=e.host.app.$fetch,cp.value=e.devtools,lp.value=e.host.nuxt.vueApp._context.provides.usehead,e.host.nuxt.$router.afterEach(()=>{setTimeout(vo,100)}),vo()});const Aa=_e();async function US(){return Aa.value=await z1({themes:[nr(()=>import("./CVO1_9PV.js"),[],import.meta.url),nr(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[nr(()=>import("./DPXMwXsw.js"),[],import.meta.url),nr(()=>import("./Dtw-SHSX.js"),[],import.meta.url)],engine:PS()}),Aa.value}function WS(e,t){return je(()=>{var r;const n=((r=cp.value)==null?void 0:r.colorMode)||"light";return Aa.value.codeToHtml(Jr(e)||"",{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const zS=["innerHTML"],VS=Ze({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=je(()=>{const r=WS(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(Q(),he("pre",{class:Oe(["n-code-block w-full",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,zS))}}),qS={flex:"~ gap-3","items-center":""},KS=Ze({__name:"NIconTitle",props:{icon:{},text:{}},setup(e){return(t,n)=>(Q(),he("div",qS,[t.icon?(Q(),he("div",{key:0,class:Oe(t.icon)},null,2)):Nt("",!0),ze(t.$slots,"default",{},()=>[W("div",null,fn(t.text),1)])]))}}),XS=["open"],JS={"text-base":""},QS={key:0,"text-sm":"",op50:""},YS=Ze({__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=BS(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=cl,a=KS;return Q(),he(Ne,null,[W("details",{open:oe(n),onToggle:r},[W("summary",{class:Oe(["cursor-pointer select-none n-bg-active hover:bg-active px-2 py-2 rounded transition-all",s.collapse?"":"pointer-events-none"])},[z(a,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:Oe([oe(n)?"op100":"op60",s.headerClass])},{default:ue(()=>[W("div",null,[W("div",JS,[ze(s.$slots,"text",{},()=>[Ee(fn(s.text),1)],!0)]),s.description||s.$slots.description?(Q(),he("div",QS,[ze(s.$slots,"description",{},()=>[Ee(fn(s.description),1)],!0)])):Nt("",!0)]),o[0]||(o[0]=W("div",{class:"flex-auto"},null,-1)),ze(s.$slots,"actions",{},void 0,!0),s.collapse?(Q(),De(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):Nt("",!0)]),_:3},8,["icon","text","class"])],2),W("div",{class:Oe(["flex flex-col flex-gap2 pb6 pt2",typeof s.padding=="string"?s.padding:s.padding?"px4":""])},[ze(s.$slots,"details",{},void 0,!0),W("div",{class:Oe([s.containerClass,"mt1"])},[ze(s.$slots,"default",{},void 0,!0)],2),ze(s.$slots,"footer",{},void 0,!0)],2)],40,XS),o[1]||(o[1]=W("div",{class:"x-divider"},null,-1))],64)}}}),ZS=Wo(YS,[["__scopeId","data-v-0d7b3b46"]]),ex=Ze({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(e,{attrs:t,slots:n}){return()=>yr(e.to?sl:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},[ze(n,"icon",{},()=>e.icon?[yr(cl,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),ze(n,"default")])}});function tx(){return vw(()=>up.value("/__schema-org__/debug.json"),{watch:[HS]},"$sUVPCiQAhH")}const nx={class:"relative n-bg-base flex flex-col"},rx={class:"sticky top-0 z-2 px-4 pt-4"},sx={class:"flex justify-between items-start",mb2:""},ox={class:"flex space-x-5"},ix={"text-xl":"",flex:"","items-center":"","gap-2":""},ax={class:"flex items-center space-x-3 text-xl"},lx={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},cx={class:"px-5 py-2"},ux={"text-lg":"",flex:"","items-center":""},fx={class:"px-5 py-2"},hx={"text-lg":"",flex:"","items-center":""},dx={class:"px-5 py-2"},px={"text-lg":"",flex:"","items-center":""},gx={class:"px-5 py-2"},mx={"text-lg":"",flex:"","items-center":""},yx=["value","title"],_x={class:"items-center space-x-3 hidden lg:flex"},wx={class:"opacity-80 text-sm"},bx={class:"opacity-80 text-sm"},vx={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},Cx={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},Sx={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},xx={key:1},kx={key:0},Ex={class:"flex flex-col items-center justify-center mx-auto max-w-135 h-85vh"},Ax={class:""},Tx={class:"text-2xl font-semibold mb-3"},Rx={class:"px-3 py-2 space-y-5 rounded mb-3 border"},Px={class:"px-3 py-2 space-y-5"},$x={key:2,class:"space-y-5"},Nx={class:"space-x-3"},Ox={key:3,class:"space-y-5"},Ix={class:"opacity-80 text-base mb-1"},Lx={key:4,class:"h-full max-h-full overflow-hidden"},Mx=`useSchemaOrg([
|
|
171
|
+
defineWebPage({ title: 'Hello World' })
|
|
172
|
+
])`,Dx=Ze({__name:"app",async setup(e){let t,n;tw({title:"Nuxt Schema.org Playground"}),[t,n]=Tg(()=>US()),await t,n();const{data:r}=tx(),s=_e("nodes"),o=je(()=>{if(sn.value)try{return JSON.parse(sn.value)["@graph"]}catch{}return!1});function i(){navigator.clipboard.writeText(sn.value)}const a={article:["Article","NewsArticle","BlogPosting"],book:["Book"],breadcrumb:["BreadcrumbList"],carousel:["ItemList"],"course-info":["Course"],course:["Course"],dataset:["Dataset"],"discussion-forum":["DiscussionForumPosting"],"education-qa":["Question","Answer"],"employer-rating":["EmployerAggregateRating"],"estimated-salary":["OccupationalExperienceRequirements"],event:["Event"],factcheck:["ClaimReview"],faqpage:["FAQPage"],"image-license-metadata":["ImageObject"],"job-posting":["JobPosting"],"learning-video":["LearningResource","VideoObject"],"local-business":["LocalBusiness"],"math-solvers":["MathSolver"],movie:["Movie"],organization:["Organization"],"practice-problems":["Quiz","Question"],product:["Product"],"product-snippet":["Product"],"merchant-listing":["Product","Offer"],"product-variants":["Product"],"profile-page":["ProfilePage","Person"],qapage:["QAPage"],recipe:["Recipe"],"review-snippet":["Review"],"software-app":["SoftwareApplication"],speakable:["SpeakableSpecification"],"special-announcements":["SpecialAnnouncement"],"paywalled-content":["CreativeWork"],"vacation-rental":["Accommodation","LodgingBusiness"],"vehicle-listing":["Vehicle"],video:["VideoObject"]};function l(u){return Array.isArray(u)?u:[u]}function f(u){var d;const c=u.replace("https://schema.org/",""),h=(d=Object.entries(a).find(([p,g])=>g.includes(c)))==null?void 0:d[0];return{type:c,schemaOrg:`https://schema.org/${c}`,googlePage:h?`https://developers.google.com/search/docs/appearance/structured-data/${h}`:null}}return(u,c)=>{var A;const h=cl,d=q0,p=yn("VTooltip"),g=X0,y=Z0,_=sb,v=VS,m=sl,b=ZS,C=ex;return Q(),he("div",nx,[W("header",rx,[W("div",sx,[W("div",ox,[W("h1",ix,[z(h,{icon:"carbon:image-search",class:"text-blue-300"}),c[2]||(c[2]=Ee(" Schema.org ")),z(d,{class:"text-sm"},{default:ue(()=>{var E;return[Ee(fn((E=oe(r))==null?void 0:E.runtimeConfig.version),1)]}),_:1})])]),W("div",ax,[W("fieldset",lx,[(Q(),he(Ne,null,ii(["nodes","raw","debug","docs"],(E,B)=>W("label",{key:B,class:Oe(["relative n-border-base hover:n-bg-active cursor-pointer",[B?"border-l n-border-base ml--1px":"",E===oe(s)?"n-bg-active":""]])},[E==="nodes"?(Q(),he("div",{key:0,class:Oe([E===oe(s)?"":"op35"])},[z(p,null,{popper:ue(()=>c[3]||(c[3]=[Ee(" Nodes ")])),default:ue(()=>[W("div",cx,[W("h2",ux,[z(h,{icon:"carbon:connect-source opacity-50"})])])]),_:1})],2)):Nt("",!0),E==="raw"?(Q(),he("div",{key:1,class:Oe([E===oe(s)?"":"op35"])},[z(p,null,{popper:ue(()=>c[4]||(c[4]=[Ee(" Raw ")])),default:ue(()=>[W("div",fx,[W("h2",hx,[z(h,{icon:"carbon:code opacity-50"})])])]),_:1})],2)):E==="debug"?(Q(),he("div",{key:2,class:Oe([E===oe(s)?"":"op35"])},[z(p,null,{popper:ue(()=>c[5]||(c[5]=[Ee(" Debug ")])),default:ue(()=>[W("div",dx,[W("h2",px,[z(h,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):E==="docs"?(Q(),he("div",{key:3,class:Oe([E===oe(s)?"":"op35"])},[z(p,null,{popper:ue(()=>c[6]||(c[6]=[Ee(" Documentation ")])),default:ue(()=>[W("div",gx,[W("h2",mx,[z(h,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):Nt("",!0),hg(W("input",{"onUpdate:modelValue":c[0]||(c[0]=H=>Te(s)?s.value=H:null),type:"radio",value:E,title:E,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,yx),[[Hm,oe(s)]])],2)),64))]),z(p,null,{popper:ue(()=>c[7]||(c[7]=[Ee(" Refresh ")])),default:ue(()=>[W("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:c[1]||(c[1]=(...E)=>oe(vo)&&oe(vo)(...E))},[z(h,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),W("div",_x,[W("div",wx,[z(g,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:ue(()=>[z(h,{icon:"carbon:favorite",class:"mr-[2px]"}),c[8]||(c[8]=Ee(" Sponsor "))]),_:1})]),W("div",bx,[z(g,{href:"https://github.com/harlan-zw/nuxt-schema-org",target:"_blank"},{default:ue(()=>[z(h,{icon:"logos:github-icon",class:"mr-[2px]"}),c[9]||(c[9]=Ee(" Submit an issue "))]),_:1})]),W("a",vx,[z(y)])])])]),W("div",Cx,[W("main",Sx,[!oe(sn)||oe(sn)==="loading"?(Q(),De(_,{key:0})):oe(s)==="nodes"?(Q(),he("div",xx,[(A=oe(o))!=null&&A.length?(Q(!0),he(Ne,{key:1},ii(oe(o),(E,B)=>(Q(),De(b,{key:B},{text:ue(()=>[(Q(!0),he(Ne,null,ii(l(E["@type"]).map(f),H=>(Q(),he("h3",{key:H.type,class:"opacity-80 text-base space-x-2"},[W("span",null,fn(H.type),1),z(m,{to:H.schemaOrg,target:"_blank",class:"dark:text-blue-300 hover:underline"},{default:ue(()=>[c[15]||(c[15]=Ee(" Schema.org ")),z(h,{icon:"carbon:launch",class:"text-xs ml-[2px] opacity-50"})]),_:2},1032,["to"]),H.googlePage?(Q(),De(m,{key:0,to:H.googlePage,target:"_blank",class:"dark:text-blue-300 hover:underline"},{default:ue(()=>[c[16]||(c[16]=Ee(" Rich Results ")),z(h,{icon:"carbon:launch",class:"text-xs ml-[2px] opacity-50"})]),_:2},1032,["to"])):Nt("",!0)]))),128))]),description:ue(()=>[W("div",null,fn(E["@id"]),1)]),default:ue(()=>[W("div",Px,[z(v,{code:JSON.stringify(E,null,2),lang:"json"},null,8,["code"])])]),_:2},1024))),128)):(Q(),he("div",kx,[W("div",Ex,[W("div",Ax,[W("h2",Tx,[z(h,{icon:"carbon:information",class:"text-blue-500"}),c[10]||(c[10]=Ee(" Oops! Did you forget ")),c[11]||(c[11]=W("code",null,"useSchemaOrg()",-1)),c[12]||(c[12]=Ee("? "))]),c[13]||(c[13]=W("p",{class:"text-lg opacity-80 my-3"}," Getting started with Nuxt Schema.org is easy, simply add the following code within setup script setup of your file. ",-1)),W("div",Rx,[z(v,{code:Mx,lang:"javascript"})]),c[14]||(c[14]=W("p",{class:"text-lg opacity-80"},[W("a",{href:"https://nuxtseo.com/docs/schema-org/getting-started/introduction",target:"_blank",class:"underline"}," Learn more ")],-1))])])]))])):oe(s)==="raw"?(Q(),he("div",$x,[W("div",Nx,[z(g,{to:"https://validator.schema.org/",target:"_blank"},{default:ue(()=>[z(h,{icon:"carbon:launch",class:"text-xs mr-1 opacity-50"}),c[17]||(c[17]=Ee("Structured Data Test "))]),_:1}),z(g,{to:"https://search.google.com/test/rich-results",target:"_blank"},{default:ue(()=>[z(h,{icon:"carbon:launch",class:"text-xs mr-1 opacity-50"}),c[18]||(c[18]=Ee("Rich Results Test "))]),_:1}),z(C,{onClick:i},{default:ue(()=>c[19]||(c[19]=[Ee(" Copy ")])),_:1})]),z(v,{code:oe(sn),lang:"json"},null,8,["code"])])):oe(s)==="debug"?(Q(),he("div",Ox,[z(b,null,{text:ue(()=>[W("h3",Ix,[z(h,{icon:"carbon:settings",class:"mr-1"}),c[20]||(c[20]=Ee(" Runtime Config "))])]),default:ue(()=>{var E;return[z(v,{code:JSON.stringify(((E=oe(r))==null?void 0:E.runtimeConfig)||{},null,2),lang:"json"},null,8,["code"])]}),_:1})])):oe(s)==="docs"?(Q(),he("div",Lx,c[21]||(c[21]=[W("iframe",{src:"https://nuxtseo.com/schema-org",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)]))):Nt("",!0)])])])}}}),Bx={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
173
|
+
`).splice(1).map(c=>({text:c.replace("webpack:/","").replace(".vue",".js").trim(),internal:c.includes("node_modules")&&!c.includes(".cache")||c.includes("internal")||c.includes("new Promise")})).map(c=>`<span class="stack${c.internal?" internal":""}">${c.text}</span>`).join(`
|
|
174
|
+
`);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,u=s?Fl(()=>nr(()=>import("./Ck282nrP.js"),__vite__mapDeps([0,1]),import.meta.url)):Fl(()=>nr(()=>import("./D1xklhWM.js"),__vite__mapDeps([2,3]),import.meta.url));return(c,h)=>(Q(),De(oe(u),Hu(Ja({statusCode:oe(r),statusMessage:oe(o),description:oe(i),stack:oe(a)})),null,16))}},Hx={key:0},Ou={__name:"nuxt-root",setup(e){const t=()=>null,n=Re(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Bt().beforeEach(l)}const s=!1;xf(bh,vh()),n.hooks.callHookWith(l=>l.map(f=>f()),"vue:setup");const o=el(),i=!1;mf((l,f,u)=>{if(n.hooks.callHook("vue:error",l,f,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),g_(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>d_(l)),!1});const a=!1;return(l,f)=>(Q(),De(nm,{onResolve:oe(r)},{default:ue(()=>[oe(i)?(Q(),he("div",Hx)):oe(o)?(Q(),De(oe(Bx),{key:1,error:oe(o)},null,8,["error"])):oe(a)?(Q(),De(oe(t),{key:2,context:oe(a)},null,8,["context"])):oe(s)?(Q(),De(Eg(oe(s)),{key:3})):(Q(),De(oe(Dx),{key:4}))]),_:1},8,["onResolve"]))}};let Iu;{let e;Iu=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(Ou):Qf(Ou),s=e_({vueApp:r});async function o(l){var f;await s.callHook("app:error",l),(f=s.payload).error||(f.error=Mo(l))}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)});try{await r_(s,U0)}catch(l){o(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Qy),await s.hooks.callHook("app:mounted",r),await Eo()}catch(l){o(l)}return r},e=Iu().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Wo as _,W as a,z as b,he as c,Ee as d,sl as e,Q as o,fn as t,tw as u,ue as w};
|