@nuxtjs/sitemap 7.2.9 → 7.3.0

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 (52) hide show
  1. package/dist/client/200.html +9 -9
  2. package/dist/client/404.html +9 -9
  3. package/dist/client/_nuxt/Cp-IABpG.js +1 -0
  4. package/dist/client/_nuxt/DJVkgDQ2.js +1 -0
  5. package/dist/client/_nuxt/SmY-NWqO.js +172 -0
  6. package/dist/client/_nuxt/builds/latest.json +1 -1
  7. package/dist/client/_nuxt/builds/meta/e48bfd5b-6605-4bbc-a466-32a664787616.json +1 -0
  8. package/dist/client/_nuxt/{entry.CJ2Eg9q-.css → entry.CgW0_noo.css} +1 -1
  9. package/dist/client/_nuxt/error-404.CtcyoHAN.css +1 -0
  10. package/dist/client/_nuxt/error-500.BIlfyoPk.css +1 -0
  11. package/dist/client/_nuxt/lL_X76lO.js +1 -0
  12. package/dist/client/index.html +9 -9
  13. package/dist/content.d.cts +2 -1
  14. package/dist/content.d.mts +2 -1
  15. package/dist/content.d.ts +2 -1
  16. package/dist/module.cjs +83 -42
  17. package/dist/module.d.cts +3 -1
  18. package/dist/module.d.mts +3 -1
  19. package/dist/module.d.ts +3 -1
  20. package/dist/module.json +3 -3
  21. package/dist/module.mjs +84 -43
  22. package/dist/runtime/server/plugins/warm-up.js +20 -4
  23. package/dist/runtime/server/routes/__sitemap__/debug.d.ts +4 -4
  24. package/dist/runtime/server/routes/__sitemap__/debug.js +2 -2
  25. package/dist/runtime/server/routes/__sitemap__/nuxt-content-urls-v3.js +7 -2
  26. package/dist/runtime/server/routes/sitemap/[sitemap].xml.js +37 -7
  27. package/dist/runtime/server/routes/sitemap_index.xml.js +11 -3
  28. package/dist/runtime/server/sitemap/builder/sitemap-index.d.ts +1 -1
  29. package/dist/runtime/server/sitemap/builder/sitemap-index.js +110 -16
  30. package/dist/runtime/server/sitemap/builder/sitemap.d.ts +1 -1
  31. package/dist/runtime/server/sitemap/builder/sitemap.js +62 -36
  32. package/dist/runtime/server/sitemap/builder/xml.d.ts +2 -3
  33. package/dist/runtime/server/sitemap/builder/xml.js +182 -80
  34. package/dist/runtime/server/sitemap/nitro.js +68 -20
  35. package/dist/runtime/server/sitemap/urlset/normalise.js +21 -19
  36. package/dist/runtime/server/sitemap/urlset/sort.d.ts +1 -1
  37. package/dist/runtime/server/sitemap/urlset/sort.js +9 -15
  38. package/dist/runtime/server/sitemap/utils/chunk.d.ts +10 -0
  39. package/dist/runtime/server/sitemap/utils/chunk.js +66 -0
  40. package/dist/runtime/types.d.ts +44 -0
  41. package/dist/runtime/utils-pure.js +13 -5
  42. package/dist/types.d.mts +5 -1
  43. package/package.json +32 -38
  44. package/content.d.ts +0 -1
  45. package/dist/client/_nuxt/BQoSv7ci.js +0 -1
  46. package/dist/client/_nuxt/BuImKM08.js +0 -1
  47. package/dist/client/_nuxt/DGiw9jHL.js +0 -172
  48. package/dist/client/_nuxt/LwtYuSjN.js +0 -1
  49. package/dist/client/_nuxt/builds/meta/491f5d1a-004d-407a-b464-c3363f77bc23.json +0 -1
  50. package/dist/client/_nuxt/error-404.CmL6pbzl.css +0 -1
  51. package/dist/client/_nuxt/error-500.CnmYQu0q.css +0 -1
  52. package/dist/types.d.ts +0 -1
