nuxt-link-checker 4.3.0 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +1 -16
- package/dist/client/404.html +1 -16
- package/dist/client/_nuxt/BMMyXqK5.js +1 -0
- package/dist/client/_nuxt/C0TmlKXo.js +1 -0
- package/dist/client/_nuxt/Cp-IABpG.js +1 -0
- package/dist/client/_nuxt/DwBeYsww.js +1 -0
- package/dist/client/_nuxt/KzQJPfR6.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/39b7bce5-7190-467c-b61e-c416161e0cdc.json +1 -0
- package/dist/client/_nuxt/entry.8dt3UohH.css +1 -0
- package/dist/client/_nuxt/error-404.B_XScZJK.css +1 -0
- package/dist/client/_nuxt/error-500.Dydzk0Zl.css +1 -0
- package/dist/client/_nuxt/n57rOy2v.js +1 -0
- package/dist/client/_nuxt/zuc5zdCx.js +181 -0
- package/dist/client/index.html +1 -16
- package/dist/module.d.mts +2 -1
- package/dist/module.json +4 -5
- package/dist/module.mjs +19 -4
- package/dist/runtime/app/plugins/view/Main.d.vue.ts +9 -0
- package/dist/runtime/app/plugins/view/Main.vue +20 -28
- package/dist/runtime/app/plugins/view/Main.vue.d.ts +9 -0
- package/dist/runtime/app/plugins/view/Squiggle.d.vue.ts +7 -0
- package/dist/runtime/app/plugins/view/Squiggle.vue +16 -20
- package/dist/runtime/app/plugins/view/Squiggle.vue.d.ts +7 -0
- package/dist/runtime/server/content-compat.d.ts +1 -0
- package/dist/runtime/server/content-compat.js +2 -0
- package/dist/runtime/server/providers/content-v3.d.ts +5 -1
- package/dist/runtime/server/providers/content-v3.js +2 -2
- package/dist/runtime/server/routes/__link-checker__/inspect.d.ts +1 -1
- package/dist/runtime/server/routes/__link-checker__/links.d.ts +1 -1
- package/dist/runtime/server/routes/__link-checker__/links.js +2 -1
- package/dist/runtime/shared/crawl.d.ts +1 -1
- package/dist/runtime/shared/inspections/absolute-site-urls.d.ts +1 -1
- package/dist/runtime/shared/inspections/link-text.d.ts +1 -1
- package/dist/runtime/shared/inspections/missing-hash.d.ts +1 -1
- package/dist/runtime/shared/inspections/missing-hash.js +3 -1
- package/dist/runtime/shared/inspections/no-baseless.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-double-slashes.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-duplicate-query-params.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-error-response.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-javascript.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-missing-href.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-non-ascii-chars.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-underscores.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-uppercase-chars.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-whitespace.d.ts +1 -1
- package/dist/runtime/shared/inspections/trailing-slash.d.ts +1 -1
- package/dist/runtime/shared/redirects.d.ts +1 -1
- package/dist/types.d.mts +4 -2
- package/package.json +47 -41
- package/dist/client/_nuxt/5p_Oaa9g.js +0 -181
- package/dist/client/_nuxt/B9GrqE__.js +0 -1
- package/dist/client/_nuxt/BFWaZzNn.js +0 -1
- package/dist/client/_nuxt/BGB1r09n.js +0 -1
- package/dist/client/_nuxt/BLmTiKMJ.js +0 -1
- package/dist/client/_nuxt/Cj6XDDRd.js +0 -1
- package/dist/client/_nuxt/DFxyEsuO.js +0 -1
- package/dist/client/_nuxt/builds/meta/958252ce-e0d2-4b11-8149-9f7e96bca1a3.json +0 -1
- package/dist/client/_nuxt/entry.xKNhWsNM.css +0 -1
- package/dist/client/_nuxt/error-404.C6U-TOR-.css +0 -1
- package/dist/client/_nuxt/error-500.BAgFwF30.css +0 -1
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -92
- package/dist/types.d.ts +0 -7
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B9GrqE__.js","./DFxyEsuO.js","./BLmTiKMJ.js","./BGB1r09n.js","./BFWaZzNn.js","./error-404.C6U-TOR-.css","./Cj6XDDRd.js","./error-500.BAgFwF30.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var jg=Object.defineProperty;var Gg=Object.getPrototypeOf;var Ug=Reflect.get;var kc=e=>{throw TypeError(e)};var Wg=(e,t,n)=>t in e?jg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>Wg(e,typeof t!="symbol"?t+"":t,n),Ui=(e,t,n)=>t.has(e)||kc("Cannot "+n);var et=(e,t,n)=>(Ui(e,t,"read from private field"),n?n.call(e):t.get(e)),Bn=(e,t,n)=>t.has(e)?kc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),xt=(e,t,n,r)=>(Ui(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Wi=(e,t,n)=>(Ui(e,t,"access private method"),n);var Ec=(e,t,n)=>Ug(Gg(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 kl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Se={},Ar=[],Ht=()=>{},Vg=()=>!1,Us=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),El=e=>e.startsWith("onUpdate:"),We=Object.assign,Al=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zg=Object.prototype.hasOwnProperty,me=(e,t)=>zg.call(e,t),ne=Array.isArray,Tr=e=>Ws(e)==="[object Map]",Wf=e=>Ws(e)==="[object Set]",Ac=e=>Ws(e)==="[object Date]",se=e=>typeof e=="function",Re=e=>typeof e=="string",$t=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",Tl=e=>(Ce(e)||se(e))&&se(e.then)&&se(e.catch),Vf=Object.prototype.toString,Ws=e=>Vf.call(e),qg=e=>Ws(e).slice(8,-1),zf=e=>Ws(e)==="[object Object]",Rl=e=>Re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rr=kl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Kg=/-(\w)/g,wt=mi(e=>e.replace(Kg,(t,n)=>n?n.toUpperCase():"")),Xg=/\B([A-Z])/g,Nn=mi(e=>e.replace(Xg,"-$1").toLowerCase()),yi=mi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vi=mi(e=>e?`on${yi(e)}`:""),xn=(e,t)=>!Object.is(e,t),bo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},qf=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Jg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kf=e=>{const t=Re(e)?Number(e):NaN;return isNaN(t)?e:t};let Tc;const vi=()=>Tc||(Tc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function sn(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Re(r)?em(r):sn(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Re(e)||Ce(e))return e}const Yg=/;(?![^(]*\))/g,Qg=/:([^]+)/,Zg=/\/\*[^]*?\*\//g;function em(e){const t={};return e.replace(Zg,"").split(Yg).forEach(n=>{if(n){const r=n.split(Qg);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Me(e){let t="";if(Re(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const r=Me(e[n]);r&&(t+=r+" ")}else if(Ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Xf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Re(t)&&(e.class=Me(t)),n&&(e.style=sn(n)),e}const tm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",nm=kl(tm);function Jf(e){return!!e||e===""}function rm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=No(e[r],t[r]);return n}function No(e,t){if(e===t)return!0;let n=Ac(e),r=Ac(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=$t(e),r=$t(t),n||r)return e===t;if(n=ne(e),r=ne(t),n||r)return n&&r?rm(e,t):!1;if(n=Ce(e),r=Ce(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!No(e[i],t[i]))return!1}}return String(e)===String(t)}const Yf=e=>!!(e&&e.__v_isRef===!0),Pe=e=>Re(e)?e:e==null?"":ne(e)||Ce(e)&&(e.toString===Vf||!se(e.toString))?Yf(e)?Pe(e.value):JSON.stringify(e,Qf,2):String(e),Qf=(e,t)=>Yf(t)?Qf(e,t.value):Tr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[zi(r,o)+" =>"]=s,n),{})}:Wf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zi(n))}:$t(t)?zi(t):Ce(t)&&!ne(t)&&!zf(t)?String(t):t,zi=(e,t="")=>{var n;return $t(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 rt;class Zf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=rt,!t&&rt&&(this.index=(rt.scopes||(rt.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=rt;try{return rt=this,t()}finally{rt=n}}}on(){rt=this}off(){rt=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 sm(e){return new Zf(e)}function $l(){return rt}function om(e,t=!1){rt&&rt.cleanups.push(e)}let Te;const qi=new WeakSet;class ed{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,rt&&rt.active&&rt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,qi.has(this)&&(qi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||nd(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Rc(this),rd(this);const t=Te,n=At;Te=this,At=!0;try{return this.fn()}finally{sd(this),Te=t,At=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Il(t);this.deps=this.depsTail=void 0,Rc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?qi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ea(this)&&this.run()}get dirty(){return Ea(this)}}let td=0,as,ls;function nd(e,t=!1){if(e.flags|=8,t){e.next=ls,ls=e;return}e.next=as,as=e}function Pl(){td++}function Nl(){if(--td>0)return;if(ls){let t=ls;for(ls=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;as;){let t=as;for(as=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 rd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function sd(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Il(r),im(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ea(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(od(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function od(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ks))return;e.globalVersion=ks;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Ea(e)){e.flags&=-3;return}const n=Te,r=At;Te=e,At=!0;try{rd(e);const s=e.fn(e._value);(t.version===0||xn(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Te=n,At=r,sd(e),e.flags&=-3}}function Il(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)Il(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function im(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let At=!0;const id=[];function In(){id.push(At),At=!1}function Ln(){const e=id.pop();At=e===void 0?!0:e}function Rc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Te;Te=void 0;try{t()}finally{Te=n}}}let ks=0;class am{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 _i{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(!Te||!At||Te===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Te)n=this.activeLink=new am(Te,this),Te.deps?(n.prevDep=Te.depsTail,Te.depsTail.nextDep=n,Te.depsTail=n):Te.deps=Te.depsTail=n,ad(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=Te.depsTail,n.nextDep=void 0,Te.depsTail.nextDep=n,Te.depsTail=n,Te.deps===n&&(Te.deps=r)}return n}trigger(t){this.version++,ks++,this.notify(t)}notify(t){Pl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Nl()}}}function ad(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)ad(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Io=new WeakMap,rr=Symbol(""),Aa=Symbol(""),Es=Symbol("");function Ye(e,t,n){if(At&&Te){let r=Io.get(e);r||Io.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new _i),s.map=r,s.key=n),s.track()}}function Qt(e,t,n,r,s,o){const i=Io.get(e);if(!i){ks++;return}const a=l=>{l&&l.trigger()};if(Pl(),t==="clear")i.forEach(a);else{const l=ne(e),c=l&&Rl(n);if(l&&n==="length"){const u=Number(r);i.forEach((f,d)=>{(d==="length"||d===Es||!$t(d)&&d>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Es)),t){case"add":l?c&&a(i.get("length")):(a(i.get(rr)),Tr(e)&&a(i.get(Aa)));break;case"delete":l||(a(i.get(rr)),Tr(e)&&a(i.get(Aa)));break;case"set":Tr(e)&&a(i.get(rr));break}}Nl()}function lm(e,t){const n=Io.get(e);return n&&n.get(t)}function mr(e){const t=ge(e);return t===e?t:(Ye(t,"iterate",Es),bt(e)?t:t.map(Qe))}function bi(e){return Ye(e=ge(e),"iterate",Es),e}const cm={__proto__:null,[Symbol.iterator](){return Ki(this,Symbol.iterator,Qe)},concat(...e){return mr(this).concat(...e.map(t=>ne(t)?mr(t):t))},entries(){return Ki(this,"entries",e=>(e[1]=Qe(e[1]),e))},every(e,t){return zt(this,"every",e,t,void 0,arguments)},filter(e,t){return zt(this,"filter",e,t,n=>n.map(Qe),arguments)},find(e,t){return zt(this,"find",e,t,Qe,arguments)},findIndex(e,t){return zt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return zt(this,"findLast",e,t,Qe,arguments)},findLastIndex(e,t){return zt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return zt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xi(this,"includes",e)},indexOf(...e){return Xi(this,"indexOf",e)},join(e){return mr(this).join(e)},lastIndexOf(...e){return Xi(this,"lastIndexOf",e)},map(e,t){return zt(this,"map",e,t,void 0,arguments)},pop(){return Yr(this,"pop")},push(...e){return Yr(this,"push",e)},reduce(e,...t){return $c(this,"reduce",e,t)},reduceRight(e,...t){return $c(this,"reduceRight",e,t)},shift(){return Yr(this,"shift")},some(e,t){return zt(this,"some",e,t,void 0,arguments)},splice(...e){return Yr(this,"splice",e)},toReversed(){return mr(this).toReversed()},toSorted(e){return mr(this).toSorted(e)},toSpliced(...e){return mr(this).toSpliced(...e)},unshift(...e){return Yr(this,"unshift",e)},values(){return Ki(this,"values",Qe)}};function Ki(e,t,n){const r=bi(e),s=r[t]();return r!==e&&!bt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const um=Array.prototype;function zt(e,t,n,r,s,o){const i=bi(e),a=i!==e&&!bt(e),l=i[t];if(l!==um[t]){const f=l.apply(e,o);return a?Qe(f):f}let c=n;i!==e&&(a?c=function(f,d){return n.call(this,Qe(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(i,c,r);return a&&s?s(u):u}function $c(e,t,n,r){const s=bi(e);let o=n;return s!==e&&(bt(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 Xi(e,t,n){const r=ge(e);Ye(r,"iterate",Es);const s=r[t](...n);return(s===-1||s===!1)&&Ml(n[0])?(n[0]=ge(n[0]),r[t](...n)):s}function Yr(e,t,n=[]){In(),Pl();const r=ge(e)[t].apply(e,n);return Nl(),Ln(),r}const fm=kl("__proto__,__v_isRef,__isVue"),ld=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($t));function dm(e){$t(e)||(e=String(e));const t=ge(this);return Ye(t,"has",e),t.hasOwnProperty(e)}class cd{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?Cm:hd:o?dd:fd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ne(t);if(!s){let l;if(i&&(l=cm[n]))return l;if(n==="hasOwnProperty")return dm}const a=Reflect.get(t,n,Ue(t)?t:r);return($t(n)?ld.has(n):fm(n))||(s||Ye(t,"get",n),o)?a:Ue(a)?i&&Rl(n)?a:a.value:Ce(a)?s?wi(a):Tn(a):a}}class ud extends cd{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=Rn(o);if(!bt(r)&&!Rn(r)&&(o=ge(o),r=ge(r)),!ne(t)&&Ue(o)&&!Ue(r))return l?!1:(o.value=r,!0)}const i=ne(t)&&Rl(n)?Number(n)<t.length:me(t,n),a=Reflect.set(t,n,r,Ue(t)?t:s);return t===ge(s)&&(i?xn(r,o)&&Qt(t,"set",n,r):Qt(t,"add",n,r)),a}deleteProperty(t,n){const r=me(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(!$t(n)||!ld.has(n))&&Ye(t,"has",n),r}ownKeys(t){return Ye(t,"iterate",ne(t)?"length":rr),Reflect.ownKeys(t)}}class hm extends cd{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const pm=new ud,gm=new hm,mm=new ud(!0);const Ta=e=>e,Qs=e=>Reflect.getPrototypeOf(e);function ym(e,t,n){return function(...r){const s=this.__v_raw,o=ge(s),i=Tr(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...r),u=n?Ta:t?Ra:Qe;return!t&&Ye(o,"iterate",l?Aa:rr),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Zs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vm(e,t){const n={get(s){const o=this.__v_raw,i=ge(o),a=ge(s);e||(xn(s,a)&&Ye(i,"get",s),Ye(i,"get",a));const{has:l}=Qs(i),c=t?Ta:e?Ra: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&&Ye(ge(s),"iterate",rr),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=ge(o),a=ge(s);return e||(xn(s,a)&&Ye(i,"has",s),Ye(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=ge(a),c=t?Ta:e?Ra:Qe;return!e&&Ye(l,"iterate",rr),a.forEach((u,f)=>s.call(o,c(u),c(f),i))}};return We(n,e?{add:Zs("add"),set:Zs("set"),delete:Zs("delete"),clear:Zs("clear")}:{add(s){!t&&!bt(s)&&!Rn(s)&&(s=ge(s));const o=ge(this);return Qs(o).has.call(o,s)||(o.add(s),Qt(o,"add",s,s)),this},set(s,o){!t&&!bt(o)&&!Rn(o)&&(o=ge(o));const i=ge(this),{has:a,get:l}=Qs(i);let c=a.call(i,s);c||(s=ge(s),c=a.call(i,s));const u=l.call(i,s);return i.set(s,o),c?xn(o,u)&&Qt(i,"set",s,o):Qt(i,"add",s,o),this},delete(s){const o=ge(this),{has:i,get:a}=Qs(o);let l=i.call(o,s);l||(s=ge(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=ge(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]=ym(s,e,t)}),n}function Ll(e,t){const n=vm(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(me(n,s)&&s in r?n:r,s,o)}const _m={get:Ll(!1,!1)},bm={get:Ll(!1,!0)},wm={get:Ll(!0,!1)};const fd=new WeakMap,dd=new WeakMap,hd=new WeakMap,Cm=new WeakMap;function Sm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xm(e){return e.__v_skip||!Object.isExtensible(e)?0:Sm(qg(e))}function Tn(e){return Rn(e)?e:Ol(e,!1,pm,_m,fd)}function Qn(e){return Ol(e,!1,mm,bm,dd)}function wi(e){return Ol(e,!0,gm,wm,hd)}function Ol(e,t,n,r,s){if(!Ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=xm(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function sr(e){return Rn(e)?sr(e.__v_raw):!!(e&&e.__v_isReactive)}function Rn(e){return!!(e&&e.__v_isReadonly)}function bt(e){return!!(e&&e.__v_isShallow)}function Ml(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function km(e){return!me(e,"__v_skip")&&Object.isExtensible(e)&&qf(e,"__v_skip",!0),e}const Qe=e=>Ce(e)?Tn(e):e,Ra=e=>Ce(e)?wi(e):e;function Ue(e){return e?e.__v_isRef===!0:!1}function he(e){return pd(e,!1)}function As(e){return pd(e,!0)}function pd(e,t){return Ue(e)?e:new Em(e,t)}class Em{constructor(t,n){this.dep=new _i,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ge(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||bt(t)||Rn(t);t=r?t:ge(t),xn(t,n)&&(this._rawValue=t,this._value=r?t:Qe(t),this.dep.trigger())}}function ue(e){return Ue(e)?e.value:e}function dt(e){return se(e)?e():ue(e)}const Am={get:(e,t,n)=>t==="__v_raw"?e:ue(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ue(s)&&!Ue(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function gd(e){return sr(e)?e:new Proxy(e,Am)}class Tm{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new _i,{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 Rm(e){return new Tm(e)}class $m{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 lm(ge(this._object),this._key)}}class Pm{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 md(e,t,n){return Ue(e)?e:se(e)?new Pm(e):Ce(e)&&arguments.length>1?Nm(e,t,n):he(e)}function Nm(e,t,n){const r=e[t];return Ue(r)?r:new $m(e,t,n)}class Im{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _i(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ks-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Te!==this)return nd(this,!0),!0}get value(){const t=this.dep.track();return od(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Lm(e,t,n=!1){let r,s;return se(e)?r=e:(r=e.get,s=e.set),new Im(r,s,n)}const eo={},Lo=new WeakMap;let Vn;function Om(e,t=!1,n=Vn){if(n){let r=Lo.get(n);r||Lo.set(n,r=[]),r.push(e)}}function Mm(e,t,n=Se){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,c=_=>s?_:bt(_)||s===!1||s===0?Zt(_,1):Zt(_);let u,f,d,h,p=!1,g=!1;if(Ue(e)?(f=()=>e.value,p=bt(e)):sr(e)?(f=()=>c(e),p=!0):ne(e)?(g=!0,p=e.some(_=>sr(_)||bt(_)),f=()=>e.map(_=>{if(Ue(_))return _.value;if(sr(_))return c(_);if(se(_))return l?l(_,2):_()})):se(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){In();try{d()}finally{Ln()}}const _=Vn;Vn=u;try{return l?l(e,3,[h]):e(h)}finally{Vn=_}}:f=Ht,t&&s){const _=f,C=s===!0?1/0:s;f=()=>Zt(_(),C)}const m=$l(),v=()=>{u.stop(),m&&m.active&&Al(m.effects,u)};if(o&&t){const _=t;t=(...C)=>{_(...C),v()}}let b=g?new Array(e.length).fill(eo):eo;const y=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const C=u.run();if(s||p||(g?C.some((A,I)=>xn(A,b[I])):xn(C,b))){d&&d();const A=Vn;Vn=u;try{const I=[C,b===eo?void 0:g&&b[0]===eo?[]:b,h];l?l(t,3,I):t(...I),b=C}finally{Vn=A}}}else u.run()};return a&&a(y),u=new ed(f),u.scheduler=i?()=>i(y,!1):y,h=_=>Om(_,!1,u),d=u.onStop=()=>{const _=Lo.get(u);if(_){if(l)l(_,4);else for(const C of _)C();Lo.delete(u)}},t?r?y(!0):b=u.run():i?i(y.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function Zt(e,t=1/0,n){if(t<=0||!Ce(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ue(e))Zt(e.value,t,n);else if(ne(e))for(let r=0;r<e.length;r++)Zt(e[r],t,n);else if(Wf(e)||Tr(e))e.forEach(r=>{Zt(r,t,n)});else if(zf(e)){for(const r in e)Zt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Zt(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 Vs(e,t,n,r){try{return r?e(...r):e()}catch(s){zr(s,t,n)}}function Pt(e,t,n,r){if(se(e)){const s=Vs(e,t,n,r);return s&&Tl(s)&&s.catch(o=>{zr(o,t,n)}),s}if(ne(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Pt(e[o],t,n,r));return s}}function zr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Se;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){In(),Vs(o,null,10,[e,l,c]),Ln();return}}Dm(e,n,s,r,i)}function Dm(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const st=[];let Dt=-1;const $r=[];let vn=null,br=0;const yd=Promise.resolve();let Oo=null;function On(e){const t=Oo||yd;return e?t.then(this?e.bind(this):e):t}function Fm(e){let t=Dt+1,n=st.length;for(;t<n;){const r=t+n>>>1,s=st[r],o=Ts(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Dl(e){if(!(e.flags&1)){const t=Ts(e),n=st[st.length-1];!n||!(e.flags&2)&&t>=Ts(n)?st.push(e):st.splice(Fm(t),0,e),e.flags|=1,vd()}}function vd(){Oo||(Oo=yd.then(_d))}function $a(e){ne(e)?$r.push(...e):vn&&e.id===-1?vn.splice(br+1,0,e):e.flags&1||($r.push(e),e.flags|=1),vd()}function Pc(e,t,n=Dt+1){for(;n<st.length;n++){const r=st[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;st.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Mo(e){if($r.length){const t=[...new Set($r)].sort((n,r)=>Ts(n)-Ts(r));if($r.length=0,vn){vn.push(...t);return}for(vn=t,br=0;br<vn.length;br++){const n=vn[br];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vn=null,br=0}}const Ts=e=>e.id==null?e.flags&2?-1:1/0:e.id;function _d(e){try{for(Dt=0;Dt<st.length;Dt++){const t=st[Dt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Vs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Dt<st.length;Dt++){const t=st[Dt];t&&(t.flags&=-2)}Dt=-1,st.length=0,Mo(),Oo=null,(st.length||$r.length)&&_d()}}let Ge=null,Ci=null;function Do(e){const t=Ge;return Ge=e,Ci=e&&e.type.__scopeId||null,t}function Bm(e){Ci=e}function Hm(){Ci=null}const jm=e=>ie;function ie(e,t=Ge,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&qc(-1);const o=Do(t);let i;try{i=e(...s)}finally{Do(o),r._d&&qc(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function bd(e,t){if(Ge===null)return e;const n=Ti(Ge),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=Se]=t[s];o&&(se(o)&&(o={mounted:o,updated:o}),o.deep&&Zt(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Ft(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&&(In(),Pt(l,n,8,[e.el,a,e,t]),Ln())}}const wd=Symbol("_vte"),Gm=e=>e.__isTeleport,cs=e=>e&&(e.disabled||e.disabled===""),Nc=e=>e&&(e.defer||e.defer===""),Ic=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Lc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Pa=(e,t)=>{const n=e&&e.to;return Re(n)?t?t(n):null:n},Cd={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:g,createComment:m}}=c,v=cs(t.props);let{shapeFlag:b,children:y,dynamicChildren:_}=t;if(e==null){const C=t.el=g(""),A=t.anchor=g("");h(C,n,r),h(A,n,r);const I=(N,k)=>{b&16&&(s&&s.isCE&&(s.ce._teleportTarget=N),u(y,N,k,s,o,i,a,l))},G=()=>{const N=t.target=Pa(t.props,p),k=Sd(N,t,g,h);N&&(i!=="svg"&&Ic(N)?i="svg":i!=="mathml"&&Lc(N)&&(i="mathml"),v||(I(N,k),wo(t,!1)))};v&&(I(n,A),wo(t,!0)),Nc(t.props)?nt(()=>{G(),t.el.__isMounted=!0},o):G()}else{if(Nc(t.props)&&!e.el.__isMounted){nt(()=>{Cd.process(e,t,n,r,s,o,i,a,l,c),delete e.el.__isMounted},o);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,A=t.target=e.target,I=t.targetAnchor=e.targetAnchor,G=cs(e.props),N=G?n:A,k=G?C:I;if(i==="svg"||Ic(A)?i="svg":(i==="mathml"||Lc(A))&&(i="mathml"),_?(d(e.dynamicChildren,_,N,s,o,i,a),Gl(e,t,!0)):l||f(e,t,N,k,s,o,i,a,!1),v)G?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):to(t,n,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=Pa(t.props,p);P&&to(t,P,null,c,0)}else G&&to(t,A,I,c,1);wo(t,v)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e;if(f&&(s(c),s(u)),o&&s(l),i&16){const h=o||!cs(d);for(let p=0;p<a.length;p++){const g=a[p];r(g,t,n,h,!!g.dynamicChildren)}}},move:to,hydrate:Um};function to(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=e,f=o===2;if(f&&r(i,t,n),(!f||cs(u))&&l&16)for(let d=0;d<c.length;d++)s(c[d],t,n,2);f&&r(a,t,n)}function Um(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},f){const d=t.target=Pa(t.props,l);if(d){const h=cs(t.props),p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(i(e),t,a(e),n,r,s,o),t.targetStart=p,t.targetAnchor=p&&i(p);else{t.anchor=i(e);let g=p;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}}g=i(g)}t.targetAnchor||Sd(d,t,u,c),f(p&&i(p),t,d,n,r,s,o)}wo(t,h)}return t.anchor&&i(t.anchor)}const Wm=Cd;function wo(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Sd(e,t,n,r){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[wd]=o,e&&(r(s,e),r(o,e)),o}const yr=Symbol("_leaveCb"),no=Symbol("_enterCb");function Vm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xi(()=>{e.isMounted=!0}),ki(()=>{e.isUnmounting=!0}),e}const ht=[Function,Array],zm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ht,onEnter:ht,onAfterEnter:ht,onEnterCancelled:ht,onBeforeLeave:ht,onLeave:ht,onAfterLeave:ht,onLeaveCancelled:ht,onBeforeAppear:ht,onAppear:ht,onAfterAppear:ht,onAppearCancelled:ht};function qm(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Na(e,t,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:b,onAppearCancelled:y}=t,_=String(e.key),C=qm(n,e),A=(N,k)=>{N&&Pt(N,r,9,k)},I=(N,k)=>{const P=k[1];A(N,k),ne(N)?N.every(E=>E.length<=1)&&P():N.length<=1&&P()},G={mode:i,persisted:a,beforeEnter(N){let k=l;if(!n.isMounted)if(o)k=m||l;else return;N[yr]&&N[yr](!0);const P=C[_];P&&tn(e,P)&&P.el[yr]&&P.el[yr](),A(k,[N])},enter(N){let k=c,P=u,E=f;if(!n.isMounted)if(o)k=v||c,P=b||u,E=y||f;else return;let x=!1;const T=N[no]=U=>{x||(x=!0,U?A(E,[N]):A(P,[N]),G.delayedLeave&&G.delayedLeave(),N[no]=void 0)};k?I(k,[N,T]):T()},leave(N,k){const P=String(e.key);if(N[no]&&N[no](!0),n.isUnmounting)return k();A(d,[N]);let E=!1;const x=N[yr]=T=>{E||(E=!0,k(),T?A(g,[N]):A(p,[N]),N[yr]=void 0,C[P]===e&&delete C[P])};C[P]=e,h?I(h,[N,x]):x()},clone(N){return Na(N,t,n,r)}};return G}function Rs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Rs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function xd(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===be?(i.patchFlag&128&&s++,r=r.concat(xd(i.children,t,a))):(t||i.type!==Ct)&&r.push(a!=null?lr(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Le(e,t){return se(e)?We({name:e.name},t,{setup:e}):e}function Fl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $s(e,t,n,r,s=!1){if(ne(e)){e.forEach((p,g)=>$s(p,t&&(ne(t)?t[g]:t),n,r,s));return}if(or(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&$s(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Ti(r.component):r.el,i=s?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Se?a.refs={}:a.refs,f=a.setupState,d=ge(f),h=f===Se?()=>!1:p=>me(d,p);if(c!=null&&c!==l&&(Re(c)?(u[c]=null,h(c)&&(f[c]=null)):Ue(c)&&(c.value=null)),se(l))Vs(l,a,12,[i,u]);else{const p=Re(l),g=Ue(l);if(p||g){const m=()=>{if(e.f){const v=p?h(l)?f[l]:u[l]:l.value;s?ne(v)&&Al(v,o):ne(v)?v.includes(o)||v.push(o):p?(u[l]=[o],h(l)&&(f[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,h(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(u[e.k]=i))};i?(m.id=-1,nt(m,n)):m()}}}let Oc=!1;const vr=()=>{Oc||(console.error("Hydration completed but contains mismatches."),Oc=!0)},Km=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Xm=e=>e.namespaceURI.includes("MathML"),ro=e=>{if(e.nodeType===1){if(Km(e))return"svg";if(Xm(e))return"mathml"}},xr=e=>e.nodeType===8;function Jm(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(y,_)=>{if(!_.hasChildNodes()){n(null,y,_),Mo(),_._vnode=y;return}f(_.firstChild,y,null,null,null),Mo(),_._vnode=y},f=(y,_,C,A,I,G=!1)=>{G=G||!!_.dynamicChildren;const N=xr(y)&&y.data==="[",k=()=>g(y,_,C,A,I,N),{type:P,ref:E,shapeFlag:x,patchFlag:T}=_;let U=y.nodeType;_.el=y,T===-2&&(G=!1,_.dynamicChildren=null);let L=null;switch(P){case ar:U!==3?_.children===""?(l(_.el=s(""),i(y),y),L=y):L=k():(y.data!==_.children&&(vr(),y.data=_.children),L=o(y));break;case Ct:b(y)?(L=o(y),v(_.el=y.content.firstChild,y,C)):U!==8||N?L=k():L=o(y);break;case fs:if(N&&(y=o(y),U=y.nodeType),U===1||U===3){L=y;const q=!_.children.length;for(let W=0;W<_.staticCount;W++)q&&(_.children+=L.nodeType===1?L.outerHTML:L.data),W===_.staticCount-1&&(_.anchor=L),L=o(L);return N?o(L):L}else k();break;case be:N?L=p(y,_,C,A,I,G):L=k();break;default:if(x&1)(U!==1||_.type.toLowerCase()!==y.tagName.toLowerCase())&&!b(y)?L=k():L=d(y,_,C,A,I,G);else if(x&6){_.slotScopeIds=I;const q=i(y);if(N?L=m(y):xr(y)&&y.data==="teleport start"?L=m(y,y.data,"teleport end"):L=o(y),t(_,q,null,C,A,ro(q),G),or(_)&&!_.type.__asyncResolved){let W;N?(W=J(be),W.anchor=L?L.previousSibling:q.lastChild):W=y.nodeType===3?pe(""):J("div"),W.el=y,_.component.subTree=W}}else x&64?U!==8?L=k():L=_.type.hydrate(y,_,C,A,I,G,e,h):x&128&&(L=_.type.hydrate(y,_,C,A,ro(i(y)),I,G,e,f))}return E!=null&&$s(E,null,A,_),L},d=(y,_,C,A,I,G)=>{G=G||!!_.dynamicChildren;const{type:N,props:k,patchFlag:P,shapeFlag:E,dirs:x,transition:T}=_,U=N==="input"||N==="option";if(U||P!==-1){x&&Ft(_,null,C,"created");let L=!1;if(b(y)){L=Xd(null,T)&&C&&C.vnode.props&&C.vnode.props.appear;const W=y.content.firstChild;L&&T.beforeEnter(W),v(W,y,C),_.el=y=W}if(E&16&&!(k&&(k.innerHTML||k.textContent))){let W=h(y.firstChild,_,y,C,A,I,G);for(;W;){so(y,1)||vr();const Q=W;W=W.nextSibling,a(Q)}}else if(E&8){let W=_.children;W[0]===`
|
|
15
|
-
`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(W=W.slice(1)),y.textContent!==W&&(so(y,0)||vr(),y.textContent=_.children)}if(k){if(U||!G||P&48){const W=y.tagName.includes("-");for(const Q in k)(U&&(Q.endsWith("value")||Q==="indeterminate")||Us(Q)&&!Rr(Q)||Q[0]==="."||W)&&r(y,Q,null,k[Q],void 0,C)}else if(k.onClick)r(y,"onClick",null,k.onClick,void 0,C);else if(P&4&&sr(k.style))for(const W in k.style)k.style[W]}let q;(q=k&&k.onVnodeBeforeMount)&>(q,C,_),x&&Ft(_,null,C,"beforeMount"),((q=k&&k.onVnodeMounted)||x||L)&&nh(()=>{q&>(q,C,_),L&&T.enter(y),x&&Ft(_,null,C,"mounted")},A)}return y.nextSibling},h=(y,_,C,A,I,G,N)=>{N=N||!!_.dynamicChildren;const k=_.children,P=k.length;for(let E=0;E<P;E++){const x=N?k[E]:k[E]=ft(k[E]),T=x.type===ar;y?(T&&!N&&E+1<P&&ft(k[E+1]).type===ar&&(l(s(y.data.slice(x.children.length)),C,o(y)),y.data=x.children),y=f(y,x,A,I,G,N)):T&&!x.children?l(x.el=s(""),C):(so(C,1)||vr(),n(null,x,C,null,A,I,ro(C),G))}return y},p=(y,_,C,A,I,G)=>{const{slotScopeIds:N}=_;N&&(I=I?I.concat(N):N);const k=i(y),P=h(o(y),_,k,C,A,I,G);return P&&xr(P)&&P.data==="]"?o(_.anchor=P):(vr(),l(_.anchor=c("]"),k,P),P)},g=(y,_,C,A,I,G)=>{if(so(y.parentElement,1)||vr(),_.el=null,G){const P=m(y);for(;;){const E=o(y);if(E&&E!==P)a(E);else break}}const N=o(y),k=i(y);return a(y),n(null,_,k,N,C,A,ro(k),I),C&&(C.vnode.el=_.el,Ai(C,_.el)),N},m=(y,_="[",C="]")=>{let A=0;for(;y;)if(y=o(y),y&&xr(y)&&(y.data===_&&A++,y.data===C)){if(A===0)return o(y);A--}return y},v=(y,_,C)=>{const A=_.parentNode;A&&A.replaceChild(y,_);let I=C;for(;I;)I.vnode.el===_&&(I.vnode.el=I.subTree.el=y),I=I.parent},b=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[u,f]}const Mc="data-allow-mismatch",Ym={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function so(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Mc);)e=e.parentElement;const n=e&&e.getAttribute(Mc);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(Ym[t])}}vi().requestIdleCallback;vi().cancelIdleCallback;function Qm(e,t){if(xr(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(xr(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const or=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Dc(e){se(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 d=()=>(f++,c=null,h()),h=()=>{let p;return c||(p=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((m,v)=>{l(g,()=>m(d()),()=>v(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 Le({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,m){const v=o?()=>{const b=o(m,y=>Qm(p,y));b&&(g.bum||(g.bum=[])).push(b)}:m;u?v():h().then(()=>!g.isUnmounted&&v())},get __asyncResolved(){return u},setup(){const p=je;if(Fl(p),u)return()=>Ji(u,p);const g=y=>{c=null,zr(y,p,13,!r)};if(a&&p.suspense||Fr)return h().then(y=>()=>Ji(y,p)).catch(y=>(g(y),()=>r?J(r,{error:y}):null));const m=he(!1),v=he(),b=he(!!s);return s&&setTimeout(()=>{b.value=!1},s),i!=null&&setTimeout(()=>{if(!m.value&&!v.value){const y=new Error(`Async component timed out after ${i}ms.`);g(y),v.value=y}},i),h().then(()=>{m.value=!0,p.parent&&Bl(p.parent.vnode)&&p.parent.update()}).catch(y=>{g(y),v.value=y}),()=>{if(m.value&&u)return Ji(u,p);if(v.value&&r)return J(r,{error:v.value});if(n&&!b.value)return J(n)}}})}function Ji(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=J(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Bl=e=>e.type.__isKeepAlive;function kd(e,t){Ad(e,"a",t)}function Ed(e,t){Ad(e,"da",t)}function Ad(e,t,n=je){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Si(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Bl(s.parent.vnode)&&Zm(r,t,n,s),s=s.parent}}function Zm(e,t,n,r){const s=Si(t,e,r,!0);Rd(()=>{Al(r[t],s)},n)}function Si(e,t,n=je,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{In();const a=cr(n),l=Pt(t,n,e,i);return a(),Ln(),l});return r?s.unshift(o):s.push(o),o}}const ln=e=>(t,n=je)=>{(!Fr||e==="sp")&&Si(e,(...r)=>t(...r),n)},ey=ln("bm"),xi=ln("m"),ty=ln("bu"),Td=ln("u"),ki=ln("bum"),Rd=ln("um"),ny=ln("sp"),ry=ln("rtg"),sy=ln("rtc");function $d(e,t=je){Si("ec",e,t)}const Pd="components";function an(e,t){return Id(Pd,e,!0,t)||e}const Nd=Symbol.for("v-ndc");function oy(e){return Re(e)?Id(Pd,e,!1)||e:e||Nd}function Id(e,t,n=!0,r=!1){const s=Ge||je;if(s){const o=s.type;{const a=Xy(o,!1);if(a&&(a===t||a===wt(t)||a===yi(wt(t))))return o}const i=Fc(s[e]||o[e],t)||Fc(s.appContext[e],t);return!i&&r?o:i}}function Fc(e,t){return e&&(e[t]||e[wt(t)]||e[yi(wt(t))])}function en(e,t,n,r){let s;const o=n,i=ne(e);if(i||Re(e)){const a=i&&sr(e);let l=!1;a&&(l=!bt(e),e=bi(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(Ce(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,o)}}else s=[];return s}function Fe(e,t,n={},r,s){if(Ge.ce||Ge.parent&&or(Ge.parent)&&Ge.parent.ce)return t!=="default"&&(n.name=t),V(),we(be,null,[J("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),V();const i=o&&Ld(o(n)),a=n.key||i&&i.key,l=we(be,{key:(a&&!$t(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 Ld(e){return e.some(t=>Dr(t)?!(t.type===Ct||t.type===be&&!Ld(t.children)):!0)?e:null}const Ia=e=>e?ih(e)?Ti(e):Ia(e.parent):null,us=We(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ia(e.parent),$root:e=>Ia(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Md(e),$forceUpdate:e=>e.f||(e.f=()=>{Dl(e.update)}),$nextTick:e=>e.n||(e.n=On.bind(e.proxy)),$watch:e=>Ey.bind(e)}),Yi=(e,t)=>e!==Se&&!e.__isScriptSetup&&me(e,t),iy={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 h=i[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Yi(r,t))return i[t]=1,r[t];if(s!==Se&&me(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&me(c,t))return i[t]=3,o[t];if(n!==Se&&me(n,t))return i[t]=4,n[t];La&&(i[t]=0)}}const u=us[t];let f,d;if(u)return t==="$attrs"&&Ye(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Se&&me(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,me(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Yi(s,t)?(s[t]=n,!0):r!==Se&&me(r,t)?(r[t]=n,!0):me(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!==Se&&me(e,i)||Yi(t,i)||(a=o[0])&&me(a,i)||me(r,i)||me(us,i)||me(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bc(e){return ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ay(e){const t=qr();let n=e();return Ba(),Tl(n)&&(n=n.catch(r=>{throw cr(t),r})),[n,()=>cr(t)]}let La=!0;function ly(e){const t=Md(e),n=e.proxy,r=e.ctx;La=!1,t.beforeCreate&&Hc(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:b,destroyed:y,unmounted:_,render:C,renderTracked:A,renderTriggered:I,errorCaptured:G,serverPrefetch:N,expose:k,inheritAttrs:P,components:E,directives:x,filters:T}=t;if(c&&cy(c,r,null),i)for(const q in i){const W=i[q];se(W)&&(r[q]=W.bind(n))}if(s){const q=s.call(n,n);Ce(q)&&(e.data=Tn(q))}if(La=!0,o)for(const q in o){const W=o[q],Q=se(W)?W.bind(n,n):se(W.get)?W.get.bind(n,n):Ht,xe=!se(W)&&se(W.set)?W.set.bind(n):Ht,ke=Ne({get:Q,set:xe});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>ke.value,set:ze=>ke.value=ze})}if(a)for(const q in a)Od(a[q],r,n,q);if(l){const q=se(l)?l.call(n):l;Reflect.ownKeys(q).forEach(W=>{Fd(W,q[W])})}u&&Hc(u,e,"c");function L(q,W){ne(W)?W.forEach(Q=>q(Q.bind(n))):W&&q(W.bind(n))}if(L(ey,f),L(xi,d),L(ty,h),L(Td,p),L(kd,g),L(Ed,m),L($d,G),L(sy,A),L(ry,I),L(ki,b),L(Rd,_),L(ny,N),ne(k))if(k.length){const q=e.exposed||(e.exposed={});k.forEach(W=>{Object.defineProperty(q,W,{get:()=>n[W],set:Q=>n[W]=Q})})}else e.exposed||(e.exposed={});C&&e.render===Ht&&(e.render=C),P!=null&&(e.inheritAttrs=P),E&&(e.components=E),x&&(e.directives=x),N&&Fl(e)}function cy(e,t,n=Ht){ne(e)&&(e=Oa(e));for(const r in e){const s=e[r];let o;Ce(s)?"default"in s?o=Pr(s.from||r,s.default,!0):o=Pr(s.from||r):o=Pr(s),Ue(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Hc(e,t,n){Pt(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Od(e,t,n,r){let s=r.includes(".")?Qd(n,r):()=>n[r];if(Re(e)){const o=t[e];se(o)&&on(s,o)}else if(se(e))on(s,e.bind(n));else if(Ce(e))if(ne(e))e.forEach(o=>Od(o,t,n,r));else{const o=se(e.handler)?e.handler.bind(n):t[e.handler];se(o)&&on(s,o,e)}}function Md(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=>Fo(l,c,i,!0)),Fo(l,t,i)),Ce(t)&&o.set(t,l),l}function Fo(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Fo(e,o,n,!0),s&&s.forEach(i=>Fo(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=uy[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const uy={data:jc,props:Gc,emits:Gc,methods:ss,computed:ss,beforeCreate:tt,created:tt,beforeMount:tt,mounted:tt,beforeUpdate:tt,updated:tt,beforeDestroy:tt,beforeUnmount:tt,destroyed:tt,unmounted:tt,activated:tt,deactivated:tt,errorCaptured:tt,serverPrefetch:tt,components:ss,directives:ss,watch:dy,provide:jc,inject:fy};function jc(e,t){return t?e?function(){return We(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function fy(e,t){return ss(Oa(e),Oa(t))}function Oa(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function tt(e,t){return e?[...new Set([].concat(e,t))]:t}function ss(e,t){return e?We(Object.create(null),e,t):t}function Gc(e,t){return e?ne(e)&&ne(t)?[...new Set([...e,...t])]:We(Object.create(null),Bc(e),Bc(t??{})):t}function dy(e,t){if(!e)return t;if(!t)return e;const n=We(Object.create(null),e);for(const r in t)n[r]=tt(e[r],t[r]);return n}function Dd(){return{app:null,config:{isNativeTag:Vg,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 hy=0;function py(e,t){return function(r,s=null){se(r)||(r=We({},r)),s!=null&&!Ce(s)&&(s=null);const o=Dd(),i=new WeakSet,a=[];let l=!1;const c=o.app={_uid:hy++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Yy,get config(){return o.config},set config(u){},use(u,...f){return i.has(u)||(u&&se(u.install)?(i.add(u),u.install(c,...f)):se(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,d){if(!l){const h=c._ceVNode||J(r,s);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,u):e(h,u,d),l=!0,c._container=u,u.__vue_app__=c,Ti(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Pt(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=ir;ir=c;try{return u()}finally{ir=f}}};return c}}let ir=null;function Fd(e,t){if(je){let n=je.provides;const r=je.parent&&je.parent.provides;r===n&&(n=je.provides=Object.create(r)),n[e]=t}}function Pr(e,t,n=!1){const r=je||Ge;if(r||ir){const s=ir?ir._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&&se(t)?t.call(r&&r.proxy):t}}function Hl(){return!!(je||Ge||ir)}const Bd={},Hd=()=>Object.create(Bd),jd=e=>Object.getPrototypeOf(e)===Bd;function gy(e,t,n,r=!1){const s={},o=Hd();e.propsDefaults=Object.create(null),Gd(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Qn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function my(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ge(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 d=u[f];if(Ei(e.emitsOptions,d))continue;const h=t[d];if(l)if(me(o,d))h!==o[d]&&(o[d]=h,c=!0);else{const p=wt(d);s[p]=Ma(l,a,p,h,e,!1)}else h!==o[d]&&(o[d]=h,c=!0)}}}else{Gd(e,t,s,o)&&(c=!0);let u;for(const f in a)(!t||!me(t,f)&&((u=Nn(f))===f||!me(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=Ma(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!me(t,f))&&(delete o[f],c=!0)}c&&Qt(e.attrs,"set","")}function Gd(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Rr(l))continue;const c=t[l];let u;s&&me(s,u=wt(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:Ei(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(o){const l=ge(n),c=a||Se;for(let u=0;u<o.length;u++){const f=o[u];n[f]=Ma(s,l,f,c[f],e,!me(c,f))}}return i}function Ma(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=me(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&se(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=cr(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===Nn(n))&&(r=!0))}return r}const yy=new WeakMap;function Ud(e,t,n=!1){const r=n?yy:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!se(e)){const u=f=>{l=!0;const[d,h]=Ud(f,t,!0);We(i,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Ce(e)&&r.set(e,Ar),Ar;if(ne(o))for(let u=0;u<o.length;u++){const f=wt(o[u]);Uc(f)&&(i[f]=Se)}else if(o)for(const u in o){const f=wt(u);if(Uc(f)){const d=o[u],h=i[f]=ne(d)||se(d)?{type:d}:We({},d),p=h.type;let g=!1,m=!0;if(ne(p))for(let v=0;v<p.length;++v){const b=p[v],y=se(b)&&b.name;if(y==="Boolean"){g=!0;break}else y==="String"&&(m=!1)}else g=se(p)&&p.name==="Boolean";h[0]=g,h[1]=m,(g||me(h,"default"))&&a.push(f)}}const c=[i,a];return Ce(e)&&r.set(e,c),c}function Uc(e){return e[0]!=="$"&&!Rr(e)}const Wd=e=>e[0]==="_"||e==="$stable",jl=e=>ne(e)?e.map(ft):[ft(e)],vy=(e,t,n)=>{if(t._n)return t;const r=ie((...s)=>jl(t(...s)),n);return r._c=!1,r},Vd=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Wd(s))continue;const o=e[s];if(se(o))t[s]=vy(s,o,r);else if(o!=null){const i=jl(o);t[s]=()=>i}}},zd=(e,t)=>{const n=jl(t);e.slots.default=()=>n},qd=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},_y=(e,t,n)=>{const r=e.slots=Hd();if(e.vnode.shapeFlag&32){const s=t._;s?(qd(r,t,n),n&&qf(r,"_",s,!0)):Vd(t,r)}else t&&zd(e,t)},by=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Se;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:qd(s,t,n):(o=!t.$stable,Vd(t,s)),i=t}else t&&(zd(e,t),i={default:1});if(o)for(const a in s)!Wd(a)&&i[a]==null&&delete s[a]},nt=nh;function wy(e){return Kd(e)}function Cy(e){return Kd(e,Jm)}function Kd(e,t){const n=vi();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=Ht,insertStaticContent:p}=e,g=(w,S,$,F=null,O=null,M=null,X=void 0,K=null,z=!!S.dynamicChildren)=>{if(w===S)return;w&&!tn(w,S)&&(F=dn(w),ze(w,O,M,!0),w=null),S.patchFlag===-2&&(z=!1,S.dynamicChildren=null);const{type:B,ref:re,shapeFlag:Y}=S;switch(B){case ar:m(w,S,$,F);break;case Ct:v(w,S,$,F);break;case fs:w==null&&b(S,$,F,X);break;case be:E(w,S,$,F,O,M,X,K,z);break;default:Y&1?C(w,S,$,F,O,M,X,K,z):Y&6?x(w,S,$,F,O,M,X,K,z):(Y&64||Y&128)&&B.process(w,S,$,F,O,M,X,K,z,gr)}re!=null&&O&&$s(re,w&&w.ref,M,S||w,!S)},m=(w,S,$,F)=>{if(w==null)r(S.el=a(S.children),$,F);else{const O=S.el=w.el;S.children!==w.children&&c(O,S.children)}},v=(w,S,$,F)=>{w==null?r(S.el=l(S.children||""),$,F):S.el=w.el},b=(w,S,$,F)=>{[w.el,w.anchor]=p(w.children,S,$,F,w.el,w.anchor)},y=({el:w,anchor:S},$,F)=>{let O;for(;w&&w!==S;)O=d(w),r(w,$,F),w=O;r(S,$,F)},_=({el:w,anchor:S})=>{let $;for(;w&&w!==S;)$=d(w),s(w),w=$;s(S)},C=(w,S,$,F,O,M,X,K,z)=>{S.type==="svg"?X="svg":S.type==="math"&&(X="mathml"),w==null?A(S,$,F,O,M,X,K,z):N(w,S,O,M,X,K,z)},A=(w,S,$,F,O,M,X,K)=>{let z,B;const{props:re,shapeFlag:Y,transition:te,dirs:oe}=w;if(z=w.el=i(w.type,M,re&&re.is,re),Y&8?u(z,w.children):Y&16&&G(w.children,z,null,F,O,Qi(w,M),X,K),oe&&Ft(w,null,F,"created"),I(z,w,w.scopeId,X,F),re){for(const Ee in re)Ee!=="value"&&!Rr(Ee)&&o(z,Ee,null,re[Ee],M,F);"value"in re&&o(z,"value",null,re.value,M),(B=re.onVnodeBeforeMount)&>(B,F,w)}oe&&Ft(w,null,F,"beforeMount");const fe=Xd(O,te);fe&&te.beforeEnter(z),r(z,S,$),((B=re&&re.onVnodeMounted)||fe||oe)&&nt(()=>{B&>(B,F,w),fe&&te.enter(z),oe&&Ft(w,null,F,"mounted")},O)},I=(w,S,$,F,O)=>{if($&&h(w,$),F)for(let M=0;M<F.length;M++)h(w,F[M]);if(O){let M=O.subTree;if(S===M||eh(M.type)&&(M.ssContent===S||M.ssFallback===S)){const X=O.vnode;I(w,X,X.scopeId,X.slotScopeIds,O.parent)}}},G=(w,S,$,F,O,M,X,K,z=0)=>{for(let B=z;B<w.length;B++){const re=w[B]=K?_n(w[B]):ft(w[B]);g(null,re,S,$,F,O,M,X,K)}},N=(w,S,$,F,O,M,X)=>{const K=S.el=w.el;let{patchFlag:z,dynamicChildren:B,dirs:re}=S;z|=w.patchFlag&16;const Y=w.props||Se,te=S.props||Se;let oe;if($&&Hn($,!1),(oe=te.onVnodeBeforeUpdate)&>(oe,$,S,w),re&&Ft(S,w,$,"beforeUpdate"),$&&Hn($,!0),(Y.innerHTML&&te.innerHTML==null||Y.textContent&&te.textContent==null)&&u(K,""),B?k(w.dynamicChildren,B,K,$,F,Qi(S,O),M):X||W(w,S,K,null,$,F,Qi(S,O),M,!1),z>0){if(z&16)P(K,Y,te,$,O);else if(z&2&&Y.class!==te.class&&o(K,"class",null,te.class,O),z&4&&o(K,"style",Y.style,te.style,O),z&8){const fe=S.dynamicProps;for(let Ee=0;Ee<fe.length;Ee++){const ye=fe[Ee],at=Y[ye],Ke=te[ye];(Ke!==at||ye==="value")&&o(K,ye,at,Ke,O,$)}}z&1&&w.children!==S.children&&u(K,S.children)}else!X&&B==null&&P(K,Y,te,$,O);((oe=te.onVnodeUpdated)||re)&&nt(()=>{oe&>(oe,$,S,w),re&&Ft(S,w,$,"updated")},F)},k=(w,S,$,F,O,M,X)=>{for(let K=0;K<S.length;K++){const z=w[K],B=S[K],re=z.el&&(z.type===be||!tn(z,B)||z.shapeFlag&70)?f(z.el):$;g(z,B,re,null,F,O,M,X,!0)}},P=(w,S,$,F,O)=>{if(S!==$){if(S!==Se)for(const M in S)!Rr(M)&&!(M in $)&&o(w,M,S[M],null,O,F);for(const M in $){if(Rr(M))continue;const X=$[M],K=S[M];X!==K&&M!=="value"&&o(w,M,K,X,O,F)}"value"in $&&o(w,"value",S.value,$.value,O)}},E=(w,S,$,F,O,M,X,K,z)=>{const B=S.el=w?w.el:a(""),re=S.anchor=w?w.anchor:a("");let{patchFlag:Y,dynamicChildren:te,slotScopeIds:oe}=S;oe&&(K=K?K.concat(oe):oe),w==null?(r(B,$,F),r(re,$,F),G(S.children||[],$,re,O,M,X,K,z)):Y>0&&Y&64&&te&&w.dynamicChildren?(k(w.dynamicChildren,te,$,O,M,X,K),(S.key!=null||O&&S===O.subTree)&&Gl(w,S,!0)):W(w,S,$,re,O,M,X,K,z)},x=(w,S,$,F,O,M,X,K,z)=>{S.slotScopeIds=K,w==null?S.shapeFlag&512?O.ctx.activate(S,$,F,X,z):T(S,$,F,O,M,X,z):U(w,S,z)},T=(w,S,$,F,O,M,X)=>{const K=w.component=Wy(w,F,O);if(Bl(w)&&(K.ctx.renderer=gr),Vy(K,!1,X),K.asyncDep){if(O&&O.registerDep(K,L,X),!w.el){const z=K.subTree=J(Ct);v(null,z,S,$)}}else L(K,w,S,$,O,M,X)},U=(w,S,$)=>{const F=S.component=w.component;if(Ny(w,S,$))if(F.asyncDep&&!F.asyncResolved){q(F,S,$);return}else F.next=S,F.update();else S.el=w.el,F.vnode=S},L=(w,S,$,F,O,M,X)=>{const K=()=>{if(w.isMounted){let{next:Y,bu:te,u:oe,parent:fe,vnode:Ee}=w;{const lt=Jd(w);if(lt){Y&&(Y.el=Ee.el,q(w,Y,X)),lt.asyncDep.then(()=>{w.isUnmounted||K()});return}}let ye=Y,at;Hn(w,!1),Y?(Y.el=Ee.el,q(w,Y,X)):Y=Ee,te&&bo(te),(at=Y.props&&Y.props.onVnodeBeforeUpdate)&>(at,fe,Y,Ee),Hn(w,!0);const Ke=Zi(w),St=w.subTree;w.subTree=Ke,g(St,Ke,f(St.el),dn(St),w,O,M),Y.el=Ke.el,ye===null&&Ai(w,Ke.el),oe&&nt(oe,O),(at=Y.props&&Y.props.onVnodeUpdated)&&nt(()=>gt(at,fe,Y,Ee),O)}else{let Y;const{el:te,props:oe}=S,{bm:fe,m:Ee,parent:ye,root:at,type:Ke}=w,St=or(S);if(Hn(w,!1),fe&&bo(fe),!St&&(Y=oe&&oe.onVnodeBeforeMount)&>(Y,ye,S),Hn(w,!0),te&&Gi){const lt=()=>{w.subTree=Zi(w),Gi(te,w.subTree,w,O,null)};St&&Ke.__asyncHydrate?Ke.__asyncHydrate(te,w,lt):lt()}else{at.ce&&at.ce._injectChildStyle(Ke);const lt=w.subTree=Zi(w);g(null,lt,$,F,w,O,M),S.el=lt.el}if(Ee&&nt(Ee,O),!St&&(Y=oe&&oe.onVnodeMounted)){const lt=S;nt(()=>gt(Y,ye,lt),O)}(S.shapeFlag&256||ye&&or(ye.vnode)&&ye.vnode.shapeFlag&256)&&w.a&&nt(w.a,O),w.isMounted=!0,S=$=F=null}};w.scope.on();const z=w.effect=new ed(K);w.scope.off();const B=w.update=z.run.bind(z),re=w.job=z.runIfDirty.bind(z);re.i=w,re.id=w.uid,z.scheduler=()=>Dl(re),Hn(w,!0),B()},q=(w,S,$)=>{S.component=w;const F=w.vnode.props;w.vnode=S,w.next=null,my(w,S.props,F,$),by(w,S.children,$),In(),Pc(w),Ln()},W=(w,S,$,F,O,M,X,K,z=!1)=>{const B=w&&w.children,re=w?w.shapeFlag:0,Y=S.children,{patchFlag:te,shapeFlag:oe}=S;if(te>0){if(te&128){xe(B,Y,$,F,O,M,X,K,z);return}else if(te&256){Q(B,Y,$,F,O,M,X,K,z);return}}oe&8?(re&16&&fn(B,O,M),Y!==B&&u($,Y)):re&16?oe&16?xe(B,Y,$,F,O,M,X,K,z):fn(B,O,M,!0):(re&8&&u($,""),oe&16&&G(Y,$,F,O,M,X,K,z))},Q=(w,S,$,F,O,M,X,K,z)=>{w=w||Ar,S=S||Ar;const B=w.length,re=S.length,Y=Math.min(B,re);let te;for(te=0;te<Y;te++){const oe=S[te]=z?_n(S[te]):ft(S[te]);g(w[te],oe,$,null,O,M,X,K,z)}B>re?fn(w,O,M,!0,!1,Y):G(S,$,F,O,M,X,K,z,Y)},xe=(w,S,$,F,O,M,X,K,z)=>{let B=0;const re=S.length;let Y=w.length-1,te=re-1;for(;B<=Y&&B<=te;){const oe=w[B],fe=S[B]=z?_n(S[B]):ft(S[B]);if(tn(oe,fe))g(oe,fe,$,null,O,M,X,K,z);else break;B++}for(;B<=Y&&B<=te;){const oe=w[Y],fe=S[te]=z?_n(S[te]):ft(S[te]);if(tn(oe,fe))g(oe,fe,$,null,O,M,X,K,z);else break;Y--,te--}if(B>Y){if(B<=te){const oe=te+1,fe=oe<re?S[oe].el:F;for(;B<=te;)g(null,S[B]=z?_n(S[B]):ft(S[B]),$,fe,O,M,X,K,z),B++}}else if(B>te)for(;B<=Y;)ze(w[B],O,M,!0),B++;else{const oe=B,fe=B,Ee=new Map;for(B=fe;B<=te;B++){const ct=S[B]=z?_n(S[B]):ft(S[B]);ct.key!=null&&Ee.set(ct.key,B)}let ye,at=0;const Ke=te-fe+1;let St=!1,lt=0;const Jr=new Array(Ke);for(B=0;B<Ke;B++)Jr[B]=0;for(B=oe;B<=Y;B++){const ct=w[B];if(at>=Ke){ze(ct,O,M,!0);continue}let It;if(ct.key!=null)It=Ee.get(ct.key);else for(ye=fe;ye<=te;ye++)if(Jr[ye-fe]===0&&tn(ct,S[ye])){It=ye;break}It===void 0?ze(ct,O,M,!0):(Jr[It-fe]=B+1,It>=lt?lt=It:St=!0,g(ct,S[It],$,null,O,M,X,K,z),at++)}const Sc=St?Sy(Jr):Ar;for(ye=Sc.length-1,B=Ke-1;B>=0;B--){const ct=fe+B,It=S[ct],xc=ct+1<re?S[ct+1].el:F;Jr[B]===0?g(null,It,$,xc,O,M,X,K,z):St&&(ye<0||B!==Sc[ye]?ke(It,$,xc,2):ye--)}}},ke=(w,S,$,F,O=null)=>{const{el:M,type:X,transition:K,children:z,shapeFlag:B}=w;if(B&6){ke(w.component.subTree,S,$,F);return}if(B&128){w.suspense.move(S,$,F);return}if(B&64){X.move(w,S,$,gr);return}if(X===be){r(M,S,$);for(let Y=0;Y<z.length;Y++)ke(z[Y],S,$,F);r(w.anchor,S,$);return}if(X===fs){y(w,S,$);return}if(F!==2&&B&1&&K)if(F===0)K.beforeEnter(M),r(M,S,$),nt(()=>K.enter(M),O);else{const{leave:Y,delayLeave:te,afterLeave:oe}=K,fe=()=>r(M,S,$),Ee=()=>{Y(M,()=>{fe(),oe&&oe()})};te?te(M,fe,Ee):Ee()}else r(M,S,$)},ze=(w,S,$,F=!1,O=!1)=>{const{type:M,props:X,ref:K,children:z,dynamicChildren:B,shapeFlag:re,patchFlag:Y,dirs:te,cacheIndex:oe}=w;if(Y===-2&&(O=!1),K!=null&&$s(K,null,$,w,!0),oe!=null&&(S.renderCache[oe]=void 0),re&256){S.ctx.deactivate(w);return}const fe=re&1&&te,Ee=!or(w);let ye;if(Ee&&(ye=X&&X.onVnodeBeforeUnmount)&>(ye,S,w),re&6)Dn(w.component,$,F);else{if(re&128){w.suspense.unmount($,F);return}fe&&Ft(w,null,S,"beforeUnmount"),re&64?w.type.remove(w,S,$,gr,F):B&&!B.hasOnce&&(M!==be||Y>0&&Y&64)?fn(B,S,$,!1,!0):(M===be&&Y&384||!O&&re&16)&&fn(z,S,$),F&&un(w)}(Ee&&(ye=X&&X.onVnodeUnmounted)||fe)&&nt(()=>{ye&>(ye,S,w),fe&&Ft(w,null,S,"unmounted")},$)},un=w=>{const{type:S,el:$,anchor:F,transition:O}=w;if(S===be){Nt($,F);return}if(S===fs){_(w);return}const M=()=>{s($),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(w.shapeFlag&1&&O&&!O.persisted){const{leave:X,delayLeave:K}=O,z=()=>X($,M);K?K(w.el,M,z):z()}else M()},Nt=(w,S)=>{let $;for(;w!==S;)$=d(w),s(w),w=$;s(S)},Dn=(w,S,$)=>{const{bum:F,scope:O,job:M,subTree:X,um:K,m:z,a:B}=w;Wc(z),Wc(B),F&&bo(F),O.stop(),M&&(M.flags|=8,ze(X,w,S,$)),K&&nt(K,S),nt(()=>{w.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve())},fn=(w,S,$,F=!1,O=!1,M=0)=>{for(let X=M;X<w.length;X++)ze(w[X],S,$,F,O)},dn=w=>{if(w.shapeFlag&6)return dn(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const S=d(w.anchor||w.el),$=S&&S[wd];return $?d($):S};let Fn=!1;const Cc=(w,S,$)=>{w==null?S._vnode&&ze(S._vnode,null,null,!0):g(S._vnode||null,w,S,null,null,null,$),S._vnode=w,Fn||(Fn=!0,Pc(),Mo(),Fn=!1)},gr={p:g,um:ze,m:ke,r:un,mt:T,mc:G,pc:W,pbc:k,n:dn,o:e};let ji,Gi;return t&&([ji,Gi]=t(gr)),{render:Cc,hydrate:ji,createApp:py(Cc,ji)}}function Qi({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 Hn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gl(e,t,n=!1){const r=e.children,s=t.children;if(ne(r)&&ne(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]=_n(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Gl(i,a)),a.type===ar&&(a.el=i.el)}}function Sy(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 Jd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jd(t)}function Wc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const xy=Symbol.for("v-scx"),ky=()=>Pr(xy);function Yd(e,t){return Ul(e,null,t)}function on(e,t,n){return Ul(e,t,n)}function Ul(e,t,n=Se){const{immediate:r,deep:s,flush:o,once:i}=n,a=We({},n),l=t&&r||!t&&o!=="post";let c;if(Fr){if(o==="sync"){const h=ky();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Ht,h.resume=Ht,h.pause=Ht,h}}const u=je;a.call=(h,p,g)=>Pt(h,u,p,g);let f=!1;o==="post"?a.scheduler=h=>{nt(h,u&&u.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():Dl(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=Mm(e,t,a);return Fr&&(c?c.push(d):l&&d()),d}function Ey(e,t,n){const r=this.proxy,s=Re(e)?e.includes(".")?Qd(r,e):()=>r[e]:e.bind(r,r);let o;se(t)?o=t:(o=t.handler,n=t);const i=cr(this),a=Ul(s,o.bind(r),n);return i(),a}function Qd(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 Ay=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${Nn(t)}Modifiers`];function Ty(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Se;let s=n;const o=t.startsWith("update:"),i=o&&Ay(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>Re(u)?u.trim():u)),i.number&&(s=n.map(Jg)));let a,l=r[a=Vi(t)]||r[a=Vi(wt(t))];!l&&o&&(l=r[a=Vi(Nn(t))]),l&&Pt(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,Pt(c,e,6,s)}}function Zd(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(!se(e)){const l=c=>{const u=Zd(c,t,!0);u&&(a=!0,We(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Ce(e)&&r.set(e,null),null):(ne(o)?o.forEach(l=>i[l]=null):We(i,o),Ce(e)&&r.set(e,i),i)}function Ei(e,t){return!e||!Us(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,Nn(t))||me(e,t))}function Zi(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:d,setupState:h,ctx:p,inheritAttrs:g}=e,m=Do(e);let v,b;try{if(n.shapeFlag&4){const _=s||r,C=_;v=ft(c.call(C,_,u,f,h,d,p)),b=a}else{const _=t;v=ft(_.length>1?_(f,{attrs:a,slots:i,emit:l}):_(f,null)),b=t.props?a:$y(a)}}catch(_){ds.length=0,zr(_,e,1),v=J(Ct)}let y=v;if(b&&g!==!1){const _=Object.keys(b),{shapeFlag:C}=y;_.length&&C&7&&(o&&_.some(El)&&(b=Py(b,o)),y=lr(y,b,!1,!0))}return n.dirs&&(y=lr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Rs(y,n.transition),v=y,Do(m),v}function Ry(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(Dr(s)){if(s.type!==Ct||s.children==="v-if"){if(n)return;n=s}}else return}return n}const $y=e=>{let t;for(const n in e)(n==="class"||n==="style"||Us(n))&&((t||(t={}))[n]=e[n]);return t},Py=(e,t)=>{const n={};for(const r in e)(!El(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ny(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?Vc(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(i[d]!==r[d]&&!Ei(c,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Vc(r,i,c):!0:!!i;return!1}function Vc(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]&&!Ei(n,o))return!0}return!1}function Ai({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 eh=e=>e.__isSuspense;let Da=0;const Iy={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,c){if(e==null)Oy(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}My(e,t,n,r,s,i,a,l,c)}},hydrate:Dy,normalize:Fy},Ly=Iy;function Ps(e,t){const n=e.props&&e.props[t];se(n)&&n()}function Oy(e,t,n,r,s,o,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=th(e,s,r,t,f,n,o,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,r,d,o,i),d.deps>0?(Ps(e,"onPending"),Ps(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,i),Nr(d,e.ssFallback)):d.resolve(!1,!0)}function My(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 d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:m,isHydrating:v}=f;if(g)f.pendingBranch=d,tn(d,g)?(l(g,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():m&&(v||(l(p,h,n,r,s,null,o,i,a),Nr(f,h)))):(f.pendingId=Da++,v?(f.isHydrating=!1,f.activeBranch=g):c(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),m?(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(l(p,h,n,r,s,null,o,i,a),Nr(f,h))):p&&tn(d,p)?(l(p,d,n,r,s,f,o,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0&&f.resolve()));else if(p&&tn(d,p))l(p,d,n,r,s,f,o,i,a),Nr(f,d);else if(Ps(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Da++,l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:y}=f;b>0?setTimeout(()=>{f.pendingId===y&&f.fallback(h)},b):b===0&&f.fallback(h)}}function th(e,t,n,r,s,o,i,a,l,c,u=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:g,remove:m}}=c;let v;const b=By(e);b&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const y=e.props?Kf(e.props.timeout):void 0,_=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Da++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(A=!1,I=!1){const{vnode:G,activeBranch:N,pendingBranch:k,pendingId:P,effects:E,parentComponent:x,container:T}=C;let U=!1;C.isHydrating?C.isHydrating=!1:A||(U=N&&k.transition&&k.transition.mode==="out-in",U&&(N.transition.afterLeave=()=>{P===C.pendingId&&(d(k,T,o===_?p(N):o,0),$a(E))}),N&&(g(N.el)===T&&(o=p(N)),h(N,x,C,!0)),U||d(k,T,o,0)),Nr(C,k),C.pendingBranch=null,C.isInFallback=!1;let L=C.parent,q=!1;for(;L;){if(L.pendingBranch){L.effects.push(...E),q=!0;break}L=L.parent}!q&&!U&&$a(E),C.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!I&&t.resolve()),Ps(G,"onResolve")},fallback(A){if(!C.pendingBranch)return;const{vnode:I,activeBranch:G,parentComponent:N,container:k,namespace:P}=C;Ps(I,"onFallback");const E=p(G),x=()=>{C.isInFallback&&(f(null,A,k,E,N,null,P,a,l),Nr(C,A))},T=A.transition&&A.transition.mode==="out-in";T&&(G.transition.afterLeave=x),C.isInFallback=!0,h(G,N,null,!0),T||x()},move(A,I,G){C.activeBranch&&d(C.activeBranch,A,I,G),C.container=A},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(A,I,G){const N=!!C.pendingBranch;N&&C.deps++;const k=A.vnode.el;A.asyncDep.catch(P=>{zr(P,A,0)}).then(P=>{if(A.isUnmounted||C.isUnmounted||C.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:E}=A;Ha(A,P),k&&(E.el=k);const x=!k&&A.subTree.el;I(A,E,g(k||A.subTree.el),k?null:p(A.subTree),C,i,G),x&&m(x),Ai(A,E.el),N&&--C.deps===0&&C.resolve()})},unmount(A,I){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,n,A,I),C.pendingBranch&&h(C.pendingBranch,n,A,I)}};return C}function Dy(e,t,n,r,s,o,i,a,l){const c=t.suspense=th(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 Fy(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=zc(r?n.default:n),e.ssFallback=r?zc(n.fallback):J(Ct)}function zc(e){let t;if(se(e)){const n=Mr&&e._c;n&&(e._d=!1,V()),e=e(),n&&(e._d=!0,t=ot,rh())}return ne(e)&&(e=Ry(e)),e=ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function nh(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):$a(e)}function Nr(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,Ai(r,s))}function By(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const be=Symbol.for("v-fgt"),ar=Symbol.for("v-txt"),Ct=Symbol.for("v-cmt"),fs=Symbol.for("v-stc"),ds=[];let ot=null;function V(e=!1){ds.push(ot=e?null:[])}function rh(){ds.pop(),ot=ds[ds.length-1]||null}let Mr=1;function qc(e,t=!1){Mr+=e,e<0&&ot&&t&&(ot.hasOnce=!0)}function sh(e){return e.dynamicChildren=Mr>0?ot||Ar:null,rh(),Mr>0&&ot&&ot.push(e),e}function ee(e,t,n,r,s,o){return sh(D(e,t,n,r,s,o,!0))}function we(e,t,n,r,s){return sh(J(e,t,n,r,s,!0))}function Dr(e){return e?e.__v_isVNode===!0:!1}function tn(e,t){return e.type===t.type&&e.key===t.key}const oh=({key:e})=>e??null,Co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Re(e)||Ue(e)||se(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,s=null,o=e===be?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oh(t),ref:t&&Co(t),scopeId:Ci,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:Ge};return a?(Vl(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Re(n)?8:16),Mr>0&&!i&&ot&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ot.push(l),l}const J=Hy;function Hy(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Nd)&&(e=Ct),Dr(e)){const a=lr(e,t,!0);return n&&Vl(a,n),Mr>0&&!o&&ot&&(a.shapeFlag&6?ot[ot.indexOf(e)]=a:ot.push(a)),a.patchFlag=-2,a}if(Jy(e)&&(e=e.__vccOpts),t){t=Wl(t);let{class:a,style:l}=t;a&&!Re(a)&&(t.class=Me(a)),Ce(l)&&(Ml(l)&&!ne(l)&&(l=We({},l)),t.style=sn(l))}const i=Re(e)?1:eh(e)?128:Gm(e)?64:Ce(e)?4:se(e)?2:0;return D(e,t,n,r,s,i,o,!0)}function Wl(e){return e?Ml(e)||jd(e)?We({},e):e:null}function lr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?dr(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&oh(c),ref:t&&t.ref?n&&o?ne(o)?o.concat(Co(t)):[o,Co(t)]:Co(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?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&&lr(e.ssContent),ssFallback:e.ssFallback&&lr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Rs(u,l.clone(u)),u}function pe(e=" ",t=0){return J(ar,null,e,t)}function jy(e,t){const n=J(fs,null,e);return n.staticCount=t,n}function Ie(e="",t=!1){return t?(V(),we(Ct,null,e)):J(Ct,null,e)}function ft(e){return e==null||typeof e=="boolean"?J(Ct):ne(e)?J(be,null,e.slice()):Dr(e)?_n(e):J(ar,null,String(e))}function _n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:lr(e)}function Vl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Vl(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!jd(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:Ge},n=32):(t=String(t),r&64?(n=16,t=[pe(t)]):n=8);e.children=t,e.shapeFlag|=n}function dr(...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=Me([t.class,r.class]));else if(s==="style")t.style=sn([t.style,r.style]);else if(Us(s)){const o=t[s],i=r[s];i&&o!==i&&!(ne(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function gt(e,t,n,r=null){Pt(e,t,7,[n,r])}const Gy=Dd();let Uy=0;function Wy(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Gy,o={uid:Uy++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Zf(!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:Ud(r,s),emitsOptions:Zd(r,s),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:r.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,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=Ty.bind(null,o),e.ce&&e.ce(o),o}let je=null;const qr=()=>je||Ge;let Bo,Fa;{const e=vi(),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)}};Bo=t("__VUE_INSTANCE_SETTERS__",n=>je=n),Fa=t("__VUE_SSR_SETTERS__",n=>Fr=n)}const cr=e=>{const t=je;return Bo(e),e.scope.on(),()=>{e.scope.off(),Bo(t)}},Ba=()=>{je&&je.scope.off(),Bo(null)};function ih(e){return e.vnode.shapeFlag&4}let Fr=!1;function Vy(e,t=!1,n=!1){t&&Fa(t);const{props:r,children:s}=e.vnode,o=ih(e);gy(e,r,o,t),_y(e,s,n);const i=o?zy(e,t):void 0;return t&&Fa(!1),i}function zy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,iy);const{setup:r}=n;if(r){In();const s=e.setupContext=r.length>1?Ky(e):null,o=cr(e),i=Vs(r,e,0,[e.props,s]),a=Tl(i);if(Ln(),o(),(a||e.sp)&&!or(e)&&Fl(e),a){if(i.then(Ba,Ba),t)return i.then(l=>{Ha(e,l)}).catch(l=>{zr(l,e,0)});e.asyncDep=i}else Ha(e,i)}else ah(e)}function Ha(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ce(t)&&(e.setupState=gd(t)),ah(e)}function ah(e,t,n){const r=e.type;e.render||(e.render=r.render||Ht);{const s=cr(e);In();try{ly(e)}finally{Ln(),s()}}}const qy={get(e,t){return Ye(e,"get",""),e[t]}};function Ky(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,qy),slots:e.slots,emit:e.emit,expose:t}}function Ti(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gd(km(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in us)return us[n](e)},has(t,n){return n in t||n in us}})):e.proxy}function Xy(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Jy(e){return se(e)&&"__vccOpts"in e}const Ne=(e,t)=>Lm(e,t,Fr);function $n(e,t,n){const r=arguments.length;return r===2?Ce(t)&&!ne(t)?Dr(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Dr(n)&&(n=[n]),J(e,t,n))}const Yy="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 ja;const Kc=typeof window<"u"&&window.trustedTypes;if(Kc)try{ja=Kc.createPolicy("vue",{createHTML:e=>e})}catch{}const lh=ja?e=>ja.createHTML(e):e=>e,Qy="http://www.w3.org/2000/svg",Zy="http://www.w3.org/1998/Math/MathML",Kt=typeof document<"u"?document:null,Xc=Kt&&Kt.createElement("template"),ev={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"?Kt.createElementNS(Qy,e):t==="mathml"?Kt.createElementNS(Zy,e):n?Kt.createElement(e,{is:n}):Kt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Kt.createTextNode(e),createComment:e=>Kt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kt.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{Xc.innerHTML=lh(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Xc.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]}},hn="transition",Qr="animation",Br=Symbol("_vtc"),ch={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},tv=We({},zm,ch),jn=(e,t=[])=>{ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},Jc=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function nv(e){const t={};for(const E in e)E in ch||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=rv(s),g=p&&p[0],m=p&&p[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:_,onLeaveCancelled:C,onBeforeAppear:A=v,onAppear:I=b,onAppearCancelled:G=y}=t,N=(E,x,T,U)=>{E._enterCancelled=U,pn(E,x?u:a),pn(E,x?c:i),T&&T()},k=(E,x)=>{E._isLeaving=!1,pn(E,f),pn(E,h),pn(E,d),x&&x()},P=E=>(x,T)=>{const U=E?I:b,L=()=>N(x,E,T);jn(U,[x,L]),Yc(()=>{pn(x,E?l:o),Ot(x,E?u:a),Jc(U)||Qc(x,r,g,L)})};return We(t,{onBeforeEnter(E){jn(v,[E]),Ot(E,o),Ot(E,i)},onBeforeAppear(E){jn(A,[E]),Ot(E,l),Ot(E,c)},onEnter:P(!1),onAppear:P(!0),onLeave(E,x){E._isLeaving=!0;const T=()=>k(E,x);Ot(E,f),E._enterCancelled?(Ot(E,d),Ga()):(Ga(),Ot(E,d)),Yc(()=>{E._isLeaving&&(pn(E,f),Ot(E,h),Jc(_)||Qc(E,r,m,T))}),jn(_,[E,T])},onEnterCancelled(E){N(E,!1,void 0,!0),jn(y,[E])},onAppearCancelled(E){N(E,!0,void 0,!0),jn(G,[E])},onLeaveCancelled(E){k(E),jn(C,[E])}})}function rv(e){if(e==null)return null;if(Ce(e))return[ea(e.enter),ea(e.leave)];{const t=ea(e);return[t,t]}}function ea(e){return Kf(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Br]||(e[Br]=new Set)).add(t)}function pn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Br];n&&(n.delete(t),n.size||(e[Br]=void 0))}function Yc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let sv=0;function Qc(e,t,n,r){const s=e._endId=++sv,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=uh(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),o()},d=h=>{h.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),e.addEventListener(c,d)}function uh(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),s=r(`${hn}Delay`),o=r(`${hn}Duration`),i=Zc(s,o),a=r(`${Qr}Delay`),l=r(`${Qr}Duration`),c=Zc(a,l);let u=null,f=0,d=0;t===hn?i>0&&(u=hn,f=i,d=o.length):t===Qr?c>0&&(u=Qr,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?hn:Qr:null,d=u?u===hn?o.length:l.length:0);const h=u===hn&&/\b(transform|all)(,|$)/.test(r(`${hn}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function Zc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>eu(n)+eu(e[r])))}function eu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ga(){return document.body.offsetHeight}function ov(e,t,n){const r=e[Br];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ho=Symbol("_vod"),fh=Symbol("_vsh"),iv={beforeMount(e,{value:t},{transition:n}){e[Ho]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Zr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Zr(e,!0),r.enter(e)):r.leave(e,()=>{Zr(e,!1)}):Zr(e,t))},beforeUnmount(e,{value:t}){Zr(e,t)}};function Zr(e,t){e.style.display=t?e[Ho]:"none",e[fh]=!t}const av=Symbol(""),lv=/(^|;)\s*display\s*:/;function cv(e,t,n){const r=e.style,s=Re(n);let o=!1;if(n&&!s){if(t)if(Re(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&So(r,a,"")}else for(const i in t)n[i]==null&&So(r,i,"");for(const i in n)i==="display"&&(o=!0),So(r,i,n[i])}else if(s){if(t!==n){const i=r[av];i&&(n+=";"+i),r.cssText=n,o=lv.test(n)}}else t&&e.removeAttribute("style");Ho in e&&(e[Ho]=o?r.display:"",e[fh]&&(r.display="none"))}const tu=/\s*!important$/;function So(e,t,n){if(ne(n))n.forEach(r=>So(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=uv(e,t);tu.test(n)?e.setProperty(Nn(r),n.replace(tu,""),"important"):e[r]=n}}const nu=["Webkit","Moz","ms"],ta={};function uv(e,t){const n=ta[t];if(n)return n;let r=wt(t);if(r!=="filter"&&r in e)return ta[t]=r;r=yi(r);for(let s=0;s<nu.length;s++){const o=nu[s]+r;if(o in e)return ta[t]=o}return t}const ru="http://www.w3.org/1999/xlink";function su(e,t,n,r,s,o=nm(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ru,t.slice(6,t.length)):e.setAttributeNS(ru,t,n):n==null||o&&!Jf(n)?e.removeAttribute(t):e.setAttribute(t,o?"":$t(n)?String(n):n)}function ou(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?lh(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=Jf(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 dh(e,t,n,r){e.addEventListener(t,n,r)}function fv(e,t,n,r){e.removeEventListener(t,n,r)}const iu=Symbol("_vei");function dv(e,t,n,r,s=null){const o=e[iu]||(e[iu]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=hv(t);if(r){const c=o[t]=mv(r,s);dh(e,a,c,l)}else i&&(fv(e,a,i,l),o[t]=void 0)}}const au=/(?:Once|Passive|Capture)$/;function hv(e){let t;if(au.test(e)){t={};let r;for(;r=e.match(au);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Nn(e.slice(2)),t]}let na=0;const pv=Promise.resolve(),gv=()=>na||(pv.then(()=>na=0),na=Date.now());function mv(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Pt(yv(r,n.value),t,5,[r])};return n.value=e,n.attached=gv(),n}function yv(e,t){if(ne(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 lu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,vv=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?ov(e,r,i):t==="style"?cv(e,n,r):Us(t)?El(t)||dv(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_v(e,t,r,i))?(ou(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&su(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Re(r))?ou(e,wt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),su(e,t,r,i))};function _v(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&lu(t)&&se(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 lu(t)&&Re(n)?!1:t in e}const hh=new WeakMap,ph=new WeakMap,jo=Symbol("_moveCb"),cu=Symbol("_enterCb"),bv=e=>(delete e.props.mode,e),wv=bv({name:"TransitionGroup",props:We({},tv,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=qr(),r=Vm();let s,o;return Td(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!Ev(s[0].el,n.vnode.el,i))return;s.forEach(Sv),s.forEach(xv);const a=s.filter(kv);Ga(),a.forEach(l=>{const c=l.el,u=c.style;Ot(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[jo]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c[jo]=null,pn(c,i))};c.addEventListener("transitionend",f)})}),()=>{const i=ge(e),a=nv(i);let l=i.tag||be;if(s=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(s.push(u),Rs(u,Na(u,a,r,n)),hh.set(u,u.el.getBoundingClientRect()))}o=t.default?xd(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&Rs(u,Na(u,a,r,n))}return J(l,null,o)}}}),Cv=wv;function Sv(e){const t=e.el;t[jo]&&t[jo](),t[cu]&&t[cu]()}function xv(e){ph.set(e,e.el.getBoundingClientRect())}function kv(e){const t=hh.get(e),n=ph.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function Ev(e,t,n){const r=e.cloneNode(),s=e[Br];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=uh(r);return o.removeChild(r),i}const uu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?n=>bo(t,n):t},ra=Symbol("_assign"),Av={created(e,{value:t},n){e.checked=No(t,n.props.value),e[ra]=uu(n),dh(e,"change",()=>{e[ra](Tv(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ra]=uu(r),t!==n&&(e.checked=No(t,r.props.value))}};function Tv(e){return"_value"in e?e._value:e.value}const Rv=["ctrl","shift","alt","meta"],$v={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Rv.some(n=>e[`${n}Key`]&&!t.includes(n))},Pv=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i<t.length;i++){const a=$v[t[i]];if(a&&a(s,t))return}return e(s,...o)})},Nv={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Iv=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=Nn(s.key);if(t.some(i=>i===o||Nv[i]===o))return e(s)})},gh=We({patchProp:vv},ev);let hs,fu=!1;function Lv(){return hs||(hs=wy(gh))}function Ov(){return hs=fu?hs:Cy(gh),fu=!0,hs}const mh=(...e)=>{const t=Lv().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=vh(r);if(!s)return;const o=t._component;!se(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,yh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},Mv=(...e)=>{const t=Ov().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=vh(r);if(s)return n(s,!0,yh(s))},t};function yh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vh(e){return Re(e)?document.querySelector(e):e}const Dv=/"(?:_|\\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*:/,Fv=/"(?: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*:/,Bv=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Hv(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){jv(e);return}return t}function jv(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Go(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(!Bv.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Dv.test(e)||Fv.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Hv)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Gv=/#/g,Uv=/&/g,Wv=/\//g,Vv=/=/g,zl=/\+/g,zv=/%5e/gi,qv=/%60/gi,Kv=/%7c/gi,Xv=/%20/gi;function Jv(e){return encodeURI(""+e).replace(Kv,"|")}function Ua(e){return Jv(typeof e=="string"?e:JSON.stringify(e)).replace(zl,"%2B").replace(Xv,"+").replace(Gv,"%23").replace(Uv,"%26").replace(qv,"`").replace(zv,"^").replace(Wv,"%2F")}function sa(e){return Ua(e).replace(Vv,"%3D")}function Uo(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Yv(e){return Uo(e.replace(zl," "))}function Qv(e){return Uo(e.replace(zl," "))}function zs(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=Yv(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=Qv(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 Zv(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${sa(e)}=${Ua(n)}`).join("&"):`${sa(e)}=${Ua(t)}`:sa(e)}function _h(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Zv(t,e[t])).filter(Boolean).join("&")}const e_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,t_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,n_=/^([/\\]\s*){2,}[^/\\]/,r_=/^[\s\0]*(blob|data|javascript|vbscript):$/i,s_=/\/$|\/\?|\/#/,o_=/^\.?\//;function Mn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?e_.test(e):t_.test(e)||(t.acceptRelative?n_.test(e):!1)}function i_(e){return!!e&&r_.test(e)}function Wa(e="",t){return t?s_.test(e):e.endsWith("/")}function Ri(e="",t){if(!t)return(Wa(e)?e.slice(0,-1):e)||"/";if(!Wa(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 Wo(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Wa(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 a_(e=""){return e.startsWith("/")}function du(e=""){return a_(e)?e:"/"+e}function l_(e,t){if(wh(t)||Mn(e))return e;const n=Ri(t);return e.startsWith(n)?e:qs(n,e)}function c_(e,t){if(wh(t))return e;const n=Ri(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function bh(e,t){const n=ql(e),r={...zs(n.search),...t};return n.search=_h(r),xh(n)}function u_(e){return zs(ql(e).search)}function wh(e){return!e||e==="/"}function f_(e){return e&&e!=="/"}function qs(e,...t){let n=e||"";for(const r of t.filter(s=>f_(s)))if(n){const s=r.replace(o_,"");n=Wo(n)+s}else n=r;return n}function Ch(...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,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&Mn(r[0]))continue;r.pop(),s--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),s++}}let o=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!o.startsWith("/")?o="/"+o:(l=n[0])!=null&&l.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,(c=n[n.length-1])!=null&&c.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function d_(e,t,n={}){return n.trailingSlash||(e=Wo(e),t=Wo(t)),n.leadingSlash||(e=du(e),t=du(t)),n.encoding||(e=Uo(e),t=Uo(t)),e===t}const Sh=Symbol.for("ufo:protocolRelative");function ql(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!Mn(e,{acceptRelative:!0}))return hu(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}=hu(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:c,hash:u,[Sh]:!r}}function hu(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function xh(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[Sh]?(e.protocol||"")+"//":"")+s+o+t+n+r}class h_ extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function p_(e){var l,c,u,f,d;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=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new h_(i,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[p]}});return a}const g_=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function pu(e="GET"){return g_.has(e.toUpperCase())}function m_(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 y_=new Set(["image/svg","application/xml","application/xhtml","application/html"]),v_=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function __(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return v_.test(t)?"json":y_.has(t)||t.startsWith("text/")?"text":"blob"}function b_(e,t,n,r){const s=w_((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 w_(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 oo(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const C_=new Set([408,409,425,429,500,502,503,504]),S_=new Set([101,204,205,304]);function kh(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=pu(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):C_.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),o(a.request,{...a.options,retry:u-1})}}const c=p_(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,o),c}const o=async function(l,c={}){const u={request:l,options:b_(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 oo(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=l_(u.request,u.options.baseURL)),u.options.query&&(u.request=bh(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&&pu(u.options.method)&&(m_(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 h=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},u.options.timeout),u.options.signal=h.signal}try{u.response=await t(u.request,u.options)}catch(h){return u.error=h,u.options.onRequestError&&await oo(u,u.options.onRequestError),await s(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!S_.has(u.response.status)&&u.options.method!=="HEAD"){const h=(u.options.parseResponse?"json":u.options.responseType)||__(u.response.headers.get("content-type")||"");switch(h){case"json":{const p=await u.response.text(),g=u.options.parseResponse||Go;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[h]()}}return u.options.onResponse&&await oo(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await oo(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={})=>kh({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Vo=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")}(),x_=Vo.fetch?(...e)=>Vo.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),k_=Vo.Headers,E_=Vo.AbortController,A_=kh({fetch:x_,Headers:k_,AbortController:E_}),T_=A_,R_=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},zo=R_().app,$_=()=>zo.baseURL,P_=()=>zo.buildAssetsDir,Kl=(...e)=>Ch(Eh(),P_(),...e),Eh=(...e)=>{const t=zo.cdnURL||zo.baseURL;return e.length?Ch(t,...e):t};globalThis.__buildAssetsURL=Kl,globalThis.__publicAssetsURL=Eh;globalThis.$fetch||(globalThis.$fetch=T_.create({baseURL:$_()}));function Va(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Va(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const N_={run:e=>e()},I_=()=>N_,Ah=typeof console.createTask<"u"?console.createTask:I_;function L_(e,t){const n=t.shift(),r=Ah(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function O_(e,t){const n=t.shift(),r=Ah(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function oa(e,t){for(const n of[...e])n(t)}class M_{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=Va(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=Va(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(L_,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(O_,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&oa(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&oa(this._after,s)}):(this._after&&s&&oa(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 Th(){return new M_}function D_(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;za.add(c);try{const u=s?s.run(i,a):a();return n||(t=void 0),await u}finally{za.delete(c)}}}}function F_(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=D_({...e,...r})),t[n]}}}const qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},gu="__unctx__",B_=qo[gu]||(qo[gu]=F_()),H_=(e,t={})=>B_.get(e,t),mu="__unctx_async_handlers__",za=qo[mu]||(qo[mu]=new Set);function Rh(e){const t=[];for(const s of za){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 j_={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},G_=null,U_="#__nuxt",$h="nuxt-app",yu=36e5,W_="vite:preloadError";function Ph(e=$h){return H_(e,{asyncContext:!1})}const V_="__nuxt_plugin";function z_(e){var s;let t=0;const n={_id:e.id||$h||"nuxt-app",_scope:sm(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.16.0"},get vue(){return n.vueApp.version}},payload:Qn({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:Qn({}),state:Tn({}),once:new Set,_errors:Qn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!$l()?n._scope.run(()=>vu(n,o)):vu(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:Qn({}),_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=Th(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;io(n,a,i),io(n.vueApp.config.globalProperties,a,i)},io(n.vueApp,"$nuxt",n),io(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(W_,i=>{n.callHook("app:chunkError",{error:i.payload}),(n.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=Be);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 q_(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function K_(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 X_(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(d=>d._name===f)&&!n.includes(f)))??[];if(c.length>0)r.push([new Set(c),l]);else{const f=K_(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([d,h])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(h)))})))});l.parallel?s.push(f.catch(d=>o.push(d))):await f}}for(const l of t)q_(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 Vt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[V_]:!0,_name:t})}function vu(e,t,n){const r=()=>t();return Ph(e._id).set(e),e.vueApp.runWithContext(r)}function J_(e){var n;let t;return Hl()&&(t=(n=qr())==null?void 0:n.appContext.app.$nuxt),t||(t=Ph(e).tryUse()),t||null}function Be(e){const t=J_(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Hr(e){return Be().$config}function io(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Y_(e,t){return{ctx:{table:e},matchAll:n=>Ih(n,e)}}function Nh(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,Nh(s)])):new Map(Object.entries(e[n]));return t}function Q_(e){return Y_(Nh(e))}function Ih(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of _u(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of _u(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...Ih(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function _u(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function ia(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 qa(e,t,n=".",r){if(!ia(t))return qa(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]]:ia(i)&&ia(s[o])?s[o]=qa(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function Z_(e){return(...t)=>t.reduce((n,r)=>qa(n,r,"",e),{})}const eb=Z_();function tb(e,t){try{return t in e}catch{return!1}}class Ka extends Error{constructor(n,r={}){super(n,r);R(this,"statusCode",500);R(this,"fatal",!1);R(this,"unhandled",!1);R(this,"statusMessage");R(this,"data");R(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:Xa(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=Lh(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}R(Ka,"__h3_error__",!0);function nb(e){if(typeof e=="string")return new Ka(e);if(rb(e))return e;const t=new Ka(e.message??e.statusMessage??"",{cause:e.cause||e});if(tb(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=Xa(e.statusCode,t.statusCode):e.status&&(t.statusCode=Xa(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Lh(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 rb(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const sb=/[^\u0009\u0020-\u007E]/g;function Lh(e=""){return e.replace(sb,"")}function Xa(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Oh=Symbol("route"),Ut=()=>{var e;return(e=Be())==null?void 0:e.$router},Mh=()=>Hl()?Pr(Oh,Be()._route):Be()._route;const ob=()=>{try{if(Be()._processingMiddleware)return!0}catch{return!1}return!1},Dh=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?Ja(e):Ut().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(n,l,u),Promise.resolve()}const r=Mn(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&i_(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=ob();if(!s&&o){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=ql(e);return{path:l,...c&&{query:zs(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Ut(),a=Be();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 Ja(e){return bh(e.path||"",e.query||{})+(e.hash||"")}const Fh="__nuxt_error",Xl=()=>md(Be().payload,"error"),ib=e=>{const t=Jl(e);try{const n=Be(),r=Xl();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},ab=async(e={})=>{const t=Be(),n=Xl();t.callHook("app:error:cleared",e),e.redirect&&await Ut().replace(e.redirect),n.value=G_},lb=e=>!!e&&typeof e=="object"&&Fh in e,Jl=e=>{const t=nb(e);return Object.defineProperty(t,Fh,{value:!0,configurable:!1,writable:!1}),t};function bu(e){const t=ub(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 cb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function ub(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|=cb.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 fb=-1,db=-2,hb=-3,pb=-4,gb=-5,mb=-6;function yb(e,t){return vb(JSON.parse(e),t)}function vb(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===fb)return;if(o===hb)return NaN;if(o===pb)return 1/0;if(o===gb)return-1/0;if(o===mb)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 h=1;h<a.length;h+=1)u.add(s(a[h]));break;case"Map":const f=new Map;r[o]=f;for(let h=1;h<a.length;h+=2)f.set(s(a[h]),s(a[h+1]));break;case"RegExp":r[o]=new RegExp(a[1],a[2]);break;case"Object":r[o]=Object(a[1]);break;case"BigInt":r[o]=BigInt(a[1]);break;case"null":const d=Object.create(null);r[o]=d;for(let h=1;h<a.length;h+=2)d[a[h]]=s(a[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[l],p=a[1],g=bu(p),m=new h(g);r[o]=m;break}case"ArrayBuffer":{const h=a[1],p=bu(h);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!==db&&(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 _b=new Set(["link","style","script","noscript"]),bb=new Set(["title","titleTemplate","script","style","noscript"]),wu=new Set(["base","meta","link","style","script","noscript"]),wb=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Cb=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Sb=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),xb=new Set(["templateParams","htmlAttrs","bodyAttrs"]),kb=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const Eb=["name","property","http-equiv"];function Bh(e){const t=e.split(":")[1];return kb.has(t)}function Ya(e){const{props:t,tag:n}=e;if(Cb.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 Eb)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(bb.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function Cu(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 Ko(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=>Ko(o,t));if((s==null?void 0:s.constructor)===Object){const o={};for(const i of Object.keys(s))o[i]=Ko(s[i],t,i);return o}return s}function Ab(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 Hh(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]=Ab(n,r);return}if(Sb.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 Tb(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Hh({tag:e,props:{}},n);return r.key&&_b.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 Rb(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=Ko(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(Tb(s,i))}),r.flat()}const Qa=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Su={base:-10,title:10},$b={critical:-8,high:-1,low:2},xu={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}},Pb=/@import/,es=e=>e===""||e===!0;function Nb(e,t){var o;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=$b[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:xu;if(t.tag in Su)n=Su[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=xu.meta[i])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?es(t.props.async)?n=s.script.async:t.props.src&&!es(t.props.defer)&&!es(t.props.async)&&t.props.type!=="module"&&!((o=t.props.type)!=null&&o.endsWith("json"))?n=s.script.sync:es(t.props.defer)&&t.props.src&&!es(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&Pb.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function ku(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 Ib(e={}){var a;const t=Th();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=>ku(i,l),push(l,c){const u={...c||{}};delete u.head;const f=u._index??i._entryCount++,d={_i:f,input:l,options:u},h={_poll(p=!1){i.dirty=!0,!p&&o.push(f),t.callHook("entries:updated",i)},dispose(){r.delete(f)&&h._poll(!0)},patch(p){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(d.input=p,r.set(f,d),h._poll())}};return h.patch(l),h},async resolveTags(){var h;const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);o.length;){const p=o.shift(),g=r.get(p);if(g){const m={tags:Rb(g.input,e.propResolvers||[]).map(v=>Object.assign(v,g.options)),entry:g};await t.callHook("entries:normalize",m),g._tags=m.tags.map((v,b)=>(v._w=Nb(i,v),v._p=(g._i<<10)+b,v._d=Ya(v),v))}}let c=!1;l.entries.flatMap(p=>(p._tags||[]).map(g=>({...g,props:{...g.props}}))).sort(Qa).reduce((p,g)=>{const m=String(g._d||g._p);if(!p.has(m))return p.set(m,g);const v=p.get(m);if(((g==null?void 0:g.tagDuplicateStrategy)||(xb.has(g.tag)?"merge":null)||(g.key&&g.key===v.key?"merge":null))==="merge"){const y={...v.props};Object.entries(g.props).forEach(([_,C])=>y[_]=_==="style"?new Map([...v.props.style||new Map,...C]):_==="class"?new Set([...v.props.class||new Set,...C]):C),p.set(m,{...g,props:y})}else g._p>>10===v._p>>10&&Bh(g._d)?(p.set(m,Object.assign([...Array.isArray(v)?v:[v],g],g)),c=!0):(g._w===v._w?g._p>v._p:(g==null?void 0:g._w)<(v==null?void 0:v._w))&&p.set(m,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(Qa)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const d=[];for(const p of l.tags){const{innerHTML:g,tag:m,props:v}=p;if(wb.has(m)&&!(Object.keys(v).length===0&&!p.innerHTML&&!p.textContent)&&!(m==="meta"&&!v.content&&!v["http-equiv"]&&!v.charset)){if(m==="script"&&g){if((h=v.type)!=null&&h.endsWith("json")){const b=typeof g=="string"?g:JSON.stringify(g);p.innerHTML=b.replace(/</g,"\\u003C")}else typeof g=="string"&&(p.innerHTML=g.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));p._d=Ya(p)}d.push(p)}}return d}};return((e==null?void 0:e.plugins)||[]).forEach(l=>ku(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const bn="%separator",Lb=new RegExp(`${bn}(?:\\s*${bn})*`,"g");function Ob(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 ao(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(bn);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===bn||!o.includes(a))return a;const l=Ob(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(bn)&&(e=e.slice(0,-bn.length)),e.startsWith(bn)&&(e=e.slice(bn.length)),e=e.replace(Lb,n||"").trim()),e}const Eu=e=>e.includes(":key")?e:e.split(":").join(":key:"),Mb={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=Eu(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=Eu(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(Qa))}}},Db={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 Za(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=>Za(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await Za(e[r]);return n}return e}const Fb={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(Za(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},Bb={meta:"content",link:"href",htmlAttrs:"lang"},Hb=["innerHTML","textContent"],jb=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=ao(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const a=Bb[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=ao(i.props[a],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of Hb)typeof i[l]=="string"&&(i[l]=ao(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=ao(n.textContent,e._templateParams,e._separator))}}}),Gb=(e,t)=>Ue(t)?dt(t):t,jh="usehead";function Ub(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(jh,e)}}.install}function Wb(){if(Hl()){const e=Pr(jh);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 tT(e,t={}){const n=t.head||Wb();return n.ssr?n.push(e||{},t):Vb(n,e,t)}function Vb(e,t,n={}){const r=he(!1);let s;return Yd(()=>{const i=r.value?{}:Ko(t,Gb);s?s.patch(i):s=e.push(i,n)}),qr()&&(ki(()=>{s.dispose()}),Ed(()=>{r.value=!0}),kd(()=>{r.value=!1})),s}const zb="modulepreload",qb=function(e,t){return new URL(e,t).href},Au={},Kn=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=qb(c,r),c in Au)return;Au[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 h=document.createElement("link");if(h.rel=u?"stylesheet":zb,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let xo,ko;function Kb(){return xo=$fetch(Kl(`builds/meta/${Hr().app.buildId}.json`),{responseType:"json"}),xo.then(e=>{ko=Q_(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),xo}function $i(){return xo||Kb()}async function Yl(e){const t=typeof e=="string"?e:e.path;if(await $i(),!ko)return console.error("[nuxt] Error creating app manifest matcher.",ko),{};try{return eb({},...ko.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Tu(e,t={}){const n=await Jb(e,t),r=Be(),s=r._payloadCache||(r._payloadCache={});return n in s?s[n]||null:(s[n]=Uh(e).then(o=>o?Gh(n).then(i=>i||(delete s[n],null)):(s[n]=null,null)),s[n])}const Xb="_payload.json";async function Jb(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Mn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=Hr(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await Uh(e)?o:r.app.baseURL;return qs(i,n.pathname,Xb+(s?`?${s}`:""))}async function Gh(e){const t=fetch(e).then(n=>n.text().then(Wh));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Uh(e=Mh().path){const t=Be();return e=Ri(e),(await $i()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await Yl({path:e});return!!r.prerender&&!r.redirect})}let Gn=null;async function Yb(){var r;if(Gn)return Gn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Wh(e.textContent||""),n=e.dataset.src?await Gh(e.dataset.src):void 0;return Gn={...t,...n,...window.__NUXT__},(r=Gn.config)!=null&&r.public&&(Gn.config.public=Tn(Gn.config.public)),Gn}async function Wh(e){return await yb(e,Be()._payloadRevivers)}function Qb(e,t){Be()._payloadRevivers[e]=t}const Zb=[["NuxtError",e=>Jl(e)],["EmptyShallowRef",e=>As(e==="_"?void 0:e==="0n"?BigInt(0):Go(e))],["EmptyRef",e=>he(e==="_"?void 0:e==="0n"?BigInt(0):Go(e))],["ShallowRef",e=>As(e)],["ShallowReactive",e=>Qn(e)],["Ref",e=>he(e)],["Reactive",e=>Tn(e)]],ew=Vt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of Zb)Qb(r,s);Object.assign(e.payload,([t,n]=Rh(()=>e.runWithContext(Yb)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function Ql(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{var h;const o=new Map,i=new Promise(p=>{e.resolveTags().then(g=>{p(g.map(m=>{const v=o.get(m._d)||0,b={tag:m,id:(v?`${m._d}:${v}`:m._d)||Cu(m),shouldRender:!0};return m._d&&Bh(m._d)&&o.set(m._d,v+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const p of["body","head"]){const g=(h=n[p])==null?void 0:h.children;for(const m of g){const v=m.tagName.toLowerCase();if(!wu.has(v))continue;const b=Hh({tag:v,props:{}},{innerHTML:m.innerHTML,...m.getAttributeNames().reduce((y,_)=>(y[_]=m.getAttribute(_),y),{})||{}});if(b.key=m.getAttribute("data-hid")||void 0,b._d=Ya(b)||Cu(b),a.elMap.has(b._d)){let y=1,_=b._d;for(;a.elMap.has(_);)_=`${b._d}:${y++}`;a.elMap.set(_,m)}else a.elMap.set(b._d,m)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(p,g,m){const v=`${p}:${g}`;a.sideEffects[v]=m,delete a.pendingSideEffects[v]}function c({id:p,$el:g,tag:m}){const v=m.tag.endsWith("Attrs");a.elMap.set(p,g),v||(m.textContent&&m.textContent!==g.textContent&&(g.textContent=m.textContent),m.innerHTML&&m.innerHTML!==g.innerHTML&&(g.innerHTML=m.innerHTML),l(p,"el",()=>{g==null||g.remove(),a.elMap.delete(p)}));for(const b in m.props){if(!Object.hasOwn(m.props,b))continue;const y=m.props[b];if(b.startsWith("on")&&typeof y=="function"){const C=g==null?void 0:g.dataset;if(C&&C[`${b}fired`]){const A=b.slice(0,-5);y.call(g,new Event(A.substring(2)))}g.getAttribute(`data-${b}`)!==""&&((m.tag==="bodyAttrs"?n.defaultView:g).addEventListener(b.substring(2),y.bind(g)),g.setAttribute(`data-${b}`,""));continue}const _=`attr:${b}`;if(b==="class"){if(!y)continue;for(const C of y)v&&l(p,`${_}:${C}`,()=>g.classList.remove(C)),!g.classList.contains(C)&&g.classList.add(C)}else if(b==="style"){if(!y)continue;for(const[C,A]of y)l(p,`${_}:${C}`,()=>{g.style.removeProperty(C)}),g.style.setProperty(C,A)}else y!==!1&&y!==null&&(g.getAttribute(b)!==y&&g.setAttribute(b,y===!0?"":String(y)),v&&l(p,_,()=>g.removeAttribute(b)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const p of d){const{tag:g,shouldRender:m,id:v}=p;if(m){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(v),p.$el?c(p):wu.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 d)await e.hooks.callHook("dom:renderTag",p,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function tw(e={}){var r,s,o;const t=((r=e.domOptions)==null?void 0:r.render)||Ql;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 Ib({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function nw(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function rw(e={}){const t=tw({domOptions:{render:nw(()=>Ql(t),On)},...e});return t.install=Ub(t),t}const sw={disableDefaults:!0,disableCapoSorting:!1,plugins:[Db,Fb,jb,Mb]},ow=Vt({name:"nuxt:head",enforce:"pre",setup(e){const t=rw(sw);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Ql(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)}}}),iw=async e=>{let t,n;const r=([t,n]=Rh(()=>Yl({path:e.path})),t=await t,n(),t);if(r.redirect)return Mn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},aw=[iw];function aa(e){typeof e=="object"&&(e=xh({pathname:e.path||"",search:_h(e.query||{}),hash:e.hash||""}));const t=new URL(e.toString(),window.location.href);return{path:t.pathname,fullPath:e,query:zs(t.search),hash:t.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:e}}const lw=Vt({name:"nuxt:router",enforce:"pre",setup(e){const t=c_(window.location.pathname,Hr().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(f,d)=>(r[f].push(d),()=>r[f].splice(r[f].indexOf(d),1)),o=Hr().app.baseURL,i=Tn(aa(t));async function a(f,d){try{const h=aa(f);for(const p of r["navigate:before"]){const g=await p(h,i);if(g===!1||g instanceof Error)return;if(typeof g=="string"&&g.length)return a(g,!0)}for(const p of r["resolve:before"])await p(h,i);Object.assign(i,h),window.history[d?"replaceState":"pushState"]({},"",qs(o,h.fullPath)),e.isHydrating||await e.runWithContext(ab);for(const p of r["navigate:after"])await p(h,i)}catch(h){for(const p of r.error)await p(h)}}const c={currentRoute:Ne(()=>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:aa,addRoute:(f,d)=>{n.push(d)},getRoutes:()=>n,hasRoute:f=>n.some(d=>d.name===f),removeRoute:f=>{const d=n.findIndex(h=>h.name===f);d!==-1&&n.splice(d,1)}};e.vueApp.component("RouterLink",Le({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:d})=>{const h=()=>a(f.to,f.replace);return()=>{var g;const p=c.resolve(f.to);return f.custom?(g=d.default)==null?void 0:g.call(d,{href:f.to,navigate:h,route:p}):$n("a",{href:f.to,onClick:m=>(m.preventDefault(),h())},d)}}})),window.addEventListener("popstate",f=>{const d=f.target.location;c.replace(d.href.replace(d.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,d)=>{f.meta=Tn(f.meta||{}),e.isHydrating&&u&&!Rn(f.meta.layout)&&(f.meta.layout=u),e._processingMiddleware=!0;{const h=new Set([...aw,...e._middleware.global]);{const p=await e.runWithContext(()=>Yl({path:f.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const m=e._middleware.named[g];if(!m)return;p.appMiddleware[g]?h.add(m):h.delete(m)}}for(const p of h){const g=await e.runWithContext(()=>p(f,d));if(g!==!0&&(g||g===!1))return g}}}),c.afterEach(()=>{delete e._processingMiddleware}),await c.replace(t),d_(i.fullPath,t)||await e.runWithContext(()=>Dh(i.fullPath))}),{provide:{route:i,router:c}}}}),el=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),cw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Pi=e=>{const t=Be();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{el(()=>e())}):el(()=>e())},uw=Vt({name:"nuxt:payload",setup(e){Ut().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Tu(t.path);r&&Object.assign(e.static.data,r.data)}),Pi(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Tu(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout($i,1e3)})}}),fw=Vt(()=>{const e=Ut();Pi(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),dw=Vt(e=>{let t;async function n(){const r=await $i();t&&clearTimeout(t),t=setTimeout(n,yu);try{const s=await $fetch(Kl("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}Pi(()=>{t=setTimeout(n,yu)})});function hw(e={}){const t=e.path||window.location.pathname;let n={};try{n=Go(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:Be().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const pw=Vt({name:"nuxt:chunk-reload",setup(e){const t=Ut(),n=Hr(),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:qs(n.app.baseURL,o.fullPath);hw({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),gw=Vt({name:"nuxt:global-components"}),mw=Vt(()=>{}),yw=["top","right","bottom","left"],Ru=["start","end"],$u=yw.reduce((e,t)=>e.concat(t,t+"-"+Ru[0],t+"-"+Ru[1]),[]),Ns=Math.min,zn=Math.max,vw={left:"right",right:"left",bottom:"top",top:"bottom"},_w={start:"end",end:"start"};function tl(e,t,n){return zn(e,Ns(t,n))}function hr(e,t){return typeof e=="function"?e(t):e}function Wt(e){return e.split("-")[0]}function Tt(e){return e.split("-")[1]}function Vh(e){return e==="x"?"y":"x"}function Zl(e){return e==="y"?"height":"width"}function ur(e){return["top","bottom"].includes(Wt(e))?"y":"x"}function ec(e){return Vh(ur(e))}function zh(e,t,n){n===void 0&&(n=!1);const r=Tt(e),s=ec(e),o=Zl(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Jo(i)),[i,Jo(i)]}function bw(e){const t=Jo(e);return[Xo(e),t,Xo(t)]}function Xo(e){return e.replace(/start|end/g,t=>_w[t])}function ww(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 Cw(e,t,n,r){const s=Tt(e);let o=ww(Wt(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Xo)))),o}function Jo(e){return e.replace(/left|right|bottom|top/g,t=>vw[t])}function Sw(e){return{top:0,right:0,bottom:0,left:0,...e}}function qh(e){return typeof e!="number"?Sw(e):{top:e,right:e,bottom:e,left:e}}function ps(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 Pu(e,t,n){let{reference:r,floating:s}=e;const o=ur(t),i=ec(t),a=Zl(i),l=Wt(t),c=o==="y",u=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,d=r[a]/2-s[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-s.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-s.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Tt(t)){case"start":h[i]-=d*(n&&c?-1:1);break;case"end":h[i]+=d*(n&&c?-1:1);break}return h}const xw=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}=Pu(c,r,l),d=r,h={},p=0;for(let g=0;g<a.length;g++){const{name:m,fn:v}=a[g],{x:b,y,data:_,reset:C}=await v({x:u,y:f,initialPlacement:r,placement:d,strategy:s,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});u=b??u,f=y??f,h={...h,[m]:{...h[m],..._}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(c=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:u,y:f}=Pu(c,d,l)),g=-1)}return{x:u,y:f,placement:d,strategy:s,middlewareData:h}};async function Ni(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:d=!1,padding:h=0}=hr(t,e),p=qh(h),m=a[d?f==="floating"?"reference":"floating":f],v=ps(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(m)))==null||n?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},C=ps(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:y,strategy:l}):b);return{top:(v.top-C.top+p.top)/_.y,bottom:(C.bottom-v.bottom+p.bottom)/_.y,left:(v.left-C.left+p.left)/_.x,right:(C.right-v.right+p.right)/_.x}}const kw=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}=hr(e,t)||{};if(c==null)return{};const f=qh(u),d={x:n,y:r},h=ec(s),p=Zl(h),g=await i.getDimensions(c),m=h==="y",v=m?"top":"left",b=m?"bottom":"right",y=m?"clientHeight":"clientWidth",_=o.reference[p]+o.reference[h]-d[h]-o.floating[p],C=d[h]-o.reference[h],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let I=A?A[y]:0;(!I||!await(i.isElement==null?void 0:i.isElement(A)))&&(I=a.floating[y]||o.floating[p]);const G=_/2-C/2,N=I/2-g[p]/2-1,k=Ns(f[v],N),P=Ns(f[b],N),E=k,x=I-g[p]-P,T=I/2-g[p]/2+G,U=tl(E,T,x),L=!l.arrow&&Tt(s)!=null&&T!==U&&o.reference[p]/2-(T<E?k:P)-g[p]/2<0,q=L?T<E?T-E:T-x:0;return{[h]:d[h]+q,data:{[h]:U,centerOffset:T-U-q,...L&&{alignmentOffset:q}},reset:L}}});function Ew(e,t,n){return(e?[...n.filter(s=>Tt(s)===e),...n.filter(s=>Tt(s)!==e)]:n.filter(s=>Wt(s)===s)).filter(s=>e?Tt(s)===e||(t?Xo(s)!==s:!1):!0)}const Aw=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:d=$u,autoAlignment:h=!0,...p}=hr(e,t),g=f!==void 0||d===$u?Ew(f||null,h,d):d,m=await Ni(t,p),v=((n=i.autoPlacement)==null?void 0:n.index)||0,b=g[v];if(b==null)return{};const y=zh(b,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==b)return{reset:{placement:g[0]}};const _=[m[Wt(b)],m[y[0]],m[y[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:b,overflows:_}],A=g[v+1];if(A)return{data:{index:v+1,overflows:C},reset:{placement:A}};const I=C.map(k=>{const P=Tt(k.placement);return[k.placement,P&&u?k.overflows.slice(0,2).reduce((E,x)=>E+x,0):k.overflows[0],k.overflows]}).sort((k,P)=>k[1]-P[1]),N=((s=I.filter(k=>k[2].slice(0,Tt(k[0])?2:3).every(P=>P<=0))[0])==null?void 0:s[0])||I[0][0];return N!==a?{data:{index:v+1,overflows:C},reset:{placement:N}}:{}}}},Tw=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:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=hr(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=Wt(s),b=ur(a),y=Wt(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=d||(y||!g?[Jo(a)]:bw(a)),A=p!=="none";!d&&A&&C.push(...Cw(a,g,p,_));const I=[a,...C],G=await Ni(t,m),N=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&N.push(G[v]),f){const T=zh(s,i,_);N.push(G[T[0]],G[T[1]])}if(k=[...k,{placement:s,overflows:N}],!N.every(T=>T<=0)){var P,E;const T=(((P=o.flip)==null?void 0:P.index)||0)+1,U=I[T];if(U)return{data:{index:T,overflows:k},reset:{placement:U}};let L=(E=k.filter(q=>q.overflows[0]<=0).sort((q,W)=>q.overflows[1]-W.overflows[1])[0])==null?void 0:E.placement;if(!L)switch(h){case"bestFit":{var x;const q=(x=k.filter(W=>{if(A){const Q=ur(W.placement);return Q===b||Q==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(Q=>Q>0).reduce((Q,xe)=>Q+xe,0)]).sort((W,Q)=>W[1]-Q[1])[0])==null?void 0:x[0];q&&(L=q);break}case"initialPlacement":L=a;break}if(s!==L)return{reset:{placement:L}}}return{}}}};async function Rw(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Wt(n),a=Tt(n),l=ur(n)==="y",c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,f=hr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:d*c}:{x:d*c,y:h*u}}const $w=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 Rw(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}}}}},Pw=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:m=>{let{x:v,y:b}=m;return{x:v,y:b}}},...l}=hr(e,t),c={x:n,y:r},u=await Ni(t,l),f=ur(Wt(s)),d=Vh(f);let h=c[d],p=c[f];if(o){const m=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=h+u[m],y=h-u[v];h=tl(b,h,y)}if(i){const m=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=p+u[m],y=p-u[v];p=tl(b,p,y)}const g=a.fn({...t,[d]:h,[f]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:o,[f]:i}}}}}},Nw=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}=hr(e,t),u=await Ni(t,c),f=Wt(s),d=Tt(s),h=ur(s)==="y",{width:p,height:g}=o.floating;let m,v;f==="top"||f==="bottom"?(m=f,v=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,m=d==="end"?"top":"bottom");const b=g-u.top-u.bottom,y=p-u.left-u.right,_=Ns(g-u[m],b),C=Ns(p-u[v],y),A=!t.middlewareData.shift;let I=_,G=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(G=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=b),A&&!d){const k=zn(u.left,0),P=zn(u.right,0),E=zn(u.top,0),x=zn(u.bottom,0);h?G=p-2*(k!==0||P!==0?k+P:zn(u.left,u.right)):I=g-2*(E!==0||x!==0?E+x:zn(u.top,u.bottom))}await l({...t,availableWidth:G,availableHeight:I});const N=await i.getDimensions(a.floating);return p!==N.width||g!==N.height?{reset:{rects:!0}}:{}}}};function vt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jt(e){return vt(e).getComputedStyle(e)}const Nu=Math.min,gs=Math.max,Yo=Math.round;function Kh(e){const t=jt(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=Yo(n)!==s||Yo(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function Pn(e){return Jh(e)?(e.nodeName||"").toLowerCase():""}let lo;function Xh(){if(lo)return lo;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(lo=e.brands.map(t=>t.brand+"/"+t.version).join(" "),lo):navigator.userAgent}function Gt(e){return e instanceof vt(e).HTMLElement}function kn(e){return e instanceof vt(e).Element}function Jh(e){return e instanceof vt(e).Node}function Iu(e){return typeof ShadowRoot>"u"?!1:e instanceof vt(e).ShadowRoot||e instanceof ShadowRoot}function Ii(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Iw(e){return["table","td","th"].includes(Pn(e))}function nl(e){const t=/firefox/i.test(Xh()),n=jt(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 Yh(){return!/^((?!chrome|android).)*safari/i.test(Xh())}function tc(e){return["html","body","#document"].includes(Pn(e))}function Qh(e){return kn(e)?e:e.contextElement}const Zh={x:1,y:1};function Ir(e){const t=Qh(e);if(!Gt(t))return Zh;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Kh(t);let i=(o?Yo(n.width):n.width)/r,a=(o?Yo(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function Is(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Qh(e);let l=Zh;t&&(r?kn(r)&&(l=Ir(r)):l=Ir(e));const c=a?vt(a):window,u=!Yh()&&n;let f=(i.left+(u&&((s=c.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,d=(i.top+(u&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,h=i.width/l.x,p=i.height/l.y;if(a){const g=vt(a),m=r&&kn(r)?vt(r):r;let v=g.frameElement;for(;v&&r&&m!==g;){const b=Ir(v),y=v.getBoundingClientRect(),_=getComputedStyle(v);y.x+=(v.clientLeft+parseFloat(_.paddingLeft))*b.x,y.y+=(v.clientTop+parseFloat(_.paddingTop))*b.y,f*=b.x,d*=b.y,h*=b.x,p*=b.y,f+=y.x,d+=y.y,v=vt(v).frameElement}}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function En(e){return((Jh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Li(e){return kn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ep(e){return Is(En(e)).left+Li(e).scrollLeft}function Ls(e){if(Pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Iu(e)&&e.host||En(e);return Iu(t)?t.host:t}function tp(e){const t=Ls(e);return tc(t)?t.ownerDocument.body:Gt(t)&&Ii(t)?t:tp(t)}function Qo(e,t){var n;t===void 0&&(t=[]);const r=tp(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=vt(r);return s?t.concat(o,o.visualViewport||[],Ii(r)?r:[]):t.concat(r,Qo(r))}function Lu(e,t,n){return t==="viewport"?ps(function(r,s){const o=vt(r),i=En(r),a=o.visualViewport;let l=i.clientWidth,c=i.clientHeight,u=0,f=0;if(a){l=a.width,c=a.height;const d=Yh();(d||!d&&s==="fixed")&&(u=a.offsetLeft,f=a.offsetTop)}return{width:l,height:c,x:u,y:f}}(e,n)):kn(t)?ps(function(r,s){const o=Is(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=Gt(r)?Ir(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)):ps(function(r){const s=En(r),o=Li(r),i=r.ownerDocument.body,a=gs(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=gs(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let c=-o.scrollLeft+ep(r);const u=-o.scrollTop;return jt(i).direction==="rtl"&&(c+=gs(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:c,y:u}}(En(e)))}function Ou(e){return Gt(e)&&jt(e).position!=="fixed"?e.offsetParent:null}function Mu(e){const t=vt(e);let n=Ou(e);for(;n&&Iw(n)&&jt(n).position==="static";)n=Ou(n);return n&&(Pn(n)==="html"||Pn(n)==="body"&&jt(n).position==="static"&&!nl(n))?t:n||function(r){let s=Ls(r);for(;Gt(s)&&!tc(s);){if(nl(s))return s;s=Ls(s)}return null}(e)||t}function Lw(e,t,n){const r=Gt(t),s=En(t),o=Is(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((Pn(t)!=="body"||Ii(s))&&(i=Li(t)),Gt(t)){const l=Is(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=ep(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const Ow={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 d=Qo(c).filter(m=>kn(m)&&Pn(m)!=="body"),h=null;const p=jt(c).position==="fixed";let g=p?Ls(c):c;for(;kn(g)&&!tc(g);){const m=jt(g),v=nl(g);(p?v||h:v||m.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=m:d=d.filter(b=>b!==g),g=Ls(g)}return u.set(c,d),d}(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce((c,u)=>{const f=Lu(t,u,s);return c.top=gs(f.top,c.top),c.right=Nu(f.right,c.right),c.bottom=Nu(f.bottom,c.bottom),c.left=gs(f.left,c.left),c},Lu(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=Gt(n),o=En(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((s||!s&&r!=="fixed")&&((Pn(n)!=="body"||Ii(o))&&(i=Li(n)),Gt(n))){const c=Is(n);a=Ir(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:kn,getDimensions:function(e){return Gt(e)?Kh(e):e.getBoundingClientRect()},getOffsetParent:Mu,getDocumentElement:En,getScale:Ir,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||Mu,o=this.getDimensions;return{reference:Lw(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>jt(e).direction==="rtl"},Mw=(e,t,n)=>{const r=new Map,s={platform:Ow,...n},o={...s.platform,_c:r};return xw(e,t,{...s,platform:o})};function np(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?np(e[n],t[n]):e[n]=t[n])}const Rt={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 Os(e,t){let n=Rt.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=Rt.themes[n.$extend]||{}:(n=null,r=Rt[t]):n=null;while(n);return r}function Dw(e){const t=[e];let n=Rt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Rt.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function Du(e){const t=[e];let n=Rt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Rt.themes[n.$extend]||{}):n=null;while(n);return t}let jr=!1;if(typeof window<"u"){jr=!1;try{const e=Object.defineProperty({},"passive",{get(){jr=!0}});window.addEventListener("test",null,e)}catch{}}let rp=!1;typeof window<"u"&&typeof navigator<"u"&&(rp=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const sp=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Fu={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Bu={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Hu(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function la(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const kt=[];let Un=null;const ju={};function Gu(e){let t=ju[e];return t||(t=ju[e]=[]),t}let rl=function(){};typeof window<"u"&&(rl=window.Element);function de(e){return function(t){return Os(t.theme,e)}}const ca="__floating-vue__popper",op=()=>Le({name:"VPopper",provide(){return{[ca]:{parentPopper:this}}},inject:{[ca]:{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:de("disabled")},positioningDisabled:{type:Boolean,default:de("positioningDisabled")},placement:{type:String,default:de("placement"),validator:e=>sp.includes(e)},delay:{type:[String,Number,Object],default:de("delay")},distance:{type:[Number,String],default:de("distance")},skidding:{type:[Number,String],default:de("skidding")},triggers:{type:Array,default:de("triggers")},showTriggers:{type:[Array,Function],default:de("showTriggers")},hideTriggers:{type:[Array,Function],default:de("hideTriggers")},popperTriggers:{type:Array,default:de("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:de("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:de("popperHideTriggers")},container:{type:[String,Object,rl,Boolean],default:de("container")},boundary:{type:[String,rl],default:de("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:de("strategy")},autoHide:{type:[Boolean,Function],default:de("autoHide")},handleResize:{type:Boolean,default:de("handleResize")},instantMove:{type:Boolean,default:de("instantMove")},eagerMount:{type:Boolean,default:de("eagerMount")},popperClass:{type:[String,Array,Object],default:de("popperClass")},computeTransformOrigin:{type:Boolean,default:de("computeTransformOrigin")},autoMinSize:{type:Boolean,default:de("autoMinSize")},autoSize:{type:[Boolean,String],default:de("autoSize")},autoMaxSize:{type:Boolean,default:de("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:de("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:de("preventOverflow")},overflowPadding:{type:[Number,String],default:de("overflowPadding")},arrowPadding:{type:[Number,String],default:de("arrowPadding")},arrowOverflow:{type:Boolean,default:de("arrowOverflow")},flip:{type:Boolean,default:de("flip")},shift:{type:Boolean,default:de("shift")},shiftCrossAxis:{type:Boolean,default:de("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:de("noAutoFocus")},disposeTimeout:{type:Number,default:de("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[ca])==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($w({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Aw({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Pw({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Tw({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(kw({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(Nw({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 Mw(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),Un&&this.instantMove&&Un.instantMove&&Un!==this.parentPopper){Un.$_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&&(Un=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 la(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Qo(this.$_referenceNode),...Qo(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<kt.length;n++)t=kt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}kt.push(this),document.body.classList.add("v-popper--some-open");for(const t of Du(this.theme))Gu(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 la(),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,Hu(kt,this),kt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Du(this.theme)){const r=Gu(n);Hu(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Un===this&&(Un=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 la(),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,Fu,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Fu,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Bu,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Bu,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,jr?{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(ms>=e.left&&ms<=e.right&&ys>=e.top&&ys<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=ms-gn,r=ys-mn,s=t.left+t.width/2-gn+(t.top+t.height/2)-mn+t.width+t.height,o=gn+n*s,i=mn+r*s;return co(gn,mn,o,i,t.left,t.top,t.left,t.bottom)||co(gn,mn,o,i,t.left,t.top,t.right,t.top)||co(gn,mn,o,i,t.right,t.top,t.right,t.bottom)||co(gn,mn,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(rp){const e=jr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Uu(t,!0),e),document.addEventListener("touchend",t=>Wu(t,!0),e)}else window.addEventListener("mousedown",e=>Uu(e,!1),!0),window.addEventListener("click",e=>Wu(e,!1),!0);window.addEventListener("resize",Bw)}function Uu(e,t){if(Rt.autoHideOnMousedown)ip(e,t);else for(let n=0;n<kt.length;n++){const r=kt[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Wu(e,t){Rt.autoHideOnMousedown||ip(e,t)}function ip(e,t){const n={};for(let r=kt.length-1;r>=0;r--){const s=kt[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Vu(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&&Vu(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Vu(e,t,n){return n.closeAllPopover||n.closePopover&&t||Fw(e,n)&&!t}function Fw(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Bw(){for(let e=0;e<kt.length;e++)kt[e].$_computePosition()}let gn=0,mn=0,ms=0,ys=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{gn=ms,mn=ys,ms=e.clientX,ys=e.clientY},jr?{passive:!0}:void 0);function co(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 Hw={extends:op()},Oi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function jw(e,t,n,r,s,o){return V(),ee("div",{ref:"reference",class:Me(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Fe(e.$slots,"default",Xf(Wl(e.slotData)))],2)}const Gw=Oi(Hw,[["render",jw]]);function Uw(){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 Eo;function sl(){sl.init||(sl.init=!0,Eo=Uw()!==-1)}var Mi={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){sl(),On(()=>{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",Eo&&this.$el.appendChild(e),e.data="about:blank",Eo||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&&(!Eo&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ww=jm();Bm("data-v-b329ee4c");const Vw={class:"resize-observer",tabindex:"-1"};Hm();const zw=Ww((e,t,n,r,s,o)=>(V(),we("div",Vw)));Mi.render=zw;Mi.__scopeId="data-v-b329ee4c";Mi.__file="src/components/ResizeObserver.vue";const ap=(e="theme")=>({computed:{themeClass(){return Dw(this[e])}}}),qw=Le({name:"VPopperContent",components:{ResizeObserver:Mi},mixins:[ap()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Kw=["id","aria-hidden","tabindex","data-popper-placement"],Xw={ref:"inner",class:"v-popper__inner"},Jw=D("div",{class:"v-popper__arrow-outer"},null,-1),Yw=D("div",{class:"v-popper__arrow-inner"},null,-1),Qw=[Jw,Yw];function Zw(e,t,n,r,s,o){const i=an("ResizeObserver");return V(),ee("div",{id:e.popperId,ref:"popover",class:Me(["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:sn(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]=Iv(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[D("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),D("div",{class:"v-popper__wrapper",style:sn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[D("div",Xw,[e.mounted?(V(),ee(be,{key:0},[D("div",null,[Fe(e.$slots,"default")]),e.handleResize?(V(),we(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Ie("",!0)],64)):Ie("",!0)],512),D("div",{ref:"arrow",class:"v-popper__arrow-container",style:sn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Qw,4)],4)],46,Kw)}const lp=Oi(qw,[["render",Zw]]),cp={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 ol=function(){};typeof window<"u"&&(ol=window.Element);const e0=Le({name:"VPopperWrapper",components:{Popper:Gw,PopperContent:lp},mixins:[cp,ap("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,ol,Boolean],default:void 0},boundary:{type:[String,ol],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 t0(e,t,n,r,s,o){const i=an("PopperContent"),a=an("Popper");return V(),we(a,dr({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:d,show:h,hide:p,handleResize:g,onResize:m,classes:v,result:b})=>[Fe(e.$slots,"default",{shown:c,show:h,hide:p}),J(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:c,mounted:u,"skip-transition":f,"auto-hide":d,"handle-resize":g,classes:v,result:b,onHide:p,onResize:m},{default:ie(()=>[Fe(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 nc=Oi(e0,[["render",t0]]),n0={...nc,name:"VDropdown",vPopperTheme:"dropdown"},r0={...nc,name:"VMenu",vPopperTheme:"menu"},s0={...nc,name:"VTooltip",vPopperTheme:"tooltip"},o0=Le({name:"VTooltipDirective",components:{Popper:op(),PopperContent:lp},mixins:[cp],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Os(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Os(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}}}),i0=["innerHTML"],a0=["textContent"];function l0(e,t,n,r,s,o){const i=an("PopperContent"),a=an("Popper");return V(),we(a,dr({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:d,hide:h,handleResize:p,onResize:g,classes:m,result:v})=>[J(i,{ref:"popperContent",class:Me({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:c,mounted:u,"skip-transition":f,"auto-hide":d,"handle-resize":p,classes:m,result:v,onHide:h,onResize:g},{default:ie(()=>[e.html?(V(),ee("div",{key:0,innerHTML:e.finalContent},null,8,i0)):(V(),ee("div",{key:1,textContent:Pe(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 c0=Oi(o0,[["render",l0]]),up="v-popper--has-tooltip";function u0(e,t){let n=e.placement;if(!n&&t)for(const r of sp)t[r]&&(n=r);return n||(n=Os(e.theme||"tooltip","placement")),n}function fp(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=u0(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let ua,Ms,f0=0;function d0(){if(ua)return;Ms=he([]),ua=mh({name:"VTooltipDirectiveApp",setup(){return{directives:Ms}},render(){return this.directives.map(t=>$n(c0,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ua.mount(e)}function h0(e,t,n){d0();const r=he(fp(e,t,n)),s=he(!1),o={id:f0++,options:r,shown:s};return Ms.value.push(o),e.classList&&e.classList.add(up),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function dp(e){if(e.$_popper){const t=Ms.value.indexOf(e.$_popper.item);t!==-1&&Ms.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(up)}function zu(e,{value:t,modifiers:n}){const r=fp(e,t,n);if(!r.content||Os(r.theme||"tooltip","disabled"))dp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=h0(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const p0={beforeMount:zu,updated:zu,beforeUnmount(e){dp(e)}};function qu(e){e.addEventListener("mousedown",Zo),e.addEventListener("click",Zo),e.addEventListener("touchstart",hp,jr?{passive:!0}:!1)}function Ku(e){e.removeEventListener("mousedown",Zo),e.removeEventListener("click",Zo),e.removeEventListener("touchstart",hp),e.removeEventListener("touchend",pp),e.removeEventListener("touchcancel",gp)}function Zo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function hp(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",pp),t.addEventListener("touchcancel",gp)}}function pp(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 gp(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const g0={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&qu(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?qu(e):Ku(e))},beforeUnmount(e){Ku(e)}};function m0(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,np(Rt,t),e.directive("tooltip",p0),e.directive("close-popper",g0),e.component("VTooltip",s0),e.component("VDropdown",n0),e.component("VMenu",r0))}const y0={version:"5.2.2",install:m0,options:Rt},v0=Vt(e=>{e.vueApp.use(y0)}),_0=[ew,ow,lw,uw,fw,dw,pw,gw,mw,v0],Ks=Le({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(V(),ee("div",{class:Me(["n-icon",t.icon])},null,2))}}),Xs=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},b0={},w0={class:"n-badge"};function C0(e,t){return V(),ee("span",w0,[Fe(e.$slots,"default")])}const S0=Xs(b0,[["render",C0]]);async function mp(e,t=Ut()){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(()=>mp(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 x0=(...e)=>e.find(t=>t!==void 0);function k0(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 Xu(o,e.trailingSlash);const a="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:Xu(a,e.trailingSlash)}}function s(o){const i=Ut(),a=Hr(),l=Ne(()=>!!o.target&&o.target!=="_self"),c=Ne(()=>{const m=o.to||o.href||"";return typeof m=="string"&&Mn(m,{acceptRelative:!0})}),u=an("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,d=Ne(()=>{if(o.external)return!0;const m=o.to||o.href||"";return typeof m=="object"?!1:m===""||c.value}),h=Ne(()=>{const m=o.to||o.href||"";return d.value?m:r(m,i.resolve)}),p=d.value||f==null?void 0:f({...o,to:h}),g=Ne(()=>{var m;if(!h.value||c.value||n(h.value))return h.value;if(d.value){const v=typeof h.value=="object"&&"path"in h.value?Ja(h.value):h.value,b=typeof v=="object"?i.resolve(v).href:v;return r(b,i.resolve)}return typeof h.value=="object"?((m=i.resolve(h.value))==null?void 0:m.href)??null:r(qs(a.app.baseURL,h.value),i.resolve)});return{to:h,hasTarget:l,isAbsoluteUrl:c,isExternal:d,href:g,isActive:(p==null?void 0:p.isActive)??Ne(()=>h.value===i.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??Ne(()=>h.value===i.currentRoute.value.path),route:(p==null?void 0:p.route)??Ne(()=>i.resolve(h.value)),async navigate(m){await Dh(g.value,{replace:o.replace,external:d.value||l.value})}}}return Le({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=Ut(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=s(o),p=he(!1),g=he(null),m=y=>{var _;g.value=o.custom?(_=y==null?void 0:y.$el)==null?void 0:_.nextElementSibling:y==null?void 0:y.$el};function v(y){var _,C;return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===y:((_=o.prefetchOn)==null?void 0:_[y])??((C=e.prefetchOn)==null?void 0:C[y]))&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!T0()}async function b(y=Be()){if(p.value)return;p.value=!0;const _=typeof l.value=="string"?l.value:f.value?Ja(l.value):a.resolve(l.value).fullPath,C=f.value?new URL(_,window.location.href).href:_;await Promise.all([y.hooks.callHook("link:prefetch",C).catch(()=>{}),!f.value&&!d.value&&mp(l.value,a).catch(()=>{})])}if(v("visibility")){const y=Be();let _,C=null;xi(()=>{const A=E0();Pi(()=>{_=el(()=>{var I;(I=g==null?void 0:g.value)!=null&&I.tagName&&(C=A.observe(g.value,async()=>{C==null||C(),C=null,await b(y)}))})})}),ki(()=>{_&&cw(_),C==null||C(),C=null})}return()=>{var C;if(!f.value&&!d.value&&!n(l.value)){const A={ref:m,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||(v("interaction")&&(A.onPointerenter=b.bind(null,void 0),A.onFocus=b.bind(null,void 0)),p.value&&(A.class=o.prefetchedClass||e.prefetchedClass),A.rel=o.rel||void 0),$n(an("RouterLink"),A,i.default)}const y=o.target||null,_=x0(o.noRel?"":o.rel,e.externalRelAttribute,h.value||d.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:c.value,navigate:u,prefetch:b,get route(){if(!c.value)return;const A=new URL(c.value,window.location.href);return{path:A.pathname,fullPath:A.pathname,get query(){return zs(A.search)},hash:A.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:_,target:y,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:$n("a",{ref:g,href:c.value||null,rel:_,target:y},(C=i.default)==null?void 0:C.call(i))}}})}const yp=k0(j_);function Xu(e,t){const n=t==="append"?Wo:Ri;return Mn(e)&&!e.startsWith("http")?e:n(e,!0)}function E0(){const e=Be();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 A0=/2g/;function T0(){const e=navigator.connection;return!!(e&&(e.saveData||A0.test(e.effectiveType)))}const R0={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},rc=Le({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(e){const t=e,n=Ne(()=>t.href||t.to);return(r,s)=>{const o=yp;return V(),we(o,dr(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(()=>[Fe(r.$slots,"default"),n.value&&r.target==="_blank"?(V(),ee("div",R0)):Ie("",!0)]),_:3},16,["class"])}}}),$0={},P0={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N0(e,t){return V(),ee("svg",P0,t[0]||(t[0]=[jy('<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 I0=Xs($0,[["render",N0]]),L0={},O0={class:"n-loading n-panel-grids-center"},M0={class:"flex flex-col animate-pulse items-center text-lg"};function D0(e,t){return V(),ee("div",O0,[D("div",M0,[t[1]||(t[1]=D("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),Fe(e.$slots,"default",{},()=>[t[0]||(t[0]=pe(" Loading... "))])])])}const F0=Xs(L0,[["render",D0]]),vp=Le({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(e,{attrs:t,slots:n}){return()=>$n(e.to?yp:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},[Fe(n,"icon",{},()=>e.icon?[$n(Ks,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),Fe(n,"default")])}});let Ze=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function B0(e){return sc(e)}function sc(e){return Array.isArray(e)?H0(e):e instanceof RegExp?e:typeof e=="object"?j0(e):e}function H0(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=sc(e[n]);return t}function j0(e){let t={};for(let n in e)t[n]=sc(e[n]);return t}function _p(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function bp(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?bp(e.substring(0,e.length-1)):e.substr(~t+1)}var fa=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,uo=class{static hasCaptures(e){return e===null?!1:(fa.lastIndex=0,fa.test(e))}static replaceCaptures(e,t,n){return e.replace(fa,(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 wp(e,t){return e<t?-1:e>t?1:0}function Cp(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=wp(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Ju(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 Sp(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var xp=class{constructor(e){R(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}},ei=class{constructor(e,t,n){R(this,"_cachedMatchRoot",new xp(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(W0(e),t)}static createFromParsedTheme(e,t){return z0(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=>G0(e.parent,s.parentScopes));return r?new kp(r.fontStyle,r.foreground,r.background):null}},da=class Ao{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Ao(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Ao(n,t[r]);return n}push(t){return new Ao(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 G0(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&&!U0(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function U0(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var kp=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function W0(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let s=0,o=t.length;s<o;s++){let i=t[s];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let f=i.settings.fontStyle.split(" ");for(let d=0,h=f.length;d<h;d++)switch(f[d]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof i.settings.foreground=="string"&&Ju(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&Ju(i.settings.background)&&(u=i.settings.background);for(let f=0,d=a.length;f<d;f++){let p=a[f].trim().split(" "),g=p[p.length-1],m=null;p.length>1&&(m=p.slice(0,p.length-1),m.reverse()),n[r++]=new V0(g,m,s,l,c,u)}}return n}var V0=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}},rn=(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))(rn||{});function z0(e,t){e.sort((l,c)=>{let u=wp(l.scope,c.scope);return u!==0||(u=Cp(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 q0(t),i=new kp(n,o.getId(r),o.getId(s)),a=new X0(new il(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 ei(o,i,a)}var q0=class{constructor(e){R(this,"_isFrozen");R(this,"_lastColorId");R(this,"_id2color");R(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)}},K0=Object.freeze([]),il=class Ep{constructor(t,n,r,s,o){R(this,"scopeDepth");R(this,"parentScopes");R(this,"fontStyle");R(this,"foreground");R(this,"background");this.scopeDepth=t,this.parentScopes=n||K0,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new Ep(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)}},X0=class al{constructor(t,n=[],r={}){R(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(al._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 al(this._mainRule.clone(),il.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(Cp(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 il(t,n,r,s,o))}},Gr=class pt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=pt.getLanguageId(t),r=pt.getTokenType(t),s=pt.getFontStyle(t),o=pt.getForeground(t),i=pt.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=pt.getLanguageId(t),c=pt.getTokenType(t),u=pt.containsBalancedBrackets(t)?1:0,f=pt.getFontStyle(t),d=pt.getForeground(t),h=pt.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),s!==null&&(u=s?1:0),o!==-1&&(f=o),i!==0&&(d=i),a!==0&&(h=a),(l<<0|c<<8|u<<10|f<<11|d<<15|h<<24)>>>0}};function ti(e,t){const n=[],r=J0(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(Yu(s)){const l=[];do l.push(s),s=r.next();while(Yu(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 Yu(e){return!!e&&!!e.match(/[\w\.:]+/)}function J0(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 Ap(e){typeof e.dispose=="function"&&e.dispose()}var Ds=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Y0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Q0=class{constructor(){R(this,"_references",[]);R(this,"_seenReferenceKeys",new Set);R(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))}},Z0=class{constructor(e,t){R(this,"seenFullScopeRequests",new Set);R(this,"seenPartialScopeRequests",new Set);R(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ds(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new Q0;for(const n of e)e1(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Ds){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 e1(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 Ds?To({baseGrammar:o,selfGrammar:s},r):ll(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 Ds(a))}function ll(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];ni([r],t,n)}}function To(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ni(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ni(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ni(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?_p({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ni(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=Tp(o);switch(i.kind){case 0:To({...t,selfGrammar:t.baseGrammar},n);break;case 1:To(t,n);break;case 2:ll(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?ll(i.ruleName,l,n):To(l,n)}else i.kind===4?n.add(new Y0(i.scopeName,i.ruleName)):n.add(new Ds(i.scopeName));break}}}var t1=class{constructor(){R(this,"kind",0)}},n1=class{constructor(){R(this,"kind",1)}},r1=class{constructor(e){R(this,"kind",2);this.ruleName=e}},s1=class{constructor(e){R(this,"kind",3);this.scopeName=e}},o1=class{constructor(e,t){R(this,"kind",4);this.scopeName=e,this.ruleName=t}};function Tp(e){if(e==="$base")return new t1;if(e==="$self")return new n1;const t=e.indexOf("#");if(t===-1)return new s1(e);if(t===0)return new r1(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new o1(n,r)}}var i1=/\\(\d+)/,Qu=/\\(\d+)/g,a1=-1,Rp=-2;var Js=class{constructor(e,t,n,r){R(this,"$location");R(this,"id");R(this,"_nameIsCapturing");R(this,"_name");R(this,"_contentNameIsCapturing");R(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=uo.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=uo.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${bp(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:uo.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:uo.replaceCaptures(this._contentName,e,t)}},l1=class extends Js{constructor(t,n,r,s,o){super(t,n,r,s);R(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!")}},c1=class extends Js{constructor(t,n,r,s,o){super(t,n,r,null);R(this,"_match");R(this,"captures");R(this,"_cachedCompiledPatterns");this._match=new Fs(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 Bs,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zu=class extends Js{constructor(t,n,r,s,o){super(t,n,r,s);R(this,"hasMissingPatterns");R(this,"patterns");R(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 Bs,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},cl=class extends Js{constructor(t,n,r,s,o,i,a,l,c,u){super(t,n,r,s);R(this,"_begin");R(this,"beginCaptures");R(this,"_end");R(this,"endHasBackReferences");R(this,"endCaptures");R(this,"applyEndPatternLast");R(this,"hasMissingPatterns");R(this,"patterns");R(this,"_cachedCompiledPatterns");this._begin=new Fs(o,this.id),this.beginCaptures=i,this._end=new Fs(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 Bs;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}},ri=class extends Js{constructor(t,n,r,s,o,i,a,l,c){super(t,n,r,s);R(this,"_begin");R(this,"beginCaptures");R(this,"whileCaptures");R(this,"_while");R(this,"whileHasBackReferences");R(this,"hasMissingPatterns");R(this,"patterns");R(this,"_cachedCompiledPatterns");R(this,"_cachedCompiledWhilePatterns");this._begin=new Fs(o,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new Fs(a,Rp),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 Bs;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 Bs,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},$p=class Xe{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new l1(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new c1(t.$vscodeTextmateLocation,t.id,t.name,t.match,Xe._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=_p({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Zu(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Xe._compilePatterns(o,n,r))}return t.while?new ri(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Xe._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Xe._compileCaptures(t.whileCaptures||t.captures,n,r),Xe._compilePatterns(t.patterns,n,r)):new cl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Xe._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Xe._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Xe._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=Xe.getCompiledRuleId(t[i],n,r)),s[a]=Xe.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=Tp(a.include);switch(c.kind){case 0:case 1:l=Xe.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=Xe.getCompiledRuleId(u,n,r));break;case 3:case 4:const f=c.scopeName,d=c.kind===4?c.ruleName:null,h=n.getExternalGrammar(f,r);if(h)if(d){let p=h.repository[d];p&&(l=Xe.getCompiledRuleId(p,n,h.repository))}else l=Xe.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=Xe.getCompiledRuleId(a,n,r);if(l!==-1){const c=n.getRule(l);let u=!1;if((c instanceof Zu||c instanceof cl||c instanceof ri)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Fs=class Pp{constructor(t,n){R(this,"source");R(this,"ruleId");R(this,"hasAnchor");R(this,"hasBackReferences");R(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=i1.test(this.source):this.hasBackReferences=!1}clone(){return new Pp(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 Qu.lastIndex=0,this.source.replace(Qu,(s,o)=>Sp(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}},Bs=class{constructor(){R(this,"_items");R(this,"_hasAnchors");R(this,"_cached");R(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 ef(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 ef(e,r,this._items.map(s=>s.ruleId))}},ef=class{constructor(e,t,n){R(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}},ha=class{constructor(e,t){this.languageId=e,this.tokenType=t}},nn,u1=(nn=class{constructor(t,n){R(this,"_defaultAttributes");R(this,"_embeddedLanguagesMatcher");R(this,"_getBasicScopeAttributes",new xp(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new ha(n,r)}));this._defaultAttributes=new ha(t,8),this._embeddedLanguagesMatcher=new f1(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?nn._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(nn.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!")}},R(nn,"_NULL_SCOPE_METADATA",new ha(0,0)),R(nn,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),nn),f1=class{constructor(e){R(this,"values");R(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Sp(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])}},tf=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Np(e,t,n,r,s,o,i,a){const l=t.content.length;let c=!1,u=-1;if(i){const h=d1(e,t,n,r,s,o);s=h.stack,r=h.linePos,n=h.isFirstLine,u=h.anchorPosition}const f=Date.now();for(;!c;){if(a!==0&&Date.now()-f>a)return new tf(s,!0);d()}return new tf(s,!1);function d(){const h=h1(e,t,n,r,s,u);if(!h){o.produce(s,l),c=!0;return}const p=h.captureIndices,g=h.matchedRuleId,m=p&&p.length>0?p[0].end>r:!1;if(g===a1){const v=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),os(e,t,n,s,o,v.endCaptures,p),o.produce(s,p[0].end);const b=s;if(s=s.parent,u=b.getAnchorPos(),!m&&b.getEnterPos()===r){s=b,o.produce(s,l),c=!0;return}}else{const v=e.getRule(g);o.produce(s,p[0].start);const b=s,y=v.getName(t.content,p),_=s.contentNameScopesList.pushAttributed(y,e);if(s=s.push(g,r,u,p[0].end===l,null,_,_),v instanceof cl){const C=v;os(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const A=C.getContentName(t.content,p),I=_.pushAttributed(A,e);if(s=s.withContentNameScopesList(I),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!m&&b.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(v instanceof ri){const C=v;os(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),u=p[0].end;const A=C.getContentName(t.content,p),I=_.pushAttributed(A,e);if(s=s.withContentNameScopesList(I),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!m&&b.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(os(e,t,n,s,o,v.captures,p),o.produce(s,p[0].end),s=s.pop(),!m){s=s.safePop(),o.produce(s,l),c=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function d1(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 ri&&a.push({rule:c,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:c,findOptions:u}=m1(l.rule,e,l.stack.endRule,n,r===i),f=c.findNextMatchSync(t,r,u);if(f){if(f.ruleId!==Rp){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),os(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 h1(e,t,n,r,s,o){const i=p1(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=g1(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 p1(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=Ip(i,e,s.endRule,n,r===o),c=a.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function g1(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,c,u=0;const f=o.contentNameScopesList.getScopeNames();for(let d=0,h=e.length;d<h;d++){const p=e[d];if(!p.matcher(f))continue;const g=t.getRule(p.ruleId),{ruleScanner:m,findOptions:v}=Ip(g,t,null,r,s===i),b=m.findNextMatchSync(n,s,v);if(!b)continue;const y=b.captureIndices[0].start;if(!(y>=a)&&(a=y,l=b.captureIndices,c=b.ruleId,u=p.priority,a===s))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function Ip(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function m1(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function os(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 d=o[f];if(d===null)continue;const h=i[f];if(h.length===0)continue;if(h.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=h.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,h.start):s.produce(r,h.start),d.retokenizeCapturedWithRuleId){const g=d.getName(a,i),m=r.contentNameScopesList.pushAttributed(g,e),v=d.getContentName(a,i),b=m.pushAttributed(v,e),y=r.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,m,b),_=e.createOnigString(a.substring(0,h.end));Np(e,_,n&&h.start===0,h.start,y,s,!1,0),Ap(_);continue}const p=d.getName(a,i);if(p!==null){const m=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);c.push(new y1(m,h.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var y1=class{constructor(e,t){R(this,"scopes");R(this,"endPos");this.scopes=e,this.endPos=t}};function v1(e,t,n,r,s,o,i,a){return new b1(e,t,n,r,s,o,i,a)}function nf(e,t,n,r,s){const o=ti(t,si),i=$p.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 si(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(_1(t[s],r))return n=s+1,!0;return!1})}function _1(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 b1=class{constructor(e,t,n,r,s,o,i,a){R(this,"_rootId");R(this,"_lastRuleId");R(this,"_ruleId2desc");R(this,"_includedGrammars");R(this,"_grammarRepository");R(this,"_grammar");R(this,"_injections");R(this,"_basicScopeAttributesProvider");R(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new u1(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=rf(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const c=ti(l,si);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)nf(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&&nf(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]=rf(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=$p.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===ul.NULL){s=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),f=Gr.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),d=this.getRule(this._rootId).getName(null,null);let h;d?h=vs.createRootAndLookUpScopeName(d,f,this):h=vs.createRoot("unknown",f),t=new ul(null,this._rootId,-1,-1,!1,null,h,h)}else s=!1,t.reset();e=e+`
|
|
21
|
-
`;const o=this.createOnigString(e),i=o.content.length,a=new C1(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Np(this,o,s,0,t,a,!0,r);return Ap(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function rf(e,t){return e=B0(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var vs=class Mt{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=da.push(s,o.scopeNames),r=new Mt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Mt(null,new da(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new da(null,t),i=r.themeProvider.themeMatch(o),a=Mt.mergeAttributes(n,s,i);return new Mt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Mt.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),Gr.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Mt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=Mt._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=Mt.mergeAttributes(t.tokenAttributes,s,i);return new Mt(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}},mt,ul=(mt=class{constructor(t,n,r,s,o,i,a,l){R(this,"_stackElementBrand");R(this,"_enterPos");R(this,"_anchorPos");R(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:mt._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?vs.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(){mt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new mt(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 mt(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=vs.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new mt(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,vs.fromExtension(r,n.contentNameScopesList))}},R(mt,"NULL",new mt(null,0,0,0,!1,null,null,null)),mt),w1=class{constructor(e,t){R(this,"balancedBracketScopes");R(this,"unbalancedBracketScopes");R(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ti(n,si).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ti(n,si).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}},C1=class{constructor(e,t,n,r){R(this,"_emitBinaryTokens");R(this,"_lineText");R(this,"_tokens");R(this,"_binaryTokens");R(this,"_lastTokenEndIndex");R(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=Gr.set(s,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(s=Gr.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}},S1=class{constructor(e,t){R(this,"_grammars",new Map);R(this,"_rawGrammars",new Map);R(this,"_injectionGrammars",new Map);R(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,v1(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},x1=class{constructor(t){R(this,"_options");R(this,"_syncRegistry");R(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new S1(ei.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(ei.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 w1(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new Z0(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)}},fl=ul.NULL;const k1=["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 Lp(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 dl(e){return e.toLowerCase()}class it{constructor(t,n){this.attribute=n,this.property=t}}it.prototype.attribute="";it.prototype.booleanish=!1;it.prototype.boolean=!1;it.prototype.commaOrSpaceSeparated=!1;it.prototype.commaSeparated=!1;it.prototype.defined=!1;it.prototype.mustUseProperty=!1;it.prototype.number=!1;it.prototype.overloadedBoolean=!1;it.prototype.property="";it.prototype.spaceSeparated=!1;it.prototype.space=void 0;let E1=0;const le=pr(),De=pr(),Op=pr(),j=pr(),Ae=pr(),Lr=pr(),ut=pr();function pr(){return 2**++E1}const hl=Object.freeze(Object.defineProperty({__proto__:null,boolean:le,booleanish:De,commaOrSpaceSeparated:ut,commaSeparated:Lr,number:j,overloadedBoolean:Op,spaceSeparated:Ae},Symbol.toStringTag,{value:"Module"})),pa=Object.keys(hl);class oc extends it{constructor(t,n,r,s){let o=-1;if(super(t,n),sf(this,"space",s),typeof r=="number")for(;++o<pa.length;){const i=pa[o];sf(this,pa[o],(r&hl[i])===hl[i])}}}oc.prototype.defined=!0;function sf(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 oc(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[dl(r)]=r,n[dl(o.attribute)]=r}return new Ys(t,n,e.space)}const Mp=Kr({properties:{ariaActiveDescendant:null,ariaAtomic:De,ariaAutoComplete:null,ariaBusy:De,ariaChecked:De,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:Ae,ariaCurrent:null,ariaDescribedBy:Ae,ariaDetails:null,ariaDisabled:De,ariaDropEffect:Ae,ariaErrorMessage:null,ariaExpanded:De,ariaFlowTo:Ae,ariaGrabbed:De,ariaHasPopup:null,ariaHidden:De,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ae,ariaLevel:j,ariaLive:null,ariaModal:De,ariaMultiLine:De,ariaMultiSelectable:De,ariaOrientation:null,ariaOwns:Ae,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:De,ariaReadOnly:De,ariaRelevant:null,ariaRequired:De,ariaRoleDescription:Ae,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:De,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dp(e,t){return t in e?e[t]:t}function Fp(e,t){return Dp(e,t.toLowerCase())}const A1=Kr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Lr,acceptCharset:Ae,accessKey:Ae,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:Ae,autoFocus:le,autoPlay:le,blocking:Ae,capture:null,charSet:null,checked:le,cite:null,className:Ae,cols:j,colSpan:null,content:null,contentEditable:De,controls:le,controlsList:Ae,coords:j|Lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:Op,draggable:De,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:Ae,height:j,hidden:le,high:j,href:null,hrefLang:null,htmlFor:Ae,httpEquiv:Ae,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:Ae,itemRef:Ae,itemScope:le,itemType:Ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,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:le,optimum:j,pattern:null,ping:Ae,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:Ae,required:le,reversed:le,rows:j,rowSpan:j,sandbox:Ae,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:De,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:De,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ae,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:De,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:Fp}),T1=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:ut,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:Ae,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Lr,g2:Lr,glyphName:Lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:ut,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:j,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ut,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ut,rev:ut,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ut,requiredFeatures:ut,requiredFonts:ut,requiredFormats:ut,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:ut,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ut,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ut,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dp}),Bp=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()}}),Hp=Kr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fp}),jp=Kr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),R1=/[A-Z]/g,of=/-[a-z]/g,$1=/^data[-\w.:]+$/i;function P1(e,t){const n=dl(t);let r=t,s=it;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&$1.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(of,I1);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!of.test(o)){let i=o.replace(R1,N1);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=oc}return new s(r,t)}function N1(e){return"-"+e.toLowerCase()}function I1(e){return e.charAt(1).toUpperCase()}const L1=Lp([Mp,A1,Bp,Hp,jp],"html"),Gp=Lp([Mp,T1,Bp,Hp,jp],"svg"),af={}.hasOwnProperty;function O1(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&af.call(s,e)){const l=String(s[e]);i=af.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 M1=/["&'<>`]/g,D1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,B1=/[|\\{}()[\]^$+*?.]/g,lf=new WeakMap;function H1(e,t){if(e=e.replace(t.subset?j1(t.subset):M1,r),t.subset||t.escapeOnly)return e;return e.replace(D1,n).replace(F1,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 j1(e){let t=lf.get(e);return t||(t=G1(e),lf.set(e,t)),t}function G1(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(B1,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const U1=/[\dA-Fa-f]/;function W1(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!U1.test(String.fromCharCode(t))?r:r+";"}const V1=/\d/;function z1(e,t,n){const r="&#"+String(e);return n&&t&&!V1.test(String.fromCharCode(t))?r:r+";"}const q1=["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"],ga={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:"€"},K1=["cent","copy","divide","gt","lt","not","para","times"],Up={}.hasOwnProperty,pl={};let fo;for(fo in ga)Up.call(ga,fo)&&(pl[ga[fo]]=fo);const X1=/[^\dA-Za-z]/;function J1(e,t,n,r){const s=String.fromCharCode(e);if(Up.call(pl,s)){const o=pl[s],i="&"+o;return n&&q1.includes(o)&&!K1.includes(o)&&(!r||t&&t!==61&&X1.test(String.fromCharCode(t)))?i:i+";"}return""}function Y1(e,t,n){let r=W1(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=J1(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=z1(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function Or(e,t){return H1(e,Object.assign({format:Y1},t))}const Q1=/^>|^->|<!--|-->|--!>|<!-$/g,Z1=[">"],eC=["<",">"];function tC(e,t,n,r){return r.settings.bogusComments?"<?"+Or(e.value,Object.assign({},r.settings.characterReferences,{subset:Z1}))+">":"<!--"+e.value.replace(Q1,s)+"-->";function s(o){return Or(o,Object.assign({},r.settings.characterReferences,{subset:eC}))}}function nC(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function cf(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 rC(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function sC(e){return e.join(" ").trim()}const oC=/[ \t\n\f\r]/g;function ic(e){return typeof e=="object"?e.type==="text"?uf(e.value):!1:uf(e)}function uf(e){return e.replace(oC,"")===""}const Ve=Vp(1),Wp=Vp(-1),iC=[];function Vp(e){return t;function t(n,r,s){const o=n?n.children:iC;let i=(r||0)+e,a=o[i];if(!s)for(;a&&ic(a);)i+=e,a=o[i];return a}}const aC={}.hasOwnProperty;function zp(e){return t;function t(n,r,s){return aC.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const ac=zp({body:cC,caption:ma,colgroup:ma,dd:hC,dt:dC,head:ma,html:lC,li:fC,optgroup:pC,option:gC,p:uC,rp:ff,rt:ff,tbody:yC,td:df,tfoot:vC,th:df,thead:mC,tr:_C});function ma(e,t,n){const r=Ve(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ic(r.value.charAt(0)))}function lC(e,t,n){const r=Ve(n,t);return!r||r.type!=="comment"}function cC(e,t,n){const r=Ve(n,t);return!r||r.type!=="comment"}function uC(e,t,n){const r=Ve(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 fC(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&r.tagName==="li"}function dC(e,t,n){const r=Ve(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function hC(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ff(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function pC(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function gC(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function mC(e,t,n){const r=Ve(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function yC(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function vC(e,t,n){return!Ve(n,t)}function _C(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function df(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const bC=zp({body:SC,colgroup:xC,head:CC,html:wC,tbody:kC});function wC(e){const t=Ve(e,-1);return!t||t.type!=="comment"}function CC(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 SC(e){const t=Ve(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ic(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function xC(e,t,n){const r=Wp(n,t),s=Ve(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ac(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function kC(e,t,n){const r=Wp(n,t),s=Ve(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ac(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const ho={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 EC(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=Gp);const c=AC(r,e.properties),u=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,u&&(i=!1),(c||!o||!bC(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||!ac(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function AC(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=TC(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 TC(e,t,n){const r=P1(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=Or(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ho.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?rC:sC)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=Or(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ho.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&cf(n,i)>cf(n,e.alternative)&&(i=e.alternative),a=i+Or(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ho.single:ho.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const RC=["<","&"];function qp(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Or(e.value,Object.assign({},r.settings.characterReferences,{subset:RC}))}function $C(e,t,n,r){return r.settings.allowDangerousHtml?e.value:qp(e,t,n,r)}function PC(e,t,n,r){return r.all(e)}const NC=O1("type",{invalid:IC,unknown:LC,handlers:{comment:tC,doctype:nC,element:EC,raw:$C,root:PC,text:qp}});function IC(e){throw new Error("Expected node, not `"+e+"`")}function LC(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const OC={},MC={},DC=[];function FC(e,t){const n=t||OC,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:BC,all:HC,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||k1,characterReferences:n.characterReferences||MC,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Gp:L1,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function BC(e,t,n){return NC(e,t,n,this)}function HC(e){const t=[],n=e&&e.children||DC;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function oi(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 Zn(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function jC(e){return Array.isArray(e)?e:[e]}async function Kp(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function lc(e){return!e||["plaintext","txt","text","plain"].includes(e)}function GC(e){return e==="ansi"||lc(e)}function cc(e){return e==="none"}function UC(e){return cc(e)}function Xp(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 Di(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 WC(e){const t=Di(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 VC(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 zC(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?VC(s,o):s})):e}function qC(e,t,n,r){const s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(l=>Jp(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 d=u==="color"?"":u==="background-color"?"-bg":`-${u}`,h=n+t[c]+(u==="color"?"":d);a[h]=f}}}),s.htmlStyle=a,s}function Jp(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&rn.Italic&&(t["font-style"]="italic"),e.fontStyle&rn.Bold&&(t["font-weight"]="bold"),e.fontStyle&rn.Underline&&(t["text-decoration"]="underline")),t}function KC(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Yp=new WeakMap;function Fi(e,t){Yp.set(e,t)}function Hs(e){return Yp.get(e)}class Xr{constructor(...t){R(this,"_stacks",{});R(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 Xr(Object.fromEntries(jC(n).map(r=>[r,fl])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return XC(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function XC(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 JC(e,t){if(!(e instanceof Xr))throw new Ze("Invalid grammar state");return e.getInternalStack(t)}function YC(){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 Ze(`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 Ze(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);if(i.character<0||i.character>a.length)throw new Ze(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,offset:s.posToIndex(i.line,i.character)}}};const s=WC(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));QC(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 zC(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 Ze(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(f,d,h,p){const g=s[f];let m="",v=-1,b=-1;if(d===0&&(v=0),h===0&&(b=0),h===Number.POSITIVE_INFINITY&&(b=g.children.length),v===-1||b===-1)for(let _=0;_<g.children.length;_++)m+=Qp(g.children[_]),v===-1&&m.length===d&&(v=_+1),b===-1&&m.length===h&&(b=_+1);if(v===-1)throw new Ze(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(b===-1)throw new Ze(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const y=g.children.slice(v,b);if(!p.alwaysWrap&&y.length===g.children.length)a(g,p,"line");else if(!p.alwaysWrap&&y.length===1&&y[0].type==="element")a(y[0],p,"token");else{const _={type:"element",tagName:"span",properties:{},children:y};a(_,p,"wrapper"),g.children.splice(v,y.length,_)}}function i(f,d){s[f]=a(s[f],d,"line")}function a(f,d,h){var m;const p=d.properties||{},g=d.transform||(v=>v);return f.tagName=d.tagName||"span",f.properties={...f.properties,...p,class:f.properties.class},(m=d.properties)!=null&&m.class&&Xp(f,d.properties.class),f=g(f,h)||f,f}const l=[],c=r.decorations.sort((f,d)=>d.start.offset-f.start.offset||f.end.offset-d.end.offset);for(const f of c){const{start:d,end:h}=f;if(d.line===h.line)o(d.line,d.character,h.character,f);else if(d.line<h.line){o(d.line,d.character,Number.POSITIVE_INFINITY,f);for(let p=d.line+1;p<h.line;p++)l.unshift(()=>i(p,f));o(h.line,0,h.character,f)}}l.forEach(f=>f())}}}function QC(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ze(`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 Ze(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Qp(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Qp).join(""):""}const ZC=[YC()];function ii(e){return[...e.transformers||[],...ZC]}var er=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],ya={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function eS(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 hf(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 tS(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)ya[r]&&t.push({type:"setDecoration",value:ya[r]});else if(r<=29){const s=ya[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:er[r-30]}});else if(r===38){const s=hf(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:er[r-40]}});else if(r===48){const s=hf(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:er[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:er[r-100+8]}})}return t}function nS(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=eS(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=tS(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 rS={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 sS(e=rS){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<er.length;c++)r.push(t(er[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 oS(e,t,n){const r=oi(e,n),s=Di(t),o=sS(Object.fromEntries(er.map(a=>{var l;return[a,(l=e.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),i=nS();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=Zn(c,r),u=Zn(u,r),l.decorations.has("dim")&&(c=iS(c));let f=rn.None;return l.decorations.has("bold")&&(f|=rn.Bold),l.decorations.has("italic")&&(f|=rn.Italic),l.decorations.has("underline")&&(f|=rn.Underline),{content:l.value,offset:a[1],color:c,bgColor:u,fontStyle:f}}))}function iS(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 uc(e,t,n={}){const{lang:r="text",theme:s=e.getLoadedThemes()[0]}=n;if(lc(r)||cc(s))return Di(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(s);if(r==="ansi")return oS(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ze(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ze(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return lS(t,a,o,i,n)}function aS(...e){if(e.length===2)return Hs(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(lc(s)||cc(o))throw new Ze("Plain language does not have grammar state");if(s==="ansi")throw new Ze("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new Xr(ai(n,l,i,a,r).stateStack,l.name,i.name)}function lS(e,t,n,r,s){const o=ai(e,t,n,r,s),i=new Xr(ai(e,t,n,r,s).stateStack,t.name,n.name);return Fi(o.tokens,i),o.tokens}function ai(e,t,n,r,s){const o=oi(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=Di(e);let c=s.grammarState?JC(s.grammarState,n.name)??fl:s.grammarContextCode!=null?ai(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:fl,u=[];const f=[];for(let d=0,h=l.length;d<h;d++){const[p,g]=l[d];if(p===""){u=[],f.push([]);continue}if(i>0&&p.length>=i){u=[],f.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}let m,v,b;s.includeExplanation&&(m=t.tokenizeLine(p,c,a),v=m.tokens,b=0);const y=t.tokenizeLine2(p,c,a),_=y.tokens.length/2;for(let C=0;C<_;C++){const A=y.tokens[2*C],I=C+1<_?y.tokens[2*C+2]:p.length;if(A===I)continue;const G=y.tokens[2*C+1],N=Zn(r[Gr.getForeground(G)],o),k=Gr.getFontStyle(G),P={content:p.substring(A,I),offset:g+A,color:N,fontStyle:k};if(s.includeExplanation){const E=[];if(s.includeExplanation!=="scopeName")for(const T of n.settings){let U;switch(typeof T.scope){case"string":U=T.scope.split(/,/).map(L=>L.trim());break;case"object":U=T.scope;break;default:continue}E.push({settings:T,selectors:U.map(L=>L.split(/ /))})}P.explanation=[];let x=0;for(;A+x<I;){const T=v[b],U=p.substring(T.startIndex,T.endIndex);x+=U.length,P.explanation.push({content:U,scopes:s.includeExplanation==="scopeName"?cS(T.scopes):uS(E,T.scopes)}),b+=1}}u.push(P)}f.push(u),u=[],c=y.ruleStack}return{tokens:f,stateStack:c}}function cS(e){return e.map(t=>({scopeName:t}))}function uS(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:dS(e,o,t.slice(0,r))}}return n}function pf(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function fS(e,t,n){if(!pf(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)pf(e[r],n[s])&&(r-=1),s-=1;return r===-1}function dS(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(fS(i,t,n)){r.push(o);break}return r}function Zp(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=uc(e,t,{...n,theme:l.theme}),u=Hs(c),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:f}}),o=hS(...s.map(l=>l.tokens)),i=o[0].map((l,c)=>l.map((u,f)=>{const d={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=u.explanation),o.forEach((h,p)=>{const{content:g,explanation:m,offset:v,...b}=h[c][f];d.variants[r[p].color]=b}),d})),a=s[0].state?new Xr(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&&Fi(i,a),i}function hS(...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 li(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(m=>m[1]).map(m=>({color:m[0],theme:m[1]})).sort((m,v)=>m.color===c?-1:v.color===c?1:0);if(f.length===0)throw new Ze("`themes` option must not be empty");const d=Zp(e,t,n);if(l=Hs(d),c&&!f.find(m=>m.color===c))throw new Ze(`\`themes\` option must contain the defaultColor key \`${c}\``);const h=f.map(m=>e.getTheme(m.theme)),p=f.map(m=>m.color);o=d.map(m=>m.map(v=>qC(v,p,u,c))),l&&Fi(o,l);const g=f.map(m=>oi(m.theme,n));s=f.map((m,v)=>(v===0&&c?"":`${u+m.color}:`)+(Zn(h[v].fg,g[v])||"inherit")).join(";"),r=f.map((m,v)=>(v===0&&c?"":`${u+m.color}-bg:`)+(Zn(h[v].bg,g[v])||"inherit")).join(";"),i=`shiki-themes ${h.map(m=>m.name).join(" ")}`,a=c?void 0:[s,r].join(";")}else if("theme"in n){const c=oi(n.theme,n);o=uc(e,t,n);const u=e.getTheme(n.theme);r=Zn(u.bg,c),s=Zn(u.fg,c),i=u.name,l=Hs(o)}else throw new Ze("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function ci(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>ci(e,s,o),codeToTokens:(s,o)=>li(e,s,o)}){var h,p;let s=t;for(const g of ii(n))s=((h=g.preprocess)==null?void 0:h.call(r,s,n))||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:c,grammarState:u}=li(e,s,n);const{mergeWhitespaces:f=!0}=n;f===!0?o=gS(o):f==="never"&&(o=mS(o));const d={...r,get source(){return s}};for(const g of ii(n))o=((p=g.tokens)==null?void 0:p.call(d,o))||o;return pS(o,{...n,fg:i,bg:a,themeName:l,rootStyle:c},d,u)}function pS(e,t,n,r=Hs(e)){var p,g,m;const s=ii(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(([v])=>!v.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const f=[],d={...n,structure:a,addClassToHast:Xp,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,b)=>{var C,A;b&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
|
|
30
|
-
`}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const I of v){let G={type:"element",tagName:"span",properties:{...I.htmlAttrs},children:[{type:"text",value:I.content}]};const N=KC(I.htmlStyle||Jp(I));N&&(G.properties.style=N);for(const k of s)G=((C=k==null?void 0:k.span)==null?void 0:C.call(d,G,b+1,_,y,I))||G;a==="inline"?i.children.push(G):a==="classic"&&y.children.push(G),_+=I.content.length}if(a==="classic"){for(const I of s)y=((A=I==null?void 0:I.line)==null?void 0:A.call(d,y,b+1))||y;f.push(y),o.push(y)}}),a==="classic"){for(const v of s)u=((p=v==null?void 0:v.code)==null?void 0:p.call(d,u))||u;c.children.push(u);for(const v of s)c=((g=v==null?void 0:v.pre)==null?void 0:g.call(d,c))||c;i.children.push(c)}let h=i;for(const v of s)h=((m=v==null?void 0:v.root)==null?void 0:m.call(d,h))||h;return r&&Fi(h,r),h}function gS(e){return e.map(t=>{const n=[];let r="",s=0;return t.forEach((o,i)=>{const l=!(o.fontStyle&&o.fontStyle&rn.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 mS(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 yS=FC;function vS(e,t,n){var o;const r={meta:{},options:n,codeToHast:(i,a)=>ci(e,i,a),codeToTokens:(i,a)=>li(e,i,a)};let s=yS(ci(e,t,n,r));for(const i of ii(n))s=((o=i.postprocess)==null?void 0:o.call(r,s,n))||s;return s}const gf={light:"#333333",dark:"#bbbbbb"},mf={light:"#fffffe",dark:"#1e1e1e"},yf="__shiki_resolved";function fc(e){var a,l,c,u,f;if(e!=null&&e[yf])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const d=t.settings?t.settings.find(h=>!h.name&&!h.scope):void 0;(a=d==null?void 0:d.settings)!=null&&a.foreground&&(r=d.settings.foreground),(l=d==null?void 0:d.settings)!=null&&l.background&&(n=d.settings.background),!r&&((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"?gf.light:gf.dark),n||(n=t.type==="light"?mf.light:mf.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function i(d){var p;if(o.has(d))return o.get(d);s+=1;const h=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(p=t.colorReplacements)!=null&&p[`#${h}`]?i(d):(o.set(d,h),h)}t.settings=t.settings.map(d=>{var m,v;const h=((m=d.settings)==null?void 0:m.foreground)&&!d.settings.foreground.startsWith("#"),p=((v=d.settings)==null?void 0:v.background)&&!d.settings.background.startsWith("#");if(!h&&!p)return d;const g={...d,settings:{...d.settings}};if(h){const b=i(d.settings.foreground);t.colorReplacements[b]=d.settings.foreground,g.settings.foreground=b}if(p){const b=i(d.settings.background);t.colorReplacements[b]=d.settings.background,g.settings.background=b}return g});for(const d of Object.keys(t.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!((f=t.colors[d])!=null&&f.startsWith("#"))){const h=i(t.colors[d]);t.colorReplacements[h]=t.colors[d],t.colors[d]=h}return Object.defineProperty(t,yf,{enumerable:!1,writable:!1,value:!0}),t}async function eg(e){return Array.from(new Set((await Promise.all(e.filter(t=>!GC(t)).map(async t=>await Kp(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function tg(e){return(await Promise.all(e.map(async n=>UC(n)?null:fc(await Kp(n))))).filter(n=>!!n)}let _S=3;function bS(e,t=3){t>_S||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class kr extends Error{constructor(t){super(t),this.name="ShikiError"}}class wS extends x1{constructor(n,r,s,o={}){super(n);R(this,"_resolvedThemes",new Map);R(this,"_resolvedGrammars",new Map);R(this,"_langMap",new Map);R(this,"_langGraph",new Map);R(this,"_textmateThemeCache",new WeakMap);R(this,"_loadedThemesCache",null);R(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=fc(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=ei.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 kr(`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 kr(`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 CS{constructor(t,n){R(this,"_langs",new Map);R(this,"_scopeToLang",new Map);R(this,"_injections",new Map);R(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 ts=0;function SS(e){ts+=1,e.warnings!==!1&&ts>=10&&ts%10===0&&console.warn(`[Shiki] ${ts} 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 kr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(fc),s=new CS(e.engine,n),o=new wS(s,r,n,e.langAlias);let i;function a(b){m();const y=o.getGrammar(typeof b=="string"?b:b.name);if(!y)throw new kr(`Language \`${b}\` not found, you may need to load it first`);return y}function l(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();const y=o.getTheme(b);if(!y)throw new kr(`Theme \`${b}\` not found, you may need to load it first`);return y}function c(b){m();const y=l(b);i!==b&&(o.setTheme(y),i=b);const _=o.getColorMap();return{theme:y,colorMap:_}}function u(){return m(),o.getLoadedThemes()}function f(){return m(),o.getLoadedLanguages()}function d(...b){m(),o.loadLanguages(b.flat(1))}async function h(...b){return d(await eg(b))}function p(...b){m();for(const y of b.flat(1))o.loadTheme(y)}async function g(...b){return m(),p(await tg(b))}function m(){if(t)throw new kr("Shiki instance has been disposed")}function v(){t||(t=!0,o.dispose(),ts-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:f,loadLanguage:h,loadLanguageSync:d,loadTheme:g,loadThemeSync:p,dispose:v,[Symbol.dispose]:v}}async function xS(e){e.engine||bS("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([tg(e.themes||[]),eg(e.langs||[]),e.engine]);return SS({...e,themes:t,langs:n,engine:r})}async function kS(e){const t=await xS(e);return{getLastGrammarState:(...n)=>aS(t,...n),codeToTokensBase:(n,r)=>uc(t,n,r),codeToTokensWithThemes:(n,r)=>Zp(t,n,r),codeToTokens:(n,r)=>li(t,n,r),codeToHast:(n,r)=>ci(t,n,r),codeToHtml:(n,r)=>vS(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}const qe=String.raw,dc=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]);function ES(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Bt(e,t){if(!e)throw new Error(t??"Value expected");return e}const Z={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"},Oe={any:"any",digit:"digit",dot:"dot",grapheme:"grapheme",hex:"hex",newline:"newline",posix:"posix",property:"property",space:"space",word:"word"},hc={flags:"flags",keep:"keep"},Je={absent_repeater:"absent_repeater",atomic:"atomic",capturing:"capturing",group:"group",lookahead:"lookahead",lookbehind:"lookbehind"},wr={greedy:"greedy",lazy:"lazy",possessive:"possessive"},vf=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]),ng=qe`\[\^?`,rg=`c.? | C(?:-.?)?|${qe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${qe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${qe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${qe`o\{[^\}]*\}?`}|${qe`\d{1,3}`}`,sg=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,po=new RegExp(qe`
|
|
31
|
-
\\ (?:
|
|
32
|
-
${rg}
|
|
33
|
-
| [gk]<[^>]*>?
|
|
34
|
-
| [gk]'[^']*'?
|
|
35
|
-
| .
|
|
36
|
-
)
|
|
37
|
-
| \( (?:
|
|
38
|
-
\? (?:
|
|
39
|
-
[:=!>({]
|
|
40
|
-
| <[=!]
|
|
41
|
-
| <[^>]*>
|
|
42
|
-
| '[^']*'
|
|
43
|
-
| ~\|?
|
|
44
|
-
| #(?:[^)\\]|\\.?)*
|
|
45
|
-
| [^:)]*[:)]
|
|
46
|
-
)?
|
|
47
|
-
| \*
|
|
48
|
-
)?
|
|
49
|
-
| ${sg.source}
|
|
50
|
-
| ${ng}
|
|
51
|
-
| .
|
|
52
|
-
`.replace(/\s+/g,""),"gsu"),va=new RegExp(qe`
|
|
53
|
-
\\ (?:
|
|
54
|
-
${rg}
|
|
55
|
-
| .
|
|
56
|
-
)
|
|
57
|
-
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
58
|
-
| ${ng}
|
|
59
|
-
| &&
|
|
60
|
-
| .
|
|
61
|
-
`.replace(/\s+/g,""),"gsu");function AS(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=MS(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(po.lastIndex=0;a=po.exec(e);){const f=TS(o,e,a[0],po.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(po.lastIndex=f.lastIndex)}const l=[];let c=0;i.forEach(f=>{f.type===Z.GroupOpen&&(f.kind===Je.capturing?f.number=++c:f.raw==="("&&l.push(f))}),c||l.forEach((f,d)=>{f.kind=Je.capturing,f.number=d+1});const u=c||l.length;return i=i.map(f=>f.type===Z.EscapedNumber?FS(f,u):f).flat(),{tokens:i,flags:r}}function TS(e,t,n,r){const[s,o]=n;if(s==="["){const i=RS(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:ce(Z.Assertion,n,{kind:n})};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:ce(Z.Subroutine,n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:ce(Z.Backreference,n)}}if(o==="K")return{token:ce(Z.Directive,n,{kind:hc.keep})};if(o==="N"||o==="R")return{token:ce(Z.CharacterSet,n,{kind:Oe.newline,negate:o==="N"})};if(o==="O")return{token:ce(Z.CharacterSet,n,{kind:Oe.any})};if(o==="X")return{token:ce(Z.CharacterSet,n,{kind:Oe.grapheme})};const i=og(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:NS(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:ce(Z.GroupOpen,n,{kind:Je.group})};if(n==="(?>")return{token:ce(Z.GroupOpen,n,{kind:Je.atomic})};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:ce(Z.GroupOpen,n,{kind:n[2]==="<"?Je.lookbehind:Je.lookahead,negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'")){const i=ce(Z.GroupOpen,n,{kind:Je.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:ce(Z.GroupOpen,n,{kind:Je.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:ce(Z.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:ce(Z.CharacterSet,n,{kind:Oe.dot})};if(n==="^"||n==="$"){const i=e.singleline?{"^":qe`\A`,$:qe`\Z`}[n]:n;return{token:ce(Z.Assertion,n,{kind:i})}}return n==="|"?{token:ce(Z.Alternator,n)}:sg.test(n)?{token:IS(n)}:(ig(n),{token:ce(Z.Character,n,{value:n.codePointAt(0)})})}function RS(e,t,n){const r=[ce(Z.CharacterClassOpen,t,{negate:t[1]==="^"})];let s=1,o;for(va.lastIndex=n;o=va.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(ce(Z.CharacterClassOpen,i,{negate:i[1]==="^"}));else if(i==="]"){if(r.at(-1).type===Z.CharacterClassOpen)r.push(ce(Z.Character,i,{value:93}));else if(s--,r.push(ce(Z.CharacterClassClose,i)),!s)break}else{const a=$S(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:va.lastIndex||e.length}}function $S(e){if(e[0]==="\\")return og(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!dc.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ce(Z.CharacterSet,e,{kind:Oe.posix,value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?ce(Z.CharacterClassHyphen,e):e==="&&"?ce(Z.CharacterClassIntersector,e):(ig(e),ce(Z.Character,e,{value:e.codePointAt(0)}))}function og(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return PS(e);if("dDhHsSwW".includes(n))return LS(e);if(e.startsWith(qe`\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 OS(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 ce(Z.Character,a,{value:i.codePointAt(0)})})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return ce(Z.Character,e,{value:DS(e)});if(vf.has(n))return ce(Z.Character,e,{value:vf.get(n)});if(/\d/.test(n))return ce(Z.EscapedNumber,e,{inCharClass:t});if(e==="\\")throw new Error(qe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return ce(Z.Character,e,{value:e.codePointAt(1)});throw new Error(`Unexpected escape "${e}"`)}function ce(e,t,n){return{type:e,raw:t,...n}}function PS(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 ce(Z.Character,e,{value:t.toUpperCase().codePointAt(0)-64})}function NS(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=_f(n),i=_f(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),ce(Z.Directive,e,{kind:hc.flags,flags:a});if(e.endsWith(":")){t.pushModX(s),t.numOpenGroups++;const l=ce(Z.GroupOpen,e,{kind:Je.group});return(o||i)&&(l.flags=a),l}throw new Error(`Unexpected flag modifier "${e}"`)}function IS(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("?")?wr.lazy:wr.greedy}else t.min=e[0]==="+"?1:0,t.max=e[0]==="?"?1:1/0,t.kind=e[1]==="+"?wr.possessive:e[1]==="?"?wr.lazy:wr.greedy;return ce(Z.Quantifier,e,t)}function LS(e){const t=e[1].toLowerCase();return ce(Z.CharacterSet,e,{kind:{d:Oe.digit,h:Oe.hex,s:Oe.space,w:Oe.word}[t],negate:e[1]!==t})}function OS(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups,s=t==="P"&&!n||t==="p"&&!!n;return ce(Z.CharacterSet,e,{kind:Oe.property,value:r,negate:s})}function _f(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 MS(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 DS(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 FS(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[ce(Z.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(qe`Octal encoded byte above 177 unsupported "${n}"`)}else c=l.codePointAt(0);o.push(ce(Z.Character,(a===0?"\\":"")+l,{value:c}))}return o}function ig(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`)}const H={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"},ag={repeater:"repeater"},_e={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"},Jt={union:"union",intersection:"intersection"},$e=Oe,_s=hc,gl=wr,Sn={lookahead:"lookahead",lookbehind:"lookbehind"};function lg(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=AS(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(d,h){const p=r.tokens[s.current];switch(s.parent=d,s.token=p,s.current++,p.type){case Z.Alternator:return cn();case Z.Assertion:return qS(p);case Z.Backreference:return BS(s);case Z.Character:return pc(p.value,{useLastValid:!!h.isCheckingRangeEnd});case Z.CharacterClassHyphen:return HS(s,h);case Z.CharacterClassOpen:return jS(s,h);case Z.CharacterSet:return GS(s);case Z.Directive:return JS(Bt(_s[p.kind],`Unexpected directive kind "${p.kind}"`),{flags:p.flags});case Z.GroupOpen:return US(s,h);case Z.Quantifier:return WS(s);case Z.Subroutine:return VS(s);default:throw new Error(`Unexpected token type "${p.type}"`)}}const i=ex(QS(),YS(r.flags));let a=i.pattern.alternatives[0];for(;s.current<r.tokens.length;){const d=o(a,{});d.type===H.Alternative?(i.pattern.alternatives.push(d),a=d):a.elements.push(d)}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:d}of f)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined")}else if(u.has(d)){if(u.get(d).length>1)throw new Error(qe`Subroutine uses a duplicate group name "\g<${d}>"`)}else throw new Error(qe`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function BS(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,ml(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 ml(r)}return s(+r)}function HS(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!==H.CharacterClass&&o.type!==H.CharacterClassRange&&i&&i.type!==Z.CharacterClassOpen&&i.type!==Z.CharacterClassClose&&i.type!==Z.CharacterClassIntersector){const a=s(n,{...t,isCheckingRangeEnd:!0});if(o.type===H.Character&&a.type===H.Character)return n.elements.pop(),XS(o,a);throw new Error("Invalid character class range")}return pc(45)}function jS(e,t){const{token:n,tokens:r,walk:s}=e,o=r[e.current],i=[Ro()];let a=bf(o);for(;a.type!==Z.CharacterClassClose;){if(a.type===Z.CharacterClassIntersector)i.push(Ro()),e.current++;else{const c=i.at(-1);c.elements.push(s(c,t))}a=bf(r[e.current],o)}const l=Ro({negate:n.negate});return i.length===1?l.elements=i[0].elements:(l.kind=Jt.intersection,l.elements=i.map(c=>c.elements.length===1?c.elements[0]:c)),e.current++,l}function GS({token:e,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r}){let{kind:s,negate:o,value:i}=e;if(s===Oe.property){const a=Bi(i);if(dc.has(a)&&!(r!=null&&r.has(a)))s=Oe.posix,i=a;else return Cr(i,{negate:o,normalizeUnknownPropertyNames:t,skipPropertyNameValidation:n,unicodePropertyMap:r})}return s===Oe.posix?ZS(i,{negate:o}):yl(s,{negate:o})}function US(e,t){const{token:n,tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=e;let l=KS(n);const c=l.type===H.AbsentFunction,u=l.kind===Sn.lookbehind,f=u&&l.negate;if(l.type===H.CapturingGroup&&(s.push(l),l.name&&ES(o,l.name,[]).push(l)),c&&t.isInAbsentFunction)throw new Error("Nested absent function not supported by Oniguruma");let d=wf(r[e.current]);for(;d.type!==Z.GroupClose;){if(d.type===Z.Alternator)l.alternatives.push(cn()),e.current++;else{const h=l.alternatives.at(-1),p=a(h,{...t,isInAbsentFunction:t.isInAbsentFunction||c,isInLookbehind:t.isInLookbehind||u,isInNegLookbehind:t.isInNegLookbehind||f});if(h.elements.push(p),(u||t.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(f||t.isInNegLookbehind){if(p.kind===Sn.lookahead||p.type===H.CapturingGroup)throw new Error(g)}else if(p.kind===Sn.lookahead||p.kind===Sn.lookbehind&&p.negate)throw new Error(g)}}d=wf(r[e.current])}return e.current++,l}function WS({token:e,parent:t}){const{min:n,max:r,kind:s}=e,o=t.elements.at(-1);if(!o||o.type===H.Assertion||o.type===H.Directive||o.type===H.LookaroundAssertion)throw new Error("Quantifier requires a repeatable token");const i=fg(o,n,r,Bt(gl[s],`Unexpected quantifier kind "${s}"`));return t.elements.pop(),i}function VS(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=tx(s);return r.push(i),i}function zS(e){return{type:H.AbsentFunction,kind:e,alternatives:[cn()]}}function cn(){return{type:H.Alternative,elements:[]}}function cg(e,t){const n={type:H.Assertion,kind:e};return(e===_e.word_boundary||e===_e.grapheme_boundary)&&(n.negate=!!(t!=null&&t.negate)),n}function qS({kind:e}){return cg(Bt({"^":_e.line_start,$:_e.line_end,"\\A":_e.string_start,"\\b":_e.word_boundary,"\\B":_e.word_boundary,"\\G":_e.search_start,"\\y":_e.grapheme_boundary,"\\Y":_e.grapheme_boundary,"\\z":_e.string_end,"\\Z":_e.string_end_newline}[e],`Unexpected assertion kind "${e}"`),{negate:e===qe`\B`||e===qe`\Y`})}function ml(e,t){const n=!!(t!=null&&t.orphan);return{type:H.Backreference,ref:e,...n&&{orphan:n}}}function KS({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case Je.absent_repeater:return zS(ag.repeater);case Je.atomic:return Et({atomic:!0});case Je.capturing:return ug(s,n);case Je.group:return Et({flags:e});case Je.lookahead:case Je.lookbehind:return bs({behind:t===Je.lookbehind,negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function ug(e,t){const n=t!==void 0;if(n&&!nx(t))throw new Error(`Group name "${t}" invalid in Oniguruma`);return{type:H.CapturingGroup,number:e,...n&&{name:t},alternatives:[cn()]}}function pc(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:H.Character,value:e}}function Ro(e){const t={kind:Jt.union,negate:!1,...e};return{type:H.CharacterClass,kind:t.kind,negate:t.negate,elements:[]}}function XS(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:H.CharacterClassRange,min:e,max:t}}function yl(e,t){const n=!!(t!=null&&t.negate),r={type:H.CharacterSet,kind:Bt($e[e],`Unexpected character set kind "${e}"`)};return(e===Oe.digit||e===Oe.hex||e===Oe.newline||e===Oe.space||e===Oe.word)&&(r.negate=n),(e===Oe.grapheme||e===Oe.newline&&!n)&&(r.variableLength=!0),r}function JS(e,t){const n={type:H.Directive,kind:e};return e===_s.flags&&(n.flags=t.flags),n}function YS(e){return{type:H.Flags,...e}}function Et(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;return{type:H.Group,...t&&{atomic:t},...n&&{flags:n},alternatives:[cn()]}}function bs(e){const t={behind:!1,negate:!1,...e};return{type:H.LookaroundAssertion,kind:t.behind?Sn.lookbehind:Sn.lookahead,negate:t.negate,alternatives:[cn()]}}function QS(){return{type:H.Pattern,alternatives:[cn()]}}function ZS(e,t){const n=!!(t!=null&&t.negate);if(!dc.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:H.CharacterSet,kind:$e.posix,value:e,negate:n}}function fg(e,t,n,r=gl.greedy){const s={type:H.Quantifier,min:t,max:n,kind:r,element:e};return n<t?{...s,min:n,max:t,kind:gl.possessive}:s}function ex(e,t){return{type:H.Regex,pattern:e,flags:t}}function tx(e){return{type:H.Subroutine,ref:e}}function Cr(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(Bi(e));if(!r){if(n.normalizeUnknownPropertyNames)r=rx(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(qe`Invalid Unicode property "\p{${e}}"`)}return{type:H.CharacterSet,kind:$e.property,value:r??e,negate:n.negate}}function nx(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function rx(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 Bi(e){return e.replace(/[- _]+/g,"").toLowerCase()}function bf(e,t){return Bt(e,`${(t==null?void 0:t.value)===93?"Empty":"Unclosed"} character class`)}function wf(e){return Bt(e,"Unclosed group")}const gc=String.raw,Cf=gc`(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})`,Sf=gc`\u{E0061}-\u{E007A}`,sx=()=>new RegExp(gc`[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[${Sf}]{2}[\u{E0030}-\u{E0039}${Sf}]{1,3}\u{E007F}|${Cf}(?:\u200D${Cf})*`,"gu");function ws(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,b;const c="Container expected";let u=0,f=!1;const d={node:o,parent:i,key:a,container:l,root:e,remove(){Bt(l,c).splice(Math.max(0,a+u),1),u--,f=!0},removeAllNextSiblings(){return Bt(l,c).splice(a+1)},removeAllPrevSiblings(){const y=a+u;return u-=y,Bt(l,c).splice(0,Math.max(0,y))},replaceWith(y,_={}){const C=!!_.traverse;l?l[Math.max(0,a+u)]=y:i[a]=y,C&&s(y,i,a,l),f=!0},replaceWithMultiple(y,_={}){const C=!!_.traverse;if(Bt(l,c).splice(Math.max(0,a+u),1,...y),u+=y.length-1,C){let A=0;for(let I=0;I<y.length;I++)A+=s(y[I],i,a+I+A,l)}f=!0},skip(){f=!0}},h=t["*"],p=t[o.type],g=typeof h=="function"?h:h==null?void 0:h.enter,m=typeof p=="function"?p:p==null?void 0:p.enter;if(g==null||g(d,n),m==null||m(d,n),!f)switch(o.type){case H.Regex:s(o.pattern,o,"pattern"),s(o.flags,o,"flags");break;case H.Alternative:case H.CharacterClass:r(o.elements,o);break;case H.Assertion:case H.Backreference:case H.Character:case H.CharacterSet:case H.Directive:case H.Flags:case H.Recursion:case H.Subroutine:break;case H.AbsentFunction:case H.CapturingGroup:case H.Group:case H.Pattern:r(o.alternatives,o);break;case H.CharacterClassRange:s(o.min,o,"min"),s(o.max,o,"max");break;case H.LookaroundAssertion:r(o.alternatives,o);break;case H.Quantifier:s(o.element,o,"element");break;default:throw new Error(`Unexpected node type "${o.type}"`)}return(v=h==null?void 0:h.exit)==null||v.call(h,d,n),(b=p==null?void 0:p.exit)==null||b.call(p,d,n),u}s(e)}const ox=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function ix(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function ax(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const _t=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function mc(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===_t.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?_t.CHAR_CLASS:_t.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 dg(e,t,n,r){mc(e,t,n,r)}function lx(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===_t.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function go(e,t,n){return!!lx(e,t,0,n)}function cx(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 xf=new RegExp(String.raw`(?<noncapturingStart>${ox})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function ux(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 d=0,h=0,p=!1,g;for(xf.lastIndex=Number.isNaN(u)?0:u+o.length;g=xf.exec(e);){const{0:m,index:v,groups:{capturingStart:b,noncapturingStart:y}}=g;if(m==="[")d++;else if(d)m==="]"&&d--;else if(m===s&&!p)u=v,p=!0;else if(p&&y)h++;else if(b)p?h++:(l++,i.push(l+c));else if(m===")"&&p){if(!h){c++;const _=l+c;if(e=`${e.slice(0,u)}${o}${e.slice(u+s.length,v)}))<$$${_}>)${e.slice(v+1)}`,f=!0,a.push(_),ix(n,_),r.size){const C=new Map;r.forEach((A,I)=>{C.set(I>=_?I+1:I,A.map(G=>G>=_?G+1:G))}),r=C}break}h--}}}while(f);return n.push(...a),e=mc(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:p}})=>{if(h){const g=+h;if(g>i.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${i[g]}`}return`\\${p}`},_t.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const hg=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,_a=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>${hg})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
76
|
-
| \\?.
|
|
77
|
-
`.replace(/\s+/g,""),"gsu");function fx(e){if(!new RegExp(`${hg}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(_a.lastIndex=0;i=_a.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 d=-1;if(/^\{\d+\}$/.test(c))e=ax(e,l+c.length,u,"");else{if(s===")"||s==="]"){const h=s===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,h)}(?>${e.slice(h,l)}${c})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${c})${e.slice(l+a.length)}`;d+=4}_a.lastIndex+=d}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const yt=String.raw,dx=yt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,vl=yt`\(\?R=(?<rDepth>[^\)]+)\)|${dx}`,Hi=yt`\(\?<(?![=!])(?<captureName>[^>]+)>`,pg=yt`${Hi}|(?<unnamed>\()(?!\?)`,Wn=new RegExp(yt`${Hi}|${vl}|\(\?|\\?.`,"gsu"),ba="Cannot use multiple overlapping recursions";function hx(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(vl,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&go(e,yt`\(\?\(DEFINE\)`,_t.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=go(e,yt`\\[1-9]`,_t.DEFAULT),a=new Map,l=[];let c=!1,u=0,f=0,d;for(Wn.lastIndex=0;d=Wn.exec(e);){const{0:h,groups:{captureName:p,rDepth:g,gRNameOrNum:m,gRDepth:v}}=d;if(h==="[")u++;else if(u)h==="]"&&u--;else if(g){if(kf(g),c)throw new Error(ba);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const b=e.slice(0,d.index),y=e.slice(Wn.lastIndex);if(go(y,vl,_t.DEFAULT))throw new Error(ba);const _=+g-1;e=Ef(b,y,_,!1,n,o,f),s=Tf(s,b,_,o.length,0,f);break}else if(m){kf(v);let b=!1;for(const E of l)if(E.name===m||E.num===+m){if(b=!0,E.hasRecursedWithin)throw new Error(ba);break}if(!b)throw new Error(yt`Recursive \g cannot be used outside the referenced group "${r==="external"?m:yt`\g<${m}&R=${v}>`}"`);const y=a.get(m),_=cx(e,y);if(i&&go(_,yt`${Hi}|\((?!\?)`,_t.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(y,d.index),A=_.slice(C.length+h.length),I=o.length,G=+v-1,N=Ef(C,A,G,!0,n,o,f);s=Tf(s,C,G,o.length-I,I,f);const k=e.slice(0,y),P=e.slice(y+_.length);e=`${k}${N}${P}`,Wn.lastIndex+=N.length-h.length-C.length-A.length,l.forEach(E=>E.hasRecursedWithin=!0),c=!0}else if(p)f++,a.set(String(f),Wn.lastIndex),a.set(p,Wn.lastIndex),l.push({num:f,name:p});else if(h[0]==="("){const b=h==="(";b&&(f++,a.set(String(f),Wn.lastIndex)),l.push(b?{num:f}:{})}else h===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function kf(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 Ef(e,t,n,r,s,o,i){const a=new Set;r&&dg(e+t,Hi,({groups:{captureName:c}})=>{a.add(c)},_t.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${Af(`(?:${e}`,"forward",...l)}(?:)${Af(`${t})`,"backward",...l)}${t}`}function Af(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+=mc(e,yt`${pg}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return d;const m=`_$${f}`;if(p||h){const v=i+o.length+1;return o.push(v),px(s,v),p?d:`(?<${h}${m}>`}return yt`\k<${g}${m}>`},_t.DEFAULT)}return c}function px(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Tf(e,t,n,r,s,o){if(e.size&&r){let i=0;dg(t,pg,()=>i++,_t.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((c,u)=>{const f=(r-i*n)/n,d=i*n,h=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 m=0;m<=n;m++)p.push(g+i*m);else for(let m=0;m<=n;m++)p.push(g+d+f*m);l.set(h,p)}),l}return e}var He=String.fromCodePoint,ae=String.raw,Ur={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Ur.literalHyphenIncorrectlyCreatesRange=(()=>{if(!Ur.unicodeSets)return!1;try{new RegExp(ae`[\d\-a]`,"v")}catch{return!0}return!1})();function ui(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 js(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function _l(e,t){return Rf[e]>=Rf[t]}function gx(e,t){if(!e)throw new Error("Value expected");return e}var Rf={ES2025:2025,ES2024:2024,ES2018:2018},mx={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function gg(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!mx[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=Ur.flagGroups?"ES2025":Ur.unicodeSets?"ES2024":"ES2018"),t}var yx="[ -\r ]",qt=ae`[\p{L}\p{M}\p{N}\p{Pc}]`,vx=new Set([He(304),He(305)]);function mg(e){if(vx.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=wx.get(n),o=_x.get(n),i=bx.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 yc=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=>[Bi(e),e])),_x=new Map([["s",He(383)],[He(383),"s"]]),bx=new Map([[He(223),He(7838)],[He(107),He(8490)],[He(229),He(8491)],[He(969),He(8486)]]),wx=new Map([yn(453),yn(456),yn(459),yn(498),...wa(8072,8079),...wa(8088,8095),...wa(8104,8111),yn(8124),yn(8140),yn(8188)]),Cx=new Map([["alnum",ae`[\p{Alpha}\p{Nd}]`],["alpha",ae`\p{Alpha}`],["ascii",ae`\p{ASCII}`],["blank",ae`[\p{Zs}\t]`],["cntrl",ae`\p{Cc}`],["digit",ae`\p{Nd}`],["graph",ae`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ae`\p{Lower}`],["print",ae`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ae`[\p{P}\p{S}]`],["space",ae`\p{space}`],["upper",ae`\p{Upper}`],["word",ae`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ae`\p{AHex}`]]);function Sx(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function yn(e){const t=He(e);return[t.toLowerCase(),t]}function wa(e,t){return Sx(e,t).map(n=>yn(n))}var yg=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function xx(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};vg(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:_l(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};ws(e,kx,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};ws(e,Ex,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return ws(e,Ax,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var kx={AbsentFunction({node:e,parent:t,replaceWith:n}){const{kind:r,alternatives:s}=e;if(r===ag.repeater){const o=Xt(Et(),[Wr(bs({negate:!0}),s),Cr("Any")]),i=fg(o,0,1/0);o.parent=i,n(ve(Xt(Et(),[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===_s.flags);for(let o=n+1;o<t.alternatives.length;o++){const i=t.alternatives[o];js(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=bg(t.get(e));if(r){const s=ve(Xt(Et({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:d,wordIsAscii:h}=a;if(l===_e.grapheme_boundary)throw new Error(`Unsupported grapheme boundary "\\${c?"Y":"y"}"`);if(l===_e.line_end)i(ve(Lt(ae`(?=\z|\n)`),t));else if(l===_e.line_start)i(ve(Lt(ae`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l===_e.search_start)if(d.has(e))s.flags.sticky=!0,o();else{const p=r[n-1];if(p&&Ix(p))i(ve(Xt(bs({negate:!0})),t));else{if(f)throw new Error(ae`Uses "\G" in a way that requires a subclass`);i(ve(cg(_e.string_start),t)),a.strategy="clip_search"}}else if(!(l===_e.string_end||l===_e.string_start))if(l===_e.string_end_newline)i(ve(Lt(ae`(?=\n?\z)`),t));else if(l===_e.word_boundary){if(!h&&!u){const p=`(?:(?<=${qt})(?!${qt})|(?<!${qt})(?=${qt}))`,g=`(?:(?<=${qt})(?=${qt})|(?<!${qt})(?!${qt}))`;i(ve(Lt(c?g:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Sa(n)&&(n=Ca(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Sa(r)&&(r=Ca(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===Jt.intersection&&n(ve(Wr(Ro(),[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===$e.digit||u==="digit")){n(ve(yl($e.digit,{negate:c}),t));return}if(i&&(l===$e.space||u==="space")){n(ve(xa(Lt(yx),c),t));return}if(a&&(l===$e.word||u==="word")){n(ve(yl($e.word,{negate:c}),t));return}if(l===$e.any)n(ve(Cr("Any"),t));else if(l===$e.digit)n(ve(Cr("Nd",{negate:c}),t));else if(l!==$e.dot)if(l===$e.grapheme){if(r==="strict")throw new Error(ae`Use of "\X" requires non-strict accuracy`);const f=s?ae`\p{RGI_Emoji}`:sx().source.replace(/\\u\{/g,"\\x{");n(ve(Lt(ae`(?>\r\n|${f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l===$e.hex)n(ve(Cr("AHex",{negate:c}),t));else if(l===$e.newline)n(ve(Lt(c?`[^
|
|
168
|
-
]`:`(?>\r
|
|
169
|
-
?|[
|
|
170
|
-
\v\f
\u2028\u2029])`),t));else if(l===$e.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-${He(f.codePointAt(0)-1)}${He(f.codePointAt(2)+1)}-`),n(ve(Lt(`[${f}]`),t))}else n(ve(xa(Lt(Cx.get(u)),c),t));else if(l===$e.property)yc.has(Bi(u))||(e.key="sc");else if(l===$e.space)n(ve(Cr("space",{negate:c}),t));else if(l===$e.word)n(ve(xa(Lt(qt),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===_s.flags)!l.enable&&!l.disable?r():s(ve(Xt(Et({flags:l}),i()),t),{traverse:!0});else if(a===_s.keep){const c=n.pattern.alternatives[0].elements[0],f=xg(n.pattern,d=>d.type===H.Group)&&c.alternatives.length===1?c:n.pattern;if(t.parent!==f||f.alternatives.length>1)throw new Error(ae`Uses "\K" in a way that's unsupported`);s(ve(Xt(bs({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===Sn.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===_e.search_start)o.elements.pop();else{const i=Cg(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(ae`Uses "\G" in a way that requires non-strict accuracy`)}},Quantifier({node:e}){if(e.element.type===H.Quantifier){const t=ve(Xt(Et(),[e.element]),e);e.element=t}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Sa(n)&&(n=Ca(n,t),e.ref=n)}},Ex={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=ve($f(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&js(i,e.name,[]);const u=i.get(e.name??e.number);for(let f=0;f<u.length;f++){const d=u[f];if(c===d.node||c&&c===d.origin||e===d.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=js(o,e.name,new Map);let d=!1;if(c)d=!0;else for(const h of f.values())if(!h.hasDuplicateNameToRemove){d=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:d})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ui(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===H.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?$f(0):_g(o,r.groupOriginByCopy,null);let l=a;if(!i){const c=bg($x(o,f=>f.type===H.Group&&!!f.flags)),u=c?ui(r.globalFlags,c):r.globalFlags;Tx(u,r.currentFlags)||(l=Xt(Et({flags:Px(u)}),[a]))}n(ve(l,t),{traverse:!i})}},Ax={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=>Rx(i,e));if(!o.length)n(ve(Xt(bs({negate:!0})),t));else if(o.length>1){const i=o.map(a=>Wr(cn(),[ml(a.number)]));n(ve(Wr(Et(),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=ug();e.pattern.alternatives.at(-1).elements.push(s)}}}};function vg(e){ws(e,{"*"({node:t,parent:n}){t.parent=n}})}function Wr(e,t){return t.forEach(n=>n.parent=e),e[vc(e)]=t,e}function Tx(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Rx(e,t){let n=t;do{if(n.type===H.Pattern)return!1;if(n.type===H.Alternative)continue;if(n===e)return!1;const r=wg(n.parent);for(const s of r){if(s===n)break;if(s===e||Sg(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function _g(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]=_g(i,t,s,n):(o==="type"&&i===H.CapturingGroup&&t.set(s,t.get(e)??e),s[o]=i);return s}function $f(e){return{type:H.Recursion,ref:e}}function $x(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Ca(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function vc(e){for(const t of["alternatives","elements"])if(e[t])return t;return null}function bg(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 Px({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 wg(e){if(!e)throw new Error("Node expected");if(e.type===H.Quantifier)return[e.element];const t=vc(e);return t&&e[t]}function Cg(e){const t=e.find(n=>n.kind===_e.search_start||Lx(n,{negate:!1})||!Nx(n));if(!t)return null;if(t.kind===_e.search_start)return t;if(t.type===H.LookaroundAssertion)return t.alternatives[0].elements[0];if(t.type===H.CapturingGroup||t.type===H.Group){const n=[];for(const r of t.alternatives){const s=Cg(r.elements);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function Sg(e,t){const n=wg(e)??[];for(const r of n)if(r===t||Sg(r,t))return!0;return!1}function xg({alternatives:e},t){return e.length===1&&e[0].elements.length===1&&(!t||t(e[0].elements[0]))}function Nx({type:e}){return e===H.Assertion||e===H.Directive||e===H.LookaroundAssertion}function Ix(e){const t=[H.Character,H.CharacterClass,H.CharacterSet];return t.includes(e.type)||e.type===H.Quantifier&&e.min&&t.includes(e.element.type)}function Lx(e,t){const n={negate:null,...t};return e.type===H.LookaroundAssertion&&(n.negate===null||e.negate===n.negate)&&xg(e,r=>r.kind===_e.search_start)}function Sa(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Lt(e,t){const n=lg(e,{...t,unicodePropertyMap:yc});vg(n);const r=n.pattern.alternatives;return r.length>1||r[0].elements.length>1?Wr(Et(),r):r[0].elements[0]}function Xt(e,t){const n=vc(e);return e[n][0].parent=e,t&&Wr(e[n][0],t),e}function xa(e,t){return e.negate=t,e}function ve(e,t){return e.parent=t,e}function Ox(e,t){const n=gg(t),r=_l(n.target,"ES2024"),s=_l(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!s){const h=[e.flags.ignoreCase];ws(e,Mx,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(p){h.push(p)},setHasCasedChar(){h.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!a)};let 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(h){switch(u.lastNode=c,c=h,h.type){case H.Regex:return{pattern:f(h.pattern),flags:f(h.flags),options:{...h.options}};case H.Alternative:return h.elements.map(f).join("");case H.Assertion:return jx(h);case H.Backreference:return Gx(h,u);case H.CapturingGroup:return Ux(h,u,f);case H.Character:return Wx(h,u);case H.CharacterClass:return Vx(h,u,f);case H.CharacterClassRange:return zx(h,u);case H.CharacterSet:return qx(h,u);case H.Flags:return Kx(h,u);case H.Group:return Xx(h,u,f);case H.LookaroundAssertion:return Jx(h,u,f);case H.Pattern:return h.alternatives.map(f).join("|");case H.Quantifier:return f(h.element)+ek(h);case H.Recursion:return Yx(h,u);default:throw new Error(`Unexpected node type "${h.type}"`)}}const d=f(e);return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],u.captureMap.forEach((h,p)=>{h.hidden&&d._hiddenCaptures.push(p),h.transferTo&&js(d._captureTransfers,h.transferTo,[]).push(p)}),d}var Mx={"*":{enter({node:e},t){if(Nf(e)){const n=t.getCurrentModI();t.pushModI(e.flags?ui({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Nf(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){_c(He(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),kg(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===$e.property&&yg.has(e.value)&&t.setHasCasedChar()}},Dx=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Fx=new Set(["-","\\","]","^","["]),Bx=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Pf=new Map([[9,ae`\t`],[10,ae`\n`],[11,ae`\v`],[12,ae`\f`],[13,ae`\r`],[8232,ae`\u2028`],[8233,ae`\u2029`],[65279,ae`\uFEFF`]]),Hx=new RegExp("^\\p{Cased}$","u");function _c(e){return Hx.test(e)}function jx({kind:e,negate:t}){if(e===_e.string_end)return"$";if(e===_e.string_start)return"^";if(e===_e.word_boundary)return t?ae`\B`:ae`\b`;throw new Error(`Unexpected assertion kind "${e}"`)}function Gx({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 Ux(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 Wx({value:e},t){const n=He(e),r=Sr(e,{escDigit:t.lastNode.type===H.Backreference,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&_c(n)){const s=mg(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n}function Vx(e,t,n){const{kind:r,negate:s,parent:o}=e;let{elements:i}=e;if(r===Jt.intersection&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");Ur.literalHyphenIncorrectlyCreatesRange&&t.useFlagV&&i.some(If)&&(i=i.filter(c=>!If(c)),i.push(pc(45)));const a=()=>`[${s?"^":""}${i.map(n).join(r===Jt.intersection?"&&":"")}]`;if(!t.inCharClass){if(!t.useFlagV&&!s){const u=i.filter(f=>f.type===H.CharacterClass&&f.kind===Jt.union&&f.negate);if(u.length){const f=Et(),d=f.alternatives[0];return f.parent=o,d.parent=f,i=i.filter(h=>!u.includes(h)),e.elements=i,i.length?(e.parent=d,d.elements.push(e)):f.alternatives.pop(),u.forEach(h=>{const p=cn();p.parent=f,h.parent=p,p.elements.push(h),f.alternatives.push(p)}),n(f)}}t.inCharClass=!0;const c=a();return t.inCharClass=!1,c}const l=i[0];if(r===Jt.union&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind===Jt.union&&!(Ur.literalHyphenIncorrectlyCreatesRange&&t.useFlagV)||!t.verbose&&o.kind===Jt.intersection&&i.length===1&&l.type!==H.CharacterClassRange))return i.map(n).join("");if(!t.useFlagV&&o.type===H.CharacterClass)throw new Error("Use of nested character class requires min target ES2024");return a()}function zx(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=Sr(n,s),i=Sr(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=kg(e);Qx(l).forEach(u=>{a.add(Array.isArray(u)?`${Sr(u[0],s)}-${Sr(u[1],s)}`:Sr(u,s))})}return`${o}-${i}${[...a].join("")}`}function qx({kind:e,negate:t,value:n,key:r},s){if(e===$e.dot)return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":ae`[^\n]`;if(e===$e.digit)return t?ae`\D`:ae`\d`;if(e===$e.property){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&yg.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ae`\P`:ae`\p`}{${r?`${r}=`:""}${n}}`}if(e===$e.word)return t?ae`\W`:ae`\w`;throw new Error(`Unexpected character set kind "${e}"`)}function Kx(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")}function Xx({atomic:e,flags:t,parent:n,alternatives:r},s,o){const i=s.currentFlags;t&&(s.currentFlags=ui(i,t));const a=r.map(o).join("|"),l=!s.verbose&&r.length===1&&n.type!==H.Quantifier&&!e&&(!s.useFlagMods||!t)?a:`(?${Zx(e,t,s.useFlagMods)}${a})`;return s.currentFlags=i,l}function Jx({kind:e,negate:t,alternatives:n},r,s){return`(?${`${e===Sn.lookahead?"":"<"}${t?"!":"="}`}${n.map(s).join("|")})`}function Yx({ref:e},t){const n=t.recursionLimit;return e===0?`(?R=${n})`:ae`\g<${e}&R=${n}>`}function kg(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=He(i);if(!_c(a))continue;const l=mg(a).filter(c=>{const u=c.codePointAt(0);return u<r||u>s});if(l.length&&(o.push(...l),n))break}return o}function Sr(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Pf.has(e))return Pf.get(e);if(e<32||e>126&&e<160||e>262143||t&&tk(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?Bx:Fx:Dx,o=He(e);return(s.has(o)?"\\":"")+o}function Qx(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 Zx(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 ek({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 Nf({type:e}){return e===H.Group||e===H.CapturingGroup||e===H.LookaroundAssertion}function tk(e){return e>47&&e<58}function If({type:e,value:t}){return e===H.Character&&t===45}var wn,Yt,tr,Cn,nr,Gs,bl,An,nk=(An=class extends RegExp{constructor(n,r,s){var t=(...MT)=>(super(...MT),Bn(this,Gs),Bn(this,wn,new Map),Bn(this,Yt,null),Bn(this,tr),Bn(this,Cn,null),Bn(this,nr,null),R(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),xt(this,tr,i.source),i instanceof An&&(xt(this,wn,et(i,wn)),xt(this,Cn,et(i,Cn)),xt(this,nr,et(i,nr)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...s};t(o?"":n,r),xt(this,tr,n),xt(this,wn,sk(i.hiddenCaptures,i.transfers)),xt(this,nr,i.strategy),this.rawOptions=s??{}}o||xt(this,Yt,this)}get source(){return et(this,tr)||"(?:)"}exec(n){if(!et(this,Yt)){const{lazyCompile:o,...i}=this.rawOptions;xt(this,Yt,new An(et(this,tr),this.flags,i))}const r=this.global||this.sticky,s=this.lastIndex;if(et(this,nr)==="clip_search"&&r&&s){this.lastIndex=0;const o=Wi(this,Gs,bl).call(this,n.slice(s));return o&&(rk(o,s,n,this.hasIndices),this.lastIndex+=s),o}return Wi(this,Gs,bl).call(this,n)}},wn=new WeakMap,Yt=new WeakMap,tr=new WeakMap,Cn=new WeakMap,nr=new WeakMap,Gs=new WeakSet,bl=function(n){et(this,Yt).lastIndex=this.lastIndex;const r=Ec(An.prototype,this,"exec").call(et(this,Yt),n);if(this.lastIndex=et(this,Yt).lastIndex,!r||!et(this,wn).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}=et(this,wn).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=gx(i[c]);if(r[u]=s[a],this.hasIndices&&(r.indices[u]=o[a]),r.groups){et(this,Cn)||xt(this,Cn,ok(this.source));const f=et(this,Cn).get(c);f&&(r.groups[f]=s[a],this.hasIndices&&(r.indices.groups[f]=o[a]))}}}return r},An);function rk(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 sk(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)js(n,o,{}).transferTo=r;return n}function ok(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 ik(e,t){const n=ak(e,t);return n.options?new nk(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function ak(e,t){const n=gg(t),r=lg(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:yc}),s=xx(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=Ox(s,n),i=hx(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=fx(i.pattern),l=ux(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),d=s._strategy,h=c.pattern.length>=n.lazyCompileLength;(u.length||f.length||d||h)&&(c.options={...u.length&&{hiddenCaptures:u},...f.length&&{transfers:f},...d&&{strategy:d},...h&&{lazyCompile:h}})}return c}const Lf=4294967295;class lk{constructor(t,n={}){R(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:Lf,end:Lf,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 ck(e,t){return ik(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function uk(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=n=>ck(n,{target:t.target})),{createScanner(n){return new lk(n,t)},createString(n){return{content:n}}}}let fk;const ns=[];function dk(e){if(ns.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&ns.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&ns.forEach(n=>n(t))},get(){return fk.value},configurable:!0}),()=>{ns.splice(ns.indexOf(e),1)}}function Eg(e){return $l()?(om(e),!0):!1}const Ag=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const hk=e=>typeof e<"u",pk=e=>e!=null,gk=Object.prototype.toString,mk=e=>gk.call(e)==="[object Object]",qn=()=>{},yk=vk();function vk(){var e,t;return Ag&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function _k(...e){if(e.length!==1)return md(...e);const t=e[0];return typeof t=="function"?wi(Rm(()=>({get:t,set:qn}))):he(t)}function bk(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 Tg=e=>e();function wk(e=Tg,t={}){const{initialState:n="active"}=t,r=_k(n==="active");function s(){r.value=!1}function o(){r.value=!0}const i=(...a)=>{r.value&&e(...a)};return{isActive:wi(r),pause:s,resume:o,eventFilter:i}}function $o(e){return Array.isArray(e)?e:[e]}function Ck(e){return qr()}function Sk(e,t,n={}){const{eventFilter:r=Tg,...s}=n;return on(e,bk(r,t),s)}function xk(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:c}=wk(r,{initialState:s});return{stop:Sk(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:c}}function kk(e,t=!0,n){Ck()?xi(e,n):t?e():On(e)}function Ek(e,t,n){return on(e,t,{...n,immediate:!0})}function Ak(e={}){let t=0;const n=he([]);function r(...i){const a=Qn({key:t++,args:i,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(a),a.promise=new Promise((l,c)=>{a.resolve=u=>(a.isResolving=!0,l(u)),a.reject=c}).finally(()=>{a.promise=void 0;const l=n.value.indexOf(a);l!==-1&&n.value.splice(l,1)}),a.promise}function s(...i){return e.singleton&&n.value.length>0?n.value[0].promise:r(...i)}const o=Le((i,{slots:a})=>{const l=()=>n.value.map(c=>{var u;return $n(be,{key:c.key},(u=a.default)==null?void 0:u.call(a,c))});return e.transition?()=>$n(Cv,e.transition,l):l});return o.start=s,o}const fi=Ag?window:void 0;function Er(e){var t;const n=dt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Xn(...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=Ne(()=>{const a=$o(dt(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=Ek(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(c=>Er(c)))!=null?l:[fi].filter(c=>c!=null),$o(dt(s.value?e[1]:e[0])),$o(ue(s.value?e[2]:e[1])),dt(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=mk(u)?{...u}:u;t.push(...a.flatMap(d=>l.flatMap(h=>c.map(p=>r(d,h,p,f)))))},{flush:"post"}),i=()=>{o(),n()};return Eg(n),i}let Of=!1;function Tk(e,t,n={}){const{window:r=fi,ignore:s=[],capture:o=!0,detectIframe:i=!1,controls:a=!1}=n;if(!r)return a?{stop:qn,cancel:qn,trigger:qn}:qn;if(yk&&!Of){Of=!0;const m={passive:!0};Array.from(r.document.body.children).forEach(v=>Xn(v,"click",qn,m)),Xn(r.document.documentElement,"click",qn,m)}let l=!0;const c=m=>dt(s).some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(b=>b===m.target||m.composedPath().includes(b));{const b=Er(v);return b&&(m.target===b||m.composedPath().includes(b))}});function u(m){const v=dt(m);return v&&v.$.subTree.shapeFlag===16}function f(m,v){const b=dt(m),y=b.$.subTree&&b.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(_=>_.el===v.target||v.composedPath().includes(_.el))}const d=m=>{const v=Er(e);if(m.target!=null&&!(!(v instanceof Element)&&u(e)&&f(e,m))&&!(!v||v===m.target||m.composedPath().includes(v))){if("detail"in m&&m.detail===0&&(l=!c(m)),!l){l=!0;return}t(m)}};let h=!1;const p=[Xn(r,"click",m=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(m))},{passive:!0,capture:o}),Xn(r,"pointerdown",m=>{const v=Er(e);l=!c(m)&&!!(v&&!m.composedPath().includes(v))},{passive:!0}),i&&Xn(r,"blur",m=>{setTimeout(()=>{var v;const b=Er(e);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&t(m)},0)},{passive:!0})].filter(Boolean),g=()=>p.forEach(m=>m());return a?{stop:g,cancel:()=>{l=!1},trigger:m=>{l=!0,d(m),l=!1}}:g}function Rk(e){return JSON.parse(JSON.stringify(e))}const mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yo="__vueuse_ssr_handlers__",$k=Pk();function Pk(){return yo in mo||(mo[yo]=mo[yo]||{}),mo[yo]}function Nk(e,t){return $k[e]||t}function Ik(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 Lk={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()}},Mf="vueuse-storage";function Ok(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=fi,eventFilter:d,onError:h=P=>{console.error(P)},initOnMounted:p}=r,g=(u?As:he)(t),m=Ne(()=>dt(e));if(!n)try{n=Nk("getDefaultStorage",()=>{var P;return(P=fi)==null?void 0:P.localStorage})()}catch(P){h(P)}if(!n)return g;const v=dt(t),b=Ik(v),y=(s=r.serializer)!=null?s:Lk[b],{pause:_,resume:C}=xk(g,()=>I(g.value),{flush:o,deep:i,eventFilter:d});on(m,()=>N(),{flush:o}),f&&a&&kk(()=>{n instanceof Storage?Xn(f,"storage",N,{passive:!0}):Xn(f,Mf,k),p&&N()}),p||N();function A(P,E){if(f){const x={key:m.value,oldValue:P,newValue:E,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",x):new CustomEvent(Mf,{detail:x}))}}function I(P){try{const E=n.getItem(m.value);if(P==null)A(E,null),n.removeItem(m.value);else{const x=y.write(P);E!==x&&(n.setItem(m.value,x),A(E,x))}}catch(E){h(E)}}function G(P){const E=P?P.newValue:n.getItem(m.value);if(E==null)return l&&v!=null&&n.setItem(m.value,y.write(v)),v;if(!P&&c){const x=y.read(E);return typeof c=="function"?c(x,v):b==="object"&&!Array.isArray(x)?{...v,...x}:x}else return typeof E!="string"?E:y.read(E)}function N(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){g.value=v;return}if(!(P&&P.key!==m.value)){_();try{(P==null?void 0:P.newValue)!==y.write(g.value)&&(g.value=G(P))}catch(E){h(E)}finally{P?On(C):C()}}}}function k(P){N(P.detail)}return g}function Rg(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:f,shouldEmit:d}=r,h=qr(),p=n||(h==null?void 0:h.emit)||((s=h==null?void 0:h.$emit)==null?void 0:s.bind(h))||((i=(o=h==null?void 0:h.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(h==null?void 0:h.proxy));let g=c;t||(t="modelValue"),g=g||`update:${t.toString()}`;const m=y=>a?typeof a=="function"?a(y):Rk(y):y,v=()=>hk(e[t])?m(e[t]):f,b=y=>{d?d(y)&&p(g,y):p(g,y)};if(l){const y=v(),_=he(y);let C=!1;return on(()=>e[t],A=>{C||(C=!0,_.value=m(A),On(()=>C=!1))}),on(_,A=>{!C&&(A!==e[t]||u)&&b(A)},{deep:u}),_}else return Ne({get(){return v()},set(y){b(y)}})}const Cs=he([]),vo=Ok("nuxt-link-checker:show-live-inspections",!0),Ss=he([]),is=he(0),Jn=he(""),Po=he(null);async function $g(){wl.value&&(Po.value=await wl.value("/__link-checker__/debug.json"))}const Mk="nuxt-link-checker-rpc",wl=he(),Pg=he(),Vr=he(),bc=he();dk(async e=>{var r,s;wl.value=e.host.app.$fetch;const n=(r=e.host.nuxt.vueApp._instance)==null?void 0:r.appContext.provides.linkChecker;Cs.value=n.linkDb.value,Ss.value=[...n.visibleLinks],bc.value=e.devtools.rpc,Pg.value=e.devtools,Jn.value=u_(((s=e.host.getIframe())==null?void 0:s.src)||"").link,Vr.value=e.devtools.extendClientRpc(Mk,{queueWorking(o){is.value=o.queueLength,Cs.value=ue(n.linkDb),Ss.value=[...n.visibleLinks]},updated(){Cs.value=ue(n.linkDb),Ss.value=[...n.visibleLinks]},filter(o){Jn.value=o.link}}),Vr.value.connected(),$g()});const Cl=he();async function Dk(){return Cl.value=await kS({themes:[Kn(()=>import("./CVO1_9PV.js"),[],import.meta.url),Kn(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[Kn(()=>import("./B9GrqE__.js"),__vite__mapDeps([0,1,2]),import.meta.url),Kn(()=>import("./DFxyEsuO.js"),[],import.meta.url),Kn(()=>import("./BLmTiKMJ.js"),[],import.meta.url)],engine:uk()}),Cl.value}function Ng(e,t){return Ne(()=>{var r;const n=((r=Pg.value)==null?void 0:r.colorMode)||"light";return Cl.value.codeToHtml(dt(e)||"",{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Fk=["innerHTML"],Ig=Le({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},setup(e){const t=e,n=Ne(()=>{const r=Ng(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(V(),ee("pre",{class:Me(["n-code-block w-full",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Fk))}}),Bk=Le({__name:"CodeHighlight",props:{code:{},lang:{},link:{}},setup(e){const t=e;function n(s){return s.replace(t.link,`<span class="highlight">${t.link}</span>`)}const r=he();return(s,o)=>{const i=Ig;return V(),we(i,dr({ref_key:"elRef",ref:r,code:s.code,lang:s.lang,"transform-rendered":n},s.$attrs),null,16,["code","lang"])}}}),Hk={},jk={class:"n-card n-card-base"};function Gk(e,t){return V(),ee("div",jk,[Fe(e.$slots,"default")])}const wc=Xs(Hk,[["render",Gk]]),Lg=Ak(),Uk={key:0,"text-sm":"",class:"lg:flex w-full gap-5"},Wk={class:"flex-shrink"},Vk={style:{"min-width":"600px"}},zk={class:"flex space-x-2"},qk={class:"opacity-90 truncate",style:{"max-width":"150px"}},Kk={class:""},Xk={class:"flex gap-2 w-full"},Jk={style:{"min-width":"150px","margin-top":"1px"}},Yk={key:0,class:"text-red-800 text-xs flex items-center font-medium dark:text-red-300"},Qk={key:1,class:"text-yellow-800 flex items-center text-xs font-medium dark:text-yellow-300"},Zk={class:"text-gray-500"},eE={class:"flex-grow"},tE={key:0},nE={op60:""},rE={key:0},sE={key:0,class:"flex gap-2 items-center w-full"},oE={key:1,class:"flex flex-col w-full"},iE={key:0},aE={flex:"",mb1:"","items-center":""},lE=Le({__name:"LinkInspection",props:{item:{}},setup(e){const t=e;function n(o){var i;(i=bc.value)==null||i.openInEditor(o)}async function r(){await Lg.start(t.item)&&await Vr.value.applyLinkFixes(t.item.diff,t.item.link,t.item.fix)}async function s(){await Vr.value.scrollToLink(t.item.link)}return(o,i)=>{var h;const a=Ks,l=vp,c=an("VTooltip"),u=rc,f=Bk,d=wc;return o.item?(V(),ee("div",Uk,[D("div",Wk,[J(l,{class:"px-2 py-1",onClick:s},{default:ie(()=>[J(a,{icon:"carbon:cursor-2",class:"text-gray-500"})]),_:1})]),D("div",Vk,[D("div",zk,[J(c,null,{popper:ie(()=>[pe(Pe(o.item.textContent),1)]),default:ie(()=>[D("div",qk,Pe(o.item.textContent),1)]),_:1}),J(u,{external:"",target:"_blank",to:o.item.link,"font-mono":"",mb3:"",class:"truncate"},{default:ie(()=>[pe(Pe(o.item.link),1)]),_:1},8,["to"])]),D("div",Kk,[(V(!0),ee(be,null,en([...o.item.error,...o.item.warning],(p,g)=>(V(),ee("div",{key:g,flex:"~ row gap-2 items-center",mb2:""},[D("div",Xk,[D("div",Jk,[p.scope==="error"?(V(),ee("div",Yk,i[0]||(i[0]=[D("span",{"i-carbon-error":"","mr-1":"","text-xs":""},null,-1),pe(" Error ")]))):(V(),ee("div",Qk,i[1]||(i[1]=[D("span",{"i-carbon-warning":"","mr-1":"","text-xs":""},null,-1),pe(" Warning ")]))),D("span",Zk,Pe(p.name),1)]),D("div",eE,[D("div",null,Pe(p.message),1),p.tip?(V(),ee("div",tE,[D("span",nE,Pe(p.tip),1)])):Ie("",!0),p.fix?(V(),ee("button",{key:1,class:"hover:shadow-lg transition mt-2 items-center gap-2 inline-flex border-green-500/50 border-1 rounded-lg shadow-sm px-3 py-1",onClick:r},[J(a,{icon:"carbon:magic-wand"}),p.fixDescription?(V(),ee("div",rE,Pe(p.fixDescription),1)):Ie("",!0)])):Ie("",!0)])])]))),128))])]),o.item.passes?(V(),ee("div",sE,i[2]||(i[2]=[D("div",{style:{"flex-basis":"4rem"}},[D("span",{class:"text-green-800 text-xs flex items-center font-medium dark:text-green-300"},[D("span",{"i-carbon-checkmark-outline":"","mr-1":"","text-xs":""}),pe(" Pass ")])],-1)]))):(V(),ee("div",oE,[(h=o.item.sources)!=null&&h.length?Ie("",!0):(V(),ee("div",iE,i[3]||(i[3]=[D("div",{class:"text-gray-500"}," No source code found. ",-1)]))),(V(!0),ee(be,null,en(o.item.sources,(p,g)=>(V(),ee("div",{key:g,mb4:""},[D("div",aE,[J(u,{external:"",type:"button",op50:"","text-xs":"","font-mono":"",link:p.filepath,class:"cursor-pointer",onClick:Pv(m=>n(p.filepath),["prevent"])},{default:ie(()=>[pe(Pe(p.filepath),1)]),_:2},1032,["link","onClick"])]),(V(!0),ee(be,null,en(p.previews,(m,v)=>(V(),we(d,{key:v,"items-center":"","justify-between":"","of-hidden":""},{default:ie(()=>[J(f,{link:o.item.link,code:m.code,lang:"vue-html",class:"overflow-auto",style:sn({"--start":Math.max(m.lineNumber-2,1)})},null,8,["link","code","style"])]),_:2},1024))),128))]))),128))]))])):Ie("",!0)}}}),cE={"text-sm":"",class:"flex w-full gap-5"},uE={style:{"min-width":"600px"}},fE=Le({__name:"LinkPassing",props:{item:{}},setup(e){return(t,n)=>{const r=rc;return V(),ee("div",cE,[D("div",uE,[J(r,{external:"",target:"_blank",to:t.item.link,"font-mono":"",mb3:""},{default:ie(()=>[pe(Pe(t.item.link),1)]),_:1},8,["to"])]),n[0]||(n[0]=D("div",{class:"flex gap-2 items-center w-full"},[D("div",{style:{"flex-basis":"4rem"}},[D("span",{class:"text-green-800 text-xs flex items-center font-medium dark:text-green-300"},[D("span",{"i-carbon-checkmark-outline":"","mr-1":"","text-xs":""}),pe(" Pass ")])])],-1))])}}}),dE={flex:"~ gap-3","items-center":""},hE=Le({__name:"NIconTitle",props:{icon:{},text:{}},setup(e){return(t,n)=>(V(),ee("div",dE,[t.icon?(V(),ee("div",{key:0,class:Me(t.icon)},null,2)):Ie("",!0),Fe(t.$slots,"default",{},()=>[D("div",null,Pe(t.text),1)])]))}}),pE=["open"],gE={"text-base":""},mE={key:0,"text-sm":"",op50:""},yE=Le({__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=Rg(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=Ks,a=hE;return V(),ee(be,null,[D("details",{open:ue(n),onToggle:r},[D("summary",{class:Me(["cursor-pointer select-none n-bg-active hover:bg-active p4 rounded transition-all",s.collapse?"":"pointer-events-none"])},[J(a,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:Me([ue(n)?"op100":"op60",s.headerClass])},{default:ie(()=>[D("div",null,[D("div",gE,[Fe(s.$slots,"text",{},()=>[pe(Pe(s.text),1)],!0)]),s.description||s.$slots.description?(V(),ee("div",mE,[Fe(s.$slots,"description",{},()=>[pe(Pe(s.description),1)],!0)])):Ie("",!0)]),o[0]||(o[0]=D("div",{class:"flex-auto"},null,-1)),Fe(s.$slots,"actions",{},void 0,!0),s.collapse?(V(),we(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):Ie("",!0)]),_:3},8,["icon","text","class"])],2),D("div",{class:Me(["flex flex-col flex-gap2 pb6 pt2",typeof s.padding=="string"?s.padding:s.padding?"px4":""])},[Fe(s.$slots,"details",{},void 0,!0),D("div",{class:Me([s.containerClass,"mt1"])},[Fe(s.$slots,"default",{},void 0,!0)],2),Fe(s.$slots,"footer",{},void 0,!0)],2)],40,pE),o[1]||(o[1]=D("div",{class:"x-divider"},null,-1))],64)}}}),vE=Xs(yE,[["__scopeId","data-v-348c1d92"]]),_E=Le({__name:"CodeDiff",props:{code:{},lang:{},diff:{}},setup(e){const t=e,n=he(t.diff.added[0]-2);function r(o){let i=0;const a=new Set;return o.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,c=>{i++;const u=t.diff.added.includes(i-1),f=t.diff.removed.includes(i-1);if(u||f)for(let d=i-3;d<i+3;d++)d>=0&&a.add(d);return u?'class="line line-added"':f?'class="line line-removed"':c}).replace(/<code>([\s\S]*)<\/code>/,(c,u)=>`<code>${u.split(`
|
|
171
|
-
`).filter((h,p)=>a.has(p+1)).join(`
|
|
172
|
-
`)}</code>`)}const s=he();return(o,i)=>{const a=Ig;return V(),we(a,{ref_key:"elRef",ref:s,code:o.diff.result,lang:o.lang,"transform-rendered":r,style:sn(`--start: ${n.value};`)},null,8,["code","lang","style"])}}}),bE={class:"n-tip n-tip-base"},wE=Le({__name:"NTip",props:{icon:{}},setup(e){return(t,n)=>{const r=Ks;return V(),ee("div",bE,[Fe(t.$slots,"icon",{},()=>[t.icon?(V(),we(r,{key:0,icon:t.icon,class:"n-tip-icon"},null,8,["icon"])):Ie("",!0)]),D("div",null,[Fe(t.$slots,"default")])])}}});/*!
|
|
173
|
-
* tabbable 6.2.0
|
|
174
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
175
|
-
*/var Og=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],di=Og.join(","),Mg=typeof Element>"u",fr=Mg?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,hi=!Mg&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},pi=function e(t,n){var r;n===void 0&&(n=!0);var s=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=s===""||s==="true",i=o||n&&t&&e(t.parentNode);return i},CE=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Dg=function(t,n,r){if(pi(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(di));return n&&fr.call(t,di)&&s.unshift(t),s=s.filter(r),s},Fg=function e(t,n,r){for(var s=[],o=Array.from(t);o.length;){var i=o.shift();if(!pi(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),l=a.length?a:i.children,c=e(l,!0,r);r.flatten?s.push.apply(s,c):s.push({scopeParent:i,candidates:c})}else{var u=fr.call(i,di);u&&r.filter(i)&&(n||!t.includes(i))&&s.push(i);var f=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),d=!pi(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(f&&d){var h=e(f===!0?i.children:f.children,!0,r);r.flatten?s.push.apply(s,h):s.push({scopeParent:i,candidates:h})}else o.unshift.apply(o,i.children)}}return s},Bg=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Yn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||CE(t))&&!Bg(t)?0:t.tabIndex},SE=function(t,n){var r=Yn(t);return r<0&&n&&!Bg(t)?0:r},xE=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Hg=function(t){return t.tagName==="INPUT"},kE=function(t){return Hg(t)&&t.type==="hidden"},EE=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},AE=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},TE=function(t){if(!t.name)return!0;var n=t.form||hi(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(t.name));else try{s=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=AE(s,t.form);return!o||o===t},RE=function(t){return Hg(t)&&t.type==="radio"},$E=function(t){return RE(t)&&!TE(t)},PE=function(t){var n,r=t&&hi(t),s=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var i,a,l;for(o=!!((i=s)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(s)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&s;){var c,u,f;r=hi(s),s=(c=r)===null||c===void 0?void 0:c.host,o=!!((u=s)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(s))}}return o},Df=function(t){var n=t.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},NE=function(t,n){var r=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=fr.call(t,"details>summary:first-of-type"),i=o?t.parentElement:t;if(fr.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof s=="function"){for(var a=t;t;){var l=t.parentElement,c=hi(t);if(l&&!l.shadowRoot&&s(l)===!0)return Df(t);t.assignedSlot?t=t.assignedSlot:!l&&c!==t.ownerDocument?t=c.host:t=l}t=a}if(PE(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Df(t);return!1},IE=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return fr.call(n,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}n=n.parentElement}return!1},gi=function(t,n){return!(n.disabled||pi(n)||kE(n)||NE(n,t)||EE(n)||IE(n))},Sl=function(t,n){return!($E(n)||Yn(n)<0||!gi(t,n))},LE=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},OE=function e(t){var n=[],r=[];return t.forEach(function(s,o){var i=!!s.scopeParent,a=i?s.scopeParent:s,l=SE(a,i),c=i?e(s.candidates):a;l===0?i?n.push.apply(n,c):n.push(a):r.push({documentOrder:o,tabIndex:l,item:s,isScope:i,content:c})}),r.sort(xE).reduce(function(s,o){return o.isScope?s.push.apply(s,o.content):s.push(o.content),s},[]).concat(n)},ME=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Fg([t],n.includeContainer,{filter:Sl.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:LE}):r=Dg(t,n.includeContainer,Sl.bind(null,n)),OE(r)},DE=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Fg([t],n.includeContainer,{filter:gi.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Dg(t,n.includeContainer,gi.bind(null,n)),r},_r=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return fr.call(t,di)===!1?!1:Sl(n,t)},FE=Og.concat("iframe").join(","),ka=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return fr.call(t,FE)===!1?!1:gi(n,t)};/*!
|
|
176
|
-
* focus-trap 7.6.4
|
|
177
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
178
|
-
*/function xl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BE(e){if(Array.isArray(e))return xl(e)}function HE(e,t,n){return(t=VE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
179
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Bf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ff(Object(n),!0).forEach(function(r){HE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UE(e){return BE(e)||jE(e)||zE(e)||GE()}function WE(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VE(e){var t=WE(e,"string");return typeof t=="symbol"?t:t+""}function zE(e,t){if(e){if(typeof e=="string")return xl(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xl(e,t):void 0}}var Hf={activateTrap:function(t,n){if(t.length>0){var r=t[t.length-1];r!==n&&r._setPausedState(!0)}var s=t.indexOf(n);s===-1||t.splice(s,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&!t[t.length-1]._isManuallyPaused()&&t[t.length-1]._setPausedState(!1)}},qE=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},KE=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},xs=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},XE=function(t){return xs(t)&&!t.shiftKey},JE=function(t){return xs(t)&&t.shiftKey},jf=function(t){return setTimeout(t,0)},rs=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return typeof t=="function"?t.apply(void 0,r):t},_o=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},YE=[],QE=function(t,n){var r=(n==null?void 0:n.document)||document,s=(n==null?void 0:n.trapStack)||YE,o=Bf({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:XE,isKeyBackward:JE},n),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,l=function(x,T,U){return x&&x[T]!==void 0?x[T]:o[U||T]},c=function(x,T){var U=typeof(T==null?void 0:T.composedPath)=="function"?T.composedPath():void 0;return i.containerGroups.findIndex(function(L){var q=L.container,W=L.tabbableNodes;return q.contains(x)||(U==null?void 0:U.includes(q))||W.find(function(Q){return Q===x})})},u=function(x){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=T.hasFallback,L=U===void 0?!1:U,q=T.params,W=q===void 0?[]:q,Q=o[x];if(typeof Q=="function"&&(Q=Q.apply(void 0,UE(W))),Q===!0&&(Q=void 0),!Q){if(Q===void 0||Q===!1)return Q;throw new Error("`".concat(x,"` was specified but was not a node, or did not return a node"))}var xe=Q;if(typeof Q=="string"){try{xe=r.querySelector(Q)}catch(ke){throw new Error("`".concat(x,'` appears to be an invalid selector; error="').concat(ke.message,'"'))}if(!xe&&!L)throw new Error("`".concat(x,"` as selector refers to no known node"))}return xe},f=function(){var x=u("initialFocus",{hasFallback:!0});if(x===!1)return!1;if(x===void 0||x&&!ka(x,o.tabbableOptions))if(c(r.activeElement)>=0)x=r.activeElement;else{var T=i.tabbableGroups[0],U=T&&T.firstTabbableNode;x=U||u("fallbackFocus")}else x===null&&(x=u("fallbackFocus"));if(!x)throw new Error("Your focus-trap needs to have at least one focusable element");return x},d=function(){if(i.containerGroups=i.containers.map(function(x){var T=ME(x,o.tabbableOptions),U=DE(x,o.tabbableOptions),L=T.length>0?T[0]:void 0,q=T.length>0?T[T.length-1]:void 0,W=U.find(function(ke){return _r(ke)}),Q=U.slice().reverse().find(function(ke){return _r(ke)}),xe=!!T.find(function(ke){return Yn(ke)>0});return{container:x,tabbableNodes:T,focusableNodes:U,posTabIndexesFound:xe,firstTabbableNode:L,lastTabbableNode:q,firstDomTabbableNode:W,lastDomTabbableNode:Q,nextTabbableNode:function(ze){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Nt=T.indexOf(ze);return Nt<0?un?U.slice(U.indexOf(ze)+1).find(function(Dn){return _r(Dn)}):U.slice(0,U.indexOf(ze)).reverse().find(function(Dn){return _r(Dn)}):T[Nt+(un?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(x){return x.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(x){return x.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(x){var T=x.activeElement;if(T)return T.shadowRoot&&T.shadowRoot.activeElement!==null?h(T.shadowRoot):T},p=function(x){if(x!==!1&&x!==h(document)){if(!x||!x.focus){p(f());return}x.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=x,qE(x)&&x.select()}},g=function(x){var T=u("setReturnFocus",{params:[x]});return T||(T===!1?!1:x)},m=function(x){var T=x.target,U=x.event,L=x.isBackward,q=L===void 0?!1:L;T=T||_o(U),d();var W=null;if(i.tabbableGroups.length>0){var Q=c(T,U),xe=Q>=0?i.containerGroups[Q]:void 0;if(Q<0)q?W=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:W=i.tabbableGroups[0].firstTabbableNode;else if(q){var ke=i.tabbableGroups.findIndex(function(dn){var Fn=dn.firstTabbableNode;return T===Fn});if(ke<0&&(xe.container===T||ka(T,o.tabbableOptions)&&!_r(T,o.tabbableOptions)&&!xe.nextTabbableNode(T,!1))&&(ke=Q),ke>=0){var ze=ke===0?i.tabbableGroups.length-1:ke-1,un=i.tabbableGroups[ze];W=Yn(T)>=0?un.lastTabbableNode:un.lastDomTabbableNode}else xs(U)||(W=xe.nextTabbableNode(T,!1))}else{var Nt=i.tabbableGroups.findIndex(function(dn){var Fn=dn.lastTabbableNode;return T===Fn});if(Nt<0&&(xe.container===T||ka(T,o.tabbableOptions)&&!_r(T,o.tabbableOptions)&&!xe.nextTabbableNode(T))&&(Nt=Q),Nt>=0){var Dn=Nt===i.tabbableGroups.length-1?0:Nt+1,fn=i.tabbableGroups[Dn];W=Yn(T)>=0?fn.firstTabbableNode:fn.firstDomTabbableNode}else xs(U)||(W=xe.nextTabbableNode(T))}}else W=u("fallbackFocus");return W},v=function(x){var T=_o(x);if(!(c(T,x)>=0)){if(rs(o.clickOutsideDeactivates,x)){a.deactivate({returnFocus:o.returnFocusOnDeactivate});return}rs(o.allowOutsideClick,x)||x.preventDefault()}},b=function(x){var T=_o(x),U=c(T,x)>=0;if(U||T instanceof Document)U&&(i.mostRecentlyFocusedNode=T);else{x.stopImmediatePropagation();var L,q=!0;if(i.mostRecentlyFocusedNode)if(Yn(i.mostRecentlyFocusedNode)>0){var W=c(i.mostRecentlyFocusedNode),Q=i.containerGroups[W].tabbableNodes;if(Q.length>0){var xe=Q.findIndex(function(ke){return ke===i.mostRecentlyFocusedNode});xe>=0&&(o.isKeyForward(i.recentNavEvent)?xe+1<Q.length&&(L=Q[xe+1],q=!1):xe-1>=0&&(L=Q[xe-1],q=!1))}}else i.containerGroups.some(function(ke){return ke.tabbableNodes.some(function(ze){return Yn(ze)>0})})||(q=!1);else q=!1;q&&(L=m({target:i.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(i.recentNavEvent)})),p(L||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},y=function(x){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=x;var U=m({event:x,isBackward:T});U&&(xs(x)&&x.preventDefault(),p(U))},_=function(x){(o.isKeyForward(x)||o.isKeyBackward(x))&&y(x,o.isKeyBackward(x))},C=function(x){KE(x)&&rs(o.escapeDeactivates,x)!==!1&&(x.preventDefault(),a.deactivate())},A=function(x){var T=_o(x);c(T,x)>=0||rs(o.clickOutsideDeactivates,x)||rs(o.allowOutsideClick,x)||(x.preventDefault(),x.stopImmediatePropagation())},I=function(){if(i.active)return Hf.activateTrap(s,a),i.delayInitialFocusTimer=o.delayInitialFocus?jf(function(){p(f())}):p(f()),r.addEventListener("focusin",b,!0),r.addEventListener("mousedown",v,{capture:!0,passive:!1}),r.addEventListener("touchstart",v,{capture:!0,passive:!1}),r.addEventListener("click",A,{capture:!0,passive:!1}),r.addEventListener("keydown",_,{capture:!0,passive:!1}),r.addEventListener("keydown",C),a},G=function(){if(i.active)return r.removeEventListener("focusin",b,!0),r.removeEventListener("mousedown",v,!0),r.removeEventListener("touchstart",v,!0),r.removeEventListener("click",A,!0),r.removeEventListener("keydown",_,!0),r.removeEventListener("keydown",C),a},N=function(x){var T=x.some(function(U){var L=Array.from(U.removedNodes);return L.some(function(q){return q===i.mostRecentlyFocusedNode})});T&&p(f())},k=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(N):void 0,P=function(){k&&(k.disconnect(),i.active&&!i.paused&&i.containers.map(function(x){k.observe(x,{subtree:!0,childList:!0})}))};return a={get active(){return i.active},get paused(){return i.paused},activate:function(x){if(i.active)return this;var T=l(x,"onActivate"),U=l(x,"onPostActivate"),L=l(x,"checkCanFocusTrap");L||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,T==null||T();var q=function(){L&&d(),I(),P(),U==null||U()};return L?(L(i.containers.concat()).then(q,q),this):(q(),this)},deactivate:function(x){if(!i.active)return this;var T=Bf({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},x);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,G(),i.active=!1,i.paused=!1,P(),Hf.deactivateTrap(s,a);var U=l(T,"onDeactivate"),L=l(T,"onPostDeactivate"),q=l(T,"checkCanReturnFocus"),W=l(T,"returnFocus","returnFocusOnDeactivate");U==null||U();var Q=function(){jf(function(){W&&p(g(i.nodeFocusedBeforeActivation)),L==null||L()})};return W&&q?(q(g(i.nodeFocusedBeforeActivation)).then(Q,Q),this):(Q(),this)},pause:function(x){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,x)):this},unpause:function(x){return i.active?(i.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,x)):this},updateContainerElements:function(x){var T=[].concat(x).filter(Boolean);return i.containers=T.map(function(U){return typeof U=="string"?r.querySelector(U):U}),i.active&&d(),P(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(x,T){if(i.paused===x)return this;if(i.paused=x,x){var U=l(T,"onPause"),L=l(T,"onPostPause");U==null||U(),G(),P(),L==null||L()}else{var q=l(T,"onUnpause"),W=l(T,"onPostUnpause");q==null||q(),d(),I(),P(),W==null||W()}return this}}}),a.updateContainerElements(t),a};function ZE(e,t={}){let n;const{immediate:r,...s}=t,o=As(!1),i=As(!1),a=d=>n&&n.activate(d),l=d=>n&&n.deactivate(d),c=()=>{n&&(n.pause(),i.value=!0)},u=()=>{n&&(n.unpause(),i.value=!1)},f=Ne(()=>{const d=dt(e);return $o(d).map(h=>{const p=dt(h);return typeof p=="string"?p:Er(p)}).filter(pk)});return on(f,d=>{d.length&&(n=QE(d,{...s,onActivate(){o.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){o.value=!1,t.onDeactivate&&t.onDeactivate()}}),r&&a())},{flush:"post"}),Eg(()=>l()),{hasFocus:o,isPaused:i,activate:a,deactivate:l,pause:c,unpause:u}}const eA={inheritAttrs:!1},tA=Le({...eA,__name:"NDialog",props:{modelValue:{type:Boolean,default:!1},dim:{type:Boolean,default:!0},autoClose:{type:Boolean,default:!0}},emits:["close","update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=Rg(n,"modelValue",r,{passive:!0}),o=he(null),i=he(!1),{activate:a,deactivate:l}=ZE(Ne(()=>o.value||document.body),{immediate:!1});return Yd(()=>{!i.value&&s.value&&(i.value=!0),s.value&&o.value?On(a):l()}),Tk(o,()=>{n.modelValue&&n.autoClose&&(s.value=!1,r("close"))},{ignore:["a","button","summary"]}),(c,u)=>{const f=wc;return i.value?(V(),we(Wm,{key:0,to:"body"},[bd(D("div",{class:Me(["fixed inset-0 z-100 flex items-center justify-center n-transition n-glass-effect",[ue(s)?"":"op0 pointer-events-none visibility-none"]]),role:"dialog","aria-modal":"true"},[D("div",{class:Me(["absolute inset-0 -z-1",[c.dim?"glass-effect":""]])},null,2),J(f,dr(c.$attrs,{ref_key:"card",ref:o,class:"max-h-screen of-auto"}),{default:ie(()=>[Fe(c.$slots,"default")]),_:3},16)],2),[[iv,ue(s)]])])):Ie("",!0)}}}),nA={"my-10":""},rA={flex:"~ col gap-2","w-200":"",p4:"",border:"t base"},sA={flex:"","items-center":"","gap-2":"",mb1:""},oA={"text-sm":"","gap-2":"",flex:"","flex-row":"",mb1:"","justify-end":""},iA={class:"text-green-500"},aA={class:"text-red-500"},lA=["onClick"],cA={flex:"~ col gap-1 items-start",px4:"",py2:""},uA={flex:"~ gap-3",mt2:"","justify-end":""},fA=Le({__name:"FixActionDialog",setup(e){function t(r){var s;(s=bc.value)==null||s.openInEditor(r)}function n(r,s){s(!1)}return(r,s)=>{const o=_E,i=wc,a=wE,l=vp,c=tA;return V(),we(ue(Lg),null,{default:ie(({resolve:u,args:f})=>[D("div",nA,[J(c,{"model-value":!0,style:{"max-height":"80vh"},"onUpdate:modelValue":d=>n("a",u),onClose:d=>n("b",u)},{default:ie(()=>[D("div",rA,[s[3]||(s[3]=D("h2",{"text-xl":"",class:"text-primary"}," Confirm Code Diff ",-1)),(V(!0),ee(be,null,en(f[0].diff,(d,h)=>(V(),ee("div",{key:h},[D("div",sA,[D("div",oA,[D("span",iA,"+"+Pe(d.diff.added.length),1),D("span",aA,"-"+Pe(d.diff.removed.length),1)]),D("button",{type:"button",op50:"","text-xs":"","font-mono":"",onClick:p=>t(d.filepath)},Pe(d.filepath),9,lA)]),(V(),we(i,{key:h,"items-center":"","justify-between":"","of-hidden":"","max-h-50":"",style:{overflow:"auto"}},{default:ie(()=>[D("div",cA,[J(o,dr({ref_for:!0},d,{lang:"vue-html",class:"overflow-auto"}),null,16)])]),_:2},1024))]))),128)),D("div",uA,[J(a,{n:"sm purple","flex-auto":"",icon:"carbon-chemistry"},{default:ie(()=>s[0]||(s[0]=[pe(" Experimental. ")])),_:1}),J(l,{onClick:d=>u(!1)},{default:ie(()=>s[1]||(s[1]=[pe(" Cancel ")])),_:2},1032,["onClick"]),J(l,{n:"solid",capitalize:"",class:"n-blue",onClick:d=>u(!0)},{default:ie(()=>s[2]||(s[2]=[pe(" Apply Fix ")])),_:2},1032,["onClick"])])])]),_:2},1032,["onUpdate:modelValue","onClose"])])]),_:1})}}}),dA={class:"relative n-bg-base flex flex-col"},hA={class:"sticky top-0 z-2 px-4 pt-4"},pA={class:"flex justify-between items-start",mb2:""},gA={class:"flex space-x-5"},mA={"text-xl":"",flex:"","items-center":"","gap-2":""},yA={class:"flex items-center space-x-3 text-xl"},vA={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},_A={class:"px-5 py-2"},bA={"text-lg":"",flex:"","items-center":""},wA={class:"px-5 py-2"},CA={"text-lg":"",flex:"","items-center":""},SA={class:"px-5 py-2"},xA={"text-lg":"",flex:"","items-center":""},kA={class:"px-5 py-2"},EA={"text-lg":"",flex:"","items-center":""},AA=["value","title"],TA={class:"items-center space-x-3 hidden lg:flex"},RA={class:"opacity-80 text-sm"},$A={class:"opacity-80 text-sm"},PA={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},NA={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},IA={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},LA={key:1},OA={key:0,"text-sm":"",flex:"","items-center":"","gap-1":"",mb6:""},MA={key:1,class:""},DA={flex:"","items-center":"",p3:"","gap-3":"","text-sm":""},FA={key:0,mr5:""},BA={key:1,"text-xs":"",flex:"","items-center":"","gap-1":""},HA={key:2,"text-xs":"",flex:"","items-center":"","gap-1":""},jA={key:3,class:"flex items-center gap-1"},GA={key:2},UA={key:2},WA={class:"opacity-80 text-base mb-1"},VA={class:"opacity-80 text-base mb-1"},zA={key:3},qA={class:"opacity-80 text-base mb-1"},KA={class:"px-3 py-2 space-y-5"},XA=["innerHTML"],JA={key:4,class:"h-full max-h-full overflow-hidden"},YA=Le({__name:"app",async setup(e){let t,n;[t,n]=ay(()=>Dk()),await t,n();const r=he(0),s=setInterval(()=>{r.value++,r.value>=3&&clearInterval(s)},2e3),o=Ne(()=>{const g=Ss.value;let m=[...Cs.value];return Jn.value?m=m.filter(v=>v.link===Jn.value):m=m.filter(v=>g.includes(v.link)),m.sort((v,b)=>v.fix&&!b.fix?1:-1)}),i=Ne(()=>{let g=0;return o.value.map(m=>m.error.length).forEach(m=>{g+=m}),g}),a=Ne(()=>{let g=0;return o.value.map(m=>m.warning.length).forEach(m=>{g+=m}),g}),l=Ne(()=>Ss.value.length),c=Ne(()=>o.value.filter(g=>g.passes).length);async function u(){Cs.value=[],is.value=0,await Vr.value.reset()}async function f(){vo.value=!vo.value,await Vr.value.toggleLiveInspections(vo.value)}const d=he("inspections"),h=he(!1);async function p(){h.value=!0,Po.value=null,await u(),await $g(),setTimeout(()=>{h.value=!1},300)}return(g,m)=>{const v=Ks,b=S0,y=an("VTooltip"),_=rc,C=I0,A=F0,I=lE,G=fE,N=vE;return V(),ee("div",dA,[D("header",hA,[D("div",pA,[D("div",gA,[D("h1",mA,[J(v,{icon:"carbon:cloud-satellite-link",class:"text-blue-300 hidden md:block"}),m[2]||(m[2]=pe(" Link Checker ")),J(b,{class:"hidden md:block text-sm"},{default:ie(()=>{var k,P;return[pe(Pe((P=(k=ue(Po))==null?void 0:k.runtimeConfig)==null?void 0:P.version),1)]}),_:1})])]),D("div",yA,[D("fieldset",vA,[(V(),ee(be,null,en(["inspections","links","debug","docs"],(k,P)=>D("label",{key:P,class:Me(["relative n-border-base hover:n-bg-active cursor-pointer",[P?"border-l n-border-base ml--1px":"",k===d.value?"n-bg-active":""]])},[k==="inspections"?(V(),ee("div",{key:0,class:Me([k===d.value?"":"op35"])},[J(y,null,{popper:ie(()=>m[3]||(m[3]=[pe(" Inspections ")])),default:ie(()=>[D("div",_A,[D("h2",bA,[J(v,{icon:"carbon:warning-diamond opacity-50"}),J(b,{class:"text-sm"},{default:ie(()=>[pe(Pe(i.value+a.value),1)]),_:1})])])]),_:1})],2)):Ie("",!0),k==="links"?(V(),ee("div",{key:1,class:Me([k===d.value?"":"op35"])},[J(y,null,{popper:ie(()=>m[4]||(m[4]=[pe(" Valid Links ")])),default:ie(()=>[D("div",wA,[D("h2",CA,[J(v,{icon:"carbon:checkmark-outline opacity-50"}),J(b,{class:"text-sm"},{default:ie(()=>[pe(Pe(c.value),1)]),_:1})])])]),_:1})],2)):k==="debug"?(V(),ee("div",{key:2,class:Me([k===d.value?"":"op35"])},[J(y,null,{popper:ie(()=>m[5]||(m[5]=[pe(" Debug ")])),default:ie(()=>[D("div",SA,[D("h2",xA,[J(v,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):k==="docs"?(V(),ee("div",{key:3,class:Me([k===d.value?"":"op35"])},[J(y,null,{popper:ie(()=>m[6]||(m[6]=[pe(" Documentation ")])),default:ie(()=>[D("div",kA,[D("h2",EA,[J(v,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):Ie("",!0),bd(D("input",{"onUpdate:modelValue":m[0]||(m[0]=E=>d.value=E),type:"radio",value:k,title:k,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,AA),[[Av,d.value]])],2)),64))]),J(y,null,{popper:ie(()=>m[7]||(m[7]=[pe(" Refresh ")])),default:ie(()=>[D("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:p},[J(v,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1}),D("button",{class:"mr-5 hover:shadow-lg text-sm transition items-center gap-2 inline-flex border-green-500/50 border-1 rounded-lg shadow-sm px-3 py-1",onClick:f},[J(v,{icon:`${ue(vo)?"carbon:view-off":"carbon:view"}`},null,8,["icon"]),m[8]||(m[8]=D("div",{class:"hidden md:block"}," Inspections ",-1))])]),D("div",TA,[D("div",RA,[J(_,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:ie(()=>[J(v,{icon:"carbon:favorite",class:"mr-[2px]"}),m[9]||(m[9]=pe(" Sponsor "))]),_:1})]),D("div",$A,[J(_,{href:"https://github.com/harlan-zw/nuxt-link-checker",target:"_blank"},{default:ie(()=>[J(v,{icon:"logos:github-icon",class:"mr-[2px]"}),m[10]||(m[10]=pe(" Submit an issue "))]),_:1})]),D("a",PA,[J(C)])])])]),D("div",NA,[D("main",IA,[h.value?(V(),we(A,{key:0})):d.value==="inspections"?(V(),ee("div",LA,[ue(Jn)?(V(),ee("p",OA,[ue(is)?(V(),we(v,{key:0,icon:"carbon:progress-bar-round",class:"animated animate-spin op50 text-xs"})):Ie("",!0),J(v,{icon:"carbon:filter"}),m[11]||(m[11]=pe(" Filtering Results. ")),D("button",{type:"button",underline:"",onClick:m[1]||(m[1]=k=>Jn.value=!1)}," Show All ")])):Ie("",!0),ue(Jn)?(V(),ee("div",GA,[(V(!0),ee(be,null,en(o.value,(k,P)=>(V(),we(I,{key:P,item:k},null,8,["item"]))),128))])):(V(),ee("div",MA,[D("div",DA,[ue(is)?(V(),ee("div",FA,[J(v,{icon:"carbon:progress-bar-round",class:"animated animate-spin op50 text-xs"}),pe(" "+Pe(Math.round(Math.abs(ue(is)-l.value)/l.value*100))+"% ",1)])):Ie("",!0),i.value?(V(),ee("div",BA,[J(v,{icon:"carbon:error","h-4":"","w-4":"","text-red-500":""}),D("div",null,Pe(i.value)+" Errors ",1)])):Ie("",!0),a.value?(V(),ee("div",HA,[J(v,{icon:"carbon:warning","h-4":"","w-4":"","text-yellow-500":""}),D("div",null,Pe(a.value)+" Warnings ",1)])):Ie("",!0),!a.value&&!i.value?(V(),ee("div",jA,[J(v,{icon:"carbon:checkmark-outline","h-4":"","w-4":"","text-green-500":""}),m[12]||(m[12]=D("div",null,"All links passing",-1))])):Ie("",!0)]),D("div",null,[(V(!0),ee(be,null,en([...o.value.filter(k=>k.error.length),...o.value.filter(k=>k.warning.length)],(k,P)=>(V(),we(I,{key:P,item:k,class:"odd:bg-white dark:odd:bg-[#151515] even:bg-slate-50 dark:even:bg-[#222223] p-2"},null,8,["item"]))),128))])])),J(fA)])):d.value==="links"?(V(),ee("div",UA,[J(N,null,{text:ie(()=>[D("h3",WA,[J(v,{icon:"carbon:chart-network",class:"mr-1"}),m[13]||(m[13]=pe(" Internal Links "))])]),default:ie(()=>[(V(!0),ee(be,null,en(o.value.filter(k=>k.passes&&k.link.startsWith("/")),(k,P)=>(V(),we(G,{key:P,item:k},null,8,["item"]))),128))]),_:1}),J(N,null,{text:ie(()=>[D("h3",VA,[J(v,{icon:"carbon:launch",class:"mr-1"}),m[14]||(m[14]=pe(" External Links "))])]),default:ie(()=>[(V(!0),ee(be,null,en(o.value.filter(k=>k.passes&&!k.link.startsWith("/")),(k,P)=>(V(),we(G,{key:P,item:k},null,8,["item"]))),128))]),_:1})])):d.value==="debug"?(V(),ee("div",zA,[J(N,null,{text:ie(()=>[D("h3",qA,[J(v,{icon:"carbon:settings",class:"mr-1"}),m[15]||(m[15]=pe(" Runtime Config "))])]),default:ie(()=>{var k;return[D("div",KA,[D("pre",{"of-auto":"","h-full":"","text-sm":"",style:{"white-space":"break-spaces"},innerHTML:ue(Ng)(JSON.stringify(((k=ue(Po))==null?void 0:k.runtimeConfig)||{},null,2),"json").value},null,8,XA)])]}),_:1})])):d.value==="docs"?(V(),ee("div",JA,m[16]||(m[16]=[D("iframe",{src:"https://nuxtseo.com/link-checker",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)]))):Ie("",!0),m[17]||(m[17]=D("div",{class:"flex-auto"},null,-1))])])])}}}),QA={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
180
|
-
`).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(`
|
|
181
|
-
`);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?Dc(()=>Kn(()=>import("./BGB1r09n.js"),__vite__mapDeps([3,4,5]),import.meta.url)):Dc(()=>Kn(()=>import("./Cj6XDDRd.js"),__vite__mapDeps([6,4,7]),import.meta.url));return(f,d)=>(V(),we(ue(u),Xf(Wl({statusCode:ue(r),statusMessage:ue(o),description:ue(i),stack:ue(a)})),null,16))}},ZA={key:0},Gf={__name:"nuxt-root",setup(e){const t=()=>null,n=Be(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Ut().beforeEach(l)}const s=!1;Fd(Oh,Mh()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const o=Xl(),i=!1;$d((l,c,u)=>{if(n.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),lb(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>ib(l)),!1});const a=!1;return(l,c)=>(V(),we(Ly,{onResolve:ue(r)},{default:ie(()=>[ue(i)?(V(),ee("div",ZA)):ue(o)?(V(),we(ue(QA),{key:1,error:ue(o)},null,8,["error"])):ue(a)?(V(),we(ue(t),{key:2,context:ue(a)},null,8,["context"])):ue(s)?(V(),we(oy(ue(s)),{key:3})):(V(),we(ue(YA),{key:4}))]),_:1},8,["onResolve"]))}};let Uf;{let e;Uf=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")?Mv(Gf):mh(Gf),s=z_({vueApp:r});async function o(l){var c;await s.callHook("app:error",l),(c=s.payload).error||(c.error=Jl(l))}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)});try{await X_(s,_0)}catch(l){o(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(U_),await s.hooks.callHook("app:mounted",r),await On()}catch(l){o(l)}return r},e=Uf().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Xs as _,D as a,J as b,ee as c,pe as d,yp as e,J_ as f,jh as g,Hl as h,Pr as i,V as o,Pe as t,tT as u,ie as w};
|