nuxt-site-config 3.2.21 → 4.0.1

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.
Files changed (31) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +14 -49
  3. package/dist/runtime/app/component/SiteLink.d.vue.ts +4 -2
  4. package/dist/runtime/app/component/SiteLink.vue +10 -6
  5. package/dist/runtime/app/component/SiteLink.vue.d.ts +4 -2
  6. package/dist/runtime/app/plugins/i18n-micro.js +5 -3
  7. package/dist/runtime/app/plugins/i18n-shared.d.ts +2 -0
  8. package/dist/runtime/app/plugins/i18n-shared.js +4 -0
  9. package/dist/runtime/app/plugins/i18n.js +35 -25
  10. package/dist/runtime/server/composables/index.d.ts +0 -1
  11. package/dist/runtime/server/composables/index.js +0 -1
  12. package/dist/runtime/server/middleware/init.js +6 -5
  13. package/package.json +8 -11
  14. package/dist/client/200.html +0 -1
  15. package/dist/client/404.html +0 -1
  16. package/dist/client/_nuxt/CJF-nxcU.js +0 -1
  17. package/dist/client/_nuxt/CVO1_9PV.js +0 -1
  18. package/dist/client/_nuxt/Cp-IABpG.js +0 -1
  19. package/dist/client/_nuxt/D0r3Knsf.js +0 -1
  20. package/dist/client/_nuxt/DEKhsQUE.js +0 -155
  21. package/dist/client/_nuxt/DMwZ1BOb.js +0 -1
  22. package/dist/client/_nuxt/builds/latest.json +0 -1
  23. package/dist/client/_nuxt/builds/meta/96dbeb05-fdf1-4e7b-9baf-3588b30bbe1f.json +0 -1
  24. package/dist/client/_nuxt/entry.5pPLcN5N.css +0 -1
  25. package/dist/client/_nuxt/error-404.2oU8Iodr.css +0 -1
  26. package/dist/client/_nuxt/error-500.-OeSeSzN.css +0 -1
  27. package/dist/client/index.html +0 -1
  28. package/dist/runtime/server/composable-barrel-deprecated.d.ts +0 -7
  29. package/dist/runtime/server/composable-barrel-deprecated.js +0 -7
  30. package/dist/runtime/server/composables/useSiteConfig.d.ts +0 -7
  31. package/dist/runtime/server/composables/useSiteConfig.js +0 -4