@@ -1,172 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./LwtYuSjN.js","./error-404.CmL6pbzl.css","./BuImKM08.js","./error-500.CnmYQu0q.css"])))=>i.map(i=>d[i]);
2
- var wp=Object.defineProperty;var bp=Object.getPrototypeOf;var vp=Reflect.get;var Pl=e=>{throw TypeError(e)};var Cp=(e,t,n)=>t in e?wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var k=(e,t,n)=>Cp(e,typeof t!="symbol"?t+"":t,n),ti=(e,t,n)=>t.has(e)||Pl("Cannot "+n);var Xe=(e,t,n)=>(ti(e,t,"read from private field"),n?n.call(e):t.get(e)),kn=(e,t,n)=>t.has(e)?Pl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),wt=(e,t,n,r)=>(ti(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ni=(e,t,n)=>(ti(e,t,"access private method"),n);var Nl=(e,t,n)=>vp(bp(e),n,t);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
3
- * @vue/shared v3.5.13
4
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
- * @license MIT
6
- **//*! #__NO_SIDE_EFFECTS__ */function Pa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _e={},ar=[],Ot=()=>{},Sp=()=>!1,hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Na=e=>e.startsWith("onUpdate:"),Je=Object.assign,Ia=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},xp=Object.prototype.hasOwnProperty,pe=(e,t)=>xp.call(e,t),ee=Array.isArray,lr=e=>ds(e)==="[object Map]",Lu=e=>ds(e)==="[object Set]",Il=e=>ds(e)==="[object Date]",Q=e=>typeof e=="function",Ee=e=>typeof e=="string",kt=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",Oa=e=>(we(e)||Q(e))&&Q(e.then)&&Q(e.catch),Du=Object.prototype.toString,ds=e=>Du.call(e),kp=e=>ds(e).slice(8,-1),Hu=e=>ds(e)==="[object Object]",Ma=e=>Ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cr=Pa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ko=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ap=/-(\w)/g,yt=ko(e=>e.replace(Ap,(t,n)=>n?n.toUpperCase():"")),Ep=/\B([A-Z])/g,bn=ko(e=>e.replace(Ep,"-$1").toLowerCase()),Ao=ko(e=>e.charAt(0).toUpperCase()+e.slice(1)),ri=ko(e=>e?`on${Ao(e)}`:""),un=(e,t)=>!Object.is(e,t),Ls=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Fu=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Tp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Rp=e=>{const t=Ee(e)?Number(e):NaN;return isNaN(t)?e:t};let Ol;const Eo=()=>Ol||(Ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ln(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Ee(r)?Ip(r):Ln(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Ee(e)||we(e))return e}const $p=/;(?![^(]*\))/g,Pp=/:([^]+)/,Np=/\/\*[^]*?\*\//g;function Ip(e){const t={};return e.replace(Np,"").split($p).forEach(n=>{if(n){const r=n.split(Pp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ne(e){let t="";if(Ee(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const r=Ne(e[n]);r&&(t+=r+" ")}else if(we(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Bu(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ee(t)&&(e.class=Ne(t)),n&&(e.style=Ln(n)),e}const Op="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Mp=Pa(Op);function ju(e){return!!e||e===""}function Lp(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=zs(e[r],t[r]);return n}function zs(e,t){if(e===t)return!0;let n=Il(e),r=Il(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=kt(e),r=kt(t),n||r)return e===t;if(n=ee(e),r=ee(t),n||r)return n&&r?Lp(e,t):!1;if(n=we(e),r=we(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!zs(e[i],t[i]))return!1}}return String(e)===String(t)}const Uu=e=>!!(e&&e.__v_isRef===!0),Be=e=>Ee(e)?e:e==null?"":ee(e)||we(e)&&(e.toString===Du||!Q(e.toString))?Uu(e)?Be(e.value):JSON.stringify(e,Gu,2):String(e),Gu=(e,t)=>Uu(t)?Gu(e,t.value):lr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[si(r,o)+" =>"]=s,n),{})}:Lu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>si(n))}:kt(t)?si(t):we(t)&&!ee(t)&&!Hu(t)?String(t):t,si=(e,t="")=>{var n;return kt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
7
- * @vue/reactivity v3.5.13
8
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
9
- * @license MIT
10
- **/let Ze;class Wu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ze,!t&&Ze&&(this.index=(Ze.scopes||(Ze.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=Ze;try{return Ze=this,t()}finally{Ze=n}}}on(){Ze=this}off(){Ze=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Dp(e){return new Wu(e)}function La(){return Ze}function Hp(e,t=!1){Ze&&Ze.cleanups.push(e)}let Se;const oi=new WeakSet;class zu{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,Ze&&Ze.active&&Ze.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,oi.has(this)&&(oi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ml(this),Ku(this);const t=Se,n=Ct;Se=this,Ct=!0;try{return this.fn()}finally{Ju(this),Se=t,Ct=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fa(t);this.deps=this.depsTail=void 0,Ml(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?oi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Di(this)&&this.run()}get dirty(){return Di(this)}}let Vu=0,Mr,Lr;function qu(e,t=!1){if(e.flags|=8,t){e.next=Lr,Lr=e;return}e.next=Mr,Mr=e}function Da(){Vu++}function Ha(){if(--Vu>0)return;if(Lr){let t=Lr;for(Lr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Mr;){let t=Mr;for(Mr=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 Ku(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ju(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Fa(r),Fp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Di(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xr))return;e.globalVersion=Xr;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Di(e)){e.flags&=-3;return}const n=Se,r=Ct;Se=e,Ct=!0;try{Ku(e);const s=e.fn(e._value);(t.version===0||un(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Se=n,Ct=r,Ju(e),e.flags&=-3}}function Fa(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Fa(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Fp(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 Yu=[];function vn(){Yu.push(Ct),Ct=!1}function Cn(){const e=Yu.pop();Ct=e===void 0?!0:e}function Ml(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Se;Se=void 0;try{t()}finally{Se=n}}}let Xr=0;class Bp{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 To{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Se||!Ct||Se===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Se)n=this.activeLink=new Bp(Se,this),Se.deps?(n.prevDep=Se.depsTail,Se.depsTail.nextDep=n,Se.depsTail=n):Se.deps=Se.depsTail=n,Zu(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Se.depsTail,n.nextDep=void 0,Se.depsTail.nextDep=n,Se.depsTail=n,Se.deps===n&&(Se.deps=r)}return n}trigger(t){this.version++,Xr++,this.notify(t)}notify(t){Da();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ha()}}}function Zu(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)Zu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Vs=new WeakMap,Dn=Symbol(""),Hi=Symbol(""),Yr=Symbol("");function Ve(e,t,n){if(Ct&&Se){let r=Vs.get(e);r||Vs.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new To),s.map=r,s.key=n),s.track()}}function qt(e,t,n,r,s,o){const i=Vs.get(e);if(!i){Xr++;return}const a=l=>{l&&l.trigger()};if(Da(),t==="clear")i.forEach(a);else{const l=ee(e),c=l&&Ma(n);if(l&&n==="length"){const u=Number(r);i.forEach((f,h)=>{(h==="length"||h===Yr||!kt(h)&&h>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Yr)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Dn)),lr(e)&&a(i.get(Hi)));break;case"delete":l||(a(i.get(Dn)),lr(e)&&a(i.get(Hi)));break;case"set":lr(e)&&a(i.get(Dn));break}}Ha()}function jp(e,t){const n=Vs.get(e);return n&&n.get(t)}function Yn(e){const t=de(e);return t===e?t:(Ve(t,"iterate",Yr),mt(e)?t:t.map(qe))}function Ro(e){return Ve(e=de(e),"iterate",Yr),e}const Up={__proto__:null,[Symbol.iterator](){return ii(this,Symbol.iterator,qe)},concat(...e){return Yn(this).concat(...e.map(t=>ee(t)?Yn(t):t))},entries(){return ii(this,"entries",e=>(e[1]=qe(e[1]),e))},every(e,t){return jt(this,"every",e,t,void 0,arguments)},filter(e,t){return jt(this,"filter",e,t,n=>n.map(qe),arguments)},find(e,t){return jt(this,"find",e,t,qe,arguments)},findIndex(e,t){return jt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jt(this,"findLast",e,t,qe,arguments)},findLastIndex(e,t){return jt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ai(this,"includes",e)},indexOf(...e){return ai(this,"indexOf",e)},join(e){return Yn(this).join(e)},lastIndexOf(...e){return ai(this,"lastIndexOf",e)},map(e,t){return jt(this,"map",e,t,void 0,arguments)},pop(){return Rr(this,"pop")},push(...e){return Rr(this,"push",e)},reduce(e,...t){return Ll(this,"reduce",e,t)},reduceRight(e,...t){return Ll(this,"reduceRight",e,t)},shift(){return Rr(this,"shift")},some(e,t){return jt(this,"some",e,t,void 0,arguments)},splice(...e){return Rr(this,"splice",e)},toReversed(){return Yn(this).toReversed()},toSorted(e){return Yn(this).toSorted(e)},toSpliced(...e){return Yn(this).toSpliced(...e)},unshift(...e){return Rr(this,"unshift",e)},values(){return ii(this,"values",qe)}};function ii(e,t,n){const r=Ro(e),s=r[t]();return r!==e&&!mt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const Gp=Array.prototype;function jt(e,t,n,r,s,o){const i=Ro(e),a=i!==e&&!mt(e),l=i[t];if(l!==Gp[t]){const f=l.apply(e,o);return a?qe(f):f}let c=n;i!==e&&(a?c=function(f,h){return n.call(this,qe(f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const u=l.call(i,c,r);return a&&s?s(u):u}function Ll(e,t,n,r){const s=Ro(e);let o=n;return s!==e&&(mt(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,qe(a),l,e)}),s[t](o,...r)}function ai(e,t,n){const r=de(e);Ve(r,"iterate",Yr);const s=r[t](...n);return(s===-1||s===!1)&&Ua(n[0])?(n[0]=de(n[0]),r[t](...n)):s}function Rr(e,t,n=[]){vn(),Da();const r=de(e)[t].apply(e,n);return Ha(),Cn(),r}const Wp=Pa("__proto__,__v_isRef,__isVue"),Qu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt));function zp(e){kt(e)||(e=String(e));const t=de(this);return Ve(t,"has",e),t.hasOwnProperty(e)}class ef{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?tg:sf:o?rf:nf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ee(t);if(!s){let l;if(i&&(l=Up[n]))return l;if(n==="hasOwnProperty")return zp}const a=Reflect.get(t,n,Ie(t)?t:r);return(kt(n)?Qu.has(n):Wp(n))||(s||Ve(t,"get",n),o)?a:Ie(a)?i&&Ma(n)?a:a.value:we(a)?s?$o(a):mn(a):a}}class tf extends ef{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=yn(o);if(!mt(r)&&!yn(r)&&(o=de(o),r=de(r)),!ee(t)&&Ie(o)&&!Ie(r))return l?!1:(o.value=r,!0)}const i=ee(t)&&Ma(n)?Number(n)<t.length:pe(t,n),a=Reflect.set(t,n,r,Ie(t)?t:s);return t===de(s)&&(i?un(r,o)&&qt(t,"set",n,r):qt(t,"add",n,r)),a}deleteProperty(t,n){const r=pe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&qt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!kt(n)||!Qu.has(n))&&Ve(t,"has",n),r}ownKeys(t){return Ve(t,"iterate",ee(t)?"length":Dn),Reflect.ownKeys(t)}}class Vp extends ef{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const qp=new tf,Kp=new Vp,Jp=new tf(!0);const Fi=e=>e,ws=e=>Reflect.getPrototypeOf(e);function Xp(e,t,n){return function(...r){const s=this.__v_raw,o=de(s),i=lr(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...r),u=n?Fi:t?Bi:qe;return!t&&Ve(o,"iterate",l?Hi:Dn),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function bs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Yp(e,t){const n={get(s){const o=this.__v_raw,i=de(o),a=de(s);e||(un(s,a)&&Ve(i,"get",s),Ve(i,"get",a));const{has:l}=ws(i),c=t?Fi:e?Bi:qe;if(l.call(i,s))return c(o.get(s));if(l.call(i,a))return c(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Ve(de(s),"iterate",Dn),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=de(o),a=de(s);return e||(un(s,a)&&Ve(i,"has",s),Ve(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=de(a),c=t?Fi:e?Bi:qe;return!e&&Ve(l,"iterate",Dn),a.forEach((u,f)=>s.call(o,c(u),c(f),i))}};return Je(n,e?{add:bs("add"),set:bs("set"),delete:bs("delete"),clear:bs("clear")}:{add(s){!t&&!mt(s)&&!yn(s)&&(s=de(s));const o=de(this);return ws(o).has.call(o,s)||(o.add(s),qt(o,"add",s,s)),this},set(s,o){!t&&!mt(o)&&!yn(o)&&(o=de(o));const i=de(this),{has:a,get:l}=ws(i);let c=a.call(i,s);c||(s=de(s),c=a.call(i,s));const u=l.call(i,s);return i.set(s,o),c?un(o,u)&&qt(i,"set",s,o):qt(i,"add",s,o),this},delete(s){const o=de(this),{has:i,get:a}=ws(o);let l=i.call(o,s);l||(s=de(s),l=i.call(o,s)),a&&a.call(o,s);const c=o.delete(s);return l&&qt(o,"delete",s,void 0),c},clear(){const s=de(this),o=s.size!==0,i=s.clear();return o&&qt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Xp(s,e,t)}),n}function Ba(e,t){const n=Yp(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(pe(n,s)&&s in r?n:r,s,o)}const Zp={get:Ba(!1,!1)},Qp={get:Ba(!1,!0)},eg={get:Ba(!0,!1)};const nf=new WeakMap,rf=new WeakMap,sf=new WeakMap,tg=new WeakMap;function ng(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rg(e){return e.__v_skip||!Object.isExtensible(e)?0:ng(kp(e))}function mn(e){return yn(e)?e:ja(e,!1,qp,Zp,nf)}function sr(e){return ja(e,!1,Jp,Qp,rf)}function $o(e){return ja(e,!0,Kp,eg,sf)}function ja(e,t,n,r,s){if(!we(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=rg(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Hn(e){return yn(e)?Hn(e.__v_raw):!!(e&&e.__v_isReactive)}function yn(e){return!!(e&&e.__v_isReadonly)}function mt(e){return!!(e&&e.__v_isShallow)}function Ua(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function sg(e){return!pe(e,"__v_skip")&&Object.isExtensible(e)&&Fu(e,"__v_skip",!0),e}const qe=e=>we(e)?mn(e):e,Bi=e=>we(e)?$o(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function Re(e){return of(e,!1)}function ji(e){return of(e,!0)}function of(e,t){return Ie(e)?e:new og(e,t)}class og{constructor(t,n){this.dep=new To,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:qe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||mt(t)||yn(t);t=r?t:de(t),un(t,n)&&(this._rawValue=t,this._value=r?t:qe(t),this.dep.trigger())}}function ae(e){return Ie(e)?e.value:e}function fn(e){return Q(e)?e():ae(e)}const ig={get:(e,t,n)=>t==="__v_raw"?e:ae(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ie(s)&&!Ie(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function af(e){return Hn(e)?e:new Proxy(e,ig)}class ag{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new To,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function lg(e){return new ag(e)}class cg{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return jp(de(this._object),this._key)}}class ug{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 lf(e,t,n){return Ie(e)?e:Q(e)?new ug(e):we(e)&&arguments.length>1?fg(e,t,n):Re(e)}function fg(e,t,n){const r=e[t];return Ie(r)?r:new cg(e,t,n)}class hg{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new To(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Se!==this)return qu(this,!0),!0}get value(){const t=this.dep.track();return Xu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dg(e,t,n=!1){let r,s;return Q(e)?r=e:(r=e.get,s=e.set),new hg(r,s,n)}const vs={},qs=new WeakMap;let $n;function pg(e,t=!1,n=$n){if(n){let r=qs.get(n);r||qs.set(n,r=[]),r.push(e)}}function gg(e,t,n=_e){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,c=b=>s?b:mt(b)||s===!1||s===0?Kt(b,1):Kt(b);let u,f,h,d,p=!1,g=!1;if(Ie(e)?(f=()=>e.value,p=mt(e)):Hn(e)?(f=()=>c(e),p=!0):ee(e)?(g=!0,p=e.some(b=>Hn(b)||mt(b)),f=()=>e.map(b=>{if(Ie(b))return b.value;if(Hn(b))return c(b);if(Q(b))return l?l(b,2):b()})):Q(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){vn();try{h()}finally{Cn()}}const b=$n;$n=u;try{return l?l(e,3,[d]):e(d)}finally{$n=b}}:f=Ot,t&&s){const b=f,C=s===!0?1/0:s;f=()=>Kt(b(),C)}const y=La(),_=()=>{u.stop(),y&&y.active&&Ia(y.effects,u)};if(o&&t){const b=t;t=(...C)=>{b(...C),_()}}let v=g?new Array(e.length).fill(vs):vs;const m=b=>{if(!(!(u.flags&1)||!u.dirty&&!b))if(t){const C=u.run();if(s||p||(g?C.some((E,x)=>un(E,v[x])):un(C,v))){h&&h();const E=$n;$n=u;try{const x=[C,v===vs?void 0:g&&v[0]===vs?[]:v,d];l?l(t,3,x):t(...x),v=C}finally{$n=E}}}else u.run()};return a&&a(m),u=new zu(f),u.scheduler=i?()=>i(m,!1):m,d=b=>pg(b,!1,u),h=u.onStop=()=>{const b=qs.get(u);if(b){if(l)l(b,4);else for(const C of b)C();qs.delete(u)}},t?r?m(!0):v=u.run():i?i(m.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Kt(e,t=1/0,n){if(t<=0||!we(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ie(e))Kt(e.value,t,n);else if(ee(e))for(let r=0;r<e.length;r++)Kt(e[r],t,n);else if(Lu(e)||lr(e))e.forEach(r=>{Kt(r,t,n)});else if(Hu(e)){for(const r in e)Kt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Kt(e[r],t,n)}return e}/**
11
- * @vue/runtime-core v3.5.13
12
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
- * @license MIT
14
- **/function ps(e,t,n,r){try{return r?e(...r):e()}catch(s){xr(s,t,n)}}function Dt(e,t,n,r){if(Q(e)){const s=ps(e,t,n,r);return s&&Oa(s)&&s.catch(o=>{xr(o,t,n)}),s}if(ee(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Dt(e[o],t,n,r));return s}}function xr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||_e;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(o){vn(),ps(o,null,10,[e,l,c]),Cn();return}}mg(e,n,s,r,i)}function mg(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Qe=[];let Pt=-1;const ur=[];let nn=null,Qn=0;const cf=Promise.resolve();let Ks=null;function zn(e){const t=Ks||cf;return e?t.then(this?e.bind(this):e):t}function yg(e){let t=Pt+1,n=Qe.length;for(;t<n;){const r=t+n>>>1,s=Qe[r],o=Zr(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Ga(e){if(!(e.flags&1)){const t=Zr(e),n=Qe[Qe.length-1];!n||!(e.flags&2)&&t>=Zr(n)?Qe.push(e):Qe.splice(yg(t),0,e),e.flags|=1,uf()}}function uf(){Ks||(Ks=cf.then(ff))}function Ui(e){ee(e)?ur.push(...e):nn&&e.id===-1?nn.splice(Qn+1,0,e):e.flags&1||(ur.push(e),e.flags|=1),uf()}function Dl(e,t,n=Pt+1){for(;n<Qe.length;n++){const r=Qe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Qe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Js(e){if(ur.length){const t=[...new Set(ur)].sort((n,r)=>Zr(n)-Zr(r));if(ur.length=0,nn){nn.push(...t);return}for(nn=t,Qn=0;Qn<nn.length;Qn++){const n=nn[Qn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}nn=null,Qn=0}}const Zr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ff(e){try{for(Pt=0;Pt<Qe.length;Pt++){const t=Qe[Pt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ps(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pt<Qe.length;Pt++){const t=Qe[Pt];t&&(t.flags&=-2)}Pt=-1,Qe.length=0,Js(),Ks=null,(Qe.length||ur.length)&&ff()}}let De=null,Po=null;function Xs(e){const t=De;return De=e,Po=e&&e.type.__scopeId||null,t}function _g(e){Po=e}function wg(){Po=null}const bg=e=>ie;function ie(e,t=De,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Xl(-1);const o=Xs(t);let i;try{i=e(...s)}finally{Xs(o),r._d&&Xl(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function vg(e,t){if(De===null)return e;const n=Do(De),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=_e]=t[s];o&&(Q(o)&&(o={mounted:o,updated:o}),o.deep&&Kt(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Nt(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&&(vn(),Dt(l,n,8,[e.el,a,e,t]),Cn())}}const Cg=Symbol("_vte"),Sg=e=>e.__isTeleport;function Wa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Wa(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function nt(e,t){return Q(e)?Je({name:e.name},t,{setup:e}):e}function za(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Qr(e,t,n,r,s=!1){if(ee(e)){e.forEach((p,g)=>Qr(p,t&&(ee(t)?t[g]:t),n,r,s));return}if(Fn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Qr(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Do(r.component):r.el,i=s?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===_e?a.refs={}:a.refs,f=a.setupState,h=de(f),d=f===_e?()=>!1:p=>pe(h,p);if(c!=null&&c!==l&&(Ee(c)?(u[c]=null,d(c)&&(f[c]=null)):Ie(c)&&(c.value=null)),Q(l))ps(l,a,12,[i,u]);else{const p=Ee(l),g=Ie(l);if(p||g){const y=()=>{if(e.f){const _=p?d(l)?f[l]:u[l]:l.value;s?ee(_)&&Ia(_,o):ee(_)?_.includes(o)||_.push(o):p?(u[l]=[o],d(l)&&(f[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,d(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(u[e.k]=i))};i?(y.id=-1,lt(y,n)):y()}}}let Hl=!1;const Zn=()=>{Hl||(console.error("Hydration completed but contains mismatches."),Hl=!0)},xg=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",kg=e=>e.namespaceURI.includes("MathML"),Cs=e=>{if(e.nodeType===1){if(xg(e))return"svg";if(kg(e))return"mathml"}},or=e=>e.nodeType===8;function Ag(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(m,b)=>{if(!b.hasChildNodes()){n(null,m,b),Js(),b._vnode=m;return}f(b.firstChild,m,null,null,null),Js(),b._vnode=m},f=(m,b,C,E,x,L=!1)=>{L=L||!!b.dynamicChildren;const H=or(m)&&m.data==="[",I=()=>g(m,b,C,E,x,H),{type:D,ref:U,shapeFlag:J,patchFlag:ne}=b;let he=m.nodeType;b.el=m,ne===-2&&(L=!1,b.dynamicChildren=null);let W=null;switch(D){case Un:he!==3?b.children===""?(l(b.el=s(""),i(m),m),W=m):W=I():(m.data!==b.children&&(Zn(),m.data=b.children),W=o(m));break;case At:v(m)?(W=o(m),_(b.el=m.content.firstChild,m,C)):he!==8||H?W=I():W=o(m);break;case Hr:if(H&&(m=o(m),he=m.nodeType),he===1||he===3){W=m;const Y=!b.children.length;for(let V=0;V<b.staticCount;V++)Y&&(b.children+=W.nodeType===1?W.outerHTML:W.data),V===b.staticCount-1&&(b.anchor=W),W=o(W);return H?o(W):W}else I();break;case xe:H?W=p(m,b,C,E,x,L):W=I();break;default:if(J&1)(he!==1||b.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?W=I():W=h(m,b,C,E,x,L);else if(J&6){b.slotScopeIds=x;const Y=i(m);if(H?W=y(m):or(m)&&m.data==="teleport start"?W=y(m,m.data,"teleport end"):W=o(m),t(b,Y,null,C,E,Cs(Y),L),Fn(b)&&!b.type.__asyncResolved){let V;H?(V=q(xe),V.anchor=W?W.previousSibling:Y.lastChild):V=m.nodeType===3?ce(""):q("div"),V.el=m,b.component.subTree=V}}else J&64?he!==8?W=I():W=b.type.hydrate(m,b,C,E,x,L,e,d):J&128&&(W=b.type.hydrate(m,b,C,E,Cs(i(m)),x,L,e,f))}return U!=null&&Qr(U,null,E,b),W},h=(m,b,C,E,x,L)=>{L=L||!!b.dynamicChildren;const{type:H,props:I,patchFlag:D,shapeFlag:U,dirs:J,transition:ne}=b,he=H==="input"||H==="option";if(he||D!==-1){J&&Nt(b,null,C,"created");let W=!1;if(v(m)){W=Mf(null,ne)&&C&&C.vnode.props&&C.vnode.props.appear;const V=m.content.firstChild;W&&ne.beforeEnter(V),_(V,m,C),b.el=m=V}if(U&16&&!(I&&(I.innerHTML||I.textContent))){let V=d(m.firstChild,b,m,C,E,x,L);for(;V;){Ss(m,1)||Zn();const be=V;V=V.nextSibling,a(be)}}else if(U&8){let V=b.children;V[0]===`
15
- `&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(V=V.slice(1)),m.textContent!==V&&(Ss(m,0)||Zn(),m.textContent=b.children)}if(I){if(he||!L||D&48){const V=m.tagName.includes("-");for(const be in I)(he&&(be.endsWith("value")||be==="indeterminate")||hs(be)&&!cr(be)||be[0]==="."||V)&&r(m,be,null,I[be],void 0,C)}else if(I.onClick)r(m,"onClick",null,I.onClick,void 0,C);else if(D&4&&Hn(I.style))for(const V in I.style)I.style[V]}let Y;(Y=I&&I.onVnodeBeforeMount)&&ft(Y,C,b),J&&Nt(b,null,C,"beforeMount"),((Y=I&&I.onVnodeMounted)||J||W)&&Gf(()=>{Y&&ft(Y,C,b),W&&ne.enter(m),J&&Nt(b,null,C,"mounted")},E)}return m.nextSibling},d=(m,b,C,E,x,L,H)=>{H=H||!!b.dynamicChildren;const I=b.children,D=I.length;for(let U=0;U<D;U++){const J=H?I[U]:I[U]=ct(I[U]),ne=J.type===Un;m?(ne&&!H&&U+1<D&&ct(I[U+1]).type===Un&&(l(s(m.data.slice(J.children.length)),C,o(m)),m.data=J.children),m=f(m,J,E,x,L,H)):ne&&!J.children?l(J.el=s(""),C):(Ss(C,1)||Zn(),n(null,J,C,null,E,x,Cs(C),L))}return m},p=(m,b,C,E,x,L)=>{const{slotScopeIds:H}=b;H&&(x=x?x.concat(H):H);const I=i(m),D=d(o(m),b,I,C,E,x,L);return D&&or(D)&&D.data==="]"?o(b.anchor=D):(Zn(),l(b.anchor=c("]"),I,D),D)},g=(m,b,C,E,x,L)=>{if(Ss(m.parentElement,1)||Zn(),b.el=null,L){const D=y(m);for(;;){const U=o(m);if(U&&U!==D)a(U);else break}}const H=o(m),I=i(m);return a(m),n(null,b,I,H,C,E,Cs(I),x),C&&(C.vnode.el=b.el,Mo(C,b.el)),H},y=(m,b="[",C="]")=>{let E=0;for(;m;)if(m=o(m),m&&or(m)&&(m.data===b&&E++,m.data===C)){if(E===0)return o(m);E--}return m},_=(m,b,C)=>{const E=b.parentNode;E&&E.replaceChild(m,b);let x=C;for(;x;)x.vnode.el===b&&(x.vnode.el=x.subTree.el=m),x=x.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[u,f]}const Fl="data-allow-mismatch",Eg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ss(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Fl);)e=e.parentElement;const n=e&&e.getAttribute(Fl);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(Eg[t])}}Eo().requestIdleCallback;Eo().cancelIdleCallback;function Tg(e,t){if(or(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(or(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Fn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Bl(e){Q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let c=null,u,f=0;const h=()=>(f++,c=null,d()),d=()=>{let p;return c||(p=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,_)=>{l(g,()=>y(h()),()=>_(g),f+1)});throw g}).then(g=>p!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return nt({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(p,g,y){const _=o?()=>{const v=o(y,m=>Tg(p,m));v&&(g.bum||(g.bum=[])).push(v)}:y;u?_():d().then(()=>!g.isUnmounted&&_())},get __asyncResolved(){return u},setup(){const p=Le;if(za(p),u)return()=>li(u,p);const g=m=>{c=null,xr(m,p,13,!r)};if(a&&p.suspense||_r)return d().then(m=>()=>li(m,p)).catch(m=>(g(m),()=>r?q(r,{error:m}):null));const y=Re(!1),_=Re(),v=Re(!!s);return s&&setTimeout(()=>{v.value=!1},s),i!=null&&setTimeout(()=>{if(!y.value&&!_.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),_.value=m}},i),d().then(()=>{y.value=!0,p.parent&&Va(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),_.value=m}),()=>{if(y.value&&u)return li(u,p);if(_.value&&r)return q(r,{error:_.value});if(n&&!v.value)return q(n)}}})}function li(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=q(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Va=e=>e.type.__isKeepAlive;function hf(e,t){pf(e,"a",t)}function df(e,t){pf(e,"da",t)}function pf(e,t,n=Le){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(No(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Va(s.parent.vnode)&&Rg(r,t,n,s),s=s.parent}}function Rg(e,t,n,r){const s=No(t,e,r,!0);gf(()=>{Ia(r[t],s)},n)}function No(e,t,n=Le,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{vn();const a=Gn(n),l=Dt(t,n,e,i);return a(),Cn(),l});return r?s.unshift(o):s.push(o),o}}const Yt=e=>(t,n=Le)=>{(!_r||e==="sp")&&No(e,(...r)=>t(...r),n)},$g=Yt("bm"),qa=Yt("m"),Pg=Yt("bu"),Ng=Yt("u"),Ka=Yt("bum"),gf=Yt("um"),Ig=Yt("sp"),Og=Yt("rtg"),Mg=Yt("rtc");function mf(e,t=Le){No("ec",e,t)}const yf="components";function _n(e,t){return wf(yf,e,!0,t)||e}const _f=Symbol.for("v-ndc");function Lg(e){return Ee(e)?wf(yf,e,!1)||e:e||_f}function wf(e,t,n=!0,r=!1){const s=De||Le;if(s){const o=s.type;{const a=Am(o,!1);if(a&&(a===t||a===yt(t)||a===Ao(yt(t))))return o}const i=jl(s[e]||o[e],t)||jl(s.appContext[e],t);return!i&&r?o:i}}function jl(e,t){return e&&(e[t]||e[yt(t)]||e[Ao(yt(t))])}function er(e,t,n,r){let s;const o=n,i=ee(e);if(i||Ee(e)){const a=i&&Hn(e);let l=!1;a&&(l=!mt(e),e=Ro(e)),s=new Array(e.length);for(let c=0,u=e.length;c<u;c++)s[c]=t(l?qe(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(we(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,o)}}else s=[];return s}function et(e,t,n={},r,s){if(De.ce||De.parent&&Fn(De.parent)&&De.parent.ce)return t!=="default"&&(n.name=t),G(),Ae(xe,null,[q("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),G();const i=o&&bf(o(n)),a=n.key||i&&i.key,l=Ae(xe,{key:(a&&!kt(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function bf(e){return e.some(t=>mr(t)?!(t.type===At||t.type===xe&&!bf(t.children)):!0)?e:null}const Gi=e=>e?qf(e)?Do(e):Gi(e.parent):null,Dr=Je(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=>Gi(e.parent),$root:e=>Gi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Cf(e),$forceUpdate:e=>e.f||(e.f=()=>{Ga(e.update)}),$nextTick:e=>e.n||(e.n=zn.bind(e.proxy)),$watch:e=>rm.bind(e)}),ci=(e,t)=>e!==_e&&!e.__isScriptSetup&&pe(e,t),Dg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let c;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(ci(r,t))return i[t]=1,r[t];if(s!==_e&&pe(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&pe(c,t))return i[t]=3,o[t];if(n!==_e&&pe(n,t))return i[t]=4,n[t];Wi&&(i[t]=0)}}const u=Dr[t];let f,h;if(u)return t==="$attrs"&&Ve(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==_e&&pe(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,pe(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return ci(s,t)?(s[t]=n,!0):r!==_e&&pe(r,t)?(r[t]=n,!0):pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||e!==_e&&pe(e,i)||ci(t,i)||(a=o[0])&&pe(a,i)||pe(r,i)||pe(Dr,i)||pe(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ul(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Hg(e){const t=gs();let n=e();return Ji(),Oa(n)&&(n=n.catch(r=>{throw Gn(t),r})),[n,()=>Gn(t)]}let Wi=!0;function Fg(e){const t=Cf(e),n=e.proxy,r=e.ctx;Wi=!1,t.beforeCreate&&Gl(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:d,updated:p,activated:g,deactivated:y,beforeDestroy:_,beforeUnmount:v,destroyed:m,unmounted:b,render:C,renderTracked:E,renderTriggered:x,errorCaptured:L,serverPrefetch:H,expose:I,inheritAttrs:D,components:U,directives:J,filters:ne}=t;if(c&&Bg(c,r,null),i)for(const Y in i){const V=i[Y];Q(V)&&(r[Y]=V.bind(n))}if(s){const Y=s.call(n,n);we(Y)&&(e.data=mn(Y))}if(Wi=!0,o)for(const Y in o){const V=o[Y],be=Q(V)?V.bind(n,n):Q(V.get)?V.get.bind(n,n):Ot,Jn=!Q(V)&&Q(V.set)?V.set.bind(n):Ot,xn=Pe({get:be,set:Jn});Object.defineProperty(r,Y,{enumerable:!0,configurable:!0,get:()=>xn.value,set:Et=>xn.value=Et})}if(a)for(const Y in a)vf(a[Y],r,n,Y);if(l){const Y=Q(l)?l.call(n):l;Reflect.ownKeys(Y).forEach(V=>{xf(V,Y[V])})}u&&Gl(u,e,"c");function W(Y,V){ee(V)?V.forEach(be=>Y(be.bind(n))):V&&Y(V.bind(n))}if(W($g,f),W(qa,h),W(Pg,d),W(Ng,p),W(hf,g),W(df,y),W(mf,L),W(Mg,E),W(Og,x),W(Ka,v),W(gf,b),W(Ig,H),ee(I))if(I.length){const Y=e.exposed||(e.exposed={});I.forEach(V=>{Object.defineProperty(Y,V,{get:()=>n[V],set:be=>n[V]=be})})}else e.exposed||(e.exposed={});C&&e.render===Ot&&(e.render=C),D!=null&&(e.inheritAttrs=D),U&&(e.components=U),J&&(e.directives=J),H&&za(e)}function Bg(e,t,n=Ot){ee(e)&&(e=zi(e));for(const r in e){const s=e[r];let o;we(s)?"default"in s?o=jn(s.from||r,s.default,!0):o=jn(s.from||r):o=jn(s),Ie(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Gl(e,t,n){Dt(ee(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function vf(e,t,n,r){let s=r.includes(".")?Ff(n,r):()=>n[r];if(Ee(e)){const o=t[e];Q(o)&&hn(s,o)}else if(Q(e))hn(s,e.bind(n));else if(we(e))if(ee(e))e.forEach(o=>vf(o,t,n,r));else{const o=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(o)&&hn(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(c=>Ys(l,c,i,!0)),Ys(l,t,i)),we(t)&&o.set(t,l),l}function Ys(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Ys(e,o,n,!0),s&&s.forEach(i=>Ys(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=jg[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const jg={data:Wl,props:zl,emits:zl,methods:Ir,computed:Ir,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:Ir,directives:Ir,watch:Gg,provide:Wl,inject:Ug};function Wl(e,t){return t?e?function(){return Je(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Ug(e,t){return Ir(zi(e),zi(t))}function zi(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Ir(e,t){return e?Je(Object.create(null),e,t):t}function zl(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Je(Object.create(null),Ul(e),Ul(t??{})):t}function Gg(e,t){if(!e)return t;if(!t)return e;const n=Je(Object.create(null),e);for(const r in t)n[r]=Ye(e[r],t[r]);return n}function Sf(){return{app:null,config:{isNativeTag:Sp,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 Wg=0;function zg(e,t){return function(r,s=null){Q(r)||(r=Je({},r)),s!=null&&!we(s)&&(s=null);const o=Sf(),i=new WeakSet,a=[];let l=!1;const c=o.app={_uid:Wg++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Tm,get config(){return o.config},set config(u){},use(u,...f){return i.has(u)||(u&&Q(u.install)?(i.add(u),u.install(c,...f)):Q(u)&&(i.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,h){if(!l){const d=c._ceVNode||q(r,s);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,u):e(d,u,h),l=!0,c._container=u,u.__vue_app__=c,Do(d.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Dt(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=Bn;Bn=c;try{return u()}finally{Bn=f}}};return c}}let Bn=null;function xf(e,t){if(Le){let n=Le.provides;const r=Le.parent&&Le.parent.provides;r===n&&(n=Le.provides=Object.create(r)),n[e]=t}}function jn(e,t,n=!1){const r=Le||De;if(r||Bn){const s=Bn?Bn._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Q(t)?t.call(r&&r.proxy):t}}function Io(){return!!(Le||De||Bn)}const kf={},Af=()=>Object.create(kf),Ef=e=>Object.getPrototypeOf(e)===kf;function Vg(e,t,n,r=!1){const s={},o=Af();e.propsDefaults=Object.create(null),Tf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:sr(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function qg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=de(s),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(Oo(e.emitsOptions,h))continue;const d=t[h];if(l)if(pe(o,h))d!==o[h]&&(o[h]=d,c=!0);else{const p=yt(h);s[p]=Vi(l,a,p,d,e,!1)}else d!==o[h]&&(o[h]=d,c=!0)}}}else{Tf(e,t,s,o)&&(c=!0);let u;for(const f in a)(!t||!pe(t,f)&&((u=bn(f))===f||!pe(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=Vi(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!pe(t,f))&&(delete o[f],c=!0)}c&&qt(e.attrs,"set","")}function Tf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(cr(l))continue;const c=t[l];let u;s&&pe(s,u=yt(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:Oo(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(o){const l=de(n),c=a||_e;for(let u=0;u<o.length;u++){const f=o[u];n[f]=Vi(s,l,f,c[f],e,!pe(c,f))}}return i}function Vi(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=pe(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Q(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=Gn(s);r=c[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===bn(n))&&(r=!0))}return r}const Kg=new WeakMap;function Rf(e,t,n=!1){const r=n?Kg:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!Q(e)){const u=f=>{l=!0;const[h,d]=Rf(f,t,!0);Je(i,h),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return we(e)&&r.set(e,ar),ar;if(ee(o))for(let u=0;u<o.length;u++){const f=yt(o[u]);Vl(f)&&(i[f]=_e)}else if(o)for(const u in o){const f=yt(u);if(Vl(f)){const h=o[u],d=i[f]=ee(h)||Q(h)?{type:h}:Je({},h),p=d.type;let g=!1,y=!0;if(ee(p))for(let _=0;_<p.length;++_){const v=p[_],m=Q(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=Q(p)&&p.name==="Boolean";d[0]=g,d[1]=y,(g||pe(d,"default"))&&a.push(f)}}const c=[i,a];return we(e)&&r.set(e,c),c}function Vl(e){return e[0]!=="$"&&!cr(e)}const $f=e=>e[0]==="_"||e==="$stable",Ja=e=>ee(e)?e.map(ct):[ct(e)],Jg=(e,t,n)=>{if(t._n)return t;const r=ie((...s)=>Ja(t(...s)),n);return r._c=!1,r},Pf=(e,t,n)=>{const r=e._ctx;for(const s in e){if($f(s))continue;const o=e[s];if(Q(o))t[s]=Jg(s,o,r);else if(o!=null){const i=Ja(o);t[s]=()=>i}}},Nf=(e,t)=>{const n=Ja(t);e.slots.default=()=>n},If=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Xg=(e,t,n)=>{const r=e.slots=Af();if(e.vnode.shapeFlag&32){const s=t._;s?(If(r,t,n),n&&Fu(r,"_",s,!0)):Pf(t,r)}else t&&Nf(e,t)},Yg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=_e;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:If(s,t,n):(o=!t.$stable,Pf(t,s)),i=t}else t&&(Nf(e,t),i={default:1});if(o)for(const a in s)!$f(a)&&i[a]==null&&delete s[a]},lt=Gf;function Zg(e){return Of(e)}function Qg(e){return Of(e,Ag)}function Of(e,t){const n=Eo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:d=Ot,insertStaticContent:p}=e,g=(w,S,A,$=null,T=null,R=null,j=void 0,B=null,F=!!S.dynamicChildren)=>{if(w===S)return;w&&!on(w,S)&&($=_s(w),Et(w,T,R,!0),w=null),S.patchFlag===-2&&(F=!1,S.dynamicChildren=null);const{type:P,ref:Z,shapeFlag:z}=S;switch(P){case Un:y(w,S,A,$);break;case At:_(w,S,A,$);break;case Hr:w==null&&v(S,A,$,j);break;case xe:U(w,S,A,$,T,R,j,B,F);break;default:z&1?C(w,S,A,$,T,R,j,B,F):z&6?J(w,S,A,$,T,R,j,B,F):(z&64||z&128)&&P.process(w,S,A,$,T,R,j,B,F,Xn)}Z!=null&&T&&Qr(Z,w&&w.ref,R,S||w,!S)},y=(w,S,A,$)=>{if(w==null)r(S.el=a(S.children),A,$);else{const T=S.el=w.el;S.children!==w.children&&c(T,S.children)}},_=(w,S,A,$)=>{w==null?r(S.el=l(S.children||""),A,$):S.el=w.el},v=(w,S,A,$)=>{[w.el,w.anchor]=p(w.children,S,A,$,w.el,w.anchor)},m=({el:w,anchor:S},A,$)=>{let T;for(;w&&w!==S;)T=h(w),r(w,A,$),w=T;r(S,A,$)},b=({el:w,anchor:S})=>{let A;for(;w&&w!==S;)A=h(w),s(w),w=A;s(S)},C=(w,S,A,$,T,R,j,B,F)=>{S.type==="svg"?j="svg":S.type==="math"&&(j="mathml"),w==null?E(S,A,$,T,R,j,B,F):H(w,S,T,R,j,B,F)},E=(w,S,A,$,T,R,j,B)=>{let F,P;const{props:Z,shapeFlag:z,transition:X,dirs:re}=w;if(F=w.el=i(w.type,R,Z&&Z.is,Z),z&8?u(F,w.children):z&16&&L(w.children,F,null,$,T,ui(w,R),j,B),re&&Nt(w,null,$,"created"),x(F,w,w.scopeId,j,$),Z){for(const ve in Z)ve!=="value"&&!cr(ve)&&o(F,ve,null,Z[ve],R,$);"value"in Z&&o(F,"value",null,Z.value,R),(P=Z.onVnodeBeforeMount)&&ft(P,$,w)}re&&Nt(w,null,$,"beforeMount");const ue=Mf(T,X);ue&&X.beforeEnter(F),r(F,S,A),((P=Z&&Z.onVnodeMounted)||ue||re)&&lt(()=>{P&&ft(P,$,w),ue&&X.enter(F),re&&Nt(w,null,$,"mounted")},T)},x=(w,S,A,$,T)=>{if(A&&d(w,A),$)for(let R=0;R<$.length;R++)d(w,$[R]);if(T){let R=T.subTree;if(S===R||jf(R.type)&&(R.ssContent===S||R.ssFallback===S)){const j=T.vnode;x(w,j,j.scopeId,j.slotScopeIds,T.parent)}}},L=(w,S,A,$,T,R,j,B,F=0)=>{for(let P=F;P<w.length;P++){const Z=w[P]=B?rn(w[P]):ct(w[P]);g(null,Z,S,A,$,T,R,j,B)}},H=(w,S,A,$,T,R,j)=>{const B=S.el=w.el;let{patchFlag:F,dynamicChildren:P,dirs:Z}=S;F|=w.patchFlag&16;const z=w.props||_e,X=S.props||_e;let re;if(A&&An(A,!1),(re=X.onVnodeBeforeUpdate)&&ft(re,A,S,w),Z&&Nt(S,w,A,"beforeUpdate"),A&&An(A,!0),(z.innerHTML&&X.innerHTML==null||z.textContent&&X.textContent==null)&&u(B,""),P?I(w.dynamicChildren,P,B,A,$,ui(S,T),R):j||V(w,S,B,null,A,$,ui(S,T),R,!1),F>0){if(F&16)D(B,z,X,A,T);else if(F&2&&z.class!==X.class&&o(B,"class",null,X.class,T),F&4&&o(B,"style",z.style,X.style,T),F&8){const ue=S.dynamicProps;for(let ve=0;ve<ue.length;ve++){const ge=ue[ve],st=z[ge],Ue=X[ge];(Ue!==st||ge==="value")&&o(B,ge,st,Ue,T,A)}}F&1&&w.children!==S.children&&u(B,S.children)}else!j&&P==null&&D(B,z,X,A,T);((re=X.onVnodeUpdated)||Z)&&lt(()=>{re&&ft(re,A,S,w),Z&&Nt(S,w,A,"updated")},$)},I=(w,S,A,$,T,R,j)=>{for(let B=0;B<S.length;B++){const F=w[B],P=S[B],Z=F.el&&(F.type===xe||!on(F,P)||F.shapeFlag&70)?f(F.el):A;g(F,P,Z,null,$,T,R,j,!0)}},D=(w,S,A,$,T)=>{if(S!==A){if(S!==_e)for(const R in S)!cr(R)&&!(R in A)&&o(w,R,S[R],null,T,$);for(const R in A){if(cr(R))continue;const j=A[R],B=S[R];j!==B&&R!=="value"&&o(w,R,B,j,T,$)}"value"in A&&o(w,"value",S.value,A.value,T)}},U=(w,S,A,$,T,R,j,B,F)=>{const P=S.el=w?w.el:a(""),Z=S.anchor=w?w.anchor:a("");let{patchFlag:z,dynamicChildren:X,slotScopeIds:re}=S;re&&(B=B?B.concat(re):re),w==null?(r(P,A,$),r(Z,A,$),L(S.children||[],A,Z,T,R,j,B,F)):z>0&&z&64&&X&&w.dynamicChildren?(I(w.dynamicChildren,X,A,T,R,j,B),(S.key!=null||T&&S===T.subTree)&&Lf(w,S,!0)):V(w,S,A,Z,T,R,j,B,F)},J=(w,S,A,$,T,R,j,B,F)=>{S.slotScopeIds=B,w==null?S.shapeFlag&512?T.ctx.activate(S,A,$,j,F):ne(S,A,$,T,R,j,F):he(w,S,F)},ne=(w,S,A,$,T,R,j)=>{const B=w.component=vm(w,$,T);if(Va(w)&&(B.ctx.renderer=Xn),Cm(B,!1,j),B.asyncDep){if(T&&T.registerDep(B,W,j),!w.el){const F=B.subTree=q(At);_(null,F,S,A)}}else W(B,w,S,A,T,R,j)},he=(w,S,A)=>{const $=S.component=w.component;if(cm(w,S,A))if($.asyncDep&&!$.asyncResolved){Y($,S,A);return}else $.next=S,$.update();else S.el=w.el,$.vnode=S},W=(w,S,A,$,T,R,j)=>{const B=()=>{if(w.isMounted){let{next:z,bu:X,u:re,parent:ue,vnode:ve}=w;{const ot=Df(w);if(ot){z&&(z.el=ve.el,Y(w,z,j)),ot.asyncDep.then(()=>{w.isUnmounted||B()});return}}let ge=z,st;An(w,!1),z?(z.el=ve.el,Y(w,z,j)):z=ve,X&&Ls(X),(st=z.props&&z.props.onVnodeBeforeUpdate)&&ft(st,ue,z,ve),An(w,!0);const Ue=fi(w),_t=w.subTree;w.subTree=Ue,g(_t,Ue,f(_t.el),_s(_t),w,T,R),z.el=Ue.el,ge===null&&Mo(w,Ue.el),re&&lt(re,T),(st=z.props&&z.props.onVnodeUpdated)&&lt(()=>ft(st,ue,z,ve),T)}else{let z;const{el:X,props:re}=S,{bm:ue,m:ve,parent:ge,root:st,type:Ue}=w,_t=Fn(S);if(An(w,!1),ue&&Ls(ue),!_t&&(z=re&&re.onVnodeBeforeMount)&&ft(z,ge,S),An(w,!0),X&&ei){const ot=()=>{w.subTree=fi(w),ei(X,w.subTree,w,T,null)};_t&&Ue.__asyncHydrate?Ue.__asyncHydrate(X,w,ot):ot()}else{st.ce&&st.ce._injectChildStyle(Ue);const ot=w.subTree=fi(w);g(null,ot,A,$,w,T,R),S.el=ot.el}if(ve&&lt(ve,T),!_t&&(z=re&&re.onVnodeMounted)){const ot=S;lt(()=>ft(z,ge,ot),T)}(S.shapeFlag&256||ge&&Fn(ge.vnode)&&ge.vnode.shapeFlag&256)&&w.a&&lt(w.a,T),w.isMounted=!0,S=A=$=null}};w.scope.on();const F=w.effect=new zu(B);w.scope.off();const P=w.update=F.run.bind(F),Z=w.job=F.runIfDirty.bind(F);Z.i=w,Z.id=w.uid,F.scheduler=()=>Ga(Z),An(w,!0),P()},Y=(w,S,A)=>{S.component=w;const $=w.vnode.props;w.vnode=S,w.next=null,qg(w,S.props,$,A),Yg(w,S.children,A),vn(),Dl(w),Cn()},V=(w,S,A,$,T,R,j,B,F=!1)=>{const P=w&&w.children,Z=w?w.shapeFlag:0,z=S.children,{patchFlag:X,shapeFlag:re}=S;if(X>0){if(X&128){Jn(P,z,A,$,T,R,j,B,F);return}else if(X&256){be(P,z,A,$,T,R,j,B,F);return}}re&8?(Z&16&&Er(P,T,R),z!==P&&u(A,z)):Z&16?re&16?Jn(P,z,A,$,T,R,j,B,F):Er(P,T,R,!0):(Z&8&&u(A,""),re&16&&L(z,A,$,T,R,j,B,F))},be=(w,S,A,$,T,R,j,B,F)=>{w=w||ar,S=S||ar;const P=w.length,Z=S.length,z=Math.min(P,Z);let X;for(X=0;X<z;X++){const re=S[X]=F?rn(S[X]):ct(S[X]);g(w[X],re,A,null,T,R,j,B,F)}P>Z?Er(w,T,R,!0,!1,z):L(S,A,$,T,R,j,B,F,z)},Jn=(w,S,A,$,T,R,j,B,F)=>{let P=0;const Z=S.length;let z=w.length-1,X=Z-1;for(;P<=z&&P<=X;){const re=w[P],ue=S[P]=F?rn(S[P]):ct(S[P]);if(on(re,ue))g(re,ue,A,null,T,R,j,B,F);else break;P++}for(;P<=z&&P<=X;){const re=w[z],ue=S[X]=F?rn(S[X]):ct(S[X]);if(on(re,ue))g(re,ue,A,null,T,R,j,B,F);else break;z--,X--}if(P>z){if(P<=X){const re=X+1,ue=re<Z?S[re].el:$;for(;P<=X;)g(null,S[P]=F?rn(S[P]):ct(S[P]),A,ue,T,R,j,B,F),P++}}else if(P>X)for(;P<=z;)Et(w[P],T,R,!0),P++;else{const re=P,ue=P,ve=new Map;for(P=ue;P<=X;P++){const it=S[P]=F?rn(S[P]):ct(S[P]);it.key!=null&&ve.set(it.key,P)}let ge,st=0;const Ue=X-ue+1;let _t=!1,ot=0;const Tr=new Array(Ue);for(P=0;P<Ue;P++)Tr[P]=0;for(P=re;P<=z;P++){const it=w[P];if(st>=Ue){Et(it,T,R,!0);continue}let Tt;if(it.key!=null)Tt=ve.get(it.key);else for(ge=ue;ge<=X;ge++)if(Tr[ge-ue]===0&&on(it,S[ge])){Tt=ge;break}Tt===void 0?Et(it,T,R,!0):(Tr[Tt-ue]=P+1,Tt>=ot?ot=Tt:_t=!0,g(it,S[Tt],A,null,T,R,j,B,F),st++)}const Rl=_t?em(Tr):ar;for(ge=Rl.length-1,P=Ue-1;P>=0;P--){const it=ue+P,Tt=S[it],$l=it+1<Z?S[it+1].el:$;Tr[P]===0?g(null,Tt,A,$l,T,R,j,B,F):_t&&(ge<0||P!==Rl[ge]?xn(Tt,A,$l,2):ge--)}}},xn=(w,S,A,$,T=null)=>{const{el:R,type:j,transition:B,children:F,shapeFlag:P}=w;if(P&6){xn(w.component.subTree,S,A,$);return}if(P&128){w.suspense.move(S,A,$);return}if(P&64){j.move(w,S,A,Xn);return}if(j===xe){r(R,S,A);for(let z=0;z<F.length;z++)xn(F[z],S,A,$);r(w.anchor,S,A);return}if(j===Hr){m(w,S,A);return}if($!==2&&P&1&&B)if($===0)B.beforeEnter(R),r(R,S,A),lt(()=>B.enter(R),T);else{const{leave:z,delayLeave:X,afterLeave:re}=B,ue=()=>r(R,S,A),ve=()=>{z(R,()=>{ue(),re&&re()})};X?X(R,ue,ve):ve()}else r(R,S,A)},Et=(w,S,A,$=!1,T=!1)=>{const{type:R,props:j,ref:B,children:F,dynamicChildren:P,shapeFlag:Z,patchFlag:z,dirs:X,cacheIndex:re}=w;if(z===-2&&(T=!1),B!=null&&Qr(B,null,A,w,!0),re!=null&&(S.renderCache[re]=void 0),Z&256){S.ctx.deactivate(w);return}const ue=Z&1&&X,ve=!Fn(w);let ge;if(ve&&(ge=j&&j.onVnodeBeforeUnmount)&&ft(ge,S,w),Z&6)_p(w.component,A,$);else{if(Z&128){w.suspense.unmount(A,$);return}ue&&Nt(w,null,S,"beforeUnmount"),Z&64?w.type.remove(w,S,A,Xn,$):P&&!P.hasOnce&&(R!==xe||z>0&&z&64)?Er(P,S,A,!1,!0):(R===xe&&z&384||!T&&Z&16)&&Er(F,S,A),$&&El(w)}(ve&&(ge=j&&j.onVnodeUnmounted)||ue)&&lt(()=>{ge&&ft(ge,S,w),ue&&Nt(w,null,S,"unmounted")},A)},El=w=>{const{type:S,el:A,anchor:$,transition:T}=w;if(S===xe){yp(A,$);return}if(S===Hr){b(w);return}const R=()=>{s(A),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(w.shapeFlag&1&&T&&!T.persisted){const{leave:j,delayLeave:B}=T,F=()=>j(A,R);B?B(w.el,R,F):F()}else R()},yp=(w,S)=>{let A;for(;w!==S;)A=h(w),s(w),w=A;s(S)},_p=(w,S,A)=>{const{bum:$,scope:T,job:R,subTree:j,um:B,m:F,a:P}=w;ql(F),ql(P),$&&Ls($),T.stop(),R&&(R.flags|=8,Et(j,w,S,A)),B&&lt(B,S),lt(()=>{w.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve())},Er=(w,S,A,$=!1,T=!1,R=0)=>{for(let j=R;j<w.length;j++)Et(w[j],S,A,$,T)},_s=w=>{if(w.shapeFlag&6)return _s(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const S=h(w.anchor||w.el),A=S&&S[Cg];return A?h(A):S};let Zo=!1;const Tl=(w,S,A)=>{w==null?S._vnode&&Et(S._vnode,null,null,!0):g(S._vnode||null,w,S,null,null,null,A),S._vnode=w,Zo||(Zo=!0,Dl(),Js(),Zo=!1)},Xn={p:g,um:Et,m:xn,r:El,mt:ne,mc:L,pc:V,pbc:I,n:_s,o:e};let Qo,ei;return t&&([Qo,ei]=t(Xn)),{render:Tl,hydrate:Qo,createApp:zg(Tl,Qo)}}function ui({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function An({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Lf(e,t,n=!1){const r=e.children,s=t.children;if(ee(r)&&ee(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]=rn(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Lf(i,a)),a.type===Un&&(a.el=i.el)}}function em(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<c?o=a+1:i=a;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Df(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Df(t)}function ql(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const tm=Symbol.for("v-scx"),nm=()=>jn(tm);function Hf(e,t){return Xa(e,null,t)}function hn(e,t,n){return Xa(e,t,n)}function Xa(e,t,n=_e){const{immediate:r,deep:s,flush:o,once:i}=n,a=Je({},n),l=t&&r||!t&&o!=="post";let c;if(_r){if(o==="sync"){const d=nm();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Ot,d.resume=Ot,d.pause=Ot,d}}const u=Le;a.call=(d,p,g)=>Dt(d,u,p,g);let f=!1;o==="post"?a.scheduler=d=>{lt(d,u&&u.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(d,p)=>{p?d():Ga(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const h=gg(e,t,a);return _r&&(c?c.push(h):l&&h()),h}function rm(e,t,n){const r=this.proxy,s=Ee(e)?e.includes(".")?Ff(r,e):()=>r[e]:e.bind(r,r);let o;Q(t)?o=t:(o=t.handler,n=t);const i=Gn(this),a=Xa(s,o.bind(r),n);return i(),a}function Ff(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const sm=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${yt(t)}Modifiers`]||e[`${bn(t)}Modifiers`];function om(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||_e;let s=n;const o=t.startsWith("update:"),i=o&&sm(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>Ee(u)?u.trim():u)),i.number&&(s=n.map(Tp)));let a,l=r[a=ri(t)]||r[a=ri(yt(t))];!l&&o&&(l=r[a=ri(bn(t))]),l&&Dt(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Dt(c,e,6,s)}}function Bf(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!Q(e)){const l=c=>{const u=Bf(c,t,!0);u&&(a=!0,Je(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(we(e)&&r.set(e,null),null):(ee(o)?o.forEach(l=>i[l]=null):Je(i,o),we(e)&&r.set(e,i),i)}function Oo(e,t){return!e||!hs(t)?!1:(t=t.slice(2).replace(/Once$/,""),pe(e,t[0].toLowerCase()+t.slice(1))||pe(e,bn(t))||pe(e,t))}function fi(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:h,setupState:d,ctx:p,inheritAttrs:g}=e,y=Xs(e);let _,v;try{if(n.shapeFlag&4){const b=s||r,C=b;_=ct(c.call(C,b,u,f,d,h,p)),v=a}else{const b=t;_=ct(b.length>1?b(f,{attrs:a,slots:i,emit:l}):b(f,null)),v=t.props?a:am(a)}}catch(b){Fr.length=0,xr(b,e,1),_=q(At)}let m=_;if(v&&g!==!1){const b=Object.keys(v),{shapeFlag:C}=m;b.length&&C&7&&(o&&b.some(Na)&&(v=lm(v,o)),m=yr(m,v,!1,!0))}return n.dirs&&(m=yr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Wa(m,n.transition),_=m,Xs(y),_}function im(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(mr(s)){if(s.type!==At||s.children==="v-if"){if(n)return;n=s}}else return}return n}const am=e=>{let t;for(const n in e)(n==="class"||n==="style"||hs(n))&&((t||(t={}))[n]=e[n]);return t},lm=(e,t)=>{const n={};for(const r in e)(!Na(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function cm(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Kl(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(i[h]!==r[h]&&!Oo(c,h))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Kl(r,i,c):!0:!!i;return!1}function Kl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!Oo(n,o))return!0}return!1}function Mo({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const jf=e=>e.__isSuspense;let qi=0;const um={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,c){if(e==null)hm(t,n,r,s,o,i,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}dm(e,t,n,r,s,i,a,l,c)}},hydrate:pm,normalize:gm},fm=um;function es(e,t){const n=e.props&&e.props[t];Q(n)&&n()}function hm(e,t,n,r,s,o,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),h=e.suspense=Uf(e,s,r,t,f,n,o,i,a,l);c(null,h.pendingBranch=e.ssContent,f,null,r,h,o,i),h.deps>0?(es(e,"onPending"),es(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,i),fr(h,e.ssFallback)):h.resolve(!1,!0)}function dm(e,t,n,r,s,o,i,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:y,isHydrating:_}=f;if(g)f.pendingBranch=h,on(h,g)?(l(g,h,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():y&&(_||(l(p,d,n,r,s,null,o,i,a),fr(f,d)))):(f.pendingId=qi++,_?(f.isHydrating=!1,f.activeBranch=g):c(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),y?(l(null,h,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(l(p,d,n,r,s,null,o,i,a),fr(f,d))):p&&on(h,p)?(l(p,h,n,r,s,f,o,i,a),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0&&f.resolve()));else if(p&&on(h,p))l(p,h,n,r,s,f,o,i,a),fr(f,h);else if(es(t,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=qi++,l(null,h,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:m}=f;v>0?setTimeout(()=>{f.pendingId===m&&f.fallback(d)},v):v===0&&f.fallback(d)}}function Uf(e,t,n,r,s,o,i,a,l,c,u=!1){const{p:f,m:h,um:d,n:p,o:{parentNode:g,remove:y}}=c;let _;const v=mm(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const m=e.props?Rp(e.props.timeout):void 0,b=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:qi++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1,x=!1){const{vnode:L,activeBranch:H,pendingBranch:I,pendingId:D,effects:U,parentComponent:J,container:ne}=C;let he=!1;C.isHydrating?C.isHydrating=!1:E||(he=H&&I.transition&&I.transition.mode==="out-in",he&&(H.transition.afterLeave=()=>{D===C.pendingId&&(h(I,ne,o===b?p(H):o,0),Ui(U))}),H&&(g(H.el)===ne&&(o=p(H)),d(H,J,C,!0)),he||h(I,ne,o,0)),fr(C,I),C.pendingBranch=null,C.isInFallback=!1;let W=C.parent,Y=!1;for(;W;){if(W.pendingBranch){W.effects.push(...U),Y=!0;break}W=W.parent}!Y&&!he&&Ui(U),C.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),es(L,"onResolve")},fallback(E){if(!C.pendingBranch)return;const{vnode:x,activeBranch:L,parentComponent:H,container:I,namespace:D}=C;es(x,"onFallback");const U=p(L),J=()=>{C.isInFallback&&(f(null,E,I,U,H,null,D,a,l),fr(C,E))},ne=E.transition&&E.transition.mode==="out-in";ne&&(L.transition.afterLeave=J),C.isInFallback=!0,d(L,H,null,!0),ne||J()},move(E,x,L){C.activeBranch&&h(C.activeBranch,E,x,L),C.container=E},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(E,x,L){const H=!!C.pendingBranch;H&&C.deps++;const I=E.vnode.el;E.asyncDep.catch(D=>{xr(D,E,0)}).then(D=>{if(E.isUnmounted||C.isUnmounted||C.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:U}=E;Xi(E,D),I&&(U.el=I);const J=!I&&E.subTree.el;x(E,U,g(I||E.subTree.el),I?null:p(E.subTree),C,i,L),J&&y(J),Mo(E,U.el),H&&--C.deps===0&&C.resolve()})},unmount(E,x){C.isUnmounted=!0,C.activeBranch&&d(C.activeBranch,n,E,x),C.pendingBranch&&d(C.pendingBranch,n,E,x)}};return C}function pm(e,t,n,r,s,o,i,a,l){const c=t.suspense=Uf(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,i);return c.deps===0&&c.resolve(!1,!0),u}function gm(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Jl(r?n.default:n),e.ssFallback=r?Jl(n.fallback):q(At)}function Jl(e){let t;if(Q(e)){const n=gr&&e._c;n&&(e._d=!1,G()),e=e(),n&&(e._d=!0,t=tt,Wf())}return ee(e)&&(e=im(e)),e=ct(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Gf(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):Ui(e)}function fr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Mo(r,s))}function mm(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const xe=Symbol.for("v-fgt"),Un=Symbol.for("v-txt"),At=Symbol.for("v-cmt"),Hr=Symbol.for("v-stc"),Fr=[];let tt=null;function G(e=!1){Fr.push(tt=e?null:[])}function Wf(){Fr.pop(),tt=Fr[Fr.length-1]||null}let gr=1;function Xl(e,t=!1){gr+=e,e<0&&tt&&t&&(tt.hasOnce=!0)}function zf(e){return e.dynamicChildren=gr>0?tt||ar:null,Wf(),gr>0&&tt&&tt.push(e),e}function te(e,t,n,r,s,o){return zf(M(e,t,n,r,s,o,!0))}function Ae(e,t,n,r,s){return zf(q(e,t,n,r,s,!0))}function mr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const Vf=({key:e})=>e??null,Ds=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ee(e)||Ie(e)||Q(e)?{i:De,r:e,k:t,f:!!n}:e:null);function M(e,t=null,n=null,r=0,s=null,o=e===xe?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vf(t),ref:t&&Ds(t),scopeId:Po,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:De};return a?(Za(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Ee(n)?8:16),gr>0&&!i&&tt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&tt.push(l),l}const q=ym;function ym(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===_f)&&(e=At),mr(e)){const a=yr(e,t,!0);return n&&Za(a,n),gr>0&&!o&&tt&&(a.shapeFlag&6?tt[tt.indexOf(e)]=a:tt.push(a)),a.patchFlag=-2,a}if(Em(e)&&(e=e.__vccOpts),t){t=Ya(t);let{class:a,style:l}=t;a&&!Ee(a)&&(t.class=Ne(a)),we(l)&&(Ua(l)&&!ee(l)&&(l=Je({},l)),t.style=Ln(l))}const i=Ee(e)?1:jf(e)?128:Sg(e)?64:we(e)?4:Q(e)?2:0;return M(e,t,n,r,s,i,o,!0)}function Ya(e){return e?Ua(e)||Ef(e)?Je({},e):e:null}function yr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?Lo(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Vf(c),ref:t&&t.ref?n&&o?ee(o)?o.concat(Ds(t)):[o,Ds(t)]:Ds(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!==xe?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&&yr(e.ssContent),ssFallback:e.ssFallback&&yr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Wa(u,l.clone(u)),u}function ce(e=" ",t=0){return q(Un,null,e,t)}function _m(e,t){const n=q(Hr,null,e);return n.staticCount=t,n}function je(e="",t=!1){return t?(G(),Ae(At,null,e)):q(At,null,e)}function ct(e){return e==null||typeof e=="boolean"?q(At):ee(e)?q(xe,null,e.slice()):mr(e)?rn(e):q(Un,null,String(e))}function rn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yr(e)}function Za(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Za(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ef(t)?t._ctx=De:s===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:De},n=32):(t=String(t),r&64?(n=16,t=[ce(t)]):n=8);e.children=t,e.shapeFlag|=n}function Lo(...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=Ne([t.class,r.class]));else if(s==="style")t.style=Ln([t.style,r.style]);else if(hs(s)){const o=t[s],i=r[s];i&&o!==i&&!(ee(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function ft(e,t,n,r=null){Dt(e,t,7,[n,r])}const wm=Sf();let bm=0;function vm(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||wm,o={uid:bm++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Rf(r,s),emitsOptions:Bf(r,s),emit:null,emitted:null,propsDefaults:_e,inheritAttrs:r.inheritAttrs,ctx:_e,data:_e,props:_e,attrs:_e,slots:_e,refs:_e,setupState:_e,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=om.bind(null,o),e.ce&&e.ce(o),o}let Le=null;const gs=()=>Le||De;let Zs,Ki;{const e=Eo(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Zs=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),Ki=t("__VUE_SSR_SETTERS__",n=>_r=n)}const Gn=e=>{const t=Le;return Zs(e),e.scope.on(),()=>{e.scope.off(),Zs(t)}},Ji=()=>{Le&&Le.scope.off(),Zs(null)};function qf(e){return e.vnode.shapeFlag&4}let _r=!1;function Cm(e,t=!1,n=!1){t&&Ki(t);const{props:r,children:s}=e.vnode,o=qf(e);Vg(e,r,o,t),Xg(e,s,n);const i=o?Sm(e,t):void 0;return t&&Ki(!1),i}function Sm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dg);const{setup:r}=n;if(r){vn();const s=e.setupContext=r.length>1?km(e):null,o=Gn(e),i=ps(r,e,0,[e.props,s]),a=Oa(i);if(Cn(),o(),(a||e.sp)&&!Fn(e)&&za(e),a){if(i.then(Ji,Ji),t)return i.then(l=>{Xi(e,l)}).catch(l=>{xr(l,e,0)});e.asyncDep=i}else Xi(e,i)}else Kf(e)}function Xi(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:we(t)&&(e.setupState=af(t)),Kf(e)}function Kf(e,t,n){const r=e.type;e.render||(e.render=r.render||Ot);{const s=Gn(e);vn();try{Fg(e)}finally{Cn(),s()}}}const xm={get(e,t){return Ve(e,"get",""),e[t]}};function km(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xm),slots:e.slots,emit:e.emit,expose:t}}function Do(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(af(sg(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Dr)return Dr[n](e)},has(t,n){return n in t||n in Dr}})):e.proxy}function Am(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Em(e){return Q(e)&&"__vccOpts"in e}const Pe=(e,t)=>dg(e,t,_r);function Qs(e,t,n){const r=arguments.length;return r===2?we(t)&&!ee(t)?mr(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&mr(n)&&(n=[n]),q(e,t,n))}const Tm="3.5.13";/**
16
- * @vue/runtime-dom v3.5.13
17
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
18
- * @license MIT
19
- **/let Yi;const Yl=typeof window<"u"&&window.trustedTypes;if(Yl)try{Yi=Yl.createPolicy("vue",{createHTML:e=>e})}catch{}const Jf=Yi?e=>Yi.createHTML(e):e=>e,Rm="http://www.w3.org/2000/svg",$m="http://www.w3.org/1998/Math/MathML",Gt=typeof document<"u"?document:null,Zl=Gt&&Gt.createElement("template"),Pm={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Gt.createElementNS(Rm,e):t==="mathml"?Gt.createElementNS($m,e):n?Gt.createElement(e,{is:n}):Gt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Gt.createTextNode(e),createComment:e=>Gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Zl.innerHTML=Jf(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Zl.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Nm=Symbol("_vtc");function Im(e,t,n){const r=e[Nm];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ql=Symbol("_vod"),Om=Symbol("_vsh"),Mm=Symbol(""),Lm=/(^|;)\s*display\s*:/;function Dm(e,t,n){const r=e.style,s=Ee(n);let o=!1;if(n&&!s){if(t)if(Ee(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Hs(r,a,"")}else for(const i in t)n[i]==null&&Hs(r,i,"");for(const i in n)i==="display"&&(o=!0),Hs(r,i,n[i])}else if(s){if(t!==n){const i=r[Mm];i&&(n+=";"+i),r.cssText=n,o=Lm.test(n)}}else t&&e.removeAttribute("style");Ql in e&&(e[Ql]=o?r.display:"",e[Om]&&(r.display="none"))}const ec=/\s*!important$/;function Hs(e,t,n){if(ee(n))n.forEach(r=>Hs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Hm(e,t);ec.test(n)?e.setProperty(bn(r),n.replace(ec,""),"important"):e[r]=n}}const tc=["Webkit","Moz","ms"],hi={};function Hm(e,t){const n=hi[t];if(n)return n;let r=yt(t);if(r!=="filter"&&r in e)return hi[t]=r;r=Ao(r);for(let s=0;s<tc.length;s++){const o=tc[s]+r;if(o in e)return hi[t]=o}return t}const nc="http://www.w3.org/1999/xlink";function rc(e,t,n,r,s,o=Mp(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(nc,t.slice(6,t.length)):e.setAttributeNS(nc,t,n):n==null||o&&!ju(n)?e.removeAttribute(t):e.setAttribute(t,o?"":kt(n)?String(n):n)}function sc(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Jf(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ju(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function Xf(e,t,n,r){e.addEventListener(t,n,r)}function Fm(e,t,n,r){e.removeEventListener(t,n,r)}const oc=Symbol("_vei");function Bm(e,t,n,r,s=null){const o=e[oc]||(e[oc]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=jm(t);if(r){const c=o[t]=Wm(r,s);Xf(e,a,c,l)}else i&&(Fm(e,a,i,l),o[t]=void 0)}}const ic=/(?:Once|Passive|Capture)$/;function jm(e){let t;if(ic.test(e)){t={};let r;for(;r=e.match(ic);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):bn(e.slice(2)),t]}let di=0;const Um=Promise.resolve(),Gm=()=>di||(Um.then(()=>di=0),di=Date.now());function Wm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Dt(zm(r,n.value),t,5,[r])};return n.value=e,n.attached=Gm(),n}function zm(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const ac=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?Im(e,r,i):t==="style"?Dm(e,n,r):hs(t)?Na(t)||Bm(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qm(e,t,r,i))?(sc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rc(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ee(r))?sc(e,yt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),rc(e,t,r,i))};function qm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ac(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ac(t)&&Ee(n)?!1:t in e}const lc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Ls(t,n):t},pi=Symbol("_assign"),Km={created(e,{value:t},n){e.checked=zs(t,n.props.value),e[pi]=lc(n),Xf(e,"change",()=>{e[pi](Jm(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[pi]=lc(r),t!==n&&(e.checked=zs(t,r.props.value))}};function Jm(e){return"_value"in e?e._value:e.value}const Xm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ym=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=bn(s.key);if(t.some(i=>i===o||Xm[i]===o))return e(s)})},Yf=Je({patchProp:Vm},Pm);let Br,cc=!1;function Zm(){return Br||(Br=Zg(Yf))}function Qm(){return Br=cc?Br:Qg(Yf),cc=!0,Br}const Zf=(...e)=>{const t=Zm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=eh(r);if(!s)return;const o=t._component;!Q(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Qf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},ey=(...e)=>{const t=Qm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=eh(r);if(s)return n(s,!0,Qf(s))},t};function Qf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function eh(e){return Ee(e)?document.querySelector(e):e}const ty=/"(?:_|\\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*:/,ny=/"(?: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*:/,ry=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function sy(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){oy(e);return}return t}function oy(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function eo(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!ry.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ty.test(e)||ny.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,sy)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const iy=/#/g,ay=/&/g,ly=/\//g,cy=/=/g,Qa=/\+/g,uy=/%5e/gi,fy=/%60/gi,hy=/%7c/gi,dy=/%20/gi;function py(e){return encodeURI(""+e).replace(hy,"|")}function Zi(e){return py(typeof e=="string"?e:JSON.stringify(e)).replace(Qa,"%2B").replace(dy,"+").replace(iy,"%23").replace(ay,"%26").replace(fy,"`").replace(uy,"^").replace(ly,"%2F")}function gi(e){return Zi(e).replace(cy,"%3D")}function to(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function gy(e){return to(e.replace(Qa," "))}function my(e){return to(e.replace(Qa," "))}function Ho(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=gy(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=my(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 yy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${gi(e)}=${Zi(n)}`).join("&"):`${gi(e)}=${Zi(t)}`:gi(e)}function th(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>yy(t,e[t])).filter(Boolean).join("&")}const _y=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,wy=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,by=/^([/\\]\s*){2,}[^/\\]/,vy=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Cy=/\/$|\/\?|\/#/,Sy=/^\.?\//;function Sn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?_y.test(e):wy.test(e)||(t.acceptRelative?by.test(e):!1)}function xy(e){return!!e&&vy.test(e)}function Qi(e="",t){return t?Cy.test(e):e.endsWith("/")}function Fo(e="",t){if(!t)return(Qi(e)?e.slice(0,-1):e)||"/";if(!Qi(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s>=0&&(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 no(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Qi(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s>=0&&(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 ky(e=""){return e.startsWith("/")}function uc(e=""){return ky(e)?e:"/"+e}function Ay(e,t){if(rh(t)||Sn(e))return e;const n=Fo(t);return e.startsWith(n)?e:Vn(n,e)}function Ey(e,t){if(rh(t))return e;const n=Fo(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function nh(e,t){const n=ih(e),r={...Ho(n.search),...t};return n.search=th(r),ah(n)}function rh(e){return!e||e==="/"}function Ty(e){return e&&e!=="/"}function Vn(e,...t){let n=e||"";for(const r of t.filter(s=>Ty(s)))if(n){const s=r.replace(Sy,"");n=no(n)+s}else n=r;return n}function sh(...e){var i,a,l,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const u of n)if(!(!u||u==="/")){for(const[f,h]of u.split(t).entries())if(!(!h||h===".")){if(h===".."){if(r.length===1&&Sn(r[0]))continue;r.pop(),s--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+h;continue}r.push(h),s++}}let o=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!o.startsWith("/")?o="/"+o:(l=n[0])!=null&&l.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,(c=n[n.length-1])!=null&&c.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function Ry(e,t,n={}){return n.trailingSlash||(e=no(e),t=no(t)),n.leadingSlash||(e=uc(e),t=uc(t)),n.encoding||(e=to(e),t=to(t)),e===t}const oh=Symbol.for("ufo:protocolRelative");function ih(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,h=""]=n;return{protocol:f.toLowerCase(),pathname:h,href:f+h,auth:"",host:"",search:"",hash:""}}if(!Sn(e,{acceptRelative:!0}))return fc(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=fc(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:c,hash:u,[oh]:!r}}function fc(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function ah(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[oh]?(e.protocol||"")+"//":"")+s+o+t+n+r}class $y extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Py(e){var l,c,u,f,h;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((h=e.request)==null?void 0:h.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new $y(i,e.error?{cause:e.error}:void 0);for(const d of["request","options","response"])Object.defineProperty(a,d,{get(){return e[d]}});for(const[d,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,d,{get(){return e.response&&e.response[p]}});return a}const Ny=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function hc(e="GET"){return Ny.has(e.toUpperCase())}function Iy(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Oy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),My=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Ly(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return My.test(t)?"json":Oy.has(t)||t.startsWith("text/")?"text":"blob"}function Dy(e,t,n,r){const s=Hy((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let o;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(o={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:o,params:o,headers:s}}function Hy(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,o);return r}async function xs(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Fy=new Set([408,409,425,429,500,502,503,504]),By=new Set([101,204,205,304]);function lh(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=hc(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Fy.has(f))){const h=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),o(a.request,{...a.options,retry:u-1})}}const c=Py(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,o),c}const o=async function(l,c={}){const u={request:l,options:Dy(l,c,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await xs(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=Ay(u.request,u.options.baseURL)),u.options.query&&(u.request=nh(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&hc(u.options.method)&&(Iy(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const d=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,d.abort(p)},u.options.timeout),u.options.signal=d.signal}try{u.response=await t(u.request,u.options)}catch(d){return u.error=d,u.options.onRequestError&&await xs(u,u.options.onRequestError),await s(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!By.has(u.response.status)&&u.options.method!=="HEAD"){const d=(u.options.parseResponse?"json":u.options.responseType)||Ly(u.response.headers.get("content-type")||"");switch(d){case"json":{const p=await u.response.text(),g=u.options.parseResponse||eo;u.response._data=g(p);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[d]()}}return u.options.onResponse&&await xs(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await xs(u,u.options.onResponseError),await s(u)):u.response},i=async function(l,c){return(await o(l,c))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>lh({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const ro=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")}(),jy=ro.fetch?(...e)=>ro.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Uy=ro.Headers,Gy=ro.AbortController,Wy=lh({fetch:jy,Headers:Uy,AbortController:Gy}),zy=Wy,Vy=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},so=Vy().app,qy=()=>so.baseURL,Ky=()=>so.buildAssetsDir,el=(...e)=>sh(ch(),Ky(),...e),ch=(...e)=>{const t=so.cdnURL||so.baseURL;return e.length?sh(t,...e):t};globalThis.__buildAssetsURL=el,globalThis.__publicAssetsURL=ch;globalThis.$fetch||(globalThis.$fetch=zy.create({baseURL:qy()}));function ea(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?ea(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const Jy={run:e=>e()},Xy=()=>Jy,uh=typeof console.createTask<"u"?console.createTask:Xy;function Yy(e,t){const n=t.shift(),r=uh(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Zy(e,t){const n=t.shift(),r=uh(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function mi(e,t){for(const n of[...e])n(t)}class Qy{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=ea(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=ea(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(Yy,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Zy,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&mi(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&mi(this._after,s)}):(this._after&&s&&mi(this._after,s),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function fh(){return new Qy}function e_(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},c=()=>t===i?l:void 0;ta.add(c);try{const u=s?s.run(i,a):a();return n||(t=void 0),await u}finally{ta.delete(c)}}}}function t_(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=e_({...e,...r})),t[n]}}}const oo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},dc="__unctx__",n_=oo[dc]||(oo[dc]=t_()),r_=(e,t={})=>n_.get(e,t),pc="__unctx_async_handlers__",ta=oo[pc]||(oo[pc]=new Set);function hh(e){const t=[];for(const s of ta){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 s_={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},o_=null,i_="#__nuxt",dh="nuxt-app",gc=36e5,a_="vite:preloadError";function ph(e=dh){return r_(e,{asyncContext:!1})}const l_="__nuxt_plugin";function c_(e){var s;let t=0;const n={_id:e.id||dh||"nuxt-app",_scope:Dp(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.0"},get vue(){return n.vueApp.version}},payload:sr({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:sr({}),state:mn({}),once:new Set,_errors:sr({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!La()?n._scope.run(()=>mc(n,o)):mc(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:sr({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=fh(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;ks(n,a,i),ks(n.vueApp.config.globalProperties,a,i)},ks(n.vueApp,"$nuxt",n),ks(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(a_,i=>{n.callHook("app:chunkError",{error:i.payload}),(n.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Oe);const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function u_(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function f_(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 h_(e,t){const n=[],r=[],s=[],o=[];let i=0;async function a(l){var u;const c=((u=l.dependsOn)==null?void 0:u.filter(f=>t.some(h=>h._name===f)&&!n.includes(f)))??[];if(c.length>0)r.push([new Set(c),l]);else{const f=f_(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([h,d])=>{h.has(l._name)&&(h.delete(l._name),h.size===0&&(i++,await a(d)))})))});l.parallel?s.push(f.catch(h=>o.push(h))):await f}}for(const l of t)u_(e,l);for(const l of t)await a(l);if(await Promise.all(s),i)for(let l=0;l<i;l++)await Promise.all(s);if(o.length)throw o[0]}function Bt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[l_]:!0,_name:t})}function mc(e,t,n){const r=()=>t();return ph(e._id).set(e),e.vueApp.runWithContext(r)}function gh(e){var n;let t;return Io()&&(t=(n=gs())==null?void 0:n.appContext.app.$nuxt),t||(t=ph(e).tryUse()),t||null}function Oe(e){const t=gh(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function wr(e){return Oe().$config}function ks(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function d_(e,t){return{ctx:{table:e},matchAll:n=>yh(n,e)}}function mh(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,mh(s)])):new Map(Object.entries(e[n]));return t}function p_(e){return d_(mh(e))}function yh(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of yc(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of yc(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...yh(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function yc(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function yi(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function na(e,t,n=".",r){if(!yi(t))return na(e,{},n,r);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:yi(i)&&yi(s[o])?s[o]=na(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function g_(e){return(...t)=>t.reduce((n,r)=>na(n,r,"",e),{})}const m_=g_();function y_(e,t){try{return t in e}catch{return!1}}class ra extends Error{constructor(n,r={}){super(n,r);k(this,"statusCode",500);k(this,"fatal",!1);k(this,"unhandled",!1);k(this,"statusMessage");k(this,"data");k(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:sa(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=_h(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}k(ra,"__h3_error__",!0);function __(e){if(typeof e=="string")return new ra(e);if(w_(e))return e;const t=new ra(e.message??e.statusMessage??"",{cause:e.cause||e});if(y_(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=sa(e.statusCode,t.statusCode):e.status&&(t.statusCode=sa(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;_h(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 w_(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const b_=/[^\u0009\u0020-\u007E]/g;function _h(e=""){return e.replace(b_,"")}function sa(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const wh=Symbol("route"),Ht=()=>{var e;return(e=Oe())==null?void 0:e.$router},bh=()=>Io()?jn(wh,Oe()._route):Oe()._route;const v_=()=>{try{if(Oe()._processingMiddleware)return!0}catch{return!1}return!1},vh=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?oa(e):Ht().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([f,h])=>h!==void 0).map(([f,h])=>`${f.toLowerCase()}=${h}`).join(", ");return open(n,l,u),Promise.resolve()}const r=Sn(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&xy(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=v_();if(!s&&o){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=ih(e);return{path:l,...c&&{query:Ho(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Ht(),a=Oe();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function oa(e){return nh(e.path||"",e.query||{})+(e.hash||"")}const Ch="__nuxt_error",tl=()=>lf(Oe().payload,"error"),C_=e=>{const t=nl(e);try{const n=Oe(),r=tl();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},S_=async(e={})=>{const t=Oe(),n=tl();t.callHook("app:error:cleared",e),e.redirect&&await Ht().replace(e.redirect),n.value=o_},x_=e=>!!e&&typeof e=="object"&&Ch in e,nl=e=>{const t=__(e);return Object.defineProperty(t,Ch,{value:!0,configurable:!1,writable:!1}),t};function _c(e){const t=A_(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 k_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function A_(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|=k_.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 E_=-1,T_=-2,R_=-3,$_=-4,P_=-5,N_=-6;function I_(e,t){return O_(JSON.parse(e),t)}function O_(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(o,i=!1){if(o===E_)return;if(o===R_)return NaN;if(o===$_)return 1/0;if(o===P_)return-1/0;if(o===N_)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const a=n[o];if(!a||typeof a!="object")r[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return r[o]=c(s(a[1]));switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;d<a.length;d+=1)u.add(s(a[d]));break;case"Map":const f=new Map;r[o]=f;for(let d=1;d<a.length;d+=2)f.set(s(a[d]),s(a[d+1]));break;case"RegExp":r[o]=new RegExp(a[1],a[2]);break;case"Object":r[o]=Object(a[1]);break;case"BigInt":r[o]=BigInt(a[1]);break;case"null":const h=Object.create(null);r[o]=h;for(let d=1;d<a.length;d+=2)h[a[d]]=s(a[d+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const d=globalThis[l],p=a[1],g=_c(p),y=new d(g);r[o]=y;break}case"ArrayBuffer":{const d=a[1],p=_c(d);r[o]=p;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[o]=l;for(let c=0;c<a.length;c+=1){const u=a[c];u!==T_&&(l[c]=s(u))}}else{const l={};r[o]=l;for(const c in a){const u=a[c];l[c]=s(u)}}return r[o]}return s(0)}const M_=new Set(["link","style","script","noscript"]),L_=new Set(["title","titleTemplate","script","style","noscript"]),wc=new Set(["base","meta","link","style","script","noscript"]),D_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),H_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),F_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),B_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),j_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const U_=["name","property","http-equiv"];function Sh(e){const t=e.split(":")[1];return j_.has(t)}function ia(e){const{props:t,tag:n}=e;if(H_.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of U_)if(t[r]!==void 0)return`${n}:${t[r]}`}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(L_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function bc(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function io(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let s;if(t&&(s=t(n,e)),Array.isArray(s))return s.map(o=>io(o,t));if((s==null?void 0:s.constructor)===Object){const o={};for(const i of Object.keys(s))o[i]=io(s[i],t,i);return o}return s}function G_(e,t){const n=e==="style"?new Map:new Set;function r(s){const o=s.trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(l=>l.trim());i&&a.length&&n.set(i,a.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?n.set(s.trim(),o):r(s))}),n}function xh(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=G_(n,r);return}if(F_.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!(i!=null&&i.endsWith("json"))&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-");s==="true"||s===""?e.props[n]=o?"true":!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e}function W_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=xh({tag:e,props:{}},n);return r.key&&M_.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 z_(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=io(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(W_(s,i))}),r.flat()}const aa=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,vc={base:-10,title:10},V_={critical:-8,high:-1,low:2},Cc={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},q_=/@import/,$r=e=>e===""||e===!0;function K_(e,t){var o;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=V_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Cc;if(t.tag in vc)n=vc[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=Cc.meta[i])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?$r(t.props.async)?n=s.script.async:t.props.src&&!$r(t.props.defer)&&!$r(t.props.async)&&t.props.type!=="module"&&!((o=t.props.type)!=null&&o.endsWith("json"))?n=s.script.sync:$r(t.props.defer)&&t.props.src&&!$r(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&q_.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 J_(e={}){var a;const t=fh();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=[],i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:l=>Sc(i,l),push(l,c){const u={...c||{}};delete u.head;const f=u._index??i._entryCount++,h={_i:f,input:l,options:u},d={_poll(p=!1){i.dirty=!0,!p&&o.push(f),t.callHook("entries:updated",i)},dispose(){r.delete(f)&&d._poll(!0)},patch(p){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(h.input=p,r.set(f,h),d._poll())}};return d.patch(l),d},async resolveTags(){var d;const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);o.length;){const p=o.shift(),g=r.get(p);if(g){const y={tags:z_(g.input,e.propResolvers||[]).map(_=>Object.assign(_,g.options)),entry:g};await t.callHook("entries:normalize",y),g._tags=y.tags.map((_,v)=>(_._w=K_(i,_),_._p=(g._i<<10)+v,_._d=ia(_),_))}}let c=!1;l.entries.flatMap(p=>(p._tags||[]).map(g=>({...g,props:{...g.props}}))).sort(aa).reduce((p,g)=>{const y=String(g._d||g._p);if(!p.has(y))return p.set(y,g);const _=p.get(y);if(((g==null?void 0:g.tagDuplicateStrategy)||(B_.has(g.tag)?"merge":null)||(g.key&&g.key===_.key?"merge":null))==="merge"){const m={..._.props};Object.entries(g.props).forEach(([b,C])=>m[b]=b==="style"?new Map([..._.props.style||new Map,...C]):b==="class"?new Set([..._.props.class||new Set,...C]):C),p.set(y,{...g,props:m})}else g._p>>10===_._p>>10&&Sh(g._d)?(p.set(y,Object.assign([...Array.isArray(_)?_:[_],g],g)),c=!0):(g._w===_._w?g._p>_._p:(g==null?void 0:g._w)<(_==null?void 0:_._w))&&p.set(y,g);return p},l.tagMap);const u=l.tagMap.get("title"),f=l.tagMap.get("titleTemplate");if(i._title=u==null?void 0:u.textContent,f){const p=f==null?void 0:f.textContent;if(i._titleTemplate=typeof p=="string"?p:void 0,p){let g=typeof p=="function"?p(u==null?void 0:u.textContent):p;typeof g=="string"&&!i.plugins.has("template-params")&&(g=g.replace("%s",(u==null?void 0:u.textContent)||"")),u?g===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:g}):(f.tag="title",f.textContent=g)}}l.tags=Array.from(l.tagMap.values()),c&&(l.tags=l.tags.flat().sort(aa)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const h=[];for(const p of l.tags){const{innerHTML:g,tag:y,props:_}=p;if(D_.has(y)&&!(Object.keys(_).length===0&&!p.innerHTML&&!p.textContent)&&!(y==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(y==="script"&&g){if((d=_.type)!=null&&d.endsWith("json")){const v=typeof g=="string"?g:JSON.stringify(g);p.innerHTML=v.replace(/</g,"\\u003C")}else typeof g=="string"&&(p.innerHTML=g.replace(new RegExp(`</${y}`,"g"),`<\\/${y}`));p._d=ia(p)}h.push(p)}}return h}};return((e==null?void 0:e.plugins)||[]).forEach(l=>Sc(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const sn="%separator",X_=new RegExp(`${sn}(?:\\s*${sn})*`,"g");function Y_(e,t,n=!1){var s;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=(s=e[t.substring(0,o)])==null?void 0:s[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function As(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const o=s.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const i=e.includes(sn);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===sn||!o.includes(a))return a;const l=Y_(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(sn)&&(e=e.slice(0,-sn.length)),e.startsWith(sn)&&(e=e.slice(sn.length)),e=e.replace(X_,n||"").trim()),e}const xc=e=>e.includes(":key")?e:e.split(":").join(":key:"),Z_={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const o=xc(s.slice(7)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p-1,t=!0)}else if(s.startsWith("after:")){const o=xc(s.slice(6)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(aa))}}},Q_={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function la(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>la(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await la(e[r]);return n}return e}const ew={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(la(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},tw={meta:"content",link:"href",htmlAttrs:"lang"},nw=["innerHTML","textContent"],rw=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var r,s,o;const n=((s=(r=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:r[0])==null?void 0:s.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((o=e._ssrPayload)==null?void 0:o.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var o;const r=((o=t.get("templateParams"))==null?void 0:o.props)||{},s=r.separator||"|";delete r.separator,r.pageTitle=As(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const a=tw[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=As(i.props[a],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of nw)typeof i[l]=="string"&&(i[l]=As(i[l],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=As(n.textContent,e._templateParams,e._separator))}}}),sw=(e,t)=>Ie(t)?fn(t):t,rl="usehead";function ow(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(rl,e)}}.install}function iw(){if(Io()){const e=jn(rl);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function aw(e,t={}){const n=t.head||iw();return n.ssr?n.push(e||{},t):lw(n,e,t)}function lw(e,t,n={}){const r=Re(!1);let s;return Hf(()=>{const i=r.value?{}:io(t,sw);s?s.patch(i):s=e.push(i,n)}),gs()&&(Ka(()=>{s.dispose()}),df(()=>{r.value=!0}),hf(()=>{r.value=!1})),s}function cw(e){var n;const t=e||gh();return((n=t==null?void 0:t.ssrContext)==null?void 0:n.head)||(t==null?void 0:t.runWithContext(()=>{if(Io())return jn(rl)}))}function uw(e,t={}){const n=cw(t.nuxt);if(n)return aw(e,{head:n,...t})}const fw="modulepreload",hw=function(e,t){return new URL(e,t).href},kc={},jr=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=hw(c,r),c in kc)return;kc[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const g=i[p];if(g.href===c&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":fw,u||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${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 Fs,Bs;function dw(){return Fs=$fetch(el(`builds/meta/${wr().app.buildId}.json`),{responseType:"json"}),Fs.then(e=>{Bs=p_(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Fs}function Bo(){return Fs||dw()}async function sl(e){const t=typeof e=="string"?e:e.path;if(await Bo(),!Bs)return console.error("[nuxt] Error creating app manifest matcher.",Bs),{};try{return m_({},...Bs.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Ac(e,t={}){const n=await gw(e,t),r=Oe(),s=r._payloadCache||(r._payloadCache={});return n in s?s[n]||null:(s[n]=Ah(e).then(o=>o?kh(n).then(i=>i||(delete s[n],null)):(s[n]=null,null)),s[n])}const pw="_payload.json";async function gw(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Sn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=wr(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await Ah(e)?o:r.app.baseURL;return Vn(i,n.pathname,pw+(s?`?${s}`:""))}async function kh(e){const t=fetch(e).then(n=>n.text().then(Eh));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Ah(e=bh().path){const t=Oe();return e=Fo(e),(await Bo()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await sl({path:e});return!!r.prerender&&!r.redirect})}let En=null;async function mw(){var r;if(En)return En;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Eh(e.textContent||""),n=e.dataset.src?await kh(e.dataset.src):void 0;return En={...t,...n,...window.__NUXT__},(r=En.config)!=null&&r.public&&(En.config.public=mn(En.config.public)),En}async function Eh(e){return await I_(e,Oe()._payloadRevivers)}function yw(e,t){Oe()._payloadRevivers[e]=t}const _w=[["NuxtError",e=>nl(e)],["EmptyShallowRef",e=>ji(e==="_"?void 0:e==="0n"?BigInt(0):eo(e))],["EmptyRef",e=>Re(e==="_"?void 0:e==="0n"?BigInt(0):eo(e))],["ShallowRef",e=>ji(e)],["ShallowReactive",e=>sr(e)],["Ref",e=>Re(e)],["Reactive",e=>mn(e)]],ww=Bt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of _w)yw(r,s);Object.assign(e.payload,([t,n]=hh(()=>e.runWithContext(mw)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function ol(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{var d;const o=new Map,i=new Promise(p=>{e.resolveTags().then(g=>{p(g.map(y=>{const _=o.get(y._d)||0,v={tag:y,id:(_?`${y._d}:${_}`:y._d)||bc(y),shouldRender:!0};return y._d&&Sh(y._d)&&o.set(y._d,_+1),v}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const p of["body","head"]){const g=(d=n[p])==null?void 0:d.children;for(const y of g){const _=y.tagName.toLowerCase();if(!wc.has(_))continue;const v=xh({tag:_,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((m,b)=>(m[b]=y.getAttribute(b),m),{})||{}});if(v.key=y.getAttribute("data-hid")||void 0,v._d=ia(v)||bc(v),a.elMap.has(v._d)){let m=1,b=v._d;for(;a.elMap.has(b);)b=`${v._d}:${m++}`;a.elMap.set(b,y)}else a.elMap.set(v._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(p,g,y){const _=`${p}:${g}`;a.sideEffects[_]=y,delete a.pendingSideEffects[_]}function c({id:p,$el:g,tag:y}){const _=y.tag.endsWith("Attrs");a.elMap.set(p,g),_||(y.textContent&&y.textContent!==g.textContent&&(g.textContent=y.textContent),y.innerHTML&&y.innerHTML!==g.innerHTML&&(g.innerHTML=y.innerHTML),l(p,"el",()=>{g==null||g.remove(),a.elMap.delete(p)}));for(const v in y.props){if(!Object.hasOwn(y.props,v))continue;const m=y.props[v];if(v.startsWith("on")&&typeof m=="function"){const C=g==null?void 0:g.dataset;if(C&&C[`${v}fired`]){const E=v.slice(0,-5);m.call(g,new Event(E.substring(2)))}g.getAttribute(`data-${v}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:g).addEventListener(v.substring(2),m.bind(g)),g.setAttribute(`data-${v}`,""));continue}const b=`attr:${v}`;if(v==="class"){if(!m)continue;for(const C of m)_&&l(p,`${b}:${C}`,()=>g.classList.remove(C)),!g.classList.contains(C)&&g.classList.add(C)}else if(v==="style"){if(!m)continue;for(const[C,E]of m)l(p,`${b}:${C}`,()=>{g.style.removeProperty(C)}),g.style.setProperty(C,E)}else m!==!1&&m!==null&&(g.getAttribute(v)!==m&&g.setAttribute(v,m===!0?"":String(m)),_&&l(p,b,()=>g.removeAttribute(v)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const p of h){const{tag:g,shouldRender:y,id:_}=p;if(y){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(_),p.$el?c(p):wc.has(g.tag)&&u.push(p)}}for(const p of u){const g=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),c(p),f[g]=f[g]||n.createDocumentFragment(),f[g].appendChild(p.$el)}for(const p of h)await e.hooks.callHook("dom:renderTag",p,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function bw(e={}){var r,s,o;const t=((r=e.domOptions)==null?void 0:r.render)||ol;e.document=e.document||(typeof window<"u"?document:void 0);const n=((o=(s=e.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return J_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function vw(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function Cw(e={}){const t=bw({domOptions:{render:vw(()=>ol(t),zn)},...e});return t.install=ow(t),t}const Sw={disableDefaults:!0,disableCapoSorting:!1,plugins:[Q_,ew,rw,Z_]},xw=Bt({name:"nuxt:head",enforce:"pre",setup(e){const t=Cw(Sw);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await ol(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)}}}),kw=async e=>{let t,n;const r=([t,n]=hh(()=>sl({path:e.path})),t=await t,n(),t);if(r.redirect)return Sn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},Aw=[kw];function _i(e){typeof e=="object"&&(e=ah({pathname:e.path||"",search:th(e.query||{}),hash:e.hash||""}));const t=new URL(e.toString(),window.location.href);return{path:t.pathname,fullPath:e,query:Ho(t.search),hash:t.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:e}}const Ew=Bt({name:"nuxt:router",enforce:"pre",setup(e){const t=Ey(window.location.pathname,wr().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(f,h)=>(r[f].push(h),()=>r[f].splice(r[f].indexOf(h),1)),o=wr().app.baseURL,i=mn(_i(t));async function a(f,h){try{const d=_i(f);for(const p of r["navigate:before"]){const g=await p(d,i);if(g===!1||g instanceof Error)return;if(typeof g=="string"&&g.length)return a(g,!0)}for(const p of r["resolve:before"])await p(d,i);Object.assign(i,d),window.history[h?"replaceState":"pushState"]({},"",Vn(o,d.fullPath)),e.isHydrating||await e.runWithContext(S_);for(const p of r["navigate:after"])await p(d,i)}catch(d){for(const p of r.error)await p(d)}}const c={currentRoute:Pe(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:f=>a(f,!1),replace:f=>a(f,!0),back:()=>window.history.go(-1),go:f=>window.history.go(f),forward:()=>window.history.go(1),beforeResolve:f=>s("resolve:before",f),beforeEach:f=>s("navigate:before",f),afterEach:f=>s("navigate:after",f),onError:f=>s("error",f),resolve:_i,addRoute:(f,h)=>{n.push(h)},getRoutes:()=>n,hasRoute:f=>n.some(h=>h.name===f),removeRoute:f=>{const h=n.findIndex(d=>d.name===f);h!==-1&&n.splice(h,1)}};e.vueApp.component("RouterLink",nt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:h})=>{const d=()=>a(f.to,f.replace);return()=>{var g;const p=c.resolve(f.to);return f.custom?(g=h.default)==null?void 0:g.call(h,{href:f.to,navigate:d,route:p}):Qs("a",{href:f.to,onClick:y=>(y.preventDefault(),d())},h)}}})),window.addEventListener("popstate",f=>{const h=f.target.location;c.replace(h.href.replace(h.origin,""))}),e._route=i,e._middleware||(e._middleware={global:[],named:{}});const u=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{c.beforeEach(async(f,h)=>{f.meta=mn(f.meta||{}),e.isHydrating&&u&&!yn(f.meta.layout)&&(f.meta.layout=u),e._processingMiddleware=!0;{const d=new Set([...Aw,...e._middleware.global]);{const p=await e.runWithContext(()=>sl({path:f.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const y=e._middleware.named[g];if(!y)return;p.appMiddleware[g]?d.add(y):d.delete(y)}}for(const p of d){const g=await e.runWithContext(()=>p(f,h));if(g!==!0&&(g||g===!1))return g}}}),c.afterEach(()=>{delete e._processingMiddleware}),await c.replace(t),Ry(i.fullPath,t)||await e.runWithContext(()=>vh(i.fullPath))}),{provide:{route:i,router:c}}}}),ca=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Tw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),jo=e=>{const t=Oe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{ca(()=>e())}):ca(()=>e())},Rw=Bt({name:"nuxt:payload",setup(e){Ht().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Ac(t.path);r&&Object.assign(e.static.data,r.data)}),jo(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Ac(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(Bo,1e3)})}}),$w=Bt(()=>{const e=Ht();jo(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Pw=Bt(e=>{let t;async function n(){const r=await Bo();t&&clearTimeout(t),t=setTimeout(n,gc);try{const s=await $fetch(el("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}jo(()=>{t=setTimeout(n,gc)})});function Nw(e={}){const t=e.path||window.location.pathname;let n={};try{n=eo(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Oe().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Iw=Bt({name:"nuxt:chunk-reload",setup(e){const t=Ht(),n=wr(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const a="href"in o&&o.href[0]==="#"?n.app.baseURL+o.href:Vn(n.app.baseURL,o.fullPath);Nw({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Ow=Bt({name:"nuxt:global-components"}),Mw=Bt(()=>{}),Lw=["top","right","bottom","left"],Ec=["start","end"],Tc=Lw.reduce((e,t)=>e.concat(t,t+"-"+Ec[0],t+"-"+Ec[1]),[]),ts=Math.min,Pn=Math.max,Dw={left:"right",right:"left",bottom:"top",top:"bottom"},Hw={start:"end",end:"start"};function ua(e,t,n){return Pn(e,ts(t,n))}function qn(e,t){return typeof e=="function"?e(t):e}function Ft(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function Th(e){return e==="x"?"y":"x"}function il(e){return e==="y"?"height":"width"}function Wn(e){return["top","bottom"].includes(Ft(e))?"y":"x"}function al(e){return Th(Wn(e))}function Rh(e,t,n){n===void 0&&(n=!1);const r=St(e),s=al(e),o=il(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=lo(i)),[i,lo(i)]}function Fw(e){const t=lo(e);return[ao(e),t,ao(t)]}function ao(e){return e.replace(/start|end/g,t=>Hw[t])}function Bw(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 jw(e,t,n,r){const s=St(e);let o=Bw(Ft(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(ao)))),o}function lo(e){return e.replace(/left|right|bottom|top/g,t=>Dw[t])}function Uw(e){return{top:0,right:0,bottom:0,left:0,...e}}function $h(e){return typeof e!="number"?Uw(e):{top:e,right:e,bottom:e,left:e}}function Ur(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 Rc(e,t,n){let{reference:r,floating:s}=e;const o=Wn(t),i=al(t),a=il(i),l=Ft(t),c=o==="y",u=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let d;switch(l){case"top":d={x:u,y:r.y-s.height};break;case"bottom":d={x:u,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-s.width,y:f};break;default:d={x:r.x,y:r.y}}switch(St(t)){case"start":d[i]-=h*(n&&c?-1:1);break;case"end":d[i]+=h*(n&&c?-1:1);break}return d}const Gw=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 c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:f}=Rc(c,r,l),h=r,d={},p=0;for(let g=0;g<a.length;g++){const{name:y,fn:_}=a[g],{x:v,y:m,data:b,reset:C}=await _({x:u,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:d,rects:c,platform:i,elements:{reference:e,floating:t}});u=v??u,f=m??f,d={...d,[y]:{...d[y],...b}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(c=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:u,y:f}=Rc(c,h,l)),g=-1)}return{x:u,y:f,placement:h,strategy:s,middlewareData:d}};async function Uo(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=qn(t,e),p=$h(d),y=a[h?f==="floating"?"reference":"floating":f],_=Ur(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),b=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},C=Ur(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:m,strategy:l}):v);return{top:(_.top-C.top+p.top)/b.y,bottom:(C.bottom-_.bottom+p.bottom)/b.y,left:(_.left-C.left+p.left)/b.x,right:(C.right-_.right+p.right)/b.x}}const Ww=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:c,padding:u=0}=qn(e,t)||{};if(c==null)return{};const f=$h(u),h={x:n,y:r},d=al(s),p=il(d),g=await i.getDimensions(c),y=d==="y",_=y?"top":"left",v=y?"bottom":"right",m=y?"clientHeight":"clientWidth",b=o.reference[p]+o.reference[d]-h[d]-o.floating[p],C=h[d]-o.reference[d],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let x=E?E[m]:0;(!x||!await(i.isElement==null?void 0:i.isElement(E)))&&(x=a.floating[m]||o.floating[p]);const L=b/2-C/2,H=x/2-g[p]/2-1,I=ts(f[_],H),D=ts(f[v],H),U=I,J=x-g[p]-D,ne=x/2-g[p]/2+L,he=ua(U,ne,J),W=!l.arrow&&St(s)!=null&&ne!==he&&o.reference[p]/2-(ne<U?I:D)-g[p]/2<0,Y=W?ne<U?ne-U:ne-J:0;return{[d]:h[d]+Y,data:{[d]:he,centerOffset:ne-he-Y,...W&&{alignmentOffset:Y}},reset:W}}});function zw(e,t,n){return(e?[...n.filter(s=>St(s)===e),...n.filter(s=>St(s)!==e)]:n.filter(s=>Ft(s)===s)).filter(s=>e?St(s)===e||(t?ao(s)!==s:!1):!0)}const Vw=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:c}=t,{crossAxis:u=!1,alignment:f,allowedPlacements:h=Tc,autoAlignment:d=!0,...p}=qn(e,t),g=f!==void 0||h===Tc?zw(f||null,d,h):h,y=await Uo(t,p),_=((n=i.autoPlacement)==null?void 0:n.index)||0,v=g[_];if(v==null)return{};const m=Rh(v,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==v)return{reset:{placement:g[0]}};const b=[y[Ft(v)],y[m[0]],y[m[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:b}],E=g[_+1];if(E)return{data:{index:_+1,overflows:C},reset:{placement:E}};const x=C.map(I=>{const D=St(I.placement);return[I.placement,D&&u?I.overflows.slice(0,2).reduce((U,J)=>U+J,0):I.overflows[0],I.overflows]}).sort((I,D)=>I[1]-D[1]),H=((s=x.filter(I=>I[2].slice(0,St(I[0])?2:3).every(D=>D<=0))[0])==null?void 0:s[0])||x[0][0];return H!==a?{data:{index:_+1,overflows:C},reset:{placement:H}}:{}}}},qw=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:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...y}=qn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=Ft(s),v=Wn(a),m=Ft(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=h||(m||!g?[lo(a)]:Fw(a)),E=p!=="none";!h&&E&&C.push(...jw(a,g,p,b));const x=[a,...C],L=await Uo(t,y),H=[];let I=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&H.push(L[_]),f){const ne=Rh(s,i,b);H.push(L[ne[0]],L[ne[1]])}if(I=[...I,{placement:s,overflows:H}],!H.every(ne=>ne<=0)){var D,U;const ne=(((D=o.flip)==null?void 0:D.index)||0)+1,he=x[ne];if(he)return{data:{index:ne,overflows:I},reset:{placement:he}};let W=(U=I.filter(Y=>Y.overflows[0]<=0).sort((Y,V)=>Y.overflows[1]-V.overflows[1])[0])==null?void 0:U.placement;if(!W)switch(d){case"bestFit":{var J;const Y=(J=I.filter(V=>{if(E){const be=Wn(V.placement);return be===v||be==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(be=>be>0).reduce((be,Jn)=>be+Jn,0)]).sort((V,be)=>V[1]-be[1])[0])==null?void 0:J[0];Y&&(W=Y);break}case"initialPlacement":W=a;break}if(s!==W)return{reset:{placement:W}}}return{}}}};async function Kw(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Ft(n),a=St(n),l=Wn(n)==="y",c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,f=qn(t,e);let{mainAxis:h,crossAxis:d,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"&&(d=a==="end"?p*-1:p),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}const Jw=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 Kw(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}}}}},Xw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:y=>{let{x:_,y:v}=y;return{x:_,y:v}}},...l}=qn(e,t),c={x:n,y:r},u=await Uo(t,l),f=Wn(Ft(s)),h=Th(f);let d=c[h],p=c[f];if(o){const y=h==="y"?"top":"left",_=h==="y"?"bottom":"right",v=d+u[y],m=d-u[_];d=ua(v,d,m)}if(i){const y=f==="y"?"top":"left",_=f==="y"?"bottom":"right",v=p+u[y],m=p-u[_];p=ua(v,p,m)}const g=a.fn({...t,[h]:d,[f]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[f]:i}}}}}},Yw=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=()=>{},...c}=qn(e,t),u=await Uo(t,c),f=Ft(s),h=St(s),d=Wn(s)==="y",{width:p,height:g}=o.floating;let y,_;f==="top"||f==="bottom"?(y=f,_=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,y=h==="end"?"top":"bottom");const v=g-u.top-u.bottom,m=p-u.left-u.right,b=ts(g-u[y],v),C=ts(p-u[_],m),E=!t.middlewareData.shift;let x=b,L=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(x=v),E&&!h){const I=Pn(u.left,0),D=Pn(u.right,0),U=Pn(u.top,0),J=Pn(u.bottom,0);d?L=p-2*(I!==0||D!==0?I+D:Pn(u.left,u.right)):x=g-2*(U!==0||J!==0?U+J:Pn(u.top,u.bottom))}await l({...t,availableWidth:L,availableHeight:x});const H=await i.getDimensions(a.floating);return p!==H.width||g!==H.height?{reset:{rects:!0}}:{}}}};function pt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mt(e){return pt(e).getComputedStyle(e)}const $c=Math.min,Gr=Math.max,co=Math.round;function Ph(e){const t=Mt(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=co(n)!==s||co(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function wn(e){return Ih(e)?(e.nodeName||"").toLowerCase():""}let Es;function Nh(){if(Es)return Es;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Es=e.brands.map(t=>t.brand+"/"+t.version).join(" "),Es):navigator.userAgent}function Lt(e){return e instanceof pt(e).HTMLElement}function dn(e){return e instanceof pt(e).Element}function Ih(e){return e instanceof pt(e).Node}function Pc(e){return typeof ShadowRoot>"u"?!1:e instanceof pt(e).ShadowRoot||e instanceof ShadowRoot}function Go(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Zw(e){return["table","td","th"].includes(wn(e))}function fa(e){const t=/firefox/i.test(Nh()),n=Mt(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 Oh(){return!/^((?!chrome|android).)*safari/i.test(Nh())}function ll(e){return["html","body","#document"].includes(wn(e))}function Mh(e){return dn(e)?e:e.contextElement}const Lh={x:1,y:1};function hr(e){const t=Mh(e);if(!Lt(t))return Lh;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Ph(t);let i=(o?co(n.width):n.width)/r,a=(o?co(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function ns(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Mh(e);let l=Lh;t&&(r?dn(r)&&(l=hr(r)):l=hr(e));const c=a?pt(a):window,u=!Oh()&&n;let f=(i.left+(u&&((s=c.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,h=(i.top+(u&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,d=i.width/l.x,p=i.height/l.y;if(a){const g=pt(a),y=r&&dn(r)?pt(r):r;let _=g.frameElement;for(;_&&r&&y!==g;){const v=hr(_),m=_.getBoundingClientRect(),b=getComputedStyle(_);m.x+=(_.clientLeft+parseFloat(b.paddingLeft))*v.x,m.y+=(_.clientTop+parseFloat(b.paddingTop))*v.y,f*=v.x,h*=v.y,d*=v.x,p*=v.y,f+=m.x,h+=m.y,_=pt(_).frameElement}}return{width:d,height:p,top:h,right:f+d,bottom:h+p,left:f,x:f,y:h}}function pn(e){return((Ih(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wo(e){return dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Dh(e){return ns(pn(e)).left+Wo(e).scrollLeft}function rs(e){if(wn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pc(e)&&e.host||pn(e);return Pc(t)?t.host:t}function Hh(e){const t=rs(e);return ll(t)?t.ownerDocument.body:Lt(t)&&Go(t)?t:Hh(t)}function uo(e,t){var n;t===void 0&&(t=[]);const r=Hh(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=pt(r);return s?t.concat(o,o.visualViewport||[],Go(r)?r:[]):t.concat(r,uo(r))}function Nc(e,t,n){return t==="viewport"?Ur(function(r,s){const o=pt(r),i=pn(r),a=o.visualViewport;let l=i.clientWidth,c=i.clientHeight,u=0,f=0;if(a){l=a.width,c=a.height;const h=Oh();(h||!h&&s==="fixed")&&(u=a.offsetLeft,f=a.offsetTop)}return{width:l,height:c,x:u,y:f}}(e,n)):dn(t)?Ur(function(r,s){const o=ns(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=Lt(r)?hr(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)):Ur(function(r){const s=pn(r),o=Wo(r),i=r.ownerDocument.body,a=Gr(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=Gr(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let c=-o.scrollLeft+Dh(r);const u=-o.scrollTop;return Mt(i).direction==="rtl"&&(c+=Gr(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:c,y:u}}(pn(e)))}function Ic(e){return Lt(e)&&Mt(e).position!=="fixed"?e.offsetParent:null}function Oc(e){const t=pt(e);let n=Ic(e);for(;n&&Zw(n)&&Mt(n).position==="static";)n=Ic(n);return n&&(wn(n)==="html"||wn(n)==="body"&&Mt(n).position==="static"&&!fa(n))?t:n||function(r){let s=rs(r);for(;Lt(s)&&!ll(s);){if(fa(s))return s;s=rs(s)}return null}(e)||t}function Qw(e,t,n){const r=Lt(t),s=pn(t),o=ns(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((wn(t)!=="body"||Go(s))&&(i=Wo(t)),Lt(t)){const l=ns(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Dh(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const e0={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=n==="clippingAncestors"?function(c,u){const f=u.get(c);if(f)return f;let h=uo(c).filter(y=>dn(y)&&wn(y)!=="body"),d=null;const p=Mt(c).position==="fixed";let g=p?rs(c):c;for(;dn(g)&&!ll(g);){const y=Mt(g),_=fa(g);(p?_||d:_||y.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=y:h=h.filter(v=>v!==g),g=rs(g)}return u.set(c,h),h}(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce((c,u)=>{const f=Nc(t,u,s);return c.top=Gr(f.top,c.top),c.right=$c(f.right,c.right),c.bottom=$c(f.bottom,c.bottom),c.left=Gr(f.left,c.left),c},Nc(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Lt(n),o=pn(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((s||!s&&r!=="fixed")&&((wn(n)!=="body"||Go(o))&&(i=Wo(n)),Lt(n))){const c=ns(n);a=hr(n),l.x=c.x+n.clientLeft,l.y=c.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:dn,getDimensions:function(e){return Lt(e)?Ph(e):e.getBoundingClientRect()},getOffsetParent:Oc,getDocumentElement:pn,getScale:hr,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||Oc,o=this.getDimensions;return{reference:Qw(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Mt(e).direction==="rtl"},t0=(e,t,n)=>{const r=new Map,s={platform:e0,...n},o={...s.platform,_c:r};return Gw(e,t,{...s,platform:o})};function Fh(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Fh(e[n],t[n]):e[n]=t[n])}const xt={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 ss(e,t){let n=xt.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=xt.themes[n.$extend]||{}:(n=null,r=xt[t]):n=null;while(n);return r}function n0(e){const t=[e];let n=xt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=xt.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function Mc(e){const t=[e];let n=xt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=xt.themes[n.$extend]||{}):n=null;while(n);return t}let br=!1;if(typeof window<"u"){br=!1;try{const e=Object.defineProperty({},"passive",{get(){br=!0}});window.addEventListener("test",null,e)}catch{}}let Bh=!1;typeof window<"u"&&typeof navigator<"u"&&(Bh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const jh=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Lc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Dc={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Hc(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function wi(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const bt=[];let Tn=null;const Fc={};function Bc(e){let t=Fc[e];return t||(t=Fc[e]=[]),t}let ha=function(){};typeof window<"u"&&(ha=window.Element);function fe(e){return function(t){return ss(t.theme,e)}}const bi="__floating-vue__popper",Uh=()=>nt({name:"VPopper",provide(){return{[bi]:{parentPopper:this}}},inject:{[bi]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:fe("disabled")},positioningDisabled:{type:Boolean,default:fe("positioningDisabled")},placement:{type:String,default:fe("placement"),validator:e=>jh.includes(e)},delay:{type:[String,Number,Object],default:fe("delay")},distance:{type:[Number,String],default:fe("distance")},skidding:{type:[Number,String],default:fe("skidding")},triggers:{type:Array,default:fe("triggers")},showTriggers:{type:[Array,Function],default:fe("showTriggers")},hideTriggers:{type:[Array,Function],default:fe("hideTriggers")},popperTriggers:{type:Array,default:fe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:fe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:fe("popperHideTriggers")},container:{type:[String,Object,ha,Boolean],default:fe("container")},boundary:{type:[String,ha],default:fe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:fe("strategy")},autoHide:{type:[Boolean,Function],default:fe("autoHide")},handleResize:{type:Boolean,default:fe("handleResize")},instantMove:{type:Boolean,default:fe("instantMove")},eagerMount:{type:Boolean,default:fe("eagerMount")},popperClass:{type:[String,Array,Object],default:fe("popperClass")},computeTransformOrigin:{type:Boolean,default:fe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:fe("autoMinSize")},autoSize:{type:[Boolean,String],default:fe("autoSize")},autoMaxSize:{type:Boolean,default:fe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:fe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:fe("preventOverflow")},overflowPadding:{type:[Number,String],default:fe("overflowPadding")},arrowPadding:{type:[Number,String],default:fe("arrowPadding")},arrowOverflow:{type:Boolean,default:fe("arrowOverflow")},flip:{type:Boolean,default:fe("flip")},shift:{type:Boolean,default:fe("shift")},shiftCrossAxis:{type:Boolean,default:fe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:fe("noAutoFocus")},disposeTimeout:{type:Number,default:fe("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[bi])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r,s;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Jw({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Vw({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Xw({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(qw({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Ww({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,c;return o.startsWith("top")||o.startsWith("bottom")?l=s.reference.width:c=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"]=c!=null?`${c}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(Yw({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 t0(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),Tn&&this.instantMove&&Tn.instantMove&&Tn!==this.parentPopper){Tn.$_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&&(Tn=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await wi(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...uo(this.$_referenceNode),...uo(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<bt.length;n++)t=bt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}bt.push(this),document.body.classList.add("v-popper--some-open");for(const t of Mc(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 wi(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Hc(bt,this),bt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Mc(this.theme)){const r=Bc(n);Hc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Tn===this&&(Tn=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await wi(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Lc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Lc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Dc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Dc,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(r=>r.addEventListener(t,n,br?{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(Wr>=e.left&&Wr<=e.right&&zr>=e.top&&zr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Wr-Qt,r=zr-en,s=t.left+t.width/2-Qt+(t.top+t.height/2)-en+t.width+t.height,o=Qt+n*s,i=en+r*s;return Ts(Qt,en,o,i,t.left,t.top,t.left,t.bottom)||Ts(Qt,en,o,i,t.left,t.top,t.right,t.top)||Ts(Qt,en,o,i,t.right,t.top,t.right,t.bottom)||Ts(Qt,en,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(Bh){const e=br?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>jc(t,!0),e),document.addEventListener("touchend",t=>Uc(t,!0),e)}else window.addEventListener("mousedown",e=>jc(e,!1),!0),window.addEventListener("click",e=>Uc(e,!1),!0);window.addEventListener("resize",s0)}function jc(e,t){if(xt.autoHideOnMousedown)Gh(e,t);else for(let n=0;n<bt.length;n++){const r=bt[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Uc(e,t){xt.autoHideOnMousedown||Gh(e,t)}function Gh(e,t){const n={};for(let r=bt.length-1;r>=0;r--){const s=bt[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Gc(s,o,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let a=s.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let i=s.parentPopper;for(;i&&Gc(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Gc(e,t,n){return n.closeAllPopover||n.closePopover&&t||r0(e,n)&&!t}function r0(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function s0(){for(let e=0;e<bt.length;e++)bt[e].$_computePosition()}let Qt=0,en=0,Wr=0,zr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Qt=Wr,en=zr,Wr=e.clientX,zr=e.clientY},br?{passive:!0}:void 0);function Ts(e,t,n,r,s,o,i,a){const l=((i-s)*(t-o)-(a-o)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t)),c=((n-e)*(t-o)-(r-t)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t));return l>=0&&l<=1&&c>=0&&c<=1}const o0={extends:Uh()},zo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function i0(e,t,n,r,s,o){return G(),te("div",{ref:"reference",class:Ne(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[et(e.$slots,"default",Bu(Ya(e.slotData)))],2)}const a0=zo(o0,[["render",i0]]);function l0(){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 js;function da(){da.init||(da.init=!0,js=l0()!==-1)}var Vo={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){da(),zn(()=>{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",js&&this.$el.appendChild(e),e.data="about:blank",js||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&&(!js&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const c0=bg();_g("data-v-b329ee4c");const u0={class:"resize-observer",tabindex:"-1"};wg();const f0=c0((e,t,n,r,s,o)=>(G(),Ae("div",u0)));Vo.render=f0;Vo.__scopeId="data-v-b329ee4c";Vo.__file="src/components/ResizeObserver.vue";const Wh=(e="theme")=>({computed:{themeClass(){return n0(this[e])}}}),h0=nt({name:"VPopperContent",components:{ResizeObserver:Vo},mixins:[Wh()],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}}}),d0=["id","aria-hidden","tabindex","data-popper-placement"],p0={ref:"inner",class:"v-popper__inner"},g0=M("div",{class:"v-popper__arrow-outer"},null,-1),m0=M("div",{class:"v-popper__arrow-inner"},null,-1),y0=[g0,m0];function _0(e,t,n,r,s,o){const i=_n("ResizeObserver");return G(),te("div",{id:e.popperId,ref:"popover",class:Ne(["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:Ln(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]=Ym(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[M("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),M("div",{class:"v-popper__wrapper",style:Ln(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[M("div",p0,[e.mounted?(G(),te(xe,{key:0},[M("div",null,[et(e.$slots,"default")]),e.handleResize?(G(),Ae(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):je("",!0)],64)):je("",!0)],512),M("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ln(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},y0,4)],4)],46,d0)}const zh=zo(h0,[["render",_0]]),Vh={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 pa=function(){};typeof window<"u"&&(pa=window.Element);const w0=nt({name:"VPopperWrapper",components:{Popper:a0,PopperContent:zh},mixins:[Vh,Wh("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,pa,Boolean],default:void 0},boundary:{type:[String,pa],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 b0(e,t,n,r,s,o){const i=_n("PopperContent"),a=_n("Popper");return G(),Ae(a,Lo({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:ie(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:h,show:d,hide:p,handleResize:g,onResize:y,classes:_,result:v})=>[et(e.$slots,"default",{shown:c,show:d,hide:p}),q(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:c,mounted:u,"skip-transition":f,"auto-hide":h,"handle-resize":g,classes:_,result:v,onHide:p,onResize:y},{default:ie(()=>[et(e.$slots,"popper",{shown:c,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 cl=zo(w0,[["render",b0]]),v0={...cl,name:"VDropdown",vPopperTheme:"dropdown"},C0={...cl,name:"VMenu",vPopperTheme:"menu"},S0={...cl,name:"VTooltip",vPopperTheme:"tooltip"},x0=nt({name:"VTooltipDirective",components:{Popper:Uh(),PopperContent:zh},mixins:[Vh],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ss(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ss(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}}}),k0=["innerHTML"],A0=["textContent"];function E0(e,t,n,r,s,o){const i=_n("PopperContent"),a=_n("Popper");return G(),Ae(a,Lo({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ie(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:h,hide:d,handleResize:p,onResize:g,classes:y,result:_})=>[q(i,{ref:"popperContent",class:Ne({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:c,mounted:u,"skip-transition":f,"auto-hide":h,"handle-resize":p,classes:y,result:_,onHide:d,onResize:g},{default:ie(()=>[e.html?(G(),te("div",{key:0,innerHTML:e.finalContent},null,8,k0)):(G(),te("div",{key:1,textContent:Be(e.finalContent)},null,8,A0))]),_: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 T0=zo(x0,[["render",E0]]),qh="v-popper--has-tooltip";function R0(e,t){let n=e.placement;if(!n&&t)for(const r of jh)t[r]&&(n=r);return n||(n=ss(e.theme||"tooltip","placement")),n}function Kh(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=R0(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let vi,os,$0=0;function P0(){if(vi)return;os=Re([]),vi=Zf({name:"VTooltipDirectiveApp",setup(){return{directives:os}},render(){return this.directives.map(t=>Qs(T0,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),vi.mount(e)}function N0(e,t,n){P0();const r=Re(Kh(e,t,n)),s=Re(!1),o={id:$0++,options:r,shown:s};return os.value.push(o),e.classList&&e.classList.add(qh),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Jh(e){if(e.$_popper){const t=os.value.indexOf(e.$_popper.item);t!==-1&&os.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(qh)}function Wc(e,{value:t,modifiers:n}){const r=Kh(e,t,n);if(!r.content||ss(r.theme||"tooltip","disabled"))Jh(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=N0(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const I0={beforeMount:Wc,updated:Wc,beforeUnmount(e){Jh(e)}};function zc(e){e.addEventListener("mousedown",fo),e.addEventListener("click",fo),e.addEventListener("touchstart",Xh,br?{passive:!0}:!1)}function Vc(e){e.removeEventListener("mousedown",fo),e.removeEventListener("click",fo),e.removeEventListener("touchstart",Xh),e.removeEventListener("touchend",Yh),e.removeEventListener("touchcancel",Zh)}function fo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Xh(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",Yh),t.addEventListener("touchcancel",Zh)}}function Yh(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 Zh(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const O0={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&zc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?zc(e):Vc(e))},beforeUnmount(e){Vc(e)}};function M0(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Fh(xt,t),e.directive("tooltip",I0),e.directive("close-popper",O0),e.component("VTooltip",S0),e.component("VDropdown",v0),e.component("VMenu",C0))}const L0={version:"5.2.2",install:M0,options:xt},D0=Bt(e=>{e.vueApp.use(L0)}),H0=[ww,xw,Ew,Rw,$w,Pw,Iw,Ow,Mw,D0],ul=nt({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(G(),te("div",{class:Ne(["n-icon",t.icon])},null,2))}}),qo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},F0={},B0={class:"n-badge"};function j0(e,t){return G(),te("span",B0,[et(e.$slots,"default")])}const Qh=qo(F0,[["render",j0]]);async function ed(e,t=Ht()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const s=t._preloadPromises||(t._preloadPromises=[]);if(s.length>4)return Promise.all(s).then(()=>ed(e,t));t._routePreloaded.add(n);const o=r.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of o){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}const U0=(...e)=>e.find(t=>t!==void 0);function G0(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i){if(!o||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return o;if(typeof o=="string")return qc(o,e.trailingSlash);const a="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:qc(a,e.trailingSlash)}}function s(o){const i=Ht(),a=wr(),l=Pe(()=>!!o.target&&o.target!=="_self"),c=Pe(()=>{const y=o.to||o.href||"";return typeof y=="string"&&Sn(y,{acceptRelative:!0})}),u=_n("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,h=Pe(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||c.value}),d=Pe(()=>{const y=o.to||o.href||"";return h.value?y:r(y,i.resolve)}),p=h.value||f==null?void 0:f({...o,to:d}),g=Pe(()=>{var y;if(!d.value||c.value||n(d.value))return d.value;if(h.value){const _=typeof d.value=="object"&&"path"in d.value?oa(d.value):d.value,v=typeof _=="object"?i.resolve(_).href:_;return r(v,i.resolve)}return typeof d.value=="object"?((y=i.resolve(d.value))==null?void 0:y.href)??null:r(Vn(a.app.baseURL,d.value),i.resolve)});return{to:d,hasTarget:l,isAbsoluteUrl:c,isExternal:h,href:g,isActive:(p==null?void 0:p.isActive)??Pe(()=>d.value===i.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??Pe(()=>d.value===i.currentRoute.value.path),route:(p==null?void 0:p.route)??Pe(()=>i.resolve(d.value)),async navigate(y){await vh(g.value,{replace:o.replace,external:h.value||l.value})}}}return nt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const a=Ht(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:h,isAbsoluteUrl:d}=s(o),p=Re(!1),g=Re(null),y=m=>{var b;g.value=o.custom?(b=m==null?void 0:m.$el)==null?void 0:b.nextElementSibling:m==null?void 0:m.$el};function _(m){var b,C;return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:((b=o.prefetchOn)==null?void 0:b[m])??((C=e.prefetchOn)==null?void 0:C[m]))&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!q0()}async function v(m=Oe()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:f.value?oa(l.value):a.resolve(l.value).fullPath,C=f.value?new URL(b,window.location.href).href:b;await Promise.all([m.hooks.callHook("link:prefetch",C).catch(()=>{}),!f.value&&!h.value&&ed(l.value,a).catch(()=>{})])}if(_("visibility")){const m=Oe();let b,C=null;qa(()=>{const E=z0();jo(()=>{b=ca(()=>{var x;(x=g==null?void 0:g.value)!=null&&x.tagName&&(C=E.observe(g.value,async()=>{C==null||C(),C=null,await v(m)}))})})}),Ka(()=>{b&&Tw(b),C==null||C(),C=null})}return()=>{var C;if(!f.value&&!h.value&&!n(l.value)){const E={ref:y,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(_("interaction")&&(E.onPointerenter=v.bind(null,void 0),E.onFocus=v.bind(null,void 0)),p.value&&(E.class=o.prefetchedClass||e.prefetchedClass),E.rel=o.rel||void 0),Qs(_n("RouterLink"),E,i.default)}const m=o.target||null,b=U0(o.noRel?"":o.rel,e.externalRelAttribute,d.value||h.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:c.value,navigate:u,prefetch:v,get route(){if(!c.value)return;const E=new URL(c.value,window.location.href);return{path:E.pathname,fullPath:E.pathname,get query(){return Ho(E.search)},hash:E.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:b,target:m,isExternal:f.value||h.value,isActive:!1,isExactActive:!1}):null:Qs("a",{ref:g,href:c.value||null,rel:b,target:m},(C=i.default)==null?void 0:C.call(i))}}})}const W0=G0(s_);function qc(e,t){const n=t==="append"?no:Fo;return Sn(e)&&!e.startsWith("http")?e:n(e,!0)}function z0(){const e=Oe();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),n.set(o,i),t.observe(o),()=>{n.delete(o),t==null||t.unobserve(o),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:r}}const V0=/2g/;function q0(){const e=navigator.connection;return!!(e&&(e.saveData||V0.test(e.effectiveType)))}const K0={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},td=nt({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(e){const t=e,n=Pe(()=>t.href||t.to);return(r,s)=>{const o=W0;return G(),Ae(o,Lo(n.value?{href:n.value,target:r.target,rel:r.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||r.underline}}),{default:ie(()=>[et(r.$slots,"default"),n.value&&r.target==="_blank"?(G(),te("div",K0)):je("",!0)]),_:3},16,["class"])}}}),J0={},X0={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Y0(e,t){return G(),te("svg",X0,t[0]||(t[0]=[_m('<path d="M377 200C379.16 200 381 198.209 381 196V103C381 103 386 112 395 127L434 194C435.785 197.74 439.744 200 443 200H470V50H443C441.202 50 439 51.4941 439 54V148L421 116L385 55C383.248 51.8912 379.479 50 376 50H350V200H377Z" fill="currentColor"></path><path d="M726 92H739C742.314 92 745 89.3137 745 86V60H773V92H800V116H773V159C773 169.5 778.057 174 787 174H800V200H783C759.948 200 745 185.071 745 160V116H726V92Z" fill="currentColor"></path><path d="M591 92V154C591 168.004 585.742 179.809 578 188C570.258 196.191 559.566 200 545 200C530.434 200 518.742 196.191 511 188C503.389 179.809 498 168.004 498 154V92H514C517.412 92 520.769 92.622 523 95C525.231 97.2459 526 98.5652 526 102V154C526 162.059 526.457 167.037 530 171C533.543 174.831 537.914 176 545 176C552.217 176 555.457 174.831 559 171C562.543 167.037 563 162.059 563 154V102C563 98.5652 563.769 96.378 566 94C567.96 91.9107 570.028 91.9599 573 92C573.411 92.0055 574.586 92 575 92H591Z" fill="currentColor"></path><path d="M676 144L710 92H684C680.723 92 677.812 93.1758 676 96L660 120L645 97C643.188 94.1758 639.277 92 636 92H611L645 143L608 200H634C637.25 200 640.182 196.787 642 194L660 167L679 195C680.818 197.787 683.75 200 687 200H713L676 144Z" fill="currentColor"></path><path d="M168 200H279C282.542 200 285.932 198.756 289 197C292.068 195.244 295.23 193.041 297 190C298.77 186.959 300.002 183.51 300 179.999C299.998 176.488 298.773 173.04 297 170.001L222 41C220.23 37.96 218.067 35.7552 215 34C211.933 32.2448 207.542 31 204 31C200.458 31 197.067 32.2448 194 34C190.933 35.7552 188.77 37.96 187 41L168 74L130 9.99764C128.228 6.95784 126.068 3.75491 123 2C119.932 0.245087 116.542 0 113 0C109.458 0 106.068 0.245087 103 2C99.9323 3.75491 96.7717 6.95784 95 9.99764L2 170.001C0.226979 173.04 0.00154312 176.488 1.90993e-06 179.999C-0.0015393 183.51 0.229648 186.959 2 190C3.77035 193.04 6.93245 195.244 10 197C13.0675 198.756 16.4578 200 20 200H90C117.737 200 137.925 187.558 152 164L186 105L204 74L259 168H186L168 200ZM89 168H40L113 42L150 105L125.491 147.725C116.144 163.01 105.488 168 89 168Z" fill="#00DC82"></path><path d="M892 200C881.746 200 873.788 197.911 866 194C858.212 189.959 851.543 184.169 847 177C842.587 169.7 840.389 161.646 840 152H868C868.649 159.039 870.717 163.959 875 168C879.413 172.041 885.861 174 893 174C899.62 174 904.106 172.737 908 170C912.024 167.263 914 164.084 914 159C914 155.48 913.336 152.086 911 150C908.793 147.784 906.375 146.173 903 145C899.625 143.827 894.23 142.564 888 141C878.784 138.784 870.971 136.477 865 134C859.159 131.393 854.283 127.605 850 122C845.717 116.395 844 108.777 844 99C844 91.5698 845.976 84.8659 850 79C854.024 73.1341 859.861 68.2589 867 65C874.139 61.6108 881.914 60 891 60C900.735 60 909.601 61.4805 917 65C924.528 68.5196 929.846 73.4823 934 80C938.283 86.5177 940.74 94.3967 941 103H913C912.481 97.5251 910.894 93.1285 907 90C903.106 86.7411 897.49 85 891 85C885.289 85 880.375 86.5233 877 89C873.625 91.4767 872 94.959 872 99C872 102.78 873.664 105.784 876 108C878.336 110.216 881.366 111.696 885 113C888.634 114.173 893.64 115.566 900 117C909.346 119.216 916.159 121.654 922 124C927.841 126.346 932.846 130.395 937 136C941.283 141.475 944 148.354 944 158C944 166.473 941.283 173.743 937 180C932.717 186.257 926.788 191.611 919 195C911.342 198.389 902.124 200 892 200Z" fill="#00DC82"></path><path d="M1056 200H961V60H1054V87H990V116H1041V141H990V173H1056V200Z" fill="#00DC82"></path><path d="M1134 200C1120.76 200 1108.64 196.996 1098 191C1087.49 184.873 1080.1 176.559 1074 166C1068.03 155.311 1065 143.296 1065 130C1065 116.704 1068.03 104.559 1074 94C1080.1 83.311 1088.49 74.9963 1099 69C1109.64 62.8734 1120.76 60 1134 60C1147.11 60 1159.49 62.8734 1170 69C1180.64 74.9963 1189.03 83.311 1195 94C1201.1 104.559 1204 116.704 1204 130C1204 143.296 1201.1 155.311 1195 166C1189.03 176.559 1180.64 184.873 1170 191C1159.49 196.996 1147.11 200 1134 200ZM1134 174C1141.66 174 1148.9 172.78 1155 169C1161.23 165.089 1165.63 159.778 1169 153C1172.5 146.222 1174 138.473 1174 130C1174 121.527 1172.5 113.778 1169 107C1165.63 100.222 1161.23 94.9106 1155 91C1148.9 87.0894 1141.66 85 1134 85C1126.34 85 1120.1 87.0894 1114 91C1107.9 94.9106 1102.5 100.222 1099 107C1095.63 113.778 1094 121.527 1094 130C1094 138.473 1095.63 146.222 1099 153C1102.5 159.778 1107.9 165.089 1114 169C1120.1 172.78 1126.34 174 1134 174Z" fill="#00DC82"></path>',8)]))}const Z0=qo(J0,[["render",Y0]]),Q0={},eb={class:"n-loading n-panel-grids-center"},tb={class:"flex flex-col animate-pulse items-center text-lg"};function nb(e,t){return G(),te("div",eb,[M("div",tb,[t[1]||(t[1]=M("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),et(e.$slots,"default",{},()=>[t[0]||(t[0]=ce(" Loading... "))])])])}const rb=qo(Q0,[["render",nb]]);let Ke=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function sb(e){return fl(e)}function fl(e){return Array.isArray(e)?ob(e):e instanceof RegExp?e:typeof e=="object"?ib(e):e}function ob(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=fl(e[n]);return t}function ib(e){let t={};for(let n in e)t[n]=fl(e[n]);return t}function nd(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function rd(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?rd(e.substring(0,e.length-1)):e.substr(~t+1)}var Ci=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Rs=class{static hasCaptures(e){return e===null?!1:(Ci.lastIndex=0,Ci.test(e))}static replaceCaptures(e,t,n){return e.replace(Ci,(r,s,o,i)=>{let a=n[parseInt(s||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function sd(e,t){return e<t?-1:e>t?1:0}function od(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=sd(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Kc(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function id(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var ad=class{constructor(e){k(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},ho=class{constructor(e,t,n){k(this,"_cachedMatchRoot",new ad(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(cb(e),t)}static createFromParsedTheme(e,t){return fb(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(s=>ab(e.parent,s.parentScopes));return r?new ld(r.fontStyle,r.foreground,r.background):null}},Si=class Us{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Us(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Us(n,t[r]);return n}push(t){return new Us(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 ab(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&&!lb(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function lb(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var ld=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function cb(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 h=0,d=f.length;h<d;h++)switch(f[h]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof i.settings.foreground=="string"&&Kc(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&Kc(i.settings.background)&&(u=i.settings.background);for(let f=0,h=a.length;f<h;f++){let p=a[f].trim().split(" "),g=p[p.length-1],y=null;p.length>1&&(y=p.slice(0,p.length-1),y.reverse()),n[r++]=new ub(g,y,s,l,c,u)}}return n}var ub=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}},Xt=(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))(Xt||{});function fb(e,t){e.sort((l,c)=>{let u=sd(l.scope,c.scope);return u!==0||(u=od(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.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 hb(t),i=new ld(n,o.getId(r),o.getId(s)),a=new pb(new ga(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let u=e[l];a.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new ho(o,i,a)}var hb=class{constructor(e){k(this,"_isFrozen");k(this,"_lastColorId");k(this,"_id2color");k(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},db=Object.freeze([]),ga=class cd{constructor(t,n,r,s,o){k(this,"scopeDepth");k(this,"parentScopes");k(this,"fontStyle");k(this,"foreground");k(this,"background");this.scopeDepth=t,this.parentScopes=n||db,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new cd(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)}},pb=class ma{constructor(t,n=[],r={}){k(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,s=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),s,o;if(r===-1?(s=t,o=""):(s=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(ma._cmpBySpecificity),n}insert(t,n,r,s,o,i){if(n===""){this._doInsertHere(t,r,s,o,i);return}let a=n.indexOf("."),l,c;a===-1?(l=n,c=""):(l=n.substring(0,a),c=n.substring(a+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new ma(this._mainRule.clone(),ga.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,c,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(od(l.parentScopes,n)===0){l.acceptOverwrite(t,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new ga(t,n,r,s,o))}},vr=class ut{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ut.getLanguageId(t),r=ut.getTokenType(t),s=ut.getFontStyle(t),o=ut.getForeground(t),i=ut.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=ut.getLanguageId(t),c=ut.getTokenType(t),u=ut.containsBalancedBrackets(t)?1:0,f=ut.getFontStyle(t),h=ut.getForeground(t),d=ut.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),s!==null&&(u=s?1:0),o!==-1&&(f=o),i!==0&&(h=i),a!==0&&(d=a),(l<<0|c<<8|u<<10|f<<11|h<<15|d<<24)>>>0}};function po(e,t){const n=[],r=gb(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 c=i();if(n.push({matcher:c,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return c=>!!l&&!l(c)}if(s==="("){s=r.next();const l=a();return s===")"&&(s=r.next()),l}if(Jc(s)){const l=[];do l.push(s),s=r.next();while(Jc(s));return c=>t(l,c)}return null}function i(){const l=[];let c=o();for(;c;)l.push(c),c=o();return u=>l.every(f=>f(u))}function a(){const l=[];let c=i();for(;c&&(l.push(c),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");c=i()}return u=>l.some(f=>f(u))}}function Jc(e){return!!e&&!!e.match(/[\w\.:]+/)}function gb(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 ud(e){typeof e.dispose=="function"&&e.dispose()}var is=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},mb=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},yb=class{constructor(){k(this,"_references",[]);k(this,"_seenReferenceKeys",new Set);k(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},_b=class{constructor(e,t){k(this,"seenFullScopeRequests",new Set);k(this,"seenPartialScopeRequests",new Set);k(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new is(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new yb;for(const n of e)wb(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof is){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 wb(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 is?Gs({baseGrammar:o,selfGrammar:s},r):ya(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 is(a))}function ya(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];go([r],t,n)}}function Gs(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&go(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&go(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function go(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?nd({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&go(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=fd(o);switch(i.kind){case 0:Gs({...t,selfGrammar:t.baseGrammar},n);break;case 1:Gs(t,n);break;case 2:ya(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?ya(i.ruleName,l,n):Gs(l,n)}else i.kind===4?n.add(new mb(i.scopeName,i.ruleName)):n.add(new is(i.scopeName));break}}}var bb=class{constructor(){k(this,"kind",0)}},vb=class{constructor(){k(this,"kind",1)}},Cb=class{constructor(e){k(this,"kind",2);this.ruleName=e}},Sb=class{constructor(e){k(this,"kind",3);this.scopeName=e}},xb=class{constructor(e,t){k(this,"kind",4);this.scopeName=e,this.ruleName=t}};function fd(e){if(e==="$base")return new bb;if(e==="$self")return new vb;const t=e.indexOf("#");if(t===-1)return new Sb(e);if(t===0)return new Cb(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new xb(n,r)}}var kb=/\\(\d+)/,Xc=/\\(\d+)/g,Ab=-1,hd=-2;var ms=class{constructor(e,t,n,r){k(this,"$location");k(this,"id");k(this,"_nameIsCapturing");k(this,"_name");k(this,"_contentNameIsCapturing");k(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Rs.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Rs.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${rd(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Rs.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Rs.replaceCaptures(this._contentName,e,t)}},Eb=class extends ms{constructor(t,n,r,s,o){super(t,n,r,s);k(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,s){throw new Error("Not supported!")}},Tb=class extends ms{constructor(t,n,r,s,o){super(t,n,r,null);k(this,"_match");k(this,"captures");k(this,"_cachedCompiledPatterns");this._match=new as(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ls,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Yc=class extends ms{constructor(t,n,r,s,o){super(t,n,r,s);k(this,"hasMissingPatterns");k(this,"patterns");k(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ls,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},_a=class extends ms{constructor(t,n,r,s,o,i,a,l,c,u){super(t,n,r,s);k(this,"_begin");k(this,"beginCaptures");k(this,"_end");k(this,"endHasBackReferences");k(this,"endCaptures");k(this,"applyEndPatternLast");k(this,"hasMissingPatterns");k(this,"patterns");k(this,"_cachedCompiledPatterns");this._begin=new as(o,this.id),this.beginCaptures=i,this._end=new as(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ls;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},mo=class extends ms{constructor(t,n,r,s,o,i,a,l,c){super(t,n,r,s);k(this,"_begin");k(this,"beginCaptures");k(this,"whileCaptures");k(this,"_while");k(this,"whileHasBackReferences");k(this,"hasMissingPatterns");k(this,"patterns");k(this,"_cachedCompiledPatterns");k(this,"_cachedCompiledWhilePatterns");this._begin=new as(o,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new as(a,hd),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new ls;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ls,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},dd=class Ge{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new Eb(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new Tb(t.$vscodeTextmateLocation,t.id,t.name,t.match,Ge._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=nd({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Yc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Ge._compilePatterns(o,n,r))}return t.while?new mo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ge._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Ge._compileCaptures(t.whileCaptures||t.captures,n,r),Ge._compilePatterns(t.patterns,n,r)):new _a(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ge._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Ge._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Ge._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let s=[];if(t){let o=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)s[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);let l=0;t[i].patterns&&(l=Ge.getCompiledRuleId(t[i],n,r)),s[a]=Ge.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return s}static _compilePatterns(t,n,r){let s=[];if(t)for(let o=0,i=t.length;o<i;o++){const a=t[o];let l=-1;if(a.include){const c=fd(a.include);switch(c.kind){case 0:case 1:l=Ge.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=Ge.getCompiledRuleId(u,n,r));break;case 3:case 4:const f=c.scopeName,h=c.kind===4?c.ruleName:null,d=n.getExternalGrammar(f,r);if(d)if(h){let p=d.repository[h];p&&(l=Ge.getCompiledRuleId(p,n,d.repository))}else l=Ge.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else l=Ge.getCompiledRuleId(a,n,r);if(l!==-1){const c=n.getRule(l);let u=!1;if((c instanceof Yc||c instanceof _a||c instanceof mo)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},as=class pd{constructor(t,n){k(this,"source");k(this,"ruleId");k(this,"hasAnchor");k(this,"hasBackReferences");k(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let s=0,o=[],i=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const c=t.charAt(a+1);c==="z"?(o.push(t.substring(s,a)),o.push("$(?!\\n)(?<!\\n)"),s=a+2):(c==="A"||c==="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=kb.test(this.source):this.hasBackReferences=!1}clone(){return new pd(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>t.substring(s.start,s.end));return Xc.lastIndex=0,this.source.replace(Xc,(s,o)=>id(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}},ls=class{constructor(){k(this,"_items");k(this,"_hasAnchors");k(this,"_cached");k(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Zc(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 Zc(e,r,this._items.map(s=>s.ruleId))}},Zc=class{constructor(e,t,n){k(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
20
- `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},xi=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Jt,Rb=(Jt=class{constructor(t,n){k(this,"_defaultAttributes");k(this,"_embeddedLanguagesMatcher");k(this,"_getBasicScopeAttributes",new ad(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new xi(n,r)}));this._defaultAttributes=new xi(t,8),this._embeddedLanguagesMatcher=new $b(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Jt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Jt.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},k(Jt,"_NULL_SCOPE_METADATA",new xi(0,0)),k(Jt,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Jt),$b=class{constructor(e){k(this,"values");k(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>id(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])}},Qc=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function gd(e,t,n,r,s,o,i,a){const l=t.content.length;let c=!1,u=-1;if(i){const d=Pb(e,t,n,r,s,o);s=d.stack,r=d.linePos,n=d.isFirstLine,u=d.anchorPosition}const f=Date.now();for(;!c;){if(a!==0&&Date.now()-f>a)return new Qc(s,!0);h()}return new Qc(s,!1);function h(){const d=Nb(e,t,n,r,s,u);if(!d){o.produce(s,l),c=!0;return}const p=d.captureIndices,g=d.matchedRuleId,y=p&&p.length>0?p[0].end>r:!1;if(g===Ab){const _=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),Or(e,t,n,s,o,_.endCaptures,p),o.produce(s,p[0].end);const v=s;if(s=s.parent,u=v.getAnchorPos(),!y&&v.getEnterPos()===r){s=v,o.produce(s,l),c=!0;return}}else{const _=e.getRule(g);o.produce(s,p[0].start);const v=s,m=_.getName(t.content,p),b=s.contentNameScopesList.pushAttributed(m,e);if(s=s.push(g,r,u,p[0].end===l,null,b,b),_ instanceof _a){const C=_;Or(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const E=C.getContentName(t.content,p),x=b.pushAttributed(E,e);if(s=s.withContentNameScopesList(x),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(_ instanceof mo){const C=_;Or(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const E=C.getContentName(t.content,p),x=b.pushAttributed(E,e);if(s=s.withContentNameScopesList(x),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(Or(e,t,n,s,o,_.captures,p),o.produce(s,p[0].end),s=s.pop(),!y){s=s.safePop(),o.produce(s,l),c=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function Pb(e,t,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const c=l.getRule(e);c instanceof mo&&a.push({rule:c,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:c,findOptions:u}=Mb(l.rule,e,l.stack.endRule,n,r===i),f=c.findNextMatchSync(t,r,u);if(f){if(f.ruleId!==hd){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),Or(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 Nb(e,t,n,r,s,o){const i=Ib(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=Ob(a,e,t,n,r,s,o);if(!l)return i;if(!i)return l;const c=i.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:i}function Ib(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=md(i,e,s.endRule,n,r===o),c=a.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Ob(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,c,u=0;const f=o.contentNameScopesList.getScopeNames();for(let h=0,d=e.length;h<d;h++){const p=e[h];if(!p.matcher(f))continue;const g=t.getRule(p.ruleId),{ruleScanner:y,findOptions:_}=md(g,t,null,r,s===i),v=y.findNextMatchSync(n,s,_);if(!v)continue;const m=v.captureIndices[0].start;if(!(m>=a)&&(a=m,l=v.captureIndices,c=v.ruleId,u=p.priority,a===s))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function md(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function Mb(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function Or(e,t,n,r,s,o,i){if(o.length===0)return;const a=t.content,l=Math.min(o.length,i.length),c=[],u=i[0].end;for(let f=0;f<l;f++){const h=o[f];if(h===null)continue;const d=i[f];if(d.length===0)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,d.start):s.produce(r,d.start),h.retokenizeCapturedWithRuleId){const g=h.getName(a,i),y=r.contentNameScopesList.pushAttributed(g,e),_=h.getContentName(a,i),v=y.pushAttributed(_,e),m=r.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,y,v),b=e.createOnigString(a.substring(0,d.end));gd(e,b,n&&d.start===0,d.start,m,s,!1,0),ud(b);continue}const p=h.getName(a,i);if(p!==null){const y=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);c.push(new Lb(y,d.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Lb=class{constructor(e,t){k(this,"scopes");k(this,"endPos");this.scopes=e,this.endPos=t}};function Db(e,t,n,r,s,o,i,a){return new Fb(e,t,n,r,s,o,i,a)}function eu(e,t,n,r,s){const o=po(t,yo),i=dd.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 yo(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let s=n;s<t.length;s++)if(Hb(t[s],r))return n=s+1,!0;return!1})}function Hb(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Fb=class{constructor(e,t,n,r,s,o,i,a){k(this,"_rootId");k(this,"_lastRuleId");k(this,"_ruleId2desc");k(this,"_includedGrammars");k(this,"_grammarRepository");k(this,"_grammar");k(this,"_injections");k(this,"_basicScopeAttributesProvider");k(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new Rb(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=tu(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const c=po(l,yo);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const s=r.injections;if(s)for(let i in s)eu(t,i,s[i],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(i=>{const a=this.getExternalGrammar(i);if(a){const l=a.injectionSelector;l&&eu(t,l,a,this,a)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=tu(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=dd.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===wa.NULL){s=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),f=vr.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),h=this.getRule(this._rootId).getName(null,null);let d;h?d=Vr.createRootAndLookUpScopeName(h,f,this):d=Vr.createRoot("unknown",f),t=new wa(null,this._rootId,-1,-1,!1,null,d,d)}else s=!1,t.reset();e=e+`
21
- `;const o=this.createOnigString(e),i=o.content.length,a=new jb(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=gd(this,o,s,0,t,a,!0,r);return ud(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function tu(e,t){return e=sb(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 Vr=class $t{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=Si.push(s,o.scopeNames),r=new $t(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new $t(null,new Si(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new Si(null,t),i=r.themeProvider.themeMatch(o),a=$t.mergeAttributes(n,s,i);return new $t(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return $t.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),vr.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return $t._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=$t._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=$t.mergeAttributes(t.tokenAttributes,s,i);return new $t(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((s=r.parent)==null?void 0:s.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},ht,wa=(ht=class{constructor(t,n,r,s,o,i,a,l){k(this,"_stackElementBrand");k(this,"_enterPos");k(this,"_anchorPos");k(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}equals(t){return t===null?!1:ht._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Vr.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(){ht._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new ht(this,t,n,r,s,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ht(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=Vr.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new ht(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Vr.fromExtension(r,n.contentNameScopesList))}},k(ht,"NULL",new ht(null,0,0,0,!1,null,null,null)),ht),Bb=class{constructor(e,t){k(this,"balancedBracketScopes");k(this,"unbalancedBracketScopes");k(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):po(n,yo).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>po(n,yo).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}},jb=class{constructor(e,t,n,r){k(this,"_emitBinaryTokens");k(this,"_lineText");k(this,"_tokens");k(this,"_binaryTokens");k(this,"_lastTokenEndIndex");k(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(e==null?void 0:e.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(i)&&(s=vr.set(s,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(s=vr.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},Ub=class{constructor(e,t){k(this,"_grammars",new Map);k(this,"_rawGrammars",new Map);k(this,"_injectionGrammars",new Map);k(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,Db(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},Gb=class{constructor(t){k(this,"_options");k(this,"_syncRegistry");k(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Ub(ho.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(ho.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 Bb(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new _b(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)}},ba=wa.NULL;const Wb=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ys{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ys.prototype.normal={};ys.prototype.property={};ys.prototype.space=void 0;function yd(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new ys(n,r,t)}function va(e){return e.toLowerCase()}class rt{constructor(t,n){this.attribute=n,this.property=t}}rt.prototype.attribute="";rt.prototype.booleanish=!1;rt.prototype.boolean=!1;rt.prototype.commaOrSpaceSeparated=!1;rt.prototype.commaSeparated=!1;rt.prototype.defined=!1;rt.prototype.mustUseProperty=!1;rt.prototype.number=!1;rt.prototype.overloadedBoolean=!1;rt.prototype.property="";rt.prototype.spaceSeparated=!1;rt.prototype.space=void 0;let zb=0;const oe=Kn(),$e=Kn(),_d=Kn(),O=Kn(),Ce=Kn(),dr=Kn(),at=Kn();function Kn(){return 2**++zb}const Ca=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:$e,commaOrSpaceSeparated:at,commaSeparated:dr,number:O,overloadedBoolean:_d,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),ki=Object.keys(Ca);class hl extends rt{constructor(t,n,r,s){let o=-1;if(super(t,n),nu(this,"space",s),typeof r=="number")for(;++o<ki.length;){const i=ki[o];nu(this,ki[o],(r&Ca[i])===Ca[i])}}}hl.prototype.defined=!0;function nu(e,t,n){n&&(e[t]=n)}function kr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new hl(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[va(r)]=r,n[va(o.attribute)]=r}return new ys(t,n,e.space)}const wd=kr({properties:{ariaActiveDescendant:null,ariaAtomic:$e,ariaAutoComplete:null,ariaBusy:$e,ariaChecked:$e,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:$e,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:$e,ariaFlowTo:Ce,ariaGrabbed:$e,ariaHasPopup:null,ariaHidden:$e,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:O,ariaLive:null,ariaModal:$e,ariaMultiLine:$e,ariaMultiSelectable:$e,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:$e,ariaReadOnly:$e,ariaRelevant:null,ariaRequired:$e,ariaRoleDescription:Ce,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:$e,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function bd(e,t){return t in e?e[t]:t}function vd(e,t){return bd(e,t.toLowerCase())}const Vb=kr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:dr,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:Ce,autoFocus:oe,autoPlay:oe,blocking:Ce,capture:null,charSet:null,checked:oe,cite:null,className:Ce,cols:O,colSpan:null,content:null,contentEditable:$e,controls:oe,controlsList:Ce,coords:O|dr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:_d,draggable:$e,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:Ce,height:O,hidden:oe,high:O,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:oe,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:oe,optimum:O,pattern:null,ping:Ce,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:Ce,required:oe,reversed:oe,rows:O,rowSpan:O,sandbox:Ce,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:$e,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:$e,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:$e,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:vd}),qb=kr({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:at,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:Ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:dr,g2:dr,glyphName:dr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:at,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:at,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:at,rev:at,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:at,requiredFeatures:at,requiredFonts:at,requiredFormats:at,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:at,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:at,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:at,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bd}),Cd=kr({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()}}),Sd=kr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vd}),xd=kr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Kb=/[A-Z]/g,ru=/-[a-z]/g,Jb=/^data[-\w.:]+$/i;function Xb(e,t){const n=va(t);let r=t,s=rt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Jb.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ru,Zb);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ru.test(o)){let i=o.replace(Kb,Yb);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=hl}return new s(r,t)}function Yb(e){return"-"+e.toLowerCase()}function Zb(e){return e.charAt(1).toUpperCase()}const Qb=yd([wd,Vb,Cd,Sd,xd],"html"),kd=yd([wd,qb,Cd,Sd,xd],"svg"),su={}.hasOwnProperty;function ev(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&su.call(s,e)){const l=String(s[e]);i=su.call(a,l)?a[l]:r.unknown}if(i)return i.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const tv=/["&'<>`]/g,nv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rv=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,sv=/[|\\{}()[\]^$+*?.]/g,ou=new WeakMap;function ov(e,t){if(e=e.replace(t.subset?iv(t.subset):tv,r),t.subset||t.escapeOnly)return e;return e.replace(nv,n).replace(rv,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 iv(e){let t=ou.get(e);return t||(t=av(e),ou.set(e,t)),t}function av(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(sv,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const lv=/[\dA-Fa-f]/;function cv(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!lv.test(String.fromCharCode(t))?r:r+";"}const uv=/\d/;function fv(e,t,n){const r="&#"+String(e);return n&&t&&!uv.test(String.fromCharCode(t))?r:r+";"}const hv=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ai={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},dv=["cent","copy","divide","gt","lt","not","para","times"],Ad={}.hasOwnProperty,Sa={};let $s;for($s in Ai)Ad.call(Ai,$s)&&(Sa[Ai[$s]]=$s);const pv=/[^\dA-Za-z]/;function gv(e,t,n,r){const s=String.fromCharCode(e);if(Ad.call(Sa,s)){const o=Sa[s],i="&"+o;return n&&hv.includes(o)&&!dv.includes(o)&&(!r||t&&t!==61&&pv.test(String.fromCharCode(t)))?i:i+";"}return""}function mv(e,t,n){let r=cv(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=gv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=fv(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function pr(e,t){return ov(e,Object.assign({format:mv},t))}const yv=/^>|^->|<!--|-->|--!>|<!-$/g,_v=[">"],wv=["<",">"];function bv(e,t,n,r){return r.settings.bogusComments?"<?"+pr(e.value,Object.assign({},r.settings.characterReferences,{subset:_v}))+">":"<!--"+e.value.replace(yv,s)+"-->";function s(o){return pr(o,Object.assign({},r.settings.characterReferences,{subset:wv}))}}function vv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function iu(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;s!==-1;)r++,s=n.indexOf(t,s+t.length);return r}function Cv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Sv(e){return e.join(" ").trim()}const xv=/[ \t\n\f\r]/g;function dl(e){return typeof e=="object"?e.type==="text"?au(e.value):!1:au(e)}function au(e){return e.replace(xv,"")===""}const He=Td(1),Ed=Td(-1),kv=[];function Td(e){return t;function t(n,r,s){const o=n?n.children:kv;let i=(r||0)+e,a=o[i];if(!s)for(;a&&dl(a);)i+=e,a=o[i];return a}}const Av={}.hasOwnProperty;function Rd(e){return t;function t(n,r,s){return Av.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const pl=Rd({body:Tv,caption:Ei,colgroup:Ei,dd:Nv,dt:Pv,head:Ei,html:Ev,li:$v,optgroup:Iv,option:Ov,p:Rv,rp:lu,rt:lu,tbody:Lv,td:cu,tfoot:Dv,th:cu,thead:Mv,tr:Hv});function Ei(e,t,n){const r=He(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&dl(r.value.charAt(0)))}function Ev(e,t,n){const r=He(n,t);return!r||r.type!=="comment"}function Tv(e,t,n){const r=He(n,t);return!r||r.type!=="comment"}function Rv(e,t,n){const r=He(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function $v(e,t,n){const r=He(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Pv(e,t,n){const r=He(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Nv(e,t,n){const r=He(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function lu(e,t,n){const r=He(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Iv(e,t,n){const r=He(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Ov(e,t,n){const r=He(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Mv(e,t,n){const r=He(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Lv(e,t,n){const r=He(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Dv(e,t,n){return!He(n,t)}function Hv(e,t,n){const r=He(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function cu(e,t,n){const r=He(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Fv=Rd({body:Uv,colgroup:Gv,head:jv,html:Bv,tbody:Wv});function Bv(e){const t=He(e,-1);return!t||t.type!=="comment"}function jv(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function Uv(e){const t=He(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&dl(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Gv(e,t,n){const r=Ed(n,t),s=He(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&pl(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Wv(e,t,n){const r=Ed(n,t),s=He(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&pl(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const Ps={name:[[`
22
- \f\r &/=>`.split(""),`
23
- \f\r "&'/=>\``.split("")],[`\0
24
- \f\r "&'/<=>`.split(""),`\0
25
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
26
- \f\r &>`.split(""),`\0
27
- \f\r "&'<=>\``.split("")],[`\0
28
- \f\r "&'<=>\``.split(""),`\0
29
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function zv(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=kd);const c=Vv(r,e.properties),u=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,u&&(i=!1),(c||!o||!Fv(e,t,n))&&(a.push("<",e.tagName,c?" "+c:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(u),!i&&(!o||!pl(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function Vv(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=qv(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 qv(e,t,n){const r=Xb(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=pr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Ps.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Cv:Sv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=pr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ps.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&iu(n,i)>iu(n,e.alternative)&&(i=e.alternative),a=i+pr(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?Ps.single:Ps.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Kv=["<","&"];function $d(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:pr(e.value,Object.assign({},r.settings.characterReferences,{subset:Kv}))}function Jv(e,t,n,r){return r.settings.allowDangerousHtml?e.value:$d(e,t,n,r)}function Xv(e,t,n,r){return r.all(e)}const Yv=ev("type",{invalid:Zv,unknown:Qv,handlers:{comment:bv,doctype:vv,element:zv,raw:Jv,root:Xv,text:$d}});function Zv(e){throw new Error("Expected node, not `"+e+"`")}function Qv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const e1={},t1={},n1=[];function r1(e,t){const n=t||e1,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:s1,all:o1,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||Wb,characterReferences:n.characterReferences||t1,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?kd:Qb,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function s1(e,t,n){return Yv(e,t,n,this)}function o1(e){const t=[],n=e&&e.children||n1;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function _o(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function Nn(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function i1(e){return Array.isArray(e)?e:[e]}async function Pd(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function gl(e){return!e||["plaintext","txt","text","plain"].includes(e)}function a1(e){return e==="ansi"||gl(e)}function ml(e){return e==="none"}function l1(e){return ml(e)}function Nd(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function Ko(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let i=0;i<n.length;i+=2){const a=t?n[i]+(n[i+1]||""):n[i];s.push([a,r]),r+=n[i].length,r+=((o=n[i+1])==null?void 0:o.length)||0}return s}function c1(e){const t=Ko(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,i=0;for(const a of t){if(o<a.length)break;o-=a.length,i++}return{line:i,character:o}}function r(s,o){let i=0;for(let a=0;a<s;a++)i+=t[a].length;return i+=o,i}return{lines:t,indexToPos:n,posToIndex:r}}function u1(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 f1(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?u1(s,o):s})):e}function h1(e,t,n,r){const s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(l=>Id(e.variants[l])),i=new Set(o.flatMap(l=>Object.keys(l))),a={};return o.forEach((l,c)=>{for(const u of i){const f=l[u]||"inherit";if(c===0&&r)a[u]=f;else{const h=u==="color"?"":u==="background-color"?"-bg":`-${u}`,d=n+t[c]+(u==="color"?"":h);a[d]=f}}}),s.htmlStyle=a,s}function Id(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Xt.Italic&&(t["font-style"]="italic"),e.fontStyle&Xt.Bold&&(t["font-weight"]="bold"),e.fontStyle&Xt.Underline&&(t["text-decoration"]="underline")),t}function d1(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Od=new WeakMap;function Jo(e,t){Od.set(e,t)}function cs(e){return Od.get(e)}class Ar{constructor(...t){k(this,"_stacks",{});k(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,s]=t;this.lang=r,this._stacks={[s]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Ar(Object.fromEntries(i1(n).map(r=>[r,ba])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return p1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function p1(e){const t=[],n=new Set;function r(s){var i;if(n.has(s))return;n.add(s);const o=(i=s==null?void 0:s.nameScopesList)==null?void 0:i.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function g1(e,t){if(!(e instanceof Ar))throw new Ke("Invalid grammar state");return e.getInternalStack(t)}function m1(){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 Ke(`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 Ke(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);if(i.character<0||i.character>a.length)throw new Ke(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,offset:s.posToIndex(i.line,i.character)}}};const s=c1(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));y1(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var i;if(!((i=this.options.decorations)!=null&&i.length))return;const s=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return f1(n,s)},code(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const r=t(this),s=Array.from(n.children).filter(f=>f.type==="element"&&f.tagName==="span");if(s.length!==r.converter.lines.length)throw new Ke(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(f,h,d,p){const g=s[f];let y="",_=-1,v=-1;if(h===0&&(_=0),d===0&&(v=0),d===Number.POSITIVE_INFINITY&&(v=g.children.length),_===-1||v===-1)for(let b=0;b<g.children.length;b++)y+=Md(g.children[b]),_===-1&&y.length===h&&(_=b+1),v===-1&&y.length===d&&(v=b+1);if(_===-1)throw new Ke(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(v===-1)throw new Ke(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const m=g.children.slice(_,v);if(!p.alwaysWrap&&m.length===g.children.length)a(g,p,"line");else if(!p.alwaysWrap&&m.length===1&&m[0].type==="element")a(m[0],p,"token");else{const b={type:"element",tagName:"span",properties:{},children:m};a(b,p,"wrapper"),g.children.splice(_,m.length,b)}}function i(f,h){s[f]=a(s[f],h,"line")}function a(f,h,d){var y;const p=h.properties||{},g=h.transform||(_=>_);return f.tagName=h.tagName||"span",f.properties={...f.properties,...p,class:f.properties.class},(y=h.properties)!=null&&y.class&&Nd(f,h.properties.class),f=g(f,d)||f,f}const l=[],c=r.decorations.sort((f,h)=>h.start.offset-f.start.offset||f.end.offset-h.end.offset);for(const f of c){const{start:h,end:d}=f;if(h.line===d.line)o(h.line,h.character,d.character,f);else if(h.line<d.line){o(h.line,h.character,Number.POSITIVE_INFINITY,f);for(let p=h.line+1;p<d.line;p++)l.unshift(()=>i(p,f));o(d.line,0,d.character,f)}}l.forEach(f=>f())}}}function y1(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ke(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const s=e[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,i=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||i||a||l){if(o&&i||a&&l)continue;throw new Ke(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Md(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Md).join(""):""}const _1=[m1()];function wo(e){return[...e.transformers||[],..._1]}var In=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ti={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function w1(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function uu(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function b1(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)Ti[r]&&t.push({type:"setDecoration",value:Ti[r]});else if(r<=29){const s=Ti[r-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:In[r-30]}});else if(r===38){const s=uu(e);s&&t.push({type:"setForegroundColor",value:s})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:In[r-40]}});else if(r===48){const s=uu(e);s&&t.push({type:"setBackgroundColor",value:s})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:In[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:In[r-100+8]}})}return t}function v1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=w1(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=b1(i.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}o=i.position}while(o<r.length);return s}}}var C1={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function S1(e=C1){function t(a){return e[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let c=0;c<In.length;c++)r.push(t(In[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let f=0;f<6;f++)r.push(n([a[c],a[u],a[f]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(a){return s()[a]}function i(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return o(a.index)}}return{value:i}}function x1(e,t,n){const r=_o(e,n),s=Ko(t),o=S1(Object.fromEntries(In.map(a=>{var l;return[a,(l=e.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),i=v1();return s.map(a=>i.parse(a[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?o.value(l.background):e.bg,u=l.foreground?o.value(l.foreground):e.fg):(c=l.foreground?o.value(l.foreground):e.fg,u=l.background?o.value(l.background):void 0),c=Nn(c,r),u=Nn(u,r),l.decorations.has("dim")&&(c=k1(c));let f=Xt.None;return l.decorations.has("bold")&&(f|=Xt.Bold),l.decorations.has("italic")&&(f|=Xt.Italic),l.decorations.has("underline")&&(f|=Xt.Underline),{content:l.value,offset:a[1],color:c,bgColor:u,fontStyle:f}}))}function k1(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function yl(e,t,n={}){const{lang:r="text",theme:s=e.getLoadedThemes()[0]}=n;if(gl(r)||ml(s))return Ko(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(s);if(r==="ansi")return x1(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ke(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ke(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return E1(t,a,o,i,n)}function A1(...e){if(e.length===2)return cs(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(gl(s)||ml(o))throw new Ke("Plain language does not have grammar state");if(s==="ansi")throw new Ke("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new Ar(bo(n,l,i,a,r).stateStack,l.name,i.name)}function E1(e,t,n,r,s){const o=bo(e,t,n,r,s),i=new Ar(bo(e,t,n,r,s).stateStack,t.name,n.name);return Jo(o.tokens,i),o.tokens}function bo(e,t,n,r,s){const o=_o(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=Ko(e);let c=s.grammarState?g1(s.grammarState,n.name)??ba:s.grammarContextCode!=null?bo(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ba,u=[];const f=[];for(let h=0,d=l.length;h<d;h++){const[p,g]=l[h];if(p===""){u=[],f.push([]);continue}if(i>0&&p.length>=i){u=[],f.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}let y,_,v;s.includeExplanation&&(y=t.tokenizeLine(p,c,a),_=y.tokens,v=0);const m=t.tokenizeLine2(p,c,a),b=m.tokens.length/2;for(let C=0;C<b;C++){const E=m.tokens[2*C],x=C+1<b?m.tokens[2*C+2]:p.length;if(E===x)continue;const L=m.tokens[2*C+1],H=Nn(r[vr.getForeground(L)],o),I=vr.getFontStyle(L),D={content:p.substring(E,x),offset:g+E,color:H,fontStyle:I};if(s.includeExplanation){const U=[];if(s.includeExplanation!=="scopeName")for(const ne of n.settings){let he;switch(typeof ne.scope){case"string":he=ne.scope.split(/,/).map(W=>W.trim());break;case"object":he=ne.scope;break;default:continue}U.push({settings:ne,selectors:he.map(W=>W.split(/ /))})}D.explanation=[];let J=0;for(;E+J<x;){const ne=_[v],he=p.substring(ne.startIndex,ne.endIndex);J+=he.length,D.explanation.push({content:he,scopes:s.includeExplanation==="scopeName"?T1(ne.scopes):R1(U,ne.scopes)}),v+=1}}u.push(D)}f.push(u),u=[],c=m.ruleStack}return{tokens:f,stateStack:c}}function T1(e){return e.map(t=>({scopeName:t}))}function R1(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:P1(e,o,t.slice(0,r))}}return n}function fu(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function $1(e,t,n){if(!fu(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)fu(e[r],n[s])&&(r-=1),s-=1;return r===-1}function P1(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if($1(i,t,n)){r.push(o);break}return r}function Ld(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),s=r.map(l=>{const c=yl(e,t,{...n,theme:l.theme}),u=cs(c),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:f}}),o=N1(...s.map(l=>l.tokens)),i=o[0].map((l,c)=>l.map((u,f)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=u.explanation),o.forEach((d,p)=>{const{content:g,explanation:y,offset:_,...v}=d[c][f];h.variants[r[p].color]=v}),h})),a=s[0].state?new Ar(Object.fromEntries(s.map(l=>{var c;return[l.theme,(c=l.state)==null?void 0:c.getInternalStack(l.theme)]})),s[0].state.lang):void 0;return a&&Jo(i,a),i}function N1(...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,c)=>l.push(o[c]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){const u=a[c];u.content.length===l?(o[c].push(u),i[c]+=1,a[c]=s[c][i[c]]):(o[c].push({...u,content:u.content.slice(0,l)}),a[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}function vo(e,t,n){let r,s,o,i,a,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-"}=n,f=Object.entries(n.themes).filter(y=>y[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,_)=>y.color===c?-1:_.color===c?1:0);if(f.length===0)throw new Ke("`themes` option must not be empty");const h=Ld(e,t,n);if(l=cs(h),c&&!f.find(y=>y.color===c))throw new Ke(`\`themes\` option must contain the defaultColor key \`${c}\``);const d=f.map(y=>e.getTheme(y.theme)),p=f.map(y=>y.color);o=h.map(y=>y.map(_=>h1(_,p,u,c))),l&&Jo(o,l);const g=f.map(y=>_o(y.theme,n));s=f.map((y,_)=>(_===0&&c?"":`${u+y.color}:`)+(Nn(d[_].fg,g[_])||"inherit")).join(";"),r=f.map((y,_)=>(_===0&&c?"":`${u+y.color}-bg:`)+(Nn(d[_].bg,g[_])||"inherit")).join(";"),i=`shiki-themes ${d.map(y=>y.name).join(" ")}`,a=c?void 0:[s,r].join(";")}else if("theme"in n){const c=_o(n.theme,n);o=yl(e,t,n);const u=e.getTheme(n.theme);r=Nn(u.bg,c),s=Nn(u.fg,c),i=u.name,l=cs(o)}else throw new Ke("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function Co(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>Co(e,s,o),codeToTokens:(s,o)=>vo(e,s,o)}){var d,p;let s=t;for(const g of wo(n))s=((d=g.preprocess)==null?void 0:d.call(r,s,n))||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:c,grammarState:u}=vo(e,s,n);const{mergeWhitespaces:f=!0}=n;f===!0?o=O1(o):f==="never"&&(o=M1(o));const h={...r,get source(){return s}};for(const g of wo(n))o=((p=g.tokens)==null?void 0:p.call(h,o))||o;return I1(o,{...n,fg:i,bg:a,themeName:l,rootStyle:c},h,u)}function I1(e,t,n,r=cs(e)){var p,g,y;const s=wo(t),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t;let c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([_])=>!_.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const f=[],h={...n,structure:a,addClassToHast:Nd,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return c},get code(){return u},get lines(){return f}};if(e.forEach((_,v)=>{var C,E;v&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
30
- `}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(const x of _){let L={type:"element",tagName:"span",properties:{...x.htmlAttrs},children:[{type:"text",value:x.content}]};const H=d1(x.htmlStyle||Id(x));H&&(L.properties.style=H);for(const I of s)L=((C=I==null?void 0:I.span)==null?void 0:C.call(h,L,v+1,b,m,x))||L;a==="inline"?i.children.push(L):a==="classic"&&m.children.push(L),b+=x.content.length}if(a==="classic"){for(const x of s)m=((E=x==null?void 0:x.line)==null?void 0:E.call(h,m,v+1))||m;f.push(m),o.push(m)}}),a==="classic"){for(const _ of s)u=((p=_==null?void 0:_.code)==null?void 0:p.call(h,u))||u;c.children.push(u);for(const _ of s)c=((g=_==null?void 0:_.pre)==null?void 0:g.call(h,c))||c;i.children.push(c)}let d=i;for(const _ of s)d=((y=_==null?void 0:_.root)==null?void 0:y.call(h,d))||d;return r&&Jo(d,r),d}function O1(e){return e.map(t=>{const n=[];let r="",s=0;return t.forEach((o,i)=>{const l=!(o.fontStyle&&o.fontStyle&Xt.Underline);l&&o.content.match(/^\s+$/)&&t[i+1]?(s||(s=o.offset),r+=o.content):r?(l?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=0,r=""):n.push(o)}),n})}function M1(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,s,o,i]=r;if(!s&&!i)return n;const a=[{...n,offset:n.offset+s.length,content:o}];return s&&a.unshift({content:s,offset:n.offset}),i&&a.push({content:i,offset:n.offset+s.length+o.length}),a}))}const L1=r1;function D1(e,t,n){var o;const r={meta:{},options:n,codeToHast:(i,a)=>Co(e,i,a),codeToTokens:(i,a)=>vo(e,i,a)};let s=L1(Co(e,t,n,r));for(const i of wo(n))s=((o=i.postprocess)==null?void 0:o.call(r,s,n))||s;return s}const hu={light:"#333333",dark:"#bbbbbb"},du={light:"#fffffe",dark:"#1e1e1e"},pu="__shiki_resolved";function _l(e){var a,l,c,u,f;if(e!=null&&e[pu])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const h=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;(a=h==null?void 0:h.settings)!=null&&a.foreground&&(r=h.settings.foreground),(l=h==null?void 0:h.settings)!=null&&l.background&&(n=h.settings.background),!r&&((c=t==null?void 0:t.colors)!=null&&c["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((u=t==null?void 0:t.colors)!=null&&u["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?hu.light:hu.dark),n||(n=t.type==="light"?du.light:du.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function i(h){var p;if(o.has(h))return o.get(h);s+=1;const d=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(p=t.colorReplacements)!=null&&p[`#${d}`]?i(h):(o.set(h,d),d)}t.settings=t.settings.map(h=>{var y,_;const d=((y=h.settings)==null?void 0:y.foreground)&&!h.settings.foreground.startsWith("#"),p=((_=h.settings)==null?void 0:_.background)&&!h.settings.background.startsWith("#");if(!d&&!p)return h;const g={...h,settings:{...h.settings}};if(d){const v=i(h.settings.foreground);t.colorReplacements[v]=h.settings.foreground,g.settings.foreground=v}if(p){const v=i(h.settings.background);t.colorReplacements[v]=h.settings.background,g.settings.background=v}return g});for(const h of Object.keys(t.colors||{}))if((h==="editor.foreground"||h==="editor.background"||h.startsWith("terminal.ansi"))&&!((f=t.colors[h])!=null&&f.startsWith("#"))){const d=i(t.colors[h]);t.colorReplacements[d]=t.colors[h],t.colors[h]=d}return Object.defineProperty(t,pu,{enumerable:!1,writable:!1,value:!0}),t}async function Dd(e){return Array.from(new Set((await Promise.all(e.filter(t=>!a1(t)).map(async t=>await Pd(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Hd(e){return(await Promise.all(e.map(async n=>l1(n)?null:_l(await Pd(n))))).filter(n=>!!n)}let H1=3;function F1(e,t=3){t>H1||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class ir extends Error{constructor(t){super(t),this.name="ShikiError"}}class B1 extends Gb{constructor(n,r,s,o={}){super(n);k(this,"_resolvedThemes",new Map);k(this,"_resolvedGrammars",new Map);k(this,"_langMap",new Map);k(this,"_langGraph",new Map);k(this,"_textmateThemeCache",new WeakMap);k(this,"_loadedThemesCache",null);k(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=s,this._alias=o,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=_l(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=ho.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new ir(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var i,a,l,c;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(u=>{var f;return(f=u.embeddedLangsLazy)==null?void 0:f.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(u=>{this._alias[u]=n.name}),this._loadedLanguagesCache=null,r.size)for(const u of r)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(a=(i=this._syncRegistry)==null?void 0:i._injectionGrammars)==null||a.delete(u.scopeName),(c=(l=this._syncRegistry)==null?void 0:l._grammars)==null||c.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),s=r.filter(([o,i])=>!i);if(s.length){const o=r.filter(([i,a])=>{var l;return a&&((l=a.embeddedLangs)==null?void 0:l.some(c=>s.map(([u])=>u).includes(c)))}).filter(i=>!s.includes(i));throw new ir(`Missing languages ${s.map(([i])=>`\`${i}\``).join(", ")}, required by ${o.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[o,i]of r)this._resolver.addLanguage(i);for(const[o,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class j1{constructor(t,n){k(this,"_langs",new Map);k(this,"_scopeToLang",new Map);k(this,"_injections",new Map);k(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Pr=0;function U1(e){Pr+=1,e.warnings!==!1&&Pr>=10&&Pr%10===0&&console.warn(`[Shiki] ${Pr} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new ir("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(_l),s=new j1(e.engine,n),o=new B1(s,r,n,e.langAlias);let i;function a(v){y();const m=o.getGrammar(typeof v=="string"?v:v.name);if(!m)throw new ir(`Language \`${v}\` not found, you may need to load it first`);return m}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const m=o.getTheme(v);if(!m)throw new ir(`Theme \`${v}\` not found, you may need to load it first`);return m}function c(v){y();const m=l(v);i!==v&&(o.setTheme(m),i=v);const b=o.getColorMap();return{theme:m,colorMap:b}}function u(){return y(),o.getLoadedThemes()}function f(){return y(),o.getLoadedLanguages()}function h(...v){y(),o.loadLanguages(v.flat(1))}async function d(...v){return h(await Dd(v))}function p(...v){y();for(const m of v.flat(1))o.loadTheme(m)}async function g(...v){return y(),p(await Hd(v))}function y(){if(t)throw new ir("Shiki instance has been disposed")}function _(){t||(t=!0,o.dispose(),Pr-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:f,loadLanguage:d,loadLanguageSync:h,loadTheme:g,loadThemeSync:p,dispose:_,[Symbol.dispose]:_}}async function G1(e){e.engine||F1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Hd(e.themes||[]),Dd(e.langs||[]),e.engine]);return U1({...e,themes:t,langs:n,engine:r})}async function W1(e){const t=await G1(e);return{getLastGrammarState:(...n)=>A1(t,...n),codeToTokensBase:(n,r)=>yl(t,n,r),codeToTokensWithThemes:(n,r)=>Ld(t,n,r),codeToTokens:(n,r)=>vo(t,n,r),codeToHast:(n,r)=>Co(t,n,r),codeToHtml:(n,r)=>D1(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}const Fe=String.raw,wl=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]);function z1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function It(e,t){if(!e)throw new Error(t??"Value expected");return e}const K={Alternator:"Alternator",Assertion:"Assertion",Backreference:"Backreference",Character:"Character",CharacterClassClose:"CharacterClassClose",CharacterClassHyphen:"CharacterClassHyphen",CharacterClassIntersector:"CharacterClassIntersector",CharacterClassOpen:"CharacterClassOpen",CharacterSet:"CharacterSet",Directive:"Directive",GroupClose:"GroupClose",GroupOpen:"GroupOpen",Subroutine:"Subroutine",Quantifier:"Quantifier",EscapedNumber:"EscapedNumber"},Te={any:"any",digit:"digit",dot:"dot",grapheme:"grapheme",hex:"hex",newline:"newline",posix:"posix",property:"property",space:"space",word:"word"},bl={flags:"flags",keep:"keep"},ze={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},tr={greedy:"greedy",lazy:"lazy",possessive:"possessive"},gu=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),Fd=Fe`\[\^?`,Bd=`c.? | C(?:-.?)?|${Fe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Fe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Fe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Fe`o\{[^\}]*\}?`}|${Fe`\d{1,3}`}`,jd=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ns=new RegExp(Fe`
31
- \\ (?:
32
- ${Bd}
33
- | [gk]<[^>]*>?
34
- | [gk]'[^']*'?
35
- | .
36
- )
37
- | \( (?:
38
- \? (?:
39
- [:=!>({]
40
- | <[=!]
41
- | <[^>]*>
42
- | '[^']*'
43
- | ~\|?
44
- | #(?:[^)\\]|\\.?)*
45
- | [^:)]*[:)]
46
- )?
47
- | \*
48
- )?
49
- | ${jd.source}
50
- | ${Fd}
51
- | .
52
- `.replace(/\s+/g,""),"gsu"),Ri=new RegExp(Fe`
53
- \\ (?:
54
- ${Bd}
55
- | .
56
- )
57
- | \[:(?:\^?\p{Alpha}+|\^):\]
58
- | ${Fd}
59
- | &&
60
- | .
61
- `.replace(/\s+/g,""),"gsu");function V1(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=tC(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX:()=>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(Ns.lastIndex=0;a=Ns.exec(e);){const f=q1(o,e,a[0],Ns.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(Ns.lastIndex=f.lastIndex)}const l=[];let c=0;i.forEach(f=>{f.type===K.GroupOpen&&(f.kind===ze.capturing?f.number=++c:f.raw==="("&&l.push(f))}),c||l.forEach((f,h)=>{f.kind=ze.capturing,f.number=h+1});const u=c||l.length;return i=i.map(f=>f.type===K.EscapedNumber?rC(f,u):f).flat(),{tokens:i,flags:r}}function q1(e,t,n,r){const[s,o]=n;if(s==="["){const i=K1(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:le(K.Assertion,n,{kind:n})};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:le(K.Subroutine,n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:le(K.Backreference,n)}}if(o==="K")return{token:le(K.Directive,n,{kind:bl.keep})};if(o==="N"||o==="R")return{token:le(K.CharacterSet,n,{kind:Te.newline,negate:o==="N"})};if(o==="O")return{token:le(K.CharacterSet,n,{kind:Te.any})};if(o==="X")return{token:le(K.CharacterSet,n,{kind:Te.grapheme})};const i=Ud(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(n==="(*")throw new Error(`Unsupported named callout "${n}"`);if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Y1(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:le(K.GroupOpen,n,{kind:ze.group})};if(n==="(?>")return{token:le(K.GroupOpen,n,{kind:ze.atomic})};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:le(K.GroupOpen,n,{kind:n[2]==="<"?ze.lookbehind:ze.lookahead,negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'")){const i=le(K.GroupOpen,n,{kind:ze.capturing});return n!=="("&&(i.name=n.slice(3,-1)),{token:i}}if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absent function kind "${n}"`);return{token:le(K.GroupOpen,n,{kind:ze.absent_repeater})}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:le(K.GroupClose,n)}}if(n==="#"&&e.getCurrentModX()){const i=t.indexOf(`
62
- `,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)&&e.getCurrentModX()){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}if(n===".")return{token:le(K.CharacterSet,n,{kind:Te.dot})};if(n==="^"||n==="$"){const i=e.singleline?{"^":Fe`\A`,$:Fe`\Z`}[n]:n;return{token:le(K.Assertion,n,{kind:i})}}return n==="|"?{token:le(K.Alternator,n)}:jd.test(n)?{token:Z1(n)}:(Gd(n),{token:le(K.Character,n,{value:n.codePointAt(0)})})}function K1(e,t,n){const r=[le(K.CharacterClassOpen,t,{negate:t[1]==="^"})];let s=1,o;for(Ri.lastIndex=n;o=Ri.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(le(K.CharacterClassOpen,i,{negate:i[1]==="^"}));else if(i==="]"){if(r.at(-1).type===K.CharacterClassOpen)r.push(le(K.Character,i,{value:93}));else if(s--,r.push(le(K.CharacterClassClose,i)),!s)break}else{const a=J1(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:Ri.lastIndex||e.length}}function J1(e){if(e[0]==="\\")return Ud(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!wl.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return le(K.CharacterSet,e,{kind:Te.posix,value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?le(K.CharacterClassHyphen,e):e==="&&"?le(K.CharacterClassIntersector,e):(Gd(e),le(K.Character,e,{value:e.codePointAt(0)}))}function Ud(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return X1(e);if("dDhHsSwW".includes(n))return Q1(e);if(e.startsWith(Fe`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return eC(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 le(K.Character,a,{value:i.codePointAt(0)})})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return le(K.Character,e,{value:nC(e)});if(gu.has(n))return le(K.Character,e,{value:gu.get(n)});if(/\d/.test(n))return le(K.EscapedNumber,e,{inCharClass:t});if(e==="\\")throw new Error(Fe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return le(K.Character,e,{value:e.codePointAt(1)});throw new Error(`Unexpected escape "${e}"`)}function le(e,t,n){return{type:e,raw:t,...n}}function X1(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 le(K.Character,e,{value:t.toUpperCase().codePointAt(0)-64})}function Y1(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=mu(n),i=mu(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),le(K.Directive,e,{kind:bl.flags,flags:a});if(e.endsWith(":")){t.pushModX(s),t.numOpenGroups++;const l=le(K.GroupOpen,e,{kind:ze.group});return(o||i)&&(l.flags=a),l}throw new Error(`Unexpected flag modifier "${e}"`)}function Z1(e){const t={};if(e[0]==="{"){const{min:n,max:r}=/^\{(?<min>\d*)(?:,(?<max>\d*))?/.exec(e).groups,s=1e5;if(+n>s||+r>s)throw new Error("Quantifier value unsupported in Oniguruma");t.min=+n,t.max=r===void 0?+n:r===""?1/0:+r,t.kind=e.endsWith("?")?tr.lazy:tr.greedy}else t.min=e[0]==="+"?1:0,t.max=e[0]==="?"?1:1/0,t.kind=e[1]==="+"?tr.possessive:e[1]==="?"?tr.lazy:tr.greedy;return le(K.Quantifier,e,t)}function Q1(e){const t=e[1].toLowerCase();return le(K.CharacterSet,e,{kind:{d:Te.digit,h:Te.hex,s:Te.space,w:Te.word}[t],negate:e[1]!==t})}function eC(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups,s=t==="P"&&!n||t==="p"&&!!n;return le(K.CharacterSet,e,{kind:Te.property,value:r,negate:s})}function mu(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function tC(e){if(!/^[imxDPSW]*$/.test(e))throw new Error(`Flags "${e}" includes unsupported value`);const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1};for(const n of e)t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0;return t}function nC(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 rC(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[le(K.Backreference,n)];const o=[],i=s.match(/^[0-7]+|\d/g);for(let a=0;a<i.length;a++){const l=i[a];let c;if(a===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(Fe`Octal encoded byte above 177 unsupported "${n}"`)}else c=l.codePointAt(0);o.push(le(K.Character,(a===0?"\\":"")+l,{value:c}))}return o}function Gd(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`)}const N={AbsentFunction:"AbsentFunction",Alternative:"Alternative",Assertion:"Assertion",Backreference:"Backreference",CapturingGroup:"CapturingGroup",Character:"Character",CharacterClass:"CharacterClass",CharacterClassRange:"CharacterClassRange",CharacterSet:"CharacterSet",Directive:"Directive",Flags:"Flags",Group:"Group",LookaroundAssertion:"LookaroundAssertion",Pattern:"Pattern",Quantifier:"Quantifier",Regex:"Regex",Subroutine:"Subroutine",Recursion:"Recursion"},Wd={repeater:"repeater"},ye={grapheme_boundary:"grapheme_boundary",line_end:"line_end",line_start:"line_start",search_start:"search_start",string_end:"string_end",string_end_newline:"string_end_newline",string_start:"string_start",word_boundary:"word_boundary"},zt={union:"union",intersection:"intersection"},ke=Te,qr=bl,xa=tr,cn={lookahead:"lookahead",lookbehind:"lookbehind"};function zd(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=V1(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s={capturingGroups:[],current:0,hasNumberedRef:!1,namedGroupsByName:new Map,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],token:null,tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:o};function o(h,d){const p=r.tokens[s.current];switch(s.parent=h,s.token=p,s.current++,p.type){case K.Alternator:return Zt();case K.Assertion:return hC(p);case K.Backreference:return sC(s);case K.Character:return vl(p.value,{useLastValid:!!d.isCheckingRangeEnd});case K.CharacterClassHyphen:return oC(s,d);case K.CharacterClassOpen:return iC(s,d);case K.CharacterSet:return aC(s);case K.Directive:return gC(It(qr[p.kind],`Unexpected directive kind "${p.kind}"`),{flags:p.flags});case K.GroupOpen:return lC(s,d);case K.Quantifier:return cC(s);case K.Subroutine:return uC(s);default:throw new Error(`Unexpected token type "${p.type}"`)}}const i=wC(yC(),mC(r.flags));let a=i.pattern.alternatives[0];for(;s.current<r.tokens.length;){const h=o(a,{});h.type===N.Alternative?(i.pattern.alternatives.push(h),a=h):a.elements.push(h)}const{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:f}=s;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:h}of f)if(typeof h=="number"){if(h>l.length)throw new Error("Subroutine uses a group number that's not defined")}else if(u.has(h)){if(u.get(h).length>1)throw new Error(Fe`Subroutine uses a duplicate group name "\g<${h}>"`)}else throw new Error(Fe`Subroutine uses a group name that's not defined "\g<${h}>"`);return i}function sC(e){const{raw:t}=e.token,n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),s=(o,i=!1)=>{const a=e.capturingGroups.length;let l=!1;if(o>a)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,ka(i?a+1-o:o,{orphan:l})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return ka(r)}return s(+r)}function oC(e,t){const{parent:n,tokens:r,walk:s}=e,o=n.elements.at(-1),i=r[e.current];if(!t.isCheckingRangeEnd&&o&&o.type!==N.CharacterClass&&o.type!==N.CharacterClassRange&&i&&i.type!==K.CharacterClassOpen&&i.type!==K.CharacterClassClose&&i.type!==K.CharacterClassIntersector){const a=s(n,{...t,isCheckingRangeEnd:!0});if(o.type===N.Character&&a.type===N.Character)return n.elements.pop(),pC(o,a);throw new Error("Invalid character class range")}return vl(45)}function iC(e,t){const{token:n,tokens:r,walk:s}=e,o=r[e.current],i=[Ws()];let a=yu(o);for(;a.type!==K.CharacterClassClose;){if(a.type===K.CharacterClassIntersector)i.push(Ws()),e.current++;else{const c=i.at(-1);c.elements.push(s(c,t))}a=yu(r[e.current],o)}const l=Ws({negate:n.negate});return i.length===1?l.elements=i[0].elements:(l.kind=zt.intersection,l.elements=i.map(c=>c.elements.length===1?c.elements[0]:c)),e.current++,l}function aC({token:e,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r}){let{kind:s,negate:o,value:i}=e;if(s===Te.property){const a=Xo(i);if(wl.has(a)&&!(r!=null&&r.has(a)))s=Te.posix,i=a;else return nr(i,{negate:o,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r})}return s===Te.posix?_C(i,{negate:o}):Aa(s,{negate:o})}function lC(e,t){const{token:n,tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=e;let l=dC(n);const c=l.type===N.AbsentFunction,u=l.kind===cn.lookbehind,f=u&&l.negate;if(l.type===N.CapturingGroup&&(s.push(l),l.name&&z1(o,l.name,[]).push(l)),c&&t.isInAbsentFunction)throw new Error("Nested absent function not supported by Oniguruma");let h=_u(r[e.current]);for(;h.type!==K.GroupClose;){if(h.type===K.Alternator)l.alternatives.push(Zt()),e.current++;else{const d=l.alternatives.at(-1),p=a(d,{...t,isInAbsentFunction:t.isInAbsentFunction||c,isInLookbehind:t.isInLookbehind||u,isInNegLookbehind:t.isInNegLookbehind||f});if(d.elements.push(p),(u||t.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(f||t.isInNegLookbehind){if(p.kind===cn.lookahead||p.type===N.CapturingGroup)throw new Error(g)}else if(p.kind===cn.lookahead||p.kind===cn.lookbehind&&p.negate)throw new Error(g)}}h=_u(r[e.current])}return e.current++,l}function cC({token:e,parent:t}){const{min:n,max:r,kind:s}=e,o=t.elements.at(-1);if(!o||o.type===N.Assertion||o.type===N.Directive||o.type===N.LookaroundAssertion)throw new Error("Quantifier requires a repeatable token");const i=Kd(o,n,r,It(xa[s],`Unexpected quantifier kind "${s}"`));return t.elements.pop(),i}function uC(e){const{token:t,capturingGroups:n,subroutines:r}=e;let s=t.raw.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const a=+o.groups.num,l=n.length;if(e.hasNumberedRef=!0,s={"":a,"+":l+a,"-":l+1-a}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const i=bC(s);return r.push(i),i}function fC(e){return{type:N.AbsentFunction,kind:e,alternatives:[Zt()]}}function Zt(){return{type:N.Alternative,elements:[]}}function Vd(e,t){const n={type:N.Assertion,kind:e};return(e===ye.word_boundary||e===ye.grapheme_boundary)&&(n.negate=!!(t!=null&&t.negate)),n}function hC({kind:e}){return Vd(It({"^":ye.line_start,$:ye.line_end,"\\A":ye.string_start,"\\b":ye.word_boundary,"\\B":ye.word_boundary,"\\G":ye.search_start,"\\y":ye.grapheme_boundary,"\\Y":ye.grapheme_boundary,"\\z":ye.string_end,"\\Z":ye.string_end_newline}[e],`Unexpected assertion kind "${e}"`),{negate:e===Fe`\B`||e===Fe`\Y`})}function ka(e,t){const n=!!(t!=null&&t.orphan);return{type:N.Backreference,ref:e,...n&&{orphan:n}}}function dC({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case ze.absent_repeater:return fC(Wd.repeater);case ze.atomic:return vt({atomic:!0});case ze.capturing:return qd(s,n);case ze.group:return vt({flags:e});case ze.lookahead:case ze.lookbehind:return Kr({behind:t===ze.lookbehind,negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function qd(e,t){const n=t!==void 0;if(n&&!vC(t))throw new Error(`Group name "${t}" invalid in Oniguruma`);return{type:N.CapturingGroup,number:e,...n&&{name:t},alternatives:[Zt()]}}function vl(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:N.Character,value:e}}function Ws(e){const t={kind:zt.union,negate:!1,...e};return{type:N.CharacterClass,kind:t.kind,negate:t.negate,elements:[]}}function pC(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:N.CharacterClassRange,min:e,max:t}}function Aa(e,t){const n=!!(t!=null&&t.negate),r={type:N.CharacterSet,kind:It(ke[e],`Unexpected character set kind "${e}"`)};return(e===Te.digit||e===Te.hex||e===Te.newline||e===Te.space||e===Te.word)&&(r.negate=n),(e===Te.grapheme||e===Te.newline&&!n)&&(r.variableLength=!0),r}function gC(e,t){const n={type:N.Directive,kind:e};return e===qr.flags&&(n.flags=t.flags),n}function mC(e){return{type:N.Flags,...e}}function vt(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;return{type:N.Group,...t&&{atomic:t},...n&&{flags:n},alternatives:[Zt()]}}function Kr(e){const t={behind:!1,negate:!1,...e};return{type:N.LookaroundAssertion,kind:t.behind?cn.lookbehind:cn.lookahead,negate:t.negate,alternatives:[Zt()]}}function yC(){return{type:N.Pattern,alternatives:[Zt()]}}function _C(e,t){const n=!!(t!=null&&t.negate);if(!wl.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:N.CharacterSet,kind:ke.posix,value:e,negate:n}}function Kd(e,t,n,r=xa.greedy){const s={type:N.Quantifier,min:t,max:n,kind:r,element:e};return n<t?{...s,min:n,max:t,kind:xa.possessive}:s}function wC(e,t){return{type:N.Regex,pattern:e,flags:t}}function bC(e){return{type:N.Subroutine,ref:e}}function nr(e,t){var s;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(s=n.unicodePropertyMap)==null?void 0:s.get(Xo(e));if(!r){if(n.normalizeUnknownPropertyNames)r=CC(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Fe`Invalid Unicode property "\p{${e}}"`)}return{type:N.CharacterSet,kind:ke.property,value:r??e,negate:n.negate}}function vC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function CC(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Xo(e){return e.replace(/[- _]+/g,"").toLowerCase()}function yu(e,t){return It(e,`${(t==null?void 0:t.value)===93?"Empty":"Unclosed"} character class`)}function _u(e){return It(e,"Unclosed group")}const Cl=String.raw,wu=Cl`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`,bu=Cl`\u{E0061}-\u{E007A}`,SC=()=>new RegExp(Cl`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${bu}]{2}[\u{E0030}-\u{E0039}${bu}]{1,3}\u{E007F}|${wu}(?:\u200D${wu})*`,"gu");function Jr(e,t,n=null){function r(o,i){for(let a=0;a<o.length;a++){const l=s(o[a],i,a,o);a=Math.max(-1,a+l)}}function s(o,i=null,a=null,l=null){var _,v;const c="Container expected";let u=0,f=!1;const h={node:o,parent:i,key:a,container:l,root:e,remove(){It(l,c).splice(Math.max(0,a+u),1),u--,f=!0},removeAllNextSiblings(){return It(l,c).splice(a+1)},removeAllPrevSiblings(){const m=a+u;return u-=m,It(l,c).splice(0,Math.max(0,m))},replaceWith(m,b={}){const C=!!b.traverse;l?l[Math.max(0,a+u)]=m:i[a]=m,C&&s(m,i,a,l),f=!0},replaceWithMultiple(m,b={}){const C=!!b.traverse;if(It(l,c).splice(Math.max(0,a+u),1,...m),u+=m.length-1,C){let E=0;for(let x=0;x<m.length;x++)E+=s(m[x],i,a+x+E,l)}f=!0},skip(){f=!0}},d=t["*"],p=t[o.type],g=typeof d=="function"?d:d==null?void 0:d.enter,y=typeof p=="function"?p:p==null?void 0:p.enter;if(g==null||g(h,n),y==null||y(h,n),!f)switch(o.type){case N.Regex:s(o.pattern,o,"pattern"),s(o.flags,o,"flags");break;case N.Alternative:case N.CharacterClass:r(o.elements,o);break;case N.Assertion:case N.Backreference:case N.Character:case N.CharacterSet:case N.Directive:case N.Flags:case N.Recursion:case N.Subroutine:break;case N.AbsentFunction:case N.CapturingGroup:case N.Group:case N.Pattern:r(o.alternatives,o);break;case N.CharacterClassRange:s(o.min,o,"min"),s(o.max,o,"max");break;case N.LookaroundAssertion:r(o.alternatives,o);break;case N.Quantifier:s(o.element,o,"element");break;default:throw new Error(`Unexpected node type "${o.type}"`)}return(_=d==null?void 0:d.exit)==null||_.call(d,h,n),(v=p==null?void 0:p.exit)==null||v.call(p,h,n),u}s(e)}const xC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function kC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function AC(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const gt=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:c,groups:{$skip:u}}=l;if(!u&&(!r||r===gt.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?gt.CHAR_CLASS:gt.DEFAULT,negated:o[o.length-1]}):a+=n;continue}c[0]==="["?(i++,o.push(c[1]==="^")):c==="]"&&i&&(i--,o.pop()),a+=c}return a}function Jd(e,t,n,r){Sl(e,t,n,r)}function EC(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===gt.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function Is(e,t,n){return!!EC(e,t,0,n)}function TC(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,s=0,o=1,i;for(;i=n.exec(e);){const[a]=i;if(a==="[")s++;else if(s)a==="]"&&s--;else if(a==="(")o++;else if(a===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const vu=new RegExp(String.raw`(?<noncapturingStart>${xC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function RC(e,t){const n=(t==null?void 0:t.hiddenCaptures)??[];let r=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",i=[0],a=[];let l=0,c=0,u=NaN,f;do{f=!1;let h=0,d=0,p=!1,g;for(vu.lastIndex=Number.isNaN(u)?0:u+o.length;g=vu.exec(e);){const{0:y,index:_,groups:{capturingStart:v,noncapturingStart:m}}=g;if(y==="[")h++;else if(h)y==="]"&&h--;else if(y===s&&!p)u=_,p=!0;else if(p&&m)d++;else if(v)p?d++:(l++,i.push(l+c));else if(y===")"&&p){if(!d){c++;const b=l+c;if(e=`${e.slice(0,u)}${o}${e.slice(u+s.length,_)}))<$$${b}>)${e.slice(_+1)}`,f=!0,a.push(b),kC(n,b),r.size){const C=new Map;r.forEach((E,x)=>{C.set(x>=b?x+1:x,E.map(L=>L>=b?L+1:L))}),r=C}break}d--}}}while(f);return n.push(...a),e=Sl(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:d,wrappedBackrefNum:p}})=>{if(d){const g=+d;if(g>i.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${i[g]}`}return`\\${p}`},gt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Xd=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,$i=new RegExp(String.raw`
63
- \\(?: \d+
64
- | c[A-Za-z]
65
- | [gk]<[^>]+>
66
- | [pPu]\{[^\}]+\}
67
- | u[A-Fa-f\d]{4}
68
- | x[A-Fa-f\d]{2}
69
- )
70
- | \((?: \? (?: [:=!>]
71
- | <(?:[=!]|[^>]+>)
72
- | [A-Za-z\-]+:
73
- | \(DEFINE\)
74
- ))?
75
- | (?<qBase>${Xd})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
76
- | \\?.
77
- `.replace(/\s+/g,""),"gsu");function $C(e){if(!new RegExp(`${Xd}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for($i.lastIndex=0;i=$i.exec(e);){const{0:a,index:l,groups:{qBase:c,qMod:u,invalidQ:f}}=i;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(u==="+"&&s&&!s.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${a}"`);let h=-1;if(/^\{\d+\}$/.test(c))e=AC(e,l+c.length,u,"");else{if(s===")"||s==="]"){const d=s===")"?n:r;if(d===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,d)}(?>${e.slice(d,l)}${c})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${c})${e.slice(l+a.length)}`;h+=4}$i.lastIndex+=h}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const dt=String.raw,PC=dt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Ea=dt`\(\?R=(?<rDepth>[^\)]+)\)|${PC}`,Yo=dt`\(\?<(?![=!])(?<captureName>[^>]+)>`,Yd=dt`${Yo}|(?<unnamed>\()(?!\?)`,Rn=new RegExp(dt`${Yo}|${Ea}|\(\?|\\?.`,"gsu"),Pi="Cannot use multiple overlapping recursions";function NC(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(Ea,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&Is(e,dt`\(\?\(DEFINE\)`,gt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=Is(e,dt`\\[1-9]`,gt.DEFAULT),a=new Map,l=[];let c=!1,u=0,f=0,h;for(Rn.lastIndex=0;h=Rn.exec(e);){const{0:d,groups:{captureName:p,rDepth:g,gRNameOrNum:y,gRDepth:_}}=h;if(d==="[")u++;else if(u)d==="]"&&u--;else if(g){if(Cu(g),c)throw new Error(Pi);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,h.index),m=e.slice(Rn.lastIndex);if(Is(m,Ea,gt.DEFAULT))throw new Error(Pi);const b=+g-1;e=Su(v,m,b,!1,n,o,f),s=ku(s,v,b,o.length,0,f);break}else if(y){Cu(_);let v=!1;for(const U of l)if(U.name===y||U.num===+y){if(v=!0,U.hasRecursedWithin)throw new Error(Pi);break}if(!v)throw new Error(dt`Recursive \g cannot be used outside the referenced group "${r==="external"?y:dt`\g<${y}&R=${_}>`}"`);const m=a.get(y),b=TC(e,m);if(i&&Is(b,dt`${Yo}|\((?!\?)`,gt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(m,h.index),E=b.slice(C.length+d.length),x=o.length,L=+_-1,H=Su(C,E,L,!0,n,o,f);s=ku(s,C,L,o.length-x,x,f);const I=e.slice(0,m),D=e.slice(m+b.length);e=`${I}${H}${D}`,Rn.lastIndex+=H.length-d.length-C.length-E.length,l.forEach(U=>U.hasRecursedWithin=!0),c=!0}else if(p)f++,a.set(String(f),Rn.lastIndex),a.set(p,Rn.lastIndex),l.push({num:f,name:p});else if(d[0]==="("){const v=d==="(";v&&(f++,a.set(String(f),Rn.lastIndex)),l.push(v?{num:f}:{})}else d===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function Cu(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Su(e,t,n,r,s,o,i){const a=new Set;r&&Jd(e+t,Yo,({groups:{captureName:c}})=>{a.add(c)},gt.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${xu(`(?:${e}`,"forward",...l)}(?:)${xu(`${t})`,"backward",...l)}${t}`}function xu(e,t,n,r,s,o,i){const l=u=>t==="forward"?u+2:n-u+2-1;let c="";for(let u=0;u<n;u++){const f=l(u);c+=Sl(e,dt`${Yd}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:d,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return h;const y=`_$${f}`;if(p||d){const _=i+o.length+1;return o.push(_),IC(s,_),p?h:`(?<${d}${y}>`}return dt`\k<${g}${y}>`},gt.DEFAULT)}return c}function IC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function ku(e,t,n,r,s,o){if(e.size&&r){let i=0;Jd(t,Yd,()=>i++,gt.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((c,u)=>{const f=(r-i*n)/n,h=i*n,d=u>a+i?u+r:u,p=[];for(const g of c)if(g<=a)p.push(g);else if(g>a+i+f)p.push(g+r);else if(g<=a+i)for(let y=0;y<=n;y++)p.push(g+i*y);else for(let y=0;y<=n;y++)p.push(g+h+f*y);l.set(d,p)}),l}return e}var Me=String.fromCodePoint,se=String.raw,Cr={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Cr.literalHyphenIncorrectlyCreatesRange=(()=>{if(!Cr.unicodeSets)return!1;try{new RegExp(se`[\d\-a]`,"v")}catch{return!0}return!1})();function So(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function us(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Ta(e,t){return Au[e]>=Au[t]}function OC(e,t){if(!e)throw new Error("Value expected");return e}var Au={ES2025:2025,ES2024:2024,ES2018:2018},MC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Zd(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!MC[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Cr.flagGroups?"ES2025":Cr.unicodeSets?"ES2024":"ES2018"),t}var LC="[ -\r ]",Ut=se`[\p{L}\p{M}\p{N}\p{Pc}]`,DC=new Set([Me(304),Me(305)]);function Qd(e){if(DC.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=BC.get(n),o=HC.get(n),i=FC.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),s&&t.add(s),t.add(n),o&&t.add(o),[...t]}var xl=new Map(`C Other
78
- Cc Control cntrl
79
- Cf Format
80
- Cn Unassigned
81
- Co Private_Use
82
- Cs Surrogate
83
- L Letter
84
- LC Cased_Letter
85
- Ll Lowercase_Letter
86
- Lm Modifier_Letter
87
- Lo Other_Letter
88
- Lt Titlecase_Letter
89
- Lu Uppercase_Letter
90
- M Mark Combining_Mark
91
- Mc Spacing_Mark
92
- Me Enclosing_Mark
93
- Mn Nonspacing_Mark
94
- N Number
95
- Nd Decimal_Number digit
96
- Nl Letter_Number
97
- No Other_Number
98
- P Punctuation punct
99
- Pc Connector_Punctuation
100
- Pd Dash_Punctuation
101
- Pe Close_Punctuation
102
- Pf Final_Punctuation
103
- Pi Initial_Punctuation
104
- Po Other_Punctuation
105
- Ps Open_Punctuation
106
- S Symbol
107
- Sc Currency_Symbol
108
- Sk Modifier_Symbol
109
- Sm Math_Symbol
110
- So Other_Symbol
111
- Z Separator
112
- Zl Line_Separator
113
- Zp Paragraph_Separator
114
- Zs Space_Separator
115
- ASCII
116
- ASCII_Hex_Digit AHex
117
- Alphabetic Alpha
118
- Any
119
- Assigned
120
- Bidi_Control Bidi_C
121
- Bidi_Mirrored Bidi_M
122
- Case_Ignorable CI
123
- Cased
124
- Changes_When_Casefolded CWCF
125
- Changes_When_Casemapped CWCM
126
- Changes_When_Lowercased CWL
127
- Changes_When_NFKC_Casefolded CWKCF
128
- Changes_When_Titlecased CWT
129
- Changes_When_Uppercased CWU
130
- Dash
131
- Default_Ignorable_Code_Point DI
132
- Deprecated Dep
133
- Diacritic Dia
134
- Emoji
135
- Emoji_Component EComp
136
- Emoji_Modifier EMod
137
- Emoji_Modifier_Base EBase
138
- Emoji_Presentation EPres
139
- Extended_Pictographic ExtPict
140
- Extender Ext
141
- Grapheme_Base Gr_Base
142
- Grapheme_Extend Gr_Ext
143
- Hex_Digit Hex
144
- IDS_Binary_Operator IDSB
145
- IDS_Trinary_Operator IDST
146
- ID_Continue IDC
147
- ID_Start IDS
148
- Ideographic Ideo
149
- Join_Control Join_C
150
- Logical_Order_Exception LOE
151
- Lowercase Lower
152
- Math
153
- Noncharacter_Code_Point NChar
154
- Pattern_Syntax Pat_Syn
155
- Pattern_White_Space Pat_WS
156
- Quotation_Mark QMark
157
- Radical
158
- Regional_Indicator RI
159
- Sentence_Terminal STerm
160
- Soft_Dotted SD
161
- Terminal_Punctuation Term
162
- Unified_Ideograph UIdeo
163
- Uppercase Upper
164
- Variation_Selector VS
165
- White_Space space
166
- XID_Continue XIDC
167
- XID_Start XIDS`.split(/\s/).map(e=>[Xo(e),e])),HC=new Map([["s",Me(383)],[Me(383),"s"]]),FC=new Map([[Me(223),Me(7838)],[Me(107),Me(8490)],[Me(229),Me(8491)],[Me(969),Me(8486)]]),BC=new Map([tn(453),tn(456),tn(459),tn(498),...Ni(8072,8079),...Ni(8088,8095),...Ni(8104,8111),tn(8124),tn(8140),tn(8188)]),jC=new Map([["alnum",se`[\p{Alpha}\p{Nd}]`],["alpha",se`\p{Alpha}`],["ascii",se`\p{ASCII}`],["blank",se`[\p{Zs}\t]`],["cntrl",se`\p{Cc}`],["digit",se`\p{Nd}`],["graph",se`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",se`\p{Lower}`],["print",se`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",se`[\p{P}\p{S}]`],["space",se`\p{space}`],["upper",se`\p{Upper}`],["word",se`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",se`\p{AHex}`]]);function UC(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function tn(e){const t=Me(e);return[t.toLowerCase(),t]}function Ni(e,t){return UC(e,t).map(n=>tn(n))}var ep=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function GC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};tp(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Ta(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};Jr(e,WC,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};Jr(e,zC,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Jr(e,VC,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var WC={AbsentFunction({node:e,parent:t,replaceWith:n}){const{kind:r,alternatives:s}=e;if(r===Wd.repeater){const o=Wt(vt(),[Sr(Kr({negate:!0}),s),nr("Any")]),i=Kd(o,0,1/0);o.parent=i,n(me(Wt(vt(),[i]),t),{traverse:!0})}else throw new Error(`Unexpected absent function kind "${r}"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.elements.filter(o=>o.kind===qr.flags);for(let o=n+1;o<t.alternatives.length;o++){const i=t.alternatives[o];us(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=rp(t.get(e));if(r){const s=me(Wt(vt({flags:r}),e.elements),e);e.elements=[s]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:i},a){const{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:f,supportedGNodes:h,wordIsAscii:d}=a;if(l===ye.grapheme_boundary)throw new Error(`Unsupported grapheme boundary "\\${c?"Y":"y"}"`);if(l===ye.line_end)i(me(Rt(se`(?=\z|\n)`),t));else if(l===ye.line_start)i(me(Rt(se`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l===ye.search_start)if(h.has(e))s.flags.sticky=!0,o();else{const p=r[n-1];if(p&&ZC(p))i(me(Wt(Kr({negate:!0})),t));else{if(f)throw new Error(se`Uses "\G" in a way that requires a subclass`);i(me(Vd(ye.string_start),t)),a.strategy="clip_search"}}else if(!(l===ye.string_end||l===ye.string_start))if(l===ye.string_end_newline)i(me(Rt(se`(?=\n?\z)`),t));else if(l===ye.word_boundary){if(!d&&!u){const p=`(?:(?<=${Ut})(?!${Ut})|(?<!${Ut})(?=${Ut}))`,g=`(?:(?<=${Ut})(?=${Ut})|(?<!${Ut})(?!${Ut}))`;i(me(Rt(c?g:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Oi(n)&&(n=Ii(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Oi(r)&&(r=Ii(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===zt.intersection&&n(me(Sr(Ws(),[e]),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:a}){const{kind:l,negate:c,value:u}=e;if(o&&(l===ke.digit||u==="digit")){n(me(Aa(ke.digit,{negate:c}),t));return}if(i&&(l===ke.space||u==="space")){n(me(Mi(Rt(LC),c),t));return}if(a&&(l===ke.word||u==="word")){n(me(Aa(ke.word,{negate:c}),t));return}if(l===ke.any)n(me(nr("Any"),t));else if(l===ke.digit)n(me(nr("Nd",{negate:c}),t));else if(l!==ke.dot)if(l===ke.grapheme){if(r==="strict")throw new Error(se`Use of "\X" requires non-strict accuracy`);const f=s?se`\p{RGI_Emoji}`:SC().source.replace(/\\u\{/g,"\\x{");n(me(Rt(se`(?>\r\n|${f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l===ke.hex)n(me(nr("AHex",{negate:c}),t));else if(l===ke.newline)n(me(Rt(c?`[^
168
- ]`:`(?>\r
169
- ?|[
170
- \v\f…\u2028\u2029])`),t));else if(l===ke.posix)if(!s&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[u];c&&(f=`\0-${Me(f.codePointAt(0)-1)}${Me(f.codePointAt(2)+1)}-􏿿`),n(me(Rt(`[${f}]`),t))}else n(me(Mi(Rt(jC.get(u)),c),t));else if(l===ke.property)xl.has(Xo(u))||(e.key="sc");else if(l===ke.space)n(me(nr("space",{negate:c}),t));else if(l===ke.word)n(me(Mi(Rt(Ut),c),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===qr.flags)!l.enable&&!l.disable?r():s(me(Wt(vt({flags:l}),i()),t),{traverse:!0});else if(a===qr.keep){const c=n.pattern.alternatives[0].elements[0],f=ap(n.pattern,h=>h.type===N.Group)&&c.alternatives.length===1?c:n.pattern;if(t.parent!==f||f.alternatives.length>1)throw new Error(se`Uses "\K" in a way that's unsupported`);s(me(Wt(Kr({behind:!0}),o()),t))}else throw new Error(`Unexpected directive kind "${a}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&n.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n===cn.lookbehind&&(t.passedLookbehind=!0)},Pattern:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,s=!1;for(const o of e.alternatives)if(o.elements.length===1&&o.elements[0].kind===ye.search_start)o.elements.pop();else{const i=op(o.elements);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):s=!0}r&&!s&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(se`Uses "\G" in a way that requires non-strict accuracy`)}},Quantifier({node:e}){if(e.element.type===N.Quantifier){const t=me(Wt(vt(),[e.element]),e);e.element=t}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Oi(n)&&(n=Ii(n,t),e.ref=n)}},zC={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 c=s.get(e);if(c&&a.has(e.number)){const f=me(Eu(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&us(i,e.name,[]);const u=i.get(e.name??e.number);for(let f=0;f<u.length;f++){const h=u[f];if(c===h.node||c&&c===h.origin||e===h.origin){u.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:c}),e.name&&i.get(e.name).push({node:e,origin:c}),e.name){const f=us(o,e.name,new Map);let h=!1;if(c)h=!0;else for(const d of f.values())if(!d.hasDuplicateNameToRemove){h=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:h})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=So(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Recursion({node:e,parent:t},{reffedNodesByReferencer:n}){const{ref:r}=e;let s=t;for(;(s=s.parent)&&!(s.type===N.CapturingGroup&&(s.name===r||s.number===r)););n.set(e,s)},Subroutine({node:e,parent:t,replaceWith:n},r){const{ref:s}=e,o=r.subroutineRefMap.get(s),i=s===0,a=i?Eu(0):np(o,r.groupOriginByCopy,null);let l=a;if(!i){const c=rp(JC(o,f=>f.type===N.Group&&!!f.flags)),u=c?So(r.globalFlags,c):r.globalFlags;qC(u,r.currentFlags)||(l=Wt(vt({flags:XC(u)}),[a]))}n(me(l,t),{traverse:!i})}},VC={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=>KC(i,e));if(!o.length)n(me(Wt(Kr({negate:!0})),t));else if(o.length>1){const i=o.map(a=>Sr(Zt(),[ka(a.number)]));n(me(Sr(vt(),i),t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Recursion({node:e},t){e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const s=qd();e.pattern.alternatives.at(-1).elements.push(s)}}}};function tp(e){Jr(e,{"*"({node:t,parent:n}){t.parent=n}})}function Sr(e,t){return t.forEach(n=>n.parent=e),e[kl(e)]=t,e}function qC(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function KC(e,t){let n=t;do{if(n.type===N.Pattern)return!1;if(n.type===N.Alternative)continue;if(n===e)return!1;const r=sp(n.parent);for(const s of r){if(s===n)break;if(s===e||ip(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function np(e,t,n,r){const s=Array.isArray(e)?[]:{};for(const[o,i]of Object.entries(e))o==="parent"?s.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?s[o]=np(i,t,s,n):(o==="type"&&i===N.CapturingGroup&&t.set(s,t.get(e)??e),s[o]=i);return s}function Eu(e){return{type:N.Recursion,ref:e}}function JC(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Ii(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function kl(e){for(const t of["alternatives","elements"])if(e[t])return t;return null}function rp(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{var o,i;(o=r.enable)!=null&&o[s]&&(delete n.disable[s],n.enable[s]=!0),(i=r.disable)!=null&&i[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function XC({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function sp(e){if(!e)throw new Error("Node expected");if(e.type===N.Quantifier)return[e.element];const t=kl(e);return t&&e[t]}function op(e){const t=e.find(n=>n.kind===ye.search_start||QC(n,{negate:!1})||!YC(n));if(!t)return null;if(t.kind===ye.search_start)return t;if(t.type===N.LookaroundAssertion)return t.alternatives[0].elements[0];if(t.type===N.CapturingGroup||t.type===N.Group){const n=[];for(const r of t.alternatives){const s=op(r.elements);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function ip(e,t){const n=sp(e)??[];for(const r of n)if(r===t||ip(r,t))return!0;return!1}function ap({alternatives:e},t){return e.length===1&&e[0].elements.length===1&&(!t||t(e[0].elements[0]))}function YC({type:e}){return e===N.Assertion||e===N.Directive||e===N.LookaroundAssertion}function ZC(e){const t=[N.Character,N.CharacterClass,N.CharacterSet];return t.includes(e.type)||e.type===N.Quantifier&&e.min&&t.includes(e.element.type)}function QC(e,t){const n={negate:null,...t};return e.type===N.LookaroundAssertion&&(n.negate===null||e.negate===n.negate)&&ap(e,r=>r.kind===ye.search_start)}function Oi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Rt(e,t){const n=zd(e,{...t,unicodePropertyMap:xl});tp(n);const r=n.pattern.alternatives;return r.length>1||r[0].elements.length>1?Sr(vt(),r):r[0].elements[0]}function Wt(e,t){const n=kl(e);return e[n][0].parent=e,t&&Sr(e[n][0],t),e}function Mi(e,t){return e.negate=t,e}function me(e,t){return e.parent=t,e}function eS(e,t){const n=Zd(t),r=Ta(n.target,"ES2024"),s=Ta(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!s){const d=[e.flags.ignoreCase];Jr(e,tS,{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(p){d.push(p)},setHasCasedChar(){d.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!a)};let c=null;const u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&a),useFlagMods:s,useFlagV:r,verbose:n.verbose};function f(d){switch(u.lastNode=c,c=d,d.type){case N.Regex:return{pattern:f(d.pattern),flags:f(d.flags),options:{...d.options}};case N.Alternative:return d.elements.map(f).join("");case N.Assertion:return iS(d);case N.Backreference:return aS(d,u);case N.CapturingGroup:return lS(d,u,f);case N.Character:return cS(d,u);case N.CharacterClass:return uS(d,u,f);case N.CharacterClassRange:return fS(d,u);case N.CharacterSet:return hS(d,u);case N.Flags:return dS(d,u);case N.Group:return pS(d,u,f);case N.LookaroundAssertion:return gS(d,u,f);case N.Pattern:return d.alternatives.map(f).join("|");case N.Quantifier:return f(d.element)+wS(d);case N.Recursion:return mS(d,u);default:throw new Error(`Unexpected node type "${d.type}"`)}}const h=f(e);return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],u.captureMap.forEach((d,p)=>{d.hidden&&h._hiddenCaptures.push(p),d.transferTo&&us(h._captureTransfers,d.transferTo,[]).push(p)}),h}var tS={"*":{enter({node:e},t){if(Ru(e)){const n=t.getCurrentModI();t.pushModI(e.flags?So({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Ru(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Al(Me(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),lp(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===ke.property&&ep.has(e.value)&&t.setHasCasedChar()}},nS=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),rS=new Set(["-","\\","]","^","["]),sS=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Tu=new Map([[9,se`\t`],[10,se`\n`],[11,se`\v`],[12,se`\f`],[13,se`\r`],[8232,se`\u2028`],[8233,se`\u2029`],[65279,se`\uFEFF`]]),oS=new RegExp("^\\p{Cased}$","u");function Al(e){return oS.test(e)}function iS({kind:e,negate:t}){if(e===ye.string_end)return"$";if(e===ye.string_start)return"^";if(e===ye.word_boundary)return t?se`\B`:se`\b`;throw new Error(`Unexpected assertion kind "${e}"`)}function aS({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e}function lS(e,t,n){const{name:r,number:s,alternatives:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(i.hidden=!0,s>a.number&&(i.transferTo=a.number)),t.captureMap.set(s,i),`(${r?`?<${r}>`:""}${o.map(n).join("|")})`}function cS({value:e},t){const n=Me(e),r=rr(e,{escDigit:t.lastNode.type===N.Backreference,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Al(n)){const s=Qd(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n}function uS(e,t,n){const{kind:r,negate:s,parent:o}=e;let{elements:i}=e;if(r===zt.intersection&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");Cr.literalHyphenIncorrectlyCreatesRange&&t.useFlagV&&i.some($u)&&(i=i.filter(c=>!$u(c)),i.push(vl(45)));const a=()=>`[${s?"^":""}${i.map(n).join(r===zt.intersection?"&&":"")}]`;if(!t.inCharClass){if(!t.useFlagV&&!s){const u=i.filter(f=>f.type===N.CharacterClass&&f.kind===zt.union&&f.negate);if(u.length){const f=vt(),h=f.alternatives[0];return f.parent=o,h.parent=f,i=i.filter(d=>!u.includes(d)),e.elements=i,i.length?(e.parent=h,h.elements.push(e)):f.alternatives.pop(),u.forEach(d=>{const p=Zt();p.parent=f,d.parent=p,p.elements.push(d),f.alternatives.push(p)}),n(f)}}t.inCharClass=!0;const c=a();return t.inCharClass=!1,c}const l=i[0];if(r===zt.union&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind===zt.union&&!(Cr.literalHyphenIncorrectlyCreatesRange&&t.useFlagV)||!t.verbose&&o.kind===zt.intersection&&i.length===1&&l.type!==N.CharacterClassRange))return i.map(n).join("");if(!t.useFlagV&&o.type===N.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");return a()}function fS(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=rr(n,s),i=rr(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=lp(e);yS(l).forEach(u=>{a.add(Array.isArray(u)?`${rr(u[0],s)}-${rr(u[1],s)}`:rr(u,s))})}return`${o}-${i}${[...a].join("")}`}function hS({kind:e,negate:t,value:n,key:r},s){if(e===ke.dot)return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":se`[^\n]`;if(e===ke.digit)return t?se`\D`:se`\d`;if(e===ke.property){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&ep.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?se`\P`:se`\p`}{${r?`${r}=`:""}${n}}`}if(e===ke.word)return t?se`\W`:se`\w`;throw new Error(`Unexpected character set kind "${e}"`)}function dS(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")}function pS({atomic:e,flags:t,parent:n,alternatives:r},s,o){const i=s.currentFlags;t&&(s.currentFlags=So(i,t));const a=r.map(o).join("|"),l=!s.verbose&&r.length===1&&n.type!==N.Quantifier&&!e&&(!s.useFlagMods||!t)?a:`(?${_S(e,t,s.useFlagMods)}${a})`;return s.currentFlags=i,l}function gS({kind:e,negate:t,alternatives:n},r,s){return`(?${`${e===cn.lookahead?"":"<"}${t?"!":"="}`}${n.map(s).join("|")})`}function mS({ref:e},t){const n=t.recursionLimit;return e===0?`(?R=${n})`:se`\g<${e}&R=${n}>`}function lp(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,s=e.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let i=r;i<=s;i++){const a=Me(i);if(!Al(a))continue;const l=Qd(a).filter(c=>{const u=c.codePointAt(0);return u<r||u>s});if(l.length&&(o.push(...l),n))break}return o}function rr(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Tu.has(e))return Tu.get(e);if(e<32||e>126&&e<160||e>262143||t&&bS(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?sS:rS:nS,o=Me(e);return(s.has(o)?"\\":"")+o}function yS(e){const t=e.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[];let r=null;for(let s=0;s<t.length;s++)t[s+1]===t[s]+1?r??(r=t[s]):r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function _S(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s!=null&&s.ignoreCase?"i":"")+(s!=null&&s.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${r}:`}function wS({min:e,max:t,kind:n}){let r;return!e&&t===1?r="?":!e&&t===1/0?r="*":e===1&&t===1/0?r="+":e===t?r=`{${e}}`:r=`{${e},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[n]}function Ru({type:e}){return e===N.Group||e===N.CapturingGroup||e===N.LookaroundAssertion}function bS(e){return e>47&&e<58}function $u({type:e,value:t}){return e===N.Character&&t===45}var an,Vt,On,ln,Mn,fs,Ra,gn,vS=(gn=class extends RegExp{constructor(n,r,s){var t=(...Xk)=>(super(...Xk),kn(this,fs),kn(this,an,new Map),kn(this,Vt,null),kn(this,On),kn(this,ln,null),kn(this,Mn,null),k(this,"rawOptions",{}),this);const o=!!(s!=null&&s.lazyCompile);if(n instanceof RegExp){if(s)throw new Error("Cannot provide options when copying a regexp");const i=n;t(i,r),wt(this,On,i.source),i instanceof gn&&(wt(this,an,Xe(i,an)),wt(this,ln,Xe(i,ln)),wt(this,Mn,Xe(i,Mn)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...s};t(o?"":n,r),wt(this,On,n),wt(this,an,SS(i.hiddenCaptures,i.transfers)),wt(this,Mn,i.strategy),this.rawOptions=s??{}}o||wt(this,Vt,this)}get source(){return Xe(this,On)||"(?:)"}exec(n){if(!Xe(this,Vt)){const{lazyCompile:o,...i}=this.rawOptions;wt(this,Vt,new gn(Xe(this,On),this.flags,i))}const r=this.global||this.sticky,s=this.lastIndex;if(Xe(this,Mn)==="clip_search"&&r&&s){this.lastIndex=0;const o=ni(this,fs,Ra).call(this,n.slice(s));return o&&(CS(o,s,n,this.hasIndices),this.lastIndex+=s),o}return ni(this,fs,Ra).call(this,n)}},an=new WeakMap,Vt=new WeakMap,On=new WeakMap,ln=new WeakMap,Mn=new WeakMap,fs=new WeakSet,Ra=function(n){Xe(this,Vt).lastIndex=this.lastIndex;const r=Nl(gn.prototype,this,"exec").call(Xe(this,Vt),n);if(this.lastIndex=Xe(this,Vt).lastIndex,!r||!Xe(this,an).size)return r;const s=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);const i=[0];for(let a=1;a<s.length;a++){const{hidden:l,transferTo:c}=Xe(this,an).get(a)??{};if(l?i.push(null):(i.push(r.length),r.push(s[a]),this.hasIndices&&r.indices.push(o[a])),c&&s[a]!==void 0){const u=OC(i[c]);if(r[u]=s[a],this.hasIndices&&(r.indices[u]=o[a]),r.groups){Xe(this,ln)||wt(this,ln,xS(this.source));const f=Xe(this,ln).get(c);f&&(r.groups[f]=s[a],this.hasIndices&&(r.indices.groups[f]=o[a]))}}}return r},gn);function CS(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 SS(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)us(n,o,{}).transferTo=r;return n}function xS(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 kS(e,t){const n=AS(e,t);return n.options?new vS(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function AS(e,t){const n=Zd(t),r=zd(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:xl}),s=GC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=eS(s,n),i=NC(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=$C(i.pattern),l=RC(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),c={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const u=l.hiddenCaptures.sort((p,g)=>p-g),f=Array.from(l.captureTransfers),h=s._strategy,d=c.pattern.length>=n.lazyCompileLength;(u.length||f.length||h||d)&&(c.options={...u.length&&{hiddenCaptures:u},...f.length&&{transfers:f},...h&&{strategy:h},...d&&{lazyCompile:d}})}return c}const Pu=4294967295;class ES{constructor(t,n={}){k(this,"regexps");this.patterns=t,this.options=n;const{forgiving:r=!1,cache:s,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const a=s==null?void 0:s.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s==null||s.set(i,l),l}catch(l){if(s==null||s.set(i,l),r)return null;throw l}})}findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function i(a,l,c=0){return{index:a,captureIndices:l.indices.map(u=>u==null?{start:Pu,end:Pu,length:0}:{start:u[0]+c,end:u[1]+c,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const c=l.exec(s);if(!c)continue;if(c.index===n)return i(a,c,0);o.push([a,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,c,u]of o)if(c.index===a)return i(l,c,u)}return null}}function TS(e,t){return kS(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function RS(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=n=>TS(n,{target:t.target})),{createScanner(n){return new ES(n,t)},createString(n){return{content:n}}}}let $S;const Nr=[];function PS(e){if(Nr.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Nr.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Nr.forEach(n=>n(t))},get(){return $S.value},configurable:!0}),()=>{Nr.splice(Nr.indexOf(e),1)}}const We=Re(null);async function cp(){$a.value&&(We.value=await $a.value("/__sitemap__/debug.json"))}const $a=Re(),up=Re(),fp=Re();PS(async e=>{$a.value=e.host.app.$fetch,Hf(()=>{fp.value=e.host.app.colorMode.value}),up.value=e.devtools,cp()});const hp=Re();function NS(){return W1({themes:[jr(()=>import("./CVO1_9PV.js"),[],import.meta.url),jr(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[jr(()=>import("./BQoSv7ci.js"),[],import.meta.url)],engine:RS()}).then(e=>{hp.value=e})}function dp(e,t){return Pe(()=>{var r;const n=((r=up.value)==null?void 0:r.colorMode)||"light";return hp.value.codeToHtml(fn(e),{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const IS=["innerHTML"],pp=nt({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=Pe(()=>{const r=dp(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(G(),te("pre",{class:Ne(["n-code-block",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,IS))}}),OS={flex:"~ gap-3","items-center":""},MS=nt({__name:"NIconTitle",props:{icon:{},text:{}},setup(e){return(t,n)=>(G(),te("div",OS,[t.icon?(G(),te("div",{key:0,class:Ne(t.icon)},null,2)):je("",!0),et(t.$slots,"default",{},()=>[M("div",null,Be(t.text),1)])]))}});function LS(e){return La()?(Hp(e),!0):!1}const DS=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const HS=e=>typeof e<"u",FS=Object.prototype.toString,BS=e=>FS.call(e)==="[object Object]",jS=()=>{};function US(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const gp=e=>e();function GS(e=gp,t={}){const{initialState:n="active"}=t,r=zS(n==="active");function s(){r.value=!1}function o(){r.value=!0}const i=(...a)=>{r.value&&e(...a)};return{isActive:$o(r),pause:s,resume:o,eventFilter:i}}function WS(e){return gs()}function Li(e){return Array.isArray(e)?e:[e]}function zS(...e){if(e.length!==1)return lf(...e);const t=e[0];return typeof t=="function"?$o(lg(()=>({get:t,set:jS}))):Re(t)}function VS(e,t,n={}){const{eventFilter:r=gp,...s}=n;return hn(e,US(r,t),s)}function qS(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:c}=GS(r,{initialState:s});return{stop:VS(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:c}}function KS(e,t=!0,n){WS()?qa(e,n):t?e():zn(e)}function JS(e,t,n){return hn(e,t,{...n,immediate:!0})}const xo=DS?window:void 0;function XS(e){var t;const n=fn(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Nu(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,c,u)=>(a.addEventListener(l,c,u),()=>a.removeEventListener(l,c,u)),s=Pe(()=>{const a=Li(fn(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=JS(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(c=>XS(c)))!=null?l:[xo].filter(c=>c!=null),Li(fn(s.value?e[1]:e[0])),Li(ae(s.value?e[2]:e[1])),fn(s.value?e[3]:e[2])]},([a,l,c,u])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(c!=null&&c.length))return;const f=BS(u)?{...u}:u;t.push(...a.flatMap(h=>l.flatMap(d=>c.map(p=>r(h,d,p,f)))))},{flush:"post"}),i=()=>{o(),n()};return LS(n),i}function YS(e){return JSON.parse(JSON.stringify(e))}const Os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ms="__vueuse_ssr_handlers__",ZS=QS();function QS(){return Ms in Os||(Os[Ms]=Os[Ms]||{}),Os[Ms]}function ex(e,t){return ZS[e]||t}function tx(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const nx={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Iu="vueuse-storage";function rx(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=xo,eventFilter:h,onError:d=D=>{console.error(D)},initOnMounted:p}=r,g=(u?ji:Re)(t),y=Pe(()=>fn(e));if(!n)try{n=ex("getDefaultStorage",()=>{var D;return(D=xo)==null?void 0:D.localStorage})()}catch(D){d(D)}if(!n)return g;const _=fn(t),v=tx(_),m=(s=r.serializer)!=null?s:nx[v],{pause:b,resume:C}=qS(g,()=>x(g.value),{flush:o,deep:i,eventFilter:h});hn(y,()=>H(),{flush:o}),f&&a&&KS(()=>{n instanceof Storage?Nu(f,"storage",H,{passive:!0}):Nu(f,Iu,I),p&&H()}),p||H();function E(D,U){if(f){const J={key:y.value,oldValue:D,newValue:U,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",J):new CustomEvent(Iu,{detail:J}))}}function x(D){try{const U=n.getItem(y.value);if(D==null)E(U,null),n.removeItem(y.value);else{const J=m.write(D);U!==J&&(n.setItem(y.value,J),E(U,J))}}catch(U){d(U)}}function L(D){const U=D?D.newValue:n.getItem(y.value);if(U==null)return l&&_!=null&&n.setItem(y.value,m.write(_)),_;if(!D&&c){const J=m.read(U);return typeof c=="function"?c(J,_):v==="object"&&!Array.isArray(J)?{..._,...J}:J}else return typeof U!="string"?U:m.read(U)}function H(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){g.value=_;return}if(!(D&&D.key!==y.value)){b();try{(D==null?void 0:D.newValue)!==m.write(g.value)&&(g.value=L(D))}catch(U){d(U)}finally{D?zn(C):C()}}}}function I(D){H(D.detail)}return g}function sx(e,t,n={}){const{window:r=xo}=n;return rx(e,t,r==null?void 0:r.localStorage,n)}function ox(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:f,shouldEmit:h}=r,d=gs(),p=(d==null?void 0:d.emit)||((s=d==null?void 0:d.$emit)==null?void 0:s.bind(d))||((i=(o=d==null?void 0:d.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(d==null?void 0:d.proxy));let g=c;g=g||`update:${t.toString()}`;const y=m=>a?typeof a=="function"?a(m):YS(m):m,_=()=>HS(e[t])?y(e[t]):f,v=m=>{h?h(m)&&p(g,m):p(g,m)};if(l){const m=_(),b=Re(m);let C=!1;return hn(()=>e[t],E=>{C||(C=!0,b.value=y(E),zn(()=>C=!1))}),hn(b,E=>{!C&&(E!==e[t]||u)&&v(E)},{deep:u}),b}else return Pe({get(){return _()},set(m){v(m)}})}const ix=["open"],ax={"text-base":""},lx={key:0,"text-sm":"",op50:""},cx=nt({__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=ox(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=ul,a=MS;return G(),te(xe,null,[M("details",{open:ae(n),onToggle:r},[M("summary",{class:Ne(["cursor-pointer select-none n-bg-active hover:bg-active p4 rounded transition-all",s.collapse?"":"pointer-events-none"])},[q(a,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:Ne([ae(n)?"op100":"op60",s.headerClass])},{default:ie(()=>[M("div",null,[M("div",ax,[et(s.$slots,"text",{},()=>[ce(Be(s.text),1)],!0)]),s.description||s.$slots.description?(G(),te("div",lx,[et(s.$slots,"description",{},()=>[ce(Be(s.description),1)],!0)])):je("",!0)]),o[0]||(o[0]=M("div",{class:"flex-auto"},null,-1)),et(s.$slots,"actions",{},void 0,!0),s.collapse?(G(),Ae(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):je("",!0)]),_:3},8,["icon","text","class"])],2),M("div",{class:Ne(["flex flex-col flex-gap2 pb6 pt2",typeof s.padding=="string"?s.padding:s.padding?"px4":""])},[et(s.$slots,"details",{},void 0,!0),M("div",{class:Ne([s.containerClass,"mt1"])},[et(s.$slots,"default",{},void 0,!0)],2),et(s.$slots,"footer",{},void 0,!0)],2)],40,ix),o[1]||(o[1]=M("div",{class:"x-divider"},null,-1))],64)}}}),mp=qo(cx,[["__scopeId","data-v-1b9488bc"]]),ux={class:"flex space-x-5"},fx={class:"opacity-80 text-base mb-1 flex space-x-3 items-center"},hx={key:0,class:"flex space-x-2"},dx={key:0,class:"opacity-60 text-sm"},px={class:"flex items-center space-x-3"},gx={key:0},mx={key:1,class:"text-xs mt-1 opacity-70"},yx={key:0},_x={key:2,class:"px-3 py-3 mt-2 dark:bg-gray-900/50 bg-gray-50/50 opacity-70"},wx={class:"list-disc ml-5"},bx=["innerHTML"],vx=nt({__name:"Source",props:{source:{},showContext:{type:Boolean}},setup(e){const t=e,n=Pe(()=>{var o;const s=typeof t.source.fetch=="string"?t.source.fetch:t.source.fetch[0];return s.includes("http")?s:Vn(((o=We.value)==null?void 0:o.nitroOrigin)||"localhost",s)});function r(s){return s.replace(/`([^`]+)`/g,"<code>$1</code>")}return(s,o)=>{const i=ul,a=Qh,l=td,c=pp,u=mp;return G(),Ae(u,null,{text:ie(()=>[M("div",ux,[M("h3",fx,[s.source.fetch?(G(),te("div",hx,[q(i,{icon:"carbon:api-1",class:"opacity-50 text-lg"}),s.source.timeTakenMs?(G(),te("div",dx,Be(s.source.timeTakenMs)+"ms ",1)):je("",!0)])):je("",!0),M("div",null,Be(s.source.context.name),1),M("div",null,[q(a,null,{default:ie(()=>{var f;return[ce(Be(((f=s.source.urls)==null?void 0:f.length)||0),1)]}),_:1})])])])]),description:ie(()=>[M("div",px,[s.source.fetch?(G(),te("div",gx,[q(l,{href:ae(n),target:"_blank"},{default:ie(()=>[ce(Be(s.source.fetch),1)]),_:1},8,["href"])])):je("",!0),s.source.context.description?(G(),te("div",mx,Be(s.source.context.description),1)):je("",!0)])]),default:ie(()=>{var f;return[s.source.error?(G(),te("div",yx,[q(i,{icon:"carbon:warning",class:"text-red-500"}),ce(" "+Be(s.source.error),1)])):(G(),Ae(c,{key:1,class:"max-h-[250px] overflow-y-auto",code:JSON.stringify(s.source.urls,null,2),lang:"json"},null,8,["code"])),(f=s.source.context.tips)!=null&&f.length?(G(),te("div",_x,[o[0]||(o[0]=M("h3",{class:"text-sm font-bold mb-1"}," Hints ",-1)),M("ul",wx,[(G(!0),te(xe,null,er(s.source.context.tips,(h,d)=>(G(),te("li",{key:d,class:"text-sm opacity-80 mb-1",innerHTML:r(h)},null,8,bx))),128))])])):je("",!0)]}),_:1})}}}),Cx={class:"relative n-bg-base flex flex-col"},Sx={class:"sticky top-0 z-2 px-4 pt-4"},xx={class:"flex justify-between items-start",mb2:""},kx={class:"flex space-x-5"},Ax={"text-xl":"",flex:"","items-center":"","gap-2":""},Ex={class:"flex items-center space-x-3 text-xl"},Tx={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},Rx={class:"px-5 py-2"},$x={"text-lg":"",flex:"","items-center":""},Px={class:"px-5 py-2"},Nx={"text-lg":"",flex:"","items-center":""},Ix={class:"px-5 py-2"},Ox={"text-lg":"",flex:"","items-center":""},Mx={class:"px-5 py-2"},Lx={"text-lg":"",flex:"","items-center":""},Dx={class:"px-5 py-2"},Hx={"text-lg":"",flex:"","items-center":""},Fx=["value","title"],Bx={class:"items-center space-x-3 hidden lg:flex"},jx={class:"opacity-80 text-sm"},Ux={class:"opacity-80 text-sm"},Gx={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},Wx={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},zx={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},Vx={key:0,class:"space-y-5"},qx={class:"opacity-80 text-base mb-1"},Kx={class:"px-3 py-2 space-y-5"},Jx={key:0},Xx={class:"text-sm opacity-70"},Yx={key:0,class:"flex space-x-5"},Zx={class:"flex-grow"},Qx={class:"flex space-x-5"},ek={class:"flex-grow flex flex-col justify-center"},tk={key:0,class:"opacity-70"},nk={key:1,class:"opacity-70"},rk={class:"opacity-50 text-xs mt-2"},sk={class:"flex space-x-5"},ok={class:"n-bg-base/20 flex-grow"},ik={key:1,class:"space-y-5"},ak={key:2,class:"space-y-5"},lk={key:3,class:"h-full max-h-full overflow-hidden"},ck={class:"opacity-80 text-base mb-1"},uk={class:"px-3 py-2 space-y-5"},fk={key:4,class:"h-full max-h-full overflow-hidden"},hk=nt({__name:"app",async setup(e){let t,n;[t,n]=Hg(()=>NS()),await t,n();const r=Re(!1);async function s(){r.value=!0,We.value=null,await cp(),setTimeout(()=>{r.value=!1},300)}const o=sx("@nuxtjs/sitemap:tab","sitemaps");function i(f){var h;return We.value?f==="sitemap"||f==="sitemap.xml"?`${We.value.nitroOrigin}sitemap.xml`:f==="index"?`${We.value.nitroOrigin}sitemap_index.xml`:Vn(We.value.nitroOrigin,(h=We.value.runtimeConfig)==null?void 0:h.sitemapsPathPrefix,`${f}-sitemap.xml`):""}function a(f){const h={};return Object.entries(f).forEach(([d,p])=>{p!==void 0&&(!Array.isArray(p)||p.length>0)&&d!=="includeAppSources"&&(h[d]=p)}),h}uw({htmlAttrs:{class:()=>fp.value||""}});const l=Pe(()=>{var f,h;return((h=(f=We.value)==null?void 0:f.runtimeConfig)==null?void 0:h.excludeAppSources)||[]}),c=Pe(()=>{var f;return(((f=We.value)==null?void 0:f.globalSources)||[]).filter(h=>h.sourceType==="app")}),u=Pe(()=>{var f;return(((f=We.value)==null?void 0:f.globalSources)||[]).filter(h=>h.sourceType==="user")});return(f,h)=>{var E;const d=ul,p=Qh,g=_n("VTooltip"),y=td,_=Z0,v=rb,m=vx,b=pp,C=mp;return G(),te("div",Cx,[M("header",Sx,[M("div",xx,[M("div",kx,[M("h1",Ax,[q(d,{icon:"carbon:load-balancer-application",class:"text-blue-300"}),h[2]||(h[2]=ce(" Sitemap ")),q(p,{class:"text-sm"},{default:ie(()=>{var x,L;return[ce(Be((L=(x=ae(We))==null?void 0:x.runtimeConfig)==null?void 0:L.version),1)]}),_:1})])]),M("div",Ex,[M("fieldset",Tx,[(G(),te(xe,null,er(["sitemaps","user-sources","app-sources","debug","docs"],(x,L)=>M("label",{key:L,class:Ne(["relative n-border-base hover:n-bg-active cursor-pointer",[L?"border-l n-border-base ml--1px":"",x===ae(o)?"n-bg-active":""]])},[x==="sitemaps"?(G(),te("div",{key:0,class:Ne([x===ae(o)?"":"op35"])},[q(g,null,{popper:ie(()=>h[3]||(h[3]=[ce(" Sitemaps ")])),default:ie(()=>[M("div",Rx,[M("h2",$x,[q(d,{icon:"carbon:load-balancer-application opacity-50"}),q(p,{class:"text-sm"},{default:ie(()=>{var H;return[ce(Be(Object.keys(((H=ae(We))==null?void 0:H.sitemaps)||{}).length||0),1)]}),_:1})])])]),_:1})],2)):je("",!0),x==="user-sources"?(G(),te("div",{key:1,class:Ne([x===ae(o)?"":"op35"])},[q(g,null,{popper:ie(()=>h[4]||(h[4]=[ce(" User Sources ")])),default:ie(()=>[M("div",Px,[M("h2",Nx,[q(d,{icon:"carbon:group-account opacity-50"}),q(p,{class:"text-sm"},{default:ie(()=>[ce(Be(u.value.length),1)]),_:1})])])]),_:1})],2)):je("",!0),x==="app-sources"?(G(),te("div",{key:2,class:Ne([x===ae(o)?"":"op35"])},[q(g,null,{popper:ie(()=>h[5]||(h[5]=[ce(" App Sources ")])),default:ie(()=>[M("div",Ix,[M("h2",Ox,[q(d,{icon:"carbon:bot opacity-50"}),q(p,{class:"text-sm"},{default:ie(()=>[ce(Be(c.value.length),1)]),_:1})])])]),_:1})],2)):x==="debug"?(G(),te("div",{key:3,class:Ne([x===ae(o)?"":"op35"])},[q(g,null,{popper:ie(()=>h[6]||(h[6]=[ce(" Debug ")])),default:ie(()=>[M("div",Mx,[M("h2",Lx,[q(d,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):x==="docs"?(G(),te("div",{key:4,class:Ne([x===ae(o)?"":"op35"])},[q(g,null,{popper:ie(()=>h[7]||(h[7]=[ce(" Documentation ")])),default:ie(()=>[M("div",Dx,[M("h2",Hx,[q(d,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):je("",!0),vg(M("input",{"onUpdate:modelValue":h[0]||(h[0]=H=>Ie(o)?o.value=H:null),type:"radio",value:x,title:x,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,Fx),[[Km,ae(o)]])],2)),64))]),q(g,null,{popper:ie(()=>h[8]||(h[8]=[ce(" Refresh ")])),default:ie(()=>[M("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:s},[q(d,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),M("div",Bx,[M("div",jx,[q(y,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:ie(()=>[q(d,{icon:"carbon:favorite",class:"mr-[2px]"}),h[9]||(h[9]=ce(" Sponsor "))]),_:1})]),M("div",Ux,[q(y,{href:"https://github.com/nuxt-modules/sitemap",target:"_blank"},{default:ie(()=>[q(d,{icon:"logos:github-icon",class:"mr-[2px]"}),h[10]||(h[10]=ce(" Submit an issue "))]),_:1})]),M("a",Gx,[q(_)])])])]),M("div",Wx,[M("main",zx,[!((E=ae(We))!=null&&E.globalSources)||r.value?(G(),Ae(v,{key:0})):(G(),te(xe,{key:1},[ae(o)==="sitemaps"?(G(),te("div",Vx,[h[23]||(h[23]=M("div",null,[M("h2",{class:"text-lg mb-1"}," Sitemaps "),M("p",{"text-xs":"",op60:""}," The sitemaps generated from your site. ")],-1)),(G(!0),te(xe,null,er(ae(We).sitemaps,(x,L)=>(G(),Ae(C,{key:L},{text:ie(()=>[M("h3",qx,[ce(Be(x.sitemapName)+" ",1),(x.sources||[]).some(H=>!!H.error)?(G(),Ae(d,{key:0,icon:"carbon:warning",class:"text-red-500"})):je("",!0)])]),description:ie(()=>[q(y,{target:"_blank",href:i(x.sitemapName)},{default:ie(()=>[ce(Be(i(x.sitemapName)),1)]),_:2},1032,["href"])]),default:ie(()=>[M("div",Kx,[x.sitemapName==="index"?(G(),te("div",Jx,[h[14]||(h[14]=M("div",{class:"text-sm mb-1 opacity-80"}," This is a special sitemap file that links to your other sitemaps. ",-1)),M("div",Xx,[h[12]||(h[12]=ce(" You can learn about this on the ")),q(y,{underline:"",target:"_blank",href:"https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps"},{default:ie(()=>h[11]||(h[11]=[ce(" Google Search Central ")])),_:1}),h[13]||(h[13]=ce(". "))])])):(G(),te(xe,{key:1},[x.sources&&x.sources.length?(G(),te("div",Yx,[h[15]||(h[15]=M("div",{class:"w-40"},[M("div",{class:"font-bold text-sm mb-1"}," Sources "),M("div",{class:"opacity-40 text-xs max-w-60"},[ce(" Local sources associated with just this sitemap."),M("br"),ce("Example: Load in a dynamic list of URLs from an API endpoint. ")])],-1)),M("div",Zx,[(G(!0),te(xe,null,er(x.sources,(H,I)=>(G(),Ae(m,{key:I,source:H},null,8,["source"]))),128))])])):je("",!0),M("div",Qx,[h[21]||(h[21]=M("div",{class:"w-40"},[M("div",{class:"font-bold text-sm mb-1"}," App Sources "),M("div",{class:"opacity-40 text-xs max-w-60"},[ce(" Configured with the "),M("code",null,"includeAppSources"),ce(" option. ")])],-1)),M("div",ek,[x.includeAppSources&&l.value!==!0?(G(),te("div",tk,[q(d,{icon:"carbon:checkmark",class:"text-green-500 text-lg"}),h[16]||(h[16]=ce(" Enabled "))])):(G(),te("div",nk,[q(d,{icon:"carbon:close",class:"text-red-500 text-lg"}),h[17]||(h[17]=ce(" Disabled "))])),M("div",rk,[h[19]||(h[19]=ce(" Switch to ")),q(y,{underline:"",class:"cursor-pointer",onClick:h[1]||(h[1]=H=>o.value="app-sources")},{default:ie(()=>h[18]||(h[18]=[ce(" App sources ")])),_:1}),h[20]||(h[20]=ce(" to learn more. "))])])]),M("div",sk,[h[22]||(h[22]=M("div",{class:"w-40"},[M("div",{class:"font-bold text-sm mb-1"}," Sitemap Options "),M("div",{class:"opacity-40 text-xs max-w-60"}," Extra options used to filter the URLs on the final sitemap and set defaults. ")],-1)),M("div",ok,[q(b,{class:"max-h-[350px] min-h-full overflow-y-auto",code:JSON.stringify(a(x),null,2),lang:"json"},null,8,["code"])])])],64))])]),_:2},1024))),128))])):ae(o)==="app-sources"?(G(),te("div",ik,[h[24]||(h[24]=M("div",null,[M("h2",{class:"text-lg mb-1"}," App Sources "),M("p",{"text-xs":"",op60:""}," Automatic global sources generated from your application. ")],-1)),(G(!0),te(xe,null,er(c.value,(x,L)=>(G(),Ae(m,{key:L,source:x},null,8,["source"]))),128))])):ae(o)==="user-sources"?(G(),te("div",ak,[h[25]||(h[25]=M("div",null,[M("h2",{class:"text-lg mb-1"}," User Sources "),M("p",{"text-xs":"",op60:""}," Manually provided global sources provided by you. ")],-1)),(G(!0),te(xe,null,er(u.value,(x,L)=>(G(),Ae(m,{key:L,source:x},null,8,["source"]))),128))])):ae(o)==="debug"?(G(),te("div",lk,[q(C,null,{text:ie(()=>[M("h3",ck,[q(d,{icon:"carbon:settings",class:"mr-1"}),h[26]||(h[26]=ce(" Runtime Config "))])]),default:ie(()=>{var x;return[M("div",uk,[q(b,{code:ae(dp)(JSON.stringify((x=ae(We))==null?void 0:x.runtimeConfig,null,2),"json").value,lang:"json"},null,8,["code"])])]}),_:1})])):ae(o)==="docs"?(G(),te("div",fk,h[27]||(h[27]=[M("iframe",{src:"https://nuxtseo.com/sitemap",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)]))):je("",!0)],64))])])])}}}),dk={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
171
- `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
172
- `);const r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,u=s?Bl(()=>jr(()=>import("./LwtYuSjN.js"),__vite__mapDeps([0,1]),import.meta.url)):Bl(()=>jr(()=>import("./BuImKM08.js"),__vite__mapDeps([2,3]),import.meta.url));return(f,h)=>(G(),Ae(ae(u),Bu(Ya({statusCode:ae(r),statusMessage:ae(o),description:ae(i),stack:ae(a)})),null,16))}},pk={key:0},Ou={__name:"nuxt-root",setup(e){const t=()=>null,n=Oe(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Ht().beforeEach(l)}const s=!1;xf(wh,bh()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const o=tl(),i=!1;mf((l,c,u)=>{if(n.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),x_(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>C_(l)),!1});const a=!1;return(l,c)=>(G(),Ae(fm,{onResolve:ae(r)},{default:ie(()=>[ae(i)?(G(),te("div",pk)):ae(o)?(G(),Ae(ae(dk),{key:1,error:ae(o)},null,8,["error"])):ae(a)?(G(),Ae(ae(t),{key:2,context:ae(a)},null,8,["context"])):ae(s)?(G(),Ae(Lg(ae(s)),{key:3})):(G(),Ae(ae(hk),{key:4}))]),_:1},8,["onResolve"]))}};let Mu;{let e;Mu=async function(){var i,a;if(e)return e;const r=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?ey(Ou):Zf(Ou),s=c_({vueApp:r});async function o(l){var c;await s.callHook("app:error",l),(c=s.payload).error||(c.error=nl(l))}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)});try{await h_(s,H0)}catch(l){o(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(i_),await s.hooks.callHook("app:mounted",r),await zn()}catch(l){o(l)}return r},e=Mu().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{qo as _,M as a,q as b,te as c,ce as d,W0 as e,G as o,Be as t,uw as u,ie as w};