nuxt-link-checker 4.3.6 → 4.3.7
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/README.md +1 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/C8aYPslm.js +1 -0
- package/dist/client/_nuxt/CSiVy0Dp.js +160 -0
- package/dist/client/_nuxt/{C0TmlKXo.js → DDvKHl5l.js} +1 -1
- package/dist/client/_nuxt/OpE9gtc9.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/e925a465-65a0-48e1-b351-fb5252195014.json +1 -0
- package/dist/client/_nuxt/{entry.8dt3UohH.css → entry.vDvfjTuE.css} +1 -1
- package/dist/client/_nuxt/error-404.DO_nRKko.css +1 -0
- package/dist/client/_nuxt/error-500.DwrmseFw.css +1 -0
- package/dist/client/_nuxt/uApKdN3K.js +1 -0
- package/dist/client/_nuxt/{BMMyXqK5.js → wDzz0qaB.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +16 -5
- package/package.json +19 -19
- package/dist/client/_nuxt/B0_ajAu3.js +0 -181
- package/dist/client/_nuxt/CG8rRwEb.js +0 -1
- package/dist/client/_nuxt/CnCauPY0.js +0 -1
- package/dist/client/_nuxt/Z5EPizOU.js +0 -1
- package/dist/client/_nuxt/builds/meta/9604e5f4-63b2-4986-90f0-09bdab6a0c63.json +0 -1
- package/dist/client/_nuxt/error-404.Dci8Cv5A.css +0 -1
- package/dist/client/_nuxt/error-500.EZ0H14FV.css +0 -1
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DDvKHl5l.js","./wDzz0qaB.js","./Cp-IABpG.js","./OpE9gtc9.js","./uApKdN3K.js","./error-404.DO_nRKko.css","./C8aYPslm.js","./error-500.DwrmseFw.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function fl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ye={},fr=[],Tt=()=>{},If=()=>!1,Ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),dl=e=>e.startsWith("onUpdate:"),Ie=Object.assign,hl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ag=Object.prototype.hasOwnProperty,de=(e,t)=>Ag.call(e,t),Q=Array.isArray,dr=e=>$s(e)==="[object Map]",Lf=e=>$s(e)==="[object Set]",fc=e=>$s(e)==="[object Date]",te=e=>typeof e=="function",xe=e=>typeof e=="string",vt=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",pl=e=>(pe(e)||te(e))&&te(e.then)&&te(e.catch),Of=Object.prototype.toString,$s=e=>Of.call(e),Tg=e=>$s(e).slice(8,-1),Mf=e=>$s(e)==="[object Object]",oi=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hr=fl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ii=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},$g=/-\w/g,dt=ii(e=>e.replace($g,t=>t.slice(1).toUpperCase())),Rg=/\B([A-Z])/g,vn=ii(e=>e.replace(Rg,"-$1").toLowerCase()),ai=ii(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ii=ii(e=>e?`on${ai(e)}`:""),fn=(e,t)=>!Object.is(e,t),ao=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Df=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Pg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ff=e=>{const t=xe(e)?Number(e):NaN;return isNaN(t)?e:t};let dc;const li=()=>dc||(dc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vt(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=xe(r)?Og(r):Vt(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(xe(e)||pe(e))return e}const Ng=/;(?![^(]*\))/g,Ig=/:([^]+)/,Lg=/\/\*[^]*?\*\//g;function Og(e){const t={};return e.replace(Lg,"").split(Ng).forEach(n=>{if(n){const r=n.split(Ig);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Te(e){let t="";if(xe(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const r=Te(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Bf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!xe(t)&&(e.class=Te(t)),n&&(e.style=Vt(n)),e}const Mg="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Dg=fl(Mg);function Hf(e){return!!e||e===""}function Fg(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=_o(e[r],t[r]);return n}function _o(e,t){if(e===t)return!0;let n=fc(e),r=fc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=vt(e),r=vt(t),n||r)return e===t;if(n=Q(e),r=Q(t),n||r)return n&&r?Fg(e,t):!1;if(n=pe(e),r=pe(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!_o(e[i],t[i]))return!1}}return String(e)===String(t)}const jf=e=>!!(e&&e.__v_isRef===!0),Se=e=>xe(e)?e:e==null?"":Q(e)||pe(e)&&(e.toString===Of||!te(e.toString))?jf(e)?Se(e.value):JSON.stringify(e,Uf,2):String(e),Uf=(e,t)=>jf(t)?Uf(e,t.value):dr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Li(r,o)+" =>"]=s,n),{})}:Lf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Li(n))}:vt(t)?Li(t):pe(t)&&!Q(t)&&!Mf(t)?String(t):t,Li=(e,t="")=>{var n;return vt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ve;class Gf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ve,!t&&Ve&&(this.index=(Ve.scopes||(Ve.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=Ve;try{return Ve=this,t()}finally{Ve=n}}}on(){++this._on===1&&(this.prevScope=Ve,Ve=this)}off(){this._on>0&&--this._on===0&&(Ve=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Bg(e){return new Gf(e)}function gl(){return Ve}function Hg(e,t=!1){Ve&&Ve.cleanups.push(e)}let Ce;const Oi=new WeakSet;class Wf{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,Ve&&Ve.active&&Ve.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Oi.has(this)&&(Oi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||zf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,hc(this),qf(this);const t=Ce,n=mt;Ce=this,mt=!0;try{return this.fn()}finally{Kf(this),Ce=t,mt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)bl(t);this.deps=this.depsTail=void 0,hc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Oi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ha(this)&&this.run()}get dirty(){return ha(this)}}let Vf=0,Kr,Xr;function zf(e,t=!1){if(e.flags|=8,t){e.next=Xr,Xr=e;return}e.next=Kr,Kr=e}function ml(){Vf++}function yl(){if(--Vf>0)return;if(Xr){let t=Xr;for(Xr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Kr;){let t=Kr;for(Kr=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 qf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Kf(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),bl(r),jg(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function ha(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fs)||(e.globalVersion=fs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ha(e))))return;e.flags|=2;const t=e.dep,n=Ce,r=mt;Ce=e,mt=!0;try{qf(e);const s=e.fn(e._value);(t.version===0||fn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ce=n,mt=r,Kf(e),e.flags&=-3}}function bl(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)bl(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function jg(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let mt=!0;const Jf=[];function Kt(){Jf.push(mt),mt=!1}function Xt(){const e=Jf.pop();mt=e===void 0?!0:e}function hc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ce;Ce=void 0;try{t()}finally{Ce=n}}}let fs=0;class Ug{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 ci{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ce||!mt||Ce===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ce)n=this.activeLink=new Ug(Ce,this),Ce.deps?(n.prevDep=Ce.depsTail,Ce.depsTail.nextDep=n,Ce.depsTail=n):Ce.deps=Ce.depsTail=n,Zf(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=Ce.depsTail,n.nextDep=void 0,Ce.depsTail.nextDep=n,Ce.depsTail=n,Ce.deps===n&&(Ce.deps=r)}return n}trigger(t){this.version++,fs++,this.notify(t)}notify(t){ml();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{yl()}}}function Zf(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)Zf(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const wo=new WeakMap,Hn=Symbol(""),pa=Symbol(""),ds=Symbol("");function ze(e,t,n){if(mt&&Ce){let r=wo.get(e);r||wo.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ci),s.map=r,s.key=n),s.track()}}function Bt(e,t,n,r,s,o){const i=wo.get(e);if(!i){fs++;return}const a=l=>{l&&l.trigger()};if(ml(),t==="clear")i.forEach(a);else{const l=Q(e),u=l&&oi(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===ds||!vt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(ds)),t){case"add":l?u&&a(i.get("length")):(a(i.get(Hn)),dr(e)&&a(i.get(pa)));break;case"delete":l||(a(i.get(Hn)),dr(e)&&a(i.get(pa)));break;case"set":dr(e)&&a(i.get(Hn));break}}yl()}function Gg(e,t){const n=wo.get(e);return n&&n.get(t)}function Qn(e){const t=fe(e);return t===e?t:(ze(t,"iterate",ds),rt(e)?t:t.map(_t))}function ui(e){return ze(e=fe(e),"iterate",ds),e}function ln(e,t){return Pt(e)?dn(e)?wr(_t(t)):wr(t):_t(t)}const Wg={__proto__:null,[Symbol.iterator](){return Mi(this,Symbol.iterator,e=>ln(this,e))},concat(...e){return Qn(this).concat(...e.map(t=>Q(t)?Qn(t):t))},entries(){return Mi(this,"entries",e=>(e[1]=ln(this,e[1]),e))},every(e,t){return Ot(this,"every",e,t,void 0,arguments)},filter(e,t){return Ot(this,"filter",e,t,n=>n.map(r=>ln(this,r)),arguments)},find(e,t){return Ot(this,"find",e,t,n=>ln(this,n),arguments)},findIndex(e,t){return Ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ot(this,"findLast",e,t,n=>ln(this,n),arguments)},findLastIndex(e,t){return Ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Di(this,"includes",e)},indexOf(...e){return Di(this,"indexOf",e)},join(e){return Qn(this).join(e)},lastIndexOf(...e){return Di(this,"lastIndexOf",e)},map(e,t){return Ot(this,"map",e,t,void 0,arguments)},pop(){return Dr(this,"pop")},push(...e){return Dr(this,"push",e)},reduce(e,...t){return pc(this,"reduce",e,t)},reduceRight(e,...t){return pc(this,"reduceRight",e,t)},shift(){return Dr(this,"shift")},some(e,t){return Ot(this,"some",e,t,void 0,arguments)},splice(...e){return Dr(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 Dr(this,"unshift",e)},values(){return Mi(this,"values",e=>ln(this,e))}};function Mi(e,t,n){const r=ui(e),s=r[t]();return r!==e&&!rt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const Vg=Array.prototype;function Ot(e,t,n,r,s,o){const i=ui(e),a=i!==e&&!rt(e),l=i[t];if(l!==Vg[t]){const f=l.apply(e,o);return a?_t(f):f}let u=n;i!==e&&(a?u=function(f,d){return n.call(this,ln(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(i,u,r);return a&&s?s(c):c}function pc(e,t,n,r){const s=ui(e);let o=n;return s!==e&&(rt(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,ln(e,a),l,e)}),s[t](o,...r)}function Di(e,t,n){const r=fe(e);ze(r,"iterate",ds);const s=r[t](...n);return(s===-1||s===!1)&&fi(n[0])?(n[0]=fe(n[0]),r[t](...n)):s}function Dr(e,t,n=[]){Kt(),ml();const r=fe(e)[t].apply(e,n);return yl(),Xt(),r}const zg=fl("__proto__,__v_isRef,__isVue"),Yf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vt));function qg(e){vt(e)||(e=String(e));const t=fe(this);return ze(t,"has",e),t.hasOwnProperty(e)}class Qf{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?rm:rd:o?nd:td).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Q(t);if(!s){let l;if(i&&(l=Wg[n]))return l;if(n==="hasOwnProperty")return qg}const a=Reflect.get(t,n,Pe(t)?t:r);if((vt(n)?Yf.has(n):zg(n))||(s||ze(t,"get",n),o))return a;if(Pe(a)){const l=i&&oi(n)?a:a.value;return s&&pe(l)?hs(l):l}return pe(a)?s?hs(a):mn(a):a}}class ed extends Qf{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=Q(t)&&oi(n);if(!this._isShallow){const u=Pt(o);if(!rt(r)&&!Pt(r)&&(o=fe(o),r=fe(r)),!i&&Pe(o)&&!Pe(r))return u||(o.value=r),!0}const a=i?Number(n)<t.length:de(t,n),l=Reflect.set(t,n,r,Pe(t)?t:s);return t===fe(s)&&(a?fn(r,o)&&Bt(t,"set",n,r):Bt(t,"add",n,r)),l}deleteProperty(t,n){const r=de(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Bt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!vt(n)||!Yf.has(n))&&ze(t,"has",n),r}ownKeys(t){return ze(t,"iterate",Q(t)?"length":Hn),Reflect.ownKeys(t)}}class Kg extends Qf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Xg=new ed,Jg=new Kg,Zg=new ed(!0);const ga=e=>e,Fs=e=>Reflect.getPrototypeOf(e);function Yg(e,t,n){return function(...r){const s=this.__v_raw,o=fe(s),i=dr(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),c=n?ga:t?wr:_t;return!t&&ze(o,"iterate",l?pa:Hn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Bs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qg(e,t){const n={get(s){const o=this.__v_raw,i=fe(o),a=fe(s);e||(fn(s,a)&&ze(i,"get",s),ze(i,"get",a));const{has:l}=Fs(i),u=t?ga:e?wr:_t;if(l.call(i,s))return u(o.get(s));if(l.call(i,a))return u(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&ze(fe(s),"iterate",Hn),s.size},has(s){const o=this.__v_raw,i=fe(o),a=fe(s);return e||(fn(s,a)&&ze(i,"has",s),ze(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),u=t?ga:e?wr:_t;return!e&&ze(l,"iterate",Hn),a.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return Ie(n,e?{add:Bs("add"),set:Bs("set"),delete:Bs("delete"),clear:Bs("clear")}:{add(s){!t&&!rt(s)&&!Pt(s)&&(s=fe(s));const o=fe(this);return Fs(o).has.call(o,s)||(o.add(s),Bt(o,"add",s,s)),this},set(s,o){!t&&!rt(o)&&!Pt(o)&&(o=fe(o));const i=fe(this),{has:a,get:l}=Fs(i);let u=a.call(i,s);u||(s=fe(s),u=a.call(i,s));const c=l.call(i,s);return i.set(s,o),u?fn(o,c)&&Bt(i,"set",s,o):Bt(i,"add",s,o),this},delete(s){const o=fe(this),{has:i,get:a}=Fs(o);let l=i.call(o,s);l||(s=fe(s),l=i.call(o,s)),a&&a.call(o,s);const u=o.delete(s);return l&&Bt(o,"delete",s,void 0),u},clear(){const s=fe(this),o=s.size!==0,i=s.clear();return o&&Bt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Yg(s,e,t)}),n}function vl(e,t){const n=Qg(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 em={get:vl(!1,!1)},tm={get:vl(!1,!0)},nm={get:vl(!0,!1)};const td=new WeakMap,nd=new WeakMap,rd=new WeakMap,rm=new WeakMap;function sm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function om(e){return e.__v_skip||!Object.isExtensible(e)?0:sm(Tg(e))}function mn(e){return Pt(e)?e:_l(e,!1,Xg,em,td)}function Dn(e){return _l(e,!1,Zg,tm,nd)}function hs(e){return _l(e,!0,Jg,nm,rd)}function _l(e,t,n,r,s){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=om(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function dn(e){return Pt(e)?dn(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function rt(e){return!!(e&&e.__v_isShallow)}function fi(e){return e?!!e.__v_raw:!1}function fe(e){const t=e&&e.__v_raw;return t?fe(t):e}function im(e){return!de(e,"__v_skip")&&Object.isExtensible(e)&&Df(e,"__v_skip",!0),e}const _t=e=>pe(e)?mn(e):e,wr=e=>pe(e)?hs(e):e;function Pe(e){return e?e.__v_isRef===!0:!1}function ce(e){return sd(e,!1)}function Cr(e){return sd(e,!0)}function sd(e,t){return Pe(e)?e:new am(e,t)}class am{constructor(t,n){this.dep=new ci,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:fe(t),this._value=n?t:_t(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||rt(t)||Pt(t);t=r?t:fe(t),fn(t,n)&&(this._rawValue=t,this._value=r?t:_t(t),this.dep.trigger())}}function ie(e){return Pe(e)?e.value:e}function st(e){return te(e)?e():ie(e)}const lm={get:(e,t,n)=>t==="__v_raw"?e:ie(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Pe(s)&&!Pe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function od(e){return dn(e)?e:new Proxy(e,lm)}class cm{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ci,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function um(e){return new cm(e)}class fm{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=fe(t);let s=!0,o=t;if(!Q(t)||!oi(String(n)))do s=!fi(o)||rt(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=ie(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Pe(this._raw[this._key])){const n=this._object[this._key];if(Pe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Gg(this._raw,this._key)}}class dm{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 id(e,t,n){return Pe(e)?e:te(e)?new dm(e):pe(e)&&arguments.length>1?hm(e,t,n):ce(e)}function hm(e,t,n){return new fm(e,t,n)}class pm{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ci(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ce!==this)return zf(this,!0),!0}get value(){const t=this.dep.track();return Xf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function gm(e,t,n=!1){let r,s;return te(e)?r=e:(r=e.get,s=e.set),new pm(r,s,n)}const Hs={},Co=new WeakMap;let $n;function mm(e,t=!1,n=$n){if(n){let r=Co.get(n);r||Co.set(n,r=[]),r.push(e)}}function ym(e,t,n=ye){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,u=v=>s?v:rt(v)||s===!1||s===0?Ht(v,1):Ht(v);let c,f,d,h,p=!1,g=!1;if(Pe(e)?(f=()=>e.value,p=rt(e)):dn(e)?(f=()=>u(e),p=!0):Q(e)?(g=!0,p=e.some(v=>dn(v)||rt(v)),f=()=>e.map(v=>{if(Pe(v))return v.value;if(dn(v))return u(v);if(te(v))return l?l(v,2):v()})):te(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Kt();try{d()}finally{Xt()}}const v=$n;$n=c;try{return l?l(e,3,[h]):e(h)}finally{$n=v}}:f=Tt,t&&s){const v=f,C=s===!0?1/0:s;f=()=>Ht(v(),C)}const y=gl(),b=()=>{c.stop(),y&&y.active&&hl(y.effects,c)};if(o&&t){const v=t;t=(...C)=>{v(...C),b()}}let w=g?new Array(e.length).fill(Hs):Hs;const m=v=>{if(!(!(c.flags&1)||!c.dirty&&!v))if(t){const C=c.run();if(s||p||(g?C.some(($,D)=>fn($,w[D])):fn(C,w))){d&&d();const $=$n;$n=c;try{const D=[C,w===Hs?void 0:g&&w[0]===Hs?[]:w,h];w=C,l?l(t,3,D):t(...D)}finally{$n=$}}}else c.run()};return a&&a(m),c=new Wf(f),c.scheduler=i?()=>i(m,!1):m,h=v=>mm(v,!1,c),d=c.onStop=()=>{const v=Co.get(c);if(v){if(l)l(v,4);else for(const C of v)C();Co.delete(c)}},t?r?m(!0):w=c.run():i?i(m.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function Ht(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Pe(e))Ht(e.value,t,n);else if(Q(e))for(let r=0;r<e.length;r++)Ht(e[r],t,n);else if(Lf(e)||dr(e))e.forEach(r=>{Ht(r,t,n)});else if(Mf(e)){for(const r in e)Ht(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ht(e[r],t,n)}return e}function Rs(e,t,n,r){try{return r?e(...r):e()}catch(s){Pr(s,t,n)}}function wt(e,t,n,r){if(te(e)){const s=Rs(e,t,n,r);return s&&pl(s)&&s.catch(o=>{Pr(o,t,n)}),s}if(Q(e)){const s=[];for(let o=0;o<e.length;o++)s.push(wt(e[o],t,n,r));return s}}function Pr(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,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(o){Kt(),Rs(o,null,10,[e,l,u]),Xt();return}}bm(e,n,s,r,i)}function bm(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Xe=[];let Et=-1;const pr=[];let cn=null,sr=0;const ad=Promise.resolve();let xo=null;function Kn(e){const t=xo||ad;return e?t.then(this?e.bind(this):e):t}function vm(e){let t=Et+1,n=Xe.length;for(;t<n;){const r=t+n>>>1,s=Xe[r],o=ps(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function wl(e){if(!(e.flags&1)){const t=ps(e),n=Xe[Xe.length-1];!n||!(e.flags&2)&&t>=ps(n)?Xe.push(e):Xe.splice(vm(t),0,e),e.flags|=1,ld()}}function ld(){xo||(xo=ad.then(cd))}function ma(e){Q(e)?pr.push(...e):cn&&e.id===-1?cn.splice(sr+1,0,e):e.flags&1||(pr.push(e),e.flags|=1),ld()}function gc(e,t,n=Et+1){for(;n<Xe.length;n++){const r=Xe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Xe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function So(e){if(pr.length){const t=[...new Set(pr)].sort((n,r)=>ps(n)-ps(r));if(pr.length=0,cn){cn.push(...t);return}for(cn=t,sr=0;sr<cn.length;sr++){const n=cn[sr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}cn=null,sr=0}}const ps=e=>e.id==null?e.flags&2?-1:1/0:e.id;function cd(e){try{for(Et=0;Et<Xe.length;Et++){const t=Xe[Et];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Rs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Et<Xe.length;Et++){const t=Xe[Et];t&&(t.flags&=-2)}Et=-1,Xe.length=0,So(),xo=null,(Xe.length||pr.length)&&cd()}}let He=null,di=null;function ko(e){const t=He;return He=e,di=e&&e.type.__scopeId||null,t}function _m(e){di=e}function wm(){di=null}const Cm=e=>re;function re(e,t=He,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&To(-1);const o=ko(t);let i;try{i=e(...s)}finally{ko(o),r._d&&To(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function ud(e,t){if(He===null)return e;const n=bi(He),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=ye]=t[s];o&&(te(o)&&(o={mounted:o,updated:o}),o.deep&&Ht(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function At(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&&(Kt(),wt(l,n,8,[e.el,a,e,t]),Xt())}}const fd=Symbol("_vte"),xm=e=>e.__isTeleport,Jr=e=>e&&(e.disabled||e.disabled===""),mc=e=>e&&(e.defer||e.defer===""),yc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,bc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ya=(e,t)=>{const n=e&&e.to;return xe(n)?t?t(n):null:n},dd={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,a,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:g,createComment:y}}=u,b=Jr(t.props);let{shapeFlag:w,children:m,dynamicChildren:v}=t;if(e==null){const C=t.el=g(""),$=t.anchor=g("");h(C,n,r),h($,n,r);const D=(R,E)=>{w&16&&c(m,R,E,s,o,i,a,l)},U=()=>{const R=t.target=ya(t.props,p),E=hd(R,t,g,h);R&&(i!=="svg"&&yc(R)?i="svg":i!=="mathml"&&bc(R)&&(i="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(R),b||(D(R,E),lo(t,!1)))};b&&(D(n,$),lo(t,!0)),mc(t.props)?(t.el.__isMounted=!1,We(()=>{U(),delete t.el.__isMounted},o)):U()}else{if(mc(t.props)&&e.el.__isMounted===!1){We(()=>{dd.process(e,t,n,r,s,o,i,a,l,u)},o);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,$=t.target=e.target,D=t.targetAnchor=e.targetAnchor,U=Jr(e.props),R=U?n:$,E=U?C:D;if(i==="svg"||yc($)?i="svg":(i==="mathml"||bc($))&&(i="mathml"),v?(d(e.dynamicChildren,v,R,s,o,i,a),Tl(e,t,!0)):l||f(e,t,R,E,s,o,i,a,!1),b)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):js(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=ya(t.props,p);B&&js(t,B,null,u,0)}else U&&js(t,$,D,u,1);lo(t,b)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(s(u),s(c)),o&&s(l),i&16){const h=o||!Jr(d);for(let p=0;p<a.length;p++){const g=a[p];r(g,t,n,h,!!g.dynamicChildren)}}},move:js,hydrate:Sm};function js(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&r(i,t,n),(!f||Jr(c))&&l&16)for(let d=0;d<u.length;d++)s(u[d],t,n,2);f&&r(a,t,n)}function Sm(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},f){function d(g,y,b,w){y.anchor=f(i(g),y,a(g),n,r,s,o),y.targetStart=b,y.targetAnchor=w}const h=t.target=ya(t.props,l),p=Jr(t.props);if(h){const g=h._lpa||h.firstChild;if(t.shapeFlag&16)if(p)d(e,t,g,g&&i(g));else{t.anchor=i(e);let y=g;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,h._lpa=t.targetAnchor&&i(t.targetAnchor);break}}y=i(y)}t.targetAnchor||hd(h,t,c,u),f(g&&i(g),t,h,n,r,s,o)}lo(t,p)}else p&&t.shapeFlag&16&&d(e,t,e,i(e));return t.anchor&&i(t.anchor)}const km=dd;function lo(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function hd(e,t,n,r){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[fd]=o,e&&(r(s,e),r(o,e)),o}const Rn=Symbol("_leaveCb"),Us=Symbol("_enterCb");function Em(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return pi(()=>{e.isMounted=!0}),gi(()=>{e.isUnmounting=!0}),e}const it=[Function,Array],Am={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:it,onEnter:it,onAfterEnter:it,onEnterCancelled:it,onBeforeLeave:it,onLeave:it,onAfterLeave:it,onLeaveCancelled:it,onBeforeAppear:it,onAppear:it,onAfterAppear:it,onAppearCancelled:it};function Tm(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ba(e,t,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:y,onAppear:b,onAfterAppear:w,onAppearCancelled:m}=t,v=String(e.key),C=Tm(n,e),$=(R,E)=>{R&&wt(R,r,9,E)},D=(R,E)=>{const B=E[1];$(R,E),Q(R)?R.every(A=>A.length<=1)&&B():R.length<=1&&B()},U={mode:i,persisted:a,beforeEnter(R){let E=l;if(!n.isMounted)if(o)E=y||l;else return;R[Rn]&&R[Rn](!0);const B=C[v];B&&Ut(e,B)&&B.el[Rn]&&B.el[Rn](),$(E,[R])},enter(R){let E=u,B=c,A=f;if(!n.isMounted)if(o)E=b||u,B=w||c,A=m||f;else return;let k=!1;const S=R[Us]=N=>{k||(k=!0,N?$(A,[R]):$(B,[R]),U.delayedLeave&&U.delayedLeave(),R[Us]=void 0)};E?D(E,[R,S]):S()},leave(R,E){const B=String(e.key);if(R[Us]&&R[Us](!0),n.isUnmounting)return E();$(d,[R]);let A=!1;const k=R[Rn]=S=>{A||(A=!0,E(),S?$(g,[R]):$(p,[R]),R[Rn]=void 0,C[B]===e&&delete C[B])};C[B]=e,h?D(h,[R,k]):k()},clone(R){return ba(R,t,n,r)}};return U}function gs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,gs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function pd(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===ge?(i.patchFlag&128&&s++,r=r.concat(pd(i.children,t,a))):(t||i.type!==ot)&&r.push(a!=null?Wn(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function je(e,t){return te(e)?Ie({name:e.name},t,{setup:e}):e}function Cl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Eo=new WeakMap;function gr(e,t,n,r,s=!1){if(Q(e)){e.forEach((p,g)=>gr(p,t&&(Q(t)?t[g]:t),n,r,s));return}if(jn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&gr(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?bi(r.component):r.el,i=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===ye?a.refs={}:a.refs,f=a.setupState,d=fe(f),h=f===ye?If:p=>de(d,p);if(u!=null&&u!==l){if(vc(t),xe(u))c[u]=null,h(u)&&(f[u]=null);else if(Pe(u)){u.value=null;const p=t;p.k&&(c[p.k]=null)}}if(te(l))Rs(l,a,12,[i,c]);else{const p=xe(l),g=Pe(l);if(p||g){const y=()=>{if(e.f){const b=p?h(l)?f[l]:c[l]:l.value;if(s)Q(b)&&hl(b,o);else if(Q(b))b.includes(o)||b.push(o);else if(p)c[l]=[o],h(l)&&(f[l]=c[l]);else{const w=[o];l.value=w,e.k&&(c[e.k]=w)}}else p?(c[l]=i,h(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(c[e.k]=i))};if(i){const b=()=>{y(),Eo.delete(e)};b.id=-1,Eo.set(e,b),We(b,n)}else vc(e),y()}}}function vc(e){const t=Eo.get(e);t&&(t.flags|=8,Eo.delete(e))}let _c=!1;const er=()=>{_c||(console.error("Hydration completed but contains mismatches."),_c=!0)},$m=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Rm=e=>e.namespaceURI.includes("MathML"),Gs=e=>{if(e.nodeType===1){if($m(e))return"svg";if(Rm(e))return"mathml"}},ar=e=>e.nodeType===8;function Pm(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:u}}=e,c=(m,v)=>{if(!v.hasChildNodes()){n(null,m,v),So(),v._vnode=m;return}f(v.firstChild,m,null,null,null),So(),v._vnode=m},f=(m,v,C,$,D,U=!1)=>{U=U||!!v.dynamicChildren;const R=ar(m)&&m.data==="[",E=()=>g(m,v,C,$,D,R),{type:B,ref:A,shapeFlag:k,patchFlag:S}=v;let N=m.nodeType;v.el=m,S===-2&&(U=!1,v.dynamicChildren=null);let P=null;switch(B){case Gn:N!==3?v.children===""?(l(v.el=s(""),i(m),m),P=m):P=E():(m.data!==v.children&&(er(),m.data=v.children),P=o(m));break;case ot:w(m)?(P=o(m),b(v.el=m.content.firstChild,m,C)):N!==8||R?P=E():P=o(m);break;case Yr:if(R&&(m=o(m),N=m.nodeType),N===1||N===3){P=m;const W=!v.children.length;for(let O=0;O<v.staticCount;O++)W&&(v.children+=P.nodeType===1?P.outerHTML:P.data),O===v.staticCount-1&&(v.anchor=P),P=o(P);return R?o(P):P}else E();break;case ge:R?P=p(m,v,C,$,D,U):P=E();break;default:if(k&1)(N!==1||v.type.toLowerCase()!==m.tagName.toLowerCase())&&!w(m)?P=E():P=d(m,v,C,$,D,U);else if(k&6){v.slotScopeIds=D;const W=i(m);if(R?P=y(m):ar(m)&&m.data==="teleport start"?P=y(m,m.data,"teleport end"):P=o(m),t(v,W,null,C,$,Gs(W),U),jn(v)&&!v.type.__asyncResolved){let O;R?(O=K(ge),O.anchor=P?P.previousSibling:W.lastChild):O=m.nodeType===3?ue(""):K("div"),O.el=m,v.component.subTree=O}}else k&64?N!==8?P=E():P=v.type.hydrate(m,v,C,$,D,U,e,h):k&128&&(P=v.type.hydrate(m,v,C,$,Gs(i(m)),D,U,e,f))}return A!=null&&gr(A,null,$,v),P},d=(m,v,C,$,D,U)=>{U=U||!!v.dynamicChildren;const{type:R,props:E,patchFlag:B,shapeFlag:A,dirs:k,transition:S}=v,N=R==="input"||R==="option";if(N||B!==-1){k&&At(v,null,C,"created");let P=!1;if(w(m)){P=jd(null,S)&&C&&C.vnode.props&&C.vnode.props.appear;const O=m.content.firstChild;if(P){const J=O.getAttribute("class");J&&(O.$cls=J),S.beforeEnter(O)}b(O,m,C),v.el=m=O}if(A&16&&!(E&&(E.innerHTML||E.textContent))){let O=h(m.firstChild,v,m,C,$,D,U);for(;O;){Ws(m,1)||er();const J=O;O=O.nextSibling,a(J)}}else if(A&8){let O=v.children;O[0]===`
|
|
3
|
+
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(O=O.slice(1));const{textContent:J}=m;J!==O&&J!==O.replace(/\r\n|\r/g,`
|
|
4
|
+
`)&&(Ws(m,0)||er(),m.textContent=v.children)}if(E){if(N||!U||B&48){const O=m.tagName.includes("-");for(const J in E)(N&&(J.endsWith("value")||J==="indeterminate")||Ts(J)&&!hr(J)||J[0]==="."||O)&&r(m,J,null,E[J],void 0,C)}else if(E.onClick)r(m,"onClick",null,E.onClick,void 0,C);else if(B&4&&dn(E.style))for(const O in E.style)E.style[O]}let W;(W=E&&E.onVnodeBeforeMount)&<(W,C,v),k&&At(v,null,C,"beforeMount"),((W=E&&E.onVnodeMounted)||k||P)&&Vd(()=>{W&<(W,C,v),P&&S.enter(m),k&&At(v,null,C,"mounted")},$)}return m.nextSibling},h=(m,v,C,$,D,U,R)=>{R=R||!!v.dynamicChildren;const E=v.children,B=E.length;for(let A=0;A<B;A++){const k=R?E[A]:E[A]=nt(E[A]),S=k.type===Gn;m?(S&&!R&&A+1<B&&nt(E[A+1]).type===Gn&&(l(s(m.data.slice(k.children.length)),C,o(m)),m.data=k.children),m=f(m,k,$,D,U,R)):S&&!k.children?l(k.el=s(""),C):(Ws(C,1)||er(),n(null,k,C,null,$,D,Gs(C),U))}return m},p=(m,v,C,$,D,U)=>{const{slotScopeIds:R}=v;R&&(D=D?D.concat(R):R);const E=i(m),B=h(o(m),v,E,C,$,D,U);return B&&ar(B)&&B.data==="]"?o(v.anchor=B):(er(),l(v.anchor=u("]"),E,B),B)},g=(m,v,C,$,D,U)=>{if(Ws(m.parentElement,1)||er(),v.el=null,U){const B=y(m);for(;;){const A=o(m);if(A&&A!==B)a(A);else break}}const R=o(m),E=i(m);return a(m),n(null,v,E,R,C,$,Gs(E),D),C&&(C.vnode.el=v.el,yi(C,v.el)),R},y=(m,v="[",C="]")=>{let $=0;for(;m;)if(m=o(m),m&&ar(m)&&(m.data===v&&$++,m.data===C)){if($===0)return o(m);$--}return m},b=(m,v,C)=>{const $=v.parentNode;$&&$.replaceChild(m,v);let D=C;for(;D;)D.vnode.el===v&&(D.vnode.el=D.subTree.el=m),D=D.parent},w=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const wc="data-allow-mismatch",Nm={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ws(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(wc);)e=e.parentElement;const n=e&&e.getAttribute(wc);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(Nm[t])}}li().requestIdleCallback;li().cancelIdleCallback;function Im(e,t){if(ar(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(ar(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const jn=e=>!!e.type.__asyncLoader;function Cc(e){te(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,h()),h=()=>{let p;return u||(p=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,b)=>{l(g,()=>y(d()),()=>b(g),f+1)});throw g}).then(g=>p!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return je({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,y){let b=!1;(g.bu||(g.bu=[])).push(()=>b=!0);const w=()=>{b||y()},m=o?()=>{const v=o(w,C=>Im(p,C));v&&(g.bum||(g.bum=[])).push(v)}:w;c?m():h().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const p=Be;if(Cl(p),c)return()=>Vs(c,p);const g=m=>{u=null,Pr(m,p,13,!r)};if(a&&p.suspense||kr)return h().then(m=>()=>Vs(m,p)).catch(m=>(g(m),()=>r?K(r,{error:m}):null));const y=ce(!1),b=ce(),w=ce(!!s);return s&&setTimeout(()=>{w.value=!1},s),i!=null&&setTimeout(()=>{if(!y.value&&!b.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),b.value=m}},i),h().then(()=>{y.value=!0,p.parent&&xl(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),b.value=m}),()=>{if(y.value&&c)return Vs(c,p);if(b.value&&r)return K(r,{error:b.value});if(n&&!w.value)return Vs(n,p)}}})}function Vs(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=K(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const xl=e=>e.type.__isKeepAlive;function gd(e,t){yd(e,"a",t)}function md(e,t){yd(e,"da",t)}function yd(e,t,n=Be){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(hi(t,r,n),n){let s=n.parent;for(;s&&s.parent;)xl(s.parent.vnode)&&Lm(r,t,n,s),s=s.parent}}function Lm(e,t,n,r){const s=hi(t,e,r,!0);vd(()=>{hl(r[t],s)},n)}function hi(e,t,n=Be,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Kt();const a=Vn(n),l=wt(t,n,e,i);return a(),Xt(),l});return r?s.unshift(o):s.push(o),o}}const Zt=e=>(t,n=Be)=>{(!kr||e==="sp")&&hi(e,(...r)=>t(...r),n)},Om=Zt("bm"),pi=Zt("m"),Mm=Zt("bu"),bd=Zt("u"),gi=Zt("bum"),vd=Zt("um"),Dm=Zt("sp"),Fm=Zt("rtg"),Bm=Zt("rtc");function _d(e,t=Be){hi("ec",e,t)}const wd="components";function Jt(e,t){return xd(wd,e,!0,t)||e}const Cd=Symbol.for("v-ndc");function Hm(e){return xe(e)?xd(wd,e,!1)||e:e||Cd}function xd(e,t,n=!0,r=!1){const s=He||Be;if(s){const o=s.type;{const a=Py(o,!1);if(a&&(a===t||a===dt(t)||a===ai(dt(t))))return o}const i=xc(s[e]||o[e],t)||xc(s.appContext[e],t);return!i&&r?o:i}}function xc(e,t){return e&&(e[t]||e[dt(t)]||e[ai(dt(t))])}function jt(e,t,n,r){let s;const o=n,i=Q(e);if(i||xe(e)){const a=i&&dn(e);let l=!1,u=!1;a&&(l=!rt(e),u=Pt(e),e=ui(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?wr(_t(e[c])):_t(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o)}else if(pe(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,o)}}else s=[];return s}function Re(e,t,n={},r,s){if(He.ce||He.parent&&jn(He.parent)&&He.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),G(),me(ge,null,[K("slot",n,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),G();const i=o&&Sd(o(n)),a=n.key||i&&i.key,l=me(ge,{key:(a&&!vt(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 Sd(e){return e.some(t=>Sr(t)?!(t.type===ot||t.type===ge&&!Sd(t.children)):!0)?e:null}const va=e=>e?Xd(e)?bi(e):va(e.parent):null,Zr=Ie(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=>va(e.parent),$root:e=>va(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ed(e),$forceUpdate:e=>e.f||(e.f=()=>{wl(e.update)}),$nextTick:e=>e.n||(e.n=Kn.bind(e.proxy)),$watch:e=>Ym.bind(e)}),Fi=(e,t)=>e!==ye&&!e.__isScriptSetup&&de(e,t),jm={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;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(Fi(r,t))return i[t]=1,r[t];if(s!==ye&&de(s,t))return i[t]=2,s[t];if(de(o,t))return i[t]=3,o[t];if(n!==ye&&de(n,t))return i[t]=4,n[t];_a&&(i[t]=0)}}const u=Zr[t];let c,f;if(u)return t==="$attrs"&&ze(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(f=l.config.globalProperties,de(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Fi(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,props:o,type:i}},a){let l;return!!(n[a]||e!==ye&&a[0]!=="$"&&de(e,a)||Fi(t,a)||de(o,a)||de(r,a)||de(Zr,a)||de(s.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},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 Sc(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Um(e){const t=_n();let n=e();return ka(),pl(n)&&(n=n.catch(r=>{throw Vn(t),r})),[n,()=>Vn(t)]}let _a=!0;function Gm(e){const t=Ed(e),n=e.proxy,r=e.ctx;_a=!1,t.beforeCreate&&kc(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:w,destroyed:m,unmounted:v,render:C,renderTracked:$,renderTriggered:D,errorCaptured:U,serverPrefetch:R,expose:E,inheritAttrs:B,components:A,directives:k,filters:S}=t;if(u&&Wm(u,r,null),i)for(const W in i){const O=i[W];te(O)&&(r[W]=O.bind(n))}if(s){const W=s.call(n,n);pe(W)&&(e.data=mn(W))}if(_a=!0,o)for(const W in o){const O=o[W],J=te(O)?O.bind(n,n):te(O.get)?O.get.bind(n,n):Tt,be=!te(O)&&te(O.set)?O.set.bind(n):Tt,ve=ke({get:J,set:be});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Me=>ve.value=Me})}if(a)for(const W in a)kd(a[W],r,n,W);if(l){const W=te(l)?l.call(n):l;Reflect.ownKeys(W).forEach(O=>{Td(O,W[O])})}c&&kc(c,e,"c");function P(W,O){Q(O)?O.forEach(J=>W(J.bind(n))):O&&W(O.bind(n))}if(P(Om,f),P(pi,d),P(Mm,h),P(bd,p),P(gd,g),P(md,y),P(_d,U),P(Bm,$),P(Fm,D),P(gi,w),P(vd,v),P(Dm,R),Q(E))if(E.length){const W=e.exposed||(e.exposed={});E.forEach(O=>{Object.defineProperty(W,O,{get:()=>n[O],set:J=>n[O]=J,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===Tt&&(e.render=C),B!=null&&(e.inheritAttrs=B),A&&(e.components=A),k&&(e.directives=k),R&&Cl(e)}function Wm(e,t,n=Tt){Q(e)&&(e=wa(e));for(const r in e){const s=e[r];let o;pe(s)?"default"in s?o=mr(s.from||r,s.default,!0):o=mr(s.from||r):o=mr(s),Pe(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function kc(e,t,n){wt(Q(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function kd(e,t,n,r){let s=r.includes(".")?Rd(n,r):()=>n[r];if(xe(e)){const o=t[e];te(o)&&zt(s,o)}else if(te(e))zt(s,e.bind(n));else if(pe(e))if(Q(e))e.forEach(o=>kd(o,t,n,r));else{const o=te(e.handler)?e.handler.bind(n):t[e.handler];te(o)&&zt(s,o,e)}}function Ed(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Ao(l,u,i,!0)),Ao(l,t,i)),pe(t)&&o.set(t,l),l}function Ao(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Ao(e,o,n,!0),s&&s.forEach(i=>Ao(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Vm[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Vm={data:Ec,props:Ac,emits:Ac,methods:Wr,computed:Wr,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:Wr,directives:Wr,watch:qm,provide:Ec,inject:zm};function Ec(e,t){return t?e?function(){return Ie(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function zm(e,t){return Wr(wa(e),wa(t))}function wa(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ke(e,t){return e?[...new Set([].concat(e,t))]:t}function Wr(e,t){return e?Ie(Object.create(null),e,t):t}function Ac(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:Ie(Object.create(null),Sc(e),Sc(t??{})):t}function qm(e,t){if(!e)return t;if(!t)return e;const n=Ie(Object.create(null),e);for(const r in t)n[r]=Ke(e[r],t[r]);return n}function Ad(){return{app:null,config:{isNativeTag:If,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 Km=0;function Xm(e,t){return function(r,s=null){te(r)||(r=Ie({},r)),s!=null&&!pe(s)&&(s=null);const o=Ad(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:Km++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Iy,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&te(c.install)?(i.add(c),c.install(u,...f)):te(c)&&(i.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||K(r,s);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,c):e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,bi(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(wt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Un;Un=u;try{return c()}finally{Un=f}}};return u}}let Un=null;function Td(e,t){if(Be){let n=Be.provides;const r=Be.parent&&Be.parent.provides;r===n&&(n=Be.provides=Object.create(r)),n[e]=t}}function mr(e,t,n=!1){const r=_n();if(r||Un){let s=Un?Un._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&te(t)?t.call(r&&r.proxy):t}}function Sl(){return!!(_n()||Un)}const Jm=Symbol.for("v-scx"),Zm=()=>mr(Jm);function $d(e,t){return kl(e,null,t)}function zt(e,t,n){return kl(e,t,n)}function kl(e,t,n=ye){const{immediate:r,deep:s,flush:o,once:i}=n,a=Ie({},n),l=t&&r||!t&&o!=="post";let u;if(kr){if(o==="sync"){const h=Zm();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Tt,h.resume=Tt,h.pause=Tt,h}}const c=Be;a.call=(h,p,g)=>wt(h,c,p,g);let f=!1;o==="post"?a.scheduler=h=>{We(h,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():wl(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=ym(e,t,a);return kr&&(u?u.push(d):l&&d()),d}function Ym(e,t,n){const r=this.proxy,s=xe(e)?e.includes(".")?Rd(r,e):()=>r[e]:e.bind(r,r);let o;te(t)?o=t:(o=t.handler,n=t);const i=Vn(this),a=kl(s,o.bind(r),n);return i(),a}function Rd(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 Qm=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${dt(t)}Modifiers`]||e[`${vn(t)}Modifiers`];function ey(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ye;let s=n;const o=t.startsWith("update:"),i=o&&Qm(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>xe(c)?c.trim():c)),i.number&&(s=n.map(Pg)));let a,l=r[a=Ii(t)]||r[a=Ii(dt(t))];!l&&o&&(l=r[a=Ii(vn(t))]),l&&wt(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,wt(u,e,6,s)}}const ty=new WeakMap;function Pd(e,t,n=!1){const r=n?ty:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!te(e)){const l=u=>{const c=Pd(u,t,!0);c&&(a=!0,Ie(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(pe(e)&&r.set(e,null),null):(Q(o)?o.forEach(l=>i[l]=null):Ie(i,o),pe(e)&&r.set(e,i),i)}function mi(e,t){return!e||!Ts(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,vn(t))||de(e,t))}function Bi(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:g}=e,y=ko(e);let b,w;try{if(n.shapeFlag&4){const v=s||r,C=v;b=nt(u.call(C,v,c,f,h,d,p)),w=a}else{const v=t;b=nt(v.length>1?v(f,{attrs:a,slots:i,emit:l}):v(f,null)),w=t.props?a:ry(a)}}catch(v){Qr.length=0,Pr(v,e,1),b=K(ot)}let m=b;if(w&&g!==!1){const v=Object.keys(w),{shapeFlag:C}=m;v.length&&C&7&&(o&&v.some(dl)&&(w=sy(w,o)),m=Wn(m,w,!1,!0))}return n.dirs&&(m=Wn(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&gs(m,n.transition),b=m,ko(y),b}function ny(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(Sr(s)){if(s.type!==ot||s.children==="v-if"){if(n)return;n=s}}else return}return n}const ry=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ts(n))&&((t||(t={}))[n]=e[n]);return t},sy=(e,t)=>{const n={};for(const r in e)(!dl(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function oy(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Tc(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(i[d]!==r[d]&&!mi(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Tc(r,i,u):!0:!!i;return!1}function Tc(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]&&!mi(n,o))return!0}return!1}function yi({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 Nd={},Id=()=>Object.create(Nd),Ld=e=>Object.getPrototypeOf(e)===Nd;function iy(e,t,n,r=!1){const s={},o=Id();e.propsDefaults=Object.create(null),Od(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Dn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function ay(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=fe(s),[l]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(mi(e.emitsOptions,d))continue;const h=t[d];if(l)if(de(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const p=dt(d);s[p]=Ca(l,a,p,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{Od(e,t,s,o)&&(u=!0);let c;for(const f in a)(!t||!de(t,f)&&((c=vn(f))===f||!de(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=Ca(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!de(t,f))&&(delete o[f],u=!0)}u&&Bt(e.attrs,"set","")}function Od(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(hr(l))continue;const u=t[l];let c;s&&de(s,c=dt(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:mi(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=fe(n),u=a||ye;for(let c=0;c<o.length;c++){const f=o[c];n[f]=Ca(s,l,f,u[f],e,!de(u,f))}}return i}function Ca(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&&te(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=Vn(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===vn(n))&&(r=!0))}return r}const ly=new WeakMap;function Md(e,t,n=!1){const r=n?ly:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!te(e)){const c=f=>{l=!0;const[d,h]=Md(f,t,!0);Ie(i,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return pe(e)&&r.set(e,fr),fr;if(Q(o))for(let c=0;c<o.length;c++){const f=dt(o[c]);$c(f)&&(i[f]=ye)}else if(o)for(const c in o){const f=dt(c);if($c(f)){const d=o[c],h=i[f]=Q(d)||te(d)?{type:d}:Ie({},d),p=h.type;let g=!1,y=!0;if(Q(p))for(let b=0;b<p.length;++b){const w=p[b],m=te(w)&&w.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=te(p)&&p.name==="Boolean";h[0]=g,h[1]=y,(g||de(h,"default"))&&a.push(f)}}const u=[i,a];return pe(e)&&r.set(e,u),u}function $c(e){return e[0]!=="$"&&!hr(e)}const El=e=>e==="_"||e==="_ctx"||e==="$stable",Al=e=>Q(e)?e.map(nt):[nt(e)],cy=(e,t,n)=>{if(t._n)return t;const r=re((...s)=>Al(t(...s)),n);return r._c=!1,r},Dd=(e,t,n)=>{const r=e._ctx;for(const s in e){if(El(s))continue;const o=e[s];if(te(o))t[s]=cy(s,o,r);else if(o!=null){const i=Al(o);t[s]=()=>i}}},Fd=(e,t)=>{const n=Al(t);e.slots.default=()=>n},Bd=(e,t,n)=>{for(const r in t)(n||!El(r))&&(e[r]=t[r])},uy=(e,t,n)=>{const r=e.slots=Id();if(e.vnode.shapeFlag&32){const s=t._;s?(Bd(r,t,n),n&&Df(r,"_",s,!0)):Dd(t,r)}else t&&Fd(e,t)},fy=(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:Bd(s,t,n):(o=!t.$stable,Dd(t,s)),i=t}else t&&(Fd(e,t),i={default:1});if(o)for(const a in s)!El(a)&&i[a]==null&&delete s[a]},We=Vd;function dy(e){return Hd(e)}function hy(e){return Hd(e,Pm)}function Hd(e,t){const n=li();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=Tt,insertStaticContent:p}=e,g=(_,x,T,H=null,I=null,L=null,q=void 0,z=null,V=!!x.dynamicChildren)=>{if(_===x)return;_&&!Ut(_,x)&&(H=en(_),Me(_,I,L,!0),_=null),x.patchFlag===-2&&(V=!1,x.dynamicChildren=null);const{type:M,ref:ee,shapeFlag:X}=x;switch(M){case Gn:y(_,x,T,H);break;case ot:b(_,x,T,H);break;case Yr:_==null&&w(x,T,H,q);break;case ge:A(_,x,T,H,I,L,q,z,V);break;default:X&1?C(_,x,T,H,I,L,q,z,V):X&6?k(_,x,T,H,I,L,q,z,V):(X&64||X&128)&&M.process(_,x,T,H,I,L,q,z,V,Yn)}ee!=null&&I?gr(ee,_&&_.ref,L,x||_,!x):ee==null&&_&&_.ref!=null&&gr(_.ref,null,L,_,!0)},y=(_,x,T,H)=>{if(_==null)r(x.el=a(x.children),T,H);else{const I=x.el=_.el;x.children!==_.children&&u(I,x.children)}},b=(_,x,T,H)=>{_==null?r(x.el=l(x.children||""),T,H):x.el=_.el},w=(_,x,T,H)=>{[_.el,_.anchor]=p(_.children,x,T,H,_.el,_.anchor)},m=({el:_,anchor:x},T,H)=>{let I;for(;_&&_!==x;)I=d(_),r(_,T,H),_=I;r(x,T,H)},v=({el:_,anchor:x})=>{let T;for(;_&&_!==x;)T=d(_),s(_),_=T;s(x)},C=(_,x,T,H,I,L,q,z,V)=>{if(x.type==="svg"?q="svg":x.type==="math"&&(q="mathml"),_==null)$(x,T,H,I,L,q,z,V);else{const M=_.el&&_.el._isVueCE?_.el:null;try{M&&M._beginPatch(),R(_,x,I,L,q,z,V)}finally{M&&M._endPatch()}}},$=(_,x,T,H,I,L,q,z)=>{let V,M;const{props:ee,shapeFlag:X,transition:Y,dirs:ne}=_;if(V=_.el=i(_.type,L,ee&&ee.is,ee),X&8?c(V,_.children):X&16&&U(_.children,V,null,H,I,Hi(_,L),q,z),ne&&At(_,null,H,"created"),D(V,_,_.scopeId,q,H),ee){for(const _e in ee)_e!=="value"&&!hr(_e)&&o(V,_e,null,ee[_e],L,H);"value"in ee&&o(V,"value",null,ee.value,L),(M=ee.onVnodeBeforeMount)&<(M,H,_)}ne&&At(_,null,H,"beforeMount");const ae=jd(I,Y);ae&&Y.beforeEnter(V),r(V,x,T),((M=ee&&ee.onVnodeMounted)||ae||ne)&&We(()=>{M&<(M,H,_),ae&&Y.enter(V),ne&&At(_,null,H,"mounted")},I)},D=(_,x,T,H,I)=>{if(T&&h(_,T),H)for(let L=0;L<H.length;L++)h(_,H[L]);if(I){let L=I.subTree;if(x===L||Gd(L.type)&&(L.ssContent===x||L.ssFallback===x)){const q=I.vnode;D(_,q,q.scopeId,q.slotScopeIds,I.parent)}}},U=(_,x,T,H,I,L,q,z,V=0)=>{for(let M=V;M<_.length;M++){const ee=_[M]=z?un(_[M]):nt(_[M]);g(null,ee,x,T,H,I,L,q,z)}},R=(_,x,T,H,I,L,q)=>{const z=x.el=_.el;let{patchFlag:V,dynamicChildren:M,dirs:ee}=x;V|=_.patchFlag&16;const X=_.props||ye,Y=x.props||ye;let ne;if(T&&Sn(T,!1),(ne=Y.onVnodeBeforeUpdate)&<(ne,T,x,_),ee&&At(x,_,T,"beforeUpdate"),T&&Sn(T,!0),(X.innerHTML&&Y.innerHTML==null||X.textContent&&Y.textContent==null)&&c(z,""),M?E(_.dynamicChildren,M,z,T,H,Hi(x,I),L):q||O(_,x,z,null,T,H,Hi(x,I),L,!1),V>0){if(V&16)B(z,X,Y,T,I);else if(V&2&&X.class!==Y.class&&o(z,"class",null,Y.class,I),V&4&&o(z,"style",X.style,Y.style,I),V&8){const ae=x.dynamicProps;for(let _e=0;_e<ae.length;_e++){const he=ae[_e],Je=X[he],Ue=Y[he];(Ue!==Je||he==="value")&&o(z,he,Je,Ue,I,T)}}V&1&&_.children!==x.children&&c(z,x.children)}else!q&&M==null&&B(z,X,Y,T,I);((ne=Y.onVnodeUpdated)||ee)&&We(()=>{ne&<(ne,T,x,_),ee&&At(x,_,T,"updated")},H)},E=(_,x,T,H,I,L,q)=>{for(let z=0;z<x.length;z++){const V=_[z],M=x[z],ee=V.el&&(V.type===ge||!Ut(V,M)||V.shapeFlag&198)?f(V.el):T;g(V,M,ee,null,H,I,L,q,!0)}},B=(_,x,T,H,I)=>{if(x!==T){if(x!==ye)for(const L in x)!hr(L)&&!(L in T)&&o(_,L,x[L],null,I,H);for(const L in T){if(hr(L))continue;const q=T[L],z=x[L];q!==z&&L!=="value"&&o(_,L,z,q,I,H)}"value"in T&&o(_,"value",x.value,T.value,I)}},A=(_,x,T,H,I,L,q,z,V)=>{const M=x.el=_?_.el:a(""),ee=x.anchor=_?_.anchor:a("");let{patchFlag:X,dynamicChildren:Y,slotScopeIds:ne}=x;ne&&(z=z?z.concat(ne):ne),_==null?(r(M,T,H),r(ee,T,H),U(x.children||[],T,ee,I,L,q,z,V)):X>0&&X&64&&Y&&_.dynamicChildren?(E(_.dynamicChildren,Y,T,I,L,q,z),(x.key!=null||I&&x===I.subTree)&&Tl(_,x,!0)):O(_,x,T,ee,I,L,q,z,V)},k=(_,x,T,H,I,L,q,z,V)=>{x.slotScopeIds=z,_==null?x.shapeFlag&512?I.ctx.activate(x,T,H,q,V):S(x,T,H,I,L,q,V):N(_,x,V)},S=(_,x,T,H,I,L,q)=>{const z=_.component=Ey(_,H,I);if(xl(_)&&(z.ctx.renderer=Yn),Ay(z,!1,q),z.asyncDep){if(I&&I.registerDep(z,P,q),!_.el){const V=z.subTree=K(ot);b(null,V,x,T),_.placeholder=V.el}}else P(z,_,x,T,I,L,q)},N=(_,x,T)=>{const H=x.component=_.component;if(oy(_,x,T))if(H.asyncDep&&!H.asyncResolved){W(H,x,T);return}else H.next=x,H.update();else x.el=_.el,H.vnode=x},P=(_,x,T,H,I,L,q)=>{const z=()=>{if(_.isMounted){let{next:X,bu:Y,u:ne,parent:ae,vnode:_e}=_;{const Qe=Ud(_);if(Qe){X&&(X.el=_e.el,W(_,X,q)),Qe.asyncDep.then(()=>{_.isUnmounted||z()});return}}let he=X,Je;Sn(_,!1),X?(X.el=_e.el,W(_,X,q)):X=_e,Y&&ao(Y),(Je=X.props&&X.props.onVnodeBeforeUpdate)&<(Je,ae,X,_e),Sn(_,!0);const Ue=Bi(_),ht=_.subTree;_.subTree=Ue,g(ht,Ue,f(ht.el),en(ht),_,I,L),X.el=Ue.el,he===null&&yi(_,Ue.el),ne&&We(ne,I),(Je=X.props&&X.props.onVnodeUpdated)&&We(()=>lt(Je,ae,X,_e),I)}else{let X;const{el:Y,props:ne}=x,{bm:ae,m:_e,parent:he,root:Je,type:Ue}=_,ht=jn(x);if(Sn(_,!1),ae&&ao(ae),!ht&&(X=ne&&ne.onVnodeBeforeMount)&<(X,he,x),Sn(_,!0),Y&&Ni){const Qe=()=>{_.subTree=Bi(_),Ni(Y,_.subTree,_,I,null)};ht&&Ue.__asyncHydrate?Ue.__asyncHydrate(Y,_,Qe):Qe()}else{Je.ce&&Je.ce._def.shadowRoot!==!1&&Je.ce._injectChildStyle(Ue);const Qe=_.subTree=Bi(_);g(null,Qe,T,H,_,I,L),x.el=Qe.el}if(_e&&We(_e,I),!ht&&(X=ne&&ne.onVnodeMounted)){const Qe=x;We(()=>lt(X,he,Qe),I)}(x.shapeFlag&256||he&&jn(he.vnode)&&he.vnode.shapeFlag&256)&&_.a&&We(_.a,I),_.isMounted=!0,x=T=H=null}};_.scope.on();const V=_.effect=new Wf(z);_.scope.off();const M=_.update=V.run.bind(V),ee=_.job=V.runIfDirty.bind(V);ee.i=_,ee.id=_.uid,V.scheduler=()=>wl(ee),Sn(_,!0),M()},W=(_,x,T)=>{x.component=_;const H=_.vnode.props;_.vnode=x,_.next=null,ay(_,x.props,H,T),fy(_,x.children,T),Kt(),gc(_),Xt()},O=(_,x,T,H,I,L,q,z,V=!1)=>{const M=_&&_.children,ee=_?_.shapeFlag:0,X=x.children,{patchFlag:Y,shapeFlag:ne}=x;if(Y>0){if(Y&128){be(M,X,T,H,I,L,q,z,V);return}else if(Y&256){J(M,X,T,H,I,L,q,z,V);return}}ne&8?(ee&16&&Qt(M,I,L),X!==M&&c(T,X)):ee&16?ne&16?be(M,X,T,H,I,L,q,z,V):Qt(M,I,L,!0):(ee&8&&c(T,""),ne&16&&U(X,T,H,I,L,q,z,V))},J=(_,x,T,H,I,L,q,z,V)=>{_=_||fr,x=x||fr;const M=_.length,ee=x.length,X=Math.min(M,ee);let Y;for(Y=0;Y<X;Y++){const ne=x[Y]=V?un(x[Y]):nt(x[Y]);g(_[Y],ne,T,null,I,L,q,z,V)}M>ee?Qt(_,I,L,!0,!1,X):U(x,T,H,I,L,q,z,V,X)},be=(_,x,T,H,I,L,q,z,V)=>{let M=0;const ee=x.length;let X=_.length-1,Y=ee-1;for(;M<=X&&M<=Y;){const ne=_[M],ae=x[M]=V?un(x[M]):nt(x[M]);if(Ut(ne,ae))g(ne,ae,T,null,I,L,q,z,V);else break;M++}for(;M<=X&&M<=Y;){const ne=_[X],ae=x[Y]=V?un(x[Y]):nt(x[Y]);if(Ut(ne,ae))g(ne,ae,T,null,I,L,q,z,V);else break;X--,Y--}if(M>X){if(M<=Y){const ne=Y+1,ae=ne<ee?x[ne].el:H;for(;M<=Y;)g(null,x[M]=V?un(x[M]):nt(x[M]),T,ae,I,L,q,z,V),M++}}else if(M>Y)for(;M<=X;)Me(_[M],I,L,!0),M++;else{const ne=M,ae=M,_e=new Map;for(M=ae;M<=Y;M++){const et=x[M]=V?un(x[M]):nt(x[M]);et.key!=null&&_e.set(et.key,M)}let he,Je=0;const Ue=Y-ae+1;let ht=!1,Qe=0;const Mr=new Array(Ue);for(M=0;M<Ue;M++)Mr[M]=0;for(M=ne;M<=X;M++){const et=_[M];if(Je>=Ue){Me(et,I,L,!0);continue}let xt;if(et.key!=null)xt=_e.get(et.key);else for(he=ae;he<=Y;he++)if(Mr[he-ae]===0&&Ut(et,x[he])){xt=he;break}xt===void 0?Me(et,I,L,!0):(Mr[xt-ae]=M+1,xt>=Qe?Qe=xt:ht=!0,g(et,x[xt],T,null,I,L,q,z,V),Je++)}const lc=ht?py(Mr):fr;for(he=lc.length-1,M=Ue-1;M>=0;M--){const et=ae+M,xt=x[et],cc=x[et+1],uc=et+1<ee?cc.el||cc.placeholder:H;Mr[M]===0?g(null,xt,T,uc,I,L,q,z,V):ht&&(he<0||M!==lc[he]?ve(xt,T,uc,2):he--)}}},ve=(_,x,T,H,I=null)=>{const{el:L,type:q,transition:z,children:V,shapeFlag:M}=_;if(M&6){ve(_.component.subTree,x,T,H);return}if(M&128){_.suspense.move(x,T,H);return}if(M&64){q.move(_,x,T,Yn);return}if(q===ge){r(L,x,T);for(let X=0;X<V.length;X++)ve(V[X],x,T,H);r(_.anchor,x,T);return}if(q===Yr){m(_,x,T);return}if(H!==2&&M&1&&z)if(H===0)z.beforeEnter(L),r(L,x,T),We(()=>z.enter(L),I);else{const{leave:X,delayLeave:Y,afterLeave:ne}=z,ae=()=>{_.ctx.isUnmounted?s(L):r(L,x,T)},_e=()=>{L._isLeaving&&L[Rn](!0),X(L,()=>{ae(),ne&&ne()})};Y?Y(L,ae,_e):_e()}else r(L,x,T)},Me=(_,x,T,H=!1,I=!1)=>{const{type:L,props:q,ref:z,children:V,dynamicChildren:M,shapeFlag:ee,patchFlag:X,dirs:Y,cacheIndex:ne}=_;if(X===-2&&(I=!1),z!=null&&(Kt(),gr(z,null,T,_,!0),Xt()),ne!=null&&(x.renderCache[ne]=void 0),ee&256){x.ctx.deactivate(_);return}const ae=ee&1&&Y,_e=!jn(_);let he;if(_e&&(he=q&&q.onVnodeBeforeUnmount)&<(he,x,_),ee&6)Cn(_.component,T,H);else{if(ee&128){_.suspense.unmount(T,H);return}ae&&At(_,null,x,"beforeUnmount"),ee&64?_.type.remove(_,x,T,Yn,H):M&&!M.hasOnce&&(L!==ge||X>0&&X&64)?Qt(M,x,T,!1,!0):(L===ge&&X&384||!I&&ee&16)&&Qt(V,x,T),H&&Yt(_)}(_e&&(he=q&&q.onVnodeUnmounted)||ae)&&We(()=>{he&<(he,x,_),ae&&At(_,null,x,"unmounted")},T)},Yt=_=>{const{type:x,el:T,anchor:H,transition:I}=_;if(x===ge){Ct(T,H);return}if(x===Yr){v(_);return}const L=()=>{s(T),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(_.shapeFlag&1&&I&&!I.persisted){const{leave:q,delayLeave:z}=I,V=()=>q(T,L);z?z(_.el,L,V):V()}else L()},Ct=(_,x)=>{let T;for(;_!==x;)T=d(_),s(_),_=T;s(x)},Cn=(_,x,T)=>{const{bum:H,scope:I,job:L,subTree:q,um:z,m:V,a:M}=_;Rc(V),Rc(M),H&&ao(H),I.stop(),L&&(L.flags|=8,Me(q,_,x,T)),z&&We(z,x),We(()=>{_.isUnmounted=!0},x)},Qt=(_,x,T,H=!1,I=!1,L=0)=>{for(let q=L;q<_.length;q++)Me(_[q],x,T,H,I)},en=_=>{if(_.shapeFlag&6)return en(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const x=d(_.anchor||_.el),T=x&&x[fd];return T?d(T):x};let xn=!1;const ac=(_,x,T)=>{_==null?x._vnode&&Me(x._vnode,null,null,!0):g(x._vnode||null,_,x,null,null,null,T),x._vnode=_,xn||(xn=!0,gc(),So(),xn=!1)},Yn={p:g,um:Me,m:ve,r:Yt,mt:S,mc:U,pc:O,pbc:E,n:en,o:e};let Pi,Ni;return t&&([Pi,Ni]=t(Yn)),{render:ac,hydrate:Pi,createApp:Xm(ac,Pi)}}function Hi({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 Sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function jd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tl(e,t,n=!1){const r=e.children,s=t.children;if(Q(r)&&Q(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]=un(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Tl(i,a)),a.type===Gn&&a.patchFlag!==-1&&(a.el=i.el),a.type===ot&&!a.el&&(a.el=i.el)}}function py(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<u?o=a+1:i=a;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Ud(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ud(t)}function Rc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Gd=e=>e.__isSuspense;let xa=0;const gy={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,u){if(e==null)yy(t,n,r,s,o,i,a,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}by(e,t,n,r,s,i,a,l,u)}},hydrate:vy,normalize:_y},my=gy;function ms(e,t){const n=e.props&&e.props[t];te(n)&&n()}function yy(e,t,n,r,s,o,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Wd(e,s,r,t,f,n,o,i,a,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,i),d.deps>0?(ms(e,"onPending"),ms(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),yr(d,e.ssFallback)):d.resolve(!1,!0)}function by(e,t,n,r,s,o,i,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:y,isHydrating:b}=f;if(g)f.pendingBranch=d,Ut(g,d)?(l(g,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():y&&(b||(l(p,h,n,r,s,null,o,i,a),yr(f,h)))):(f.pendingId=xa++,b?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),y?(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(l(p,h,n,r,s,null,o,i,a),yr(f,h))):p&&Ut(p,d)?(l(p,d,n,r,s,f,o,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0&&f.resolve()));else if(p&&Ut(p,d))l(p,d,n,r,s,f,o,i,a),yr(f,d);else if(ms(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=xa++,l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:w,pendingId:m}=f;w>0?setTimeout(()=>{f.pendingId===m&&f.fallback(h)},w):w===0&&f.fallback(h)}}function Wd(e,t,n,r,s,o,i,a,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:g,remove:y}}=u;let b;const w=wy(e);w&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const m=e.props?Ff(e.props.timeout):void 0,v=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:xa++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve($=!1,D=!1){const{vnode:U,activeBranch:R,pendingBranch:E,pendingId:B,effects:A,parentComponent:k,container:S,isInFallback:N}=C;let P=!1;C.isHydrating?C.isHydrating=!1:$||(P=R&&E.transition&&E.transition.mode==="out-in",P&&(R.transition.afterLeave=()=>{B===C.pendingId&&(d(E,S,o===v?p(R):o,0),ma(A),N&&U.ssFallback&&(U.ssFallback.el=null))}),R&&(g(R.el)===S&&(o=p(R)),h(R,k,C,!0),!P&&N&&U.ssFallback&&We(()=>U.ssFallback.el=null,C)),P||d(E,S,o,0)),yr(C,E),C.pendingBranch=null,C.isInFallback=!1;let W=C.parent,O=!1;for(;W;){if(W.pendingBranch){W.effects.push(...A),O=!0;break}W=W.parent}!O&&!P&&ma(A),C.effects=[],w&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),ms(U,"onResolve")},fallback($){if(!C.pendingBranch)return;const{vnode:D,activeBranch:U,parentComponent:R,container:E,namespace:B}=C;ms(D,"onFallback");const A=p(U),k=()=>{C.isInFallback&&(f(null,$,E,A,R,null,B,a,l),yr(C,$))},S=$.transition&&$.transition.mode==="out-in";S&&(U.transition.afterLeave=k),C.isInFallback=!0,h(U,R,null,!0),S||k()},move($,D,U){C.activeBranch&&d(C.activeBranch,$,D,U),C.container=$},next(){return C.activeBranch&&p(C.activeBranch)},registerDep($,D,U){const R=!!C.pendingBranch;R&&C.deps++;const E=$.vnode.el;$.asyncDep.catch(B=>{Pr(B,$,0)}).then(B=>{if($.isUnmounted||C.isUnmounted||C.pendingId!==$.suspenseId)return;$.asyncResolved=!0;const{vnode:A}=$;Ea($,B),E&&(A.el=E);const k=!E&&$.subTree.el;D($,A,g(E||$.subTree.el),E?null:p($.subTree),C,i,U),k&&(A.placeholder=null,y(k)),yi($,A.el),R&&--C.deps===0&&C.resolve()})},unmount($,D){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,n,$,D),C.pendingBranch&&h(C.pendingBranch,n,$,D)}};return C}function vy(e,t,n,r,s,o,i,a,l){const u=t.suspense=Wd(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,i);return u.deps===0&&u.resolve(!1,!0),c}function _y(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Pc(r?n.default:n),e.ssFallback=r?Pc(n.fallback):K(ot)}function Pc(e){let t;if(te(e)){const n=xr&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=Ze,zd())}return Q(e)&&(e=ny(e)),e=nt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Vd(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):ma(e)}function yr(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,yi(r,s))}function wy(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ge=Symbol.for("v-fgt"),Gn=Symbol.for("v-txt"),ot=Symbol.for("v-cmt"),Yr=Symbol.for("v-stc"),Qr=[];let Ze=null;function G(e=!1){Qr.push(Ze=e?null:[])}function zd(){Qr.pop(),Ze=Qr[Qr.length-1]||null}let xr=1;function To(e,t=!1){xr+=e,e<0&&Ze&&t&&(Ze.hasOnce=!0)}function qd(e){return e.dynamicChildren=xr>0?Ze||fr:null,zd(),xr>0&&Ze&&Ze.push(e),e}function Z(e,t,n,r,s,o){return qd(F(e,t,n,r,s,o,!0))}function me(e,t,n,r,s){return qd(K(e,t,n,r,s,!0))}function Sr(e){return e?e.__v_isVNode===!0:!1}function Ut(e,t){return e.type===t.type&&e.key===t.key}const Kd=({key:e})=>e??null,co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Pe(e)||te(e)?{i:He,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,s=null,o=e===ge?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kd(t),ref:t&&co(t),scopeId:di,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:He};return a?(Rl(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=xe(n)?8:16),xr>0&&!i&&Ze&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ze.push(l),l}const K=Cy;function Cy(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Cd)&&(e=ot),Sr(e)){const a=Wn(e,t,!0);return n&&Rl(a,n),xr>0&&!o&&Ze&&(a.shapeFlag&6?Ze[Ze.indexOf(e)]=a:Ze.push(a)),a.patchFlag=-2,a}if(Ny(e)&&(e=e.__vccOpts),t){t=$l(t);let{class:a,style:l}=t;a&&!xe(a)&&(t.class=Te(a)),pe(l)&&(fi(l)&&!Q(l)&&(l=Ie({},l)),t.style=Vt(l))}const i=xe(e)?1:Gd(e)?128:xm(e)?64:pe(e)?4:te(e)?2:0;return F(e,t,n,r,s,i,o,!0)}function $l(e){return e?fi(e)||Ld(e)?Ie({},e):e:null}function Wn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?Xn(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Kd(u),ref:t&&t.ref?n&&o?Q(o)?o.concat(co(t)):[o,co(t)]:co(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!==ge?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&&Wn(e.ssContent),ssFallback:e.ssFallback&&Wn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&gs(c,l.clone(c)),c}function ue(e=" ",t=0){return K(Gn,null,e,t)}function xy(e,t){const n=K(Yr,null,e);return n.staticCount=t,n}function Ee(e="",t=!1){return t?(G(),me(ot,null,e)):K(ot,null,e)}function nt(e){return e==null||typeof e=="boolean"?K(ot):Q(e)?K(ge,null,e.slice()):Sr(e)?un(e):K(Gn,null,String(e))}function un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wn(e)}function Rl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Rl(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ld(t)?t._ctx=He:s===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:He},n=32):(t=String(t),r&64?(n=16,t=[ue(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xn(...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=Te([t.class,r.class]));else if(s==="style")t.style=Vt([t.style,r.style]);else if(Ts(s)){const o=t[s],i=r[s];i&&o!==i&&!(Q(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){wt(e,t,7,[n,r])}const Sy=Ad();let ky=0;function Ey(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Sy,o={uid:ky++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Gf(!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:Md(r,s),emitsOptions:Pd(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=ey.bind(null,o),e.ce&&e.ce(o),o}let Be=null;const _n=()=>Be||He;let $o,Sa;{const e=li(),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)}};$o=t("__VUE_INSTANCE_SETTERS__",n=>Be=n),Sa=t("__VUE_SSR_SETTERS__",n=>kr=n)}const Vn=e=>{const t=Be;return $o(e),e.scope.on(),()=>{e.scope.off(),$o(t)}},ka=()=>{Be&&Be.scope.off(),$o(null)};function Xd(e){return e.vnode.shapeFlag&4}let kr=!1;function Ay(e,t=!1,n=!1){t&&Sa(t);const{props:r,children:s}=e.vnode,o=Xd(e);iy(e,r,o,t),uy(e,s,n||t);const i=o?Ty(e,t):void 0;return t&&Sa(!1),i}function Ty(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jm);const{setup:r}=n;if(r){Kt();const s=e.setupContext=r.length>1?Ry(e):null,o=Vn(e),i=Rs(r,e,0,[e.props,s]),a=pl(i);if(Xt(),o(),(a||e.sp)&&!jn(e)&&Cl(e),a){if(i.then(ka,ka),t)return i.then(l=>{Ea(e,l)}).catch(l=>{Pr(l,e,0)});e.asyncDep=i}else Ea(e,i)}else Jd(e)}function Ea(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=od(t)),Jd(e)}function Jd(e,t,n){const r=e.type;e.render||(e.render=r.render||Tt);{const s=Vn(e);Kt();try{Gm(e)}finally{Xt(),s()}}}const $y={get(e,t){return ze(e,"get",""),e[t]}};function Ry(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$y),slots:e.slots,emit:e.emit,expose:t}}function bi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(od(im(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zr)return Zr[n](e)},has(t,n){return n in t||n in Zr}})):e.proxy}function Py(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Ny(e){return te(e)&&"__vccOpts"in e}const ke=(e,t)=>gm(e,t,kr);function yn(e,t,n){try{To(-1);const r=arguments.length;return r===2?pe(t)&&!Q(t)?Sr(t)?K(e,null,[t]):K(e,t):K(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Sr(n)&&(n=[n]),K(e,t,n))}finally{To(1)}}const Iy="3.5.25";let Aa;const Nc=typeof window<"u"&&window.trustedTypes;if(Nc)try{Aa=Nc.createPolicy("vue",{createHTML:e=>e})}catch{}const Zd=Aa?e=>Aa.createHTML(e):e=>e,Ly="http://www.w3.org/2000/svg",Oy="http://www.w3.org/1998/Math/MathML",Ft=typeof document<"u"?document:null,Ic=Ft&&Ft.createElement("template"),My={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"?Ft.createElementNS(Ly,e):t==="mathml"?Ft.createElementNS(Oy,e):n?Ft.createElement(e,{is:n}):Ft.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.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{Ic.innerHTML=Zd(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Ic.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]}},tn="transition",Fr="animation",Er=Symbol("_vtc"),Yd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Dy=Ie({},Am,Yd),kn=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Lc=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function Fy(e){const t={};for(const A in e)A in Yd||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=By(s),g=p&&p[0],y=p&&p[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:m,onLeave:v,onLeaveCancelled:C,onBeforeAppear:$=b,onAppear:D=w,onAppearCancelled:U=m}=t,R=(A,k,S,N)=>{A._enterCancelled=N,nn(A,k?c:a),nn(A,k?u:i),S&&S()},E=(A,k)=>{A._isLeaving=!1,nn(A,f),nn(A,h),nn(A,d),k&&k()},B=A=>(k,S)=>{const N=A?D:w,P=()=>R(k,A,S);kn(N,[k,P]),Oc(()=>{nn(k,A?l:o),St(k,A?c:a),Lc(N)||Mc(k,r,g,P)})};return Ie(t,{onBeforeEnter(A){kn(b,[A]),St(A,o),St(A,i)},onBeforeAppear(A){kn($,[A]),St(A,l),St(A,u)},onEnter:B(!1),onAppear:B(!0),onLeave(A,k){A._isLeaving=!0;const S=()=>E(A,k);St(A,f),A._enterCancelled?(St(A,d),Ta(A)):(Ta(A),St(A,d)),Oc(()=>{A._isLeaving&&(nn(A,f),St(A,h),Lc(v)||Mc(A,r,y,S))}),kn(v,[A,S])},onEnterCancelled(A){R(A,!1,void 0,!0),kn(m,[A])},onAppearCancelled(A){R(A,!0,void 0,!0),kn(U,[A])},onLeaveCancelled(A){E(A),kn(C,[A])}})}function By(e){if(e==null)return null;if(pe(e))return[ji(e.enter),ji(e.leave)];{const t=ji(e);return[t,t]}}function ji(e){return Ff(e)}function St(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Er]||(e[Er]=new Set)).add(t)}function nn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Er];n&&(n.delete(t),n.size||(e[Er]=void 0))}function Oc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hy=0;function Mc(e,t,n,r){const s=e._endId=++Hy,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=Qd(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),e.addEventListener(u,d)}function Qd(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),s=r(`${tn}Delay`),o=r(`${tn}Duration`),i=Dc(s,o),a=r(`${Fr}Delay`),l=r(`${Fr}Duration`),u=Dc(a,l);let c=null,f=0,d=0;t===tn?i>0&&(c=tn,f=i,d=o.length):t===Fr?u>0&&(c=Fr,f=u,d=l.length):(f=Math.max(i,u),c=f>0?i>u?tn:Fr:null,d=c?c===tn?o.length:l.length:0);const h=c===tn&&/\b(?:transform|all)(?:,|$)/.test(r(`${tn}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function Dc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Fc(n)+Fc(e[r])))}function Fc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ta(e){return(e?e.ownerDocument:document).body.offsetHeight}function jy(e,t,n){const r=e[Er];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ro=Symbol("_vod"),eh=Symbol("_vsh"),Uy={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ro]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Br(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Br(e,!0),r.enter(e)):r.leave(e,()=>{Br(e,!1)}):Br(e,t))},beforeUnmount(e,{value:t}){Br(e,t)}};function Br(e,t){e.style.display=t?e[Ro]:"none",e[eh]=!t}const Gy=Symbol(""),Wy=/(?:^|;)\s*display\s*:/;function Vy(e,t,n){const r=e.style,s=xe(n);let o=!1;if(n&&!s){if(t)if(xe(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&uo(r,a,"")}else for(const i in t)n[i]==null&&uo(r,i,"");for(const i in n)i==="display"&&(o=!0),uo(r,i,n[i])}else if(s){if(t!==n){const i=r[Gy];i&&(n+=";"+i),r.cssText=n,o=Wy.test(n)}}else t&&e.removeAttribute("style");Ro in e&&(e[Ro]=o?r.display:"",e[eh]&&(r.display="none"))}const Bc=/\s*!important$/;function uo(e,t,n){if(Q(n))n.forEach(r=>uo(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=zy(e,t);Bc.test(n)?e.setProperty(vn(r),n.replace(Bc,""),"important"):e[r]=n}}const Hc=["Webkit","Moz","ms"],Ui={};function zy(e,t){const n=Ui[t];if(n)return n;let r=dt(t);if(r!=="filter"&&r in e)return Ui[t]=r;r=ai(r);for(let s=0;s<Hc.length;s++){const o=Hc[s]+r;if(o in e)return Ui[t]=o}return t}const jc="http://www.w3.org/1999/xlink";function Uc(e,t,n,r,s,o=Dg(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(jc,t.slice(6,t.length)):e.setAttributeNS(jc,t,n):n==null||o&&!Hf(n)?e.removeAttribute(t):e.setAttribute(t,o?"":vt(n)?String(n):n)}function Gc(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Zd(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=Hf(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 th(e,t,n,r){e.addEventListener(t,n,r)}function qy(e,t,n,r){e.removeEventListener(t,n,r)}const Wc=Symbol("_vei");function Ky(e,t,n,r,s=null){const o=e[Wc]||(e[Wc]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=Xy(t);if(r){const u=o[t]=Yy(r,s);th(e,a,u,l)}else i&&(qy(e,a,i,l),o[t]=void 0)}}const Vc=/(?:Once|Passive|Capture)$/;function Xy(e){let t;if(Vc.test(e)){t={};let r;for(;r=e.match(Vc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):vn(e.slice(2)),t]}let Gi=0;const Jy=Promise.resolve(),Zy=()=>Gi||(Jy.then(()=>Gi=0),Gi=Date.now());function Yy(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;wt(Qy(r,n.value),t,5,[r])};return n.value=e,n.attached=Zy(),n}function Qy(e,t){if(Q(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 zc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,eb=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?jy(e,r,i):t==="style"?Vy(e,n,r):Ts(t)?dl(t)||Ky(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tb(e,t,r,i))?(Gc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Uc(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!xe(r))?Gc(e,dt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Uc(e,t,r,i))};function tb(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&zc(t)&&te(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 zc(t)&&xe(n)?!1:t in e}const nh=new WeakMap,rh=new WeakMap,Po=Symbol("_moveCb"),qc=Symbol("_enterCb"),nb=e=>(delete e.props.mode,e),rb=nb({name:"TransitionGroup",props:Ie({},Dy,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_n(),r=Em();let s,o;return bd(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!lb(s[0].el,n.vnode.el,i)){s=[];return}s.forEach(ob),s.forEach(ib);const a=s.filter(ab);Ta(n.vnode.el),a.forEach(l=>{const u=l.el,c=u.style;St(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Po]=d=>{d&&d.target!==u||(!d||d.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[Po]=null,nn(u,i))};u.addEventListener("transitionend",f)}),s=[]}),()=>{const i=fe(e),a=Fy(i);let l=i.tag||ge;if(s=[],o)for(let u=0;u<o.length;u++){const c=o[u];c.el&&c.el instanceof Element&&(s.push(c),gs(c,ba(c,a,r,n)),nh.set(c,{left:c.el.offsetLeft,top:c.el.offsetTop}))}o=t.default?pd(t.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&gs(c,ba(c,a,r,n))}return K(l,null,o)}}}),sb=rb;function ob(e){const t=e.el;t[Po]&&t[Po](),t[qc]&&t[qc]()}function ib(e){rh.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function ab(e){const t=nh.get(e),n=rh.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function lb(e,t,n){const r=e.cloneNode(),s=e[Er];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=Qd(r);return o.removeChild(r),i}const Kc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>ao(t,n):t},Wi=Symbol("_assign"),cb={created(e,{value:t},n){e.checked=_o(t,n.props.value),e[Wi]=Kc(n),th(e,"change",()=>{e[Wi](ub(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Wi]=Kc(r),t!==n&&(e.checked=_o(t,r.props.value))}};function ub(e){return"_value"in e?e._value:e.value}const fb=["ctrl","shift","alt","meta"],db={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>fb.some(n=>e[`${n}Key`]&&!t.includes(n))},hb=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let i=0;i<t.length;i++){const a=db[t[i]];if(a&&a(s,t))return}return e(s,...o)}))},pb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gb=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=vn(s.key);if(t.some(i=>i===o||pb[i]===o))return e(s)}))},sh=Ie({patchProp:eb},My);let es,Xc=!1;function mb(){return es||(es=dy(sh))}function yb(){return es=Xc?es:hy(sh),Xc=!0,es}const oh=((...e)=>{const t=mb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=ah(r);if(!s)return;const o=t._component;!te(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,ih(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t}),bb=((...e)=>{const t=yb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=ah(r);if(s)return n(s,!0,ih(s))},t});function ih(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ah(e){return xe(e)?document.querySelector(e):e}const vb=/"(?:_|\\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*:/,_b=/"(?: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*:/,wb=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Cb(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){xb(e);return}return t}function xb(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function No(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(!wb.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(vb.test(e)||_b.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Cb)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Sb=/#/g,kb=/&/g,Eb=/\//g,Ab=/=/g,Pl=/\+/g,Tb=/%5e/gi,$b=/%60/gi,Rb=/%7c/gi,Pb=/%20/gi;function Nb(e){return encodeURI(""+e).replace(Rb,"|")}function $a(e){return Nb(typeof e=="string"?e:JSON.stringify(e)).replace(Pl,"%2B").replace(Pb,"+").replace(Sb,"%23").replace(kb,"%26").replace($b,"`").replace(Tb,"^").replace(Eb,"%2F")}function Vi(e){return $a(e).replace(Ab,"%3D")}function Io(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Ib(e){return Io(e.replace(Pl," "))}function Lb(e){return Io(e.replace(Pl," "))}function Ps(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=Ib(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=Lb(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 Ob(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Vi(e)}=${$a(n)}`).join("&"):`${Vi(e)}=${$a(t)}`:Vi(e)}function lh(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Ob(t,e[t])).filter(Boolean).join("&")}const Mb=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Db=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Fb=/^([/\\]\s*){2,}[^/\\]/,Bb=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Hb=/\/$|\/\?|\/#/,jb=/^\.?\//;function wn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Mb.test(e):Db.test(e)||(t.acceptRelative?Fb.test(e):!1)}function Ub(e){return!!e&&Bb.test(e)}function Ra(e="",t){return t?Hb.test(e):e.endsWith("/")}function Nl(e="",t){if(!t)return(Ra(e)?e.slice(0,-1):e)||"/";if(!Ra(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 Lo(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ra(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 Gb(e=""){return e.startsWith("/")}function Jc(e=""){return Gb(e)?e:"/"+e}function Wb(e,t){if(uh(t)||wn(e))return e;const n=Nl(t);return e.startsWith(n)?e:Ns(n,e)}function Vb(e,t){if(uh(t))return e;const n=Nl(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function ch(e,t){const n=Il(e),r={...Ps(n.search),...t};return n.search=lh(r),hh(n)}function zb(e){return Ps(Il(e).search)}function uh(e){return!e||e==="/"}function qb(e){return e&&e!=="/"}function Ns(e,...t){let n=e||"";for(const r of t.filter(s=>qb(s)))if(n){const s=r.replace(jb,"");n=Lo(n)+s}else n=r;return n}function fh(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&wn(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let o=r.join("/");return s>=0?n[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:n[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,n[n.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function Kb(e,t,n={}){return n.trailingSlash||(e=Lo(e),t=Lo(t)),n.leadingSlash||(e=Jc(e),t=Jc(t)),n.encoding||(e=Io(e),t=Io(t)),e===t}const dh=Symbol.for("ufo:protocolRelative");function Il(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!wn(e,{acceptRelative:!0}))return Zc(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=Zc(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:u,hash:c,[dh]:!r}}function Zc(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function hh(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[dh]?(e.protocol||"")+"//":"")+s+o+t+n+r}class Xb extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function Jb(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new Xb(i,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const Zb=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Yc(e="GET"){return Zb.has(e.toUpperCase())}function Yb(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||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Qb=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ev=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function tv(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return ev.test(t)?"json":t==="text/event-stream"?"stream":Qb.has(t)||t.startsWith("text/")?"text":"blob"}function nv(e,t,n,r){const s=rv(t?.headers??e?.headers,n?.headers,r);let o;return(n?.query||n?.params||t?.params||t?.query)&&(o={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:o,params:o,headers:s}}function rv(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 zs(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const sv=new Set([408,409,425,429,500,502,503,504]),ov=new Set([101,204,205,304]);function ph(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=Yc(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):sv.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),o(a.request,{...a.options,retry:c-1})}}const u=Jb(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const c={request:l,options:nv(l,u,e.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await zs(c,c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Wb(c.request,c.options.baseURL)),c.options.query&&(c.request=ch(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Yc(c.options.method))if(Yb(c.options.body)){const h=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),h||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let f;if(!c.options.signal&&c.options.timeout){const h=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},c.options.timeout),c.options.signal=h.signal}try{c.response=await t(c.request,c.options)}catch(h){return c.error=h,c.options.onRequestError&&await zs(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!ov.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||tv(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||No;c.response._data=g(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[h]()}}return c.options.onResponse&&await zs(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await zs(c,c.options.onResponseError),await s(c)):c.response},i=async function(l,u){return(await o(l,u))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>ph({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Oo=(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")})(),iv=Oo.fetch?(...e)=>Oo.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),av=Oo.Headers,lv=Oo.AbortController,cv=ph({fetch:iv,Headers:av,AbortController:lv}),uv=cv,fv=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Ll=()=>fv().app,dv=()=>Ll().baseURL,hv=()=>Ll().buildAssetsDir,Ol=(...e)=>fh(gh(),hv(),...e),gh=(...e)=>{const t=Ll(),n=t.cdnURL||t.baseURL;return e.length?fh(n,...e):n};globalThis.__buildAssetsURL=Ol,globalThis.__publicAssetsURL=gh;globalThis.$fetch||(globalThis.$fetch=uv.create({baseURL:dv()}));"global"in globalThis||(globalThis.global=globalThis);function Pa(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Pa(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const pv={run:e=>e()},gv=()=>pv,mh=typeof console.createTask<"u"?console.createTask:gv;function mv(e,t){const n=t.shift(),r=mh(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function yv(e,t){const n=t.shift(),r=mh(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function zi(e,t){for(const n of[...e])n(t)}class bv{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=Pa(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=Pa(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(mv,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(yv,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&zi(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&zi(this._after,s)}):(this._after&&s&&zi(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 yh(){return new bv}function vv(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(s){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return s?s.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},u=()=>t===i?l:void 0;Na.add(u);try{const c=s?s.run(i,a):a();return n||(t=void 0),await c}finally{Na.delete(u)}}}}function _v(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=vv({...e,...r})),t[n]}}}const Mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Qc="__unctx__",wv=Mo[Qc]||(Mo[Qc]=_v()),Cv=(e,t={})=>wv.get(e,t),eu="__unctx_async_handlers__",Na=Mo[eu]||(Mo[eu]=new Set);function bh(e){const t=[];for(const s of Na){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 tu={id:"__nuxt-loader"},xv={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Sv="#__nuxt",vh="nuxt-app",nu=36e5,kv="vite:preloadError";function _h(e=vh){return Cv(e,{asyncContext:!1})}const Ev="__nuxt_plugin";function Av(e){let t=0;const n={_id:e.id||vh||"nuxt-app",_scope:Bg(),provide:void 0,versions:{get nuxt(){return"4.2.1"},get vue(){return n.vueApp.version}},payload:Dn({...e.ssrContext?.payload||{},data:Dn({}),state:mn({}),once:new Set,_errors:Dn({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!gl()?n._scope.run(()=>ru(n,s)):ru(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Dn({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const o in s)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],s[o]);break;default:n.payload[o]=s[o]}}n.hooks=yh(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const i="$"+s;qs(n,i,o),qs(n.vueApp.config.globalProperties,i,o)},qs(n.vueApp,"$nuxt",n),qs(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(kv,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=Le;const s=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function Tv(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function $v(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 Rv(e,t){const n=new Set,r=[],s=[];let o,i=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=$v(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,d])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(i++,await a(d)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;o||=f});l.parallel?s.push(c):await c}}for(const l of t)Tv(e,l);for(const l of t)await a(l);if(await Promise.all(s),i)for(let l=0;l<i;l++)await Promise.all(s);if(o)throw e.payload.error||o}function Lt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Ev]:!0,_name:t})}function ru(e,t,n){const r=()=>t();return _h(e._id).set(e),e.vueApp.runWithContext(r)}function Pv(e){let t;return Sl()&&(t=_n()?.appContext.app.$nuxt),t||=_h(e).tryUse(),t||null}function Le(e){const t=Pv(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Ar(e){return Le().$config}function qs(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Nv(e,t){return{ctx:{table:e},matchAll:n=>Ch(n,e)}}function wh(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,wh(s)])):new Map(Object.entries(e[n]));return t}function Iv(e){return Nv(wh(e))}function Ch(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of su(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of su(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...Ch(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function su(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function qi(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 Ia(e,t,n=".",r){if(!qi(t))return Ia(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]]:qi(i)&&qi(s[o])?s[o]=Ia(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function Lv(e){return(...t)=>t.reduce((n,r)=>Ia(n,r,"",e),{})}const Ov=Lv();function Mv(e,t){try{return t in e}catch{return!1}}class ou extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:La(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=xh(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function Dv(e){if(typeof e=="string")return new ou(e);if(Fv(e))return e;const t=new ou(e.message??e.statusMessage??"",{cause:e.cause||e});if(Mv(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=La(e.statusCode,t.statusCode):e.status&&(t.statusCode=La(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;xh(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 Fv(e){return e?.constructor?.__h3_error__===!0}const Bv=/[^\u0009\u0020-\u007E]/g;function xh(e=""){return e.replace(Bv,"")}function La(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Sh=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Nt=()=>Le()?.$router,kh=()=>Sl()?mr(Sh,Le()._route):Le()._route;const Hv=()=>{try{if(Le()._processingMiddleware)return!0}catch{return!1}return!1},Eh=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?Oa(e):Nt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=[];for(const[f,d]of Object.entries(u))d!==void 0&&c.push(`${f.toLowerCase()}=${d}`);return open(n,l,c.join(", ")),Promise.resolve()}const r=wn(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&Ub(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=Hv();if(!s&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=Il(e);return{path:l,...u&&{query:Ps(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=Nt(),a=Le();return s?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?i.replace(e):i.push(e)};function Oa(e){return ch(e.path||"",e.query||{})+(e.hash||"")}const Ah="__nuxt_error",Ml=()=>id(Le().payload,"error"),jv=e=>{const t=Dl(e);try{const n=Ml();Le().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},Uv=async(e={})=>{const t=Le(),n=Ml();t.callHook("app:error:cleared",e),e.redirect&&await Nt().replace(e.redirect),n.value=void 0},Gv=e=>!!e&&typeof e=="object"&&Ah in e,Dl=e=>{const t=Dv(e);return Object.defineProperty(t,Ah,{value:!0,configurable:!1,writable:!1}),t};function Wv(e){const t=zv(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 Vv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function zv(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|=Vv.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 qv=-1,Kv=-2,Xv=-3,Jv=-4,Zv=-5,Yv=-6;function Qv(e,t){return e_(JSON.parse(e),t)}function e_(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===qv)return;if(o===Xv)return NaN;if(o===Jv)return 1/0;if(o===Zv)return-1/0;if(o===Yv)return-0;if(i||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const a=n[o];if(!a||typeof a!="object")r[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t?.[l];if(u){let c=a[1];return typeof c!="number"&&(c=n.push(a[1])-1),r[o]=u(s(c))}switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const c=new Set;r[o]=c;for(let h=1;h<a.length;h+=1)c.add(s(a[h]));break;case"Map":const f=new Map;r[o]=f;for(let h=1;h<a.length;h+=2)f.set(s(a[h]),s(a[h+1]));break;case"RegExp":r[o]=new RegExp(a[1],a[2]);break;case"Object":r[o]=Object(a[1]);break;case"BigInt":r[o]=BigInt(a[1]);break;case"null":const d=Object.create(null);r[o]=d;for(let h=1;h<a.length;h+=2)d[a[h]]=s(a[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[l],p=new h(s(a[1]));r[o]=a[2]!==void 0?p.subarray(a[2],a[3]):p;break}case"ArrayBuffer":{const h=a[1],p=Wv(h);r[o]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=l.slice(9);r[o]=Temporal[h].from(a[1]);break}case"URL":{const h=new URL(a[1]);r[o]=h;break}case"URLSearchParams":{const h=new URLSearchParams(a[1]);r[o]=h;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[o]=l;for(let u=0;u<a.length;u+=1){const c=a[u];c!==Kv&&(l[u]=s(c))}}else{const l={};r[o]=l;for(const u in a){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const c=a[u];l[u]=s(c)}}return r[o]}return s(0)}const t_=new Set(["link","style","script","noscript"]),n_=new Set(["title","titleTemplate","script","style","noscript"]),iu=new Set(["base","meta","link","style","script","noscript"]),r_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),s_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),o_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),i_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),a_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),l_=["name","property","http-equiv"],c_=new Set(["viewport","description","keywords","robots"]);function Th(e){const t=e.split(":");return t.length?a_.has(t[1]):!1}function Ma(e){const{props:t,tag:n}=e;if(s_.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 l_)if(t[r]!==void 0){const s=t[r],o=s.includes(":"),i=c_.has(s),l=!(o||i)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function au(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 Do(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=>Do(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=Do(s[i],t,i);return o}return s}function u_(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 $h(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=u_(n,r);return}if(o_.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-");s==="true"||s===""?e.props[n]=o?s:!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function f_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=$h({tag:e,props:{}},n);return r.key&&t_.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 d_(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=Do(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(f_(s,i))}),r.flat()}const lu=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,cu={base:-10,title:10},h_={critical:-8,high:-1,low:2},uu={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}},p_=/@import/,Hr=e=>e===""||e===!0;function g_(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=h_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:uu;if(t.tag in cu)n=cu[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=uu.meta[o])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?Hr(t.props.async)?n=s.script.async:t.props.src&&!Hr(t.props.defer)&&!Hr(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=s.script.sync:Hr(t.props.defer)&&t.props.src&&!Hr(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&p_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function fu(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 m_(e={}){const t=yh();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=new Set,i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>fu(i,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??i._entryCount++,f={_i:c,input:a,options:u},d={_poll(h=!1){i.dirty=!0,!h&&o.add(c),t.callHook("entries:updated",i)},dispose(){r.delete(c)&&i.invalidate()},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=h,r.set(c,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const d=o.values().next().value;o.delete(d);const h=r.get(d);if(h){const p={tags:d_(h.input,e.propResolvers||[]).map(g=>Object.assign(g,h.options)),entry:h};await t.callHook("entries:normalize",p),h._tags=p.tags.map((g,y)=>(g._w=g_(i,g),g._p=(h._i<<10)+y,g._d=Ma(g),g))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(lu).reduce((d,h)=>{const p=String(h._d||h._p);if(!d.has(p))return d.set(p,h);const g=d.get(p);if((h?.tagDuplicateStrategy||(i_.has(h.tag)?"merge":null)||(h.key&&h.key===g.key?"merge":null))==="merge"){const b={...g.props};Object.entries(h.props).forEach(([w,m])=>b[w]=w==="style"?new Map([...g.props.style||new Map,...m]):w==="class"?new Set([...g.props.class||new Set,...m]):m),d.set(p,{...h,props:b})}else h._p>>10===g._p>>10&&h.tag==="meta"&&Th(p)?(d.set(p,Object.assign([...Array.isArray(g)?g:[g],h],h)),l=!0):(h._w===g._w?h._p>g._p:h?._w<g?._w)&&d.set(p,h);return d},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(i._title=u?.textContent,c){const d=c?.textContent;if(i._titleTemplate=d,d){let h=typeof d=="function"?d(u?.textContent):d;typeof h=="string"&&!i.plugins.has("template-params")&&(h=h.replace("%s",u?.textContent||"")),u?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:h}):(c.tag="title",c.textContent=h)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(lu)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const d of a.tags){const{innerHTML:h,tag:p,props:g}=d;if(r_.has(p)&&!(Object.keys(g).length===0&&!d.innerHTML&&!d.textContent)&&!(p==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&h){if(g.type?.endsWith("json")){const y=typeof h=="string"?h:JSON.stringify(h);d.innerHTML=y.replace(/</g,"\\u003C")}else typeof h=="string"&&(d.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));d._d=Ma(d)}f.push(d)}}return f},invalidate(){for(const a of r.values())o.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>fu(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const y_=(e,t)=>Pe(t)?st(t):t,Rh="usehead";function b_(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Rh,e)}}.install}function v_(){if(Sl()){const e=mr(Rh);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 WA(e,t={}){const n=t.head||v_();return n.ssr?n.push(e||{},t):__(n,e,t)}function __(e,t,n={}){const r=ce(!1);let s;return $d(()=>{const i=r.value?{}:Do(t,y_);s?s.patch(i):s=e.push(i,n)}),_n()&&(gi(()=>{s.dispose()}),md(()=>{r.value=!0}),gd(()=>{r.value=!1})),s}let fo,ho;function w_(){return fo=$fetch(Ol(`builds/meta/${Ar().app.buildId}.json`),{responseType:"json"}),fo.then(e=>{ho=Iv(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),fo}function vi(){return fo||w_()}async function Fl(e){const t=typeof e=="string"?e:e.path;if(await vi(),!ho)return console.error("[nuxt] Error creating app manifest matcher.",ho),{};try{return Ov({},...ho.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function du(e,t={}){if(!await Nh(e))return null;const r=await x_(e,t);return await Ph(r)||null}const C_="_payload.json";async function x_(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||wn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=Ar(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await Nh(e)?o:r.app.baseURL;return Ns(i,n.pathname,C_+(s?`?${s}`:""))}async function Ph(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Ih));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Nh(e=kh().path){const t=Le();return e=e==="/"?e:e.replace(/\/$/,""),(await vi()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await Fl({path:e});return!!r.prerender&&!r.redirect})}let En=null;async function S_(){if(En)return En;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Ih(e.textContent||""),n=e.dataset.src?await Ph(e.dataset.src):void 0;return En={...t,...n,...window.__NUXT__},En.config?.public&&(En.config.public=mn(En.config.public)),En}async function Ih(e){return await Qv(e,Le()._payloadRevivers)}function k_(e,t){Le()._payloadRevivers[e]=t}const E_=[["NuxtError",e=>Dl(e)],["EmptyShallowRef",e=>Cr(e==="_"?void 0:e==="0n"?BigInt(0):No(e))],["EmptyRef",e=>ce(e==="_"?void 0:e==="0n"?BigInt(0):No(e))],["ShallowRef",e=>Cr(e)],["ShallowReactive",e=>Dn(e)],["Ref",e=>ce(e)],["Reactive",e=>mn(e)]],A_=Lt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of E_)k_(r,s);Object.assign(e.payload,([t,n]=bh(()=>e.runWithContext(S_)),t=await t,n(),t)),delete window.__NUXT__}});async function Bl(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const o=new Map,i=new Promise(h=>{e.resolveTags().then(p=>{h(p.map(g=>{const y=o.get(g._d)||0,b={tag:g,id:(y?`${g._d}:${y}`:g._d)||au(g),shouldRender:!0};return g._d&&Th(g._d)&&o.set(g._d,y+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const p=n[h]?.children;for(const g of p){const y=g.tagName.toLowerCase();if(!iu.has(y))continue;const b=$h({tag:y,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((w,m)=>(w[m]=g.getAttribute(m),w),{})||{}});if(b.key=g.getAttribute("data-hid")||void 0,b._d=Ma(b)||au(b),a.elMap.has(b._d)){let w=1,m=b._d;for(;a.elMap.has(m);)m=`${b._d}:${w++}`;a.elMap.set(m,g)}else a.elMap.set(b._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,p,g){const y=`${h}:${p}`;a.sideEffects[y]=g,delete a.pendingSideEffects[y]}function u({id:h,$el:p,tag:g}){const y=g.tag.endsWith("Attrs");a.elMap.set(h,p),y||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),l(h,"el",()=>{p?.remove(),a.elMap.delete(h)}));for(const b in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,b))continue;const w=g.props[b];if(b.startsWith("on")&&typeof w=="function"){const v=p?.dataset;if(v&&v[`${b}fired`]){const C=b.slice(0,-5);w.call(p,new Event(C.substring(2)))}p.getAttribute(`data-${b}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:p).addEventListener(b.substring(2),w.bind(p)),p.setAttribute(`data-${b}`,""));continue}const m=`attr:${b}`;if(b==="class"){if(!w)continue;for(const v of w)y&&l(h,`${m}:${v}`,()=>p.classList.remove(v)),!p.classList.contains(v)&&p.classList.add(v)}else if(b==="style"){if(!w)continue;for(const[v,C]of w)l(h,`${m}:${v}`,()=>{p.style.removeProperty(v)}),p.style.setProperty(v,C)}else w!==!1&&w!==null&&(p.getAttribute(b)!==w&&p.setAttribute(b,w===!0?"":String(w)),y&&l(h,m,()=>p.removeAttribute(b)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const h of d){const{tag:p,shouldRender:g,id:y}=h;if(g){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}h.$el=h.$el||a.elMap.get(y),h.$el?u(h):iu.has(p.tag)&&c.push(h)}}for(const h of c){const p=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),u(h),f[p]=f[p]||n.createDocumentFragment(),f[p].appendChild(h.$el)}for(const h of d)await e.hooks.callHook("dom:renderTag",h,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function T_(e={}){const t=e.domOptions?.render||Bl;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return m_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function $_(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function R_(e={}){const t=T_({domOptions:{render:$_(()=>Bl(t),n=>setTimeout(n,0))},...e});return t.install=b_(t),t}const P_={disableDefaults:!0},N_=Lt({name:"nuxt:head",enforce:"pre",setup(e){const t=R_(P_);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Bl(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)}}}),I_=async e=>{let t,n;const r=([t,n]=bh(()=>Fl({path:e.path})),t=await t,n(),t);if(r.redirect){const s=r.redirect.includes("#")?r.redirect:r.redirect+e.hash;return wn(s,{acceptRelative:!0})?(window.location.href=s,!1):s}},L_=[I_];function Ki(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=hh({pathname:e.path||"",search:lh(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:Ps(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const O_=Lt({name:"nuxt:router",enforce:"pre",setup(e){const t=Vb(window.location.pathname,Ar().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(f,d)=>(r[f].push(d),()=>r[f].splice(r[f].indexOf(d),1)),o=Ar().app.baseURL,i=mn(Ki(t));async function a(f,d){try{const h=Ki(f);for(const p of r["navigate:before"]){const g=await p(h,i);if(g===!1||g instanceof Error)return;if(typeof g=="string"&&g.length)return a(g,!0)}for(const p of r["resolve:before"])await p(h,i);Object.assign(i,h),window.history[d?"replaceState":"pushState"]({},"",Ns(o,h.fullPath)),e.isHydrating||await e.runWithContext(Uv);for(const p of r["navigate:after"])await p(h,i)}catch(h){for(const p of r.error)await p(h)}}const u={currentRoute:ke(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:f=>a(f,!1),replace:f=>a(f,!0),back:()=>window.history.go(-1),go:f=>window.history.go(f),forward:()=>window.history.go(1),beforeResolve:f=>s("resolve:before",f),beforeEach:f=>s("navigate:before",f),afterEach:f=>s("navigate:after",f),onError:f=>s("error",f),resolve:Ki,addRoute:(f,d)=>{n.push(d)},getRoutes:()=>n,hasRoute:f=>n.some(d=>d.name===f),removeRoute:f=>{const d=n.findIndex(h=>h.name===f);d!==-1&&n.splice(d,1)}};e.vueApp.component("RouterLink",je({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:d})=>{const h=()=>a(f.to,f.replace);return()=>{const p=u.resolve(f.to);return f.custom?d.default?.({href:f.to,navigate:h,route:p}):yn("a",{href:f.to,onClick:g=>(g.preventDefault(),h())},d)}}})),window.addEventListener("popstate",f=>{const d=f.target.location;u.replace(d.href.replace(d.origin,""))}),e._route=i,e._middleware||={global:[],named:{}};const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(f,d)=>{f.meta=mn(f.meta||{}),e.isHydrating&&c&&!Pt(f.meta.layout)&&(f.meta.layout=c),e._processingMiddleware=!0;{const h=new Set([...L_,...e._middleware.global]);{const p=await e.runWithContext(()=>Fl({path:f.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const y=e._middleware.named[g];if(!y)return;p.appMiddleware[g]?h.add(y):h.delete(y)}}for(const p of h){const g=await e.runWithContext(()=>p(f,d));if(g!==!0&&(g||g===!1))return g}}}),u.afterEach(()=>{delete e._processingMiddleware}),await u.replace(t),Kb(i.fullPath,t)||await e.runWithContext(()=>Eh(i.fullPath))}),{provide:{route:i,router:u}}}}),Da=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),M_=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),_i=e=>{const t=Le();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Da(()=>e())}):Da(()=>e())},D_=Lt({name:"nuxt:payload",setup(e){const t=new Set;Nt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await du(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]}}),_i(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await du(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(vi,1e3)})}}),F_=Lt(()=>{const e=Nt();_i(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),B_=Lt(e=>{let t;async function n(){let r;try{r=await vi()}catch(s){const o=s;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,nu);try{const s=await $fetch(Ol("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}_i(()=>{t=setTimeout(n,nu)})});function H_(e={}){const t=e.path||window.location.pathname;let n={};try{n=No(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Le().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const j_=Lt({name:"nuxt:chunk-reload",setup(e){const t=Nt(),n=Ar(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const i=Ns(n.app.baseURL,o.fullPath);H_({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),U_=Lt({name:"nuxt:global-components"}),G_=Lt(()=>{}),W_=["top","right","bottom","left"],hu=["start","end"],pu=W_.reduce((e,t)=>e.concat(t,t+"-"+hu[0],t+"-"+hu[1]),[]),ys=Math.min,Pn=Math.max,V_={left:"right",right:"left",bottom:"top",top:"bottom"},z_={start:"end",end:"start"};function Fa(e,t,n){return Pn(e,ys(t,n))}function Jn(e,t){return typeof e=="function"?e(t):e}function It(e){return e.split("-")[0]}function yt(e){return e.split("-")[1]}function Lh(e){return e==="x"?"y":"x"}function Hl(e){return e==="y"?"height":"width"}const q_=new Set(["top","bottom"]);function Gt(e){return q_.has(It(e))?"y":"x"}function jl(e){return Lh(Gt(e))}function Oh(e,t,n){n===void 0&&(n=!1);const r=yt(e),s=jl(e),o=Hl(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Bo(i)),[i,Bo(i)]}function K_(e){const t=Bo(e);return[Fo(e),t,Fo(t)]}function Fo(e){return e.replace(/start|end/g,t=>z_[t])}const gu=["left","right"],mu=["right","left"],X_=["top","bottom"],J_=["bottom","top"];function Z_(e,t,n){switch(e){case"top":case"bottom":return n?t?mu:gu:t?gu:mu;case"left":case"right":return t?X_:J_;default:return[]}}function Y_(e,t,n,r){const s=yt(e);let o=Z_(It(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Fo)))),o}function Bo(e){return e.replace(/left|right|bottom|top/g,t=>V_[t])}function Q_(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mh(e){return typeof e!="number"?Q_(e):{top:e,right:e,bottom:e,left:e}}function ts(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 yu(e,t,n){let{reference:r,floating:s}=e;const o=Gt(t),i=jl(t),a=Hl(i),l=It(t),u=o==="y",c=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,d=r[a]/2-s[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-s.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-s.width,y:f};break;default:h={x:r.x,y:r.y}}switch(yt(t)){case"start":h[i]-=d*(n&&u?-1:1);break;case"end":h[i]+=d*(n&&u?-1:1);break}return h}const ew=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=yu(u,r,l),d=r,h={},p=0;for(let g=0;g<a.length;g++){const{name:y,fn:b}=a[g],{x:w,y:m,data:v,reset:C}=await b({x:c,y:f,initialPlacement:r,placement:d,strategy:s,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});c=w??c,f=m??f,h={...h,[y]:{...h[y],...v}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:f}=yu(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:s,middlewareData:h}};async function wi(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Jn(t,e),p=Mh(h),y=a[d?f==="floating"?"reference":"floating":f],b=ts(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),w=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),v=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},C=ts(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:m,strategy:l}):w);return{top:(b.top-C.top+p.top)/v.y,bottom:(C.bottom-b.bottom+p.bottom)/v.y,left:(b.left-C.left+p.left)/v.x,right:(C.right-b.right+p.right)/v.x}}const tw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Jn(e,t)||{};if(u==null)return{};const f=Mh(c),d={x:n,y:r},h=jl(s),p=Hl(h),g=await i.getDimensions(u),y=h==="y",b=y?"top":"left",w=y?"bottom":"right",m=y?"clientHeight":"clientWidth",v=o.reference[p]+o.reference[h]-d[h]-o.floating[p],C=d[h]-o.reference[h],$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let D=$?$[m]:0;(!D||!await(i.isElement==null?void 0:i.isElement($)))&&(D=a.floating[m]||o.floating[p]);const U=v/2-C/2,R=D/2-g[p]/2-1,E=ys(f[b],R),B=ys(f[w],R),A=E,k=D-g[p]-B,S=D/2-g[p]/2+U,N=Fa(A,S,k),P=!l.arrow&&yt(s)!=null&&S!==N&&o.reference[p]/2-(S<A?E:B)-g[p]/2<0,W=P?S<A?S-A:S-k:0;return{[h]:d[h]+W,data:{[h]:N,centerOffset:S-N-W,...P&&{alignmentOffset:W}},reset:P}}});function nw(e,t,n){return(e?[...n.filter(s=>yt(s)===e),...n.filter(s=>yt(s)!==e)]:n.filter(s=>It(s)===s)).filter(s=>e?yt(s)===e||(t?Fo(s)!==s:!1):!0)}const rw=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,s;const{rects:o,middlewareData:i,placement:a,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:d=pu,autoAlignment:h=!0,...p}=Jn(e,t),g=f!==void 0||d===pu?nw(f||null,h,d):d,y=await wi(t,p),b=((n=i.autoPlacement)==null?void 0:n.index)||0,w=g[b];if(w==null)return{};const m=Oh(w,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==w)return{reset:{placement:g[0]}};const v=[y[It(w)],y[m[0]],y[m[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:w,overflows:v}],$=g[b+1];if($)return{data:{index:b+1,overflows:C},reset:{placement:$}};const D=C.map(E=>{const B=yt(E.placement);return[E.placement,B&&c?E.overflows.slice(0,2).reduce((A,k)=>A+k,0):E.overflows[0],E.overflows]}).sort((E,B)=>E[1]-B[1]),R=((s=D.filter(E=>E[2].slice(0,yt(E[0])?2:3).every(B=>B<=0))[0])==null?void 0:s[0])||D[0][0];return R!==a?{data:{index:b+1,overflows:C},reset:{placement:R}}:{}}}},sw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...y}=Jn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=It(s),w=Gt(a),m=It(a)===a,v=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=d||(m||!g?[Bo(a)]:K_(a)),$=p!=="none";!d&&$&&C.push(...Y_(a,g,p,v));const D=[a,...C],U=await wi(t,y),R=[];let E=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&R.push(U[b]),f){const S=Oh(s,i,v);R.push(U[S[0]],U[S[1]])}if(E=[...E,{placement:s,overflows:R}],!R.every(S=>S<=0)){var B,A;const S=(((B=o.flip)==null?void 0:B.index)||0)+1,N=D[S];if(N&&(!(f==="alignment"?w!==Gt(N):!1)||E.every(O=>Gt(O.placement)===w?O.overflows[0]>0:!0)))return{data:{index:S,overflows:E},reset:{placement:N}};let P=(A=E.filter(W=>W.overflows[0]<=0).sort((W,O)=>W.overflows[1]-O.overflows[1])[0])==null?void 0:A.placement;if(!P)switch(h){case"bestFit":{var k;const W=(k=E.filter(O=>{if($){const J=Gt(O.placement);return J===w||J==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(J=>J>0).reduce((J,be)=>J+be,0)]).sort((O,J)=>O[1]-J[1])[0])==null?void 0:k[0];W&&(P=W);break}case"initialPlacement":P=a;break}if(s!==P)return{reset:{placement:P}}}return{}}}},ow=new Set(["left","top"]);async function iw(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=It(n),a=yt(n),l=Gt(n)==="y",u=ow.has(i)?-1:1,c=o&&l?-1:1,f=Jn(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const aw=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 iw(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}}}}},lw=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:b,y:w}=y;return{x:b,y:w}}},...l}=Jn(e,t),u={x:n,y:r},c=await wi(t,l),f=Gt(It(s)),d=Lh(f);let h=u[d],p=u[f];if(o){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",w=h+c[y],m=h-c[b];h=Fa(w,h,m)}if(i){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",w=p+c[y],m=p-c[b];p=Fa(w,p,m)}const g=a.fn({...t,[d]:h,[f]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:o,[f]:i}}}}}},cw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...u}=Jn(e,t),c=await wi(t,u),f=It(s),d=yt(s),h=Gt(s)==="y",{width:p,height:g}=o.floating;let y,b;f==="top"||f==="bottom"?(y=f,b=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,y=d==="end"?"top":"bottom");const w=g-c.top-c.bottom,m=p-c.left-c.right,v=ys(g-c[y],w),C=ys(p-c[b],m),$=!t.middlewareData.shift;let D=v,U=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(U=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=w),$&&!d){const E=Pn(c.left,0),B=Pn(c.right,0),A=Pn(c.top,0),k=Pn(c.bottom,0);h?U=p-2*(E!==0||B!==0?E+B:Pn(c.left,c.right)):D=g-2*(A!==0||k!==0?A+k:Pn(c.top,c.bottom))}await l({...t,availableWidth:U,availableHeight:D});const R=await i.getDimensions(a.floating);return p!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function ut(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $t(e){return ut(e).getComputedStyle(e)}const bu=Math.min,ns=Math.max,Ho=Math.round;function Dh(e){const t=$t(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=Ho(n)!==s||Ho(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function bn(e){return Bh(e)?(e.nodeName||"").toLowerCase():""}let Ks;function Fh(){if(Ks)return Ks;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ks=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Ks):navigator.userAgent}function Rt(e){return e instanceof ut(e).HTMLElement}function hn(e){return e instanceof ut(e).Element}function Bh(e){return e instanceof ut(e).Node}function vu(e){return typeof ShadowRoot>"u"?!1:e instanceof ut(e).ShadowRoot||e instanceof ShadowRoot}function Ci(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=$t(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function uw(e){return["table","td","th"].includes(bn(e))}function Ba(e){const t=/firefox/i.test(Fh()),n=$t(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 Hh(){return!/^((?!chrome|android).)*safari/i.test(Fh())}function Ul(e){return["html","body","#document"].includes(bn(e))}function jh(e){return hn(e)?e:e.contextElement}const Uh={x:1,y:1};function br(e){const t=jh(e);if(!Rt(t))return Uh;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Dh(t);let i=(o?Ho(n.width):n.width)/r,a=(o?Ho(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function bs(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=jh(e);let l=Uh;t&&(r?hn(r)&&(l=br(r)):l=br(e));const u=a?ut(a):window,c=!Hh()&&n;let f=(i.left+(c&&((s=u.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,d=(i.top+(c&&((o=u.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,h=i.width/l.x,p=i.height/l.y;if(a){const g=ut(a),y=r&&hn(r)?ut(r):r;let b=g.frameElement;for(;b&&r&&y!==g;){const w=br(b),m=b.getBoundingClientRect(),v=getComputedStyle(b);m.x+=(b.clientLeft+parseFloat(v.paddingLeft))*w.x,m.y+=(b.clientTop+parseFloat(v.paddingTop))*w.y,f*=w.x,d*=w.y,h*=w.x,p*=w.y,f+=m.x,d+=m.y,b=ut(b).frameElement}}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function pn(e){return((Bh(e)?e.ownerDocument:e.document)||window.document).documentElement}function xi(e){return hn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Gh(e){return bs(pn(e)).left+xi(e).scrollLeft}function vs(e){if(bn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vu(e)&&e.host||pn(e);return vu(t)?t.host:t}function Wh(e){const t=vs(e);return Ul(t)?t.ownerDocument.body:Rt(t)&&Ci(t)?t:Wh(t)}function jo(e,t){var n;t===void 0&&(t=[]);const r=Wh(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=ut(r);return s?t.concat(o,o.visualViewport||[],Ci(r)?r:[]):t.concat(r,jo(r))}function _u(e,t,n){return t==="viewport"?ts((function(r,s){const o=ut(r),i=pn(r),a=o.visualViewport;let l=i.clientWidth,u=i.clientHeight,c=0,f=0;if(a){l=a.width,u=a.height;const d=Hh();(d||!d&&s==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:l,height:u,x:c,y:f}})(e,n)):hn(t)?ts((function(r,s){const o=bs(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=Rt(r)?br(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)):ts((function(r){const s=pn(r),o=xi(r),i=r.ownerDocument.body,a=ns(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=ns(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let u=-o.scrollLeft+Gh(r);const c=-o.scrollTop;return $t(i).direction==="rtl"&&(u+=ns(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:c}})(pn(e)))}function wu(e){return Rt(e)&&$t(e).position!=="fixed"?e.offsetParent:null}function Cu(e){const t=ut(e);let n=wu(e);for(;n&&uw(n)&&$t(n).position==="static";)n=wu(n);return n&&(bn(n)==="html"||bn(n)==="body"&&$t(n).position==="static"&&!Ba(n))?t:n||(function(r){let s=vs(r);for(;Rt(s)&&!Ul(s);){if(Ba(s))return s;s=vs(s)}return null})(e)||t}function fw(e,t,n){const r=Rt(t),s=pn(t),o=bs(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((bn(t)!=="body"||Ci(s))&&(i=xi(t)),Rt(t)){const l=bs(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Gh(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const dw={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=n==="clippingAncestors"?(function(u,c){const f=c.get(u);if(f)return f;let d=jo(u).filter((y=>hn(y)&&bn(y)!=="body")),h=null;const p=$t(u).position==="fixed";let g=p?vs(u):u;for(;hn(g)&&!Ul(g);){const y=$t(g),b=Ba(g);(p?b||h:b||y.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=y:d=d.filter((w=>w!==g)),g=vs(g)}return c.set(u,d),d})(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce(((u,c)=>{const f=_u(t,c,s);return u.top=ns(f.top,u.top),u.right=bu(f.right,u.right),u.bottom=bu(f.bottom,u.bottom),u.left=ns(f.left,u.left),u}),_u(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=Rt(n),o=pn(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")&&((bn(n)!=="body"||Ci(o))&&(i=xi(n)),Rt(n))){const u=bs(n);a=br(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-i.scrollLeft*a.x+l.x,y:t.y*a.y-i.scrollTop*a.y+l.y}},isElement:hn,getDimensions:function(e){return Rt(e)?Dh(e):e.getBoundingClientRect()},getOffsetParent:Cu,getDocumentElement:pn,getScale:br,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||Cu,o=this.getDimensions;return{reference:fw(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>$t(e).direction==="rtl"},hw=(e,t,n)=>{const r=new Map,s={platform:dw,...n},o={...s.platform,_c:r};return ew(e,t,{...s,platform:o})};function Vh(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Vh(e[n],t[n]):e[n]=t[n])}const bt={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 _s(e,t){let n=bt.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=bt.themes[n.$extend]||{}:(n=null,r=bt[t]):n=null;while(n);return r}function pw(e){const t=[e];let n=bt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=bt.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function xu(e){const t=[e];let n=bt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=bt.themes[n.$extend]||{}):n=null;while(n);return t}let Tr=!1;if(typeof window<"u"){Tr=!1;try{const e=Object.defineProperty({},"passive",{get(){Tr=!0}});window.addEventListener("test",null,e)}catch{}}let zh=!1;typeof window<"u"&&typeof navigator<"u"&&(zh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const qh=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Su={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},ku={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Eu(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Xi(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const pt=[];let An=null;const Au={};function Tu(e){let t=Au[e];return t||(t=Au[e]=[]),t}let Ha=function(){};typeof window<"u"&&(Ha=window.Element);function le(e){return function(t){return _s(t.theme,e)}}const Ji="__floating-vue__popper",Kh=()=>je({name:"VPopper",provide(){return{[Ji]:{parentPopper:this}}},inject:{[Ji]:{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=>qh.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,Ha,Boolean],default:le("container")},boundary:{type:[String,Ha],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[Ji])==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(aw({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(rw({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(lw({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(sw({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(tw({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:s,middlewareData:o})=>{let i;const{centerOffset:a}=o.arrow;return r.startsWith("top")||r.startsWith("bottom")?i=Math.abs(a)>s.reference.width/2:i=Math.abs(a)>s.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:o,middlewareData:i})=>{var a;if((a=i.autoSize)!=null&&a.skip)return{};let l,u;return o.startsWith("top")||o.startsWith("bottom")?l=s.reference.width:u=s.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(cw({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 hw(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),An&&this.instantMove&&An.instantMove&&An!==this.parentPopper){An.$_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&&(An=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 Xi(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...jo(this.$_referenceNode),...jo(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(r.left+n.offsetLeft),o=t.y+t.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${s}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<pt.length;n++)t=pt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}pt.push(this),document.body.classList.add("v-popper--some-open");for(const t of xu(this.theme))Tu(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 Xi(),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,Eu(pt,this),pt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of xu(this.theme)){const r=Tu(n);Eu(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}An===this&&(An=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 Xi(),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,Su,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Su,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,ku,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ku,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,Tr?{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(rs>=e.left&&rs<=e.right&&ss>=e.top&&ss<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=rs-rn,r=ss-sn,s=t.left+t.width/2-rn+(t.top+t.height/2)-sn+t.width+t.height,o=rn+n*s,i=sn+r*s;return Xs(rn,sn,o,i,t.left,t.top,t.left,t.bottom)||Xs(rn,sn,o,i,t.left,t.top,t.right,t.top)||Xs(rn,sn,o,i,t.right,t.top,t.right,t.bottom)||Xs(rn,sn,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(zh){const e=Tr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>$u(t,!0),e),document.addEventListener("touchend",t=>Ru(t,!0),e)}else window.addEventListener("mousedown",e=>$u(e,!1),!0),window.addEventListener("click",e=>Ru(e,!1),!0);window.addEventListener("resize",mw)}function $u(e,t){if(bt.autoHideOnMousedown)Xh(e,t);else for(let n=0;n<pt.length;n++){const r=pt[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Ru(e,t){bt.autoHideOnMousedown||Xh(e,t)}function Xh(e,t){const n={};for(let r=pt.length-1;r>=0;r--){const s=pt[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Pu(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&&Pu(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Pu(e,t,n){return n.closeAllPopover||n.closePopover&&t||gw(e,n)&&!t}function gw(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function mw(){for(let e=0;e<pt.length;e++)pt[e].$_computePosition()}let rn=0,sn=0,rs=0,ss=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{rn=rs,sn=ss,rs=e.clientX,ss=e.clientY},Tr?{passive:!0}:void 0);function Xs(e,t,n,r,s,o,i,a){const l=((i-s)*(t-o)-(a-o)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t)),u=((n-e)*(t-o)-(r-t)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t));return l>=0&&l<=1&&u>=0&&u<=1}const yw={extends:Kh()},Si=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function bw(e,t,n,r,s,o){return G(),Z("div",{ref:"reference",class:Te(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Re(e.$slots,"default",Bf($l(e.slotData)))],2)}const vw=Si(yw,[["render",bw]]);function _w(){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 po;function ja(){ja.init||(ja.init=!0,po=_w()!==-1)}var ki={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ja(),Kn(()=>{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",po&&this.$el.appendChild(e),e.data="about:blank",po||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&&(!po&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ww=Cm();_m("data-v-b329ee4c");const Cw={class:"resize-observer",tabindex:"-1"};wm();const xw=ww((e,t,n,r,s,o)=>(G(),me("div",Cw)));ki.render=xw;ki.__scopeId="data-v-b329ee4c";ki.__file="src/components/ResizeObserver.vue";const Jh=(e="theme")=>({computed:{themeClass(){return pw(this[e])}}}),Sw=je({name:"VPopperContent",components:{ResizeObserver:ki},mixins:[Jh()],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}}}),kw=["id","aria-hidden","tabindex","data-popper-placement"],Ew={ref:"inner",class:"v-popper__inner"},Aw=F("div",{class:"v-popper__arrow-outer"},null,-1),Tw=F("div",{class:"v-popper__arrow-inner"},null,-1),$w=[Aw,Tw];function Rw(e,t,n,r,s,o){const i=Jt("ResizeObserver");return G(),Z("div",{id:e.popperId,ref:"popover",class:Te(["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:Vt(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]=gb(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[F("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),F("div",{class:"v-popper__wrapper",style:Vt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[F("div",Ew,[e.mounted?(G(),Z(ge,{key:0},[F("div",null,[Re(e.$slots,"default")]),e.handleResize?(G(),me(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Ee("",!0)],64)):Ee("",!0)],512),F("div",{ref:"arrow",class:"v-popper__arrow-container",style:Vt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},$w,4)],4)],46,kw)}const Zh=Si(Sw,[["render",Rw]]),Yh={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 Ua=function(){};typeof window<"u"&&(Ua=window.Element);const Pw=je({name:"VPopperWrapper",components:{Popper:vw,PopperContent:Zh},mixins:[Yh,Jh("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,Ua,Boolean],default:void 0},boundary:{type:[String,Ua],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 Nw(e,t,n,r,s,o){const i=Jt("PopperContent"),a=Jt("Popper");return G(),me(a,Xn({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:re(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,show:h,hide:p,handleResize:g,onResize:y,classes:b,result:w})=>[Re(e.$slots,"default",{shown:u,show:h,hide:p}),K(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:c,"skip-transition":f,"auto-hide":d,"handle-resize":g,classes:b,result:w,onHide:p,onResize:y},{default:re(()=>[Re(e.$slots,"popper",{shown:u,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Gl=Si(Pw,[["render",Nw]]),Iw={...Gl,name:"VDropdown",vPopperTheme:"dropdown"},Lw={...Gl,name:"VMenu",vPopperTheme:"menu"},Ow={...Gl,name:"VTooltip",vPopperTheme:"tooltip"},Mw=je({name:"VTooltipDirective",components:{Popper:Kh(),PopperContent:Zh},mixins:[Yh],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>_s(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>_s(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}}}),Dw=["innerHTML"],Fw=["textContent"];function Bw(e,t,n,r,s,o){const i=Jt("PopperContent"),a=Jt("Popper");return G(),me(a,Xn({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:re(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,hide:h,handleResize:p,onResize:g,classes:y,result:b})=>[K(i,{ref:"popperContent",class:Te({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:u,mounted:c,"skip-transition":f,"auto-hide":d,"handle-resize":p,classes:y,result:b,onHide:h,onResize:g},{default:re(()=>[e.html?(G(),Z("div",{key:0,innerHTML:e.finalContent},null,8,Dw)):(G(),Z("div",{key:1,textContent:Se(e.finalContent)},null,8,Fw))]),_: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 Hw=Si(Mw,[["render",Bw]]),Qh="v-popper--has-tooltip";function jw(e,t){let n=e.placement;if(!n&&t)for(const r of qh)t[r]&&(n=r);return n||(n=_s(e.theme||"tooltip","placement")),n}function ep(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=jw(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let Zi,ws,Uw=0;function Gw(){if(Zi)return;ws=ce([]),Zi=oh({name:"VTooltipDirectiveApp",setup(){return{directives:ws}},render(){return this.directives.map(t=>yn(Hw,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Zi.mount(e)}function Ww(e,t,n){Gw();const r=ce(ep(e,t,n)),s=ce(!1),o={id:Uw++,options:r,shown:s};return ws.value.push(o),e.classList&&e.classList.add(Qh),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function tp(e){if(e.$_popper){const t=ws.value.indexOf(e.$_popper.item);t!==-1&&ws.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Qh)}function Nu(e,{value:t,modifiers:n}){const r=ep(e,t,n);if(!r.content||_s(r.theme||"tooltip","disabled"))tp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=Ww(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Vw={beforeMount:Nu,updated:Nu,beforeUnmount(e){tp(e)}};function Iu(e){e.addEventListener("mousedown",Uo),e.addEventListener("click",Uo),e.addEventListener("touchstart",np,Tr?{passive:!0}:!1)}function Lu(e){e.removeEventListener("mousedown",Uo),e.removeEventListener("click",Uo),e.removeEventListener("touchstart",np),e.removeEventListener("touchend",rp),e.removeEventListener("touchcancel",sp)}function Uo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function np(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",rp),t.addEventListener("touchcancel",sp)}}function rp(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 sp(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const zw={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Iu(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?Iu(e):Lu(e))},beforeUnmount(e){Lu(e)}};function qw(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Vh(bt,t),e.directive("tooltip",Vw),e.directive("close-popper",zw),e.component("VTooltip",Ow),e.component("VDropdown",Iw),e.component("VMenu",Lw))}const Kw={version:"5.2.2",install:qw,options:bt},Xw=Lt(e=>{e.vueApp.use(Kw)}),Jw=[A_,N_,O_,D_,F_,B_,j_,U_,G_,Xw],Is={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(G(),Z("div",{class:Te(["n-icon",e.icon])},null,2))}},Ls=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Zw={},Yw={class:"n-badge"};function Qw(e,t){return G(),Z("span",Yw,[Re(e.$slots,"default")])}const e0=Object.assign(Ls(Zw,[["render",Qw]]),{__name:"NBadge"});async function op(e,t=Nt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>op(e,t));t._routePreloaded.add(n);for(const o of r){const i=o.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}const t0=(...e)=>e.find(t=>t!==void 0);function n0(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i,a){const l=a??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return Js(o,l);const u="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:Js(u,l)}}function s(o){const i=Nt(),a=Ar(),l=ke(()=>!!o.target&&o.target!=="_self"),u=ke(()=>{const y=o.to||o.href||"";return typeof y=="string"&&wn(y,{acceptRelative:!0})}),c=Jt("RouterLink"),f=c&&typeof c!="string"?c.useLink:void 0,d=ke(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||u.value}),h=ke(()=>{const y=o.to||o.href||"";return d.value?y:r(y,i.resolve,o.trailingSlash)}),p=d.value?void 0:f?.({...o,to:h}),g=ke(()=>{const y=o.trailingSlash??e.trailingSlash;if(!h.value||u.value||n(h.value))return h.value;if(d.value){const b=typeof h.value=="object"&&"path"in h.value?Oa(h.value):h.value,w=typeof b=="object"?i.resolve(b).href:b;return Js(w,y)}return typeof h.value=="object"?i.resolve(h.value)?.href??null:Js(Ns(a.app.baseURL,h.value),y)});return{to:h,hasTarget:l,isAbsoluteUrl:u,isExternal:d,href:g,isActive:p?.isActive??ke(()=>h.value===i.currentRoute.value.path),isExactActive:p?.isExactActive??ke(()=>h.value===i.currentRoute.value.path),route:p?.route??ke(()=>i.resolve(h.value)),async navigate(y){await Eh(g.value,{replace:o.replace,external:d.value||l.value})}}}return je({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const a=Nt(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=s(o),p=Cr(!1),g=ce(null),y=m=>{g.value=o.custom?m?.$el?.nextElementSibling:m?.$el};function b(m){return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:o.prefetchOn?.[m]??e.prefetchOn?.[m])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!o0()}async function w(m=Le()){if(p.value)return;p.value=!0;const v=typeof l.value=="string"?l.value:f.value?Oa(l.value):a.resolve(l.value).fullPath,C=f.value?new URL(v,window.location.href).href:v;await Promise.all([m.hooks.callHook("link:prefetch",C).catch(()=>{}),!f.value&&!d.value&&op(l.value,a).catch(()=>{})])}if(b("visibility")){const m=Le();let v,C=null;pi(()=>{const $=r0();_i(()=>{v=Da(()=>{g?.value?.tagName&&(C=$.observe(g.value,async()=>{C?.(),C=null,await w(m)}))})})}),gi(()=>{v&&M_(v),C?.(),C=null})}return()=>{if(!f.value&&!d.value&&!n(l.value)){const C={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||(b("interaction")&&(C.onPointerenter=w.bind(null,void 0),C.onFocus=w.bind(null,void 0)),p.value&&(C.class=o.prefetchedClass||e.prefetchedClass),C.rel=o.rel||void 0),yn(Jt("RouterLink"),C,i.default)}const m=o.target||null,v=t0(o.noRel?"":o.rel,e.externalRelAttribute,h.value||d.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:u.value,navigate:c,prefetch:w,get route(){if(!u.value)return;const C=new URL(u.value,window.location.href);return{path:C.pathname,fullPath:C.pathname,get query(){return Ps(C.search)},hash:C.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:v,target:m,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:yn("a",{ref:g,href:u.value||null,rel:v,target:m,onClick:C=>{if(!(f.value||d.value))return C.preventDefault(),o.replace?a.replace(u.value):a.push(u.value)}},i.default?.())}}})}const ip=n0(xv);function Js(e,t){const n=t==="append"?Lo:Nl;return wn(e)&&!e.startsWith("http")?e:n(e,!0)}function r0(){const e=Le();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(o,i),t.observe(o),()=>{n.delete(o),t?.unobserve(o),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const s0=/2g/;function o0(){const e=navigator.connection;return!!(e&&(e.saveData||s0.test(e.effectiveType)))}const i0={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},Wl={__name:"NLink",props:{to:{type:String,required:!1},href:{type:String,required:!1},target:{type:String,required:!1},underline:{type:Boolean,required:!1}},setup(e){const t=e,n=ke(()=>t.href||t.to);return(r,s)=>{const o=ip;return G(),me(o,Xn(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":void 0}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:re(()=>[Re(r.$slots,"default"),n.value&&e.target==="_blank"?(G(),Z("div",i0)):Ee("",!0)]),_:3},16,["class"])}}},a0={},l0={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c0(e,t){return G(),Z("svg",l0,[...t[0]||(t[0]=[xy('<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 u0=Object.assign(Ls(a0,[["render",c0]]),{__name:"NuxtSeoLogo"}),f0={},d0={class:"n-loading n-panel-grids-center"},h0={class:"flex flex-col animate-pulse items-center text-lg"};function p0(e,t){return G(),Z("div",d0,[F("div",h0,[t[1]||(t[1]=F("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),Re(e.$slots,"default",{},()=>[t[0]||(t[0]=ue(" Loading... ",-1))])])])}const g0=Object.assign(Ls(f0,[["render",p0]]),{__name:"NLoading"}),ap=je({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()=>yn(e.to?ip:"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(" ")},{default:()=>[Re(n,"icon",{},()=>e.icon?[yn(Is,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),Re(n,"default")]})}}),m0="modulepreload",y0=function(e,t){return new URL(e,t).href},Ou={},In=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=u(n.map(c=>{if(c=y0(c,r),c in Ou)return;Ou[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let p=i.length-1;p>=0;p--){const g=i[p];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":m0,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let De=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function b0(e){return Vl(e)}function Vl(e){return Array.isArray(e)?v0(e):e instanceof RegExp?e:typeof e=="object"?_0(e):e}function v0(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Vl(e[n]);return t}function _0(e){let t={};for(let n in e)t[n]=Vl(e[n]);return t}function lp(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function cp(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?cp(e.substring(0,e.length-1)):e.substr(~t+1)}var Yi=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Zs=class{static hasCaptures(e){return e===null?!1:(Yi.lastIndex=0,Yi.test(e))}static replaceCaptures(e,t,n){return e.replace(Yi,(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 up(e,t){return e<t?-1:e>t?1:0}function fp(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=up(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Mu(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 dp(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var hp=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Go=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(x0(e),t)}static createFromParsedTheme(e,t){return k0(e,t)}_cachedMatchRoot=new hp(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(s=>w0(e.parent,s.parentScopes));return r?new pp(r.fontStyle,r.foreground,r.background):null}},Qi=class go{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new go(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new go(n,t[r]);return n}push(t){return new go(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 w0(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&&!C0(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function C0(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var pp=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function x0(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let s=0,o=t.length;s<o;s++){let i=t[s];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let f=i.settings.fontStyle.split(" ");for(let d=0,h=f.length;d<h;d++)switch(f[d]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof i.settings.foreground=="string"&&Mu(i.settings.foreground)&&(u=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&Mu(i.settings.background)&&(c=i.settings.background);for(let f=0,d=a.length;f<d;f++){let p=a[f].trim().split(" "),g=p[p.length-1],y=null;p.length>1&&(y=p.slice(0,p.length-1),y.reverse()),n[r++]=new S0(g,y,s,l,u,c)}}return n}var S0=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}},qe=(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))(qe||{});function k0(e,t){e.sort((l,u)=>{let c=up(l.scope,u.scope);return c!==0||(c=fp(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let n=0,r="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let o=new E0(t),i=new pp(n,o.getId(r),o.getId(s)),a=new T0(new Ga(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];a.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new Go(o,i,a)}var E0=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},A0=Object.freeze([]),Ga=class gp{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,s,o){this.scopeDepth=t,this.parentScopes=n||A0,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new gp(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)}},T0=class Wa{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,s=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),s,o;if(r===-1?(s=t,o=""):(s=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Wa._cmpBySpecificity),n}insert(t,n,r,s,o,i){if(n===""){this._doInsertHere(t,r,s,o,i);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new Wa(this._mainRule.clone(),Ga.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,r,s,o,i)}_doInsertHere(t,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(t,r,s,o);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let l=this._rulesWithParentScopes[i];if(fp(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 Ga(t,n,r,s,o))}},$r=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),u=at.getTokenType(t),c=at.containsBalancedBrackets(t)?1:0,f=at.getFontStyle(t),d=at.getForeground(t),h=at.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),s!==null&&(c=s?1:0),o!==-1&&(f=o),i!==0&&(d=i),a!==0&&(h=a),(l<<0|u<<8|c<<10|f<<11|d<<15|h<<24)>>>0}};function Wo(e,t){const n=[],r=$0(e);let s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let u=i();if(n.push({matcher:u,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return u=>!!l&&!l(u)}if(s==="("){s=r.next();const l=a();return s===")"&&(s=r.next()),l}if(Du(s)){const l=[];do l.push(s),s=r.next();while(Du(s));return u=>t(l,u)}return null}function i(){const l=[];let u=o();for(;u;)l.push(u),u=o();return c=>l.every(f=>f(c))}function a(){const l=[];let u=i();for(;u&&(l.push(u),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");u=i()}return c=>l.some(f=>f(c))}}function Du(e){return!!e&&!!e.match(/[\w\.:]+/)}function $0(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 mp(e){typeof e.dispose=="function"&&e.dispose()}var Cs=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},R0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},P0=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},N0=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Cs(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new P0;for(const n of e)I0(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Cs){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 I0(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 Cs?mo({baseGrammar:o,selfGrammar:s},r):Va(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 Cs(a))}function Va(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Vo([r],t,n)}}function mo(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Vo(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Vo(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Vo(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?lp({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Vo(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=yp(o);switch(i.kind){case 0:mo({...t,selfGrammar:t.baseGrammar},n);break;case 1:mo(t,n);break;case 2:Va(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?Va(i.ruleName,l,n):mo(l,n)}else i.kind===4?n.add(new R0(i.scopeName,i.ruleName)):n.add(new Cs(i.scopeName));break}}}var L0=class{kind=0},O0=class{kind=1},M0=class{constructor(e){this.ruleName=e}kind=2},D0=class{constructor(e){this.scopeName=e}kind=3},F0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function yp(e){if(e==="$base")return new L0;if(e==="$self")return new O0;const t=e.indexOf("#");if(t===-1)return new D0(e);if(t===0)return new M0(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new F0(n,r)}}var B0=/\\(\d+)/,Fu=/\\(\d+)/g,H0=-1,bp=-2;var Os=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Zs.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Zs.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${cp(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:Zs.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Zs.replaceCaptures(this._contentName,e,t)}},j0=class extends Os{retokenizeCapturedWithRuleId;constructor(e,t,n,r,s){super(e,t,n,r),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},U0=class extends Os{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,null),this._match=new xs(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ss,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Bu=class extends Os{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,r),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ss,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},za=class extends Os{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s,o,i,a,l,u){super(e,t,n,r),this._begin=new xs(s,this.id),this.beginCaptures=o,this._end=new xs(i||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ss;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},zo=class extends Os{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,s,o,i,a,l){super(e,t,n,r),this._begin=new xs(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new xs(i,bp),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ss;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ss,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},vp=class Ge{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new j0(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new U0(t.$vscodeTextmateLocation,t.id,t.name,t.match,Ge._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=lp({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Bu(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Ge._compilePatterns(o,n,r))}return t.while?new zo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ge._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Ge._compileCaptures(t.whileCaptures||t.captures,n,r),Ge._compilePatterns(t.patterns,n,r)):new za(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ge._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Ge._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Ge._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=Ge.getCompiledRuleId(t[i],n,r)),s[a]=Ge.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return s}static _compilePatterns(t,n,r){let s=[];if(t)for(let o=0,i=t.length;o<i;o++){const a=t[o];let l=-1;if(a.include){const u=yp(a.include);switch(u.kind){case 0:case 1:l=Ge.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=Ge.getCompiledRuleId(c,n,r));break;case 3:case 4:const f=u.scopeName,d=u.kind===4?u.ruleName:null,h=n.getExternalGrammar(f,r);if(h)if(d){let p=h.repository[d];p&&(l=Ge.getCompiledRuleId(p,n,h.repository))}else l=Ge.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=Ge.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Bu||u instanceof za||u instanceof zo)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},xs=class _p{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let s=0,o=[],i=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const u=t.charAt(a+1);u==="z"?(o.push(t.substring(s,a)),o.push("$(?!\\n)(?<!\\n)"),s=a+2):(u==="A"||u==="G")&&(i=!0),a++}this.hasAnchor=i,s===0?this.source=t:(o.push(t.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=B0.test(this.source):this.hasBackReferences=!1}clone(){return new _p(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 Fu.lastIndex=0,this.source.replace(Fu,(s,o)=>dp(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}},Ss=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Hu(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 Hu(e,r,this._items.map(s=>s.ruleId))}},Hu=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
5
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ea=class{constructor(e,t){this.languageId=e,this.tokenType=t}},G0=class qa{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new ea(t,8),this._embeddedLanguagesMatcher=new W0(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?qa._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ea(0,0);_getBasicScopeAttributes=new hp(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new ea(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(qa.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},W0=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>dp(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])}},ju=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function wp(e,t,n,r,s,o,i,a){const l=t.content.length;let u=!1,c=-1;if(i){const h=V0(e,t,n,r,s,o);s=h.stack,r=h.linePos,n=h.isFirstLine,c=h.anchorPosition}const f=Date.now();for(;!u;){if(a!==0&&Date.now()-f>a)return new ju(s,!0);d()}return new ju(s,!1);function d(){const h=z0(e,t,n,r,s,c);if(!h){o.produce(s,l),u=!0;return}const p=h.captureIndices,g=h.matchedRuleId,y=p&&p.length>0?p[0].end>r:!1;if(g===H0){const b=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),Vr(e,t,n,s,o,b.endCaptures,p),o.produce(s,p[0].end);const w=s;if(s=s.parent,c=w.getAnchorPos(),!y&&w.getEnterPos()===r){s=w,o.produce(s,l),u=!0;return}}else{const b=e.getRule(g);o.produce(s,p[0].start);const w=s,m=b.getName(t.content,p),v=s.contentNameScopesList.pushAttributed(m,e);if(s=s.push(g,r,c,p[0].end===l,null,v,v),b instanceof za){const C=b;Vr(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const $=C.getContentName(t.content,p),D=v.pushAttributed($,e);if(s=s.withContentNameScopesList(D),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!y&&w.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(b instanceof zo){const C=b;Vr(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const $=C.getContentName(t.content,p),D=v.pushAttributed($,e);if(s=s.withContentNameScopesList(D),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!y&&w.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(Vr(e,t,n,s,o,b.captures,p),o.produce(s,p[0].end),s=s.pop(),!y){s=s.safePop(),o.produce(s,l),u=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function V0(e,t,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const u=l.getRule(e);u instanceof zo&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=X0(l.rule,e,l.stack.endRule,n,r===i),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==bp){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),Vr(e,t,n,l.stack,o,l.rule.whileCaptures,f.captureIndices),o.produce(l.stack,f.captureIndices[0].end),i=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:i,isFirstLine:n}}function z0(e,t,n,r,s,o){const i=q0(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=K0(a,e,t,n,r,s,o);if(!l)return i;if(!i)return l;const u=i.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:i}function q0(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=Cp(i,e,s.endRule,n,r===o),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function K0(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,u,c=0;const f=o.contentNameScopesList.getScopeNames();for(let d=0,h=e.length;d<h;d++){const p=e[d];if(!p.matcher(f))continue;const g=t.getRule(p.ruleId),{ruleScanner:y,findOptions:b}=Cp(g,t,null,r,s===i),w=y.findNextMatchSync(n,s,b);if(!w)continue;const m=w.captureIndices[0].start;if(!(m>=a)&&(a=m,l=w.captureIndices,u=w.ruleId,c=p.priority,a===s))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function Cp(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function X0(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function Vr(e,t,n,r,s,o,i){if(o.length===0)return;const a=t.content,l=Math.min(o.length,i.length),u=[],c=i[0].end;for(let f=0;f<l;f++){const d=o[f];if(d===null)continue;const h=i[f];if(h.length===0)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?s.produceFromScopes(u[u.length-1].scopes,h.start):s.produce(r,h.start),d.retokenizeCapturedWithRuleId){const g=d.getName(a,i),y=r.contentNameScopesList.pushAttributed(g,e),b=d.getContentName(a,i),w=y.pushAttributed(b,e),m=r.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,y,w),v=e.createOnigString(a.substring(0,h.end));wp(e,v,n&&h.start===0,h.start,m,s,!1,0),mp(v);continue}const p=d.getName(a,i);if(p!==null){const y=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new J0(y,h.end))}}for(;u.length>0;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var J0=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Z0(e,t,n,r,s,o,i,a){return new Q0(e,t,n,r,s,o,i,a)}function Uu(e,t,n,r,s){const o=Wo(t,qo),i=vp.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 qo(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(Y0(t[s],r))return n=s+1,!0;return!1})}function Y0(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 Q0=class{constructor(e,t,n,r,s,o,i,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new G0(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=Gu(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const u=Wo(l,qo);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:s[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const s=r.injections;if(s)for(let i in s)Uu(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&&Uu(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]=Gu(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=vp.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===Ka.NULL){s=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=$r.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),d=this.getRule(this._rootId).getName(null,null);let h;d?h=os.createRootAndLookUpScopeName(d,f,this):h=os.createRoot("unknown",f),t=new Ka(null,this._rootId,-1,-1,!1,null,h,h)}else s=!1,t.reset();e=e+`
|
|
6
|
+
`;const o=this.createOnigString(e),i=o.content.length,a=new t1(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=wp(this,o,s,0,t,a,!0,r);return mp(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Gu(e,t){return e=b0(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 os=class kt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=t?.scopePath??null;for(const o of n)s=Qi.push(s,o.scopeNames),r=new kt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new kt(null,new Qi(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new Qi(null,t),i=r.themeProvider.themeMatch(o),a=kt.mergeAttributes(n,s,i);return new kt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return kt.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),$r.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return kt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=kt._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=kt.mergeAttributes(t.tokenAttributes,s,i);return new kt(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},Ka=class Nn{constructor(t,n,r,s,o,i,a,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}_stackElementBrand=void 0;static NULL=new Nn(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Nn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?os.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(){Nn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new Nn(this,t,n,r,s,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new Nn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=os.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new Nn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,os.fromExtension(r,n.contentNameScopesList))}},e1=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Wo(n,qo).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Wo(n,qo).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}},t1=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(o)&&(r=$r.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=$r.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},n1=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Z0(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},r1=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new n1(Go.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Go.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 e1(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new N0(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)}},Xa=Ka.NULL;const s1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ms{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ms.prototype.normal={};Ms.prototype.property={};Ms.prototype.space=void 0;function xp(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new Ms(n,r,t)}function Ja(e){return e.toLowerCase()}class Ye{constructor(t,n){this.attribute=n,this.property=t}}Ye.prototype.attribute="";Ye.prototype.booleanish=!1;Ye.prototype.boolean=!1;Ye.prototype.commaOrSpaceSeparated=!1;Ye.prototype.commaSeparated=!1;Ye.prototype.defined=!1;Ye.prototype.mustUseProperty=!1;Ye.prototype.number=!1;Ye.prototype.overloadedBoolean=!1;Ye.prototype.property="";Ye.prototype.spaceSeparated=!1;Ye.prototype.space=void 0;let o1=0;const oe=Zn(),$e=Zn(),Za=Zn(),j=Zn(),we=Zn(),vr=Zn(),tt=Zn();function Zn(){return 2**++o1}const Ya=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:$e,commaOrSpaceSeparated:tt,commaSeparated:vr,number:j,overloadedBoolean:Za,spaceSeparated:we},Symbol.toStringTag,{value:"Module"})),ta=Object.keys(Ya);class zl extends Ye{constructor(t,n,r,s){let o=-1;if(super(t,n),Wu(this,"space",s),typeof r=="number")for(;++o<ta.length;){const i=ta[o];Wu(this,ta[o],(r&Ya[i])===Ya[i])}}}zl.prototype.defined=!0;function Wu(e,t,n){n&&(e[t]=n)}function Nr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new zl(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ja(r)]=r,n[Ja(o.attribute)]=r}return new Ms(t,n,e.space)}const Sp=Nr({properties:{ariaActiveDescendant:null,ariaAtomic:$e,ariaAutoComplete:null,ariaBusy:$e,ariaChecked:$e,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:we,ariaCurrent:null,ariaDescribedBy:we,ariaDetails:null,ariaDisabled:$e,ariaDropEffect:we,ariaErrorMessage:null,ariaExpanded:$e,ariaFlowTo:we,ariaGrabbed:$e,ariaHasPopup:null,ariaHidden:$e,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:we,ariaLevel:j,ariaLive:null,ariaModal:$e,ariaMultiLine:$e,ariaMultiSelectable:$e,ariaOrientation:null,ariaOwns:we,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:$e,ariaReadOnly:$e,ariaRelevant:null,ariaRequired:$e,ariaRoleDescription:we,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:$e,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function kp(e,t){return t in e?e[t]:t}function Ep(e,t){return kp(e,t.toLowerCase())}const i1=Nr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vr,acceptCharset:we,accessKey:we,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:we,autoFocus:oe,autoPlay:oe,blocking:we,capture:null,charSet:null,checked:oe,cite:null,className:we,cols:j,colSpan:null,content:null,contentEditable:$e,controls:oe,controlsList:we,coords:j|vr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Za,draggable:$e,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:we,height:j,hidden:Za,high:j,href:null,hrefLang:null,htmlFor:we,httpEquiv:we,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:we,itemRef:we,itemScope:oe,itemType:we,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,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:oe,optimum:j,pattern:null,ping:we,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:we,required:oe,reversed:oe,rows:j,rowSpan:j,sandbox:we,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:$e,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:$e,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:we,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:$e,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:Ep}),a1=Nr({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:tt,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:we,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:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,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:vr,g2:vr,glyphName:vr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:tt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,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:j,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:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:we,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tt,rev:tt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tt,requiredFeatures:tt,requiredFonts:tt,requiredFormats:tt,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:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:tt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tt,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:kp}),Ap=Nr({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()}}),Tp=Nr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ep}),$p=Nr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),l1=/[A-Z]/g,Vu=/-[a-z]/g,c1=/^data[-\w.:]+$/i;function u1(e,t){const n=Ja(t);let r=t,s=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&c1.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Vu,d1);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Vu.test(o)){let i=o.replace(l1,f1);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=zl}return new s(r,t)}function f1(e){return"-"+e.toLowerCase()}function d1(e){return e.charAt(1).toUpperCase()}const h1=xp([Sp,i1,Ap,Tp,$p],"html"),Rp=xp([Sp,a1,Ap,Tp,$p],"svg"),zu={}.hasOwnProperty;function p1(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&zu.call(s,e)){const l=String(s[e]);i=zu.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 g1=/["&'<>`]/g,m1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,b1=/[|\\{}()[\]^$+*?.]/g,qu=new WeakMap;function v1(e,t){if(e=e.replace(t.subset?_1(t.subset):g1,r),t.subset||t.escapeOnly)return e;return e.replace(m1,n).replace(y1,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 _1(e){let t=qu.get(e);return t||(t=w1(e),qu.set(e,t)),t}function w1(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(b1,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const C1=/[\dA-Fa-f]/;function x1(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!C1.test(String.fromCharCode(t))?r:r+";"}const S1=/\d/;function k1(e,t,n){const r="&#"+String(e);return n&&t&&!S1.test(String.fromCharCode(t))?r:r+";"}const E1=["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"],na={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:"€"},A1=["cent","copy","divide","gt","lt","not","para","times"],Pp={}.hasOwnProperty,Qa={};let Ys;for(Ys in na)Pp.call(na,Ys)&&(Qa[na[Ys]]=Ys);const T1=/[^\dA-Za-z]/;function $1(e,t,n,r){const s=String.fromCharCode(e);if(Pp.call(Qa,s)){const o=Qa[s],i="&"+o;return n&&E1.includes(o)&&!A1.includes(o)&&(!r||t&&t!==61&&T1.test(String.fromCharCode(t)))?i:i+";"}return""}function R1(e,t,n){let r=x1(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=$1(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=k1(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function _r(e,t){return v1(e,Object.assign({format:R1},t))}const P1=/^>|^->|<!--|-->|--!>|<!-$/g,N1=[">"],I1=["<",">"];function L1(e,t,n,r){return r.settings.bogusComments?"<?"+_r(e.value,Object.assign({},r.settings.characterReferences,{subset:N1}))+">":"<!--"+e.value.replace(P1,s)+"-->";function s(o){return _r(o,Object.assign({},r.settings.characterReferences,{subset:I1}))}}function O1(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Ku(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 M1(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function D1(e){return e.join(" ").trim()}const F1=/[ \t\n\f\r]/g;function ql(e){return typeof e=="object"?e.type==="text"?Xu(e.value):!1:Xu(e)}function Xu(e){return e.replace(F1,"")===""}const Oe=Ip(1),Np=Ip(-1),B1=[];function Ip(e){return t;function t(n,r,s){const o=n?n.children:B1;let i=(r||0)+e,a=o[i];if(!s)for(;a&&ql(a);)i+=e,a=o[i];return a}}const H1={}.hasOwnProperty;function Lp(e){return t;function t(n,r,s){return H1.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const Kl=Lp({body:U1,caption:ra,colgroup:ra,dd:z1,dt:V1,head:ra,html:j1,li:W1,optgroup:q1,option:K1,p:G1,rp:Ju,rt:Ju,tbody:J1,td:Zu,tfoot:Z1,th:Zu,thead:X1,tr:Y1});function ra(e,t,n){const r=Oe(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ql(r.value.charAt(0)))}function j1(e,t,n){const r=Oe(n,t);return!r||r.type!=="comment"}function U1(e,t,n){const r=Oe(n,t);return!r||r.type!=="comment"}function G1(e,t,n){const r=Oe(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 W1(e,t,n){const r=Oe(n,t);return!r||r.type==="element"&&r.tagName==="li"}function V1(e,t,n){const r=Oe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function z1(e,t,n){const r=Oe(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ju(e,t,n){const r=Oe(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function q1(e,t,n){const r=Oe(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function K1(e,t,n){const r=Oe(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function X1(e,t,n){const r=Oe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function J1(e,t,n){const r=Oe(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Z1(e,t,n){return!Oe(n,t)}function Y1(e,t,n){const r=Oe(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Zu(e,t,n){const r=Oe(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Q1=Lp({body:nC,colgroup:rC,head:tC,html:eC,tbody:sC});function eC(e){const t=Oe(e,-1);return!t||t.type!=="comment"}function tC(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 nC(e){const t=Oe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ql(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function rC(e,t,n){const r=Np(n,t),s=Oe(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Kl(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function sC(e,t,n){const r=Np(n,t),s=Oe(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Kl(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const Qs={name:[[`
|
|
7
|
+
\f\r &/=>`.split(""),`
|
|
8
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
9
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
10
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
11
|
+
\f\r &>`.split(""),`\0
|
|
12
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
13
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
14
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function oC(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=Rp);const u=iC(r,e.properties),c=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,c&&(i=!1),(u||!o||!Q1(e,t,n))&&(a.push("<",e.tagName,u?" "+u:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!i&&(!o||!Kl(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function iC(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=aC(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 aC(e,t,n){const r=u1(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=_r(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Qs.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?M1:D1)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=_r(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Qs.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&Ku(n,i)>Ku(n,e.alternative)&&(i=e.alternative),a=i+_r(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?Qs.single:Qs.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const lC=["<","&"];function Op(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:_r(e.value,Object.assign({},r.settings.characterReferences,{subset:lC}))}function cC(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Op(e,t,n,r)}function uC(e,t,n,r){return r.all(e)}const fC=p1("type",{invalid:dC,unknown:hC,handlers:{comment:L1,doctype:O1,element:oC,raw:cC,root:uC,text:Op}});function dC(e){throw new Error("Expected node, not `"+e+"`")}function hC(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const pC={},gC={},mC=[];function yC(e,t){const n=t||pC,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:bC,all:vC,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||s1,characterReferences:n.characterReferences||gC,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Rp:h1,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function bC(e,t,n){return fC(e,t,n,this)}function vC(e){const t=[],n=e&&e.children||mC;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Ko(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function gn(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function _C(e){return Array.isArray(e)?e:[e]}async function Mp(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Xl(e){return!e||["plaintext","txt","text","plain"].includes(e)}function wC(e){return e==="ansi"||Xl(e)}function Jl(e){return e==="none"}function CC(e){return Jl(e)}function Dp(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Ei(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let o=0;o<n.length;o+=2){const i=t?n[o]+(n[o+1]||""):n[o];s.push([i,r]),r+=n[o].length,r+=n[o+1]?.length||0}return s}function xC(e){const t=Ei(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,i=0;for(const a of t){if(o<a.length)break;o-=a.length,i++}return{line:i,character:o}}function r(s,o){let i=0;for(let a=0;a<s;a++)i+=t[a].length;return i+=o,i}return{lines:t,indexToPos:n,posToIndex:r}}const Zl="light-dark()",SC=["color","background-color"];function kC(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 EC(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?kC(s,o):s})):e}function AC(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(c=>Xo(e.variants[c])),a=new Set(i.flatMap(c=>Object.keys(c))),l={},u=(c,f)=>{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[c]+(f==="color"?"":d)};return i.forEach((c,f)=>{for(const d of a){const h=c[d]||"inherit";if(f===0&&r&&SC.includes(d))if(r===Zl&&i.length>1){const p=t.findIndex(w=>w==="light"),g=t.findIndex(w=>w==="dark");if(p===-1||g===-1)throw new De('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=i[p][d]||"inherit",b=i[g][d]||"inherit";l[d]=`light-dark(${y}, ${b})`,s==="css-vars"&&(l[u(f,d)]=h)}else l[d]=h;else s==="css-vars"&&(l[u(f,d)]=h)}}),o.htmlStyle=l,o}function Xo(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&qe.Italic&&(t["font-style"]="italic"),e.fontStyle&qe.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&qe.Underline&&n.push("underline"),e.fontStyle&qe.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function el(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Fp=new WeakMap;function Ai(e,t){Fp.set(e,t)}function ks(e){return Fp.get(e)}class Ir{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Ir(Object.fromEntries(_C(n).map(r=>[r,Xa])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,s]=t;this.lang=r,this._stacks={[s]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return TC(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function TC(e){const t=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);const o=s?.nameScopesList?.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function $C(e,t){if(!(e instanceof Ir))throw new De("Invalid grammar state");return e.getInternalStack(t)}function RC(){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 De(`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 De(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);let l=i.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new De(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,character:l,offset:s.posToIndex(i.line,l)}}};const s=xC(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));PC(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const s=t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]);return EC(n,s)},code(n){if(!this.options.decorations?.length)return;const r=t(this),s=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(s.length!==r.converter.lines.length)throw new De(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(c,f,d,h){const p=s[c];let g="",y=-1,b=-1;if(f===0&&(y=0),d===0&&(b=0),d===Number.POSITIVE_INFINITY&&(b=p.children.length),y===-1||b===-1)for(let m=0;m<p.children.length;m++)g+=Bp(p.children[m]),y===-1&&g.length===f&&(y=m+1),b===-1&&g.length===d&&(b=m+1);if(y===-1)throw new De(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(b===-1)throw new De(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const w=p.children.slice(y,b);if(!h.alwaysWrap&&w.length===p.children.length)a(p,h,"line");else if(!h.alwaysWrap&&w.length===1&&w[0].type==="element")a(w[0],h,"token");else{const m={type:"element",tagName:"span",properties:{},children:w};a(m,h,"wrapper"),p.children.splice(y,w.length,m)}}function i(c,f){s[c]=a(s[c],f,"line")}function a(c,f,d){const h=f.properties||{},p=f.transform||(g=>g);return c.tagName=f.tagName||"span",c.properties={...c.properties,...h,class:c.properties.class},f.properties?.class&&Dp(c,f.properties.class),c=p(c,d)||c,c}const l=[],u=r.decorations.sort((c,f)=>f.start.offset-c.start.offset||c.end.offset-f.end.offset);for(const c of u){const{start:f,end:d}=c;if(f.line===d.line)o(f.line,f.character,d.character,c);else if(f.line<d.line){o(f.line,f.character,Number.POSITIVE_INFINITY,c);for(let h=f.line+1;h<d.line;h++)l.unshift(()=>i(h,c));o(d.line,0,d.character,c)}}l.forEach(c=>c())}}}function PC(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new De(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const s=e[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,i=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||i||a||l){if(o&&i||a&&l||a&&n.start.offset===n.end.offset||i&&s.start.offset===s.end.offset)continue;throw new De(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Bp(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Bp).join(""):""}const NC=[RC()];function Jo(e){const t=IC(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...NC]}function IC(e){const t=[],n=[],r=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:t,post:n,normal:r}}var Fn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],sa={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function LC(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 Yu(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 OC(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)sa[r]&&t.push({type:"setDecoration",value:sa[r]});else if(r<=29){const s=sa[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:Fn[r-30]}});else if(r===38){const s=Yu(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:Fn[r-40]}});else if(r===48){const s=Yu(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:Fn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Fn[r-100+8]}})}return t}function MC(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=LC(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=OC(i.sequence);for(const u of l)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}o=i.position}while(o<r.length);return s}}}var DC={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 FC(e=DC){function t(a){return e[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let u=0;u<Fn.length;u++)r.push(t(Fn[u]));let a=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let c=0;c<6;c++)for(let f=0;f<6;f++)r.push(n([a[u],a[c],a[f]]));let l=8;for(let u=0;u<24;u++,l+=10)r.push(n([l,l,l]));return r}function o(a){return s()[a]}function i(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return o(a.index)}}return{value:i}}const BC={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function HC(e,t,n){const r=Ko(e,n),s=Ei(t),o=Object.fromEntries(Fn.map(l=>{const u=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,c=e.colors?.[u];return[l,c||BC[l]]})),i=FC(o),a=MC();return s.map(l=>a.parse(l[0]).map(u=>{let c,f;u.decorations.has("reverse")?(c=u.background?i.value(u.background):e.bg,f=u.foreground?i.value(u.foreground):e.fg):(c=u.foreground?i.value(u.foreground):e.fg,f=u.background?i.value(u.background):void 0),c=gn(c,r),f=gn(f,r),u.decorations.has("dim")&&(c=jC(c));let d=qe.None;return u.decorations.has("bold")&&(d|=qe.Bold),u.decorations.has("italic")&&(d|=qe.Italic),u.decorations.has("underline")&&(d|=qe.Underline),u.decorations.has("strikethrough")&&(d|=qe.Strikethrough),{content:u.value,offset:l[1],color:c,bgColor:f,fontStyle:d}}))}function jC(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const s=r[0],o=r[1],i=r[2],a=r[3],l=Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0");return`#${s}${s}${o}${o}${i}${i}${l}`}else if(r.length===3){const s=r[0],o=r[1],i=r[2];return`#${s}${s}${o}${o}${i}${i}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Yl(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,s=e.resolveLangAlias(n.lang||"text");if(Xl(s)||Jl(r))return Ei(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(r);if(s==="ansi")return HC(o,t,n);const a=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new De(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new De(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return GC(t,a,o,i,n)}function UC(...e){if(e.length===2)return ks(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(Xl(s)||Jl(o))throw new De("Plain language does not have grammar state");if(s==="ansi")throw new De("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new Ir(Zo(n,l,i,a,r).stateStack,l.name,i.name)}function GC(e,t,n,r,s){const o=Zo(e,t,n,r,s),i=new Ir(Zo(e,t,n,r,s).stateStack,t.name,n.name);return Ai(o.tokens,i),o.tokens}function Zo(e,t,n,r,s){const o=Ko(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=Ei(e);let u=s.grammarState?$C(s.grammarState,n.name)??Xa:s.grammarContextCode!=null?Zo(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:Xa,c=[];const f=[];for(let d=0,h=l.length;d<h;d++){const[p,g]=l[d];if(p===""){c=[],f.push([]);continue}if(i>0&&p.length>=i){c=[],f.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}let y,b,w;s.includeExplanation&&(y=t.tokenizeLine(p,u,a),b=y.tokens,w=0);const m=t.tokenizeLine2(p,u,a),v=m.tokens.length/2;for(let C=0;C<v;C++){const $=m.tokens[2*C],D=C+1<v?m.tokens[2*C+2]:p.length;if($===D)continue;const U=m.tokens[2*C+1],R=gn(r[$r.getForeground(U)],o),E=$r.getFontStyle(U),B={content:p.substring($,D),offset:g+$,color:R,fontStyle:E};if(s.includeExplanation){const A=[];if(s.includeExplanation!=="scopeName")for(const S of n.settings){let N;switch(typeof S.scope){case"string":N=S.scope.split(/,/).map(P=>P.trim());break;case"object":N=S.scope;break;default:continue}A.push({settings:S,selectors:N.map(P=>P.split(/ /))})}B.explanation=[];let k=0;for(;$+k<D;){const S=b[w],N=p.substring(S.startIndex,S.endIndex);k+=N.length,B.explanation.push({content:N,scopes:s.includeExplanation==="scopeName"?WC(S.scopes):VC(A,S.scopes)}),w+=1}}c.push(B)}f.push(c),c=[],u=m.ruleStack}return{tokens:f,stateStack:u}}function WC(e){return e.map(t=>({scopeName:t}))}function VC(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:qC(e,o,t.slice(0,r))}}return n}function Qu(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function zC(e,t,n){if(!Qu(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)Qu(e[r],n[s])&&(r-=1),s-=1;return r===-1}function qC(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(zC(i,t,n)){r.push(o);break}return r}function Hp(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),s=r.map(l=>{const u=Yl(e,t,{...n,theme:l.theme}),c=ks(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=KC(...s.map(l=>l.tokens)),i=o[0].map((l,u)=>l.map((c,f)=>{const d={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=c.explanation),o.forEach((h,p)=>{const{content:g,explanation:y,offset:b,...w}=h[u][f];d.variants[r[p].color]=w}),d})),a=s[0].state?new Ir(Object.fromEntries(s.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),s[0].state.lang):void 0;return a&&Ai(i,a),i}function KC(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const s=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(u=>u.content.length));for(let u=0;u<n;u++){const c=a[u];c.content.length===l?(o[u].push(c),i[u]+=1,a[u]=s[u][i[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),a[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}function Yo(e,t,n){let r,s,o,i,a,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:f="css-vars"}=n,d=Object.entries(n.themes).filter(b=>b[1]).map(b=>({color:b[0],theme:b[1]})).sort((b,w)=>b.color===u?-1:w.color===u?1:0);if(d.length===0)throw new De("`themes` option must not be empty");const h=Hp(e,t,n);if(l=ks(h),u&&Zl!==u&&!d.find(b=>b.color===u))throw new De(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=d.map(b=>e.getTheme(b.theme)),g=d.map(b=>b.color);o=h.map(b=>b.map(w=>AC(w,g,c,u,f))),l&&Ai(o,l);const y=d.map(b=>Ko(b.theme,n));s=ef(d,p,y,c,u,"fg",f),r=ef(d,p,y,c,u,"bg",f),i=`shiki-themes ${p.map(b=>b.name).join(" ")}`,a=u?void 0:[s,r].join(";")}else if("theme"in n){const u=Ko(n.theme,n);o=Yl(e,t,n);const c=e.getTheme(n.theme);r=gn(c.bg,u),s=gn(c.fg,u),i=c.name,l=ks(o)}else throw new De("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function ef(e,t,n,r,s,o,i){return e.map((a,l)=>{const u=gn(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&s){if(s===Zl&&e.length>1){const f=e.findIndex(g=>g.color==="light"),d=e.findIndex(g=>g.color==="dark");if(f===-1||d===-1)throw new De('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=gn(t[f][o],n[f])||"inherit",p=gn(t[d][o],n[d])||"inherit";return`light-dark(${h}, ${p});${c}`}return u}return i==="css-vars"?c:null}).filter(a=>!!a).join(";")}function Qo(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>Qo(e,s,o),codeToTokens:(s,o)=>Yo(e,s,o)}){let s=t;for(const p of Jo(n))s=p.preprocess?.call(r,s,n)||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:u,grammarState:c}=Yo(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=JC(o):f==="never"&&(o=ZC(o)),d&&(o=YC(o));const h={...r,get source(){return s}};for(const p of Jo(n))o=p.tokens?.call(h,o)||o;return XC(o,{...n,fg:i,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??u},h,c)}function XC(e,t,n,r=ks(e)){const s=Jo(t),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(const[g,y]of Object.entries(t.meta||{}))g.startsWith("_")||(u[g]=y);let c={type:"element",tagName:"pre",properties:u,children:[]},f={type:"element",tagName:"code",properties:{},children:o};const d=[],h={...n,structure:a,addClassToHast:Dp,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return c},get code(){return f},get lines(){return d}};if(e.forEach((g,y)=>{y&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
|
|
15
|
+
`}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},w=0;for(const m of g){let v={type:"element",tagName:"span",properties:{...m.htmlAttrs},children:[{type:"text",value:m.content}]};const C=el(m.htmlStyle||Xo(m));C&&(v.properties.style=C);for(const $ of s)v=$?.span?.call(h,v,y+1,w,b,m)||v;a==="inline"?i.children.push(v):a==="classic"&&b.children.push(v),w+=m.content.length}if(a==="classic"){for(const m of s)b=m?.line?.call(h,b,y+1)||b;d.push(b),o.push(b)}else a==="inline"&&d.push(b)}),a==="classic"){for(const g of s)f=g?.code?.call(h,f)||f;c.children.push(f);for(const g of s)c=g?.pre?.call(h,c)||c;i.children.push(c)}else if(a==="inline"){const g=[];let y={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const m of i.children)m.type==="element"&&m.tagName==="br"?(g.push(y),y={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(m.type==="element"||m.type==="text")&&y.children.push(m);g.push(y);let w={type:"element",tagName:"code",properties:{},children:g};for(const m of s)w=m?.code?.call(h,w)||w;i.children=[];for(let m=0;m<w.children.length;m++){m>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const v=w.children[m];v.type==="element"&&i.children.push(...v.children)}}let p=i;for(const g of s)p=g?.root?.call(h,p)||p;return r&&Ai(p,r),p}function JC(e){return e.map(t=>{const n=[];let r="",s;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&qe.Underline||o.fontStyle&qe.Strikethrough));l&&o.content.match(/^\s+$/)&&t[i+1]?(s===void 0&&(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=void 0,r=""):n.push(o)}),n})}function ZC(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,s,o,i]=r;if(!s&&!i)return n;const a=[{...n,offset:n.offset+s.length,content:o}];return s&&a.unshift({content:s,offset:n.offset}),i&&a.push({content:i,offset:n.offset+s.length+o.length}),a}))}function YC(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const s=n[n.length-1],o=el(s.htmlStyle||Xo(s)),i=el(r.htmlStyle||Xo(r)),a=s.fontStyle&&(s.fontStyle&qe.Underline||s.fontStyle&qe.Strikethrough),l=r.fontStyle&&(r.fontStyle&qe.Underline||r.fontStyle&qe.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}const QC=yC;function ex(e,t,n){const r={meta:{},options:n,codeToHast:(o,i)=>Qo(e,o,i),codeToTokens:(o,i)=>Yo(e,o,i)};let s=QC(Qo(e,t,n,r));for(const o of Jo(n))s=o.postprocess?.call(r,s,n)||s;return s}const tf={light:"#333333",dark:"#bbbbbb"},nf={light:"#fffffe",dark:"#1e1e1e"},rf="__shiki_resolved";function Ql(e){if(e?.[rf])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const a=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(r=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?tf.light:tf.dark),n||(n=t.type==="light"?nf.light:nf.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function i(a){if(o.has(a))return o.get(a);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(a):(o.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),u=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!u)return a;const c={...a,settings:{...a.settings}};if(l){const f=i(a.settings.foreground);t.colorReplacements[f]=a.settings.foreground,c.settings.foreground=f}if(u){const f=i(a.settings.background);t.colorReplacements[f]=a.settings.background,c.settings.background=f}return c});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=i(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,rf,{enumerable:!1,writable:!1,value:!0}),t}async function jp(e){return Array.from(new Set((await Promise.all(e.filter(t=>!wC(t)).map(async t=>await Mp(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Up(e){return(await Promise.all(e.map(async n=>CC(n)?null:Ql(await Mp(n))))).filter(n=>!!n)}let tx=3;function nx(e,t=3){t>tx||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class lr extends Error{constructor(t){super(t),this.name="ShikiError"}}function Gp(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new lr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class rx extends r1{constructor(t,n,r,s={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=Ql(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Go.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Gp(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const s=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(s.name=t.name,this._resolvedGrammars.set(t.name,s),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const s of t)this.resolveEmbeddedLanguages(s);const n=Array.from(this._langGraph.entries()),r=n.filter(([s,o])=>!o);if(r.length){const s=n.filter(([o,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(l=>r.map(([u])=>u).includes(l)):!1).filter(o=>!r.includes(o));throw new lr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[s,o]of n)this._resolver.addLanguage(o);for(const[s,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class sx{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let jr=0;function ox(e){jr+=1,e.warnings!==!1&&jr>=10&&jr%10===0&&console.warn(`[Shiki] ${jr} 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 lr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Ql),s=new sx(e.engine,n),o=new rx(s,r,n,e.langAlias);let i;function a(m){return Gp(m,e.langAlias)}function l(m){b();const v=o.getGrammar(typeof m=="string"?m:m.name);if(!v)throw new lr(`Language \`${m}\` not found, you may need to load it first`);return v}function u(m){if(m==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const v=o.getTheme(m);if(!v)throw new lr(`Theme \`${m}\` not found, you may need to load it first`);return v}function c(m){b();const v=u(m);i!==m&&(o.setTheme(v),i=m);const C=o.getColorMap();return{theme:v,colorMap:C}}function f(){return b(),o.getLoadedThemes()}function d(){return b(),o.getLoadedLanguages()}function h(...m){b(),o.loadLanguages(m.flat(1))}async function p(...m){return h(await jp(m))}function g(...m){b();for(const v of m.flat(1))o.loadTheme(v)}async function y(...m){return b(),g(await Up(m))}function b(){if(t)throw new lr("Shiki instance has been disposed")}function w(){t||(t=!0,o.dispose(),jr-=1)}return{setTheme:c,getTheme:u,getLanguage:l,getLoadedThemes:f,getLoadedLanguages:d,resolveLangAlias:a,loadLanguage:p,loadLanguageSync:h,loadTheme:y,loadThemeSync:g,dispose:w,[Symbol.dispose]:w}}async function ix(e){e.engine||nx("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Up(e.themes||[]),jp(e.langs||[]),e.engine]);return ox({...e,themes:t,langs:n,engine:r})}async function ax(e){const t=await ix(e);return{getLastGrammarState:(...n)=>UC(t,...n),codeToTokensBase:(n,r)=>Yl(t,n,r),codeToTokensWithThemes:(n,r)=>Hp(t,n,r),codeToTokens:(n,r)=>Yo(t,n,r),codeToHast:(n,r)=>Qo(t,n,r),codeToHtml:(n,r)=>ex(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Lr(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function lx(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const ec=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Fe=String.raw;function Or(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Wp=Fe`\[\^?`,Vp=`c.? | C(?:-.?)?|${Fe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Fe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Fe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Fe`o\{[^\}]*\}?`}|${Fe`\d{1,3}`}`,tc=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,eo=new RegExp(Fe`
|
|
16
|
+
\\ (?:
|
|
17
|
+
${Vp}
|
|
18
|
+
| [gk]<[^>]*>?
|
|
19
|
+
| [gk]'[^']*'?
|
|
20
|
+
| .
|
|
21
|
+
)
|
|
22
|
+
| \( (?:
|
|
23
|
+
\? (?:
|
|
24
|
+
[:=!>({]
|
|
25
|
+
| <[=!]
|
|
26
|
+
| <[^>]*>
|
|
27
|
+
| '[^']*'
|
|
28
|
+
| ~\|?
|
|
29
|
+
| #(?:[^)\\]|\\.?)*
|
|
30
|
+
| [^:)]*[:)]
|
|
31
|
+
)?
|
|
32
|
+
| \*[^\)]*\)?
|
|
33
|
+
)?
|
|
34
|
+
| (?:${tc.source})+
|
|
35
|
+
| ${Wp}
|
|
36
|
+
| .
|
|
37
|
+
`.replace(/\s+/g,""),"gsu"),oa=new RegExp(Fe`
|
|
38
|
+
\\ (?:
|
|
39
|
+
${Vp}
|
|
40
|
+
| .
|
|
41
|
+
)
|
|
42
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
43
|
+
| ${Wp}
|
|
44
|
+
| &&
|
|
45
|
+
| .
|
|
46
|
+
`.replace(/\s+/g,""),"gsu");function cx(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=Tx(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(f){s.push(f)},replaceCurrentModX(f){s[s.length-1]=f},singleline:n.rules.singleline};let i=[],a;for(eo.lastIndex=0;a=eo.exec(e);){const f=ux(o,e,a[0],eo.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(eo.lastIndex=f.lastIndex)}const l=[];let u=0;i.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++u:f.raw==="("&&l.push(f)}),u||l.forEach((f,d)=>{f.kind="capturing",f.number=d+1});const c=u||l.length;return{tokens:i.map(f=>f.type==="EscapedNumber"?Rx(f,c):f).flat(),flags:r}}function ux(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=fx(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:sf(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:wx(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:qp(n)}}if(o==="K")return{token:Kp("keep",n)};if(o==="N"||o==="R")return{token:Bn("newline",n,{negate:o==="N"})};if(o==="O")return{token:Bn("any",n)};if(o==="X")return{token:Bn("text_segment",n)};const i=zp(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:kx(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:Sx(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:or("group",n)};if(n==="(?>")return{token:or("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:or(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:or("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:or("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:bx(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
|
|
47
|
+
`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:Bn("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Fe`\A`,$:Fe`\Z`}[n]:n;return{token:sf(i,n)}}return n==="|"?{token:hx(n)}:tc.test(n)?{tokens:Px(n)}:{token:Wt(Lr(n),n)}}function fx(e,t,n){const r=[of(t[1]==="^",t)];let s=1,o;for(oa.lastIndex=n;o=oa.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(of(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Wt(93,i));else if(s--,r.push(px(i)),!s)break}else{const a=dx(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:oa.lastIndex||e.length}}function dx(e){if(e[0]==="\\")return zp(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!ec.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Bn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?gx(e):e==="&&"?mx(e):Wt(Lr(e),e)}function zp(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return xx(e);if("dDhHsSwW".includes(n))return Ex(e);if(e.startsWith(Fe`\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 Ax(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 Wt(Lr(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Wt($x(e),e);if(af.has(n))return Wt(af.get(n),e);if(/\d/.test(n))return yx(t,e);if(e==="\\")throw new Error(Fe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Wt(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function hx(e){return{type:"Alternator",raw:e}}function sf(e,t){return{type:"Assertion",kind:e,raw:t}}function qp(e){return{type:"Backreference",raw:e}}function Wt(e,t){return{type:"Character",value:e,raw:t}}function px(e){return{type:"CharacterClassClose",raw:e}}function gx(e){return{type:"CharacterClassHyphen",raw:e}}function mx(e){return{type:"CharacterClassIntersector",raw:e}}function of(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Bn(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Kp(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Or(n.flags),raw:t}}function yx(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function bx(e){return{type:"GroupClose",raw:e}}function or(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function vx(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function _x(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function wx(e){return{type:"Subroutine",raw:e}}const Cx=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),af=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function xx(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 Wt(Lr(t.toUpperCase())-64,e)}function Sx(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=cf(n),i=cf(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),Kp("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,or("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function kx(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:s}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=s?s.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[i,a,l]=o,u=Cx.has(n)?n.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${a}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof a=="number"||!/^(?:[<>!=]=|[<>])$/.test(a))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${a}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return vx(u,r??null,s?.split(",")??null,e)}function lf(e){let t=null,n,r;if(e[0]==="{"){const{minStr:s,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+s>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+s,r=o===void 0?+s:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return _x(t,n,r,e)}function Ex(e){const t=e[1].toLowerCase();return Bn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function Ax(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Bn("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function cf(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 Tx(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function $x(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 Rx(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[qp(n)];const o=[],i=s.match(/^[0-7]+|\d/g);for(let a=0;a<i.length;a++){const l=i[a];let u;if(a===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(Fe`Octal encoded byte above 177 unsupported "${n}"`)}else u=Lr(l);o.push(Wt(u,(a===0?"\\":"")+l))}return o}function Px(e){const t=[],n=new RegExp(tc,"gy");let r;for(;r=n.exec(e);){const s=r[0];if(s[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(s);if(o){const{min:i,max:a}=o.groups;if(+i>+a&&s.endsWith("?")){n.lastIndex--,t.push(lf(s.slice(0,-1)));continue}}}t.push(lf(s))}return t}function Xp(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function Nx(e){return Ix.has(e.type)}const Ix=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Jp(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=cx(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(d,h)=>{const p=r.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,p.type){case"Alternator":return zn();case"Assertion":return Lx(p);case"Backreference":return Ox(p,o);case"Character":return Ti(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return Mx(p,o,h);case"CharacterClassOpen":return Dx(p,o,h);case"CharacterSet":return Fx(p,o);case"Directive":return Wx(p.kind,{flags:p.flags});case"GroupOpen":return Bx(p,o,h);case"NamedCallout":return zx(p.kind,p.tag,p.arguments);case"Quantifier":return Hx(p,o);case"Subroutine":return jx(p,o);default:throw new Error(`Unexpected token type "${p.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},i=Kx(Vx(r.flags));let a=i.body[0];for(;o.nextIndex<r.tokens.length;){const d=s(a,{});d.type==="Alternative"?(i.body.push(d),a=d):a.body.push(d)}const{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:c,subroutines:f}=o;if(u&&c.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of f)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined");d&&(l[d-1].isSubroutined=!0)}else if(c.has(d)){if(c.get(d).length>1)throw new Error(Fe`Subroutine uses a duplicate group name "\g<${d}>"`);c.get(d)[0].isSubroutined=!0}else throw new Error(Fe`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function Lx({kind:e}){return tl(Or({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Fe`\B`||e===Fe`\Y`})}function Ox({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),s=(o,i=!1)=>{const a=t.capturingGroups.length;let l=!1;if(o>a)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,nl(i?a+1-o:o,{orphan:l})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return nl(r)}return s(+r)}function Mx(e,t,n){const{tokens:r,walk:s}=t,o=t.parent,i=o.body.at(-1),a=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&a&&a.type!=="CharacterClassOpen"&&a.type!=="CharacterClassClose"&&a.type!=="CharacterClassIntersector"){const l=s(o,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&l.type==="Character")return o.body.pop(),Gx(i,l);throw new Error("Invalid character class range")}return Ti(Lr("-"))}function Dx({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[yo()];let a=df(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push(yo()),t.nextIndex++;else{const u=i.at(-1);u.body.push(s(u,n))}a=df(r[t.nextIndex],o)}const l=yo({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function Fx({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const a=$i(n);if(ec.has(a)&&!i?.has(a))e="posix",n=a;else return ir(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?qx(n,{negate:t}):rl(e,{negate:t})}function Bx(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=Xx(e),u=l.type==="AbsenceFunction",c=ff(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&lx(o,l.name,[]).push(l)),u&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=hf(r[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(zn()),t.nextIndex++;else{const h=l.body.at(-1),p=a(h,{...n,isInAbsenceFunction:n.isInAbsenceFunction||u,isInLookbehind:n.isInLookbehind||c,isInNegLookbehind:n.isInNegLookbehind||f});if(h.body.push(p),(c||n.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(uf(p)||p.type==="CapturingGroup")throw new Error(g)}else if(uf(p)||ff(p)&&p.negate)throw new Error(g)}}d=hf(r[t.nextIndex])}return t.nextIndex++,l}function Hx({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!Nx(o))throw new Error("Quantifier requires a repeatable token");const i=Yp(e,t,n,o);return s.body.pop(),i}function jx({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let s=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const a=+o.groups.num,l=n.length;if(t.hasNumberedRef=!0,s={"":a,"+":l+a,"-":l+1-a}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const i=Qp(s);return r.push(i),i}function Ux(e,t){return{type:"AbsenceFunction",kind:e,body:Ds(t?.body)}}function zn(e){return{type:"Alternative",body:eg(e?.body)}}function tl(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function nl(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Zp(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!Jx(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Ds(t?.body)}}function Ti(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function yo(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:eg(e?.body)}}function Gx(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function rl(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function Wx(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Or(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function Vx(e){return{type:"Flags",...e}}function gt(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:Ds(e?.body)}}function Ln(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Ds(e?.body)}}function zx(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function qx(e,t){const n=!!t?.negate;if(!ec.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Yp(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function Kx(e,t){return{type:"Regex",body:Ds(t?.body),flags:e}}function Qp(e){return{type:"Subroutine",ref:e}}function ir(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get($i(e));if(!r){if(n.normalizeUnknownPropertyNames)r=Zx(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Fe`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function Xx({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return Ux("repeater");case"atomic":return gt({atomic:!0});case"capturing":return Zp(s,{name:n});case"group":return gt({flags:e});case"lookahead":case"lookbehind":return Ln({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Ds(e){if(e===void 0)e=[zn()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function eg(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function uf(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function ff(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Jx(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Zx(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 $i(e){return e.replace(/[- _]+/g,"").toLowerCase()}function df(e,t){return Or(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function hf(e){return Or(e,"Unclosed group")}function is(e,t,n=null){function r(o,i){for(let a=0;a<o.length;a++){const l=s(o[a],i,a,o);a=Math.max(-1,a+l)}}function s(o,i=null,a=null,l=null){let u=0,c=!1;const f={node:o,parent:i,key:a,container:l,root:e,remove(){to(l).splice(Math.max(0,tr(a)+u),1),u--,c=!0},removeAllNextSiblings(){return to(l).splice(tr(a)+1)},removeAllPrevSiblings(){const b=tr(a)+u;return u-=b,to(l).splice(0,Math.max(0,b))},replaceWith(b,w={}){const m=!!w.traverse;l?l[Math.max(0,tr(a)+u)]=b:Or(i,"Can't replace root node")[a]=b,m&&s(b,i,a,l),c=!0},replaceWithMultiple(b,w={}){const m=!!w.traverse;if(to(l).splice(Math.max(0,tr(a)+u),1,...b),u+=b.length-1,m){let v=0;for(let C=0;C<b.length;C++)v+=s(b[C],i,tr(a)+C+v,l)}c=!0},skip(){c=!0}},{type:d}=o,h=t["*"],p=t[d],g=typeof h=="function"?h:h?.enter,y=typeof p=="function"?p:p?.enter;if(g?.(f,n),y?.(f,n),!c)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":r(o.body,o);break;case"Alternative":case"CharacterClass":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":s(o.min,o,"min"),s(o.max,o,"max");break;case"LookaroundAssertion":r(o.body,o);break;case"Quantifier":s(o.body,o,"body");break;case"Regex":r(o.body,o),s(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return p?.exit?.(f,n),h?.exit?.(f,n),u}return s(e),e}function to(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function tr(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const Yx=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Qx(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function eS(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const ft=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function nc(e,t,n,r){const s=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let i=0,a="";for(const l of e.matchAll(s)){const{0:u,groups:{$skip:c}}=l;if(!c&&(!r||r===ft.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?ft.CHAR_CLASS:ft.DEFAULT,negated:o[o.length-1]}):a+=n;continue}u[0]==="["?(i++,o.push(u[1]==="^")):u==="]"&&i&&(i--,o.pop()),a+=u}return a}function tg(e,t,n,r){nc(e,t,n,r)}function tS(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===ft.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function no(e,t,n){return!!tS(e,t,0,n)}function nS(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 pf=new RegExp(String.raw`(?<noncapturingStart>${Yx})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function rS(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",i=[0],a=[];let l=0,u=0,c=NaN,f;do{f=!1;let d=0,h=0,p=!1,g;for(pf.lastIndex=Number.isNaN(c)?0:c+o.length;g=pf.exec(e);){const{0:y,index:b,groups:{capturingStart:w,noncapturingStart:m}}=g;if(y==="[")d++;else if(d)y==="]"&&d--;else if(y===s&&!p)c=b,p=!0;else if(p&&m)h++;else if(w)p?h++:(l++,i.push(l+u));else if(y===")"&&p){if(!h){u++;const v=l+u;if(e=`${e.slice(0,c)}${o}${e.slice(c+s.length,b)}))<$$${v}>)${e.slice(b+1)}`,f=!0,a.push(v),Qx(n,v),r.size){const C=new Map;r.forEach(($,D)=>{C.set(D>=v?D+1:D,$.map(U=>U>=v?U+1:U))}),r=C}break}h--}}}while(f);return n.push(...a),e=nc(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:p}})=>{if(h){const g=+h;if(g>i.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${i[g]}`}return`\\${p}`},ft.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const ng=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ia=new RegExp(String.raw`
|
|
48
|
+
\\(?: \d+
|
|
49
|
+
| c[A-Za-z]
|
|
50
|
+
| [gk]<[^>]+>
|
|
51
|
+
| [pPu]\{[^\}]+\}
|
|
52
|
+
| u[A-Fa-f\d]{4}
|
|
53
|
+
| x[A-Fa-f\d]{2}
|
|
54
|
+
)
|
|
55
|
+
| \((?: \? (?: [:=!>]
|
|
56
|
+
| <(?:[=!]|[^>]+>)
|
|
57
|
+
| [A-Za-z\-]+:
|
|
58
|
+
| \(DEFINE\)
|
|
59
|
+
))?
|
|
60
|
+
| (?<qBase>${ng})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
61
|
+
| \\?.
|
|
62
|
+
`.replace(/\s+/g,""),"gsu");function sS(e){if(!new RegExp(`${ng}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(ia.lastIndex=0;i=ia.exec(e);){const{0:a,index:l,groups:{qBase:u,qMod:c,invalidQ:f}}=i;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(c==="+"&&s&&!s.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${a}"`);let d=-1;if(/^\{\d+\}$/.test(u))e=eS(e,l+u.length,c,"");else{if(s===")"||s==="]"){const h=s===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,h)}(?>${e.slice(h,l)}${u})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${u})${e.slice(l+a.length)}`;d+=4}ia.lastIndex+=d}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const ct=String.raw,oS=ct`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,sl=ct`\(\?R=(?<rDepth>[^\)]+)\)|${oS}`,Ri=ct`\(\?<(?![=!])(?<captureName>[^>]+)>`,rg=ct`${Ri}|(?<unnamed>\()(?!\?)`,Tn=new RegExp(ct`${Ri}|${sl}|\(\?|\\?.`,"gsu"),aa="Cannot use multiple overlapping recursions";function iS(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=t?.captureTransfers??new Map;if(!new RegExp(sl,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&no(e,ct`\(\?\(DEFINE\)`,ft.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=no(e,ct`\\[1-9]`,ft.DEFAULT),a=new Map,l=[];let u=!1,c=0,f=0,d;for(Tn.lastIndex=0;d=Tn.exec(e);){const{0:h,groups:{captureName:p,rDepth:g,gRNameOrNum:y,gRDepth:b}}=d;if(h==="[")c++;else if(c)h==="]"&&c--;else if(g){if(gf(g),u)throw new Error(aa);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const w=e.slice(0,d.index),m=e.slice(Tn.lastIndex);if(no(m,sl,ft.DEFAULT))throw new Error(aa);const v=+g-1;e=mf(w,m,v,!1,n,o,f),s=bf(s,w,v,o.length,0,f);break}else if(y){gf(b);let w=!1;for(const A of l)if(A.name===y||A.num===+y){if(w=!0,A.hasRecursedWithin)throw new Error(aa);break}if(!w)throw new Error(ct`Recursive \g cannot be used outside the referenced group "${r==="external"?y:ct`\g<${y}&R=${b}>`}"`);const m=a.get(y),v=nS(e,m);if(i&&no(v,ct`${Ri}|\((?!\?)`,ft.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(m,d.index),$=v.slice(C.length+h.length),D=o.length,U=+b-1,R=mf(C,$,U,!0,n,o,f);s=bf(s,C,U,o.length-D,D,f);const E=e.slice(0,m),B=e.slice(m+v.length);e=`${E}${R}${B}`,Tn.lastIndex+=R.length-h.length-C.length-$.length,l.forEach(A=>A.hasRecursedWithin=!0),u=!0}else if(p)f++,a.set(String(f),Tn.lastIndex),a.set(p,Tn.lastIndex),l.push({num:f,name:p});else if(h[0]==="("){const w=h==="(";w&&(f++,a.set(String(f),Tn.lastIndex)),l.push(w?{num:f}:{})}else h===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function gf(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 mf(e,t,n,r,s,o,i){const a=new Set;r&&tg(e+t,Ri,({groups:{captureName:u}})=>{a.add(u)},ft.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${yf(`(?:${e}`,"forward",...l)}(?:)${yf(`${t})`,"backward",...l)}${t}`}function yf(e,t,n,r,s,o,i){const l=c=>t==="forward"?c+2:n-c+2-1;let u="";for(let c=0;c<n;c++){const f=l(c);u+=nc(e,ct`${rg}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return d;const y=`_$${f}`;if(p||h){const b=i+o.length+1;return o.push(b),aS(s,b),p?d:`(?<${h}${y}>`}return ct`\k<${g}${y}>`},ft.DEFAULT)}return u}function aS(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function bf(e,t,n,r,s,o){if(e.size&&r){let i=0;tg(t,rg,()=>i++,ft.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((u,c)=>{const f=(r-i*n)/n,d=i*n,h=c>a+i?c+r:c,p=[];for(const g of u)if(g<=a)p.push(g);else if(g>a+i+f)p.push(g+r);else if(g<=a+i)for(let y=0;y<=n;y++)p.push(g+i*y);else for(let y=0;y<=n;y++)p.push(g+d+f*y);l.set(h,p)}),l}return e}var Ne=String.fromCodePoint,se=String.raw,qt={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};qt.bugFlagVLiteralHyphenIsRange=qt.unicodeSets?(()=>{try{new RegExp(se`[\d\-a]`,"v")}catch{return!0}return!1})():!1;qt.bugNestedClassIgnoresNegation=qt.unicodeSets&&new RegExp("[[^a]]","v").test("a");function ei(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Es(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function ol(e,t){return vf[e]>=vf[t]}function lS(e,t){if(e==null)throw new Error(t??"Value expected");return e}var vf={ES2025:2025,ES2024:2024,ES2018:2018},cS={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function sg(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!cS[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=qt.flagGroups?"ES2025":qt.unicodeSets?"ES2024":"ES2018"),t}var uS="[ -\r ]",fS=new Set([Ne(304),Ne(305)]),Mt=se`[\p{L}\p{M}\p{N}\p{Pc}]`;function og(e){if(fS.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=pS.get(n),o=dS.get(n),i=hS.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 rc=new Map(`C Other
|
|
63
|
+
Cc Control cntrl
|
|
64
|
+
Cf Format
|
|
65
|
+
Cn Unassigned
|
|
66
|
+
Co Private_Use
|
|
67
|
+
Cs Surrogate
|
|
68
|
+
L Letter
|
|
69
|
+
LC Cased_Letter
|
|
70
|
+
Ll Lowercase_Letter
|
|
71
|
+
Lm Modifier_Letter
|
|
72
|
+
Lo Other_Letter
|
|
73
|
+
Lt Titlecase_Letter
|
|
74
|
+
Lu Uppercase_Letter
|
|
75
|
+
M Mark Combining_Mark
|
|
76
|
+
Mc Spacing_Mark
|
|
77
|
+
Me Enclosing_Mark
|
|
78
|
+
Mn Nonspacing_Mark
|
|
79
|
+
N Number
|
|
80
|
+
Nd Decimal_Number digit
|
|
81
|
+
Nl Letter_Number
|
|
82
|
+
No Other_Number
|
|
83
|
+
P Punctuation punct
|
|
84
|
+
Pc Connector_Punctuation
|
|
85
|
+
Pd Dash_Punctuation
|
|
86
|
+
Pe Close_Punctuation
|
|
87
|
+
Pf Final_Punctuation
|
|
88
|
+
Pi Initial_Punctuation
|
|
89
|
+
Po Other_Punctuation
|
|
90
|
+
Ps Open_Punctuation
|
|
91
|
+
S Symbol
|
|
92
|
+
Sc Currency_Symbol
|
|
93
|
+
Sk Modifier_Symbol
|
|
94
|
+
Sm Math_Symbol
|
|
95
|
+
So Other_Symbol
|
|
96
|
+
Z Separator
|
|
97
|
+
Zl Line_Separator
|
|
98
|
+
Zp Paragraph_Separator
|
|
99
|
+
Zs Space_Separator
|
|
100
|
+
ASCII
|
|
101
|
+
ASCII_Hex_Digit AHex
|
|
102
|
+
Alphabetic Alpha
|
|
103
|
+
Any
|
|
104
|
+
Assigned
|
|
105
|
+
Bidi_Control Bidi_C
|
|
106
|
+
Bidi_Mirrored Bidi_M
|
|
107
|
+
Case_Ignorable CI
|
|
108
|
+
Cased
|
|
109
|
+
Changes_When_Casefolded CWCF
|
|
110
|
+
Changes_When_Casemapped CWCM
|
|
111
|
+
Changes_When_Lowercased CWL
|
|
112
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
113
|
+
Changes_When_Titlecased CWT
|
|
114
|
+
Changes_When_Uppercased CWU
|
|
115
|
+
Dash
|
|
116
|
+
Default_Ignorable_Code_Point DI
|
|
117
|
+
Deprecated Dep
|
|
118
|
+
Diacritic Dia
|
|
119
|
+
Emoji
|
|
120
|
+
Emoji_Component EComp
|
|
121
|
+
Emoji_Modifier EMod
|
|
122
|
+
Emoji_Modifier_Base EBase
|
|
123
|
+
Emoji_Presentation EPres
|
|
124
|
+
Extended_Pictographic ExtPict
|
|
125
|
+
Extender Ext
|
|
126
|
+
Grapheme_Base Gr_Base
|
|
127
|
+
Grapheme_Extend Gr_Ext
|
|
128
|
+
Hex_Digit Hex
|
|
129
|
+
IDS_Binary_Operator IDSB
|
|
130
|
+
IDS_Trinary_Operator IDST
|
|
131
|
+
ID_Continue IDC
|
|
132
|
+
ID_Start IDS
|
|
133
|
+
Ideographic Ideo
|
|
134
|
+
Join_Control Join_C
|
|
135
|
+
Logical_Order_Exception LOE
|
|
136
|
+
Lowercase Lower
|
|
137
|
+
Math
|
|
138
|
+
Noncharacter_Code_Point NChar
|
|
139
|
+
Pattern_Syntax Pat_Syn
|
|
140
|
+
Pattern_White_Space Pat_WS
|
|
141
|
+
Quotation_Mark QMark
|
|
142
|
+
Radical
|
|
143
|
+
Regional_Indicator RI
|
|
144
|
+
Sentence_Terminal STerm
|
|
145
|
+
Soft_Dotted SD
|
|
146
|
+
Terminal_Punctuation Term
|
|
147
|
+
Unified_Ideograph UIdeo
|
|
148
|
+
Uppercase Upper
|
|
149
|
+
Variation_Selector VS
|
|
150
|
+
White_Space space
|
|
151
|
+
XID_Continue XIDC
|
|
152
|
+
XID_Start XIDS`.split(/\s/).map(e=>[$i(e),e])),dS=new Map([["s",Ne(383)],[Ne(383),"s"]]),hS=new Map([[Ne(223),Ne(7838)],[Ne(107),Ne(8490)],[Ne(229),Ne(8491)],[Ne(969),Ne(8486)]]),pS=new Map([on(453),on(456),on(459),on(498),...la(8072,8079),...la(8088,8095),...la(8104,8111),on(8124),on(8140),on(8188)]),gS=new Map([["alnum",se`[\p{Alpha}\p{Nd}]`],["alpha",se`\p{Alpha}`],["ascii",se`\p{ASCII}`],["blank",se`[\p{Zs}\t]`],["cntrl",se`\p{Cc}`],["digit",se`\p{Nd}`],["graph",se`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",se`\p{Lower}`],["print",se`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",se`[\p{P}\p{S}]`],["space",se`\p{space}`],["upper",se`\p{Upper}`],["word",se`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",se`\p{AHex}`]]);function mS(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function on(e){const t=Ne(e);return[t.toLowerCase(),t]}function la(e,t){return mS(e,t).map(n=>on(n))}var ig=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function yS(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};ag(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ol(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};is(e,bS,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};is(e,vS,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return is(e,_S,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var bS={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=gt();o.body[0].body.push(Ln({negate:!0,body:r}),ir("Any"));const i=gt();i.body[0].body.push(Yp("greedy",0,1/0,o)),n(Ae(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++){const i=t.body[o];Es(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=cg(t.get(e));if(n){const r=gt({flags:n});r.body[0].body=e.body,e.body=[Ae(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:i},a){const{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:f,supportedGNodes:d,wordIsAscii:h}=a;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")i(Ae(Ln({body:[zn({body:[tl("string_end")]}),zn({body:[Ti(10)]})]}),t));else if(l==="line_start")i(Ae(Dt(se`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(d.has(e))s.flags.sticky=!0,o();else{const p=r[n-1];if(p&&ES(p))i(Ae(Ln({negate:!0}),t));else{if(f)throw new Error(se`Uses "\G" in a way that requires a subclass`);i(an(tl("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(Ae(Dt(se`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!h&&!c){const p=`(?:(?<=${Mt})(?!${Mt})|(?<!${Mt})(?=${Mt}))`,g=`(?:(?<=${Mt})(?=${Mt})|(?<!${Mt})(?!${Mt}))`;i(Ae(Dt(u?g:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!ua(n)&&(n=ca(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!ua(r)&&(r=ca(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=yo({body:[e]});n(Ae(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:a}){const{kind:l,negate:u,value:c}=e;if(o&&(l==="digit"||c==="digit")){n(an(rl("digit",{negate:u}),t));return}if(i&&(l==="space"||c==="space")){n(Ae(fa(Dt(uS),u),t));return}if(a&&(l==="word"||c==="word")){n(an(rl("word",{negate:u}),t));return}if(l==="any")n(an(ir("Any"),t));else if(l==="digit")n(an(ir("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(se`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=se`\p{RI}{2}|${f}(?:\u200D${f})*`;n(Ae(Dt(se`(?>\r\n|${s?se`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(an(ir("AHex",{negate:u}),t));else if(l==="newline")n(Ae(Dt(u?`[^
|
|
153
|
+
]`:`(?>\r
|
|
154
|
+
?|[
|
|
155
|
+
\v\f
\u2028\u2029])`),t));else if(l==="posix")if(!s&&(c==="graph"||c==="print")){if(r==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[c];u&&(f=`\0-${Ne(f.codePointAt(0)-1)}${Ne(f.codePointAt(2)+1)}-`),n(Ae(Dt(`[${f}]`),t))}else n(Ae(fa(Dt(gS.get(c)),u),t));else if(l==="property")rc.has($i(c))||(e.key="sc");else if(l==="space")n(an(ir("space",{negate:u}),t));else if(l==="word")n(Ae(fa(Dt(Mt),u),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:i}){const{kind:a,flags:l}=e;if(a==="flags")if(!l.enable&&!l.disable)r();else{const u=gt({flags:l});u.body[0].body=i(),s(Ae(u,t),{traverse:!0})}else if(a==="keep"){const u=n.body[0],f=n.body.length===1&&Xp(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(se`Uses "\K" in a way that's unsupported`);const d=Ln({behind:!0});d.body[0].body=o(),s(Ae(d,t))}else throw new Error(`Unexpected directive kind "${a}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(Ae(Ln({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=gt();t.body[0].body.push(e.body),e.body=Ae(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,s=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const i=fg(o.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):s=!0}r&&!s&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(se`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!ua(n)&&(n=ca(n,t),e.ref=n)}},vS={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:s}=e;r||n.set(e,[...t.get(s).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:a,reffedNodesByReferencer:l}){const u=s.get(e);if(u&&a.has(e.number)){const f=an(_f(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&Es(i,e.name,[]);const c=i.get(e.name??e.number);for(let f=0;f<c.length;f++){const d=c[f];if(u===d.node||u&&u===d.origin||e===d.origin){c.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:u}),e.name&&i.get(e.name).push({node:e,origin:u}),e.name){const f=Es(o,e.name,new Map);let d=!1;if(u)d=!0;else for(const h of f.values())if(!h.hasDuplicateNameToRemove){d=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:d})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ei(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:s,ref:o}=e;if(s){let c=t;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===o||c.number===o)););r.reffedNodesByReferencer.set(e,c);return}const i=r.subroutineRefMap.get(o),a=o===0,l=a?_f(0):lg(i,r.groupOriginByCopy,null);let u=l;if(!a){const c=cg(xS(i,d=>d.type==="Group"&&!!d.flags)),f=c?ei(r.globalFlags,c):r.globalFlags;wS(f,r.currentFlags)||(u=gt({flags:SS(f)}),u.body[0].body.push(l))}n(Ae(u,t),{traverse:!a})}},_S={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=>CS(i,e));if(!o.length)n(Ae(Ln({negate:!0}),t));else if(o.length>1){const i=gt({atomic:!0,body:o.reverse().map(a=>zn({body:[nl(a.number)]}))});n(Ae(i,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const s=Zp();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function ag(e){is(e,{"*"({node:t,parent:n}){t.parent=n}})}function wS(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function CS(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=ug(n.parent);for(const s of r){if(s===n)break;if(s===e||dg(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function lg(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]=lg(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function _f(e){const t=Qp(e);return t.isRecursive=!0,t}function xS(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function ca(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 cg(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{r.enable?.[s]&&(delete n.disable[s],n.enable[s]=!0),r.disable?.[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function SS({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 ug(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function fg(e){const t=e.find(n=>n.kind==="search_start"||AS(n,{negate:!1})||!kS(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const s=fg(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function dg(e,t){const n=ug(e)??[];for(const r of n)if(r===t||dg(r,t))return!0;return!1}function kS({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function ES(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function AS(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Xp(e.body[0],{type:"Assertion",kind:"search_start"})}function ua(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Dt(e,t){const r=Jp(e,{...t,unicodePropertyMap:rc}).body;return r.length>1||r[0].body.length>1?gt({body:r}):r[0].body[0]}function fa(e,t){return e.negate=t,e}function an(e,t){return e.parent=t,e}function Ae(e,t){return ag(e),e.parent=t,e}function TS(e,t){const n=sg(t),r=ol(n.target,"ES2024"),s=ol(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!s){const h=[e.flags.ignoreCase];is(e,$S,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(p){h.push(p)},setHasCasedChar(){h.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!a)};let u=e;const c={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&a),useFlagMods:s,useFlagV:r,verbose:n.verbose};function f(h){return c.lastNode=u,u=h,lS(RS[h.type],`Unexpected node type "${h.type}"`)(h,c,f)}const d={pattern:e.body.map(f).join("|"),flags:f(e.flags),options:{...e.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],c.captureMap.forEach((h,p)=>{h.hidden&&d._hiddenCaptures.push(p),h.transferTo&&Es(d._captureTransfers,h.transferTo,[]).push(p)}),d}var $S={"*":{enter({node:e},t){if(Cf(e)){const n=t.getCurrentModI();t.pushModI(e.flags?ei({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Cf(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){sc(Ne(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),hg(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&ig.has(e.value)&&t.setHasCasedChar()}},RS={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?se`\B`:se`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:s,number:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(i.hidden=!0,o>a.number&&(i.transferTo=a.number)),t.captureMap.set(o,i),`(${s?`?<${s}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Ne(e),r=nr(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&sc(n)){const s=og(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:s,parent:o}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");qt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(xf)&&(i=[Ti(45),...i.filter(u=>!xf(u))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||qt.bugNestedClassIgnoresNegation)&&!s){const c=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=gt(),d=f.body[0];return f.parent=o,d.parent=f,i=i.filter(h=>!c.includes(h)),e.body=i,i.length?(e.parent=d,d.body.push(e)):f.body.pop(),c.forEach(h=>{const p=zn({body:[h]});h.parent=p,p.parent=f,f.body.push(p)}),n(f)}}t.inCharClass=!0;const u=a();return t.inCharClass=!1,u}const l=i[0];if(r==="union"&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(qt.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&l.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return a()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=nr(n,s),i=nr(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=hg(e);OS(l).forEach(c=>{a.add(Array.isArray(c)?`${nr(c[0],s)}-${nr(c[1],s)}`:nr(c,s))})}return`${o}-${i}${[...a].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},s){if(e==="dot")return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":se`[^\n]`;if(e==="digit")return t?se`\D`:se`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&ig.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?se`\P`:se`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?se`\W`:se`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},s,o){const i=s.currentFlags;n&&(s.currentFlags=ei(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${MS(e,n,s.useFlagMods)}${a})`;return s.currentFlags=i,l},LookaroundAssertion({body:e,kind:t,negate:n},r,s){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(s).join("|")})`},Quantifier(e,t,n){return n(e.body)+DS(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:se`\g<${t}&R=${r}>`}},PS=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),NS=new Set(["-","\\","]","^","["]),IS=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),wf=new Map([[9,se`\t`],[10,se`\n`],[11,se`\v`],[12,se`\f`],[13,se`\r`],[8232,se`\u2028`],[8233,se`\u2029`],[65279,se`\uFEFF`]]),LS=new RegExp("^\\p{Cased}$","u");function sc(e){return LS.test(e)}function hg(e,t){const n=!!t?.firstOnly,r=e.min.value,s=e.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let i=r;i<=s;i++){const a=Ne(i);if(!sc(a))continue;const l=og(a).filter(u=>{const c=u.codePointAt(0);return c<r||c>s});if(l.length&&(o.push(...l),n))break}return o}function nr(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(wf.has(e))return wf.get(e);if(e<32||e>126&&e<160||e>262143||t&&FS(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?IS:NS:PS,o=Ne(e);return(s.has(o)?"\\":"")+o}function OS(e){const t=e.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[];let r=null;for(let s=0;s<t.length;s++)t[s+1]===t[s]+1?r??=t[s]:r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function MS(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function DS({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function Cf({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function FS(e){return e>47&&e<58}function xf({type:e,value:t}){return e==="Character"&&t===45}var BS=class il extends RegExp{#t=new Map;#e=null;#r;#n=null;#s=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,n,r){const s=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),this.#r=o.source,o instanceof il&&(this.#t=o.#t,this.#n=o.#n,this.#s=o.#s,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(s?"":t,n),this.#r=t,this.#t=jS(o.hiddenCaptures,o.transfers),this.#s=o.strategy,this.rawOptions=r??{}}s||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:s,...o}=this.rawOptions;this.#e=new il(this.#r,this.flags,o)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#s==="clip_search"&&n&&r){this.lastIndex=0;const s=this.#o(t.slice(r));return s&&(HS(s,r,t,this.hasIndices),this.lastIndex+=r),s}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let s;this.hasIndices&&(s=[...n.indices],n.indices.length=1);const o=[0];for(let i=1;i<r.length;i++){const{hidden:a,transferTo:l}=this.#t.get(i)??{};if(a?o.push(null):(o.push(n.length),n.push(r[i]),this.hasIndices&&n.indices.push(s[i])),l&&r[i]!==void 0){const u=o[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(n[u]=r[i],this.hasIndices&&(n.indices[u]=s[i]),n.groups){this.#n||(this.#n=US(this.source));const c=this.#n.get(l);c&&(n.groups[c]=r[i],this.hasIndices&&(n.indices.groups[c]=s[i]))}}}return n}};function HS(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 jS(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)Es(n,o,{}).transferTo=r;return n}function US(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 GS(e,t){const n=WS(e,t);return n.options?new BS(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function WS(e,t){const n=sg(t),r=Jp(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:rc}),s=yS(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=TS(s,n),i=iS(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=sS(i.pattern),l=rS(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),u={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=l.hiddenCaptures.sort((p,g)=>p-g),f=Array.from(l.captureTransfers),d=s._strategy,h=u.pattern.length>=n.lazyCompileLength;(c.length||f.length||d||h)&&(u.options={...c.length&&{hiddenCaptures:c},...f.length&&{transfers:f},...d&&{strategy:d},...h&&{lazyCompile:h}})}return u}const Sf=4294967295;class VS{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:s,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const a=s?.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s?.set(i,l),l}catch(l){if(s?.set(i,l),r)return null;throw l}})}regexps;findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function i(a,l,u=0){return{index:a,captureIndices:l.indices.map(c=>c==null?{start:Sf,end:Sf,length:0}:{start:c[0]+u,end:c[1]+u,length:c[1]-c[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const u=l.exec(s);if(!u)continue;if(u.index===n)return i(a,u,0);o.push([a,u,0])}catch(u){if(this.options.forgiving)continue;throw u}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,u,c]of o)if(u.index===a)return i(l,u,c)}return null}}function zS(e,t){return GS(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function qS(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>zS(n,{target:t.target}),{createScanner(n){return new VS(n,t)},createString(n){return{content:n}}}}let KS;const Ur=[];function XS(e){if(Ur.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Ur.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Ur.forEach(n=>n(t))},get(){return KS.value},configurable:!0}),()=>{Ur.splice(Ur.indexOf(e),1)}}function JS(e,t){return gl()?(Hg(e,t),!0):!1}const ZS=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const YS=e=>typeof e<"u",QS=e=>e!=null,ek=Object.prototype.toString,tk=e=>ek.call(e)==="[object Object]",zr=()=>{};function nk(...e){if(e.length!==1)return id(...e);const t=e[0];return typeof t=="function"?hs(um(()=>({get:t,set:zr}))):ce(t)}function rk(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const pg=e=>e();function sk(e=pg,t={}){const{initialState:n="active"}=t,r=nk(n==="active");function s(){r.value=!1}function o(){r.value=!0}const i=(...a)=>{r.value&&e(...a)};return{isActive:hs(r),pause:s,resume:o,eventFilter:i}}function bo(e){return Array.isArray(e)?e:[e]}function ok(e){return _n()}function ik(e,t,n={}){const{eventFilter:r=pg,...s}=n;return zt(e,rk(r,t),s)}function ak(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:u}=sk(r,{initialState:s});return{stop:ik(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:u}}const lk=ak;function ck(e,t=!0,n){ok()?pi(e,n):t?e():Kn(e)}function uk(e,t,n){return zt(e,t,{...n,immediate:!0})}function fk(e={}){let t=0;const n=ce([]);function r(...i){const a=Dn({key:t++,args:i,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(a),a.promise=new Promise((l,u)=>{a.resolve=c=>(a.isResolving=!0,l(c)),a.reject=u}).finally(()=>{a.promise=void 0;const l=n.value.indexOf(a);l!==-1&&n.value.splice(l,1)}),a.promise}function s(...i){return e.singleton&&n.value.length>0?n.value[0].promise:r(...i)}const o=je((i,{slots:a})=>{const l=()=>n.value.map(u=>{var c;return yn(ge,{key:u.key},(c=a.default)===null||c===void 0?void 0:c.call(a,u))});return e.transition?()=>yn(sb,e.transition,l):l});return o.start=s,o}const cr=ZS?window:void 0;function ur(e){var t;const n=st(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function as(...e){const t=(r,s,o,i)=>(r.addEventListener(s,o,i),()=>r.removeEventListener(s,o,i)),n=ke(()=>{const r=bo(st(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return uk(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(o=>ur(o)))!==null&&r!==void 0?r:[cr].filter(o=>o!=null),bo(st(n.value?e[1]:e[0])),bo(ie(n.value?e[2]:e[1])),st(n.value?e[3]:e[2])]},([r,s,o,i],a,l)=>{if(!r?.length||!s?.length||!o?.length)return;const u=tk(i)?{...i}:i,c=r.flatMap(f=>s.flatMap(d=>o.map(h=>t(f,d,h,u))));l(()=>{c.forEach(f=>f())})},{flush:"post"})}function dk(e,t,n={}){const{window:r=cr,ignore:s=[],capture:o=!0,detectIframe:i=!1,controls:a=!1}=n;if(!r)return a?{stop:zr,cancel:zr,trigger:zr}:zr;let l=!0;const u=y=>st(s).some(b=>{if(typeof b=="string")return Array.from(r.document.querySelectorAll(b)).some(w=>w===y.target||y.composedPath().includes(w));{const w=ur(b);return w&&(y.target===w||y.composedPath().includes(w))}});function c(y){const b=st(y);return b&&b.$.subTree.shapeFlag===16}function f(y,b){const w=st(y),m=w.$.subTree&&w.$.subTree.children;return m==null||!Array.isArray(m)?!1:m.some(v=>v.el===b.target||b.composedPath().includes(v.el))}const d=y=>{const b=ur(e);if(y.target!=null&&!(!(b instanceof Element)&&c(e)&&f(e,y))&&!(!b||b===y.target||y.composedPath().includes(b))){if("detail"in y&&y.detail===0&&(l=!u(y)),!l){l=!0;return}t(y)}};let h=!1;const p=[as(r,"click",y=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(y))},{passive:!0,capture:o}),as(r,"pointerdown",y=>{const b=ur(e);l=!u(y)&&!!(b&&!y.composedPath().includes(b))},{passive:!0}),i&&as(r,"blur",y=>{setTimeout(()=>{var b;const w=ur(e);((b=r.document.activeElement)===null||b===void 0?void 0:b.tagName)==="IFRAME"&&!w?.contains(r.document.activeElement)&&t(y)},0)},{passive:!0})].filter(Boolean),g=()=>p.forEach(y=>y());return a?{stop:g,cancel:()=>{l=!1},trigger:y=>{l=!0,d(y),l=!1}}:g}function hk(e){return JSON.parse(JSON.stringify(e))}const ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},so="__vueuse_ssr_handlers__",pk=gk();function gk(){return so in ro||(ro[so]=ro[so]||{}),ro[so]}function mk(e,t){return pk[e]||t}function yk(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const bk={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},kf="vueuse-storage";function vk(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=cr,eventFilter:d,onError:h=S=>{console.error(S)},initOnMounted:p}=r,g=(c?Cr:ce)(t),y=ke(()=>st(e));if(!n)try{n=mk("getDefaultStorage",()=>cr?.localStorage)()}catch(S){h(S)}if(!n)return g;const b=st(t),w=yk(b),m=(s=r.serializer)!==null&&s!==void 0?s:bk[w],{pause:v,resume:C}=lk(g,S=>E(S),{flush:o,deep:i,eventFilter:d});zt(y,()=>A(),{flush:o});let $=!1;const D=S=>{p&&!$||A(S)},U=S=>{p&&!$||k(S)};f&&a&&(n instanceof Storage?as(f,"storage",D,{passive:!0}):as(f,kf,U)),p?ck(()=>{$=!0,A()}):A();function R(S,N){if(f){const P={key:y.value,oldValue:S,newValue:N,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",P):new CustomEvent(kf,{detail:P}))}}function E(S){try{const N=n.getItem(y.value);if(S==null)R(N,null),n.removeItem(y.value);else{const P=m.write(S);N!==P&&(n.setItem(y.value,P),R(N,P))}}catch(N){h(N)}}function B(S){const N=S?S.newValue:n.getItem(y.value);if(N==null)return l&&b!=null&&n.setItem(y.value,m.write(b)),b;if(!S&&u){const P=m.read(N);return typeof u=="function"?u(P,b):w==="object"&&!Array.isArray(P)?{...b,...P}:P}else return typeof N!="string"?N:m.read(N)}function A(S){if(!(S&&S.storageArea!==n)){if(S&&S.key==null){g.value=b;return}if(!(S&&S.key!==y.value)){v();try{const N=m.write(g.value);(S===void 0||S?.newValue!==N)&&(g.value=B(S))}catch(N){h(N)}finally{S?Kn(C):C()}}}}function k(S){A(S.detail)}return g}function gg(e,t,n,r={}){var s,o;const{clone:i=!1,passive:a=!1,eventName:l,deep:u=!1,defaultValue:c,shouldEmit:f}=r,d=_n(),h=n||d?.emit||(d==null||(s=d.$emit)===null||s===void 0?void 0:s.bind(d))||(d==null||(o=d.proxy)===null||o===void 0||(o=o.$emit)===null||o===void 0?void 0:o.bind(d?.proxy));let p=l;t||(t="modelValue"),p=p||`update:${t.toString()}`;const g=w=>i?typeof i=="function"?i(w):hk(w):w,y=()=>YS(e[t])?g(e[t]):c,b=w=>{f?f(w)&&h(p,w):h(p,w)};if(a){const w=ce(y());let m=!1;return zt(()=>e[t],v=>{m||(m=!0,w.value=g(v),Kn(()=>m=!1))}),zt(w,v=>{!m&&(v!==e[t]||u)&&b(v)},{deep:u}),w}else return ke({get(){return y()},set(w){b(w)}})}const ls=ce([]),oo=vk("nuxt-link-checker:show-live-inspections",!0),cs=ce([]),qr=ce(0),On=ce(""),vo=ce(null);async function mg(){al.value&&(vo.value=await al.value("/__link-checker__/debug.json"))}const _k="nuxt-link-checker-rpc",al=ce(),yg=ce(),Rr=ce(),oc=ce();XS(async e=>{al.value=e.host.app.$fetch;const n=e.host.nuxt.vueApp._instance?.appContext.provides.linkChecker;ls.value=n.linkDb.value,cs.value=[...n.visibleLinks],oc.value=e.devtools.rpc,yg.value=e.devtools,On.value=zb(e.host.getIframe()?.src||"").link,Rr.value=e.devtools.extendClientRpc(_k,{queueWorking(r){qr.value=r.queueLength,ls.value=ie(n.linkDb),cs.value=[...n.visibleLinks]},updated(){ls.value=ie(n.linkDb),cs.value=[...n.visibleLinks]},filter(r){On.value=r.link}}),Rr.value.connected(),mg()});const ll=ce();async function wk(){return ll.value=await ax({themes:[In(()=>import("./CVO1_9PV.js"),[],import.meta.url),In(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[In(()=>import("./DDvKHl5l.js"),__vite__mapDeps([0,1,2]),import.meta.url),In(()=>import("./wDzz0qaB.js"),[],import.meta.url),In(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:qS()}),ll.value}function bg(e,t){return ke(()=>{const n=yg.value?.colorMode||"light";return ll.value.codeToHtml(st(e)||"",{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Ck=["innerHTML"],xk=je({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},setup(e){const t=e,n=ke(()=>{const r=bg(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(G(),Z("pre",{class:Te(["n-code-block w-full",e.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Ck))}}),vg=Object.assign(xk,{__name:"OCodeBlock"}),Sk=je({__name:"CodeHighlight",props:{code:{},lang:{},link:{}},setup(e){const t=e;function n(s){return s.replace(t.link,`<span class="highlight">${t.link}</span>`)}const r=ce();return(s,o)=>{const i=vg;return G(),me(i,Xn({ref_key:"elRef",ref:r,code:e.code,lang:e.lang,"transform-rendered":n},s.$attrs),null,16,["code","lang"])}}}),kk=Object.assign(Sk,{__name:"CodeHighlight"}),Ek={},Ak={class:"n-card n-card-base"};function Tk(e,t){return G(),Z("div",Ak,[Re(e.$slots,"default")])}const ic=Object.assign(Ls(Ek,[["render",Tk]]),{__name:"NCard"}),_g=fk(),$k={key:0,"text-sm":"",class:"lg:flex w-full gap-5"},Rk={class:"flex-shrink"},Pk={style:{"min-width":"600px"}},Nk={class:"flex space-x-2"},Ik={class:"opacity-90 truncate",style:{"max-width":"150px"}},Lk={class:""},Ok={class:"flex gap-2 w-full"},Mk={style:{"min-width":"150px","margin-top":"1px"}},Dk={key:0,class:"text-red-800 text-xs flex items-center font-medium dark:text-red-300"},Fk={key:1,class:"text-yellow-800 flex items-center text-xs font-medium dark:text-yellow-300"},Bk={class:"text-gray-500"},Hk={class:"flex-grow"},jk={key:0},Uk={op60:""},Gk={key:0},Wk={key:0,class:"flex gap-2 items-center w-full"},Vk={key:1,class:"flex flex-col w-full"},zk={key:0},qk={flex:"",mb1:"","items-center":""},Kk=je({__name:"LinkInspection",props:{item:{}},setup(e){const t=e;function n(o){oc.value?.openInEditor(o)}async function r(){await _g.start(t.item)&&await Rr.value.applyLinkFixes(t.item.diff,t.item.link,t.item.fix)}async function s(){await Rr.value.scrollToLink(t.item.link)}return(o,i)=>{const a=Is,l=ap,u=Jt("VTooltip"),c=Wl,f=kk,d=ic;return e.item?(G(),Z("div",$k,[F("div",Rk,[K(l,{class:"px-2 py-1",onClick:s},{default:re(()=>[K(a,{icon:"carbon:cursor-2",class:"text-gray-500"})]),_:1})]),F("div",Pk,[F("div",Nk,[K(u,null,{popper:re(()=>[ue(Se(e.item.textContent),1)]),default:re(()=>[F("div",Ik,Se(e.item.textContent),1)]),_:1}),K(c,{external:"",target:"_blank",to:e.item.link,"font-mono":"",mb3:"",class:"truncate"},{default:re(()=>[ue(Se(e.item.link),1)]),_:1},8,["to"])]),F("div",Lk,[(G(!0),Z(ge,null,jt([...e.item.error,...e.item.warning],(h,p)=>(G(),Z("div",{key:p,flex:"~ row gap-2 items-center",mb2:""},[F("div",Ok,[F("div",Mk,[h.scope==="error"?(G(),Z("div",Dk,[...i[0]||(i[0]=[F("span",{"i-carbon-error":"","mr-1":"","text-xs":""},null,-1),ue(" Error ",-1)])])):(G(),Z("div",Fk,[...i[1]||(i[1]=[F("span",{"i-carbon-warning":"","mr-1":"","text-xs":""},null,-1),ue(" Warning ",-1)])])),F("span",Bk,Se(h.name),1)]),F("div",Hk,[F("div",null,Se(h.message),1),h.tip?(G(),Z("div",jk,[F("span",Uk,Se(h.tip),1)])):Ee("",!0),h.fix?(G(),Z("button",{key:1,class:"hover:shadow-lg transition mt-2 items-center gap-2 inline-flex border-green-500/50 border-1 rounded-lg shadow-sm px-3 py-1",onClick:r},[K(a,{icon:"carbon:magic-wand"}),h.fixDescription?(G(),Z("div",Gk,Se(h.fixDescription),1)):Ee("",!0)])):Ee("",!0)])])]))),128))])]),e.item.passes?(G(),Z("div",Wk,[...i[2]||(i[2]=[F("div",{style:{"flex-basis":"4rem"}},[F("span",{class:"text-green-800 text-xs flex items-center font-medium dark:text-green-300"},[F("span",{"i-carbon-checkmark-outline":"","mr-1":"","text-xs":""}),ue(" Pass ")])],-1)])])):(G(),Z("div",Vk,[e.item.sources?.length?Ee("",!0):(G(),Z("div",zk,[...i[3]||(i[3]=[F("div",{class:"text-gray-500"}," No source code found. ",-1)])])),(G(!0),Z(ge,null,jt(e.item.sources,(h,p)=>(G(),Z("div",{key:p,mb4:""},[F("div",qk,[K(c,{external:"",type:"button",op50:"","text-xs":"","font-mono":"",link:h.filepath,class:"cursor-pointer",onClick:hb(g=>n(h.filepath),["prevent"])},{default:re(()=>[ue(Se(h.filepath),1)]),_:2},1032,["link","onClick"])]),(G(!0),Z(ge,null,jt(h.previews,(g,y)=>(G(),me(d,{key:y,"items-center":"","justify-between":"","of-hidden":""},{default:re(()=>[K(f,{link:e.item.link,code:g.code,lang:"vue-html",class:"overflow-auto",style:Vt({"--start":Math.max(g.lineNumber-2,1)})},null,8,["link","code","style"])]),_:2},1024))),128))]))),128))]))])):Ee("",!0)}}}),Xk=Object.assign(Kk,{__name:"LinkInspection"}),Jk={"text-sm":"",class:"flex w-full gap-5"},Zk={style:{"min-width":"600px"}},Yk=je({__name:"LinkPassing",props:{item:{}},setup(e){return(t,n)=>{const r=Wl;return G(),Z("div",Jk,[F("div",Zk,[K(r,{external:"",target:"_blank",to:e.item.link,"font-mono":"",mb3:""},{default:re(()=>[ue(Se(e.item.link),1)]),_:1},8,["to"])]),n[0]||(n[0]=F("div",{class:"flex gap-2 items-center w-full"},[F("div",{style:{"flex-basis":"4rem"}},[F("span",{class:"text-green-800 text-xs flex items-center font-medium dark:text-green-300"},[F("span",{"i-carbon-checkmark-outline":"","mr-1":"","text-xs":""}),ue(" Pass ")])])],-1))])}}}),Qk=Object.assign(Yk,{__name:"LinkPassing"}),eE={flex:"~ gap-3","items-center":""},tE={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(G(),Z("div",eE,[e.icon?(G(),Z("div",{key:0,class:Te(e.icon)},null,2)):Ee("",!0),Re(t.$slots,"default",{},()=>[F("div",null,Se(e.text),1)])]))}},nE=["open"],rE={"text-base":""},sE={key:0,"text-sm":"",op50:""},oE=je({__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=gg(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=Is,a=tE;return G(),Z(ge,null,[F("details",{open:ie(n),onToggle:r},[F("summary",{class:Te(["cursor-pointer select-none n-bg-active hover:bg-active p4 rounded transition-all",e.collapse?"":"pointer-events-none"])},[K(a,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:Te([ie(n)?"op100":"op60",e.headerClass])},{default:re(()=>[F("div",null,[F("div",rE,[Re(s.$slots,"text",{},()=>[ue(Se(e.text),1)],!0)]),e.description||s.$slots.description?(G(),Z("div",sE,[Re(s.$slots,"description",{},()=>[ue(Se(e.description),1)],!0)])):Ee("",!0)]),o[0]||(o[0]=F("div",{class:"flex-auto"},null,-1)),Re(s.$slots,"actions",{},void 0,!0),e.collapse?(G(),me(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):Ee("",!0)]),_:3},8,["icon","text","class"])],2),F("div",{class:Te(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[Re(s.$slots,"details",{},void 0,!0),F("div",{class:Te([e.containerClass,"mt1"])},[Re(s.$slots,"default",{},void 0,!0)],2),Re(s.$slots,"footer",{},void 0,!0)],2)],40,nE),o[1]||(o[1]=F("div",{class:"x-divider"},null,-1))],64)}}}),iE=Object.assign(Ls(oE,[["__scopeId","data-v-348c1d92"]]),{__name:"OSectionBlock"}),aE=je({__name:"CodeDiff",props:{code:{},lang:{},diff:{}},setup(e){const t=e,n=ce(t.diff.added[0]-2);function r(o){let i=0;const a=new Set;return o.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,u=>{i++;const c=t.diff.added.includes(i-1),f=t.diff.removed.includes(i-1);if(c||f)for(let d=i-3;d<i+3;d++)d>=0&&a.add(d);return c?'class="line line-added"':f?'class="line line-removed"':u}).replace(/<code>([\s\S]*)<\/code>/,(u,c)=>`<code>${c.split(`
|
|
156
|
+
`).filter((h,p)=>a.has(p+1)).join(`
|
|
157
|
+
`)}</code>`)}const s=ce();return(o,i)=>{const a=vg;return G(),me(a,{ref_key:"elRef",ref:s,code:e.diff.result,lang:e.lang,"transform-rendered":r,style:Vt(`--start: ${n.value};`)},null,8,["code","lang","style"])}}}),lE=Object.assign(aE,{__name:"CodeDiff"}),cE={class:"n-tip n-tip-base"},uE={__name:"NTip",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>{const r=Is;return G(),Z("div",cE,[Re(t.$slots,"icon",{},()=>[e.icon?(G(),me(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):Ee("",!0)]),F("div",null,[Re(t.$slots,"default")])])}}};var wg=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ti=wg.join(","),Cg=typeof Element>"u",qn=Cg?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ni=!Cg&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},As=function(t,n){var r;n===void 0&&(n=!0);var s=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=s===""||s==="true",i=o||n&&t&&As(t.parentNode);return i},fE=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},xg=function(t,n,r){if(As(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(ti));return n&&qn.call(t,ti)&&s.unshift(t),s=s.filter(r),s},ri=function(t,n,r){for(var s=[],o=Array.from(t);o.length;){var i=o.shift();if(!As(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),l=a.length?a:i.children,u=ri(l,!0,r);r.flatten?s.push.apply(s,u):s.push({scopeParent:i,candidates:u})}else{var c=qn.call(i,ti);c&&r.filter(i)&&(n||!t.includes(i))&&s.push(i);var f=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),d=!As(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(f&&d){var h=ri(f===!0?i.children:f.children,!0,r);r.flatten?s.push.apply(s,h):s.push({scopeParent:i,candidates:h})}else o.unshift.apply(o,i.children)}}return s},Sg=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Mn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||fE(t))&&!Sg(t)?0:t.tabIndex},dE=function(t,n){var r=Mn(t);return r<0&&n&&!Sg(t)?0:r},hE=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},kg=function(t){return t.tagName==="INPUT"},pE=function(t){return kg(t)&&t.type==="hidden"},gE=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},mE=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},yE=function(t){if(!t.name)return!0;var n=t.form||ni(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(t.name));else try{s=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=mE(s,t.form);return!o||o===t},bE=function(t){return kg(t)&&t.type==="radio"},vE=function(t){return bE(t)&&!yE(t)},_E=function(t){var n,r=t&&ni(t),s=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var i,a,l;for(o=!!((i=s)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(s)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&s;){var u,c,f;r=ni(s),s=(u=r)===null||u===void 0?void 0:u.host,o=!!((c=s)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(s))}}return o},Ef=function(t){var n=t.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},wE=function(t,n){var r=n.displayCheck,s=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var o=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!o}if(getComputedStyle(t).visibility==="hidden")return!0;var i=qn.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(qn.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof s=="function"){for(var l=t;t;){var u=t.parentElement,c=ni(t);if(u&&!u.shadowRoot&&s(u)===!0)return Ef(t);t.assignedSlot?t=t.assignedSlot:!u&&c!==t.ownerDocument?t=c.host:t=u}t=l}if(_E(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Ef(t);return!1},CE=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return qn.call(n,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}n=n.parentElement}return!1},si=function(t,n){return!(n.disabled||As(n)||pE(n)||wE(n,t)||gE(n)||CE(n))},cl=function(t,n){return!(vE(n)||Mn(n)<0||!si(t,n))},xE=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Eg=function(t){var n=[],r=[];return t.forEach(function(s,o){var i=!!s.scopeParent,a=i?s.scopeParent:s,l=dE(a,i),u=i?Eg(s.candidates):a;l===0?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:o,tabIndex:l,item:s,isScope:i,content:u})}),r.sort(hE).reduce(function(s,o){return o.isScope?s.push.apply(s,o.content):s.push(o.content),s},[]).concat(n)},SE=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ri([t],n.includeContainer,{filter:cl.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:xE}):r=xg(t,n.includeContainer,cl.bind(null,n)),Eg(r)},kE=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ri([t],n.includeContainer,{filter:si.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=xg(t,n.includeContainer,si.bind(null,n)),r},rr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return qn.call(t,ti)===!1?!1:cl(n,t)},EE=wg.concat("iframe").join(","),da=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return qn.call(t,EE)===!1?!1:si(n,t)};function ul(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function AE(e){if(Array.isArray(e))return ul(e)}function TE(e,t,n){return(t=IE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $E(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
158
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Tf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Af(Object(n),!0).forEach(function(r){TE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PE(e){return AE(e)||$E(e)||LE(e)||RE()}function NE(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IE(e){var t=NE(e,"string");return typeof t=="symbol"?t:t+""}function LE(e,t){if(e){if(typeof e=="string")return ul(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ul(e,t):void 0}}var $f={activateTrap:function(t,n){if(t.length>0){var r=t[t.length-1];r!==n&&r._setPausedState(!0)}var s=t.indexOf(n);s===-1||t.splice(s,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&!t[t.length-1]._isManuallyPaused()&&t[t.length-1]._setPausedState(!1)}},OE=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},ME=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},us=function(t){return t?.key==="Tab"||t?.keyCode===9},DE=function(t){return us(t)&&!t.shiftKey},FE=function(t){return us(t)&&t.shiftKey},Rf=function(t){return setTimeout(t,0)},Gr=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return typeof t=="function"?t.apply(void 0,r):t},io=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},BE=[],HE=function(t,n){var r=n?.document||document,s=n?.trapStack||BE,o=Tf({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:DE,isKeyBackward:FE},n),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,l=function(k,S,N){return k&&k[S]!==void 0?k[S]:o[N||S]},u=function(k,S){var N=typeof S?.composedPath=="function"?S.composedPath():void 0;return i.containerGroups.findIndex(function(P){var W=P.container,O=P.tabbableNodes;return W.contains(k)||N?.includes(W)||O.find(function(J){return J===k})})},c=function(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=S.hasFallback,P=N===void 0?!1:N,W=S.params,O=W===void 0?[]:W,J=o[k];if(typeof J=="function"&&(J=J.apply(void 0,PE(O))),J===!0&&(J=void 0),!J){if(J===void 0||J===!1)return J;throw new Error("`".concat(k,"` was specified but was not a node, or did not return a node"))}var be=J;if(typeof J=="string"){try{be=r.querySelector(J)}catch(ve){throw new Error("`".concat(k,'` appears to be an invalid selector; error="').concat(ve.message,'"'))}if(!be&&!P)throw new Error("`".concat(k,"` as selector refers to no known node"))}return be},f=function(){var k=c("initialFocus",{hasFallback:!0});if(k===!1)return!1;if(k===void 0||k&&!da(k,o.tabbableOptions))if(u(r.activeElement)>=0)k=r.activeElement;else{var S=i.tabbableGroups[0],N=S&&S.firstTabbableNode;k=N||c("fallbackFocus")}else k===null&&(k=c("fallbackFocus"));if(!k)throw new Error("Your focus-trap needs to have at least one focusable element");return k},d=function(){if(i.containerGroups=i.containers.map(function(k){var S=SE(k,o.tabbableOptions),N=kE(k,o.tabbableOptions),P=S.length>0?S[0]:void 0,W=S.length>0?S[S.length-1]:void 0,O=N.find(function(ve){return rr(ve)}),J=N.slice().reverse().find(function(ve){return rr(ve)}),be=!!S.find(function(ve){return Mn(ve)>0});return{container:k,tabbableNodes:S,focusableNodes:N,posTabIndexesFound:be,firstTabbableNode:P,lastTabbableNode:W,firstDomTabbableNode:O,lastDomTabbableNode:J,nextTabbableNode:function(Me){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ct=S.indexOf(Me);return Ct<0?Yt?N.slice(N.indexOf(Me)+1).find(function(Cn){return rr(Cn)}):N.slice(0,N.indexOf(Me)).reverse().find(function(Cn){return rr(Cn)}):S[Ct+(Yt?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(k){return k.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(k){return k.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(k){var S=k.activeElement;if(S)return S.shadowRoot&&S.shadowRoot.activeElement!==null?h(S.shadowRoot):S},p=function(k){if(k!==!1&&k!==h(document)){if(!k||!k.focus){p(f());return}k.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=k,OE(k)&&k.select()}},g=function(k){var S=c("setReturnFocus",{params:[k]});return S||(S===!1?!1:k)},y=function(k){var S=k.target,N=k.event,P=k.isBackward,W=P===void 0?!1:P;S=S||io(N),d();var O=null;if(i.tabbableGroups.length>0){var J=u(S,N),be=J>=0?i.containerGroups[J]:void 0;if(J<0)W?O=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:O=i.tabbableGroups[0].firstTabbableNode;else if(W){var ve=i.tabbableGroups.findIndex(function(en){var xn=en.firstTabbableNode;return S===xn});if(ve<0&&(be.container===S||da(S,o.tabbableOptions)&&!rr(S,o.tabbableOptions)&&!be.nextTabbableNode(S,!1))&&(ve=J),ve>=0){var Me=ve===0?i.tabbableGroups.length-1:ve-1,Yt=i.tabbableGroups[Me];O=Mn(S)>=0?Yt.lastTabbableNode:Yt.lastDomTabbableNode}else us(N)||(O=be.nextTabbableNode(S,!1))}else{var Ct=i.tabbableGroups.findIndex(function(en){var xn=en.lastTabbableNode;return S===xn});if(Ct<0&&(be.container===S||da(S,o.tabbableOptions)&&!rr(S,o.tabbableOptions)&&!be.nextTabbableNode(S))&&(Ct=J),Ct>=0){var Cn=Ct===i.tabbableGroups.length-1?0:Ct+1,Qt=i.tabbableGroups[Cn];O=Mn(S)>=0?Qt.firstTabbableNode:Qt.firstDomTabbableNode}else us(N)||(O=be.nextTabbableNode(S))}}else O=c("fallbackFocus");return O},b=function(k){var S=io(k);if(!(u(S,k)>=0)){if(Gr(o.clickOutsideDeactivates,k)){a.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Gr(o.allowOutsideClick,k)||k.preventDefault()}},w=function(k){var S=io(k),N=u(S,k)>=0;if(N||S instanceof Document)N&&(i.mostRecentlyFocusedNode=S);else{k.stopImmediatePropagation();var P,W=!0;if(i.mostRecentlyFocusedNode)if(Mn(i.mostRecentlyFocusedNode)>0){var O=u(i.mostRecentlyFocusedNode),J=i.containerGroups[O].tabbableNodes;if(J.length>0){var be=J.findIndex(function(ve){return ve===i.mostRecentlyFocusedNode});be>=0&&(o.isKeyForward(i.recentNavEvent)?be+1<J.length&&(P=J[be+1],W=!1):be-1>=0&&(P=J[be-1],W=!1))}}else i.containerGroups.some(function(ve){return ve.tabbableNodes.some(function(Me){return Mn(Me)>0})})||(W=!1);else W=!1;W&&(P=y({target:i.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(i.recentNavEvent)})),p(P||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},m=function(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=k;var N=y({event:k,isBackward:S});N&&(us(k)&&k.preventDefault(),p(N))},v=function(k){(o.isKeyForward(k)||o.isKeyBackward(k))&&m(k,o.isKeyBackward(k))},C=function(k){ME(k)&&Gr(o.escapeDeactivates,k)!==!1&&(k.preventDefault(),a.deactivate())},$=function(k){var S=io(k);u(S,k)>=0||Gr(o.clickOutsideDeactivates,k)||Gr(o.allowOutsideClick,k)||(k.preventDefault(),k.stopImmediatePropagation())},D=function(){if(i.active)return $f.activateTrap(s,a),i.delayInitialFocusTimer=o.delayInitialFocus?Rf(function(){p(f())}):p(f()),r.addEventListener("focusin",w,!0),r.addEventListener("mousedown",b,{capture:!0,passive:!1}),r.addEventListener("touchstart",b,{capture:!0,passive:!1}),r.addEventListener("click",$,{capture:!0,passive:!1}),r.addEventListener("keydown",v,{capture:!0,passive:!1}),r.addEventListener("keydown",C),a},U=function(){if(i.active)return r.removeEventListener("focusin",w,!0),r.removeEventListener("mousedown",b,!0),r.removeEventListener("touchstart",b,!0),r.removeEventListener("click",$,!0),r.removeEventListener("keydown",v,!0),r.removeEventListener("keydown",C),a},R=function(k){var S=k.some(function(N){var P=Array.from(N.removedNodes);return P.some(function(W){return W===i.mostRecentlyFocusedNode})});S&&p(f())},E=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(R):void 0,B=function(){E&&(E.disconnect(),i.active&&!i.paused&&i.containers.map(function(k){E.observe(k,{subtree:!0,childList:!0})}))};return a={get active(){return i.active},get paused(){return i.paused},activate:function(k){if(i.active)return this;var S=l(k,"onActivate"),N=l(k,"onPostActivate"),P=l(k,"checkCanFocusTrap");P||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=h(r),S?.();var W=function(){P&&d(),D(),B(),N?.()};return P?(P(i.containers.concat()).then(W,W),this):(W(),this)},deactivate:function(k){if(!i.active)return this;var S=Tf({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},k);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,U(),i.active=!1,i.paused=!1,B(),$f.deactivateTrap(s,a);var N=l(S,"onDeactivate"),P=l(S,"onPostDeactivate"),W=l(S,"checkCanReturnFocus"),O=l(S,"returnFocus","returnFocusOnDeactivate");N?.();var J=function(){Rf(function(){O&&p(g(i.nodeFocusedBeforeActivation)),P?.()})};return O&&W?(W(g(i.nodeFocusedBeforeActivation)).then(J,J),this):(J(),this)},pause:function(k){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,k)):this},unpause:function(k){return i.active?(i.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,k)):this},updateContainerElements:function(k){var S=[].concat(k).filter(Boolean);return i.containers=S.map(function(N){return typeof N=="string"?r.querySelector(N):N}),i.active&&d(),B(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(k,S){if(i.paused===k)return this;if(i.paused=k,k){var N=l(S,"onPause"),P=l(S,"onPostPause");N?.(),U(),B(),P?.()}else{var W=l(S,"onUnpause"),O=l(S,"onPostUnpause");W?.(),d(),D(),B(),O?.()}return this}}}),a.updateContainerElements(t),a};function jE(e,t={}){let n;const{immediate:r,...s}=t,o=Cr(!1),i=Cr(!1),a=f=>n&&n.activate(f),l=f=>n&&n.deactivate(f),u=()=>{n&&(n.pause(),i.value=!0)},c=()=>{n&&(n.unpause(),i.value=!1)};return zt(ke(()=>bo(st(e)).map(f=>{const d=st(f);return typeof d=="string"?d:ur(d)}).filter(QS)),f=>{if(f.length)if(!n)n=HE(f,{...s,onActivate(){o.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){o.value=!1,t.onDeactivate&&t.onDeactivate()}}),r&&a();else{const d=n?.active;n?.updateContainerElements(f),!d&&r&&a()}},{flush:"post"}),JS(()=>l()),{hasFocus:o,isPaused:i,activate:a,deactivate:l,pause:u,unpause:c}}const UE={inheritAttrs:!1},GE=Object.assign(UE,{__name:"NDialog",props:{modelValue:{type:Boolean,required:!1,default:!1},dim:{type:Boolean,required:!1,default:!0},autoClose:{type:Boolean,required:!1,default:!0}},emits:["close","update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=gg(n,"modelValue",r,{passive:!0}),o=ce(null),i=ce(!1),{activate:a,deactivate:l}=jE(ke(()=>o.value||document.body),{immediate:!1});return $d(()=>{!i.value&&s.value&&(i.value=!0),s.value&&o.value?Kn(a):l()}),dk(o,()=>{n.modelValue&&n.autoClose&&(s.value=!1,r("close"))},{ignore:["a","button","summary"]}),(u,c)=>{const f=ic;return i.value?(G(),me(km,{key:0,to:"body"},[ud(F("div",{class:Te(["fixed inset-0 z-100 flex items-center justify-center n-glass-effect n-transition",[ie(s)?"":"op0 pointer-events-none visibility-none"]]),role:"dialog","aria-modal":"true"},[F("div",{class:Te(["absolute inset-0 -z-1",[e.dim?"glass-effect":""]])},null,2),K(f,Xn(u.$attrs,{ref_key:"card",ref:o,class:"max-h-screen of-auto"}),{default:re(()=>[Re(u.$slots,"default")]),_:3},16)],2),[[Uy,ie(s)]])])):Ee("",!0)}}}),WE={"my-10":""},VE={flex:"~ col gap-2","w-200":"",p4:"",border:"t base"},zE={flex:"","items-center":"","gap-2":"",mb1:""},qE={"text-sm":"","gap-2":"",flex:"","flex-row":"",mb1:"","justify-end":""},KE={class:"text-green-500"},XE={class:"text-red-500"},JE=["onClick"],ZE={flex:"~ col gap-1 items-start",px4:"",py2:""},YE={flex:"~ gap-3",mt2:"","justify-end":""},QE=je({__name:"FixActionDialog",setup(e){function t(r){oc.value?.openInEditor(r)}function n(r,s){s(!1)}return(r,s)=>{const o=lE,i=ic,a=uE,l=ap,u=GE;return G(),me(ie(_g),null,{default:re(({resolve:c,args:f})=>[F("div",WE,[K(u,{"model-value":!0,style:{"max-height":"80vh"},"onUpdate:modelValue":d=>n("a",c),onClose:d=>n("b",c)},{default:re(()=>[F("div",VE,[s[3]||(s[3]=F("h2",{"text-xl":"",class:"text-primary"}," Confirm Code Diff ",-1)),(G(!0),Z(ge,null,jt(f[0].diff,(d,h)=>(G(),Z("div",{key:h},[F("div",zE,[F("div",qE,[F("span",KE,"+"+Se(d.diff.added.length),1),F("span",XE,"-"+Se(d.diff.removed.length),1)]),F("button",{type:"button",op50:"","text-xs":"","font-mono":"",onClick:p=>t(d.filepath)},Se(d.filepath),9,JE)]),(G(),me(i,{key:h,"items-center":"","justify-between":"","of-hidden":"","max-h-50":"",style:{overflow:"auto"}},{default:re(()=>[F("div",ZE,[K(o,Xn({ref_for:!0},d,{lang:"vue-html",class:"overflow-auto"}),null,16)])]),_:2},1024))]))),128)),F("div",YE,[K(a,{n:"sm purple","flex-auto":"",icon:"carbon-chemistry"},{default:re(()=>[...s[0]||(s[0]=[ue(" Experimental. ",-1)])]),_:1}),K(l,{onClick:d=>c(!1)},{default:re(()=>[...s[1]||(s[1]=[ue(" Cancel ",-1)])]),_:1},8,["onClick"]),K(l,{n:"solid",capitalize:"",class:"n-blue",onClick:d=>c(!0)},{default:re(()=>[...s[2]||(s[2]=[ue(" Apply Fix ",-1)])]),_:1},8,["onClick"])])])]),_:2},1032,["onUpdate:modelValue","onClose"])])]),_:1})}}}),eA=Object.assign(QE,{__name:"FixActionDialog"}),tA=globalThis.setInterval,nA={class:"relative n-bg-base flex flex-col"},rA={class:"sticky top-0 z-2 px-4 pt-4"},sA={class:"flex justify-between items-start",mb2:""},oA={class:"flex space-x-5"},iA={"text-xl":"",flex:"","items-center":"","gap-2":""},aA={class:"flex items-center space-x-3 text-xl"},lA={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},cA={class:"px-5 py-2"},uA={"text-lg":"",flex:"","items-center":""},fA={class:"px-5 py-2"},dA={"text-lg":"",flex:"","items-center":""},hA={class:"px-5 py-2"},pA={"text-lg":"",flex:"","items-center":""},gA={class:"px-5 py-2"},mA={"text-lg":"",flex:"","items-center":""},yA=["value","title"],bA={class:"items-center space-x-3 hidden lg:flex"},vA={class:"opacity-80 text-sm"},_A={class:"opacity-80 text-sm"},wA={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},CA={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},xA={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},SA={key:1},kA={key:0,"text-sm":"",flex:"","items-center":"","gap-1":"",mb6:""},EA={key:1,class:""},AA={flex:"","items-center":"",p3:"","gap-3":"","text-sm":""},TA={key:0,mr5:""},$A={key:1,"text-xs":"",flex:"","items-center":"","gap-1":""},RA={key:2,"text-xs":"",flex:"","items-center":"","gap-1":""},PA={key:3,class:"flex items-center gap-1"},NA={key:2},IA={key:2},LA={class:"opacity-80 text-base mb-1"},OA={class:"opacity-80 text-base mb-1"},MA={key:3},DA={class:"opacity-80 text-base mb-1"},FA={class:"px-3 py-2 space-y-5"},BA=["innerHTML"],HA={key:4,class:"h-full max-h-full overflow-hidden"},jA=je({__name:"app",async setup(e){let t,n;[t,n]=Um(()=>wk()),await t,n();const r=ce(0),s=tA(()=>{r.value++,r.value>=3&&clearInterval(s)},2e3),o=ke(()=>{const g=cs.value;let y=[...ls.value];return On.value?y=y.filter(b=>b.link===On.value):y=y.filter(b=>g.includes(b.link)),y.sort((b,w)=>b.fix&&!w.fix?1:-1)}),i=ke(()=>{let g=0;return o.value.map(y=>y.error.length).forEach(y=>{g+=y}),g}),a=ke(()=>{let g=0;return o.value.map(y=>y.warning.length).forEach(y=>{g+=y}),g}),l=ke(()=>cs.value.length),u=ke(()=>o.value.filter(g=>g.passes).length);async function c(){ls.value=[],qr.value=0,await Rr.value.reset()}async function f(){oo.value=!oo.value,await Rr.value.toggleLiveInspections(oo.value)}const d=ce("inspections"),h=ce(!1);async function p(){h.value=!0,vo.value=null,await c(),await mg(),setTimeout(()=>{h.value=!1},300)}return(g,y)=>{const b=Is,w=e0,m=Jt("VTooltip"),v=Wl,C=u0,$=g0,D=Xk,U=Qk,R=iE;return G(),Z("div",nA,[F("header",rA,[F("div",sA,[F("div",oA,[F("h1",iA,[K(b,{icon:"carbon:cloud-satellite-link",class:"text-blue-300 hidden md:block"}),y[2]||(y[2]=ue(" Link Checker ",-1)),K(w,{class:"hidden md:block text-sm"},{default:re(()=>[ue(Se(ie(vo)?.runtimeConfig?.version),1)]),_:1})])]),F("div",aA,[F("fieldset",lA,[(G(),Z(ge,null,jt(["inspections","links","debug","docs"],(E,B)=>F("label",{key:B,class:Te(["relative n-border-base hover:n-bg-active cursor-pointer",[B?"border-l n-border-base ml--1px":"",E===d.value?"n-bg-active":""]])},[E==="inspections"?(G(),Z("div",{key:0,class:Te([E===d.value?"":"op35"])},[K(m,null,{popper:re(()=>[...y[3]||(y[3]=[ue(" Inspections ",-1)])]),default:re(()=>[F("div",cA,[F("h2",uA,[K(b,{icon:"carbon:warning-diamond opacity-50"}),K(w,{class:"text-sm"},{default:re(()=>[ue(Se(i.value+a.value),1)]),_:1})])])]),_:1})],2)):Ee("",!0),E==="links"?(G(),Z("div",{key:1,class:Te([E===d.value?"":"op35"])},[K(m,null,{popper:re(()=>[...y[4]||(y[4]=[ue(" Valid Links ",-1)])]),default:re(()=>[F("div",fA,[F("h2",dA,[K(b,{icon:"carbon:checkmark-outline opacity-50"}),K(w,{class:"text-sm"},{default:re(()=>[ue(Se(u.value),1)]),_:1})])])]),_:1})],2)):E==="debug"?(G(),Z("div",{key:2,class:Te([E===d.value?"":"op35"])},[K(m,null,{popper:re(()=>[...y[5]||(y[5]=[ue(" Debug ",-1)])]),default:re(()=>[F("div",hA,[F("h2",pA,[K(b,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):E==="docs"?(G(),Z("div",{key:3,class:Te([E===d.value?"":"op35"])},[K(m,null,{popper:re(()=>[...y[6]||(y[6]=[ue(" Documentation ",-1)])]),default:re(()=>[F("div",gA,[F("h2",mA,[K(b,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):Ee("",!0),ud(F("input",{"onUpdate:modelValue":y[0]||(y[0]=A=>d.value=A),type:"radio",value:E,title:E,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,yA),[[cb,d.value]])],2)),64))]),K(m,null,{popper:re(()=>[...y[7]||(y[7]=[ue(" Refresh ",-1)])]),default:re(()=>[F("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:p},[K(b,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1}),F("button",{class:"mr-5 hover:shadow-lg text-sm transition items-center gap-2 inline-flex border-green-500/50 border-1 rounded-lg shadow-sm px-3 py-1",onClick:f},[K(b,{icon:`${ie(oo)?"carbon:view-off":"carbon:view"}`},null,8,["icon"]),y[8]||(y[8]=F("div",{class:"hidden md:block"}," Inspections ",-1))])]),F("div",bA,[F("div",vA,[K(v,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:re(()=>[K(b,{icon:"carbon:favorite",class:"mr-[2px]"}),y[9]||(y[9]=ue(" Sponsor ",-1))]),_:1})]),F("div",_A,[K(v,{href:"https://github.com/harlan-zw/nuxt-link-checker",target:"_blank"},{default:re(()=>[K(b,{icon:"logos:github-icon",class:"mr-[2px]"}),y[10]||(y[10]=ue(" Submit an issue ",-1))]),_:1})]),F("a",wA,[K(C)])])])]),F("div",CA,[F("main",xA,[h.value?(G(),me($,{key:0})):d.value==="inspections"?(G(),Z("div",SA,[ie(On)?(G(),Z("p",kA,[ie(qr)?(G(),me(b,{key:0,icon:"carbon:progress-bar-round",class:"animated animate-spin op50 text-xs"})):Ee("",!0),K(b,{icon:"carbon:filter"}),y[11]||(y[11]=ue(" Filtering Results. ",-1)),F("button",{type:"button",underline:"",onClick:y[1]||(y[1]=E=>On.value=!1)}," Show All ")])):Ee("",!0),ie(On)?(G(),Z("div",NA,[(G(!0),Z(ge,null,jt(o.value,(E,B)=>(G(),me(D,{key:B,item:E},null,8,["item"]))),128))])):(G(),Z("div",EA,[F("div",AA,[ie(qr)?(G(),Z("div",TA,[K(b,{icon:"carbon:progress-bar-round",class:"animated animate-spin op50 text-xs"}),ue(" "+Se(Math.round(Math.abs(ie(qr)-l.value)/l.value*100))+"% ",1)])):Ee("",!0),i.value?(G(),Z("div",$A,[K(b,{icon:"carbon:error","h-4":"","w-4":"","text-red-500":""}),F("div",null,Se(i.value)+" Errors ",1)])):Ee("",!0),a.value?(G(),Z("div",RA,[K(b,{icon:"carbon:warning","h-4":"","w-4":"","text-yellow-500":""}),F("div",null,Se(a.value)+" Warnings ",1)])):Ee("",!0),!a.value&&!i.value?(G(),Z("div",PA,[K(b,{icon:"carbon:checkmark-outline","h-4":"","w-4":"","text-green-500":""}),y[12]||(y[12]=F("div",null,"All links passing",-1))])):Ee("",!0)]),F("div",null,[(G(!0),Z(ge,null,jt([...o.value.filter(E=>E.error.length),...o.value.filter(E=>E.warning.length)],(E,B)=>(G(),me(D,{key:B,item:E,class:"odd:bg-white dark:odd:bg-[#151515] even:bg-slate-50 dark:even:bg-[#222223] p-2"},null,8,["item"]))),128))])])),K(eA)])):d.value==="links"?(G(),Z("div",IA,[K(R,null,{text:re(()=>[F("h3",LA,[K(b,{icon:"carbon:chart-network",class:"mr-1"}),y[13]||(y[13]=ue(" Internal Links ",-1))])]),default:re(()=>[(G(!0),Z(ge,null,jt(o.value.filter(E=>E.passes&&E.link.startsWith("/")),(E,B)=>(G(),me(U,{key:B,item:E},null,8,["item"]))),128))]),_:1}),K(R,null,{text:re(()=>[F("h3",OA,[K(b,{icon:"carbon:launch",class:"mr-1"}),y[14]||(y[14]=ue(" External Links ",-1))])]),default:re(()=>[(G(!0),Z(ge,null,jt(o.value.filter(E=>E.passes&&!E.link.startsWith("/")),(E,B)=>(G(),me(U,{key:B,item:E},null,8,["item"]))),128))]),_:1})])):d.value==="debug"?(G(),Z("div",MA,[K(R,null,{text:re(()=>[F("h3",DA,[K(b,{icon:"carbon:settings",class:"mr-1"}),y[15]||(y[15]=ue(" Runtime Config ",-1))])]),default:re(()=>[F("div",FA,[F("pre",{"of-auto":"","h-full":"","text-sm":"",style:{"white-space":"break-spaces"},innerHTML:ie(bg)(JSON.stringify(ie(vo)?.runtimeConfig||{},null,2),"json").value},null,8,BA)])]),_:1})])):d.value==="docs"?(G(),Z("div",HA,[...y[16]||(y[16]=[F("iframe",{src:"https://nuxtseo.com/link-checker",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)])])):Ee("",!0),y[17]||(y[17]=F("div",{class:"flex-auto"},null,-1))])])])}}}),UA={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
159
|
+
`).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
|
|
160
|
+
`);const r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=s?Cc(()=>In(()=>import("./OpE9gtc9.js"),__vite__mapDeps([3,4,5]),import.meta.url)):Cc(()=>In(()=>import("./C8aYPslm.js"),__vite__mapDeps([6,4,7]),import.meta.url));return(f,d)=>(G(),me(ie(c),Bf($l({statusCode:ie(r),statusMessage:ie(o),description:ie(i),stack:ie(a)})),null,16))}},GA={key:0},Pf={__name:"nuxt-root",setup(e){const t=()=>null,n=Le(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Nt().beforeEach(u)}const s=!1;Td(Sh,kh()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const o=Ml(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;_d((u,c,f)=>{if(n.hooks.callHook("vue:error",u,c,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,u),!1;if(Gv(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>jv(u)),!1});const l=!1;return(u,c)=>(G(),me(my,{onResolve:ie(r)},{default:re(()=>[ie(i)?(G(),Z("div",GA)):ie(o)?(G(),me(ie(UA),{key:1,error:ie(o)},null,8,["error"])):ie(l)?(G(),me(ie(t),{key:2,context:ie(l)},null,8,["context"])):ie(s)?(G(),me(Hm(ie(s)),{key:3})):(G(),me(ie(jA),{key:4}))]),_:1},8,["onResolve"]))}};let Nf;{let e;Nf=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?bb(Pf):oh(Pf),s=Av({vueApp:r});async function o(i){await s.callHook("app:error",i),s.payload.error||=Dl(i)}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&tu.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(tu.id)?.remove()});try{await Rv(s,Jw)}catch(i){o(i)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Sv),await s.hooks.callHook("app:mounted",r),await Kn()}catch(i){o(i)}return r},e=Nf().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Ls as _,F as a,K as b,Z as c,ue as d,ip as e,Le as f,Rh as g,Sl as h,mr as i,G as o,Se as t,WA as u,re as w};
|