@@ -1,155 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CJF-nxcU.js","./error-404.2oU8Iodr.css","./DMwZ1BOb.js","./error-500.-OeSeSzN.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 fa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},jn=[],vt=()=>{},yu=()=>!1,qr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),da=e=>e.startsWith("onUpdate:"),Ie=Object.assign,ha=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ep=Object.prototype.hasOwnProperty,le=(e,t)=>ep.call(e,t),X=Array.isArray,Un=e=>Kr(e)==="[object Map]",_u=e=>Kr(e)==="[object Set]",dl=e=>Kr(e)==="[object Date]",K=e=>typeof e=="function",ye=e=>typeof e=="string",dt=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",pa=e=>(ce(e)||K(e))&&K(e.then)&&K(e.catch),bu=Object.prototype.toString,Kr=e=>bu.call(e),tp=e=>Kr(e).slice(8,-1),wu=e=>Kr(e)==="[object Object]",ro=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yn=fa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),so=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},np=/-\w/g,rt=so(e=>e.replace(np,t=>t.slice(1).toUpperCase())),rp=/\B([A-Z])/g,sn=so(e=>e.replace(rp,"-$1").toLowerCase()),oo=so(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oo=so(e=>e?`on${oo(e)}`:""),Jt=(e,t)=>!Object.is(e,t),_s=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},vu=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},sp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},op=e=>{const t=ye(e)?Number(e):NaN;return isNaN(t)?e:t};let hl;const io=()=>hl||(hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function _n(e){if(X(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ye(r)?cp(r):_n(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(ye(e)||ce(e))return e}const ip=/;(?![^(]*\))/g,ap=/:([^]+)/,lp=/\/\*[^]*?\*\//g;function cp(e){const t={};return e.replace(lp,"").split(ip).forEach(n=>{if(n){const r=n.split(ap);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Se(e){let t="";if(ye(e))t=e;else if(X(e))for(let n=0;n<e.length;n++){const r=Se(e[n]);r&&(t+=r+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Cu(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ye(t)&&(e.class=Se(t)),n&&(e.style=_n(n)),e}const up="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fp=fa(up);function xu(e){return!!e||e===""}function dp(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Pr(e[r],t[r]);return n}function Pr(e,t){if(e===t)return!0;let n=dl(e),r=dl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=dt(e),r=dt(t),n||r)return e===t;if(n=X(e),r=X(t),n||r)return n&&r?dp(e,t):!1;if(n=ce(e),r=ce(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||!Pr(e[i],t[i]))return!1}}return String(e)===String(t)}const Su=e=>!!(e&&e.__v_isRef===!0),it=e=>ye(e)?e:e==null?"":X(e)||ce(e)&&(e.toString===bu||!K(e.toString))?Su(e)?it(e.value):JSON.stringify(e,ku,2):String(e),ku=(e,t)=>Su(t)?ku(e,t.value):Un(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Do(r,o)+" =>"]=s,n),{})}:_u(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Do(n))}:dt(t)?Do(t):ce(t)&&!X(t)&&!wu(t)?String(t):t,Do=(e,t="")=>{var n;return dt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ge;class Eu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.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=Ge;try{return Ge=this,t()}finally{Ge=n}}}on(){++this._on===1&&(this.prevScope=Ge,Ge=this)}off(){this._on>0&&--this._on===0&&(Ge=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 hp(e){return new Eu(e)}function Au(){return Ge}let me;const Ho=new WeakSet;class Tu{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,Ge&&Ge.active&&Ge.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ho.has(this)&&(Ho.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ru(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,pl(this),Pu(this);const t=me,n=ct;me=this,ct=!0;try{return this.fn()}finally{Iu(this),me=t,ct=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ya(t);this.deps=this.depsTail=void 0,pl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ho.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){mi(this)&&this.run()}get dirty(){return mi(this)}}let $u=0,yr,_r;function Ru(e,t=!1){if(e.flags|=8,t){e.next=_r,_r=e;return}e.next=yr,yr=e}function ga(){$u++}function ma(){if(--$u>0)return;if(_r){let t=_r;for(_r=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;yr;){let t=yr;for(yr=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 Pu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Iu(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),ya(r),pp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function mi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Nu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Nu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir)||(e.globalVersion=Ir,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!mi(e))))return;e.flags|=2;const t=e.dep,n=me,r=ct;me=e,ct=!0;try{Pu(e);const s=e.fn(e._value);(t.version===0||Jt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{me=n,ct=r,Iu(e),e.flags&=-3}}function ya(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)ya(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function pp(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ct=!0;const Lu=[];function Bt(){Lu.push(ct),ct=!1}function Ft(){const e=Lu.pop();ct=e===void 0?!0:e}function pl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let Ir=0;class gp{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 _a{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(!me||!ct||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new gp(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,Mu(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=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=r)}return n}trigger(t){this.version++,Ir++,this.notify(t)}notify(t){ga();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ma()}}}function Mu(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)Mu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Es=new WeakMap,bn=Symbol(""),yi=Symbol(""),Nr=Symbol("");function De(e,t,n){if(ct&&me){let r=Es.get(e);r||Es.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new _a),s.map=r,s.key=n),s.track()}}function Mt(e,t,n,r,s,o){const i=Es.get(e);if(!i){Ir++;return}const a=l=>{l&&l.trigger()};if(ga(),t==="clear")i.forEach(a);else{const l=X(e),u=l&&ro(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===Nr||!dt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(Nr)),t){case"add":l?u&&a(i.get("length")):(a(i.get(bn)),Un(e)&&a(i.get(yi)));break;case"delete":l||(a(i.get(bn)),Un(e)&&a(i.get(yi)));break;case"set":Un(e)&&a(i.get(bn));break}}ma()}function mp(e,t){const n=Es.get(e);return n&&n.get(t)}function Pn(e){const t=ae(e);return t===e?t:(De(t,"iterate",Nr),Ye(e)?t:t.map(ht))}function ao(e){return De(e=ae(e),"iterate",Nr),e}function qt(e,t){return St(e)?Xn(Yt(e)?ht(t):t):ht(t)}const yp={__proto__:null,[Symbol.iterator](){return Bo(this,Symbol.iterator,e=>qt(this,e))},concat(...e){return Pn(this).concat(...e.map(t=>X(t)?Pn(t):t))},entries(){return Bo(this,"entries",e=>(e[1]=qt(this,e[1]),e))},every(e,t){return $t(this,"every",e,t,void 0,arguments)},filter(e,t){return $t(this,"filter",e,t,n=>n.map(r=>qt(this,r)),arguments)},find(e,t){return $t(this,"find",e,t,n=>qt(this,n),arguments)},findIndex(e,t){return $t(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $t(this,"findLast",e,t,n=>qt(this,n),arguments)},findLastIndex(e,t){return $t(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $t(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fo(this,"includes",e)},indexOf(...e){return Fo(this,"indexOf",e)},join(e){return Pn(this).join(e)},lastIndexOf(...e){return Fo(this,"lastIndexOf",e)},map(e,t){return $t(this,"map",e,t,void 0,arguments)},pop(){return fr(this,"pop")},push(...e){return fr(this,"push",e)},reduce(e,...t){return gl(this,"reduce",e,t)},reduceRight(e,...t){return gl(this,"reduceRight",e,t)},shift(){return fr(this,"shift")},some(e,t){return $t(this,"some",e,t,void 0,arguments)},splice(...e){return fr(this,"splice",e)},toReversed(){return Pn(this).toReversed()},toSorted(e){return Pn(this).toSorted(e)},toSpliced(...e){return Pn(this).toSpliced(...e)},unshift(...e){return fr(this,"unshift",e)},values(){return Bo(this,"values",e=>qt(this,e))}};function Bo(e,t,n){const r=ao(e),s=r[t]();return r!==e&&!Ye(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const _p=Array.prototype;function $t(e,t,n,r,s,o){const i=ao(e),a=i!==e&&!Ye(e),l=i[t];if(l!==_p[t]){const f=l.apply(e,o);return a?ht(f):f}let u=n;i!==e&&(a?u=function(f,d){return n.call(this,qt(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 gl(e,t,n,r){const s=ao(e);let o=n;return s!==e&&(Ye(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,qt(e,a),l,e)}),s[t](o,...r)}function Fo(e,t,n){const r=ae(e);De(r,"iterate",Nr);const s=r[t](...n);return(s===-1||s===!1)&&lo(n[0])?(n[0]=ae(n[0]),r[t](...n)):s}function fr(e,t,n=[]){Bt(),ga();const r=ae(e)[t].apply(e,n);return ma(),Ft(),r}const bp=fa("__proto__,__v_isRef,__isVue"),Ou=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dt));function wp(e){dt(e)||(e=String(e));const t=ae(this);return De(t,"has",e),t.hasOwnProperty(e)}class Du{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?Rp:ju:o?Fu:Bu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=X(t);if(!s){let l;if(i&&(l=yp[n]))return l;if(n==="hasOwnProperty")return wp}const a=Reflect.get(t,n,be(t)?t:r);if((dt(n)?Ou.has(n):bp(n))||(s||De(t,"get",n),o))return a;if(be(a)){const l=i&&ro(n)?a:a.value;return s&&ce(l)?bi(l):l}return ce(a)?s?bi(a):tn(a):a}}class Hu extends Du{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=X(t)&&ro(n);if(!this._isShallow){const u=St(o);if(!Ye(r)&&!St(r)&&(o=ae(o),r=ae(r)),!i&&be(o)&&!be(r))return u||(o.value=r),!0}const a=i?Number(n)<t.length:le(t,n),l=Reflect.set(t,n,r,be(t)?t:s);return t===ae(s)&&(a?Jt(r,o)&&Mt(t,"set",n,r):Mt(t,"add",n,r)),l}deleteProperty(t,n){const r=le(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Mt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!dt(n)||!Ou.has(n))&&De(t,"has",n),r}ownKeys(t){return De(t,"iterate",X(t)?"length":bn),Reflect.ownKeys(t)}}class vp extends Du{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Cp=new Hu,xp=new vp,Sp=new Hu(!0);const _i=e=>e,ts=e=>Reflect.getPrototypeOf(e);function kp(e,t,n){return function(...r){const s=this.__v_raw,o=ae(s),i=Un(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),c=n?_i:t?Xn:ht;return!t&&De(o,"iterate",l?yi:bn),Ie(Object.create(u),{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}}})}}function ns(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ep(e,t){const n={get(s){const o=this.__v_raw,i=ae(o),a=ae(s);e||(Jt(s,a)&&De(i,"get",s),De(i,"get",a));const{has:l}=ts(i),u=t?_i:e?Xn:ht;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&&De(ae(s),"iterate",bn),s.size},has(s){const o=this.__v_raw,i=ae(o),a=ae(s);return e||(Jt(s,a)&&De(i,"has",s),De(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=ae(a),u=t?_i:e?Xn:ht;return!e&&De(l,"iterate",bn),a.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return Ie(n,e?{add:ns("add"),set:ns("set"),delete:ns("delete"),clear:ns("clear")}:{add(s){!t&&!Ye(s)&&!St(s)&&(s=ae(s));const o=ae(this);return ts(o).has.call(o,s)||(o.add(s),Mt(o,"add",s,s)),this},set(s,o){!t&&!Ye(o)&&!St(o)&&(o=ae(o));const i=ae(this),{has:a,get:l}=ts(i);let u=a.call(i,s);u||(s=ae(s),u=a.call(i,s));const c=l.call(i,s);return i.set(s,o),u?Jt(o,c)&&Mt(i,"set",s,o):Mt(i,"add",s,o),this},delete(s){const o=ae(this),{has:i,get:a}=ts(o);let l=i.call(o,s);l||(s=ae(s),l=i.call(o,s)),a&&a.call(o,s);const u=o.delete(s);return l&&Mt(o,"delete",s,void 0),u},clear(){const s=ae(this),o=s.size!==0,i=s.clear();return o&&Mt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=kp(s,e,t)}),n}function ba(e,t){const n=Ep(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(le(n,s)&&s in r?n:r,s,o)}const Ap={get:ba(!1,!1)},Tp={get:ba(!1,!0)},$p={get:ba(!0,!1)};const Bu=new WeakMap,Fu=new WeakMap,ju=new WeakMap,Rp=new WeakMap;function Pp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ip(e){return e.__v_skip||!Object.isExtensible(e)?0:Pp(tp(e))}function tn(e){return St(e)?e:wa(e,!1,Cp,Ap,Bu)}function Hn(e){return wa(e,!1,Sp,Tp,Fu)}function bi(e){return wa(e,!0,xp,$p,ju)}function wa(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Ip(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 Yt(e){return St(e)?Yt(e.__v_raw):!!(e&&e.__v_isReactive)}function St(e){return!!(e&&e.__v_isReadonly)}function Ye(e){return!!(e&&e.__v_isShallow)}function lo(e){return e?!!e.__v_raw:!1}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function Np(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&vu(e,"__v_skip",!0),e}const ht=e=>ce(e)?tn(e):e,Xn=e=>ce(e)?bi(e):e;function be(e){return e?e.__v_isRef===!0:!1}function ke(e){return Uu(e,!1)}function wi(e){return Uu(e,!0)}function Uu(e,t){return be(e)?e:new Lp(e,t)}class Lp{constructor(t,n){this.dep=new _a,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ae(t),this._value=n?t:ht(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ye(t)||St(t);t=r?t:ae(t),Jt(t,n)&&(this._rawValue=t,this._value=r?t:ht(t),this.dep.trigger())}}function fe(e){return be(e)?e.value:e}function va(e){return K(e)?e():fe(e)}const Mp={get:(e,t,n)=>t==="__v_raw"?e:fe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return be(s)&&!be(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Gu(e){return Yt(e)?e:new Proxy(e,Mp)}class Op{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ae(t);let s=!0,o=t;if(!X(t)||!ro(String(n)))do s=!lo(o)||Ye(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=fe(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&be(this._raw[this._key])){const n=this._object[this._key];if(be(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return mp(this._raw,this._key)}}class Dp{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 Wu(e,t,n){return be(e)?e:K(e)?new Dp(e):ce(e)&&arguments.length>1?Hp(e,t,n):ke(e)}function Hp(e,t,n){return new Op(e,t,n)}class Bp{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _a(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return Ru(this,!0),!0}get value(){const t=this.dep.track();return Nu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fp(e,t,n=!1){let r,s;return K(e)?r=e:(r=e.get,s=e.set),new Bp(r,s,n)}const rs={},As=new WeakMap;let fn;function jp(e,t=!1,n=fn){if(n){let r=As.get(n);r||As.set(n,r=[]),r.push(e)}}function Up(e,t,n=he){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,u=b=>s?b:Ye(b)||s===!1||s===0?Ot(b,1):Ot(b);let c,f,d,h,p=!1,m=!1;if(be(e)?(f=()=>e.value,p=Ye(e)):Yt(e)?(f=()=>u(e),p=!0):X(e)?(m=!0,p=e.some(b=>Yt(b)||Ye(b)),f=()=>e.map(b=>{if(be(b))return b.value;if(Yt(b))return u(b);if(K(b))return l?l(b,2):b()})):K(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Bt();try{d()}finally{Ft()}}const b=fn;fn=c;try{return l?l(e,3,[h]):e(h)}finally{fn=b}}:f=vt,t&&s){const b=f,x=s===!0?1/0:s;f=()=>Ot(b(),x)}const w=Au(),_=()=>{c.stop(),w&&w.active&&ha(w.effects,c)};if(o&&t){const b=t;t=(...x)=>{b(...x),_()}}let v=m?new Array(e.length).fill(rs):rs;const g=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const x=c.run();if(s||p||(m?x.some((T,N)=>Jt(T,v[N])):Jt(x,v))){d&&d();const T=fn;fn=c;try{const N=[x,v===rs?void 0:m&&v[0]===rs?[]:v,h];v=x,l?l(t,3,N):t(...N)}finally{fn=T}}}else c.run()};return a&&a(g),c=new Tu(f),c.scheduler=i?()=>i(g,!1):g,h=b=>jp(b,!1,c),d=c.onStop=()=>{const b=As.get(c);if(b){if(l)l(b,4);else for(const x of b)x();As.delete(c)}},t?r?g(!0):v=c.run():i?i(g.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Ot(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,be(e))Ot(e.value,t,n);else if(X(e))for(let r=0;r<e.length;r++)Ot(e[r],t,n);else if(_u(e)||Un(e))e.forEach(r=>{Ot(r,t,n)});else if(wu(e)){for(const r in e)Ot(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ot(e[r],t,n)}return e}function Xr(e,t,n,r){try{return r?e(...r):e()}catch(s){rr(s,t,n)}}function kt(e,t,n,r){if(K(e)){const s=Xr(e,t,n,r);return s&&pa(s)&&s.catch(o=>{rr(o,t,n)}),s}if(X(e)){const s=[];for(let o=0;o<e.length;o++)s.push(kt(e[o],t,n,r));return s}}function rr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||he;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(o){Bt(),Xr(o,null,10,[e,l,u]),Ft();return}}Gp(e,n,s,r,i)}function Gp(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const je=[];let _t=-1;const Gn=[];let Kt=null,Mn=0;const zu=Promise.resolve();let Ts=null;function co(e){const t=Ts||zu;return e?t.then(this?e.bind(this):e):t}function Wp(e){let t=_t+1,n=je.length;for(;t<n;){const r=t+n>>>1,s=je[r],o=Lr(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Ca(e){if(!(e.flags&1)){const t=Lr(e),n=je[je.length-1];!n||!(e.flags&2)&&t>=Lr(n)?je.push(e):je.splice(Wp(t),0,e),e.flags|=1,Vu()}}function Vu(){Ts||(Ts=zu.then(qu))}function vi(e){X(e)?Gn.push(...e):Kt&&e.id===-1?Kt.splice(Mn+1,0,e):e.flags&1||(Gn.push(e),e.flags|=1),Vu()}function ml(e,t,n=_t+1){for(;n<je.length;n++){const r=je[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;je.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function $s(e){if(Gn.length){const t=[...new Set(Gn)].sort((n,r)=>Lr(n)-Lr(r));if(Gn.length=0,Kt){Kt.push(...t);return}for(Kt=t,Mn=0;Mn<Kt.length;Mn++){const n=Kt[Mn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Kt=null,Mn=0}}const Lr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function qu(e){try{for(_t=0;_t<je.length;_t++){const t=je[_t];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;_t<je.length;_t++){const t=je[_t];t&&(t.flags&=-2)}_t=-1,je.length=0,$s(),Ts=null,(je.length||Gn.length)&&qu()}}let Pe=null,uo=null;function Rs(e){const t=Pe;return Pe=e,uo=e&&e.type.__scopeId||null,t}function zp(e){uo=e}function Vp(){uo=null}const qp=e=>de;function de(e,t=Pe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Ns(-1);const o=Rs(t);let i;try{i=e(...s)}finally{Rs(o),r._d&&Ns(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Kp(e,t){if(Pe===null)return e;const n=yo(Pe),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=he]=t[s];o&&(K(o)&&(o={mounted:o,updated:o}),o.deep&&Ot(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function bt(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(Bt(),kt(l,n,8,[e.el,a,e,t]),Ft())}}function Ku(e,t){if(Re){let n=Re.provides;const r=Re.parent&&Re.parent.provides;r===n&&(n=Re.provides=Object.create(r)),n[e]=t}}function wn(e,t,n=!1){const r=sr();if(r||Cn){let s=Cn?Cn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&K(t)?t.call(r&&r.proxy):t}}function fo(){return!!(sr()||Cn)}const Xp=Symbol.for("v-scx"),Jp=()=>wn(Xp);function Xu(e,t){return xa(e,null,t)}function br(e,t,n){return xa(e,t,n)}function xa(e,t,n=he){const{immediate:r,deep:s,flush:o,once:i}=n,a=Ie({},n),l=t&&r||!t&&o!=="post";let u;if(Qn){if(o==="sync"){const h=Jp();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=vt,h.resume=vt,h.pause=vt,h}}const c=Re;a.call=(h,p,m)=>kt(h,c,p,m);let f=!1;o==="post"?a.scheduler=h=>{Fe(h,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():Ca(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Up(e,t,a);return Qn&&(u?u.push(d):l&&d()),d}function Yp(e,t,n){const r=this.proxy,s=ye(e)?e.includes(".")?Ju(r,e):()=>r[e]:e.bind(r,r);let o;K(t)?o=t:(o=t.handler,n=t);const i=Sn(this),a=xa(s,o.bind(r),n);return i(),a}function Ju(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 Zp=Symbol("_vte"),Qp=e=>e.__isTeleport,eg=Symbol("_leaveCb");function Sa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Sa(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 Tt(e,t){return K(e)?Ie({name:e.name},t,{setup:e}):e}function ka(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function yl(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ps=new WeakMap;function Wn(e,t,n,r,s=!1){if(X(e)){e.forEach((m,w)=>Wn(m,t&&(X(t)?t[w]:t),n,r,s));return}if(vn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Wn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?yo(r.component):r.el,i=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===he?a.refs={}:a.refs,f=a.setupState,d=ae(f),h=f===he?yu:m=>yl(c,m)?!1:le(d,m),p=(m,w)=>!(w&&yl(c,w));if(u!=null&&u!==l){if(_l(t),ye(u))c[u]=null,h(u)&&(f[u]=null);else if(be(u)){const m=t;p(u,m.k)&&(u.value=null),m.k&&(c[m.k]=null)}}if(K(l))Xr(l,a,12,[i,c]);else{const m=ye(l),w=be(l);if(m||w){const _=()=>{if(e.f){const v=m?h(l)?f[l]:c[l]:p()||!e.k?l.value:c[e.k];if(s)X(v)&&ha(v,o);else if(X(v))v.includes(o)||v.push(o);else if(m)c[l]=[o],h(l)&&(f[l]=c[l]);else{const g=[o];p(l,e.k)&&(l.value=g),e.k&&(c[e.k]=g)}}else m?(c[l]=i,h(l)&&(f[l]=i)):w&&(p(l,e.k)&&(l.value=i),e.k&&(c[e.k]=i))};if(i){const v=()=>{_(),Ps.delete(e)};v.id=-1,Ps.set(e,v),Fe(v,n)}else _l(e),_()}}}function _l(e){const t=Ps.get(e);t&&(t.flags|=8,Ps.delete(e))}let bl=!1;const In=()=>{bl||(console.error("Hydration completed but contains mismatches."),bl=!0)},tg=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",ng=e=>e.namespaceURI.includes("MathML"),ss=e=>{if(e.nodeType===1){if(tg(e))return"svg";if(ng(e))return"mathml"}},Bn=e=>e.nodeType===8;function rg(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:u}}=e,c=(g,b)=>{if(!b.hasChildNodes()){n(null,g,b),$s(),b._vnode=g;return}f(b.firstChild,g,null,null,null),$s(),b._vnode=g},f=(g,b,x,T,N,B=!1)=>{B=B||!!b.dynamicChildren;const F=Bn(g)&&g.data==="[",P=()=>m(g,b,x,T,N,F),{type:W,ref:U,shapeFlag:Q,patchFlag:Y}=b;let oe=g.nodeType;b.el=g,Y===-2&&(B=!1,b.dynamicChildren=null);let O=null;switch(W){case xn:oe!==3?b.children===""?(l(b.el=s(""),i(g),g),O=g):O=P():(g.data!==b.children&&(In(),g.data=b.children),O=o(g));break;case st:v(g)?(O=o(g),_(b.el=g.content.firstChild,g,x)):oe!==8||F?O=P():O=o(g);break;case vr:if(F&&(g=o(g),oe=g.nodeType),oe===1||oe===3){O=g;const z=!b.children.length;for(let D=0;D<b.staticCount;D++)z&&(b.children+=O.nodeType===1?O.outerHTML:O.data),D===b.staticCount-1&&(b.anchor=O),O=o(O);return F?o(O):O}else P();break;case ve:F?O=p(g,b,x,T,N,B):O=P();break;default:if(Q&1)(oe!==1||b.type.toLowerCase()!==g.tagName.toLowerCase())&&!v(g)?O=P():O=d(g,b,x,T,N,B);else if(Q&6){b.slotScopeIds=N;const z=i(g);if(F?O=w(g):Bn(g)&&g.data==="teleport start"?O=w(g,g.data,"teleport end"):O=o(g),t(b,z,null,x,T,ss(z),B),vn(b)&&!b.type.__asyncResolved){let D;F?(D=J(ve),D.anchor=O?O.previousSibling:z.lastChild):D=g.nodeType===3?Me(""):J("div"),D.el=g,b.component.subTree=D}}else Q&64?oe!==8?O=P():O=b.type.hydrate(g,b,x,T,N,B,e,h):Q&128&&(O=b.type.hydrate(g,b,x,T,ss(i(g)),N,B,e,f))}return U!=null&&Wn(U,null,T,b),O},d=(g,b,x,T,N,B)=>{B=B||!!b.dynamicChildren;const{type:F,props:P,patchFlag:W,shapeFlag:U,dirs:Q,transition:Y}=b,oe=F==="input"||F==="option";if(oe||W!==-1){Q&&bt(b,null,x,"created");let O=!1;if(v(g)){O=Cf(null,Y)&&x&&x.vnode.props&&x.vnode.props.appear;const D=g.content.firstChild;if(O){const se=D.getAttribute("class");se&&(D.$cls=se),Y.beforeEnter(D)}_(D,g,x),b.el=g=D}if(U&16&&!(P&&(P.innerHTML||P.textContent))){let D=h(g.firstChild,b,g,x,T,N,B);for(;D;){os(g,1)||In();const se=D;D=D.nextSibling,a(se)}}else if(U&8){let D=b.children;D[0]===`
3
- `&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(D=D.slice(1));const{textContent:se}=g;se!==D&&se!==D.replace(/\r\n|\r/g,`
4
- `)&&(os(g,0)||In(),g.textContent=b.children)}if(P){if(oe||!B||W&48){const D=g.tagName.includes("-");for(const se in P)(oe&&(se.endsWith("value")||se==="indeterminate")||qr(se)&&!yn(se)||se[0]==="."||D&&!yn(se))&&r(g,se,null,P[se],void 0,x)}else if(P.onClick)r(g,"onClick",null,P.onClick,void 0,x);else if(W&4&&Yt(P.style))for(const D in P.style)P.style[D]}let z;(z=P&&P.onVnodeBeforeMount)&&Qe(z,x,b),Q&&bt(b,null,x,"beforeMount"),((z=P&&P.onVnodeMounted)||Q||O)&&Tf(()=>{z&&Qe(z,x,b),O&&Y.enter(g),Q&&bt(b,null,x,"mounted")},T)}return g.nextSibling},h=(g,b,x,T,N,B,F)=>{F=F||!!b.dynamicChildren;const P=b.children,W=P.length;for(let U=0;U<W;U++){const Q=F?P[U]:P[U]=Je(P[U]),Y=Q.type===xn;g?(Y&&!F&&U+1<W&&Je(P[U+1]).type===xn&&(l(s(g.data.slice(Q.children.length)),x,o(g)),g.data=Q.children),g=f(g,Q,T,N,B,F)):Y&&!Q.children?l(Q.el=s(""),x):(os(x,1)||In(),n(null,Q,x,null,T,N,ss(x),B))}return g},p=(g,b,x,T,N,B)=>{const{slotScopeIds:F}=b;F&&(N=N?N.concat(F):F);const P=i(g),W=h(o(g),b,P,x,T,N,B);return W&&Bn(W)&&W.data==="]"?o(b.anchor=W):(In(),l(b.anchor=u("]"),P,W),W)},m=(g,b,x,T,N,B)=>{if(os(g.parentElement,1)||In(),b.el=null,B){const W=w(g);for(;;){const U=o(g);if(U&&U!==W)a(U);else break}}const F=o(g),P=i(g);return a(g),n(null,b,P,F,x,T,ss(P),N),x&&(x.vnode.el=b.el,go(x,b.el)),F},w=(g,b="[",x="]")=>{let T=0;for(;g;)if(g=o(g),g&&Bn(g)&&(g.data===b&&T++,g.data===x)){if(T===0)return o(g);T--}return g},_=(g,b,x)=>{const T=b.parentNode;T&&T.replaceChild(g,b);let N=x;for(;N;)N.vnode.el===b&&(N.vnode.el=N.subTree.el=g),N=N.parent},v=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[c,f]}const wl="data-allow-mismatch",sg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function os(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(wl);)e=e.parentElement;const n=e&&e.getAttribute(wl);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(sg[t])}}io().requestIdleCallback;io().cancelIdleCallback;function og(e,t){if(Bn(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Bn(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const vn=e=>!!e.type.__asyncLoader;function vl(e){K(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(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((w,_)=>{l(m,()=>w(d()),()=>_(m),f+1)});throw m}).then(m=>p!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Tt({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,m,w){let _=!1;(m.bu||(m.bu=[])).push(()=>_=!0);const v=()=>{_||w()},g=o?()=>{const b=o(v,x=>og(p,x));b&&(m.bum||(m.bum=[])).push(b)}:v;c?g():h().then(()=>!m.isUnmounted&&g())},get __asyncResolved(){return c},setup(){const p=Re;if(ka(p),c)return()=>is(c,p);const m=g=>{u=null,rr(g,p,13,!r)};if(a&&p.suspense||Qn)return h().then(g=>()=>is(g,p)).catch(g=>(m(g),()=>r?J(r,{error:g}):null));const w=ke(!1),_=ke(),v=ke(!!s);return s&&setTimeout(()=>{v.value=!1},s),i!=null&&setTimeout(()=>{if(!w.value&&!_.value){const g=new Error(`Async component timed out after ${i}ms.`);m(g),_.value=g}},i),h().then(()=>{w.value=!0,p.parent&&Ea(p.parent.vnode)&&p.parent.update()}).catch(g=>{m(g),_.value=g}),()=>{if(w.value&&c)return is(c,p);if(_.value&&r)return J(r,{error:_.value});if(n&&!v.value)return is(n,p)}}})}function is(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=J(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Ea=e=>e.type.__isKeepAlive;function Yu(e,t){Qu(e,"a",t)}function Zu(e,t){Qu(e,"da",t)}function Qu(e,t,n=Re){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ho(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Ea(s.parent.vnode)&&ig(r,t,n,s),s=s.parent}}function ig(e,t,n,r){const s=ho(t,e,r,!0);tf(()=>{ha(r[t],s)},n)}function ho(e,t,n=Re,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Bt();const a=Sn(n),l=kt(t,n,e,i);return a(),Ft(),l});return r?s.unshift(o):s.push(o),o}}const jt=e=>(t,n=Re)=>{(!Qn||e==="sp")&&ho(e,(...r)=>t(...r),n)},ag=jt("bm"),ef=jt("m"),lg=jt("bu"),cg=jt("u"),Aa=jt("bum"),tf=jt("um"),ug=jt("sp"),fg=jt("rtg"),dg=jt("rtc");function nf(e,t=Re){ho("ec",e,t)}const rf="components";function nn(e,t){return of(rf,e,!0,t)||e}const sf=Symbol.for("v-ndc");function hg(e){return ye(e)?of(rf,e,!1)||e:e||sf}function of(e,t,n=!0,r=!1){const s=Pe||Re;if(s){const o=s.type;{const a=tm(o,!1);if(a&&(a===t||a===rt(t)||a===oo(rt(t))))return o}const i=Cl(s[e]||o[e],t)||Cl(s.appContext[e],t);return!i&&r?o:i}}function Cl(e,t){return e&&(e[t]||e[rt(t)]||e[oo(rt(t))])}function jo(e,t,n,r){let s;const o=n,i=X(e);if(i||ye(e)){const a=i&&Yt(e);let l=!1,u=!1;a&&(l=!Ye(e),u=St(e),e=ao(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Xn(ht(e[c])):ht(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(ce(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 We(e,t,n={},r,s){if(Pe.ce||Pe.parent&&vn(Pe.parent)&&Pe.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),q(),$e(ve,null,[J("slot",n,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),q();const i=o&&af(o(n)),a=n.key||i&&i.key,l=$e(ve,{key:(a&&!dt(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 af(e){return e.some(t=>Yn(t)?!(t.type===st||t.type===ve&&!af(t.children)):!0)?e:null}const Ci=e=>e?If(e)?yo(e):Ci(e.parent):null,wr=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=>Ci(e.parent),$root:e=>Ci(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>cf(e),$forceUpdate:e=>e.f||(e.f=()=>{Ca(e.update)}),$nextTick:e=>e.n||(e.n=co.bind(e.proxy)),$watch:e=>Yp.bind(e)}),Uo=(e,t)=>e!==he&&!e.__isScriptSetup&&le(e,t),pg={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(Uo(r,t))return i[t]=1,r[t];if(s!==he&&le(s,t))return i[t]=2,s[t];if(le(o,t))return i[t]=3,o[t];if(n!==he&&le(n,t))return i[t]=4,n[t];xi&&(i[t]=0)}}const u=wr[t];let c,f;if(u)return t==="$attrs"&&De(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==he&&le(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,le(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Uo(s,t)?(s[t]=n,!0):r!==he&&le(r,t)?(r[t]=n,!0):le(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!==he&&a[0]!=="$"&&le(e,a)||Uo(t,a)||le(o,a)||le(r,a)||le(wr,a)||le(s.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xl(e){return X(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function gg(e){const t=sr();let n=e();return Ti(),pa(n)&&(n=n.catch(r=>{throw Sn(t),r})),[n,()=>Sn(t)]}let xi=!0;function mg(e){const t=cf(e),n=e.proxy,r=e.ctx;xi=!1,t.beforeCreate&&Sl(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:m,deactivated:w,beforeDestroy:_,beforeUnmount:v,destroyed:g,unmounted:b,render:x,renderTracked:T,renderTriggered:N,errorCaptured:B,serverPrefetch:F,expose:P,inheritAttrs:W,components:U,directives:Q,filters:Y}=t;if(u&&yg(u,r,null),i)for(const z in i){const D=i[z];K(D)&&(r[z]=D.bind(n))}if(s){const z=s.call(n,n);ce(z)&&(e.data=tn(z))}if(xi=!0,o)for(const z in o){const D=o[z],se=K(D)?D.bind(n,n):K(D.get)?D.get.bind(n,n):vt,$n=!K(D)&&K(D.set)?D.set.bind(n):vt,on=Oe({get:se,set:$n});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>on.value,set:gt=>on.value=gt})}if(a)for(const z in a)lf(a[z],r,n,z);if(l){const z=K(l)?l.call(n):l;Reflect.ownKeys(z).forEach(D=>{Ku(D,z[D])})}c&&Sl(c,e,"c");function O(z,D){X(D)?D.forEach(se=>z(se.bind(n))):D&&z(D.bind(n))}if(O(ag,f),O(ef,d),O(lg,h),O(cg,p),O(Yu,m),O(Zu,w),O(nf,B),O(dg,T),O(fg,N),O(Aa,v),O(tf,b),O(ug,F),X(P))if(P.length){const z=e.exposed||(e.exposed={});P.forEach(D=>{Object.defineProperty(z,D,{get:()=>n[D],set:se=>n[D]=se,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===vt&&(e.render=x),W!=null&&(e.inheritAttrs=W),U&&(e.components=U),Q&&(e.directives=Q),F&&ka(e)}function yg(e,t,n=vt){X(e)&&(e=Si(e));for(const r in e){const s=e[r];let o;ce(s)?"default"in s?o=wn(s.from||r,s.default,!0):o=wn(s.from||r):o=wn(s),be(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Sl(e,t,n){kt(X(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function lf(e,t,n,r){let s=r.includes(".")?Ju(n,r):()=>n[r];if(ye(e)){const o=t[e];K(o)&&br(s,o)}else if(K(e))br(s,e.bind(n));else if(ce(e))if(X(e))e.forEach(o=>lf(o,t,n,r));else{const o=K(e.handler)?e.handler.bind(n):t[e.handler];K(o)&&br(s,o,e)}}function cf(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Is(l,u,i,!0)),Is(l,t,i)),ce(t)&&o.set(t,l),l}function Is(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Is(e,o,n,!0),s&&s.forEach(i=>Is(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=_g[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const _g={data:kl,props:El,emits:El,methods:gr,computed:gr,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:gr,directives:gr,watch:wg,provide:kl,inject:bg};function kl(e,t){return t?e?function(){return Ie(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function bg(e,t){return gr(Si(e),Si(t))}function Si(e){if(X(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Be(e,t){return e?[...new Set([].concat(e,t))]:t}function gr(e,t){return e?Ie(Object.create(null),e,t):t}function El(e,t){return e?X(e)&&X(t)?[...new Set([...e,...t])]:Ie(Object.create(null),xl(e),xl(t??{})):t}function wg(e,t){if(!e)return t;if(!t)return e;const n=Ie(Object.create(null),e);for(const r in t)n[r]=Be(e[r],t[r]);return n}function uf(){return{app:null,config:{isNativeTag:yu,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 vg=0;function Cg(e,t){return function(r,s=null){K(r)||(r=Ie({},r)),s!=null&&!ce(s)&&(s=null);const o=uf(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:vg++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:rm,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&K(c.install)?(i.add(c),c.install(u,...f)):K(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||J(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,yo(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(kt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Cn;Cn=u;try{return c()}finally{Cn=f}}};return u}}let Cn=null;const xg=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${rt(t)}Modifiers`]||e[`${sn(t)}Modifiers`];function Sg(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const o=t.startsWith("update:"),i=o&&xg(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>ye(c)?c.trim():c)),i.number&&(s=n.map(sp)));let a,l=r[a=Oo(t)]||r[a=Oo(rt(t))];!l&&o&&(l=r[a=Oo(sn(t))]),l&&kt(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,kt(u,e,6,s)}}const kg=new WeakMap;function ff(e,t,n=!1){const r=n?kg:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!K(e)){const l=u=>{const c=ff(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?(ce(e)&&r.set(e,null),null):(X(o)?o.forEach(l=>i[l]=null):Ie(i,o),ce(e)&&r.set(e,i),i)}function po(e,t){return!e||!qr(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,sn(t))||le(e,t))}function Go(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:m}=e,w=Rs(e);let _,v;try{if(n.shapeFlag&4){const b=s||r,x=b;_=Je(u.call(x,b,c,f,h,d,p)),v=a}else{const b=t;_=Je(b.length>1?b(f,{attrs:a,slots:i,emit:l}):b(f,null)),v=t.props?a:Ag(a)}}catch(b){Cr.length=0,rr(b,e,1),_=J(st)}let g=_;if(v&&m!==!1){const b=Object.keys(v),{shapeFlag:x}=g;b.length&&x&7&&(o&&b.some(da)&&(v=Tg(v,o)),g=Zn(g,v,!1,!0))}return n.dirs&&(g=Zn(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&Sa(g,n.transition),_=g,Rs(w),_}function Eg(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(Yn(s)){if(s.type!==st||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Ag=e=>{let t;for(const n in e)(n==="class"||n==="style"||qr(n))&&((t||(t={}))[n]=e[n]);return t},Tg=(e,t)=>{const n={};for(const r in e)(!da(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function $g(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?Al(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(df(i,r,d)&&!po(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Al(r,i,u):!0:!!i;return!1}function Al(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(df(t,e,o)&&!po(n,o))return!0}return!1}function df(e,t,n){const r=e[n],s=t[n];return n==="style"&&ce(r)&&ce(s)?!Pr(r,s):r!==s}function go({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 hf={},pf=()=>Object.create(hf),gf=e=>Object.getPrototypeOf(e)===hf;function Rg(e,t,n,r=!1){const s={},o=pf();e.propsDefaults=Object.create(null),mf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Hn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Pg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ae(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(po(e.emitsOptions,d))continue;const h=t[d];if(l)if(le(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const p=rt(d);s[p]=ki(l,a,p,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{mf(e,t,s,o)&&(u=!0);let c;for(const f in a)(!t||!le(t,f)&&((c=sn(f))===f||!le(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=ki(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!le(t,f))&&(delete o[f],u=!0)}u&&Mt(e.attrs,"set","")}function mf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(yn(l))continue;const u=t[l];let c;s&&le(s,c=rt(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:po(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=ae(n),u=a||he;for(let c=0;c<o.length;c++){const f=o[c];n[f]=ki(s,l,f,u[f],e,!le(u,f))}}return i}function ki(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=le(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&K(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=Sn(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===sn(n))&&(r=!0))}return r}const Ig=new WeakMap;function yf(e,t,n=!1){const r=n?Ig:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!K(e)){const c=f=>{l=!0;const[d,h]=yf(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 ce(e)&&r.set(e,jn),jn;if(X(o))for(let c=0;c<o.length;c++){const f=rt(o[c]);Tl(f)&&(i[f]=he)}else if(o)for(const c in o){const f=rt(c);if(Tl(f)){const d=o[c],h=i[f]=X(d)||K(d)?{type:d}:Ie({},d),p=h.type;let m=!1,w=!0;if(X(p))for(let _=0;_<p.length;++_){const v=p[_],g=K(v)&&v.name;if(g==="Boolean"){m=!0;break}else g==="String"&&(w=!1)}else m=K(p)&&p.name==="Boolean";h[0]=m,h[1]=w,(m||le(h,"default"))&&a.push(f)}}const u=[i,a];return ce(e)&&r.set(e,u),u}function Tl(e){return e[0]!=="$"&&!yn(e)}const Ta=e=>e==="_"||e==="_ctx"||e==="$stable",$a=e=>X(e)?e.map(Je):[Je(e)],Ng=(e,t,n)=>{if(t._n)return t;const r=de((...s)=>$a(t(...s)),n);return r._c=!1,r},_f=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ta(s))continue;const o=e[s];if(K(o))t[s]=Ng(s,o,r);else if(o!=null){const i=$a(o);t[s]=()=>i}}},bf=(e,t)=>{const n=$a(t);e.slots.default=()=>n},wf=(e,t,n)=>{for(const r in t)(n||!Ta(r))&&(e[r]=t[r])},Lg=(e,t,n)=>{const r=e.slots=pf();if(e.vnode.shapeFlag&32){const s=t._;s?(wf(r,t,n),n&&vu(r,"_",s,!0)):_f(t,r)}else t&&bf(e,t)},Mg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=he;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:wf(s,t,n):(o=!t.$stable,_f(t,s)),i=t}else t&&(bf(e,t),i={default:1});if(o)for(const a in s)!Ta(a)&&i[a]==null&&delete s[a]},Fe=Tf;function Og(e){return vf(e)}function Dg(e){return vf(e,rg)}function vf(e,t){const n=io();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=vt,insertStaticContent:p}=e,m=(y,C,S,$=null,k=null,E=null,M=void 0,L=null,I=!!C.dynamicChildren)=>{if(y===C)return;y&&!Xt(y,C)&&($=es(y),gt(y,k,E,!0),y=null),C.patchFlag===-2&&(I=!1,C.dynamicChildren=null);const{type:A,ref:V,shapeFlag:H}=C;switch(A){case xn:w(y,C,S,$);break;case st:_(y,C,S,$);break;case vr:y==null&&v(C,S,$,M);break;case ve:U(y,C,S,$,k,E,M,L,I);break;default:H&1?x(y,C,S,$,k,E,M,L,I):H&6?Q(y,C,S,$,k,E,M,L,I):(H&64||H&128)&&A.process(y,C,S,$,k,E,M,L,I,Rn)}V!=null&&k?Wn(V,y&&y.ref,E,C||y,!C):V==null&&y&&y.ref!=null&&Wn(y.ref,null,E,y,!0)},w=(y,C,S,$)=>{if(y==null)r(C.el=a(C.children),S,$);else{const k=C.el=y.el;C.children!==y.children&&u(k,C.children)}},_=(y,C,S,$)=>{y==null?r(C.el=l(C.children||""),S,$):C.el=y.el},v=(y,C,S,$)=>{[y.el,y.anchor]=p(y.children,C,S,$,y.el,y.anchor)},g=({el:y,anchor:C},S,$)=>{let k;for(;y&&y!==C;)k=d(y),r(y,S,$),y=k;r(C,S,$)},b=({el:y,anchor:C})=>{let S;for(;y&&y!==C;)S=d(y),s(y),y=S;s(C)},x=(y,C,S,$,k,E,M,L,I)=>{if(C.type==="svg"?M="svg":C.type==="math"&&(M="mathml"),y==null)T(C,S,$,k,E,M,L,I);else{const A=y.el&&y.el._isVueCE?y.el:null;try{A&&A._beginPatch(),F(y,C,k,E,M,L,I)}finally{A&&A._endPatch()}}},T=(y,C,S,$,k,E,M,L)=>{let I,A;const{props:V,shapeFlag:H,transition:j,dirs:Z}=y;if(I=y.el=i(y.type,E,V&&V.is,V),H&8?c(I,y.children):H&16&&B(y.children,I,null,$,k,Wo(y,E),M,L),Z&&bt(y,null,$,"created"),N(I,y,y.scopeId,M,$),V){for(const pe in V)pe!=="value"&&!yn(pe)&&o(I,pe,null,V[pe],E,$);"value"in V&&o(I,"value",null,V.value,E),(A=V.onVnodeBeforeMount)&&Qe(A,$,y)}Z&&bt(y,null,$,"beforeMount");const ne=Cf(k,j);ne&&j.beforeEnter(I),r(I,C,S),((A=V&&V.onVnodeMounted)||ne||Z)&&Fe(()=>{A&&Qe(A,$,y),ne&&j.enter(I),Z&&bt(y,null,$,"mounted")},k)},N=(y,C,S,$,k)=>{if(S&&h(y,S),$)for(let E=0;E<$.length;E++)h(y,$[E]);if(k){let E=k.subTree;if(C===E||Ef(E.type)&&(E.ssContent===C||E.ssFallback===C)){const M=k.vnode;N(y,M,M.scopeId,M.slotScopeIds,k.parent)}}},B=(y,C,S,$,k,E,M,L,I=0)=>{for(let A=I;A<y.length;A++){const V=y[A]=L?Lt(y[A]):Je(y[A]);m(null,V,C,S,$,k,E,M,L)}},F=(y,C,S,$,k,E,M)=>{const L=C.el=y.el;let{patchFlag:I,dynamicChildren:A,dirs:V}=C;I|=y.patchFlag&16;const H=y.props||he,j=C.props||he;let Z;if(S&&an(S,!1),(Z=j.onVnodeBeforeUpdate)&&Qe(Z,S,C,y),V&&bt(C,y,S,"beforeUpdate"),S&&an(S,!0),(H.innerHTML&&j.innerHTML==null||H.textContent&&j.textContent==null)&&c(L,""),A?P(y.dynamicChildren,A,L,S,$,Wo(C,k),E):M||D(y,C,L,null,S,$,Wo(C,k),E,!1),I>0){if(I&16)W(L,H,j,S,k);else if(I&2&&H.class!==j.class&&o(L,"class",null,j.class,k),I&4&&o(L,"style",H.style,j.style,k),I&8){const ne=C.dynamicProps;for(let pe=0;pe<ne.length;pe++){const ue=ne[pe],Ue=H[ue],Ne=j[ue];(Ne!==Ue||ue==="value")&&o(L,ue,Ue,Ne,k,S)}}I&1&&y.children!==C.children&&c(L,C.children)}else!M&&A==null&&W(L,H,j,S,k);((Z=j.onVnodeUpdated)||V)&&Fe(()=>{Z&&Qe(Z,S,C,y),V&&bt(C,y,S,"updated")},$)},P=(y,C,S,$,k,E,M)=>{for(let L=0;L<C.length;L++){const I=y[L],A=C[L],V=I.el&&(I.type===ve||!Xt(I,A)||I.shapeFlag&198)?f(I.el):S;m(I,A,V,null,$,k,E,M,!0)}},W=(y,C,S,$,k)=>{if(C!==S){if(C!==he)for(const E in C)!yn(E)&&!(E in S)&&o(y,E,C[E],null,k,$);for(const E in S){if(yn(E))continue;const M=S[E],L=C[E];M!==L&&E!=="value"&&o(y,E,L,M,k,$)}"value"in S&&o(y,"value",C.value,S.value,k)}},U=(y,C,S,$,k,E,M,L,I)=>{const A=C.el=y?y.el:a(""),V=C.anchor=y?y.anchor:a("");let{patchFlag:H,dynamicChildren:j,slotScopeIds:Z}=C;Z&&(L=L?L.concat(Z):Z),y==null?(r(A,S,$),r(V,S,$),B(C.children||[],S,V,k,E,M,L,I)):H>0&&H&64&&j&&y.dynamicChildren&&y.dynamicChildren.length===j.length?(P(y.dynamicChildren,j,S,k,E,M,L),(C.key!=null||k&&C===k.subTree)&&xf(y,C,!0)):D(y,C,S,V,k,E,M,L,I)},Q=(y,C,S,$,k,E,M,L,I)=>{C.slotScopeIds=L,y==null?C.shapeFlag&512?k.ctx.activate(C,S,$,M,I):Y(C,S,$,k,E,M,I):oe(y,C,I)},Y=(y,C,S,$,k,E,M)=>{const L=y.component=Jg(y,$,k);if(Ea(y)&&(L.ctx.renderer=Rn),Yg(L,!1,M),L.asyncDep){if(k&&k.registerDep(L,O,M),!y.el){const I=L.subTree=J(st);_(null,I,C,S),y.placeholder=I.el}}else O(L,y,C,S,k,E,M)},oe=(y,C,S)=>{const $=C.component=y.component;if($g(y,C,S))if($.asyncDep&&!$.asyncResolved){z($,C,S);return}else $.next=C,$.update();else C.el=y.el,$.vnode=C},O=(y,C,S,$,k,E,M)=>{const L=()=>{if(y.isMounted){let{next:H,bu:j,u:Z,parent:ne,vnode:pe}=y;{const qe=Sf(y);if(qe){H&&(H.el=pe.el,z(y,H,M)),qe.asyncDep.then(()=>{Fe(()=>{y.isUnmounted||A()},k)});return}}let ue=H,Ue;an(y,!1),H?(H.el=pe.el,z(y,H,M)):H=pe,j&&_s(j),(Ue=H.props&&H.props.onVnodeBeforeUpdate)&&Qe(Ue,ne,H,pe),an(y,!0);const Ne=Go(y),ot=y.subTree;y.subTree=Ne,m(ot,Ne,f(ot.el),es(ot),y,k,E),H.el=Ne.el,ue===null&&go(y,Ne.el),Z&&Fe(Z,k),(Ue=H.props&&H.props.onVnodeUpdated)&&Fe(()=>Qe(Ue,ne,H,pe),k)}else{let H;const{el:j,props:Z}=C,{bm:ne,m:pe,parent:ue,root:Ue,type:Ne}=y,ot=vn(C);if(an(y,!1),ne&&_s(ne),!ot&&(H=Z&&Z.onVnodeBeforeMount)&&Qe(H,ue,C),an(y,!0),j&&Mo){const qe=()=>{y.subTree=Go(y),Mo(j,y.subTree,y,k,null)};ot&&Ne.__asyncHydrate?Ne.__asyncHydrate(j,y,qe):qe()}else{Ue.ce&&Ue.ce._hasShadowRoot()&&Ue.ce._injectChildStyle(Ne);const qe=y.subTree=Go(y);m(null,qe,S,$,y,k,E),C.el=qe.el}if(pe&&Fe(pe,k),!ot&&(H=Z&&Z.onVnodeMounted)){const qe=C;Fe(()=>Qe(H,ue,qe),k)}(C.shapeFlag&256||ue&&vn(ue.vnode)&&ue.vnode.shapeFlag&256)&&y.a&&Fe(y.a,k),y.isMounted=!0,C=S=$=null}};y.scope.on();const I=y.effect=new Tu(L);y.scope.off();const A=y.update=I.run.bind(I),V=y.job=I.runIfDirty.bind(I);V.i=y,V.id=y.uid,I.scheduler=()=>Ca(V),an(y,!0),A()},z=(y,C,S)=>{C.component=y;const $=y.vnode.props;y.vnode=C,y.next=null,Pg(y,C.props,$,S),Mg(y,C.children,S),Bt(),ml(y),Ft()},D=(y,C,S,$,k,E,M,L,I=!1)=>{const A=y&&y.children,V=y?y.shapeFlag:0,H=C.children,{patchFlag:j,shapeFlag:Z}=C;if(j>0){if(j&128){$n(A,H,S,$,k,E,M,L,I);return}else if(j&256){se(A,H,S,$,k,E,M,L,I);return}}Z&8?(V&16&&cr(A,k,E),H!==A&&c(S,H)):V&16?Z&16?$n(A,H,S,$,k,E,M,L,I):cr(A,k,E,!0):(V&8&&c(S,""),Z&16&&B(H,S,$,k,E,M,L,I))},se=(y,C,S,$,k,E,M,L,I)=>{y=y||jn,C=C||jn;const A=y.length,V=C.length,H=Math.min(A,V);let j;for(j=0;j<H;j++){const Z=C[j]=I?Lt(C[j]):Je(C[j]);m(y[j],Z,S,null,k,E,M,L,I)}A>V?cr(y,k,E,!0,!1,H):B(C,S,$,k,E,M,L,I,H)},$n=(y,C,S,$,k,E,M,L,I)=>{let A=0;const V=C.length;let H=y.length-1,j=V-1;for(;A<=H&&A<=j;){const Z=y[A],ne=C[A]=I?Lt(C[A]):Je(C[A]);if(Xt(Z,ne))m(Z,ne,S,null,k,E,M,L,I);else break;A++}for(;A<=H&&A<=j;){const Z=y[H],ne=C[j]=I?Lt(C[j]):Je(C[j]);if(Xt(Z,ne))m(Z,ne,S,null,k,E,M,L,I);else break;H--,j--}if(A>H){if(A<=j){const Z=j+1,ne=Z<V?C[Z].el:$;for(;A<=j;)m(null,C[A]=I?Lt(C[A]):Je(C[A]),S,ne,k,E,M,L,I),A++}}else if(A>j)for(;A<=H;)gt(y[A],k,E,!0),A++;else{const Z=A,ne=A,pe=new Map;for(A=ne;A<=j;A++){const Ke=C[A]=I?Lt(C[A]):Je(C[A]);Ke.key!=null&&pe.set(Ke.key,A)}let ue,Ue=0;const Ne=j-ne+1;let ot=!1,qe=0;const ur=new Array(Ne);for(A=0;A<Ne;A++)ur[A]=0;for(A=Z;A<=H;A++){const Ke=y[A];if(Ue>=Ne){gt(Ke,k,E,!0);continue}let mt;if(Ke.key!=null)mt=pe.get(Ke.key);else for(ue=ne;ue<=j;ue++)if(ur[ue-ne]===0&&Xt(Ke,C[ue])){mt=ue;break}mt===void 0?gt(Ke,k,E,!0):(ur[mt-ne]=A+1,mt>=qe?qe=mt:ot=!0,m(Ke,C[mt],S,null,k,E,M,L,I),Ue++)}const cl=ot?Hg(ur):jn;for(ue=cl.length-1,A=Ne-1;A>=0;A--){const Ke=ne+A,mt=C[Ke],ul=C[Ke+1],fl=Ke+1<V?ul.el||kf(ul):$;ur[A]===0?m(null,mt,S,fl,k,E,M,L,I):ot&&(ue<0||A!==cl[ue]?on(mt,S,fl,2):ue--)}}},on=(y,C,S,$,k=null)=>{const{el:E,type:M,transition:L,children:I,shapeFlag:A}=y;if(A&6){on(y.component.subTree,C,S,$);return}if(A&128){y.suspense.move(C,S,$);return}if(A&64){M.move(y,C,S,Rn);return}if(M===ve){r(E,C,S);for(let H=0;H<I.length;H++)on(I[H],C,S,$);r(y.anchor,C,S);return}if(M===vr){g(y,C,S);return}if($!==2&&A&1&&L)if($===0)L.beforeEnter(E),r(E,C,S),Fe(()=>L.enter(E),k);else{const{leave:H,delayLeave:j,afterLeave:Z}=L,ne=()=>{y.ctx.isUnmounted?s(E):r(E,C,S)},pe=()=>{E._isLeaving&&E[eg](!0),H(E,()=>{ne(),Z&&Z()})};j?j(E,ne,pe):pe()}else r(E,C,S)},gt=(y,C,S,$=!1,k=!1)=>{const{type:E,props:M,ref:L,children:I,dynamicChildren:A,shapeFlag:V,patchFlag:H,dirs:j,cacheIndex:Z}=y;if(H===-2&&(k=!1),L!=null&&(Bt(),Wn(L,null,S,y,!0),Ft()),Z!=null&&(C.renderCache[Z]=void 0),V&256){C.ctx.deactivate(y);return}const ne=V&1&&j,pe=!vn(y);let ue;if(pe&&(ue=M&&M.onVnodeBeforeUnmount)&&Qe(ue,C,y),V&6)Qh(y.component,S,$);else{if(V&128){y.suspense.unmount(S,$);return}ne&&bt(y,null,C,"beforeUnmount"),V&64?y.type.remove(y,C,S,Rn,$):A&&!A.hasOnce&&(E!==ve||H>0&&H&64)?cr(A,C,S,!1,!0):(E===ve&&H&384||!k&&V&16)&&cr(I,C,S),$&&al(y)}(pe&&(ue=M&&M.onVnodeUnmounted)||ne)&&Fe(()=>{ue&&Qe(ue,C,y),ne&&bt(y,null,C,"unmounted")},S)},al=y=>{const{type:C,el:S,anchor:$,transition:k}=y;if(C===ve){Zh(S,$);return}if(C===vr){b(y);return}const E=()=>{s(S),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(y.shapeFlag&1&&k&&!k.persisted){const{leave:M,delayLeave:L}=k,I=()=>M(S,E);L?L(y.el,E,I):I()}else E()},Zh=(y,C)=>{let S;for(;y!==C;)S=d(y),s(y),y=S;s(C)},Qh=(y,C,S)=>{const{bum:$,scope:k,job:E,subTree:M,um:L,m:I,a:A}=y;$l(I),$l(A),$&&_s($),k.stop(),E&&(E.flags|=8,gt(M,y,C,S)),L&&Fe(L,C),Fe(()=>{y.isUnmounted=!0},C)},cr=(y,C,S,$=!1,k=!1,E=0)=>{for(let M=E;M<y.length;M++)gt(y[M],C,S,$,k)},es=y=>{if(y.shapeFlag&6)return es(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const C=d(y.anchor||y.el),S=C&&C[Zp];return S?d(S):C};let No=!1;const ll=(y,C,S)=>{let $;y==null?C._vnode&&(gt(C._vnode,null,null,!0),$=C._vnode.component):m(C._vnode||null,y,C,null,null,null,S),C._vnode=y,No||(No=!0,ml($),$s(),No=!1)},Rn={p:m,um:gt,m:on,r:al,mt:Y,mc:B,pc:D,pbc:P,n:es,o:e};let Lo,Mo;return t&&([Lo,Mo]=t(Rn)),{render:ll,hydrate:Lo,createApp:Cg(ll,Lo)}}function Wo({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 an({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Cf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xf(e,t,n=!1){const r=e.children,s=t.children;if(X(r)&&X(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]=Lt(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&xf(i,a)),a.type===xn&&(a.patchFlag===-1&&(a=s[o]=Lt(a)),a.el=i.el),a.type===st&&!a.el&&(a.el=i.el)}}function Hg(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 Sf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Sf(t)}function $l(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function kf(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?kf(t.subTree):null}const Ef=e=>e.__isSuspense;let Ei=0;const Bg={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,u){if(e==null)jg(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}Ug(e,t,n,r,s,i,a,l,u)}},hydrate:Gg,normalize:Wg},Fg=Bg;function Mr(e,t){const n=e.props&&e.props[t];K(n)&&n()}function jg(e,t,n,r,s,o,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Af(e,s,r,t,f,n,o,i,a,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,i),d.deps>0?(Mr(e,"onPending"),Mr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),zn(d,e.ssFallback)):d.resolve(!1,!0)}function Ug(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:m,isInFallback:w,isHydrating:_}=f;if(m)f.pendingBranch=d,Xt(m,d)?(l(m,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():w&&(_||(l(p,h,n,r,s,null,o,i,a),zn(f,h)))):(f.pendingId=Ei++,_?(f.isHydrating=!1,f.activeBranch=m):u(m,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),w?(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),zn(f,h))):p&&Xt(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&&Xt(p,d))l(p,d,n,r,s,f,o,i,a),zn(f,d);else if(Mr(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Ei++,l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:g}=f;v>0?setTimeout(()=>{f.pendingId===g&&f.fallback(h)},v):v===0&&f.fallback(h)}}function Af(e,t,n,r,s,o,i,a,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:m,remove:w}}=u;let _;const v=zg(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const g=e.props?op(e.props.timeout):void 0,b=o,x={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Ei++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(T=!1,N=!1){const{vnode:B,activeBranch:F,pendingBranch:P,pendingId:W,effects:U,parentComponent:Q,container:Y,isInFallback:oe}=x;let O=!1;x.isHydrating?x.isHydrating=!1:T||(O=F&&P.transition&&P.transition.mode==="out-in",O&&(F.transition.afterLeave=()=>{W===x.pendingId&&(d(P,Y,o===b?p(F):o,0),vi(U),oe&&B.ssFallback&&(B.ssFallback.el=null))}),F&&(m(F.el)===Y&&(o=p(F)),h(F,Q,x,!0),!O&&oe&&B.ssFallback&&Fe(()=>B.ssFallback.el=null,x)),O||d(P,Y,o,0)),zn(x,P),x.pendingBranch=null,x.isInFallback=!1;let z=x.parent,D=!1;for(;z;){if(z.pendingBranch){z.effects.push(...U),D=!0;break}z=z.parent}!D&&!O&&vi(U),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!N&&t.resolve()),Mr(B,"onResolve")},fallback(T){if(!x.pendingBranch)return;const{vnode:N,activeBranch:B,parentComponent:F,container:P,namespace:W}=x;Mr(N,"onFallback");const U=p(B),Q=()=>{x.isInFallback&&(f(null,T,P,U,F,null,W,a,l),zn(x,T))},Y=T.transition&&T.transition.mode==="out-in";Y&&(B.transition.afterLeave=Q),x.isInFallback=!0,h(B,F,null,!0),Y||Q()},move(T,N,B){x.activeBranch&&d(x.activeBranch,T,N,B),x.container=T},next(){return x.activeBranch&&p(x.activeBranch)},registerDep(T,N,B){const F=!!x.pendingBranch;F&&x.deps++;const P=T.vnode.el;T.asyncDep.catch(W=>{rr(W,T,0)}).then(W=>{if(T.isUnmounted||x.isUnmounted||x.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:U}=T;$i(T,W),P&&(U.el=P);const Q=!P&&T.subTree.el;N(T,U,m(P||T.subTree.el),P?null:p(T.subTree),x,i,B),Q&&(U.placeholder=null,w(Q)),go(T,U.el),F&&--x.deps===0&&x.resolve()})},unmount(T,N){x.isUnmounted=!0,x.activeBranch&&h(x.activeBranch,n,T,N),x.pendingBranch&&h(x.pendingBranch,n,T,N)}};return x}function Gg(e,t,n,r,s,o,i,a,l){const u=t.suspense=Af(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 Wg(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Rl(r?n.default:n),e.ssFallback=r?Rl(n.fallback):J(st)}function Rl(e){let t;if(K(e)){const n=Jn&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=ze,$f())}return X(e)&&(e=Eg(e)),e=Je(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Tf(e,t){t&&t.pendingBranch?X(e)?t.effects.push(...e):t.effects.push(e):vi(e)}function zn(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,go(r,s))}function zg(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ve=Symbol.for("v-fgt"),xn=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),vr=Symbol.for("v-stc"),Cr=[];let ze=null;function q(e=!1){Cr.push(ze=e?null:[])}function $f(){Cr.pop(),ze=Cr[Cr.length-1]||null}let Jn=1;function Ns(e,t=!1){Jn+=e,e<0&&ze&&t&&(ze.hasOnce=!0)}function Rf(e){return e.dynamicChildren=Jn>0?ze||jn:null,$f(),Jn>0&&ze&&ze.push(e),e}function ie(e,t,n,r,s,o){return Rf(G(e,t,n,r,s,o,!0))}function $e(e,t,n,r,s){return Rf(J(e,t,n,r,s,!0))}function Yn(e){return e?e.__v_isVNode===!0:!1}function Xt(e,t){return e.type===t.type&&e.key===t.key}const Pf=({key:e})=>e??null,bs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||K(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,r=0,s=null,o=e===ve?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pf(t),ref:t&&bs(t),scopeId:uo,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:Pe};return a?(Pa(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),Jn>0&&!i&&ze&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ze.push(l),l}const J=Vg;function Vg(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===sf)&&(e=st),Yn(e)){const a=Zn(e,t,!0);return n&&Pa(a,n),Jn>0&&!o&&ze&&(a.shapeFlag&6?ze[ze.indexOf(e)]=a:ze.push(a)),a.patchFlag=-2,a}if(nm(e)&&(e=e.__vccOpts),t){t=Ra(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=Se(a)),ce(l)&&(lo(l)&&!X(l)&&(l=Ie({},l)),t.style=_n(l))}const i=ye(e)?1:Ef(e)?128:Qp(e)?64:ce(e)?4:K(e)?2:0;return G(e,t,n,r,s,i,o,!0)}function Ra(e){return e?lo(e)||gf(e)?Ie({},e):e:null}function Zn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?mo(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Pf(u),ref:t&&t.ref?n&&o?X(o)?o.concat(bs(t)):[o,bs(t)]:bs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?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&&Zn(e.ssContent),ssFallback:e.ssFallback&&Zn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Sa(c,l.clone(c)),c}function Me(e=" ",t=0){return J(xn,null,e,t)}function qg(e,t){const n=J(vr,null,e);return n.staticCount=t,n}function wt(e="",t=!1){return t?(q(),$e(st,null,e)):J(st,null,e)}function Je(e){return e==null||typeof e=="boolean"?J(st):X(e)?J(ve,null,e.slice()):Yn(e)?Lt(e):J(xn,null,String(e))}function Lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zn(e)}function Pa(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(X(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Pa(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!gf(t)?t._ctx=Pe:s===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),r&64?(n=16,t=[Me(t)]):n=8);e.children=t,e.shapeFlag|=n}function mo(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Se([t.class,r.class]));else if(s==="style")t.style=_n([t.style,r.style]);else if(qr(s)){const o=t[s],i=r[s];i&&o!==i&&!(X(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function Qe(e,t,n,r=null){kt(e,t,7,[n,r])}const Kg=uf();let Xg=0;function Jg(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Kg,o={uid:Xg++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Eu(!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:yf(r,s),emitsOptions:ff(r,s),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Sg.bind(null,o),e.ce&&e.ce(o),o}let Re=null;const sr=()=>Re||Pe;let Ls,Ai;{const e=io(),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)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>Re=n),Ai=t("__VUE_SSR_SETTERS__",n=>Qn=n)}const Sn=e=>{const t=Re;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},Ti=()=>{Re&&Re.scope.off(),Ls(null)};function If(e){return e.vnode.shapeFlag&4}let Qn=!1;function Yg(e,t=!1,n=!1){t&&Ai(t);const{props:r,children:s}=e.vnode,o=If(e);Rg(e,r,o,t),Lg(e,s,n||t);const i=o?Zg(e,t):void 0;return t&&Ai(!1),i}function Zg(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pg);const{setup:r}=n;if(r){Bt();const s=e.setupContext=r.length>1?em(e):null,o=Sn(e),i=Xr(r,e,0,[e.props,s]),a=pa(i);if(Ft(),o(),(a||e.sp)&&!vn(e)&&ka(e),a){if(i.then(Ti,Ti),t)return i.then(l=>{$i(e,l)}).catch(l=>{rr(l,e,0)});e.asyncDep=i}else $i(e,i)}else Nf(e)}function $i(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Gu(t)),Nf(e)}function Nf(e,t,n){const r=e.type;e.render||(e.render=r.render||vt);{const s=Sn(e);Bt();try{mg(e)}finally{Ft(),s()}}}const Qg={get(e,t){return De(e,"get",""),e[t]}};function em(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Qg),slots:e.slots,emit:e.emit,expose:t}}function yo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gu(Np(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wr)return wr[n](e)},has(t,n){return n in t||n in wr}})):e.proxy}function tm(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function nm(e){return K(e)&&"__vccOpts"in e}const Oe=(e,t)=>Fp(e,t,Qn);function Ms(e,t,n){try{Ns(-1);const r=arguments.length;return r===2?ce(t)&&!X(t)?Yn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Yn(n)&&(n=[n]),J(e,t,n))}finally{Ns(1)}}const rm="3.5.28";let Ri;const Pl=typeof window<"u"&&window.trustedTypes;if(Pl)try{Ri=Pl.createPolicy("vue",{createHTML:e=>e})}catch{}const Lf=Ri?e=>Ri.createHTML(e):e=>e,sm="http://www.w3.org/2000/svg",om="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,Il=Nt&&Nt.createElement("template"),im={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Nt.createElementNS(sm,e):t==="mathml"?Nt.createElementNS(om,e):n?Nt.createElement(e,{is:n}):Nt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Il.innerHTML=Lf(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Il.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]}},am=Symbol("_vtc");function lm(e,t,n){const r=e[am];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Nl=Symbol("_vod"),cm=Symbol("_vsh"),um=Symbol(""),fm=/(?:^|;)\s*display\s*:/;function dm(e,t,n){const r=e.style,s=ye(n);let o=!1;if(n&&!s){if(t)if(ye(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&ws(r,a,"")}else for(const i in t)n[i]==null&&ws(r,i,"");for(const i in n)i==="display"&&(o=!0),ws(r,i,n[i])}else if(s){if(t!==n){const i=r[um];i&&(n+=";"+i),r.cssText=n,o=fm.test(n)}}else t&&e.removeAttribute("style");Nl in e&&(e[Nl]=o?r.display:"",e[cm]&&(r.display="none"))}const Ll=/\s*!important$/;function ws(e,t,n){if(X(n))n.forEach(r=>ws(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=hm(e,t);Ll.test(n)?e.setProperty(sn(r),n.replace(Ll,""),"important"):e[r]=n}}const Ml=["Webkit","Moz","ms"],zo={};function hm(e,t){const n=zo[t];if(n)return n;let r=rt(t);if(r!=="filter"&&r in e)return zo[t]=r;r=oo(r);for(let s=0;s<Ml.length;s++){const o=Ml[s]+r;if(o in e)return zo[t]=o}return t}const Ol="http://www.w3.org/1999/xlink";function Dl(e,t,n,r,s,o=fp(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ol,t.slice(6,t.length)):e.setAttributeNS(Ol,t,n):n==null||o&&!xu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":dt(n)?String(n):n)}function Hl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Lf(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=xu(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 Mf(e,t,n,r){e.addEventListener(t,n,r)}function pm(e,t,n,r){e.removeEventListener(t,n,r)}const Bl=Symbol("_vei");function gm(e,t,n,r,s=null){const o=e[Bl]||(e[Bl]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=mm(t);if(r){const u=o[t]=bm(r,s);Mf(e,a,u,l)}else i&&(pm(e,a,i,l),o[t]=void 0)}}const Fl=/(?:Once|Passive|Capture)$/;function mm(e){let t;if(Fl.test(e)){t={};let r;for(;r=e.match(Fl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):sn(e.slice(2)),t]}let Vo=0;const ym=Promise.resolve(),_m=()=>Vo||(ym.then(()=>Vo=0),Vo=Date.now());function bm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;kt(wm(r,n.value),t,5,[r])};return n.value=e,n.attached=_m(),n}function wm(e,t){if(X(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 jl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,vm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?lm(e,r,i):t==="style"?dm(e,n,r):qr(t)?da(t)||gm(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cm(e,t,r,i))?(Hl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Dl(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(r))?Hl(e,rt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Dl(e,t,r,i))};function Cm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&jl(t)&&K(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 jl(t)&&ye(n)?!1:t in e}const Ul=e=>{const t=e.props["onUpdate:modelValue"]||!1;return X(t)?n=>_s(t,n):t},qo=Symbol("_assign"),xm={created(e,{value:t},n){e.checked=Pr(t,n.props.value),e[qo]=Ul(n),Mf(e,"change",()=>{e[qo](Sm(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[qo]=Ul(r),t!==n&&(e.checked=Pr(t,r.props.value))}};function Sm(e){return"_value"in e?e._value:e.value}const km={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Em=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=sn(s.key);if(t.some(i=>i===o||km[i]===o))return e(s)}))},Of=Ie({patchProp:vm},im);let xr,Gl=!1;function Am(){return xr||(xr=Og(Of))}function Tm(){return xr=Gl?xr:Dg(Of),Gl=!0,xr}const Df=((...e)=>{const t=Am().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Bf(r);if(!s)return;const o=t._component;!K(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Hf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t}),$m=((...e)=>{const t=Tm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Bf(r);if(s)return n(s,!0,Hf(s))},t});function Hf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Bf(e){return ye(e)?document.querySelector(e):e}const Rm=/"(?:_|\\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*:/,Pm=/"(?: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*:/,Im=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Nm(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Lm(e);return}return t}function Lm(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Os(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(!Im.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Rm.test(e)||Pm.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Nm)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Ff=/#/g,jf=/&/g,Mm=/\//g,Om=/=/g,Dm=/\?/g,_o=/\+/g,Hm=/%5e/gi,Bm=/%60/gi,Fm=/%7c/gi,jm=/%20/gi,Um=/%2f/gi,Gm=/%252f/gi;function Uf(e){return encodeURI(""+e).replace(Fm,"|")}function Pi(e){return Uf(typeof e=="string"?e:JSON.stringify(e)).replace(_o,"%2B").replace(jm,"+").replace(Ff,"%23").replace(jf,"%26").replace(Bm,"`").replace(Hm,"^").replace(Mm,"%2F")}function Ko(e){return Pi(e).replace(Om,"%3D")}function Wm(e){return Uf(e).replace(Ff,"%23").replace(Dm,"%3F").replace(Gm,"%2F").replace(jf,"%26").replace(_o,"%2B")}function Or(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function zm(e){return Or(e.replace(Um,"%252F"))}function Vm(e){return Or(e.replace(_o," "))}function qm(e){return Or(e.replace(_o," "))}function bo(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=Vm(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=qm(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 Km(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ko(e)}=${Pi(n)}`).join("&"):`${Ko(e)}=${Pi(t)}`:Ko(e)}function Gf(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Km(t,e[t])).filter(Boolean).join("&")}const Xm=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Wf=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Jm=/^([/\\]\s*){2,}[^/\\]/,Ym=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Zm=/\/$|\/\?|\/#/,Qm=/^\.?\//;function Ut(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Xm.test(e):Wf.test(e)||(t.acceptRelative?Jm.test(e):!1)}function ey(e){return!!e&&Ym.test(e)}function Ii(e="",t){return t?Zm.test(e):e.endsWith("/")}function Ia(e="",t){if(!t)return(Ii(e)?e.slice(0,-1):e)||"/";if(!Ii(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 Ds(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ii(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 ty(e=""){return e.startsWith("/")}function Wl(e=""){return ty(e)?e:"/"+e}function ny(e,t){if(Vf(t)||Ut(e))return e;const n=Ia(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return Jr(n,e)}function ry(e,t){if(Vf(t))return e;const n=Ia(t);if(!e.startsWith(n))return e;const r=e[n.length];if(r&&r!=="/"&&r!=="?")return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function zf(e,t){const n=Na(e),r={...bo(n.search),...t};return n.search=Gf(r),Xf(n)}function Vf(e){return!e||e==="/"}function sy(e){return e&&e!=="/"}function Jr(e,...t){let n=e||"";for(const r of t.filter(s=>sy(s)))if(n){const s=r.replace(Qm,"");n=Ds(n)+s}else n=r;return n}function qf(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Ut(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 oy(e){return iy(e,"https://")}function iy(e,t){let n=e.match(Wf);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function ay(e,t,n={}){return n.trailingSlash||(e=Ds(e),t=Ds(t)),n.leadingSlash||(e=Wl(e),t=Wl(t)),n.encoding||(e=Or(e),t=Or(t)),e===t}const Kf=Symbol.for("ufo:protocolRelative");function Na(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(!Ut(e,{acceptRelative:!0}))return zl(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}=zl(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:u,hash:c,[Kf]:!r}}function zl(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Xf(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Kf]?(e.protocol||"")+"//":"")+s+o+t+n+r}class ly extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function cy(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 ly(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 uy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Vl(e="GET"){return uy.has(e.toUpperCase())}function fy(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 dy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),hy=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function py(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return hy.test(t)?"json":t==="text/event-stream"?"stream":dy.has(t)||t.startsWith("text/")?"text":"blob"}function gy(e,t,n,r){const s=my(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 my(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 as(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const yy=new Set([408,409,425,429,500,502,503,504]),_y=new Set([101,204,205,304]);function Jf(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=Vl(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):yy.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=cy(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const c={request:l,options:gy(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 as(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=ny(c.request,c.options.baseURL)),c.options.query&&(c.request=zf(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Vl(c.options.method))if(fy(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 as(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!_y.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||py(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),m=c.options.parseResponse||Os;c.response._data=m(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 as(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await as(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={})=>Jf({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Hs=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),by=Hs.fetch?(...e)=>Hs.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),wy=Hs.Headers,vy=Hs.AbortController,Cy=Jf({fetch:by,Headers:wy,AbortController:vy}),xy=Cy,Sy=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,La=()=>Sy().app,ky=()=>La().baseURL,Ey=()=>La().buildAssetsDir,Ma=(...e)=>qf(Yf(),Ey(),...e),Yf=(...e)=>{const t=La(),n=t.cdnURL||t.baseURL;return e.length?qf(n,...e):n};globalThis.__buildAssetsURL=Ma,globalThis.__publicAssetsURL=Yf;globalThis.$fetch||(globalThis.$fetch=xy.create({baseURL:ky()}));"global"in globalThis||(globalThis.global=globalThis);function Ni(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Ni(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const Ay={run:e=>e()},Ty=()=>Ay,Zf=typeof console.createTask<"u"?console.createTask:Ty;function $y(e,t){const n=t.shift(),r=Zf(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Ry(e,t){const n=t.shift(),r=Zf(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function Xo(e,t){for(const n of[...e])n(t)}let Py=class{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=Ni(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=Ni(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($y,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Ry,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Xo(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&Xo(this._after,s)}):(this._after&&s&&Xo(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 Iy(){return new Py}function Ny(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;Li.add(u);try{const c=s?s.run(i,a):a();return n||(t=void 0),await c}finally{Li.delete(u)}}}}function Ly(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Ny({...e,...r})),t[n]}}}const Bs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},ql="__unctx__",My=Bs[ql]||(Bs[ql]=Ly()),Oy=(e,t={})=>My.get(e,t),Kl="__unctx_async_handlers__",Li=Bs[Kl]||(Bs[Kl]=new Set);function Dy(e){const t=[];for(const s of Li){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 Xl={id:"__nuxt-loader"},Hy={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},By="#__nuxt",Qf="nuxt-app",Jl=36e5,Fy="vite:preloadError";function ed(e=Qf){return Oy(e,{asyncContext:!1})}const jy="__nuxt_plugin";function Uy(e){let t=0;const n={_id:e.id||Qf||"nuxt-app",_scope:hp(),provide:void 0,versions:{get nuxt(){return"4.3.1"},get vue(){return n.vueApp.version}},payload:Hn({...e.ssrContext?.payload||{},data:Hn({}),state:tn({}),once:new Set,_errors:Hn({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!Au()?n._scope.run(()=>Yl(n,s)):Yl(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:Hn({}),_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=Iy(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const i="$"+s;ls(n,i,o),ls(n.vueApp.config.globalProperties,i,o)},ls(n.vueApp,"$nuxt",n),ls(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Fy,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=Ce;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 Gy(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Wy(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 zy(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=Wy(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)Gy(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 pt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[jy]:!0,_name:t})}function Yl(e,t,n){const r=()=>t();return ed(e._id).set(e),e.vueApp.runWithContext(r)}function Vy(e){let t;return fo()&&(t=sr()?.appContext.app.$nuxt),t||=ed(e).tryUse(),t||null}function Ce(e){const t=Vy(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function er(e){return Ce().$config}function ls(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Jo(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 Mi(e,t,n=".",r){if(!Jo(t))return Mi(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]]:Jo(i)&&Jo(s[o])?s[o]=Mi(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function qy(e){return(...t)=>t.reduce((n,r)=>Mi(n,r,"",e),{})}const Ky=qy();function Xy(e,t){try{return t in e}catch{return!1}}class Zl 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:Oi(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=td(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function Jy(e){if(typeof e=="string")return new Zl(e);if(Yy(e))return e;const t=new Zl(e.message??e.statusMessage??"",{cause:e.cause||e});if(Xy(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=Oi(e.statusCode,t.statusCode):e.status&&(t.statusCode=Oi(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;td(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 Yy(e){return e?.constructor?.__h3_error__===!0}const Zy=/[^\u0009\u0020-\u007E]/g;function td(e=""){return e.replace(Zy,"")}function Oi(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const nd=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Et=()=>Ce()?.$router,Oa=()=>fo()?wn(nd,Ce()._route):Ce()._route;const Qy=()=>{try{if(Ce()._processingMiddleware)return!0}catch{return!1}return!1},rd=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?Di(e):Et().resolve(e).href;if(t?.open){const{target:u="_blank",windowFeatures:c={}}=t.open,f=[];for(const[d,h]of Object.entries(c))h!==void 0&&f.push(`${d.toLowerCase()}=${h}`);return open(n,u,f.join(", ")),Promise.resolve()}const r=Ut(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:u}=new URL(n,window.location.href);if(u&&ey(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const o=Qy();if(!s&&o){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:f}=Na(e);return{path:u,...c&&{query:bo(c)},...f&&{hash:f},replace:!0}}return{...e,replace:!0}}return e}const i=Et(),a=Ce();if(s)return a._scope.stop(),t?.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const l=typeof e=="string"?sd(e):e;return t?.replace?i.replace(l):i.push(l)};function Di(e){return zf(e.path||"",e.query||{})+(e.hash||"")}function sd(e){const t=Na(e);return Wm(zm(t.pathname))+t.search+t.hash}const od="__nuxt_error",Da=()=>Wu(Ce().payload,"error"),e_=e=>{const t=Ha(e);try{const n=Da();Ce().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},t_=async(e={})=>{const t=Ce(),n=Da();t.callHook("app:error:cleared",e),e.redirect&&await Et().replace(e.redirect),n.value=void 0},n_=e=>!!e&&typeof e=="object"&&od in e,Ha=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=Jy(e);return Object.defineProperty(t,od,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};function r_(e){const t=o_(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 s_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function o_(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|=s_.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 i_=-1,a_=-2,l_=-3,c_=-4,u_=-5,f_=-6,d_=-7;function h_(e,t){return p_(JSON.parse(e),t)}function p_(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let s=null;function o(i,a=!1){if(i===i_)return;if(i===l_)return NaN;if(i===c_)return 1/0;if(i===u_)return-1/0;if(i===f_)return-0;if(a||typeof i!="number")throw new Error("Invalid input");if(i in r)return r[i];const l=n[i];if(!l||typeof l!="object")r[i]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const u=l[0],c=t&&Object.hasOwn(t,u)?t[u]:void 0;if(c){let f=l[1];if(typeof f!="number"&&(f=n.push(l[1])-1),s??=new Set,s.has(f))throw new Error("Invalid circular reference");return s.add(f),r[i]=c(o(f)),s.delete(f),r[i]}switch(u){case"Date":r[i]=new Date(l[1]);break;case"Set":const f=new Set;r[i]=f;for(let p=1;p<l.length;p+=1)f.add(o(l[p]));break;case"Map":const d=new Map;r[i]=d;for(let p=1;p<l.length;p+=2)d.set(o(l[p]),o(l[p+1]));break;case"RegExp":r[i]=new RegExp(l[1],l[2]);break;case"Object":r[i]=Object(l[1]);break;case"BigInt":r[i]=BigInt(l[1]);break;case"null":const h=Object.create(null);r[i]=h;for(let p=1;p<l.length;p+=2)h[l[p]]=o(l[p+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(n[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const p=globalThis[u],m=o(l[1]),w=new p(m);r[i]=l[2]!==void 0?w.subarray(l[2],l[3]):w;break}case"ArrayBuffer":{const p=l[1];if(typeof p!="string")throw new Error("Invalid ArrayBuffer encoding");const m=r_(p);r[i]=m;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 p=u.slice(9);r[i]=Temporal[p].from(l[1]);break}case"URL":{const p=new URL(l[1]);r[i]=p;break}case"URLSearchParams":{const p=new URLSearchParams(l[1]);r[i]=p;break}default:throw new Error(`Unknown type ${u}`)}}else if(l[0]===d_){const u=l[1],c=new Array(u);r[i]=c;for(let f=2;f<l.length;f+=2){const d=l[f];c[d]=o(l[f+1])}}else{const u=new Array(l.length);r[i]=u;for(let c=0;c<l.length;c+=1){const f=l[c];f!==a_&&(u[c]=o(f))}}else{const u={};r[i]=u;for(const c of Object.keys(l)){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=l[c];u[c]=o(f)}}return r[i]}return o(0)}const g_=new Set(["link","style","script","noscript"]),m_=new Set(["title","titleTemplate","script","style","noscript"]),Ql=new Set(["base","meta","link","style","script","noscript"]),y_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),__=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),b_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),w_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),v_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function Hi(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Hi(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const id=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function ad(e,t,n,r){for(let s=n;s<e.length;s+=1)try{const o=r?r.run(()=>e[s](...t)):e[s](...t);if(o instanceof Promise)return o.then(()=>ad(e,t,s+1,r))}catch(o){return Promise.reject(o)}}function C_(e,t,n){if(e.length>0)return ad(e,t,0,id(n))}function x_(e,t,n){if(e.length>0){const r=id(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}}function Yo(e,t){for(const n of[...e])n(t)}var S_=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;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(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!n.allowDeprecated){let o=s.message;o||(o=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...s)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...s));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Hi(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=Hi(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(C_,e,t)}callHookParallel(e,...t){return this.callHookWith(x_,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Yo(this._before,r);const s=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return s instanceof Promise?s.finally(()=>{this._after&&r&&Yo(this._after,r)}):(this._after&&r&&Yo(this._after,r),s)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function k_(){return new S_}const E_=["name","property","http-equiv"],A_=new Set(["viewport","description","keywords","robots"]);function ld(e){const t=e.split(":");return t.length?v_.has(t[1]):!1}function Bi(e){const{props:t,tag:n}=e;if(__.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";const r=t.hreflang||t.type;if(n==="link"&&t.rel==="alternate"&&r)return`alternate:${r}`;if(t.charset)return"charset";if(e.tag==="meta"){for(const s of E_)if(t[s]!==void 0){const o=t[s],i=o&&typeof o=="string"&&o.includes(":"),a=o&&A_.has(o),u=!(i||a)&&e.key?`:key:${e.key}`:"";return`${n}:${o}${u}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(m_.has(n)){const s=e.textContent||e.innerHTML;if(s)return`${n}:content:${s}`}}function ec(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 Fs(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const s=t?t(n,e):e;if(Array.isArray(s))return s.map(o=>Fs(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=Fs(s[i],t,i);return o}return s}function T_(e,t){const n=e==="style"?new Map:new Set;function r(s){if(s==null||s===void 0)return;const o=String(s).trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(l=>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(String(s).trim(),String(o)):r(s))}),n}function cd(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=T_(n,r);return}if(b_.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let a=t.type;if(t.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;t.type=a,e.props.type=a,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-"),i=e.tag==="meta"&&n==="content";s==="true"||s===""?e.props[n]=o||i?s:!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function $_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=cd({tag:e,props:{}},n);return r.key&&g_.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function R_(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,o)=>{for(let i=0;i<t.length;i++)o=t[i](s,o);return o};e=n(void 0,e);const r=[];return e=Fs(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push($_(s,i))}),r.flat()}const tc=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,nc={base:-10,title:10},P_={critical:-8,high:-1,low:2},rc={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}},I_=/@import/,dr=e=>e===""||e===!0;function N_(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=P_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:rc;if(t.tag in nc)n=nc[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=rc.meta[o])}else if(t.tag==="link"&&t.props.rel)n=s.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);dr(t.props.async)?n=s.script.async:t.props.src&&!dr(t.props.defer)&&!dr(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?n=s.script.sync:(dr(t.props.defer)&&t.props.src&&!dr(t.props.async)||o==="module")&&(n=s.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&I_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function sc(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function L_(e={}){const t=k_();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=>sc(i,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??i._entryCount++,f={_i:c,input:a,options:u},d={_poll(h=!1){i.dirty=!0,!h&&o.add(c),t.callHook("entries:updated",i)},dispose(){r.delete(c)&&i.invalidate()},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=h,r.set(c,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const d=o.values().next().value;o.delete(d);const h=r.get(d);if(h){const p={tags:R_(h.input,e.propResolvers||[]).map(m=>Object.assign(m,h.options)),entry:h};await t.callHook("entries:normalize",p),h._tags=p.tags.map((m,w)=>(m._w=N_(i,m),m._p=(h._i<<10)+w,m._d=Bi(m),m))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(tc).reduce((d,h)=>{const p=String(h._d||h._p);if(!d.has(p))return d.set(p,h);const m=d.get(p);if((h?.tagDuplicateStrategy||(w_.has(h.tag)?"merge":null)||(h.key&&h.key===m.key?"merge":null))==="merge"){const _={...m.props};Object.entries(h.props).forEach(([v,g])=>_[v]=v==="style"?new Map([...m.props.style||new Map,...g]):v==="class"?new Set([...m.props.class||new Set,...g]):g),d.set(p,{...h,props:_})}else h._p>>10===m._p>>10&&h.tag==="meta"&&ld(p)?(d.set(p,Object.assign([...Array.isArray(m)?m:[m],h],h)),l=!0):(h._w===m._w?h._p>m._p:h?._w<m?._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(tc)),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:m}=d;if(y_.has(p)&&!(Object.keys(m).length===0&&!d.innerHTML&&!d.textContent)&&!(p==="meta"&&!m.content&&!m["http-equiv"]&&!m.charset)){if(p==="script"&&h){if(String(m.type).endsWith("json")){const w=typeof h=="string"?h:JSON.stringify(h);d.innerHTML=w.replace(/</g,"\\u003C")}else typeof h=="string"&&(d.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));d._d=Bi(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=>sc(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const M_=(e,t)=>be(t)?va(t):t,Ba="usehead";function O_(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Ba,e)}}.install}function D_(){if(fo()){const e=wn(Ba);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function H_(e,t={}){const n=t.head||D_();return n.ssr?n.push(e||{},t):B_(n,e,t)}function B_(e,t,n={}){const r=ke(!1);let s;return Xu(()=>{const i=r.value?{}:Fs(t,M_);s?s.patch(i):s=e.push(i,n)}),sr()&&(Aa(()=>{s.dispose()}),Zu(()=>{r.value=!0}),Yu(()=>{r.value=!1})),s}function F_(e){const t=e||Ce();return t.ssrContext?.head||t.runWithContext(()=>{if(fo()){const n=wn(Ba);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function j_(e,t={}){const n=t.head||F_(t.nuxt);return H_(e,{head:n,...t})}const U_=(e,t)=>[],G_=e=>Ky({},...U_().map(t=>t.data).reverse()),W_=G_;let vs;function z_(){return vs=$fetch(Ma(`builds/meta/${er().app.buildId}.json`),{responseType:"json"}),vs.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),vs}function Fa(){return vs||z_()}function wo(e){const t=typeof e=="string"?e:e.path;try{return W_(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function oc(e,t={}){if(await K_(e)){const n=await q_(e,t);return await ud(n)||null}return null}const V_="_payload.json";async function q_(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Ut(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=er(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await X_(e)?o:r.app.baseURL;return Jr(i,n.pathname,V_+(s?`?${s}`:""))}async function ud(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(hd));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}function fd(e){if(e.redirect)return!1;if(e.prerender)return!0}async function dd(e){return e=e==="/"?e:e.replace(/\/$/,""),(await Fa()).prerendered.includes(e)}async function K_(e=Oa().path){const t=wo({path:e}),n=fd(t);return n!==void 0?n:t.payload?!0:await dd(e)}async function X_(e=Oa().path){const t=fd(wo({path:e}));return t!==void 0?t:await dd(e)}let ln=null;async function J_(){if(ln)return ln;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await hd(e.textContent||""),n=e.dataset.src?await ud(e.dataset.src):void 0;return ln={...t,...n,...window.__NUXT__},ln.config?.public&&(ln.config.public=tn(ln.config.public)),ln}async function hd(e){return await h_(e,Ce()._payloadRevivers)}function Y_(e,t){Ce()._payloadRevivers[e]=t}const Z_=[["NuxtError",e=>Ha(e)],["EmptyShallowRef",e=>wi(e==="_"?void 0:e==="0n"?BigInt(0):Os(e))],["EmptyRef",e=>ke(e==="_"?void 0:e==="0n"?BigInt(0):Os(e))],["ShallowRef",e=>wi(e)],["ShallowReactive",e=>Hn(e)],["Ref",e=>ke(e)],["Reactive",e=>tn(e)]],Q_=pt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of Z_)Y_(r,s);Object.assign(e.payload,([t,n]=Dy(()=>e.runWithContext(J_)),t=await t,n(),t)),delete window.__NUXT__}});async function ja(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(m=>{const w=o.get(m._d)||0,_={tag:m,id:(w?`${m._d}:${w}`:m._d)||ec(m),shouldRender:!0};return m._d&&ld(m._d)&&o.set(m._d,w+1),_}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const p=n[h]?.children;for(const m of p){const w=m.tagName.toLowerCase();if(!Ql.has(w))continue;const _=cd({tag:w,props:{}},{innerHTML:m.innerHTML,...m.getAttributeNames().reduce((v,g)=>(v[g]=m.getAttribute(g),v),{})||{}});if(_.key=m.getAttribute("data-hid")||void 0,_._d=Bi(_)||ec(_),a.elMap.has(_._d)){let v=1,g=_._d;for(;a.elMap.has(g);)g=`${_._d}:${v++}`;a.elMap.set(g,m)}else a.elMap.set(_._d,m)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,p,m){const w=`${h}:${p}`;a.sideEffects[w]=m,delete a.pendingSideEffects[w]}function u({id:h,$el:p,tag:m}){const w=m.tag.endsWith("Attrs");a.elMap.set(h,p),w||(m.textContent&&m.textContent!==p.textContent&&(p.textContent=m.textContent),m.innerHTML&&m.innerHTML!==p.innerHTML&&(p.innerHTML=m.innerHTML),l(h,"el",()=>{p?.remove(),a.elMap.delete(h)}));for(const _ in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,_))continue;const v=m.props[_];if(_.startsWith("on")&&typeof v=="function"){const b=p?.dataset;if(b&&b[`${_}fired`]){const x=_.slice(0,-5);v.call(p,new Event(x.substring(2)))}p.getAttribute(`data-${_}`)!==""&&((m.tag==="bodyAttrs"?n.defaultView:p).addEventListener(_.substring(2),v.bind(p)),p.setAttribute(`data-${_}`,""));continue}const g=`attr:${_}`;if(_==="class"){if(!v)continue;for(const b of v)w&&l(h,`${g}:${b}`,()=>p.classList.remove(b)),!p.classList.contains(b)&&p.classList.add(b)}else if(_==="style"){if(!v)continue;for(const[b,x]of v)l(h,`${g}:${b}`,()=>{p.style.removeProperty(b)}),p.style.setProperty(b,x)}else v!==!1&&v!==null&&(p.getAttribute(_)!==v&&p.setAttribute(_,v===!0?"":String(v)),w&&l(h,g,()=>p.removeAttribute(_)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const h of d){const{tag:p,shouldRender:m,id:w}=h;if(m){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}h.$el=h.$el||a.elMap.get(w),h.$el?u(h):Ql.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 eb(e={}){const t=e.domOptions?.render||ja;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return L_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function tb(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function nb(e={}){const t=eb({domOptions:{render:tb(()=>ja(t),n=>setTimeout(n,0))},...e});return t.install=O_(t),t}const rb={disableDefaults:!0},sb=pt({name:"nuxt:head",enforce:"pre",setup(e){const t=nb(rb);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await ja(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)}}}),ob=e=>{const t=wo({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return Ut(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},ib=[ob];function Zo(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=Xf({pathname:e.path||"",search:Gf(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:bo(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const ab=pt({name:"nuxt:router",enforce:"pre",setup(e){const t=ry(window.location.pathname,er().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(d,h)=>(r[d].push(h),()=>r[d].splice(r[d].indexOf(h),1)),o=er().app.baseURL,i=tn(Zo(t));async function a(d,h){try{const p=Zo(d);for(const m of r["navigate:before"]){const w=await m(p,i);if(w===!1||w instanceof Error)return;if(typeof w=="string"&&w.length)return a(w,!0)}for(const m of r["resolve:before"])await m(p,i);Object.assign(i,p),window.history[h?"replaceState":"pushState"]({},"",Jr(o,p.fullPath)),e.isHydrating||await e.runWithContext(t_);for(const m of r["navigate:after"])await m(p,i)}catch(p){for(const m of r.error)await m(p)}}const u={currentRoute:Oe(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:d=>a(d,!1),replace:d=>a(d,!0),back:()=>window.history.go(-1),go:d=>window.history.go(d),forward:()=>window.history.go(1),beforeResolve:d=>s("resolve:before",d),beforeEach:d=>s("navigate:before",d),afterEach:d=>s("navigate:after",d),onError:d=>s("error",d),resolve:Zo,addRoute:(d,h)=>{n.push(h)},getRoutes:()=>n,hasRoute:d=>n.some(h=>h.name===d),removeRoute:d=>{const h=n.findIndex(p=>p.name===d);h!==-1&&n.splice(h,1)}};e.vueApp.component("RouterLink",Tt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(d,{slots:h})=>{const p=()=>a(d.to,d.replace);return()=>{const m=u.resolve(d.to);return d.custom?h.default?.({href:d.to,navigate:p,route:m}):Ms("a",{href:d.to,onClick:w=>(w.preventDefault(),p())},h)}}})),window.addEventListener("popstate",d=>{const h=d.target.location;u.replace(h.href.replace(h.origin,""))}),e._route=i,e._middleware||={global:[],named:{}};const c=e.payload.state._layout,f=e.payload.state._layoutProps;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(d,h)=>{d.meta=tn(d.meta||{}),e.isHydrating&&c&&!St(d.meta.layout)&&(d.meta.layout=c,d.meta.layoutProps=f),e._processingMiddleware=!0;{const p=new Set([...ib,...e._middleware.global]),m=wo({path:d.path});if(m.appMiddleware)for(const w in m.appMiddleware){const _=e._middleware.named[w];_&&(m.appMiddleware[w]?p.add(_):p.delete(_))}for(const w of p){const _=await e.runWithContext(()=>w(d,h));if(_!==!0&&(_||_===!1))return _}}}),u.afterEach(()=>{delete e._processingMiddleware}),await u.replace(t),ay(i.fullPath,t)||await e.runWithContext(()=>rd(i.fullPath))}),{provide:{route:i,router:u}}}}),Fi=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),lb=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),vo=e=>{const t=Ce();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Fi(()=>e())}):Fi(()=>e())},cb="$s";function ub(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=cb+n,o=Ce(),i=Wu(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(be(a))return o.payload.state[s]=a,a;i.value=a}return i}async function pd(e,t=Et()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>pd(e,t));t._routePreloaded.add(n);for(const o of r){const i=o.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function fb(e={}){const t=e.path||window.location.pathname;let n={};try{n=Os(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:Ce().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const db=(...e)=>e.find(t=>t!==void 0);function hb(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 cs(o,l);const u="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:cs(u,l)}}function s(o){const i=Et(),a=er(),l=Oe(()=>!!o.target&&o.target!=="_self"),u=Oe(()=>{const w=o.to||o.href||"";return typeof w=="string"&&Ut(w,{acceptRelative:!0})}),c=nn("RouterLink"),f=c&&typeof c!="string"?c.useLink:void 0,d=Oe(()=>{if(o.external)return!0;const w=o.to||o.href||"";return typeof w=="object"?!1:w===""||u.value}),h=Oe(()=>{const w=o.to||o.href||"";return d.value?w:r(w,i.resolve,o.trailingSlash)}),p=d.value?void 0:f?.({...o,to:h}),m=Oe(()=>{const w=o.trailingSlash??e.trailingSlash;if(!h.value||u.value||n(h.value))return h.value;if(d.value){const _=typeof h.value=="object"&&"path"in h.value?Di(h.value):h.value,v=typeof _=="object"?i.resolve(_).href:_;return cs(v,w)}return typeof h.value=="object"?i.resolve(h.value)?.href??null:cs(Jr(a.app.baseURL,h.value),w)});return{to:h,hasTarget:l,isAbsoluteUrl:u,isExternal:d,href:m,isActive:p?.isActive??Oe(()=>h.value===i.currentRoute.value.path),isExactActive:p?.isExactActive??Oe(()=>h.value===i.currentRoute.value.path),route:p?.route??Oe(()=>i.resolve(h.value)),async navigate(w){await rd(m.value,{replace:o.replace,external:d.value||l.value})}}}return Tt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const a=Et(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=s(o),p=wi(!1),m=ke(null),w=g=>{m.value=o.custom?g?.$el?.nextElementSibling:g?.$el};function _(g){return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===g:o.prefetchOn?.[g]??e.prefetchOn?.[g])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!yb()}async function v(g=Ce()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:f.value?Di(l.value):a.resolve(l.value).fullPath,x=f.value?new URL(b,window.location.href).href:b;await Promise.all([g.hooks.callHook("link:prefetch",x).catch(()=>{}),!f.value&&!d.value&&pd(l.value,a).catch(()=>{})])}if(_("visibility")){const g=Ce();let b,x=null;ef(()=>{const T=gb();vo(()=>{b=Fi(()=>{m?.value?.tagName&&(x=T.observe(m.value,async()=>{x?.(),x=null,await v(g)}))})})}),Aa(()=>{b&&lb(b),x?.(),x=null})}return()=>{if(!f.value&&!d.value&&!n(l.value)){const x={ref:w,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(_("interaction")&&(x.onPointerenter=v.bind(null,void 0),x.onFocus=v.bind(null,void 0)),p.value&&(x.class=o.prefetchedClass||e.prefetchedClass),x.rel=o.rel||void 0),Ms(nn("RouterLink"),x,i.default)}const g=o.target||null,b=db(o.noRel?"":o.rel,e.externalRelAttribute,h.value||d.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:u.value,navigate:c,prefetch:v,get route(){if(!u.value)return;const x=new URL(u.value,window.location.href);return{path:x.pathname,fullPath:x.pathname,get query(){return bo(x.search)},hash:x.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:b,target:g,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Ms("a",{ref:m,href:u.value||null,rel:b,target:g,onClick:async x=>{if(!(f.value||d.value)){x.preventDefault();try{const T=sd(u.value);return await(o.replace?a.replace(T):a.push(T))}finally{if(n(l.value)){const T=l.value.slice(1);let N=T;try{N=decodeURIComponent(T)}catch{}document.getElementById(N)?.focus()}}}}},i.default?.())}}})}const pb=hb(Hy);function cs(e,t){const n=t==="append"?Ds:Ia;return Ut(e)&&!e.startsWith("http")?e:n(e,!0)}function gb(){const e=Ce();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 mb=/2g/;function yb(){const e=navigator.connection;return!!(e&&(e.saveData||mb.test(e.effectiveType)))}function _b(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!Ut(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=oy(String(e.url)));const t=Object.keys(e).sort((r,s)=>r.localeCompare(s)),n={};for(const r of t)n[r]=e[r];return n}function bb(e){const n=[];function r(o){if(!o||typeof o!="object"||Object.keys(o).length===0)return()=>{};o._context;const i={};for(const a in o){const l=o[a];typeof l<"u"&&l!==""&&(i[a]=l)}return Object.keys(i).filter(a=>!a.startsWith("_")).length===0?()=>{}:(n.push(i),()=>{const a=n.indexOf(i);a!==-1&&n.splice(a,1)})}function s(o){const i={};o?.debug&&(i._context={}),i._priority={};for(const a in n.sort((l,u)=>(l._priority||0)-(u._priority||0)))for(const l in n[a]){const u=l,c=o?.resolveRefs?va(n[a][l]):n[a][l];!l.startsWith("_")&&typeof c<"u"&&c!==""&&(i[l]=c,typeof n[a]._priority<"u"&&n[a]._priority!==-1&&(i._priority[u]=n[a]._priority),o?.debug&&(i._context[u]=n[a]._context?.[u]||n[a]._context||"anonymous"))}return o?.skipNormalize?i:_b(i)}return{stack:n,push:r,get:s}}const wb=pt({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=bb(),n=ub("site-config");{const r=n.value||window.__NUXT_SITE_CONFIG__||{};for(const s in r)s[0]!=="_"&&t.push({[s]:r[s],_priority:r._priority?.[s]||-1})}return{provide:{nuxtSiteConfig:t}}}}),vb=pt({name:"nuxt:payload",setup(e){const t=new Set;Et().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await oc(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]}}),vo(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await oc(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(Fa,1e3)})}}),Cb=pt(()=>{const e=Et();vo(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),xb=pt(e=>{let t;async function n(){let r;try{r=await Fa()}catch(s){const o=s;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,Jl);try{const s=await $fetch(Ma("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}vo(()=>{t=setTimeout(n,Jl)})}),Sb=pt({name:"nuxt:chunk-reload",setup(e){const t=Et(),n=er(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const i=Jr(n.app.baseURL,o.fullPath);fb({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),kb=pt({name:"nuxt:global-components"}),Eb=pt(()=>{}),Ab=["top","right","bottom","left"],ic=["start","end"],ac=Ab.reduce((e,t)=>e.concat(t,t+"-"+ic[0],t+"-"+ic[1]),[]),Dr=Math.min,dn=Math.max,Tb={left:"right",right:"left",bottom:"top",top:"bottom"},$b={start:"end",end:"start"};function ji(e,t,n){return dn(e,Dr(t,n))}function An(e,t){return typeof e=="function"?e(t):e}function At(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function gd(e){return e==="x"?"y":"x"}function Ua(e){return e==="y"?"height":"width"}function kn(e){return["top","bottom"].includes(At(e))?"y":"x"}function Ga(e){return gd(kn(e))}function md(e,t,n){n===void 0&&(n=!1);const r=ut(e),s=Ga(e),o=Ua(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Us(i)),[i,Us(i)]}function Rb(e){const t=Us(e);return[js(e),t,js(t)]}function js(e){return e.replace(/start|end/g,t=>$b[t])}function Pb(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function Ib(e,t,n,r){const s=ut(e);let o=Pb(At(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(js)))),o}function Us(e){return e.replace(/left|right|bottom|top/g,t=>Tb[t])}function Nb(e){return{top:0,right:0,bottom:0,left:0,...e}}function yd(e){return typeof e!="number"?Nb(e):{top:e,right:e,bottom:e,left:e}}function Sr(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 lc(e,t,n){let{reference:r,floating:s}=e;const o=kn(t),i=Ga(t),a=Ua(i),l=At(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(ut(t)){case"start":h[i]-=d*(n&&u?-1:1);break;case"end":h[i]+=d*(n&&u?-1:1);break}return h}const Lb=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=lc(u,r,l),d=r,h={},p=0;for(let m=0;m<a.length;m++){const{name:w,fn:_}=a[m],{x:v,y:g,data:b,reset:x}=await _({x:c,y:f,initialPlacement:r,placement:d,strategy:s,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});c=v??c,f=g??f,h={...h,[w]:{...h[w],...b}},x&&p<=50&&(p++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(u=x.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):x.rects),{x:c,y:f}=lc(u,d,l)),m=-1)}return{x:c,y:f,placement:d,strategy:s,middlewareData:h}};async function Co(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}=An(t,e),p=yd(h),w=a[d?f==="floating"?"reference":"floating":f],_=Sr(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,g=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),b=await(o.isElement==null?void 0:o.isElement(g))?await(o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},x=Sr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:g,strategy:l}):v);return{top:(_.top-x.top+p.top)/b.y,bottom:(x.bottom-_.bottom+p.bottom)/b.y,left:(_.left-x.left+p.left)/b.x,right:(x.right-_.right+p.right)/b.x}}const Mb=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}=An(e,t)||{};if(u==null)return{};const f=yd(c),d={x:n,y:r},h=Ga(s),p=Ua(h),m=await i.getDimensions(u),w=h==="y",_=w?"top":"left",v=w?"bottom":"right",g=w?"clientHeight":"clientWidth",b=o.reference[p]+o.reference[h]-d[h]-o.floating[p],x=d[h]-o.reference[h],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let N=T?T[g]:0;(!N||!await(i.isElement==null?void 0:i.isElement(T)))&&(N=a.floating[g]||o.floating[p]);const B=b/2-x/2,F=N/2-m[p]/2-1,P=Dr(f[_],F),W=Dr(f[v],F),U=P,Q=N-m[p]-W,Y=N/2-m[p]/2+B,oe=ji(U,Y,Q),O=!l.arrow&&ut(s)!=null&&Y!==oe&&o.reference[p]/2-(Y<U?P:W)-m[p]/2<0,z=O?Y<U?Y-U:Y-Q:0;return{[h]:d[h]+z,data:{[h]:oe,centerOffset:Y-oe-z,...O&&{alignmentOffset:z}},reset:O}}});function Ob(e,t,n){return(e?[...n.filter(s=>ut(s)===e),...n.filter(s=>ut(s)!==e)]:n.filter(s=>At(s)===s)).filter(s=>e?ut(s)===e||(t?js(s)!==s:!1):!0)}const Db=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,s;const{rects:o,middlewareData:i,placement:a,platform:l,elements:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:d=ac,autoAlignment:h=!0,...p}=An(e,t),m=f!==void 0||d===ac?Ob(f||null,h,d):d,w=await Co(t,p),_=((n=i.autoPlacement)==null?void 0:n.index)||0,v=m[_];if(v==null)return{};const g=md(v,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==v)return{reset:{placement:m[0]}};const b=[w[At(v)],w[g[0]],w[g[1]]],x=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:b}],T=m[_+1];if(T)return{data:{index:_+1,overflows:x},reset:{placement:T}};const N=x.map(P=>{const W=ut(P.placement);return[P.placement,W&&c?P.overflows.slice(0,2).reduce((U,Q)=>U+Q,0):P.overflows[0],P.overflows]}).sort((P,W)=>P[1]-W[1]),F=((s=N.filter(P=>P[2].slice(0,ut(P[0])?2:3).every(W=>W<=0))[0])==null?void 0:s[0])||N[0][0];return F!==a?{data:{index:_+1,overflows:x},reset:{placement:F}}:{}}}},Hb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=An(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=At(s),v=kn(a),g=At(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),x=d||(g||!m?[Us(a)]:Rb(a)),T=p!=="none";!d&&T&&x.push(...Ib(a,m,p,b));const N=[a,...x],B=await Co(t,w),F=[];let P=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&F.push(B[_]),f){const Y=md(s,i,b);F.push(B[Y[0]],B[Y[1]])}if(P=[...P,{placement:s,overflows:F}],!F.every(Y=>Y<=0)){var W,U;const Y=(((W=o.flip)==null?void 0:W.index)||0)+1,oe=N[Y];if(oe)return{data:{index:Y,overflows:P},reset:{placement:oe}};let O=(U=P.filter(z=>z.overflows[0]<=0).sort((z,D)=>z.overflows[1]-D.overflows[1])[0])==null?void 0:U.placement;if(!O)switch(h){case"bestFit":{var Q;const z=(Q=P.filter(D=>{if(T){const se=kn(D.placement);return se===v||se==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(se=>se>0).reduce((se,$n)=>se+$n,0)]).sort((D,se)=>D[1]-se[1])[0])==null?void 0:Q[0];z&&(O=z);break}case"initialPlacement":O=a;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function Bb(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=At(n),a=ut(n),l=kn(n)==="y",u=["left","top"].includes(i)?-1:1,c=o&&l?-1:1,f=An(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 Fb=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 Bb(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}}}}},jb=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:w=>{let{x:_,y:v}=w;return{x:_,y:v}}},...l}=An(e,t),u={x:n,y:r},c=await Co(t,l),f=kn(At(s)),d=gd(f);let h=u[d],p=u[f];if(o){const w=d==="y"?"top":"left",_=d==="y"?"bottom":"right",v=h+c[w],g=h-c[_];h=ji(v,h,g)}if(i){const w=f==="y"?"top":"left",_=f==="y"?"bottom":"right",v=p+c[w],g=p-c[_];p=ji(v,p,g)}const m=a.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:o,[f]:i}}}}}},Ub=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}=An(e,t),c=await Co(t,u),f=At(s),d=ut(s),h=kn(s)==="y",{width:p,height:m}=o.floating;let w,_;f==="top"||f==="bottom"?(w=f,_=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,w=d==="end"?"top":"bottom");const v=m-c.top-c.bottom,g=p-c.left-c.right,b=Dr(m-c[w],v),x=Dr(p-c[_],g),T=!t.middlewareData.shift;let N=b,B=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=v),T&&!d){const P=dn(c.left,0),W=dn(c.right,0),U=dn(c.top,0),Q=dn(c.bottom,0);h?B=p-2*(P!==0||W!==0?P+W:dn(c.left,c.right)):N=m-2*(U!==0||Q!==0?U+Q:dn(c.top,c.bottom))}await l({...t,availableWidth:B,availableHeight:N});const F=await i.getDimensions(a.floating);return p!==F.width||m!==F.height?{reset:{rects:!0}}:{}}}};function tt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ct(e){return tt(e).getComputedStyle(e)}const cc=Math.min,kr=Math.max,Gs=Math.round;function _d(e){const t=Ct(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=Gs(n)!==s||Gs(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function rn(e){return wd(e)?(e.nodeName||"").toLowerCase():""}let us;function bd(){if(us)return us;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(us=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),us):navigator.userAgent}function xt(e){return e instanceof tt(e).HTMLElement}function Zt(e){return e instanceof tt(e).Element}function wd(e){return e instanceof tt(e).Node}function uc(e){return typeof ShadowRoot>"u"?!1:e instanceof tt(e).ShadowRoot||e instanceof ShadowRoot}function xo(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Gb(e){return["table","td","th"].includes(rn(e))}function Ui(e){const t=/firefox/i.test(bd()),n=Ct(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 vd(){return!/^((?!chrome|android).)*safari/i.test(bd())}function Wa(e){return["html","body","#document"].includes(rn(e))}function Cd(e){return Zt(e)?e:e.contextElement}const xd={x:1,y:1};function Vn(e){const t=Cd(e);if(!xt(t))return xd;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=_d(t);let i=(o?Gs(n.width):n.width)/r,a=(o?Gs(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function Hr(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Cd(e);let l=xd;t&&(r?Zt(r)&&(l=Vn(r)):l=Vn(e));const u=a?tt(a):window,c=!vd()&&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 m=tt(a),w=r&&Zt(r)?tt(r):r;let _=m.frameElement;for(;_&&r&&w!==m;){const v=Vn(_),g=_.getBoundingClientRect(),b=getComputedStyle(_);g.x+=(_.clientLeft+parseFloat(b.paddingLeft))*v.x,g.y+=(_.clientTop+parseFloat(b.paddingTop))*v.y,f*=v.x,d*=v.y,h*=v.x,p*=v.y,f+=g.x,d+=g.y,_=tt(_).frameElement}}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function Qt(e){return((wd(e)?e.ownerDocument:e.document)||window.document).documentElement}function So(e){return Zt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sd(e){return Hr(Qt(e)).left+So(e).scrollLeft}function Br(e){if(rn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||uc(e)&&e.host||Qt(e);return uc(t)?t.host:t}function kd(e){const t=Br(e);return Wa(t)?t.ownerDocument.body:xt(t)&&xo(t)?t:kd(t)}function Ws(e,t){var n;t===void 0&&(t=[]);const r=kd(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=tt(r);return s?t.concat(o,o.visualViewport||[],xo(r)?r:[]):t.concat(r,Ws(r))}function fc(e,t,n){return t==="viewport"?Sr((function(r,s){const o=tt(r),i=Qt(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=vd();(d||!d&&s==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:l,height:u,x:c,y:f}})(e,n)):Zt(t)?Sr((function(r,s){const o=Hr(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=xt(r)?Vn(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)):Sr((function(r){const s=Qt(r),o=So(r),i=r.ownerDocument.body,a=kr(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=kr(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let u=-o.scrollLeft+Sd(r);const c=-o.scrollTop;return Ct(i).direction==="rtl"&&(u+=kr(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:c}})(Qt(e)))}function dc(e){return xt(e)&&Ct(e).position!=="fixed"?e.offsetParent:null}function hc(e){const t=tt(e);let n=dc(e);for(;n&&Gb(n)&&Ct(n).position==="static";)n=dc(n);return n&&(rn(n)==="html"||rn(n)==="body"&&Ct(n).position==="static"&&!Ui(n))?t:n||(function(r){let s=Br(r);for(;xt(s)&&!Wa(s);){if(Ui(s))return s;s=Br(s)}return null})(e)||t}function Wb(e,t,n){const r=xt(t),s=Qt(t),o=Hr(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((rn(t)!=="body"||xo(s))&&(i=So(t)),xt(t)){const l=Hr(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Sd(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const zb={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=Ws(u).filter((w=>Zt(w)&&rn(w)!=="body")),h=null;const p=Ct(u).position==="fixed";let m=p?Br(u):u;for(;Zt(m)&&!Wa(m);){const w=Ct(m),_=Ui(m);(p?_||h:_||w.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=w:d=d.filter((v=>v!==m)),m=Br(m)}return c.set(u,d),d})(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce(((u,c)=>{const f=fc(t,c,s);return u.top=kr(f.top,u.top),u.right=cc(f.right,u.right),u.bottom=cc(f.bottom,u.bottom),u.left=kr(f.left,u.left),u}),fc(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=xt(n),o=Qt(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")&&((rn(n)!=="body"||xo(o))&&(i=So(n)),xt(n))){const u=Hr(n);a=Vn(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:Zt,getDimensions:function(e){return xt(e)?_d(e):e.getBoundingClientRect()},getOffsetParent:hc,getDocumentElement:Qt,getScale:Vn,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||hc,o=this.getDimensions;return{reference:Wb(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ct(e).direction==="rtl"},Vb=(e,t,n)=>{const r=new Map,s={platform:zb,...n},o={...s.platform,_c:r};return Lb(e,t,{...s,platform:o})};function Ed(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Ed(e[n],t[n]):e[n]=t[n])}const ft={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Fr(e,t){let n=ft.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=ft.themes[n.$extend]||{}:(n=null,r=ft[t]):n=null;while(n);return r}function qb(e){const t=[e];let n=ft.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=ft.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function pc(e){const t=[e];let n=ft.themes[e]||{};do n.$extend?(t.push(n.$extend),n=ft.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 Ad=!1;typeof window<"u"&&typeof navigator<"u"&&(Ad=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Td=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),gc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},mc={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function yc(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Qo(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const at=[];let cn=null;const _c={};function bc(e){let t=_c[e];return t||(t=_c[e]=[]),t}let Gi=function(){};typeof window<"u"&&(Gi=window.Element);function re(e){return function(t){return Fr(t.theme,e)}}const ei="__floating-vue__popper",$d=()=>Tt({name:"VPopper",provide(){return{[ei]:{parentPopper:this}}},inject:{[ei]:{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:re("disabled")},positioningDisabled:{type:Boolean,default:re("positioningDisabled")},placement:{type:String,default:re("placement"),validator:e=>Td.includes(e)},delay:{type:[String,Number,Object],default:re("delay")},distance:{type:[Number,String],default:re("distance")},skidding:{type:[Number,String],default:re("skidding")},triggers:{type:Array,default:re("triggers")},showTriggers:{type:[Array,Function],default:re("showTriggers")},hideTriggers:{type:[Array,Function],default:re("hideTriggers")},popperTriggers:{type:Array,default:re("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:re("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:re("popperHideTriggers")},container:{type:[String,Object,Gi,Boolean],default:re("container")},boundary:{type:[String,Gi],default:re("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:re("strategy")},autoHide:{type:[Boolean,Function],default:re("autoHide")},handleResize:{type:Boolean,default:re("handleResize")},instantMove:{type:Boolean,default:re("instantMove")},eagerMount:{type:Boolean,default:re("eagerMount")},popperClass:{type:[String,Array,Object],default:re("popperClass")},computeTransformOrigin:{type:Boolean,default:re("computeTransformOrigin")},autoMinSize:{type:Boolean,default:re("autoMinSize")},autoSize:{type:[Boolean,String],default:re("autoSize")},autoMaxSize:{type:Boolean,default:re("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:re("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:re("preventOverflow")},overflowPadding:{type:[Number,String],default:re("overflowPadding")},arrowPadding:{type:[Number,String],default:re("arrowPadding")},arrowOverflow:{type:Boolean,default:re("arrowOverflow")},flip:{type:Boolean,default:re("flip")},shift:{type:Boolean,default:re("shift")},shiftCrossAxis:{type:Boolean,default:re("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:re("noAutoFocus")},disposeTimeout:{type:Number,default:re("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[ei])==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(Fb({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Db({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(jb({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Hb({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Mb({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(Ub({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 Vb(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),cn&&this.instantMove&&cn.instantMove&&cn!==this.parentPopper){cn.$_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&&(cn=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 Qo(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Ws(this.$_referenceNode),...Ws(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<at.length;n++)t=at[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}at.push(this),document.body.classList.add("v-popper--some-open");for(const t of pc(this.theme))bc(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 Qo(),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,yc(at,this),at.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of pc(this.theme)){const r=bc(n);yc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}cn===this&&(cn=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 Qo(),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,gc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],gc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,mc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],mc,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(Er>=e.left&&Er<=e.right&&Ar>=e.top&&Ar<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Er-Gt,r=Ar-Wt,s=t.left+t.width/2-Gt+(t.top+t.height/2)-Wt+t.width+t.height,o=Gt+n*s,i=Wt+r*s;return fs(Gt,Wt,o,i,t.left,t.top,t.left,t.bottom)||fs(Gt,Wt,o,i,t.left,t.top,t.right,t.top)||fs(Gt,Wt,o,i,t.right,t.top,t.right,t.bottom)||fs(Gt,Wt,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(Ad){const e=tr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>wc(t,!0),e),document.addEventListener("touchend",t=>vc(t,!0),e)}else window.addEventListener("mousedown",e=>wc(e,!1),!0),window.addEventListener("click",e=>vc(e,!1),!0);window.addEventListener("resize",Xb)}function wc(e,t){if(ft.autoHideOnMousedown)Rd(e,t);else for(let n=0;n<at.length;n++){const r=at[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function vc(e,t){ft.autoHideOnMousedown||Rd(e,t)}function Rd(e,t){const n={};for(let r=at.length-1;r>=0;r--){const s=at[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Cc(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&&Cc(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Cc(e,t,n){return n.closeAllPopover||n.closePopover&&t||Kb(e,n)&&!t}function Kb(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Xb(){for(let e=0;e<at.length;e++)at[e].$_computePosition()}let Gt=0,Wt=0,Er=0,Ar=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Gt=Er,Wt=Ar,Er=e.clientX,Ar=e.clientY},tr?{passive:!0}:void 0);function fs(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 Jb={extends:$d()},ko=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function Yb(e,t,n,r,s,o){return q(),ie("div",{ref:"reference",class:Se(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[We(e.$slots,"default",Cu(Ra(e.slotData)))],2)}const Zb=ko(Jb,[["render",Yb]]);function Qb(){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 Cs;function Wi(){Wi.init||(Wi.init=!0,Cs=Qb()!==-1)}var Eo={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Wi(),co(()=>{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",Cs&&this.$el.appendChild(e),e.data="about:blank",Cs||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&&(!Cs&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ew=qp();zp("data-v-b329ee4c");const tw={class:"resize-observer",tabindex:"-1"};Vp();const nw=ew((e,t,n,r,s,o)=>(q(),$e("div",tw)));Eo.render=nw;Eo.__scopeId="data-v-b329ee4c";Eo.__file="src/components/ResizeObserver.vue";const Pd=(e="theme")=>({computed:{themeClass(){return qb(this[e])}}}),rw=Tt({name:"VPopperContent",components:{ResizeObserver:Eo},mixins:[Pd()],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}}}),sw=["id","aria-hidden","tabindex","data-popper-placement"],ow={ref:"inner",class:"v-popper__inner"},iw=G("div",{class:"v-popper__arrow-outer"},null,-1),aw=G("div",{class:"v-popper__arrow-inner"},null,-1),lw=[iw,aw];function cw(e,t,n,r,s,o){const i=nn("ResizeObserver");return q(),ie("div",{id:e.popperId,ref:"popover",class:Se(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:_n(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Em(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[G("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),G("div",{class:"v-popper__wrapper",style:_n(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[G("div",ow,[e.mounted?(q(),ie(ve,{key:0},[G("div",null,[We(e.$slots,"default")]),e.handleResize?(q(),$e(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):wt("",!0)],64)):wt("",!0)],512),G("div",{ref:"arrow",class:"v-popper__arrow-container",style:_n(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},lw,4)],4)],46,sw)}const Id=ko(rw,[["render",cw]]),Nd={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 zi=function(){};typeof window<"u"&&(zi=window.Element);const uw=Tt({name:"VPopperWrapper",components:{Popper:Zb,PopperContent:Id},mixins:[Nd,Pd("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,zi,Boolean],default:void 0},boundary:{type:[String,zi],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 fw(e,t,n,r,s,o){const i=nn("PopperContent"),a=nn("Popper");return q(),$e(a,mo({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:de(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,show:h,hide:p,handleResize:m,onResize:w,classes:_,result:v})=>[We(e.$slots,"default",{shown:u,show:h,hide:p}),J(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:c,"skip-transition":f,"auto-hide":d,"handle-resize":m,classes:_,result:v,onHide:p,onResize:w},{default:de(()=>[We(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 za=ko(uw,[["render",fw]]),dw={...za,name:"VDropdown",vPopperTheme:"dropdown"},hw={...za,name:"VMenu",vPopperTheme:"menu"},pw={...za,name:"VTooltip",vPopperTheme:"tooltip"},gw=Tt({name:"VTooltipDirective",components:{Popper:$d(),PopperContent:Id},mixins:[Nd],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Fr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Fr(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(r=>this.onResult(t,r)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),mw=["innerHTML"],yw=["textContent"];function _w(e,t,n,r,s,o){const i=nn("PopperContent"),a=nn("Popper");return q(),$e(a,mo({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:de(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,hide:h,handleResize:p,onResize:m,classes:w,result:_})=>[J(i,{ref:"popperContent",class:Se({"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:w,result:_,onHide:h,onResize:m},{default:de(()=>[e.html?(q(),ie("div",{key:0,innerHTML:e.finalContent},null,8,mw)):(q(),ie("div",{key:1,textContent:it(e.finalContent)},null,8,yw))]),_: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 bw=ko(gw,[["render",_w]]),Ld="v-popper--has-tooltip";function ww(e,t){let n=e.placement;if(!n&&t)for(const r of Td)t[r]&&(n=r);return n||(n=Fr(e.theme||"tooltip","placement")),n}function Md(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=ww(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let ti,jr,vw=0;function Cw(){if(ti)return;jr=ke([]),ti=Df({name:"VTooltipDirectiveApp",setup(){return{directives:jr}},render(){return this.directives.map(t=>Ms(bw,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ti.mount(e)}function xw(e,t,n){Cw();const r=ke(Md(e,t,n)),s=ke(!1),o={id:vw++,options:r,shown:s};return jr.value.push(o),e.classList&&e.classList.add(Ld),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Od(e){if(e.$_popper){const t=jr.value.indexOf(e.$_popper.item);t!==-1&&jr.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Ld)}function xc(e,{value:t,modifiers:n}){const r=Md(e,t,n);if(!r.content||Fr(r.theme||"tooltip","disabled"))Od(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=xw(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Sw={beforeMount:xc,updated:xc,beforeUnmount(e){Od(e)}};function Sc(e){e.addEventListener("mousedown",zs),e.addEventListener("click",zs),e.addEventListener("touchstart",Dd,tr?{passive:!0}:!1)}function kc(e){e.removeEventListener("mousedown",zs),e.removeEventListener("click",zs),e.removeEventListener("touchstart",Dd),e.removeEventListener("touchend",Hd),e.removeEventListener("touchcancel",Bd)}function zs(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Dd(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",Hd),t.addEventListener("touchcancel",Bd)}}function Hd(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 Bd(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const kw={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Sc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?Sc(e):kc(e))},beforeUnmount(e){kc(e)}};function Ew(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Ed(ft,t),e.directive("tooltip",Sw),e.directive("close-popper",kw),e.component("VTooltip",pw),e.component("VDropdown",dw),e.component("VMenu",hw))}const Aw={version:"5.2.2",install:Ew,options:ft},Tw=pt(e=>{e.vueApp.use(Aw)}),$w=[Q_,sb,ab,wb,vb,Cb,xb,Sb,kb,Eb,Tw],Fd={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(q(),ie("div",{class:Se(["n-icon",e.icon])},null,2))}},Ao=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Rw={},Pw={class:"n-badge"};function Iw(e,t){return q(),ie("span",Pw,[We(e.$slots,"default")])}const Nw=Object.assign(Ao(Rw,[["render",Iw]]),{__name:"NBadge"}),Lw={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},Mw={__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=Oe(()=>t.href||t.to);return(r,s)=>{const o=pb;return q(),$e(o,mo(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:de(()=>[We(r.$slots,"default"),n.value&&e.target==="_blank"?(q(),ie("div",Lw)):wt("",!0)]),_:3},16,["class"])}}},Ow={},Dw={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hw(e,t){return q(),ie("svg",Dw,[...t[0]||(t[0]=[qg('<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 Bw=Object.assign(Ao(Ow,[["render",Hw]]),{__name:"NuxtSeoLogo"}),Fw={},jw={class:"n-loading n-panel-grids-center"},Uw={class:"flex flex-col animate-pulse items-center text-lg"};function Gw(e,t){return q(),ie("div",jw,[G("div",Uw,[t[1]||(t[1]=G("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),We(e.$slots,"default",{},()=>[t[0]||(t[0]=Me(" Loading... ",-1))])])])}const Ww=Object.assign(Ao(Fw,[["render",Gw]]),{__name:"NLoading"}),zw="modulepreload",Vw=function(e,t){return new URL(e,t).href},Ec={},Tr=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=Vw(c,r),c in Ec)return;Ec[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let p=i.length-1;p>=0;p--){const m=i[p];if(m.href===c&&(!f||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":zw,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(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 Ae=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function qw(e){return Va(e)}function Va(e){return Array.isArray(e)?Kw(e):e instanceof RegExp?e:typeof e=="object"?Xw(e):e}function Kw(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Va(e[n]);return t}function Xw(e){let t={};for(let n in e)t[n]=Va(e[n]);return t}function jd(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Ud(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Ud(e.substring(0,e.length-1)):e.substr(~t+1)}var ni=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ds=class{static hasCaptures(e){return e===null?!1:(ni.lastIndex=0,ni.test(e))}static replaceCaptures(e,t,n){return e.replace(ni,(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 Gd(e,t){return e<t?-1:e>t?1:0}function Wd(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=Gd(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Ac(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 zd(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Vd=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}},Vs=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Zw(e),t)}static createFromParsedTheme(e,t){return e0(e,t)}_cachedMatchRoot=new Vd(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=>Jw(e.parent,s.parentScopes));return r?new qd(r.fontStyle,r.foreground,r.background):null}},ri=class xs{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new xs(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new xs(n,t[r]);return n}push(t){return new xs(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 Jw(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&&!Yw(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Yw(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var qd=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Zw(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"&&Ac(i.settings.foreground)&&(u=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&Ac(i.settings.background)&&(c=i.settings.background);for(let f=0,d=a.length;f<d;f++){let p=a[f].trim().split(" "),m=p[p.length-1],w=null;p.length>1&&(w=p.slice(0,p.length-1),w.reverse()),n[r++]=new Qw(m,w,s,l,u,c)}}return n}var Qw=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}},He=(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))(He||{});function e0(e,t){e.sort((l,u)=>{let c=Gd(l.scope,u.scope);return c!==0||(c=Wd(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 t0(t),i=new qd(n,o.getId(r),o.getId(s)),a=new r0(new Vi(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 Vs(o,i,a)}var t0=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)}},n0=Object.freeze([]),Vi=class Kd{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,s,o){this.scopeDepth=t,this.parentScopes=n||n0,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new Kd(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)}},r0=class qi{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(qi._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 qi(this._mainRule.clone(),Vi.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(Wd(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 Vi(t,n,r,s,o))}},nr=class Ze{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Ze.getLanguageId(t),r=Ze.getTokenType(t),s=Ze.getFontStyle(t),o=Ze.getForeground(t),i=Ze.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=Ze.getLanguageId(t),u=Ze.getTokenType(t),c=Ze.containsBalancedBrackets(t)?1:0,f=Ze.getFontStyle(t),d=Ze.getForeground(t),h=Ze.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 qs(e,t){const n=[],r=s0(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(Tc(s)){const l=[];do l.push(s),s=r.next();while(Tc(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 Tc(e){return!!e&&!!e.match(/[\w\.:]+/)}function s0(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 Xd(e){typeof e.dispose=="function"&&e.dispose()}var Ur=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},o0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},i0=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))}},a0=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ur(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new i0;for(const n of e)l0(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Ur){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function l0(e,t,n,r){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Ur?Ss({baseGrammar:o,selfGrammar:s},r):Ki(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);const i=n.injections(e.scopeName);if(i)for(const a of i)r.add(new Ur(a))}function Ki(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ks([r],t,n)}}function Ss(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ks(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ks(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ks(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?jd({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ks(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=Jd(o);switch(i.kind){case 0:Ss({...t,selfGrammar:t.baseGrammar},n);break;case 1:Ss(t,n);break;case 2:Ki(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?Ki(i.ruleName,l,n):Ss(l,n)}else i.kind===4?n.add(new o0(i.scopeName,i.ruleName)):n.add(new Ur(i.scopeName));break}}}var c0=class{kind=0},u0=class{kind=1},f0=class{constructor(e){this.ruleName=e}kind=2},d0=class{constructor(e){this.scopeName=e}kind=3},h0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Jd(e){if(e==="$base")return new c0;if(e==="$self")return new u0;const t=e.indexOf("#");if(t===-1)return new d0(e);if(t===0)return new f0(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new h0(n,r)}}var p0=/\\(\d+)/,$c=/\\(\d+)/g,g0=-1,Yd=-2;var Yr=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=ds.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ds.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Ud(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:ds.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ds.replaceCaptures(this._contentName,e,t)}},m0=class extends Yr{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!")}},y0=class extends Yr{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,null),this._match=new Gr(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Wr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Rc=class extends Yr{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,r),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Wr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Xi=class extends Yr{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s,o,i,a,l,u){super(e,t,n,r),this._begin=new Gr(s,this.id),this.beginCaptures=o,this._end=new Gr(i||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Wr;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Xs=class extends Yr{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,s,o,i,a,l){super(e,t,n,r),this._begin=new Gr(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new Gr(i,Yd),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Wr;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Wr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},Zd=class Le{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new m0(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new y0(t.$vscodeTextmateLocation,t.id,t.name,t.match,Le._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=jd({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Rc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Le._compilePatterns(o,n,r))}return t.while?new Xs(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Le._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Le._compileCaptures(t.whileCaptures||t.captures,n,r),Le._compilePatterns(t.patterns,n,r)):new Xi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Le._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Le._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Le._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=Le.getCompiledRuleId(t[i],n,r)),s[a]=Le.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=Jd(a.include);switch(u.kind){case 0:case 1:l=Le.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=Le.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=Le.getCompiledRuleId(p,n,h.repository))}else l=Le.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=Le.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Rc||u instanceof Xi||u instanceof Xs)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Gr=class Qd{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=p0.test(this.source):this.hasBackReferences=!1}clone(){return new Qd(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 $c.lastIndex=0,this.source.replace($c,(s,o)=>zd(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],s=[],o,i,a,l;for(o=0,i=this.source.length;o<i;o++)a=this.source.charAt(o),t[o]=a,n[o]=a,r[o]=a,s[o]=a,a==="\\"&&o+1<i&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",s[o+1]="A"):l==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",s[o+1]="G"):(t[o+1]=l,n[o+1]=l,r[o+1]=l,s[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Wr=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Pc(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 Pc(e,r,this._items.map(s=>s.ruleId))}},Pc=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}},si=class{constructor(e,t){this.languageId=e,this.tokenType=t}},_0=class Ji{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new si(t,8),this._embeddedLanguagesMatcher=new b0(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ji._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new si(0,0);_getBasicScopeAttributes=new Vd(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new si(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ji.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/},b0=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])=>zd(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])}},Ic=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function eh(e,t,n,r,s,o,i,a){const l=t.content.length;let u=!1,c=-1;if(i){const h=w0(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 Ic(s,!0);d()}return new Ic(s,!1);function d(){const h=v0(e,t,n,r,s,c);if(!h){o.produce(s,l),u=!0;return}const p=h.captureIndices,m=h.matchedRuleId,w=p&&p.length>0?p[0].end>r:!1;if(m===g0){const _=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),mr(e,t,n,s,o,_.endCaptures,p),o.produce(s,p[0].end);const v=s;if(s=s.parent,c=v.getAnchorPos(),!w&&v.getEnterPos()===r){s=v,o.produce(s,l),u=!0;return}}else{const _=e.getRule(m);o.produce(s,p[0].start);const v=s,g=_.getName(t.content,p),b=s.contentNameScopesList.pushAttributed(g,e);if(s=s.push(m,r,c,p[0].end===l,null,b,b),_ instanceof Xi){const x=_;mr(e,t,n,s,o,x.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const T=x.getContentName(t.content,p),N=b.pushAttributed(T,e);if(s=s.withContentNameScopesList(N),x.endHasBackReferences&&(s=s.withEndRule(x.getEndWithResolvedBackReferences(t.content,p))),!w&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(_ instanceof Xs){const x=_;mr(e,t,n,s,o,x.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const T=x.getContentName(t.content,p),N=b.pushAttributed(T,e);if(s=s.withContentNameScopesList(N),x.whileHasBackReferences&&(s=s.withEndRule(x.getWhileWithResolvedBackReferences(t.content,p))),!w&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(mr(e,t,n,s,o,_.captures,p),o.produce(s,p[0].end),s=s.pop(),!w){s=s.safePop(),o.produce(s,l),u=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function w0(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 Xs&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=S0(l.rule,e,l.stack.endRule,n,r===i),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==Yd){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),mr(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 v0(e,t,n,r,s,o){const i=C0(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=x0(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 C0(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=th(i,e,s.endRule,n,r===o),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function x0(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 m=t.getRule(p.ruleId),{ruleScanner:w,findOptions:_}=th(m,t,null,r,s===i),v=w.findNextMatchSync(n,s,_);if(!v)continue;const g=v.captureIndices[0].start;if(!(g>=a)&&(a=g,l=v.captureIndices,u=v.ruleId,c=p.priority,a===s))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function th(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function S0(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function mr(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 m=d.getName(a,i),w=r.contentNameScopesList.pushAttributed(m,e),_=d.getContentName(a,i),v=w.pushAttributed(_,e),g=r.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,w,v),b=e.createOnigString(a.substring(0,h.end));eh(e,b,n&&h.start===0,h.start,g,s,!1,0),Xd(b);continue}const p=d.getName(a,i);if(p!==null){const w=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new k0(w,h.end))}}for(;u.length>0;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var k0=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function E0(e,t,n,r,s,o,i,a){return new T0(e,t,n,r,s,o,i,a)}function Nc(e,t,n,r,s){const o=qs(t,Js),i=Zd.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 Js(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(A0(t[s],r))return n=s+1,!0;return!1})}function A0(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 T0=class{constructor(e,t,n,r,s,o,i,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new _0(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=Lc(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const u=qs(l,Js);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)Nc(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&&Nc(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]=Lc(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=Zd.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===Yi.NULL){s=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=nr.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=$r.createRootAndLookUpScopeName(d,f,this):h=$r.createRoot("unknown",f),t=new Yi(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 R0(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=eh(this,o,s,0,t,a,!0,r);return Xd(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Lc(e,t){return e=qw(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 $r=class yt{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=ri.push(s,o.scopeNames),r=new yt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new yt(null,new ri(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new ri(null,t),i=r.themeProvider.themeMatch(o),a=yt.mergeAttributes(n,s,i);return new yt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return yt.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),nr.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return yt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=yt._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=yt.mergeAttributes(t.tokenAttributes,s,i);return new yt(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}},Yi=class hn{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 hn(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:hn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?$r.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(){hn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new hn(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 hn(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=$r.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new hn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,$r.fromExtension(r,n.contentNameScopesList))}},$0=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):qs(n,Js).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>qs(n,Js).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}},R0=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=nr.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=nr.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}},P0=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,E0(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},I0=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new P0(Vs.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Vs.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 $0(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new a0(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)}},Zi=Yi.NULL;const N0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Zr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Zr.prototype.normal={};Zr.prototype.property={};Zr.prototype.space=void 0;function nh(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new Zr(n,r,t)}function Qi(e){return e.toLowerCase()}class Ve{constructor(t,n){this.attribute=n,this.property=t}}Ve.prototype.attribute="";Ve.prototype.booleanish=!1;Ve.prototype.boolean=!1;Ve.prototype.commaOrSpaceSeparated=!1;Ve.prototype.commaSeparated=!1;Ve.prototype.defined=!1;Ve.prototype.mustUseProperty=!1;Ve.prototype.number=!1;Ve.prototype.overloadedBoolean=!1;Ve.prototype.property="";Ve.prototype.spaceSeparated=!1;Ve.prototype.space=void 0;let L0=0;const te=Tn(),we=Tn(),rh=Tn(),R=Tn(),ge=Tn(),qn=Tn(),Xe=Tn();function Tn(){return 2**++L0}const ea=Object.freeze(Object.defineProperty({__proto__:null,boolean:te,booleanish:we,commaOrSpaceSeparated:Xe,commaSeparated:qn,number:R,overloadedBoolean:rh,spaceSeparated:ge},Symbol.toStringTag,{value:"Module"})),oi=Object.keys(ea);class qa extends Ve{constructor(t,n,r,s){let o=-1;if(super(t,n),Mc(this,"space",s),typeof r=="number")for(;++o<oi.length;){const i=oi[o];Mc(this,oi[o],(r&ea[i])===ea[i])}}}qa.prototype.defined=!0;function Mc(e,t,n){n&&(e[t]=n)}function or(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new qa(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Qi(r)]=r,n[Qi(o.attribute)]=r}return new Zr(t,n,e.space)}const sh=or({properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:ge,ariaCurrent:null,ariaDescribedBy:ge,ariaDetails:null,ariaDisabled:we,ariaDropEffect:ge,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:ge,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ge,ariaLevel:R,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:ge,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:ge,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:we,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function oh(e,t){return t in e?e[t]:t}function ih(e,t){return oh(e,t.toLowerCase())}const M0=or({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qn,acceptCharset:ge,accessKey:ge,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:ge,autoFocus:te,autoPlay:te,blocking:ge,capture:null,charSet:null,checked:te,cite:null,className:ge,cols:R,colSpan:null,content:null,contentEditable:we,controls:te,controlsList:ge,coords:R|qn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:te,defer:te,dir:null,dirName:null,disabled:te,download:rh,draggable:we,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:ge,height:R,hidden:te,high:R,href:null,hrefLang:null,htmlFor:ge,httpEquiv:ge,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:ge,itemRef:ge,itemScope:te,itemType:ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,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:te,optimum:R,pattern:null,ping:ge,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:ge,required:te,reversed:te,rows:R,rowSpan:R,sandbox:ge,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootDelegatesFocus:te,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:we,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:te,useMap:null,value:we,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ge,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:te,noHref:te,noShade:te,noWrap:te,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:we,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:te,disableRemotePlayback:te,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:ih}),O0=or({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:Xe,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:ge,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:te,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qn,g2:qn,glyphName:qn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Xe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xe,rev:Xe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xe,requiredFeatures:Xe,requiredFonts:Xe,requiredFormats:Xe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Xe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xe,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:oh}),ah=or({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()}}),lh=or({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ih}),ch=or({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),D0=/[A-Z]/g,Oc=/-[a-z]/g,H0=/^data[-\w.:]+$/i;function B0(e,t){const n=Qi(t);let r=t,s=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&H0.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Oc,j0);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Oc.test(o)){let i=o.replace(D0,F0);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=qa}return new s(r,t)}function F0(e){return"-"+e.toLowerCase()}function j0(e){return e.charAt(1).toUpperCase()}const U0=nh([sh,M0,ah,lh,ch],"html"),uh=nh([sh,O0,ah,lh,ch],"svg"),Dc={}.hasOwnProperty;function G0(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&Dc.call(s,e)){const l=String(s[e]);i=Dc.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 W0=/["&'<>`]/g,z0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,V0=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,q0=/[|\\{}()[\]^$+*?.]/g,Hc=new WeakMap;function K0(e,t){if(e=e.replace(t.subset?X0(t.subset):W0,r),t.subset||t.escapeOnly)return e;return e.replace(z0,n).replace(V0,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 X0(e){let t=Hc.get(e);return t||(t=J0(e),Hc.set(e,t)),t}function J0(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(q0,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Y0=/[\dA-Fa-f]/;function Z0(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Y0.test(String.fromCharCode(t))?r:r+";"}const Q0=/\d/;function ev(e,t,n){const r="&#"+String(e);return n&&t&&!Q0.test(String.fromCharCode(t))?r:r+";"}const tv=["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"],ii={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:"€"},nv=["cent","copy","divide","gt","lt","not","para","times"],fh={}.hasOwnProperty,ta={};let hs;for(hs in ii)fh.call(ii,hs)&&(ta[ii[hs]]=hs);const rv=/[^\dA-Za-z]/;function sv(e,t,n,r){const s=String.fromCharCode(e);if(fh.call(ta,s)){const o=ta[s],i="&"+o;return n&&tv.includes(o)&&!nv.includes(o)&&(!r||t&&t!==61&&rv.test(String.fromCharCode(t)))?i:i+";"}return""}function ov(e,t,n){let r=Z0(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=sv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=ev(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function Kn(e,t){return K0(e,Object.assign({format:ov},t))}const iv=/^>|^->|<!--|-->|--!>|<!-$/g,av=[">"],lv=["<",">"];function cv(e,t,n,r){return r.settings.bogusComments?"<?"+Kn(e.value,Object.assign({},r.settings.characterReferences,{subset:av}))+">":"<!--"+e.value.replace(iv,s)+"-->";function s(o){return Kn(o,Object.assign({},r.settings.characterReferences,{subset:lv}))}}function uv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Bc(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 fv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function dv(e){return e.join(" ").trim()}const hv=/[ \t\n\f\r]/g;function Ka(e){return typeof e=="object"?e.type==="text"?Fc(e.value):!1:Fc(e)}function Fc(e){return e.replace(hv,"")===""}const Ee=hh(1),dh=hh(-1),pv=[];function hh(e){return t;function t(n,r,s){const o=n?n.children:pv;let i=(r||0)+e,a=o[i];if(!s)for(;a&&Ka(a);)i+=e,a=o[i];return a}}const gv={}.hasOwnProperty;function ph(e){return t;function t(n,r,s){return gv.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const Xa=ph({body:yv,caption:ai,colgroup:ai,dd:vv,dt:wv,head:ai,html:mv,li:bv,optgroup:Cv,option:xv,p:_v,rp:jc,rt:jc,tbody:kv,td:Uc,tfoot:Ev,th:Uc,thead:Sv,tr:Av});function ai(e,t,n){const r=Ee(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ka(r.value.charAt(0)))}function mv(e,t,n){const r=Ee(n,t);return!r||r.type!=="comment"}function yv(e,t,n){const r=Ee(n,t);return!r||r.type!=="comment"}function _v(e,t,n){const r=Ee(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 bv(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&r.tagName==="li"}function wv(e,t,n){const r=Ee(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function vv(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function jc(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Cv(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function xv(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Sv(e,t,n){const r=Ee(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function kv(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ev(e,t,n){return!Ee(n,t)}function Av(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Uc(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Tv=ph({body:Pv,colgroup:Iv,head:Rv,html:$v,tbody:Nv});function $v(e){const t=Ee(e,-1);return!t||t.type!=="comment"}function Rv(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 Pv(e){const t=Ee(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ka(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Iv(e,t,n){const r=dh(n,t),s=Ee(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Xa(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Nv(e,t,n){const r=dh(n,t),s=Ee(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Xa(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const ps={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 Lv(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=uh);const u=Mv(r,e.properties),c=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,c&&(i=!1),(u||!o||!Tv(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||!Xa(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function Mv(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=Ov(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 Ov(e,t,n){const r=B0(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=Kn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ps.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?fv:dv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=Kn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ps.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&Bc(n,i)>Bc(n,e.alternative)&&(i=e.alternative),a=i+Kn(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ps.single:ps.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Dv=["<","&"];function gh(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Kn(e.value,Object.assign({},r.settings.characterReferences,{subset:Dv}))}function Hv(e,t,n,r){return r.settings.allowDangerousHtml?e.value:gh(e,t,n,r)}function Bv(e,t,n,r){return r.all(e)}const Fv=G0("type",{invalid:jv,unknown:Uv,handlers:{comment:cv,doctype:uv,element:Lv,raw:Hv,root:Bv,text:gh}});function jv(e){throw new Error("Expected node, not `"+e+"`")}function Uv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Gv={},Wv={},zv=[];function Vv(e,t){const n=t||Gv,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:qv,all:Kv,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||N0,characterReferences:n.characterReferences||Wv,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?uh:U0,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function qv(e,t,n){return Fv(e,t,n,this)}function Kv(e){const t=[],n=e&&e.children||zv;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Ys(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 en(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Xv(e){return Array.isArray(e)?e:[e]}async function mh(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Ja(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Jv(e){return e==="ansi"||Ja(e)}function Ya(e){return e==="none"}function Yv(e){return Ya(e)}function yh(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 To(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 Zv(e){const t=To(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 Za="light-dark()",Qv=["color","background-color"];function e1(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 t1(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?e1(s,o):s})):e}function n1(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(c=>Zs(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&&Qv.includes(d))if(r===Za&&i.length>1){const p=t.findIndex(v=>v==="light"),m=t.findIndex(v=>v==="dark");if(p===-1||m===-1)throw new Ae('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const w=i[p][d]||"inherit",_=i[m][d]||"inherit";l[d]=`light-dark(${w}, ${_})`,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 Zs(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&He.Italic&&(t["font-style"]="italic"),e.fontStyle&He.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&He.Underline&&n.push("underline"),e.fontStyle&He.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function na(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const _h=new WeakMap;function $o(e,t){_h.set(e,t)}function zr(e){return _h.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(Xv(n).map(r=>[r,Zi])),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 r1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function r1(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 s1(e,t){if(!(e instanceof ir))throw new Ae("Invalid grammar state");return e.getInternalStack(t)}function o1(){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 Ae(`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 Ae(`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 Ae(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,character:l,offset:s.posToIndex(i.line,l)}}};const s=Zv(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));i1(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 t1(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 Ae(`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 m="",w=-1,_=-1;if(f===0&&(w=0),d===0&&(_=0),d===Number.POSITIVE_INFINITY&&(_=p.children.length),w===-1||_===-1)for(let g=0;g<p.children.length;g++)m+=bh(p.children[g]),w===-1&&m.length===f&&(w=g+1),_===-1&&m.length===d&&(_=g+1);if(w===-1)throw new Ae(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(_===-1)throw new Ae(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const v=p.children.slice(w,_);if(!h.alwaysWrap&&v.length===p.children.length)a(p,h,"line");else if(!h.alwaysWrap&&v.length===1&&v[0].type==="element")a(v[0],h,"token");else{const g={type:"element",tagName:"span",properties:{},children:v};a(g,h,"wrapper"),p.children.splice(w,v.length,g)}}function i(c,f){s[c]=a(s[c],f,"line")}function a(c,f,d){const h=f.properties||{},p=f.transform||(m=>m);return c.tagName=f.tagName||"span",c.properties={...c.properties,...h,class:c.properties.class},f.properties?.class&&yh(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 i1(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ae(`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 Ae(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function bh(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(bh).join(""):""}const a1=[o1()];function Qs(e){const t=l1(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...a1]}function l1(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 gn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],li={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function c1(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 Gc(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 u1(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)li[r]&&t.push({type:"setDecoration",value:li[r]});else if(r<=29){const s=li[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:gn[r-30]}});else if(r===38){const s=Gc(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:gn[r-40]}});else if(r===48){const s=Gc(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:gn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:gn[r-100+8]}})}return t}function f1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=c1(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=u1(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 d1={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 h1(e=d1){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<gn.length;u++)r.push(t(gn[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 p1={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 g1(e,t,n){const r=Ys(e,n),s=To(t),o=Object.fromEntries(gn.map(l=>{const u=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,c=e.colors?.[u];return[l,c||p1[l]]})),i=h1(o),a=f1();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=en(c,r),f=en(f,r),u.decorations.has("dim")&&(c=m1(c));let d=He.None;return u.decorations.has("bold")&&(d|=He.Bold),u.decorations.has("italic")&&(d|=He.Italic),u.decorations.has("underline")&&(d|=He.Underline),u.decorations.has("strikethrough")&&(d|=He.Strikethrough),{content:u.value,offset:l[1],color:c,bgColor:f,fontStyle:d}}))}function m1(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 Qa(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,s=e.resolveLangAlias(n.lang||"text");if(Ja(s)||Ya(r))return To(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(r);if(s==="ansi")return g1(o,t,n);const a=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ae(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ae(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return _1(t,a,o,i,n)}function y1(...e){if(e.length===2)return zr(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(Ja(s)||Ya(o))throw new Ae("Plain language does not have grammar state");if(s==="ansi")throw new Ae("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new ir(el(n,l,i,a,r).stateStack,l.name,i.name)}function _1(e,t,n,r,s){const o=el(e,t,n,r,s),i=new ir(o.stateStack,t.name,n.name);return $o(o.tokens,i),o.tokens}function el(e,t,n,r,s){const o=Ys(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=To(e);let u=s.grammarState?s1(s.grammarState,n.name)??Zi:s.grammarContextCode!=null?el(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:Zi,c=[];const f=[];for(let d=0,h=l.length;d<h;d++){const[p,m]=l[d];if(p===""){c=[],f.push([]);continue}if(i>0&&p.length>=i){c=[],f.push([{content:p,offset:m,color:"",fontStyle:0}]);continue}let w,_,v;s.includeExplanation&&(w=t.tokenizeLine(p,u,a),_=w.tokens,v=0);const g=t.tokenizeLine2(p,u,a),b=g.tokens.length/2;for(let x=0;x<b;x++){const T=g.tokens[2*x],N=x+1<b?g.tokens[2*x+2]:p.length;if(T===N)continue;const B=g.tokens[2*x+1],F=en(r[nr.getForeground(B)],o),P=nr.getFontStyle(B),W={content:p.substring(T,N),offset:m+T,color:F,fontStyle:P};if(s.includeExplanation){const U=[];if(s.includeExplanation!=="scopeName")for(const Y of n.settings){let oe;switch(typeof Y.scope){case"string":oe=Y.scope.split(/,/).map(O=>O.trim());break;case"object":oe=Y.scope;break;default:continue}U.push({settings:Y,selectors:oe.map(O=>O.split(/ /))})}W.explanation=[];let Q=0;for(;T+Q<N;){const Y=_[v],oe=p.substring(Y.startIndex,Y.endIndex);Q+=oe.length,W.explanation.push({content:oe,scopes:s.includeExplanation==="scopeName"?b1(Y.scopes):w1(U,Y.scopes)}),v+=1}}c.push(W)}f.push(c),c=[],u=g.ruleStack}return{tokens:f,stateStack:u}}function b1(e){return e.map(t=>({scopeName:t}))}function w1(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:C1(e,o,t.slice(0,r))}}return n}function Wc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function v1(e,t,n){if(!Wc(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)Wc(e[r],n[s])&&(r-=1),s-=1;return r===-1}function C1(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(v1(i,t,n)){r.push(o);break}return r}function wh(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=Qa(e,t,{...n,theme:l.theme}),c=zr(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=x1(...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:m,explanation:w,offset:_,...v}=h[u][f];d.variants[r[p].color]=v}),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&&$o(i,a),i}function x1(...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 eo(e,t,n){let r,s,o,i,a,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:f="css-vars"}=n,d=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,v)=>_.color===u?-1:v.color===u?1:0);if(d.length===0)throw new Ae("`themes` option must not be empty");const h=wh(e,t,n);if(l=zr(h),u&&Za!==u&&!d.find(_=>_.color===u))throw new Ae(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=d.map(_=>e.getTheme(_.theme)),m=d.map(_=>_.color);o=h.map(_=>_.map(v=>n1(v,m,c,u,f))),l&&$o(o,l);const w=d.map(_=>Ys(_.theme,n));s=zc(d,p,w,c,u,"fg",f),r=zc(d,p,w,c,u,"bg",f),i=`shiki-themes ${p.map(_=>_.name).join(" ")}`,a=u?void 0:[s,r].join(";")}else if("theme"in n){const u=Ys(n.theme,n);o=Qa(e,t,n);const c=e.getTheme(n.theme);r=en(c.bg,u),s=en(c.fg,u),i=c.name,l=zr(o)}else throw new Ae("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function zc(e,t,n,r,s,o,i){return e.map((a,l)=>{const u=en(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&s){if(s===Za&&e.length>1){const f=e.findIndex(m=>m.color==="light"),d=e.findIndex(m=>m.color==="dark");if(f===-1||d===-1)throw new Ae('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=en(t[f][o],n[f])||"inherit",p=en(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 to(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>to(e,s,o),codeToTokens:(s,o)=>eo(e,s,o)}){let s=t;for(const p of Qs(n))s=p.preprocess?.call(r,s,n)||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:u,grammarState:c}=eo(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=k1(o):f==="never"&&(o=E1(o)),d&&(o=A1(o));const h={...r,get source(){return s}};for(const p of Qs(n))o=p.tokens?.call(h,o)||o;return S1(o,{...n,fg:i,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??u},h,c)}function S1(e,t,n,r=zr(e)){const s=Qs(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[m,w]of Object.entries(t.meta||{}))m.startsWith("_")||(u[m]=w);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},f={type:"element",tagName:"code",properties:{},children:o};const d=[],h={...n,structure:a,addClassToHast:yh,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((m,w)=>{w&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
15
- `}));let _={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const g of m){let b={type:"element",tagName:"span",properties:{...g.htmlAttrs},children:[{type:"text",value:g.content}]};const x=na(g.htmlStyle||Zs(g));x&&(b.properties.style=x);for(const T of s)b=T?.span?.call(h,b,w+1,v,_,g)||b;a==="inline"?i.children.push(b):a==="classic"&&_.children.push(b),v+=g.content.length}if(a==="classic"){for(const g of s)_=g?.line?.call(h,_,w+1)||_;d.push(_),o.push(_)}else a==="inline"&&d.push(_)}),a==="classic"){for(const m of s)f=m?.code?.call(h,f)||f;c.children.push(f);for(const m of s)c=m?.pre?.call(h,c)||c;i.children.push(c)}else if(a==="inline"){const m=[];let w={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const g of i.children)g.type==="element"&&g.tagName==="br"?(m.push(w),w={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(g.type==="element"||g.type==="text")&&w.children.push(g);m.push(w);let v={type:"element",tagName:"code",properties:{},children:m};for(const g of s)v=g?.code?.call(h,v)||v;i.children=[];for(let g=0;g<v.children.length;g++){g>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const b=v.children[g];b.type==="element"&&i.children.push(...b.children)}}let p=i;for(const m of s)p=m?.root?.call(h,p)||p;return r&&$o(p,r),p}function k1(e){return e.map(t=>{const n=[];let r="",s;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&He.Underline||o.fontStyle&He.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 E1(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 A1(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=na(s.htmlStyle||Zs(s)),i=na(r.htmlStyle||Zs(r)),a=s.fontStyle&&(s.fontStyle&He.Underline||s.fontStyle&He.Strikethrough),l=r.fontStyle&&(r.fontStyle&He.Underline||r.fontStyle&He.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}const T1=Vv;function $1(e,t,n){const r={meta:{},options:n,codeToHast:(o,i)=>to(e,o,i),codeToTokens:(o,i)=>eo(e,o,i)};let s=T1(to(e,t,n,r));for(const o of Qs(n))s=o.postprocess?.call(r,s,n)||s;return s}const Vc={light:"#333333",dark:"#bbbbbb"},qc={light:"#fffffe",dark:"#1e1e1e"},Kc="__shiki_resolved";function tl(e){if(e?.[Kc])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"?Vc.light:Vc.dark),n||(n=t.type==="light"?qc.light:qc.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function i(a){if(o.has(a))return o.get(a);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(a):(o.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),u=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!u)return a;const c={...a,settings:{...a.settings}};if(l){const f=i(a.settings.foreground);t.colorReplacements[f]=a.settings.foreground,c.settings.foreground=f}if(u){const f=i(a.settings.background);t.colorReplacements[f]=a.settings.background,c.settings.background=f}return c});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=i(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,Kc,{enumerable:!1,writable:!1,value:!0}),t}async function vh(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Jv(t)).map(async t=>await mh(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Ch(e){return(await Promise.all(e.map(async n=>Yv(n)?null:tl(await mh(n))))).filter(n=>!!n)}let R1=3;function P1(e,t=3){t>R1||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class Fn extends Error{constructor(t){super(t),this.name="ShikiError"}}function xh(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 Fn(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class I1 extends I0{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=tl(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=Vs.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=xh(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 Fn(`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 N1{_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 hr=0;function L1(e){hr+=1,e.warnings!==!1&&hr>=10&&hr%10===0&&console.warn(`[Shiki] ${hr} 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 Fn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(tl),s=new N1(e.engine,n),o=new I1(s,r,n,e.langAlias);let i;function a(g){return xh(g,e.langAlias)}function l(g){_();const b=o.getGrammar(typeof g=="string"?g:g.name);if(!b)throw new Fn(`Language \`${g}\` not found, you may need to load it first`);return b}function u(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();const b=o.getTheme(g);if(!b)throw new Fn(`Theme \`${g}\` not found, you may need to load it first`);return b}function c(g){_();const b=u(g);i!==g&&(o.setTheme(b),i=g);const x=o.getColorMap();return{theme:b,colorMap:x}}function f(){return _(),o.getLoadedThemes()}function d(){return _(),o.getLoadedLanguages()}function h(...g){_(),o.loadLanguages(g.flat(1))}async function p(...g){return h(await vh(g))}function m(...g){_();for(const b of g.flat(1))o.loadTheme(b)}async function w(...g){return _(),m(await Ch(g))}function _(){if(t)throw new Fn("Shiki instance has been disposed")}function v(){t||(t=!0,o.dispose(),hr-=1)}return{setTheme:c,getTheme:u,getLanguage:l,getLoadedThemes:f,getLoadedLanguages:d,resolveLangAlias:a,loadLanguage:p,loadLanguageSync:h,loadTheme:w,loadThemeSync:m,dispose:v,[Symbol.dispose]:v}}async function M1(e){e.engine||P1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Ch(e.themes||[]),vh(e.langs||[]),e.engine]);return L1({...e,themes:t,langs:n,engine:r})}async function O1(e){const t=await M1(e);return{getLastGrammarState:(...n)=>y1(t,...n),codeToTokensBase:(n,r)=>Qa(t,n,r),codeToTokensWithThemes:(n,r)=>wh(t,n,r),codeToTokens:(n,r)=>eo(t,n,r),codeToHast:(n,r)=>to(t,n,r),codeToHtml:(n,r)=>$1(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function ar(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function D1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const nl=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Te=String.raw;function lr(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Sh=Te`\[\^?`,kh=`c.? | C(?:-.?)?|${Te`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Te`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Te`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Te`o\{[^\}]*\}?`}|${Te`\d{1,3}`}`,rl=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,gs=new RegExp(Te`
16
- \\ (?:
17
- ${kh}
18
- | [gk]<[^>]*>?
19
- | [gk]'[^']*'?
20
- | .
21
- )
22
- | \( (?:
23
- \? (?:
24
- [:=!>({]
25
- | <[=!]
26
- | <[^>]*>
27
- | '[^']*'
28
- | ~\|?
29
- | #(?:[^)\\]|\\.?)*
30
- | [^:)]*[:)]
31
- )?
32
- | \*[^\)]*\)?
33
- )?
34
- | (?:${rl.source})+
35
- | ${Sh}
36
- | .
37
- `.replace(/\s+/g,""),"gsu"),ci=new RegExp(Te`
38
- \\ (?:
39
- ${kh}
40
- | .
41
- )
42
- | \[:(?:\^?\p{Alpha}+|\^):\]
43
- | ${Sh}
44
- | &&
45
- | .
46
- `.replace(/\s+/g,""),"gsu");function H1(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=rC(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(gs.lastIndex=0;a=gs.exec(e);){const f=B1(o,e,a[0],gs.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(gs.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"?oC(f,c):f).flat(),flags:r}}function B1(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=F1(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:Xc(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:J1(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Ah(n)}}if(o==="K")return{token:Th("keep",n)};if(o==="N"||o==="R")return{token:mn("newline",n,{negate:o==="N"})};if(o==="O")return{token:mn("any",n)};if(o==="X")return{token:mn("text_segment",n)};const i=Eh(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:eC(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:Q1(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:On("group",n)};if(n==="(?>")return{token:On("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:On(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:On("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:On("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:q1(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:mn("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Te`\A`,$:Te`\Z`}[n]:n;return{token:Xc(i,n)}}return n==="|"?{token:U1(n)}:rl.test(n)?{tokens:iC(n)}:{token:Dt(ar(n),n)}}function F1(e,t,n){const r=[Jc(t[1]==="^",t)];let s=1,o;for(ci.lastIndex=n;o=ci.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(Jc(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Dt(93,i));else if(s--,r.push(G1(i)),!s)break}else{const a=j1(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:ci.lastIndex||e.length}}function j1(e){if(e[0]==="\\")return Eh(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!nl.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return mn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?W1(e):e==="&&"?z1(e):Dt(ar(e),e)}function Eh(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return Z1(e);if("dDhHsSwW".includes(n))return tC(e);if(e.startsWith(Te`\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 nC(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 Dt(ar(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Dt(sC(e),e);if(Yc.has(n))return Dt(Yc.get(n),e);if(/\d/.test(n))return V1(t,e);if(e==="\\")throw new Error(Te`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Dt(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function U1(e){return{type:"Alternator",raw:e}}function Xc(e,t){return{type:"Assertion",kind:e,raw:t}}function Ah(e){return{type:"Backreference",raw:e}}function Dt(e,t){return{type:"Character",value:e,raw:t}}function G1(e){return{type:"CharacterClassClose",raw:e}}function W1(e){return{type:"CharacterClassHyphen",raw:e}}function z1(e){return{type:"CharacterClassIntersector",raw:e}}function Jc(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function mn(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Th(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:lr(n.flags),raw:t}}function V1(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function q1(e){return{type:"GroupClose",raw:e}}function On(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function K1(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function X1(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function J1(e){return{type:"Subroutine",raw:e}}const Y1=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Yc=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Z1(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 Dt(ar(t.toUpperCase())-64,e)}function Q1(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=Qc(n),i=Qc(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),Th("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,On("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function eC(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=Y1.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 K1(u,r??null,s?.split(",")??null,e)}function Zc(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 X1(t,n,r,e)}function tC(e){const t=e[1].toLowerCase();return mn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function nC(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return mn("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function Qc(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 rC(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 sC(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 oC(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[Ah(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(Te`Octal encoded byte above 177 unsupported "${n}"`)}else u=ar(l);o.push(Dt(u,(a===0?"\\":"")+l))}return o}function iC(e){const t=[],n=new RegExp(rl,"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(Zc(s.slice(0,-1)));continue}}}t.push(Zc(s))}return t}function $h(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 aC(e){return lC.has(e.type)}const lC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Rh(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=H1(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 En();case"Assertion":return cC(p);case"Backreference":return uC(p,o);case"Character":return Ro(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return fC(p,o,h);case"CharacterClassOpen":return dC(p,o,h);case"CharacterSet":return hC(p,o);case"Directive":return bC(p.kind,{flags:p.flags});case"GroupOpen":return pC(p,o,h);case"NamedCallout":return vC(p.kind,p.tag,p.arguments);case"Quantifier":return gC(p,o);case"Subroutine":return mC(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=xC(wC(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(Te`Subroutine uses a duplicate group name "\g<${d}>"`);c.get(d)[0].isSubroutined=!0}else throw new Error(Te`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function cC({kind:e}){return ra(lr({"^":"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===Te`\B`||e===Te`\Y`})}function uC({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,sa(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 sa(r)}return s(+r)}function fC(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(),_C(i,l);throw new Error("Invalid character class range")}return Ro(ar("-"))}function dC({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[ks()];let a=nu(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push(ks()),t.nextIndex++;else{const u=i.at(-1);u.body.push(s(u,n))}a=nu(r[t.nextIndex],o)}const l=ks({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 hC({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const a=Po(n);if(nl.has(a)&&!i?.has(a))e="posix",n=a;else return Dn(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?CC(n,{negate:t}):oa(e,{negate:t})}function pC(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=SC(e),u=l.type==="AbsenceFunction",c=tu(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&D1(o,l.name,[]).push(l)),u&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=ru(r[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(En()),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 m="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(eu(p)||p.type==="CapturingGroup")throw new Error(m)}else if(eu(p)||tu(p)&&p.negate)throw new Error(m)}}d=ru(r[t.nextIndex])}return t.nextIndex++,l}function gC({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!aC(o))throw new Error("Quantifier requires a repeatable token");const i=Ih(e,t,n,o);return s.body.pop(),i}function mC({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=Nh(s);return r.push(i),i}function yC(e,t){return{type:"AbsenceFunction",kind:e,body:Qr(t?.body)}}function En(e){return{type:"Alternative",body:Lh(e?.body)}}function ra(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function sa(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Ph(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!kC(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:Qr(t?.body)}}function Ro(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 ks(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Lh(e?.body)}}function _C(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function oa(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 bC(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:lr(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function wC(e){return{type:"Flags",...e}}function lt(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:Qr(e?.body)}}function pn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Qr(e?.body)}}function vC(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function CC(e,t){const n=!!t?.negate;if(!nl.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Ih(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function xC(e,t){return{type:"Regex",body:Qr(t?.body),flags:e}}function Nh(e){return{type:"Subroutine",ref:e}}function Dn(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(Po(e));if(!r){if(n.normalizeUnknownPropertyNames)r=EC(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Te`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function SC({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return yC("repeater");case"atomic":return lt({atomic:!0});case"capturing":return Ph(s,{name:n});case"group":return lt({flags:e});case"lookahead":case"lookbehind":return pn({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Qr(e){if(e===void 0)e=[En()];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 Lh(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 eu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function tu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function kC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function EC(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 Po(e){return e.replace(/[- _]+/g,"").toLowerCase()}function nu(e,t){return lr(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function ru(e){return lr(e,"Unclosed group")}function Rr(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(){ms(l).splice(Math.max(0,Nn(a)+u),1),u--,c=!0},removeAllNextSiblings(){return ms(l).splice(Nn(a)+1)},removeAllPrevSiblings(){const _=Nn(a)+u;return u-=_,ms(l).splice(0,Math.max(0,_))},replaceWith(_,v={}){const g=!!v.traverse;l?l[Math.max(0,Nn(a)+u)]=_:lr(i,"Can't replace root node")[a]=_,g&&s(_,i,a,l),c=!0},replaceWithMultiple(_,v={}){const g=!!v.traverse;if(ms(l).splice(Math.max(0,Nn(a)+u),1,..._),u+=_.length-1,g){let b=0;for(let x=0;x<_.length;x++)b+=s(_[x],i,Nn(a)+x+b,l)}c=!0},skip(){c=!0}},{type:d}=o,h=t["*"],p=t[d],m=typeof h=="function"?h:h?.enter,w=typeof p=="function"?p:p?.enter;if(m?.(f,n),w?.(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 ms(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Nn(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const AC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function TC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function $C(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const nt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function sl(e,t,n,r){const s=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let i=0,a="";for(const l of e.matchAll(s)){const{0:u,groups:{$skip:c}}=l;if(!c&&(!r||r===nt.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?nt.CHAR_CLASS:nt.DEFAULT,negated:o[o.length-1]}):a+=n;continue}u[0]==="["?(i++,o.push(u[1]==="^")):u==="]"&&i&&(i--,o.pop()),a+=u}return a}function Mh(e,t,n,r){sl(e,t,n,r)}function RC(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===nt.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function ys(e,t,n){return!!RC(e,t,0,n)}function PC(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,s=0,o=1,i;for(;i=n.exec(e);){const[a]=i;if(a==="[")s++;else if(s)a==="]"&&s--;else if(a==="(")o++;else if(a===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const su=new RegExp(String.raw`(?<noncapturingStart>${AC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function IC(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,m;for(su.lastIndex=Number.isNaN(c)?0:c+o.length;m=su.exec(e);){const{0:w,index:_,groups:{capturingStart:v,noncapturingStart:g}}=m;if(w==="[")d++;else if(d)w==="]"&&d--;else if(w===s&&!p)c=_,p=!0;else if(p&&g)h++;else if(v)p?h++:(l++,i.push(l+u));else if(w===")"&&p){if(!h){u++;const b=l+u;if(e=`${e.slice(0,c)}${o}${e.slice(c+s.length,_)}))<$$${b}>)${e.slice(_+1)}`,f=!0,a.push(b),TC(n,b),r.size){const x=new Map;r.forEach((T,N)=>{x.set(N>=b?N+1:N,T.map(B=>B>=b?B+1:B))}),r=x}break}h--}}}while(f);return n.push(...a),e=sl(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:p}})=>{if(h){const m=+h;if(m>i.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${i[m]}`}return`\\${p}`},nt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Oh=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ui=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>${Oh})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
61
- | \\?.
62
- `.replace(/\s+/g,""),"gsu");function NC(e){if(!new RegExp(`${Oh}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(ui.lastIndex=0;i=ui.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=$C(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}ui.lastIndex+=d}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const et=String.raw,LC=et`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,ia=et`\(\?R=(?<rDepth>[^\)]+)\)|${LC}`,Io=et`\(\?<(?![=!])(?<captureName>[^>]+)>`,Dh=et`${Io}|(?<unnamed>\()(?!\?)`,un=new RegExp(et`${Io}|${ia}|\(\?|\\?.`,"gsu"),fi="Cannot use multiple overlapping recursions";function MC(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=t?.captureTransfers??new Map;if(!new RegExp(ia,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&ys(e,et`\(\?\(DEFINE\)`,nt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=ys(e,et`\\[1-9]`,nt.DEFAULT),a=new Map,l=[];let u=!1,c=0,f=0,d;for(un.lastIndex=0;d=un.exec(e);){const{0:h,groups:{captureName:p,rDepth:m,gRNameOrNum:w,gRDepth:_}}=d;if(h==="[")c++;else if(c)h==="]"&&c--;else if(m){if(ou(m),u)throw new Error(fi);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,d.index),g=e.slice(un.lastIndex);if(ys(g,ia,nt.DEFAULT))throw new Error(fi);const b=+m-1;e=iu(v,g,b,!1,n,o,f),s=lu(s,v,b,o.length,0,f);break}else if(w){ou(_);let v=!1;for(const U of l)if(U.name===w||U.num===+w){if(v=!0,U.hasRecursedWithin)throw new Error(fi);break}if(!v)throw new Error(et`Recursive \g cannot be used outside the referenced group "${r==="external"?w:et`\g<${w}&R=${_}>`}"`);const g=a.get(w),b=PC(e,g);if(i&&ys(b,et`${Io}|\((?!\?)`,nt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const x=e.slice(g,d.index),T=b.slice(x.length+h.length),N=o.length,B=+_-1,F=iu(x,T,B,!0,n,o,f);s=lu(s,x,B,o.length-N,N,f);const P=e.slice(0,g),W=e.slice(g+b.length);e=`${P}${F}${W}`,un.lastIndex+=F.length-h.length-x.length-T.length,l.forEach(U=>U.hasRecursedWithin=!0),u=!0}else if(p)f++,a.set(String(f),un.lastIndex),a.set(p,un.lastIndex),l.push({num:f,name:p});else if(h[0]==="("){const v=h==="(";v&&(f++,a.set(String(f),un.lastIndex)),l.push(v?{num:f}:{})}else h===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function ou(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 iu(e,t,n,r,s,o,i){const a=new Set;r&&Mh(e+t,Io,({groups:{captureName:u}})=>{a.add(u)},nt.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${au(`(?:${e}`,"forward",...l)}(?:)${au(`${t})`,"backward",...l)}${t}`}function au(e,t,n,r,s,o,i){const l=c=>t==="forward"?c+2:n-c+2-1;let u="";for(let c=0;c<n;c++){const f=l(c);u+=sl(e,et`${Dh}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:m}})=>{if(m&&r&&!r.has(m))return d;const w=`_$${f}`;if(p||h){const _=i+o.length+1;return o.push(_),OC(s,_),p?d:`(?<${h}${w}>`}return et`\k<${m}${w}>`},nt.DEFAULT)}return u}function OC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function lu(e,t,n,r,s,o){if(e.size&&r){let i=0;Mh(t,Dh,()=>i++,nt.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 m of u)if(m<=a)p.push(m);else if(m>a+i+f)p.push(m+r);else if(m<=a+i)for(let w=0;w<=n;w++)p.push(m+i*w);else for(let w=0;w<=n;w++)p.push(m+d+f*w);l.set(h,p)}),l}return e}var xe=String.fromCodePoint,ee=String.raw,Ht={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};Ht.bugFlagVLiteralHyphenIsRange=Ht.unicodeSets?(()=>{try{new RegExp(ee`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Ht.bugNestedClassIgnoresNegation=Ht.unicodeSets&&new RegExp("[[^a]]","v").test("a");function no(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Vr(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function aa(e,t){return cu[e]>=cu[t]}function DC(e,t){if(e==null)throw new Error(t??"Value expected");return e}var cu={ES2025:2025,ES2024:2024,ES2018:2018},HC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Hh(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!HC[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Ht.flagGroups?"ES2025":Ht.unicodeSets?"ES2024":"ES2018"),t}var BC="[ -\r ]",FC=new Set([xe(304),xe(305)]),Rt=ee`[\p{L}\p{M}\p{N}\p{Pc}]`;function Bh(e){if(FC.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=GC.get(n),o=jC.get(n),i=UC.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 ol=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=>[Po(e),e])),jC=new Map([["s",xe(383)],[xe(383),"s"]]),UC=new Map([[xe(223),xe(7838)],[xe(107),xe(8490)],[xe(229),xe(8491)],[xe(969),xe(8486)]]),GC=new Map([zt(453),zt(456),zt(459),zt(498),...di(8072,8079),...di(8088,8095),...di(8104,8111),zt(8124),zt(8140),zt(8188)]),WC=new Map([["alnum",ee`[\p{Alpha}\p{Nd}]`],["alpha",ee`\p{Alpha}`],["ascii",ee`\p{ASCII}`],["blank",ee`[\p{Zs}\t]`],["cntrl",ee`\p{Cc}`],["digit",ee`\p{Nd}`],["graph",ee`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ee`\p{Lower}`],["print",ee`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ee`[\p{P}\p{S}]`],["space",ee`\p{space}`],["upper",ee`\p{Upper}`],["word",ee`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ee`\p{AHex}`]]);function zC(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function zt(e){const t=xe(e);return[t.toLowerCase(),t]}function di(e,t){return zC(e,t).map(n=>zt(n))}var Fh=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function VC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};jh(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:aa(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};Rr(e,qC,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};Rr(e,KC,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Rr(e,XC,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var qC={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=lt();o.body[0].body.push(pn({negate:!0,body:r}),Dn("Any"));const i=lt();i.body[0].body.push(Ih("greedy",0,1/0,o)),n(_e(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++){const i=t.body[o];Vr(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=Gh(t.get(e));if(n){const r=lt({flags:n});r.body[0].body=e.body,e.body=[_e(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(_e(pn({body:[En({body:[ra("string_end")]}),En({body:[Ro(10)]})]}),t));else if(l==="line_start")i(_e(Pt(ee`(?<=\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&&tx(p))i(_e(pn({negate:!0}),t));else{if(f)throw new Error(ee`Uses "\G" in a way that requires a subclass`);i(Vt(ra("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(_e(Pt(ee`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!h&&!c){const p=`(?:(?<=${Rt})(?!${Rt})|(?<!${Rt})(?=${Rt}))`,m=`(?:(?<=${Rt})(?=${Rt})|(?<!${Rt})(?!${Rt}))`;i(_e(Pt(u?m:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!pi(n)&&(n=hi(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!pi(r)&&(r=hi(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=ks({body:[e]});n(_e(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(Vt(oa("digit",{negate:u}),t));return}if(i&&(l==="space"||c==="space")){n(_e(gi(Pt(BC),u),t));return}if(a&&(l==="word"||c==="word")){n(Vt(oa("word",{negate:u}),t));return}if(l==="any")n(Vt(Dn("Any"),t));else if(l==="digit")n(Vt(Dn("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(ee`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=ee`\p{RI}{2}|${f}(?:\u200D${f})*`;n(_e(Pt(ee`(?>\r\n|${s?ee`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(Vt(Dn("AHex",{negate:u}),t));else if(l==="newline")n(_e(Pt(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-${xe(f.codePointAt(0)-1)}${xe(f.codePointAt(2)+1)}-􏿿`),n(_e(Pt(`[${f}]`),t))}else n(_e(gi(Pt(WC.get(c)),u),t));else if(l==="property")ol.has(Po(c))||(e.key="sc");else if(l==="space")n(Vt(Dn("space",{negate:u}),t));else if(l==="word")n(_e(gi(Pt(Rt),u),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:i}){const{kind:a,flags:l}=e;if(a==="flags")if(!l.enable&&!l.disable)r();else{const u=lt({flags:l});u.body[0].body=i(),s(_e(u,t),{traverse:!0})}else if(a==="keep"){const u=n.body[0],f=n.body.length===1&&$h(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(ee`Uses "\K" in a way that's unsupported`);const d=pn({behind:!0});d.body[0].body=o(),s(_e(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(_e(pn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=lt();t.body[0].body.push(e.body),e.body=_e(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=zh(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(ee`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!pi(n)&&(n=hi(n,t),e.ref=n)}},KC={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=Vt(uu(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&Vr(i,e.name,[]);const c=i.get(e.name??e.number);for(let f=0;f<c.length;f++){const d=c[f];if(u===d.node||u&&u===d.origin||e===d.origin){c.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:u}),e.name&&i.get(e.name).push({node:e,origin:u}),e.name){const f=Vr(o,e.name,new Map);let d=!1;if(u)d=!0;else for(const h of f.values())if(!h.hasDuplicateNameToRemove){d=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:d})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=no(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?uu(0):Uh(i,r.groupOriginByCopy,null);let u=l;if(!a){const c=Gh(ZC(i,d=>d.type==="Group"&&!!d.flags)),f=c?no(r.globalFlags,c):r.globalFlags;JC(f,r.currentFlags)||(u=lt({flags:QC(f)}),u.body[0].body.push(l))}n(_e(u,t),{traverse:!a})}},XC={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=>YC(i,e));if(!o.length)n(_e(pn({negate:!0}),t));else if(o.length>1){const i=lt({atomic:!0,body:o.reverse().map(a=>En({body:[sa(a.number)]}))});n(_e(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=Ph();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function jh(e){Rr(e,{"*"({node:t,parent:n}){t.parent=n}})}function JC(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function YC(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=Wh(n.parent);for(const s of r){if(s===n)break;if(s===e||Vh(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Uh(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]=Uh(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function uu(e){const t=Nh(e);return t.isRecursive=!0,t}function ZC(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function hi(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 Gh(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 QC({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function Wh(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function zh(e){const t=e.find(n=>n.kind==="search_start"||nx(n,{negate:!1})||!ex(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=zh(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function Vh(e,t){const n=Wh(e)??[];for(const r of n)if(r===t||Vh(r,t))return!0;return!1}function ex({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function tx(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function nx(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&$h(e.body[0],{type:"Assertion",kind:"search_start"})}function pi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Pt(e,t){const r=Rh(e,{...t,unicodePropertyMap:ol}).body;return r.length>1||r[0].body.length>1?lt({body:r}):r[0].body[0]}function gi(e,t){return e.negate=t,e}function Vt(e,t){return e.parent=t,e}function _e(e,t){return jh(e),e.parent=t,e}function rx(e,t){const n=Hh(t),r=aa(n.target,"ES2024"),s=aa(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];Rr(e,sx,{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,DC(ox[h.type],`Unexpected node type "${h.type}"`)(h,c,f)}const d={pattern:e.body.map(f).join("|"),flags:f(e.flags),options:{...e.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],c.captureMap.forEach((h,p)=>{h.hidden&&d._hiddenCaptures.push(p),h.transferTo&&Vr(d._captureTransfers,h.transferTo,[]).push(p)}),d}var sx={"*":{enter({node:e},t){if(du(e)){const n=t.getCurrentModI();t.pushModI(e.flags?no({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){du(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){il(xe(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),qh(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Fh.has(e.value)&&t.setHasCasedChar()}},ox={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?ee`\B`:ee`\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=xe(e),r=Ln(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&il(n)){const s=Bh(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");Ht.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(hu)&&(i=[Ro(45),...i.filter(u=>!hu(u))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Ht.bugNestedClassIgnoresNegation)&&!s){const c=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=lt(),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=En({body:[h]});h.parent=p,p.parent=f,f.body.push(p)}),n(f)}}t.inCharClass=!0;const u=a();return t.inCharClass=!1,u}const l=i[0];if(r==="union"&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(Ht.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&l.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("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=Ln(n,s),i=Ln(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=qh(e);ux(l).forEach(c=>{a.add(Array.isArray(c)?`${Ln(c[0],s)}-${Ln(c[1],s)}`:Ln(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?".":"[^]":ee`[^\n]`;if(e==="digit")return t?ee`\D`:ee`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&Fh.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ee`\P`:ee`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?ee`\W`:ee`\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=no(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${fx(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)+dx(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})`:ee`\g<${t}&R=${r}>`}},ix=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),ax=new Set(["-","\\","]","^","["]),lx=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),fu=new Map([[9,ee`\t`],[10,ee`\n`],[11,ee`\v`],[12,ee`\f`],[13,ee`\r`],[8232,ee`\u2028`],[8233,ee`\u2029`],[65279,ee`\uFEFF`]]),cx=new RegExp("^\\p{Cased}$","u");function il(e){return cx.test(e)}function qh(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=xe(i);if(!il(a))continue;const l=Bh(a).filter(u=>{const c=u.codePointAt(0);return c<r||c>s});if(l.length&&(o.push(...l),n))break}return o}function Ln(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(fu.has(e))return fu.get(e);if(e<32||e>126&&e<160||e>262143||t&&hx(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?lx:ax:ix,o=xe(e);return(s.has(o)?"\\":"")+o}function ux(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 fx(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 dx({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 du({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function hx(e){return e>47&&e<58}function hu({type:e,value:t}){return e==="Character"&&t===45}var px=class la 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 la&&(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=mx(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 la(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&&(gx(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=yx(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 gx(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 mx(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,s]of t)for(const o of s)Vr(n,o,{}).transferTo=r;return n}function yx(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 _x(e,t){const n=bx(e,t);return n.options?new px(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function bx(e,t){const n=Hh(t),r=Rh(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:ol}),s=VC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=rx(s,n),i=MC(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=NC(i.pattern),l=IC(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,m)=>p-m),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 pu=4294967295;class wx{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:pu,end:pu,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 vx(e,t){return _x(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Cx(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>vx(n,{target:t.target}),{createScanner(n){return new wx(n,t)},createString(n){return{content:n}}}}let xx;const pr=[];function Sx(e){if(pr.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&pr.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&pr.forEach(n=>n(t))},get(){return xx.value},configurable:!0}),()=>{pr.splice(pr.indexOf(e),1)}}const It=ke(null);async function Kh(){ca.value&&(It.value=await ca.value("/__site-config__/debug.json"))}const ca=ke(),Xh=ke(),Jh=ke();Sx(async e=>{ca.value=e.host.app.$fetch,Xu(()=>{Jh.value=e.host.app.colorMode.value}),Xh.value=e.devtools,Kh()});const ua=ke();async function kx(){return ua.value=await O1({themes:[Tr(()=>import("./CVO1_9PV.js"),[],import.meta.url),Tr(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[Tr(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:Cx()}),ua.value}function Yh(e,t){return Oe(()=>{const n=Xh.value?.colorMode||"light";return ua.value.codeToHtml(va(e),{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Ex=["innerHTML"],Ax=Tt({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},setup(e){const t=e,n=Oe(()=>{const r=Yh(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(q(),ie("pre",{class:Se(["n-code-block",e.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Ex))}}),Tx=Object.assign(Ax,{__name:"OCodeBlock"}),$x={flex:"~ gap-3","items-center":""},Rx={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(q(),ie("div",$x,[e.icon?(q(),ie("div",{key:0,class:Se(e.icon)},null,2)):wt("",!0),We(t.$slots,"default",{},()=>[G("div",null,it(e.text),1)])]))}};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Px=e=>typeof e<"u";function Ix(e){return JSON.parse(JSON.stringify(e))}function Nx(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=sr(),h=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;p=p||`update:${t.toString()}`;const m=v=>i?typeof i=="function"?i(v):Ix(v):v,w=()=>Px(e[t])?m(e[t]):c,_=v=>{f?f(v)&&h(p,v):h(p,v)};if(a){const v=ke(w());let g=!1;return br(()=>e[t],b=>{g||(g=!0,v.value=m(b),co(()=>g=!1))}),br(v,b=>{!g&&(b!==e[t]||u)&&_(b)},{deep:u}),v}else return Oe({get(){return w()},set(v){_(v)}})}const Lx=["open"],Mx={"text-base":""},Ox={key:0,"text-sm":"",op50:""},Dx=Tt({__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=Nx(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=Fd,a=Rx;return q(),ie(ve,null,[G("details",{open:fe(n),onToggle:r},[G("summary",{class:Se(["cursor-pointer select-none n-bg-active hover:bg-active p4 rounded transition-all",e.collapse?"":"pointer-events-none"])},[J(a,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:Se([fe(n)?"op100":"op60",e.headerClass])},{default:de(()=>[G("div",null,[G("div",Mx,[We(s.$slots,"text",{},()=>[Me(it(e.text),1)],!0)]),e.description||s.$slots.description?(q(),ie("div",Ox,[We(s.$slots,"description",{},()=>[Me(it(e.description),1)],!0)])):wt("",!0)]),o[0]||(o[0]=G("div",{class:"flex-auto"},null,-1)),We(s.$slots,"actions",{},void 0,!0),e.collapse?(q(),$e(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):wt("",!0)]),_:3},8,["icon","text","class"])],2),G("div",{class:Se(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[We(s.$slots,"details",{},void 0,!0),G("div",{class:Se([e.containerClass,"mt1"])},[We(s.$slots,"default",{},void 0,!0)],2),We(s.$slots,"footer",{},void 0,!0)],2)],40,Lx),o[1]||(o[1]=G("div",{class:"x-divider"},null,-1))],64)}}}),Hx=Object.assign(Ao(Dx,[["__scopeId","data-v-348c1d92"]]),{__name:"OSectionBlock"}),Bx={class:"relative n-bg-base flex flex-col"},Fx={class:"sticky top-0 z-2 px-4 pt-4"},jx={class:"flex justify-between items-start",mb2:""},Ux={class:"flex space-x-5"},Gx={"text-xl":"",flex:"","items-center":"","gap-2":""},Wx={class:"flex items-center space-x-3 text-xl"},zx={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},Vx={class:"px-5 py-2"},qx={"text-lg":"",flex:"","items-center":""},Kx={class:"px-5 py-2"},Xx={"text-lg":"",flex:"","items-center":""},Jx={class:"px-5 py-2"},Yx={"text-lg":"",flex:"","items-center":""},Zx={class:"px-5 py-2"},Qx={"text-lg":"",flex:"","items-center":""},eS=["value","title"],tS={class:"items-center space-x-3 hidden lg:flex"},nS={class:"opacity-80 text-sm"},rS={class:"opacity-80 text-sm"},sS={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},oS={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},iS={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},aS={key:0},lS={class:"space-y-3"},cS={class:"col-span-2 opacity-80"},uS={class:"col-span-7"},fS={key:0,class:"opacity-40"},dS={key:1,class:"space-y-5"},hS={class:"opacity-80 text-base mb-1"},pS={class:"opacity-60 text-xs"},gS={class:"px-3 py-2 space-y-5"},mS={key:2,class:"h-full max-h-full overflow-hidden"},yS={class:"opacity-80 text-base mb-1"},_S={class:"px-3 py-2 space-y-5"},bS=["innerHTML"],wS={key:3,class:"h-full max-h-full overflow-hidden"},vS=Tt({__name:"app",async setup(e){let t,n;[t,n]=gg(()=>kx()),await t,n();const r=ke(!1);async function s(){r.value=!0,It.value=null,await Kh(),setTimeout(()=>{r.value=!1},300)}const o=ke("config");j_({htmlAttrs:{class:()=>Jh.value||""}});const i=Oe(()=>(It.value?.stack||[]).toReversed()),a=Oe(()=>{const u={...It.value?.config||{}};return delete u._context,delete u._priorities,Object.entries(u)});function l(u){const c={...u};return delete c._priority,delete c._context,c}return(u,c)=>{const f=Fd,d=Nw,h=nn("VTooltip"),p=Mw,m=Bw,w=Ww,_=Tx,v=Hx;return q(),ie("div",Bx,[G("header",Fx,[G("div",jx,[G("div",Ux,[G("h1",Gx,[J(f,{icon:"carbon:settings-check",class:"text-blue-300"}),c[1]||(c[1]=Me(" Site Config ",-1)),J(d,{class:"text-sm"},{default:de(()=>[Me(it(fe(It)?.version),1)]),_:1})])]),G("div",Wx,[G("fieldset",zx,[(q(),ie(ve,null,jo(["config","stack","debug","docs"],(g,b)=>G("label",{key:b,class:Se(["relative n-border-base hover:n-bg-active cursor-pointer",[b?"border-l n-border-base ml--1px":"",g===o.value?"n-bg-active":""]])},[g==="config"?(q(),ie("div",{key:0,class:Se([g===o.value?"":"op35"])},[J(h,null,{popper:de(()=>[...c[2]||(c[2]=[Me(" Site Config ",-1)])]),default:de(()=>[G("div",Vx,[G("h2",qx,[J(f,{icon:"carbon:settings opacity-50"})])])]),_:1})],2)):g==="stack"?(q(),ie("div",{key:1,class:Se([g===o.value?"":"op35"])},[J(h,null,{popper:de(()=>[...c[3]||(c[3]=[Me(" Stack ",-1)])]),default:de(()=>[G("div",Kx,[G("h2",Xx,[J(f,{icon:"carbon:stacked-scrolling-1 opacity-50"}),J(d,{class:"text-sm"},{default:de(()=>[Me(it(i.value.length),1)]),_:1})])])]),_:1})],2)):g==="debug"?(q(),ie("div",{key:2,class:Se([g===o.value?"":"op35"])},[J(h,null,{popper:de(()=>[...c[4]||(c[4]=[Me(" Debug ",-1)])]),default:de(()=>[G("div",Jx,[G("h2",Yx,[J(f,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):g==="docs"?(q(),ie("div",{key:3,class:Se([g===o.value?"":"op35"])},[J(h,null,{popper:de(()=>[...c[5]||(c[5]=[Me(" Documentation ",-1)])]),default:de(()=>[G("div",Zx,[G("h2",Qx,[J(f,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):wt("",!0),Kp(G("input",{"onUpdate:modelValue":c[0]||(c[0]=x=>o.value=x),type:"radio",value:g,title:g,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,eS),[[xm,o.value]])],2)),64))]),J(h,null,{popper:de(()=>[...c[6]||(c[6]=[Me(" Refresh ",-1)])]),default:de(()=>[G("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:s},[J(f,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),G("div",tS,[G("div",nS,[J(p,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:de(()=>[J(f,{icon:"carbon:favorite",class:"mr-[2px]"}),c[7]||(c[7]=Me(" Sponsor ",-1))]),_:1})]),G("div",rS,[J(p,{href:"https://github.com/harlan-zw/nuxt-site-config",target:"_blank"},{default:de(()=>[J(f,{icon:"logos:github-icon",class:"mr-[2px]"}),c[8]||(c[8]=Me(" Submit an issue ",-1))]),_:1})]),G("a",sS,[J(m)])])])]),G("div",oS,[G("main",iS,[!i.value||r.value?(q(),$e(w,{key:0})):(q(),ie(ve,{key:1},[o.value==="config"?(q(),ie("div",aS,[G("div",lS,[(q(!0),ie(ve,null,jo(a.value,([g,b])=>(q(),ie("div",{key:g,class:"w-full grid grid-cols-12 items-center space-x-3 py-1.5 px-3 shadow-sm border-t-1 border-t-transparent border-b-1 border-b-gray-200/20"},[G("div",cS,it(g),1),G("div",uS,[J(_,{lines:!1,class:"max-h-[350px] min-h-full overflow-y-auto",code:JSON.stringify(b,null,2),lang:"json"},null,8,["code"])]),fe(It)?.config._context&&g in fe(It).config._context?(q(),ie("div",fS,it(fe(It).config._context[g]),1)):wt("",!0)]))),128))])])):wt("",!0),o.value==="stack"?(q(),ie("div",dS,[(q(!0),ie(ve,null,jo(i.value,(g,b)=>(q(),$e(v,{key:b},{text:de(()=>[G("h3",hS,it(g._context),1)]),description:de(()=>[G("div",pS," Priority: "+it(g._priority||0),1)]),default:de(()=>[G("div",gS,[J(_,{class:"max-h-[350px] min-h-full overflow-y-auto",code:JSON.stringify(l(g),null,2),lang:"json"},null,8,["code"])])]),_:2},1024))),128))])):o.value==="debug"?(q(),ie("div",mS,[J(v,null,{text:de(()=>[G("h3",yS,[J(f,{icon:"carbon:settings",class:"mr-1"}),c[9]||(c[9]=Me(" Runtime Config ",-1))])]),default:de(()=>[G("div",_S,[G("pre",{"of-auto":"","h-full":"","text-sm":"",style:{"white-space":"break-spaces"},innerHTML:fe(Yh)(JSON.stringify(fe(It),null,2),"json").value},null,8,bS)])]),_:1})])):o.value==="docs"?(q(),ie("div",wS,[...c[10]||(c[10]=[G("iframe",{src:"https://nuxtseo.com/site-config",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)])])):wt("",!0)],64))])])])}}}),CS={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error,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?vl(()=>Tr(()=>import("./CJF-nxcU.js"),__vite__mapDeps([0,1]),import.meta.url)):vl(()=>Tr(()=>import("./DMwZ1BOb.js"),__vite__mapDeps([2,3]),import.meta.url));return(f,d)=>(q(),$e(fe(c),Cu(Ra({status:fe(r),statusText:fe(o),statusCode:fe(r),statusMessage:fe(o),description:fe(i),stack:fe(a)})),null,16))}},xS={key:0},gu={__name:"nuxt-root",setup(e){const t=()=>null,n=Ce(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Et().beforeEach(u)}const s=!1;Ku(nd,Oa()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const o=Da(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;nf((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(n_(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>e_(u)),!1});const l=!1;return(u,c)=>(q(),$e(Fg,{onResolve:fe(r)},{default:de(()=>[fe(i)?(q(),ie("div",xS)):fe(o)?(q(),$e(fe(CS),{key:1,error:fe(o)},null,8,["error"])):fe(l)?(q(),$e(fe(t),{key:2,context:fe(l)},null,8,["context"])):fe(s)?(q(),$e(hg(fe(s)),{key:3})):(q(),$e(fe(vS),{key:4}))]),_:1},8,["onResolve"]))}};let mu;{let e;mu=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?$m(gu):Df(gu),s=Uy({vueApp:r});async function o(i){await s.callHook("app:error",i),s.payload.error||=Ha(i)}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&Xl.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(Xl.id)?.remove()});try{await zy(s,$w)}catch(i){o(i)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(By),await s.hooks.callHook("app:mounted",r),await co()}catch(i){o(i)}return r},e=mu().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Ao as _,G as a,J as b,ie as c,Me as d,pb as e,q as o,it as t,j_ as u,de as w};