nuxt-email-renderer 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/32ctXXKs.js +1 -0
- package/dist/client/_nuxt/BA47KaF1.js +1 -0
- package/dist/client/_nuxt/BN7gUcg9.js +1 -0
- package/dist/client/_nuxt/BeH2EWoN.js +1 -0
- package/dist/client/_nuxt/C5BYcBs_.js +1 -0
- package/dist/client/_nuxt/CENFIVCM.js +1 -0
- package/dist/client/_nuxt/CVW9qvrh.js +1 -0
- package/dist/client/_nuxt/CYpkKp66.js +1 -0
- package/dist/client/_nuxt/CYwymTw-.js +48 -0
- package/dist/client/_nuxt/{CGscLIrv.js → CgK0fS9t.js} +1 -1
- package/dist/client/_nuxt/Cn-bp-IR.js +1 -0
- package/dist/client/_nuxt/Cz2AlsmD.js +1 -0
- package/dist/client/_nuxt/{Dg5xB15N.js → D82vCrfD.js} +1 -1
- package/dist/client/_nuxt/D8l8udqQ.js +1 -0
- package/dist/client/_nuxt/{RNghxpo_.js → DDvzSYfr.js} +1 -1
- package/dist/client/_nuxt/DPOp833l.js +1 -0
- package/dist/client/_nuxt/DRJZaHtK.js +1 -0
- package/dist/client/_nuxt/{TsXTqZ29.js → DSeZwD4N.js} +1 -1
- package/dist/client/_nuxt/DYE7WIF3.js +1 -0
- package/dist/client/_nuxt/DgsIRcX7.js +1 -0
- package/dist/client/_nuxt/{BtvRca6l.js → DjAJT7YJ.js} +1 -1
- package/dist/client/_nuxt/{DQwYQDb2.js → FtFNcQmh.js} +1 -1
- package/dist/client/_nuxt/RIEECCrm.js +1 -0
- package/dist/client/_nuxt/Ve4PFQV2.js +1 -0
- package/dist/client/_nuxt/_H4v1dQx.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/ff6ff926-9882-4068-931d-4f05f059619e.json +1 -0
- package/dist/client/_nuxt/entry.1RTSYlAZ.css +1 -0
- package/dist/client/_nuxt/eo99z4R2.js +1 -0
- package/dist/client/_nuxt/error-404.Djauc_oz.css +1 -0
- package/dist/client/_nuxt/error-500.B_nEscEZ.css +1 -0
- package/dist/client/_nuxt/oH_c3LbQ.js +1 -0
- package/dist/client/_nuxt/rZm6bMo-.js +1 -0
- package/dist/client/_nuxt/zrPBi9jl.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/subject/ESubject.vue +1 -1
- package/dist/runtime/server/api/emails/index.get.d.ts +1 -1
- package/dist/runtime/server/api/emails/render.post.d.ts +1 -1
- package/dist/runtime/server/api/emails/source.post.d.ts +1 -1
- package/package.json +24 -24
- package/dist/client/_nuxt/2tRuyRz6.js +0 -1
- package/dist/client/_nuxt/83L43bj1.js +0 -1
- package/dist/client/_nuxt/B93PlW-d.js +0 -1
- package/dist/client/_nuxt/Ba13S78F.js +0 -1
- package/dist/client/_nuxt/BhRPY-oY.js +0 -1
- package/dist/client/_nuxt/Bhrxn6JZ.js +0 -1
- package/dist/client/_nuxt/BrzmwbiE.js +0 -1
- package/dist/client/_nuxt/C-sUppwS.js +0 -1
- package/dist/client/_nuxt/C47S-Tmv.js +0 -1
- package/dist/client/_nuxt/CMjwMIkn.js +0 -1
- package/dist/client/_nuxt/CQ8jqdy-.js +0 -1
- package/dist/client/_nuxt/CjoLj4QM.js +0 -1
- package/dist/client/_nuxt/DDWDunuf.js +0 -1
- package/dist/client/_nuxt/DMwsHuHA.js +0 -1
- package/dist/client/_nuxt/DYoxhk2S.js +0 -1
- package/dist/client/_nuxt/Dv7Oe6Be.js +0 -1
- package/dist/client/_nuxt/VCDPK7BO.js +0 -1
- package/dist/client/_nuxt/builds/meta/47cc0013-5759-43d0-998e-6d46589dae27.json +0 -1
- package/dist/client/_nuxt/entry.B1LMZcFd.css +0 -1
- package/dist/client/_nuxt/error-404.C8vuFzCq.css +0 -1
- package/dist/client/_nuxt/error-500.DJdvoZMd.css +0 -1
- package/dist/client/_nuxt/n57rOy2v.js +0 -1
- package/dist/client/_nuxt/osikNjd9.js +0 -53
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./CnnebwVN.js","./wDzz0qaB.js","./DPfMkruS.js","./Cl0AqbOI.js","./2EtD6e53.js","./Cn7AkR1O.js","./BGJmEYvX.js","./CylS5w8V.js","./Cp-IABpG.js","./DxSwrfjg.js","./BPQ3VLAy.js","./CXtECtnM.js","./COt5Ahok.js","./5X7smno1.js","./DGP4VlC8.js","./BLtJtn59.js","./CquLrc37.js","./DVxCFoDh.js","./CO1LY3CK.js","./B6aJPvgy.js","./BYV0-3_D.js","./CxbxFI8M.js","./Bp3cYrEr.js","./CDVJQ6XC.js","./DZxFcAj9.js","./BIGW1oBm.js","./fKv21gyL.js","./Yzrsuije.js","./DZu-aV2c.js","./CpOuai2O.js","./CeZK1NFH.js","./CgK0fS9t.js","./CYpkKp66.js","./CmIQRyeF.js","./C9oPPf7i.js","./g9-lgVsj.js","./CnsnAmq5.js","./Buea-lGh.js","./CuPHTKiy.js","./Cvjx9yec.js","./B7c-h3xW.js","./BxgE0vQu.js","./BTifaqeh.js","./CenWIFCC.js","./DkwncUOv.js","./C5YyOfLZ.js","./CxGSJlkm.js","./D97Zzqfu.js","./CSXwinHm.js","./YqXBG_HV.js","./BR5kRUq4.js","./CLZrNe3w.js","./m17aaUwq.js","./CufHLc7y.js","./CYsAdtH9.js","./fuZLfV_i.js","./DWrx1Km3.js","./CzTSHFRz.js","./CXZktZb0.js","./Br6cN0cg.js","./W9tJ9s81.js","./Dspwwk_N.js","./CENFIVCM.js","./BzTr9Aqm.js","./oH_c3LbQ.js","./C5BYcBs_.js","./mjskCLCv.js","./BN7gUcg9.js","./B1dDrJ26.js","./DSeZwD4N.js","./DRJZaHtK.js","./BeH2EWoN.js","./Dph4kLrZ.js","./DhmSosst.js","./DJjDtW9f.js","./BLmx8bSh.js","./BVQ-GDCI.js","./DsumFeuD.js","./COcwbKMJ.js","./FtFNcQmh.js","./D1j8_8rp.js","./CG8Ifv2g.js","./BqTXFGrv.js","./D3lLCCz7.js","./Cq5zzVJU.js","./Dzze3sRP.js","./BRZ36xJF.js","./BsS91CYL.js","./DM8c43g1.js","./BH7IYjvW.js","./DgsIRcX7.js","./CZhp0h8q.js","./CxLEBnE3.js","./Cm3UrAx6.js","./DDvzSYfr.js","./DEthMvLe.js","./DqQDbK_p.js","./CW8IKDeL.js","./BEDo0Tqx.js","./yv6CvBhz.js","./RIEECCrm.js","./CVW9qvrh.js","./error-404.Djauc_oz.css","./zrPBi9jl.js","./error-500.B_nEscEZ.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/**
|
|
3
|
+
* @vue/shared v3.5.34
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**/function Is(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Te={},Fn=[],Mt=()=>{},sc=()=>!1,$r=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ki=e=>e.startsWith("onUpdate:"),Je=Object.assign,Ds=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pd=Object.prototype.hasOwnProperty,ve=(e,t)=>pd.call(e,t),se=Array.isArray,Hn=e=>jr(e)==="[object Map]",nr=e=>jr(e)==="[object Set]",Aa=e=>jr(e)==="[object Date]",ce=e=>typeof e=="function",ke=e=>typeof e=="string",_t=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",Ns=e=>(Ee(e)||ce(e))&&ce(e.then)&&ce(e.catch),ac=Object.prototype.toString,jr=e=>ac.call(e),hd=e=>jr(e).slice(8,-1),Ms=e=>jr(e)==="[object Object]",Ji=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yn=Is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xi=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},md=/-\w/g,st=Xi(e=>e.replace(md,t=>t.slice(1).toUpperCase())),gd=/\B([A-Z])/g,Cn=Xi(e=>e.replace(gd,"-$1").toLowerCase()),Yi=Xi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Eo=Xi(e=>e?`on${Yi(e)}`:""),Nt=(e,t)=>!Object.is(e,t),ui=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},lc=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Qi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_d=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Ra;const Zi=()=>Ra||(Ra=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Tn(e){if(se(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ke(r)?Ed(r):Tn(r);if(i)for(const o in i)t[o]=i[o]}return t}else if(ke(e)||Ee(e))return e}const yd=/;(?![^(]*\))/g,vd=/:([^]+)/,bd=/\/\*[^]*?\*\//g;function Ed(e){const t={};return e.replace(bd,"").split(yd).forEach(n=>{if(n){const r=n.split(vd);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function qe(e){let t="";if(ke(e))t=e;else if(se(e))for(let n=0;n<e.length;n++){const r=qe(e[n]);r&&(t+=r+" ")}else if(Ee(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function wd(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ke(t)&&(e.class=qe(t)),n&&(e.style=Tn(n)),e}const Sd="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Td=Is(Sd);function cc(e){return!!e||e===""}function Ad(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=on(e[r],t[r]);return n}function on(e,t){if(e===t)return!0;let n=Aa(e),r=Aa(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=se(e),r=se(t),n||r)return n&&r?Ad(e,t):!1;if(n=Ee(e),r=Ee(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!on(e[s],t[s]))return!1}}return String(e)===String(t)}function Vs(e,t){return e.findIndex(n=>on(n,t))}const uc=e=>!!(e&&e.__v_isRef===!0),Pt=e=>ke(e)?e:e==null?"":se(e)||Ee(e)&&(e.toString===ac||!ce(e.toString))?uc(e)?Pt(e.value):JSON.stringify(e,fc,2):String(e),fc=(e,t)=>uc(t)?fc(e,t.value):Hn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[wo(r,o)+" =>"]=i,n),{})}:nr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>wo(n))}:_t(t)?wo(t):Ee(t)&&!se(t)&&!Ms(t)?String(t):t,wo=(e,t="")=>{var n;return _t(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
|
+
* @vue/reactivity v3.5.34
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/let je;class dc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&je&&(je.active?(this.parent=je,this.index=(je.scopes||(je.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){++this._on===1&&(this.prevScope=je,je=this)}off(){if(this._on>0&&--this._on===0){if(je===this)je=this.prevScope;else{let t=je;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Rd(e){return new dc(e)}function Br(){return je}function $s(e,t=!1){je&&je.cleanups.push(e)}let Pe;const So=new WeakSet;class pc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,je&&(je.active?je.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,So.has(this)&&(So.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||mc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Pa(this),gc(this);const t=Pe,n=At;Pe=this,At=!0;try{return this.fn()}finally{_c(this),Pe=t,At=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fs(t);this.deps=this.depsTail=void 0,Pa(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?So.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ko(this)&&this.run()}get dirty(){return Ko(this)}}let hc=0,vr,br;function mc(e,t=!1){if(e.flags|=8,t){e.next=br,br=e;return}e.next=vr,vr=e}function js(){hc++}function Bs(){if(--hc>0)return;if(br){let t=br;for(br=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vr;){let t=vr;for(vr=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 gc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _c(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Fs(r),Pd(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Ko(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Rr)||(e.globalVersion=Rr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ko(e))))return;e.flags|=2;const t=e.dep,n=Pe,r=At;Pe=e,At=!0;try{gc(e);const i=e.fn(e._value);(t.version===0||Nt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Pe=n,At=r,_c(e),e.flags&=-3}}function Fs(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.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)Fs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Pd(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 vc=[];function Kt(){vc.push(At),At=!1}function Jt(){const e=vc.pop();At=e===void 0?!0:e}function Pa(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Pe;Pe=void 0;try{t()}finally{Pe=n}}}let Rr=0;class Cd{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 eo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Pe||!At||Pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Pe)n=this.activeLink=new Cd(Pe,this),Pe.deps?(n.prevDep=Pe.depsTail,Pe.depsTail.nextDep=n,Pe.depsTail=n):Pe.deps=Pe.depsTail=n,bc(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=Pe.depsTail,n.nextDep=void 0,Pe.depsTail.nextDep=n,Pe.depsTail=n,Pe.deps===n&&(Pe.deps=r)}return n}trigger(t){this.version++,Rr++,this.notify(t)}notify(t){js();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Bs()}}}function bc(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)bc(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _i=new WeakMap,vn=Symbol(""),Jo=Symbol(""),Pr=Symbol("");function et(e,t,n){if(At&&Pe){let r=_i.get(e);r||_i.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new eo),i.map=r,i.key=n),i.track()}}function zt(e,t,n,r,i,o){const s=_i.get(e);if(!s){Rr++;return}const a=l=>{l&&l.trigger()};if(js(),t==="clear")s.forEach(a);else{const l=se(e),u=l&&Ji(n);if(l&&n==="length"){const c=Number(r);s.forEach((f,d)=>{(d==="length"||d===Pr||!_t(d)&&d>=c)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),u&&a(s.get(Pr)),t){case"add":l?u&&a(s.get("length")):(a(s.get(vn)),Hn(e)&&a(s.get(Jo)));break;case"delete":l||(a(s.get(vn)),Hn(e)&&a(s.get(Jo)));break;case"set":Hn(e)&&a(s.get(vn));break}}Bs()}function kd(e,t){const n=_i.get(e);return n&&n.get(t)}function On(e){const t=ye(e);return t===e?t:(et(t,"iterate",Pr),gt(e)?t:t.map(Ct))}function to(e){return et(e=ye(e),"iterate",Pr),e}function Dt(e,t){return $t(e)?Xn(nn(e)?Ct(t):t):Ct(t)}const Ld={__proto__:null,[Symbol.iterator](){return To(this,Symbol.iterator,e=>Dt(this,e))},concat(...e){return On(this).concat(...e.map(t=>se(t)?On(t):t))},entries(){return To(this,"entries",e=>(e[1]=Dt(this,e[1]),e))},every(e,t){return Bt(this,"every",e,t,void 0,arguments)},filter(e,t){return Bt(this,"filter",e,t,n=>n.map(r=>Dt(this,r)),arguments)},find(e,t){return Bt(this,"find",e,t,n=>Dt(this,n),arguments)},findIndex(e,t){return Bt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Bt(this,"findLast",e,t,n=>Dt(this,n),arguments)},findLastIndex(e,t){return Bt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Bt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ao(this,"includes",e)},indexOf(...e){return Ao(this,"indexOf",e)},join(e){return On(this).join(e)},lastIndexOf(...e){return Ao(this,"lastIndexOf",e)},map(e,t){return Bt(this,"map",e,t,void 0,arguments)},pop(){return cr(this,"pop")},push(...e){return cr(this,"push",e)},reduce(e,...t){return Ca(this,"reduce",e,t)},reduceRight(e,...t){return Ca(this,"reduceRight",e,t)},shift(){return cr(this,"shift")},some(e,t){return Bt(this,"some",e,t,void 0,arguments)},splice(...e){return cr(this,"splice",e)},toReversed(){return On(this).toReversed()},toSorted(e){return On(this).toSorted(e)},toSpliced(...e){return On(this).toSpliced(...e)},unshift(...e){return cr(this,"unshift",e)},values(){return To(this,"values",e=>Dt(this,e))}};function To(e,t,n){const r=to(e),i=r[t]();return r!==e&&!gt(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const xd=Array.prototype;function Bt(e,t,n,r,i,o){const s=to(e),a=s!==e&&!gt(e),l=s[t];if(l!==xd[t]){const f=l.apply(e,o);return a?Ct(f):f}let u=n;s!==e&&(a?u=function(f,d){return n.call(this,Dt(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(s,u,r);return a&&i?i(c):c}function Ca(e,t,n,r){const i=to(e),o=i!==e&&!gt(e);let s=n,a=!1;i!==e&&(o?(a=r.length===0,s=function(u,c,f){return a&&(a=!1,u=Dt(e,u)),n.call(this,u,Dt(e,c),f,e)}):n.length>3&&(s=function(u,c,f){return n.call(this,u,c,f,e)}));const l=i[t](s,...r);return a?Dt(e,l):l}function Ao(e,t,n){const r=ye(e);et(r,"iterate",Pr);const i=r[t](...n);return(i===-1||i===!1)&&io(n[0])?(n[0]=ye(n[0]),r[t](...n)):i}function cr(e,t,n=[]){Kt(),js();const r=ye(e)[t].apply(e,n);return Bs(),Jt(),r}const Od=Is("__proto__,__v_isRef,__isVue"),Ec=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_t));function Id(e){_t(e)||(e=String(e));const t=ye(this);return et(t,"has",e),t.hasOwnProperty(e)}class wc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?Cc:Pc:o?Rc:Ac).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=se(t);if(!i){let l;if(s&&(l=Ld[n]))return l;if(n==="hasOwnProperty")return Id}const a=Reflect.get(t,n,be(t)?t:r);if((_t(n)?Ec.has(n):Od(n))||(i||et(t,"get",n),o))return a;if(be(a)){const l=s&&Ji(n)?a:a.value;return i&&Ee(l)?yi(l):l}return Ee(a)?i?yi(a):Vt(a):a}}class Sc extends wc{constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];const s=se(t)&&Ji(n);if(!this._isShallow){const u=$t(o);if(!gt(r)&&!$t(r)&&(o=ye(o),r=ye(r)),!s&&be(o)&&!be(r))return u||(o.value=r),!0}const a=s?Number(n)<t.length:ve(t,n),l=Reflect.set(t,n,r,be(t)?t:i);return t===ye(i)&&(a?Nt(r,o)&&zt(t,"set",n,r):zt(t,"add",n,r)),l}deleteProperty(t,n){const r=ve(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&zt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!_t(n)||!Ec.has(n))&&et(t,"has",n),r}ownKeys(t){return et(t,"iterate",se(t)?"length":vn),Reflect.ownKeys(t)}}class Tc extends wc{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Dd=new Sc,Nd=new Tc,Md=new Sc(!0),Vd=new Tc(!0),Xo=e=>e,Gr=e=>Reflect.getPrototypeOf(e);function $d(e,t,n){return function(...r){const i=this.__v_raw,o=ye(i),s=Hn(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...r),c=n?Xo:t?Xn:Ct;return!t&&et(o,"iterate",l?Jo:vn),Je(Object.create(u),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}}})}}function Wr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function jd(e,t){const n={get(i){const o=this.__v_raw,s=ye(o),a=ye(i);e||(Nt(i,a)&&et(s,"get",i),et(s,"get",a));const{has:l}=Gr(s),u=t?Xo:e?Xn:Ct;if(l.call(s,i))return u(o.get(i));if(l.call(s,a))return u(o.get(a));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!e&&et(ye(i),"iterate",vn),i.size},has(i){const o=this.__v_raw,s=ye(o),a=ye(i);return e||(Nt(i,a)&&et(s,"has",i),et(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const s=this,a=s.__v_raw,l=ye(a),u=t?Xo:e?Xn:Ct;return!e&&et(l,"iterate",vn),a.forEach((c,f)=>i.call(o,u(c),u(f),s))}};return Je(n,e?{add:Wr("add"),set:Wr("set"),delete:Wr("delete"),clear:Wr("clear")}:{add(i){const o=ye(this),s=Gr(o),a=ye(i),l=!t&&!gt(i)&&!$t(i)?a:i;return s.has.call(o,l)||Nt(i,l)&&s.has.call(o,i)||Nt(a,l)&&s.has.call(o,a)||(o.add(l),zt(o,"add",l,l)),this},set(i,o){!t&&!gt(o)&&!$t(o)&&(o=ye(o));const s=ye(this),{has:a,get:l}=Gr(s);let u=a.call(s,i);u||(i=ye(i),u=a.call(s,i));const c=l.call(s,i);return s.set(i,o),u?Nt(o,c)&&zt(s,"set",i,o):zt(s,"add",i,o),this},delete(i){const o=ye(this),{has:s,get:a}=Gr(o);let l=s.call(o,i);l||(i=ye(i),l=s.call(o,i)),a&&a.call(o,i);const u=o.delete(i);return l&&zt(o,"delete",i,void 0),u},clear(){const i=ye(this),o=i.size!==0,s=i.clear();return o&&zt(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=$d(i,e,t)}),n}function no(e,t){const n=jd(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ve(n,i)&&i in r?n:r,i,o)}const Bd={get:no(!1,!1)},Fd={get:no(!1,!0)},Hd={get:no(!0,!1)},Ud={get:no(!0,!0)},Ac=new WeakMap,Rc=new WeakMap,Pc=new WeakMap,Cc=new WeakMap;function zd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gd(e){return e.__v_skip||!Object.isExtensible(e)?0:zd(hd(e))}function Vt(e){return $t(e)?e:ro(e,!1,Dd,Bd,Ac)}function pn(e){return ro(e,!1,Md,Fd,Rc)}function yi(e){return ro(e,!0,Nd,Hd,Pc)}function tn(e){return ro(e,!0,Vd,Ud,Cc)}function ro(e,t,n,r,i){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Gd(e);if(o===0)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function nn(e){return $t(e)?nn(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function gt(e){return!!(e&&e.__v_isShallow)}function io(e){return e?!!e.__v_raw:!1}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}function Wd(e){return!ve(e,"__v_skip")&&Object.isExtensible(e)&&lc(e,"__v_skip",!0),e}const Ct=e=>Ee(e)?Vt(e):e,Xn=e=>Ee(e)?yi(e):e;function be(e){return e?e.__v_isRef===!0:!1}function ge(e){return kc(e,!1)}function ze(e){return kc(e,!0)}function kc(e,t){return be(e)?e:new qd(e,t)}class qd{constructor(t,n){this.dep=new eo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ye(t),this._value=n?t:Ct(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||gt(t)||$t(t);t=r?t:ye(t),Nt(t,n)&&(this._rawValue=t,this._value=r?t:Ct(t),this.dep.trigger())}}function F(e){return be(e)?e.value:e}function xe(e){return ce(e)?e():F(e)}const Kd={get:(e,t,n)=>t==="__v_raw"?e:F(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Lc(e){return nn(e)?e:new Proxy(e,Kd)}class Jd{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new eo,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Xd(e){return new Jd(e)}class Yd{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=_t(n)?n:String(n),this._raw=ye(t);let i=!0,o=t;if(!se(t)||_t(this._key)||!Ji(this._key))do i=!io(o)||gt(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=F(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&be(this._raw[this._key])){const n=this._object[this._key];if(be(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return kd(this._raw,this._key)}}class Qd{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 Hs(e,t,n){return be(e)?e:ce(e)?new Qd(e):Ee(e)&&arguments.length>1?Zd(e,t,n):ge(e)}function Zd(e,t,n){return new Yd(e,t,n)}class ep{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new eo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Rr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Pe!==this)return mc(this,!0),!0}get value(){const t=this.dep.track();return yc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function tp(e,t,n=!1){let r,i;return ce(e)?r=e:(r=e.get,i=e.set),new ep(r,i,n)}const qr={},vi=new WeakMap;let fn;function np(e,t=!1,n=fn){if(n){let r=vi.get(n);r||vi.set(n,r=[]),r.push(e)}}function rp(e,t,n=Te){const{immediate:r,deep:i,once:o,scheduler:s,augmentJob:a,call:l}=n,u=E=>i?E:gt(E)||i===!1||i===0?Gt(E,1):Gt(E);let c,f,d,p,h=!1,_=!1;if(be(e)?(f=()=>e.value,h=gt(e)):nn(e)?(f=()=>u(e),h=!0):se(e)?(_=!0,h=e.some(E=>nn(E)||gt(E)),f=()=>e.map(E=>{if(be(E))return E.value;if(nn(E))return u(E);if(ce(E))return l?l(E,2):E()})):ce(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Kt();try{d()}finally{Jt()}}const E=fn;fn=c;try{return l?l(e,3,[p]):e(p)}finally{fn=E}}:f=Mt,t&&i){const E=f,S=i===!0?1/0:i;f=()=>Gt(E(),S)}const v=Br(),b=()=>{c.stop(),v&&v.active&&Ds(v.effects,c)};if(o&&t){const E=t;t=(...S)=>{E(...S),b()}}let w=_?new Array(e.length).fill(qr):qr;const m=E=>{if(!(!(c.flags&1)||!c.dirty&&!E))if(t){const S=c.run();if(i||h||(_?S.some((k,x)=>Nt(k,w[x])):Nt(S,w))){d&&d();const k=fn;fn=c;try{const x=[S,w===qr?void 0:_&&w[0]===qr?[]:w,p];w=S,l?l(t,3,x):t(...x)}finally{fn=k}}}else c.run()};return a&&a(m),c=new pc(f),c.scheduler=s?()=>s(m,!1):m,p=E=>np(E,!1,c),d=c.onStop=()=>{const E=vi.get(c);if(E){if(l)l(E,4);else for(const S of E)S();vi.delete(c)}},t?r?m(!0):w=c.run():s?s(m.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function Gt(e,t=1/0,n){if(t<=0||!Ee(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,be(e))Gt(e.value,t,n);else if(se(e))for(let r=0;r<e.length;r++)Gt(e[r],t,n);else if(nr(e)||Hn(e))e.forEach(r=>{Gt(r,t,n)});else if(Ms(e)){for(const r in e)Gt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Gt(e[r],t,n)}return e}/**
|
|
11
|
+
* @vue/runtime-core v3.5.34
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/function Fr(e,t,n,r){try{return r?e(...r):e()}catch(i){rr(i,t,n)}}function jt(e,t,n,r){if(ce(e)){const i=Fr(e,t,n,r);return i&&Ns(i)&&i.catch(o=>{rr(o,t,n)}),i}if(se(e)){const i=[];for(let o=0;o<e.length;o++)i.push(jt(e[o],t,n,r));return i}}function rr(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Te;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(o){Kt(),Fr(o,null,10,[e,l,u]),Jt();return}}ip(e,n,i,r,s)}function ip(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const ot=[];let Ot=-1;const Un=[];let Zt=null,Nn=0;const xc=Promise.resolve();let bi=null;function Rt(e){const t=bi||xc;return e?t.then(this?e.bind(this):e):t}function op(e){let t=Ot+1,n=ot.length;for(;t<n;){const r=t+n>>>1,i=ot[r],o=kr(i);o<e||o===e&&i.flags&2?t=r+1:n=r}return t}function Us(e){if(!(e.flags&1)){const t=kr(e),n=ot[ot.length-1];!n||!(e.flags&2)&&t>=kr(n)?ot.push(e):ot.splice(op(t),0,e),e.flags|=1,Oc()}}function Oc(){bi||(bi=xc.then(Ic))}function Cr(e){se(e)?Un.push(...e):Zt&&e.id===-1?Zt.splice(Nn+1,0,e):e.flags&1||(Un.push(e),e.flags|=1),Oc()}function ka(e,t,n=Ot+1){for(;n<ot.length;n++){const r=ot[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;ot.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ei(e){if(Un.length){const t=[...new Set(Un)].sort((n,r)=>kr(n)-kr(r));if(Un.length=0,Zt){Zt.push(...t);return}for(Zt=t,Nn=0;Nn<Zt.length;Nn++){const n=Zt[Nn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Zt=null,Nn=0}}const kr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ic(e){try{for(Ot=0;Ot<ot.length;Ot++){const t=ot[Ot];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Fr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ot<ot.length;Ot++){const t=ot[Ot];t&&(t.flags&=-2)}Ot=-1,ot.length=0,Ei(),bi=null,(ot.length||Un.length)&&Ic()}}let We=null,Dc=null;function wi(e){const t=We;return We=e,Dc=e&&e.type.__scopeId||null,t}function Ce(e,t=We,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Ai(-1);const o=wi(t);let s;try{s=e(...i)}finally{wi(o),r._d&&Ai(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function oo(e,t){if(We===null)return e;const n=co(We),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,a,l=Te]=t[i];o&&(ce(o)&&(o={mounted:o,updated:o}),o.deep&&Gt(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function It(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let l=a.dir[r];l&&(Kt(),jt(l,n,8,[e.el,a,e,t]),Jt())}}function Ft(e,t){if(Ge){let n=Ge.provides;const r=Ge.parent&&Ge.parent.provides;r===n&&(n=Ge.provides=Object.create(r)),n[e]=t}}function ht(e,t,n=!1){const r=St();if(r||En){let i=En?En._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ce(t)?t.call(r&&r.proxy):t}}function zs(){return!!(St()||En)}const sp=Symbol.for("v-scx"),ap=()=>ht(sp);function Nc(e,t){return Gs(e,null,t)}function Ke(e,t,n){return Gs(e,t,n)}function Gs(e,t,n=Te){const{immediate:r,deep:i,flush:o,once:s}=n,a=Je({},n),l=t&&r||!t&&o!=="post";let u;if(An){if(o==="sync"){const p=ap();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Mt,p.resume=Mt,p.pause=Mt,p}}const c=Ge;a.call=(p,h,_)=>jt(p,c,h,_);let f=!1;o==="post"?a.scheduler=p=>{Ze(p,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(p,h)=>{h?p():Us(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const d=rp(e,t,a);return An&&(u?u.push(d):l&&d()),d}function lp(e,t,n){const r=this.proxy,i=ke(e)?e.includes(".")?Mc(r,e):()=>r[e]:e.bind(r,r);let o;ce(t)?o=t:(o=t.handler,n=t);const s=or(this),a=Gs(i,o.bind(r),n);return s(),a}function Mc(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const Qt=new WeakMap,Vc=Symbol("_vte"),cp=e=>e.__isTeleport,hn=e=>e&&(e.disabled||e.disabled===""),up=e=>e&&(e.defer||e.defer===""),La=e=>typeof SVGElement<"u"&&e instanceof SVGElement,xa=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yo=(e,t)=>{const n=e&&e.to;return ke(n)?t?t(n):null:n},fp={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,s,a,l,u){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:_,createComment:v,parentNode:b}}=u,w=hn(t.props);let{dynamicChildren:m}=t;const E=(x,U,H)=>{x.shapeFlag&16&&c(x.children,U,H,i,o,s,a,l)},S=(x=t)=>{const U=hn(x.props),H=x.target=Yo(x.props,h),V=Qo(H,x,_,p);H&&(s!=="svg"&&La(H)?s="svg":s!=="mathml"&&xa(H)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(H),U||(E(x,H,V),hr(x,!1)))},k=x=>{const U=()=>{if(Qt.get(x)===U){if(Qt.delete(x),hn(x.props)){const H=b(x.el)||n;E(x,H,x.anchor),hr(x,!0)}S(x)}};Qt.set(x,U),Ze(U,o)};if(e==null){const x=t.el=_(""),U=t.anchor=_("");if(p(x,n,r),p(U,n,r),up(t.props)||o&&o.pendingBranch){k(t);return}w&&(E(t,n,U),hr(t,!0)),S()}else{t.el=e.el;const x=t.anchor=e.anchor,U=Qt.get(e);if(U){U.flags|=8,Qt.delete(e),k(t);return}t.targetStart=e.targetStart;const H=t.target=e.target,V=t.targetAnchor=e.targetAnchor,Q=hn(e.props),te=Q?n:H,X=Q?x:V;if(s==="svg"||La(H)?s="svg":(s==="mathml"||xa(H))&&(s="mathml"),m?(d(e.dynamicChildren,m,te,i,o,s,a),Qs(e,t,!0)):l||f(e,t,te,X,i,o,s,a,!1),w)Q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kr(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Yo(t.props,h);A&&Kr(t,A,null,u,0)}else Q&&Kr(t,H,V,u,1);hr(t,w)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;let p=o||!hn(d);const h=Qt.get(e);if(h&&(h.flags|=8,Qt.delete(e),p=!1),f&&(i(u),i(c)),o&&i(l),s&16)for(let _=0;_<a.length;_++){const v=a[_];r(v,t,n,p,!!v.dynamicChildren)}},move:Kr,hydrate:dp};function Kr(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&r(s,t,n),!Qt.has(e)&&(!f||hn(c))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,n,2);f&&r(a,t,n)}function dp(e,t,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:u,createText:c}},f){function d(v,b){let w=b;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,v._lpa=t.targetAnchor&&s(t.targetAnchor);break}}w=s(w)}}function p(v,b){b.anchor=f(s(v),b,a(v),n,r,i,o)}const h=t.target=Yo(t.props,l),_=hn(t.props);if(h){const v=h._lpa||h.firstChild;t.shapeFlag&16&&(_?(p(e,t),d(h,v),t.targetAnchor||Qo(h,t,c,u,a(e)===h?e:null)):(t.anchor=s(e),d(h,v),t.targetAnchor||Qo(h,t,c,u),f(v&&s(v),t,h,n,r,i,o))),hr(t,_)}else _&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=s(e));return t.anchor&&s(t.anchor)}const pp=fp;function hr(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Qo(e,t,n,r,i=null){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[Vc]=s,e&&(r(o,e,i),r(s,e,i)),s}const hp=Symbol("_leaveCb");function Ws(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ws(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 yt(e,t){return ce(e)?Je({name:e.name},t,{setup:e}):e}function qs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Oa(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Si=new WeakMap;function zn(e,t,n,r,i=!1){if(se(e)){e.forEach((_,v)=>zn(_,t&&(se(t)?t[v]:t),n,r,i));return}if(bn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&zn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?co(r.component):r.el,s=i?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Te?a.refs={}:a.refs,f=a.setupState,d=ye(f),p=f===Te?sc:_=>Oa(c,_)?!1:ve(d,_),h=(_,v)=>!(v&&Oa(c,v));if(u!=null&&u!==l){if(Ia(t),ke(u))c[u]=null,p(u)&&(f[u]=null);else if(be(u)){const _=t;h(u,_.k)&&(u.value=null),_.k&&(c[_.k]=null)}}if(ce(l))Fr(l,a,12,[s,c]);else{const _=ke(l),v=be(l);if(_||v){const b=()=>{if(e.f){const w=_?p(l)?f[l]:c[l]:h()||!e.k?l.value:c[e.k];if(i)se(w)&&Ds(w,o);else if(se(w))w.includes(o)||w.push(o);else if(_)c[l]=[o],p(l)&&(f[l]=c[l]);else{const m=[o];h(l,e.k)&&(l.value=m),e.k&&(c[e.k]=m)}}else _?(c[l]=s,p(l)&&(f[l]=s)):v&&(h(l,e.k)&&(l.value=s),e.k&&(c[e.k]=s))};if(s){const w=()=>{b(),Si.delete(e)};w.id=-1,Si.set(e,w),Ze(w,n)}else Ia(e),b()}}}function Ia(e){const t=Si.get(e);t&&(t.flags|=8,Si.delete(e))}let Da=!1;const In=()=>{Da||(console.error("Hydration completed but contains mismatches."),Da=!0)},mp=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",gp=e=>e.namespaceURI.includes("MathML"),Jr=e=>{if(e.nodeType===1){if(mp(e))return"svg";if(gp(e))return"mathml"}},Vn=e=>e.nodeType===8;function _p(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:a,insert:l,createComment:u}}=e,c=(m,E)=>{if(!E.hasChildNodes()){n(null,m,E),Ei(),E._vnode=m;return}f(E.firstChild,m,null,null,null),Ei(),E._vnode=m},f=(m,E,S,k,x,U=!1)=>{U=U||!!E.dynamicChildren;const H=Vn(m)&&m.data==="[",V=()=>_(m,E,S,k,x,H),{type:Q,ref:te,shapeFlag:X,patchFlag:A}=E;let R=m.nodeType;E.el=m,A===-2&&(U=!1,E.dynamicChildren=null);let P=null;switch(Q){case wn:R!==3?E.children===""?(l(E.el=i(""),s(m),m),P=m):P=V():(m.data!==E.children&&(In(),m.data=E.children),P=o(m));break;case wt:w(m)?(P=o(m),b(E.el=m.content.firstChild,m,S)):R!==8||H?P=V():P=o(m);break;case fi:if(H&&(m=o(m),R=m.nodeType),R===1||R===3){P=m;const z=!E.children.length;for(let O=0;O<E.staticCount;O++)z&&(E.children+=P.nodeType===1?P.outerHTML:P.data),O===E.staticCount-1&&(E.anchor=P),P=o(P);return H?o(P):P}else V();break;case Ue:H?P=h(m,E,S,k,x,U):P=V();break;default:if(X&1)(R!==1||E.type.toLowerCase()!==m.tagName.toLowerCase())&&!w(m)?P=V():P=d(m,E,S,k,x,U);else if(X&6){E.slotScopeIds=x;const z=s(m);if(H?P=v(m):Vn(m)&&m.data==="teleport start"?P=v(m,m.data,"teleport end"):P=o(m),t(E,z,null,S,k,Jr(z),U),bn(E)&&!E.type.__asyncResolved){let O;H?(O=ie(Ue),O.anchor=P?P.previousSibling:z.lastChild):O=m.nodeType===3?at(""):ie("div"),O.el=m,E.component.subTree=O}}else X&64?R!==8?P=V():P=E.type.hydrate(m,E,S,k,x,U,e,p):X&128&&(P=E.type.hydrate(m,E,S,k,Jr(s(m)),x,U,e,f))}return te!=null&&zn(te,null,k,E),P},d=(m,E,S,k,x,U)=>{U=U||!!E.dynamicChildren;const{type:H,props:V,patchFlag:Q,shapeFlag:te,dirs:X,transition:A}=E,R=H==="input"||H==="option";if(R||Q!==-1){X&&It(E,null,S,"created");let P=!1;if(w(m)){P=cu(null,A)&&S&&S.vnode.props&&S.vnode.props.appear;const O=m.content.firstChild;if(P){const Z=O.getAttribute("class");Z&&(O.$cls=Z),A.beforeEnter(O)}b(O,m,S),E.el=m=O}if(te&16&&!(V&&(V.innerHTML||V.textContent))){let O=p(m.firstChild,E,m,S,k,x,U);for(;O;){Xr(m,1)||In();const Z=O;O=O.nextSibling,a(Z)}}else if(te&8){let O=E.children;O[0]===`
|
|
15
|
+
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(O=O.slice(1));const{textContent:Z}=m;Z!==O&&Z!==O.replace(/\r\n|\r/g,`
|
|
16
|
+
`)&&(Xr(m,0)||In(),m.textContent=E.children)}if(V){if(R||!U||Q&48){const O=m.tagName.includes("-");for(const Z in V)(R&&(Z.endsWith("value")||Z==="indeterminate")||$r(Z)&&!yn(Z)||Z[0]==="."||O&&!yn(Z))&&r(m,Z,null,V[Z],void 0,S)}else if(V.onClick)r(m,"onClick",null,V.onClick,void 0,S);else if(Q&4&&nn(V.style))for(const O in V.style)V.style[O]}let z;(z=V&&V.onVnodeBeforeMount)&&bt(z,S,E),X&&It(E,null,S,"beforeMount"),((z=V&&V.onVnodeMounted)||X||P)&&hu(()=>{z&&bt(z,S,E),P&&A.enter(m),X&&It(E,null,S,"mounted")},k)}return m.nextSibling},p=(m,E,S,k,x,U,H)=>{H=H||!!E.dynamicChildren;const V=E.children,Q=V.length;for(let te=0;te<Q;te++){const X=H?V[te]:V[te]=mt(V[te]),A=X.type===wn;m?(A&&!H&&te+1<Q&&mt(V[te+1]).type===wn&&(l(i(m.data.slice(X.children.length)),S,o(m)),m.data=X.children),m=f(m,X,k,x,U,H)):A&&!X.children?l(X.el=i(""),S):(Xr(S,1)||In(),n(null,X,S,null,k,x,Jr(S),U))}return m},h=(m,E,S,k,x,U)=>{const{slotScopeIds:H}=E;H&&(x=x?x.concat(H):H);const V=s(m),Q=p(o(m),E,V,S,k,x,U);return Q&&Vn(Q)&&Q.data==="]"?o(E.anchor=Q):(In(),l(E.anchor=u("]"),V,Q),Q)},_=(m,E,S,k,x,U)=>{if(Xr(m.parentElement,1)||In(),E.el=null,U){const Q=v(m);for(;;){const te=o(m);if(te&&te!==Q)a(te);else break}}const H=o(m),V=s(m);return a(m),n(null,E,V,H,S,k,Jr(V),x),S&&(S.vnode.el=E.el,lo(S,E.el)),H},v=(m,E="[",S="]")=>{let k=0;for(;m;)if(m=o(m),m&&Vn(m)&&(m.data===E&&k++,m.data===S)){if(k===0)return o(m);k--}return m},b=(m,E,S)=>{const k=E.parentNode;k&&k.replaceChild(m,E);let x=S;for(;x;)x.vnode.el===E&&(x.vnode.el=x.subTree.el=m),x=x.parent},w=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const Na="data-allow-mismatch",yp={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Xr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Na);)e=e.parentElement;const n=e&&e.getAttribute(Na);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(yp[t])}}Zi().requestIdleCallback;Zi().cancelIdleCallback;function vp(e,t){if(Vn(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Vn(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const bn=e=>!!e.type.__asyncLoader;function Ma(e){ce(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,p()),p=()=>{let h;return u||(h=u=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),l)return new Promise((v,b)=>{l(_,()=>v(d()),()=>b(_),f+1)});throw _}).then(_=>h!==u&&u?u:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),c=_,_)))};return yt({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(h,_,v){let b=!1;(_.bu||(_.bu=[])).push(()=>b=!0);const w=()=>{b||v()},m=o?()=>{const E=o(w,S=>vp(h,S));E&&(_.bum||(_.bum=[])).push(E)}:w;c?m():p().then(()=>!_.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const h=Ge;if(qs(h),c)return()=>Yr(c,h);const _=m=>{u=null,rr(m,h,13,!r)};if(a&&h.suspense||An)return p().then(m=>()=>Yr(m,h)).catch(m=>(_(m),()=>r?ie(r,{error:m}):null));const v=ge(!1),b=ge(),w=ge(!!i);return i&&setTimeout(()=>{w.value=!1},i),s!=null&&setTimeout(()=>{if(!v.value&&!b.value){const m=new Error(`Async component timed out after ${s}ms.`);_(m),b.value=m}},s),p().then(()=>{v.value=!0,h.parent&&Ks(h.parent.vnode)&&h.parent.update()}).catch(m=>{_(m),b.value=m}),()=>{if(v.value&&c)return Yr(c,h);if(b.value&&r)return ie(r,{error:b.value});if(n&&!w.value)return Yr(n,h)}}})}function Yr(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,s=ie(e,r,i);return s.ref=n,s.ce=o,delete t.vnode.ce,s}const Ks=e=>e.type.__isKeepAlive;function $c(e,t){Bc(e,"a",t)}function jc(e,t){Bc(e,"da",t)}function Bc(e,t,n=Ge){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(so(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Ks(i.parent.vnode)&&bp(r,t,n,i),i=i.parent}}function bp(e,t,n,r){const i=so(t,e,r,!0);Js(()=>{Ds(r[t],i)},n)}function so(e,t,n=Ge,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{Kt();const a=or(n),l=jt(t,n,e,s);return a(),Jt(),l});return r?i.unshift(o):i.push(o),o}}const Yt=e=>(t,n=Ge)=>{(!An||e==="sp")&&so(e,(...r)=>t(...r),n)},Fc=Yt("bm"),ir=Yt("m"),Ep=Yt("bu"),wp=Yt("u"),Hr=Yt("bum"),Js=Yt("um"),Sp=Yt("sp"),Tp=Yt("rtg"),Ap=Yt("rtc");function Hc(e,t=Ge){so("ec",e,t)}const Uc="components";function Va(e,t){return Wc(Uc,e,!0,t)||e}const zc=Symbol.for("v-ndc");function Gc(e){return ke(e)?Wc(Uc,e,!1)||e:e||zc}function Wc(e,t,n=!0,r=!1){const i=We||Ge;if(i){const o=i.type;{const a=ph(o,!1);if(a&&(a===t||a===st(t)||a===Yi(st(t))))return o}const s=$a(i[e]||o[e],t)||$a(i.appContext[e],t);return!s&&r?o:s}}function $a(e,t){return e&&(e[t]||e[st(t)]||e[Yi(st(t))])}function qc(e,t,n,r){let i;const o=n,s=se(e);if(s||ke(e)){const a=s&&nn(e);let l=!1,u=!1;a&&(l=!gt(e),u=$t(e),e=to(e)),i=new Array(e.length);for(let c=0,f=e.length;c<f;c++)i[c]=t(l?u?Xn(Ct(e[c])):Ct(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o)}else if(Ee(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=t(e[c],c,l,o)}}else i=[];return i}function rt(e,t,n={},r,i){if(We.ce||We.parent&&bn(We.parent)&&We.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),ee(),Oe(Ue,null,[ie("slot",n,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),ee();const s=o&&Kc(o(n)),a=n.key||s&&s.key,l=Oe(Ue,{key:(a&&!_t(a)?a:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Kc(e){return e.some(t=>Qn(t)?!(t.type===wt||t.type===Ue&&!Kc(t.children)):!0)?e:null}const Zo=e=>e?vu(e)?co(e):Zo(e.parent):null,Er=Je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zo(e.parent),$root:e=>Zo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xc(e),$forceUpdate:e=>e.f||(e.f=()=>{Us(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>lp.bind(e)}),Ro=(e,t)=>e!==Te&&!e.__isScriptSetup&&ve(e,t),Rp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=e;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Ro(r,t))return s[t]=1,r[t];if(i!==Te&&ve(i,t))return s[t]=2,i[t];if(ve(o,t))return s[t]=3,o[t];if(n!==Te&&ve(n,t))return s[t]=4,n[t];es&&(s[t]=0)}}const u=Er[t];let c,f;if(u)return t==="$attrs"&&et(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Te&&ve(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,ve(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Ro(i,t)?(i[t]=n,!0):r!==Te&&ve(r,t)?(r[t]=n,!0):ve(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:i,props:o,type:s}},a){let l;return!!(n[a]||e!==Te&&a[0]!=="$"&&ve(e,a)||Ro(t,a)||ve(o,a)||ve(r,a)||ve(Er,a)||ve(i.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Pp(){return Cp().slots}function Cp(e){const t=St();return t.setupContext||(t.setupContext=Eu(t))}function ja(e){return se(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function kp(e){const t=St(),n=An;let r=e();xr(),n&&Wn(!1);const i=()=>{or(t),n&&Wn(!0)},o=()=>{St()!==t&&t.scope.off(),xr(),n&&Wn(!1)};return Ns(r)&&(r=r.catch(s=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(o)),s})),[r,()=>{i(),Promise.resolve().then(o)}]}let es=!0;function Lp(e){const t=Xc(e),n=e.proxy,r=e.ctx;es=!1,t.beforeCreate&&Ba(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:_,deactivated:v,beforeDestroy:b,beforeUnmount:w,destroyed:m,unmounted:E,render:S,renderTracked:k,renderTriggered:x,errorCaptured:U,serverPrefetch:H,expose:V,inheritAttrs:Q,components:te,directives:X,filters:A}=t;if(u&&xp(u,r,null),s)for(const z in s){const O=s[z];ce(O)&&(r[z]=O.bind(n))}if(i){const z=i.call(n,n);Ee(z)&&(e.data=Vt(z))}if(es=!0,o)for(const z in o){const O=o[z],Z=ce(O)?O.bind(n,n):ce(O.get)?O.get.bind(n,n):Mt,re=!ce(O)&&ce(O.set)?O.set.bind(n):Mt,fe=he({get:Z,set:re});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>fe.value,set:le=>fe.value=le})}if(a)for(const z in a)Jc(a[z],r,n,z);if(l){const z=ce(l)?l.call(n):l;Reflect.ownKeys(z).forEach(O=>{Ft(O,z[O])})}c&&Ba(c,e,"c");function P(z,O){se(O)?O.forEach(Z=>z(Z.bind(n))):O&&z(O.bind(n))}if(P(Fc,f),P(ir,d),P(Ep,p),P(wp,h),P($c,_),P(jc,v),P(Hc,U),P(Ap,k),P(Tp,x),P(Hr,w),P(Js,E),P(Sp,H),se(V))if(V.length){const z=e.exposed||(e.exposed={});V.forEach(O=>{Object.defineProperty(z,O,{get:()=>n[O],set:Z=>n[O]=Z,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===Mt&&(e.render=S),Q!=null&&(e.inheritAttrs=Q),te&&(e.components=te),X&&(e.directives=X),H&&qs(e)}function xp(e,t,n=Mt){se(e)&&(e=ts(e));for(const r in e){const i=e[r];let o;Ee(i)?"default"in i?o=ht(i.from||r,i.default,!0):o=ht(i.from||r):o=ht(i),be(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[r]=o}}function Ba(e,t,n){jt(se(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Jc(e,t,n,r){let i=r.includes(".")?Mc(n,r):()=>n[r];if(ke(e)){const o=t[e];ce(o)&&Ke(i,o)}else if(ce(e))Ke(i,e.bind(n));else if(Ee(e))if(se(e))e.forEach(o=>Jc(o,t,n,r));else{const o=ce(e.handler)?e.handler.bind(n):t[e.handler];ce(o)&&Ke(i,o,e)}}function Xc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>Ti(l,u,s,!0)),Ti(l,t,s)),Ee(t)&&o.set(t,l),l}function Ti(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Ti(e,o,n,!0),i&&i.forEach(s=>Ti(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=Op[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Op={data:Fa,props:Ha,emits:Ha,methods:mr,computed:mr,beforeCreate:it,created:it,beforeMount:it,mounted:it,beforeUpdate:it,updated:it,beforeDestroy:it,beforeUnmount:it,destroyed:it,unmounted:it,activated:it,deactivated:it,errorCaptured:it,serverPrefetch:it,components:mr,directives:mr,watch:Dp,provide:Fa,inject:Ip};function Fa(e,t){return t?e?function(){return Je(ce(e)?e.call(this,this):e,ce(t)?t.call(this,this):t)}:t:e}function Ip(e,t){return mr(ts(e),ts(t))}function ts(e){if(se(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function it(e,t){return e?[...new Set([].concat(e,t))]:t}function mr(e,t){return e?Je(Object.create(null),e,t):t}function Ha(e,t){return e?se(e)&&se(t)?[...new Set([...e,...t])]:Je(Object.create(null),ja(e),ja(t??{})):t}function Dp(e,t){if(!e)return t;if(!t)return e;const n=Je(Object.create(null),e);for(const r in t)n[r]=it(e[r],t[r]);return n}function Yc(){return{app:null,config:{isNativeTag:sc,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 Np=0;function Mp(e,t){return function(r,i=null){ce(r)||(r=Je({},r)),i!=null&&!Ee(i)&&(i=null);const o=Yc(),s=new WeakSet,a=[];let l=!1;const u=o.app={_uid:Np++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:mh,get config(){return o.config},set config(c){},use(c,...f){return s.has(c)||(c&&ce(c.install)?(s.add(c),c.install(u,...f)):ce(c)&&(s.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const p=u._ceVNode||ie(r,i);return p.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(p,c):e(p,c,d),l=!0,u._container=c,c.__vue_app__=u,co(p.component)}},onUnmount(c){a.push(c)},unmount(){l&&(jt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=En;En=u;try{return c()}finally{En=f}}};return u}}let En=null;const Vp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${Cn(t)}Modifiers`];function $p(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Te;let i=n;const o=t.startsWith("update:"),s=o&&Vp(r,t.slice(7));s&&(s.trim&&(i=n.map(c=>ke(c)?c.trim():c)),s.number&&(i=n.map(Qi)));let a,l=r[a=Eo(t)]||r[a=Eo(st(t))];!l&&o&&(l=r[a=Eo(Cn(t))]),l&&jt(l,e,6,i);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,jt(u,e,6,i)}}const jp=new WeakMap;function Qc(e,t,n=!1){const r=n?jp:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let s={},a=!1;if(!ce(e)){const l=u=>{const c=Qc(u,t,!0);c&&(a=!0,Je(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Ee(e)&&r.set(e,null),null):(se(o)?o.forEach(l=>s[l]=null):Je(s,o),Ee(e)&&r.set(e,s),s)}function ao(e,t){return!e||!$r(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,Cn(t))||ve(e,t))}function Po(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:p,ctx:h,inheritAttrs:_}=e,v=wi(e);let b,w;try{if(n.shapeFlag&4){const E=i||r,S=E;b=mt(u.call(S,E,c,f,p,d,h)),w=a}else{const E=t;b=mt(E.length>1?E(f,{attrs:a,slots:s,emit:l}):E(f,null)),w=t.props?a:Fp(a)}}catch(E){wr.length=0,rr(E,e,1),b=ie(wt)}let m=b;if(w&&_!==!1){const E=Object.keys(w),{shapeFlag:S}=m;E.length&&S&7&&(o&&E.some(Ki)&&(w=Hp(w,o)),m=Zn(m,w,!1,!0))}return n.dirs&&(m=Zn(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Ws(m,n.transition),b=m,wi(v),b}function Bp(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(Qn(i)){if(i.type!==wt||i.children==="v-if"){if(n)return;n=i}}else return}return n}const Fp=e=>{let t;for(const n in e)(n==="class"||n==="style"||$r(n))&&((t||(t={}))[n]=e[n]);return t},Hp=(e,t)=>{const n={};for(const r in e)(!Ki(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Up(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ua(r,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(Zc(s,r,d)&&!ao(u,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?Ua(r,s,u):!0:!!s;return!1}function Ua(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(Zc(t,e,o)&&!ao(n,o))return!0}return!1}function Zc(e,t,n){const r=e[n],i=t[n];return n==="style"&&Ee(r)&&Ee(i)?!on(r,i):r!==i}function lo({vnode:e,parent:t,suspense:n},r){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=r,e=i),i===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const eu={},tu=()=>Object.create(eu),nu=e=>Object.getPrototypeOf(e)===eu;function zp(e,t,n,r=!1){const i={},o=tu();e.propsDefaults=Object.create(null),ru(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:pn(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Gp(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=ye(i),[l]=e.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(ao(e.emitsOptions,d))continue;const p=t[d];if(l)if(ve(o,d))p!==o[d]&&(o[d]=p,u=!0);else{const h=st(d);i[h]=ns(l,a,h,p,e,!1)}else p!==o[d]&&(o[d]=p,u=!0)}}}else{ru(e,t,i,o)&&(u=!0);let c;for(const f in a)(!t||!ve(t,f)&&((c=Cn(f))===f||!ve(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=ns(l,a,f,void 0,e,!0)):delete i[f]);if(o!==a)for(const f in o)(!t||!ve(t,f))&&(delete o[f],u=!0)}u&&zt(e.attrs,"set","")}function ru(e,t,n,r){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(yn(l))continue;const u=t[l];let c;i&&ve(i,c=st(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:ao(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,s=!0)}if(o){const l=ye(n),u=a||Te;for(let c=0;c<o.length;c++){const f=o[c];n[f]=ns(i,l,f,u[f],e,!ve(u,f))}}return s}function ns(e,t,n,r,i,o){const s=e[n];if(s!=null){const a=ve(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&ce(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=or(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===Cn(n))&&(r=!0))}return r}const Wp=new WeakMap;function iu(e,t,n=!1){const r=n?Wp:t.propsCache,i=r.get(e);if(i)return i;const o=e.props,s={},a=[];let l=!1;if(!ce(e)){const c=f=>{l=!0;const[d,p]=iu(f,t,!0);Je(s,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return Ee(e)&&r.set(e,Fn),Fn;if(se(o))for(let c=0;c<o.length;c++){const f=st(o[c]);za(f)&&(s[f]=Te)}else if(o)for(const c in o){const f=st(c);if(za(f)){const d=o[c],p=s[f]=se(d)||ce(d)?{type:d}:Je({},d),h=p.type;let _=!1,v=!0;if(se(h))for(let b=0;b<h.length;++b){const w=h[b],m=ce(w)&&w.name;if(m==="Boolean"){_=!0;break}else m==="String"&&(v=!1)}else _=ce(h)&&h.name==="Boolean";p[0]=_,p[1]=v,(_||ve(p,"default"))&&a.push(f)}}const u=[s,a];return Ee(e)&&r.set(e,u),u}function za(e){return e[0]!=="$"&&!yn(e)}const Xs=e=>e==="_"||e==="_ctx"||e==="$stable",Ys=e=>se(e)?e.map(mt):[mt(e)],qp=(e,t,n)=>{if(t._n)return t;const r=Ce((...i)=>Ys(t(...i)),n);return r._c=!1,r},ou=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Xs(i))continue;const o=e[i];if(ce(o))t[i]=qp(i,o,r);else if(o!=null){const s=Ys(o);t[i]=()=>s}}},su=(e,t)=>{const n=Ys(t);e.slots.default=()=>n},au=(e,t,n)=>{for(const r in t)(n||!Xs(r))&&(e[r]=t[r])},Kp=(e,t,n)=>{const r=e.slots=tu();if(e.vnode.shapeFlag&32){const i=t._;i?(au(r,t,n),n&&lc(r,"_",i,!0)):ou(t,r)}else t&&su(e,t)},Jp=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=Te;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:au(i,t,n):(o=!t.$stable,ou(t,i)),s=t}else t&&(su(e,t),s={default:1});if(o)for(const a in i)!Xs(a)&&s[a]==null&&delete i[a]},Ze=hu;function Xp(e){return lu(e)}function Yp(e){return lu(e,_p)}function lu(e,t){const n=Zi();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=Mt,insertStaticContent:h}=e,_=(y,T,C,N=null,I=null,D=null,J=void 0,K=null,G=!!T.dynamicChildren)=>{if(y===T)return;y&&!en(y,T)&&(N=L(y),le(y,I,D,!0),y=null),T.patchFlag===-2&&(G=!1,T.dynamicChildren=null);const{type:M,ref:ae,shapeFlag:Y}=T;switch(M){case wn:v(y,T,C,N);break;case wt:b(y,T,C,N);break;case fi:y==null&&w(T,C,N,J);break;case Ue:te(y,T,C,N,I,D,J,K,G);break;default:Y&1?S(y,T,C,N,I,D,J,K,G):Y&6?X(y,T,C,N,I,D,J,K,G):(Y&64||Y&128)&&M.process(y,T,C,N,I,D,J,K,G,B)}ae!=null&&I?zn(ae,y&&y.ref,D,T||y,!T):ae==null&&y&&y.ref!=null&&zn(y.ref,null,D,y,!0)},v=(y,T,C,N)=>{if(y==null)r(T.el=a(T.children),C,N);else{const I=T.el=y.el;T.children!==y.children&&u(I,T.children)}},b=(y,T,C,N)=>{y==null?r(T.el=l(T.children||""),C,N):T.el=y.el},w=(y,T,C,N)=>{[y.el,y.anchor]=h(y.children,T,C,N,y.el,y.anchor)},m=({el:y,anchor:T},C,N)=>{let I;for(;y&&y!==T;)I=d(y),r(y,C,N),y=I;r(T,C,N)},E=({el:y,anchor:T})=>{let C;for(;y&&y!==T;)C=d(y),i(y),y=C;i(T)},S=(y,T,C,N,I,D,J,K,G)=>{if(T.type==="svg"?J="svg":T.type==="math"&&(J="mathml"),y==null)k(T,C,N,I,D,J,K,G);else{const M=y.el&&y.el._isVueCE?y.el:null;try{M&&M._beginPatch(),H(y,T,I,D,J,K,G)}finally{M&&M._endPatch()}}},k=(y,T,C,N,I,D,J,K)=>{let G,M;const{props:ae,shapeFlag:Y,transition:ne,dirs:ue}=y;if(G=y.el=s(y.type,D,ae&&ae.is,ae),Y&8?c(G,y.children):Y&16&&U(y.children,G,null,N,I,Co(y,D),J,K),ue&&It(y,null,N,"created"),x(G,y,y.scopeId,J,N),ae){for(const Se in ae)Se!=="value"&&!yn(Se)&&o(G,Se,null,ae[Se],D,N);"value"in ae&&o(G,"value",null,ae.value,D),(M=ae.onVnodeBeforeMount)&&bt(M,N,y)}ue&&It(y,null,N,"beforeMount");const _e=cu(I,ne);_e&&ne.beforeEnter(G),r(G,T,C),((M=ae&&ae.onVnodeMounted)||_e||ue)&&Ze(()=>{try{M&&bt(M,N,y),_e&&ne.enter(G),ue&&It(y,null,N,"mounted")}finally{}},I)},x=(y,T,C,N,I)=>{if(C&&p(y,C),N)for(let D=0;D<N.length;D++)p(y,N[D]);if(I){let D=I.subTree;if(T===D||du(D.type)&&(D.ssContent===T||D.ssFallback===T)){const J=I.vnode;x(y,J,J.scopeId,J.slotScopeIds,I.parent)}}},U=(y,T,C,N,I,D,J,K,G=0)=>{for(let M=G;M<y.length;M++){const ae=y[M]=K?Ut(y[M]):mt(y[M]);_(null,ae,T,C,N,I,D,J,K)}},H=(y,T,C,N,I,D,J)=>{const K=T.el=y.el;let{patchFlag:G,dynamicChildren:M,dirs:ae}=T;G|=y.patchFlag&16;const Y=y.props||Te,ne=T.props||Te;let ue;if(C&&ln(C,!1),(ue=ne.onVnodeBeforeUpdate)&&bt(ue,C,T,y),ae&&It(T,y,C,"beforeUpdate"),C&&ln(C,!0),(Y.innerHTML&&ne.innerHTML==null||Y.textContent&&ne.textContent==null)&&c(K,""),M?V(y.dynamicChildren,M,K,C,N,Co(T,I),D):J||O(y,T,K,null,C,N,Co(T,I),D,!1),G>0){if(G&16)Q(K,Y,ne,C,I);else if(G&2&&Y.class!==ne.class&&o(K,"class",null,ne.class,I),G&4&&o(K,"style",Y.style,ne.style,I),G&8){const _e=T.dynamicProps;for(let Se=0;Se<_e.length;Se++){const Ae=_e[Se],Ne=Y[Ae],$e=ne[Ae];($e!==Ne||Ae==="value")&&o(K,Ae,Ne,$e,I,C)}}G&1&&y.children!==T.children&&c(K,T.children)}else!J&&M==null&&Q(K,Y,ne,C,I);((ue=ne.onVnodeUpdated)||ae)&&Ze(()=>{ue&&bt(ue,C,T,y),ae&&It(T,y,C,"updated")},N)},V=(y,T,C,N,I,D,J)=>{for(let K=0;K<T.length;K++){const G=y[K],M=T[K],ae=G.el&&(G.type===Ue||!en(G,M)||G.shapeFlag&198)?f(G.el):C;_(G,M,ae,null,N,I,D,J,!0)}},Q=(y,T,C,N,I)=>{if(T!==C){if(T!==Te)for(const D in T)!yn(D)&&!(D in C)&&o(y,D,T[D],null,I,N);for(const D in C){if(yn(D))continue;const J=C[D],K=T[D];J!==K&&D!=="value"&&o(y,D,K,J,I,N)}"value"in C&&o(y,"value",T.value,C.value,I)}},te=(y,T,C,N,I,D,J,K,G)=>{const M=T.el=y?y.el:a(""),ae=T.anchor=y?y.anchor:a("");let{patchFlag:Y,dynamicChildren:ne,slotScopeIds:ue}=T;ue&&(K=K?K.concat(ue):ue),y==null?(r(M,C,N),r(ae,C,N),U(T.children||[],C,ae,I,D,J,K,G)):Y>0&&Y&64&&ne&&y.dynamicChildren&&y.dynamicChildren.length===ne.length?(V(y.dynamicChildren,ne,C,I,D,J,K),(T.key!=null||I&&T===I.subTree)&&Qs(y,T,!0)):O(y,T,C,ae,I,D,J,K,G)},X=(y,T,C,N,I,D,J,K,G)=>{T.slotScopeIds=K,y==null?T.shapeFlag&512?I.ctx.activate(T,C,N,J,G):A(T,C,N,I,D,J,G):R(y,T,G)},A=(y,T,C,N,I,D,J)=>{const K=y.component=ch(y,N,I);if(Ks(y)&&(K.ctx.renderer=B),uh(K,!1,J),K.asyncDep){if(I&&I.registerDep(K,P,J),!y.el){const G=K.subTree=ie(wt);b(null,G,T,C),y.placeholder=G.el}}else P(K,y,T,C,I,D,J)},R=(y,T,C)=>{const N=T.component=y.component;if(Up(y,T,C))if(N.asyncDep&&!N.asyncResolved){z(N,T,C);return}else N.next=T,N.update();else T.el=y.el,N.vnode=T},P=(y,T,C,N,I,D,J)=>{const K=()=>{if(y.isMounted){let{next:Y,bu:ne,u:ue,parent:_e,vnode:Se}=y;{const ut=uu(y);if(ut){Y&&(Y.el=Se.el,z(y,Y,J)),ut.asyncDep.then(()=>{Ze(()=>{y.isUnmounted||M()},I)});return}}let Ae=Y,Ne;ln(y,!1),Y?(Y.el=Se.el,z(y,Y,J)):Y=Se,ne&&ui(ne),(Ne=Y.props&&Y.props.onVnodeBeforeUpdate)&&bt(Ne,_e,Y,Se),ln(y,!0);const $e=Po(y),Tt=y.subTree;y.subTree=$e,_(Tt,$e,f(Tt.el),L(Tt),y,I,D),Y.el=$e.el,Ae===null&&lo(y,$e.el),ue&&Ze(ue,I),(Ne=Y.props&&Y.props.onVnodeUpdated)&&Ze(()=>bt(Ne,_e,Y,Se),I)}else{let Y;const{el:ne,props:ue}=T,{bm:_e,m:Se,parent:Ae,root:Ne,type:$e}=y,Tt=bn(T);if(ln(y,!1),_e&&ui(_e),!Tt&&(Y=ue&&ue.onVnodeBeforeMount)&&bt(Y,Ae,T),ln(y,!0),ne&&oe){const ut=()=>{y.subTree=Po(y),oe(ne,y.subTree,y,I,null)};Tt&&$e.__asyncHydrate?$e.__asyncHydrate(ne,y,ut):ut()}else{Ne.ce&&Ne.ce._hasShadowRoot()&&Ne.ce._injectChildStyle($e,y.parent?y.parent.type:void 0);const ut=y.subTree=Po(y);_(null,ut,C,N,y,I,D),T.el=ut.el}if(Se&&Ze(Se,I),!Tt&&(Y=ue&&ue.onVnodeMounted)){const ut=T;Ze(()=>bt(Y,Ae,ut),I)}(T.shapeFlag&256||Ae&&bn(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&y.a&&Ze(y.a,I),y.isMounted=!0,T=C=N=null}};y.scope.on();const G=y.effect=new pc(K);y.scope.off();const M=y.update=G.run.bind(G),ae=y.job=G.runIfDirty.bind(G);ae.i=y,ae.id=y.uid,G.scheduler=()=>Us(ae),ln(y,!0),M()},z=(y,T,C)=>{T.component=y;const N=y.vnode.props;y.vnode=T,y.next=null,Gp(y,T.props,N,C),Jp(y,T.children,C),Kt(),ka(y),Jt()},O=(y,T,C,N,I,D,J,K,G=!1)=>{const M=y&&y.children,ae=y?y.shapeFlag:0,Y=T.children,{patchFlag:ne,shapeFlag:ue}=T;if(ne>0){if(ne&128){re(M,Y,C,N,I,D,J,K,G);return}else if(ne&256){Z(M,Y,C,N,I,D,J,K,G);return}}ue&8?(ae&16&&Ye(M,I,D),Y!==M&&c(C,Y)):ae&16?ue&16?re(M,Y,C,N,I,D,J,K,G):Ye(M,I,D,!0):(ae&8&&c(C,""),ue&16&&U(Y,C,N,I,D,J,K,G))},Z=(y,T,C,N,I,D,J,K,G)=>{y=y||Fn,T=T||Fn;const M=y.length,ae=T.length,Y=Math.min(M,ae);let ne;for(ne=0;ne<Y;ne++){const ue=T[ne]=G?Ut(T[ne]):mt(T[ne]);_(y[ne],ue,C,null,I,D,J,K,G)}M>ae?Ye(y,I,D,!0,!1,Y):U(T,C,N,I,D,J,K,G,Y)},re=(y,T,C,N,I,D,J,K,G)=>{let M=0;const ae=T.length;let Y=y.length-1,ne=ae-1;for(;M<=Y&&M<=ne;){const ue=y[M],_e=T[M]=G?Ut(T[M]):mt(T[M]);if(en(ue,_e))_(ue,_e,C,null,I,D,J,K,G);else break;M++}for(;M<=Y&&M<=ne;){const ue=y[Y],_e=T[ne]=G?Ut(T[ne]):mt(T[ne]);if(en(ue,_e))_(ue,_e,C,null,I,D,J,K,G);else break;Y--,ne--}if(M>Y){if(M<=ne){const ue=ne+1,_e=ue<ae?T[ue].el:N;for(;M<=ne;)_(null,T[M]=G?Ut(T[M]):mt(T[M]),C,_e,I,D,J,K,G),M++}}else if(M>ne)for(;M<=Y;)le(y[M],I,D,!0),M++;else{const ue=M,_e=M,Se=new Map;for(M=_e;M<=ne;M++){const ft=T[M]=G?Ut(T[M]):mt(T[M]);ft.key!=null&&Se.set(ft.key,M)}let Ae,Ne=0;const $e=ne-_e+1;let Tt=!1,ut=0;const lr=new Array($e);for(M=0;M<$e;M++)lr[M]=0;for(M=ue;M<=Y;M++){const ft=y[M];if(Ne>=$e){le(ft,I,D,!0);continue}let kt;if(ft.key!=null)kt=Se.get(ft.key);else for(Ae=_e;Ae<=ne;Ae++)if(lr[Ae-_e]===0&&en(ft,T[Ae])){kt=Ae;break}kt===void 0?le(ft,I,D,!0):(lr[kt-_e]=M+1,kt>=ut?ut=kt:Tt=!0,_(ft,T[kt],C,null,I,D,J,K,G),Ne++)}const wa=Tt?Qp(lr):Fn;for(Ae=wa.length-1,M=$e-1;M>=0;M--){const ft=_e+M,kt=T[ft],Sa=T[ft+1],Ta=ft+1<ae?Sa.el||fu(Sa):N;lr[M]===0?_(null,kt,C,Ta,I,D,J,K,G):Tt&&(Ae<0||M!==wa[Ae]?fe(kt,C,Ta,2):Ae--)}}},fe=(y,T,C,N,I=null)=>{const{el:D,type:J,transition:K,children:G,shapeFlag:M}=y;if(M&6){fe(y.component.subTree,T,C,N);return}if(M&128){y.suspense.move(T,C,N);return}if(M&64){J.move(y,T,C,B);return}if(J===Ue){r(D,T,C);for(let Y=0;Y<G.length;Y++)fe(G[Y],T,C,N);r(y.anchor,T,C);return}if(J===fi){m(y,T,C);return}if(N!==2&&M&1&&K)if(N===0)K.beforeEnter(D),r(D,T,C),Ze(()=>K.enter(D),I);else{const{leave:Y,delayLeave:ne,afterLeave:ue}=K,_e=()=>{y.ctx.isUnmounted?i(D):r(D,T,C)},Se=()=>{D._isLeaving&&D[hp](!0),Y(D,()=>{_e(),ue&&ue()})};ne?ne(D,_e,Se):Se()}else r(D,T,C)},le=(y,T,C,N=!1,I=!1)=>{const{type:D,props:J,ref:K,children:G,dynamicChildren:M,shapeFlag:ae,patchFlag:Y,dirs:ne,cacheIndex:ue,memo:_e}=y;if(Y===-2&&(I=!1),K!=null&&(Kt(),zn(K,null,C,y,!0),Jt()),ue!=null&&(T.renderCache[ue]=void 0),ae&256){T.ctx.deactivate(y);return}const Se=ae&1&&ne,Ae=!bn(y);let Ne;if(Ae&&(Ne=J&&J.onVnodeBeforeUnmount)&&bt(Ne,T,y),ae&6)we(y.component,C,N);else{if(ae&128){y.suspense.unmount(C,N);return}Se&&It(y,null,T,"beforeUnmount"),ae&64?y.type.remove(y,T,C,B,N):M&&!M.hasOnce&&(D!==Ue||Y>0&&Y&64)?Ye(M,T,C,!1,!0):(D===Ue&&Y&384||!I&&ae&16)&&Ye(G,T,C),N&&Le(y)}const $e=_e!=null&&ue==null;(Ae&&(Ne=J&&J.onVnodeUnmounted)||Se||$e)&&Ze(()=>{Ne&&bt(Ne,T,y),Se&&It(y,null,T,"unmounted"),$e&&(y.el=null)},C)},Le=y=>{const{type:T,el:C,anchor:N,transition:I}=y;if(T===Ue){De(C,N);return}if(T===fi){E(y);return}const D=()=>{i(C),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(y.shapeFlag&1&&I&&!I.persisted){const{leave:J,delayLeave:K}=I,G=()=>J(C,D);K?K(y.el,D,G):G()}else D()},De=(y,T)=>{let C;for(;y!==T;)C=d(y),i(y),y=C;i(T)},we=(y,T,C)=>{const{bum:N,scope:I,job:D,subTree:J,um:K,m:G,a:M}=y;Ga(G),Ga(M),N&&ui(N),I.stop(),D&&(D.flags|=8,le(J,y,T,C)),K&&Ze(K,T),Ze(()=>{y.isUnmounted=!0},T)},Ye=(y,T,C,N=!1,I=!1,D=0)=>{for(let J=D;J<y.length;J++)le(y[J],T,C,N,I)},L=y=>{if(y.shapeFlag&6)return L(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const T=d(y.anchor||y.el),C=T&&T[Vc];return C?d(C):T};let $=!1;const W=(y,T,C)=>{let N;y==null?T._vnode&&(le(T._vnode,null,null,!0),N=T._vnode.component):_(T._vnode||null,y,T,null,null,null,C),T._vnode=y,$||($=!0,ka(N),Ei(),$=!1)},B={p:_,um:le,m:fe,r:Le,mt:A,mc:U,pc:O,pbc:V,n:L,o:e};let q,oe;return t&&([q,oe]=t(B)),{render:W,hydrate:q,createApp:Mp(W,q)}}function Co({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 ln({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function cu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Qs(e,t,n=!1){const r=e.children,i=t.children;if(se(r)&&se(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Ut(i[o]),a.el=s.el),!n&&a.patchFlag!==-2&&Qs(s,a)),a.type===wn&&(a.patchFlag===-1&&(a=i[o]=Ut(a)),a.el=s.el),a.type===wt&&!a.el&&(a.el=s.el)}}function Qp(e){const t=e.slice(),n=[0];let r,i,o,s,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,e[n[a]]<u?o=a+1:s=a;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}function uu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:uu(t)}function Ga(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function fu(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?fu(t.subTree):null}const du=e=>e.__isSuspense;let rs=0;const Zp={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,s,a,l,u){if(e==null)th(t,n,r,i,o,s,a,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}nh(e,t,n,r,i,s,a,l,u)}},hydrate:rh,normalize:ih},eh=Zp;function Lr(e,t){const n=e.props&&e.props[t];ce(n)&&n()}function th(e,t,n,r,i,o,s,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=pu(e,i,r,t,f,n,o,s,a,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,s),d.deps>0?(Lr(e,"onPending"),Lr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,s),Gn(d,e.ssFallback)):d.resolve(!1,!0)}function nh(e,t,n,r,i,o,s,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:_,isInFallback:v,isHydrating:b}=f;if(_)f.pendingBranch=d,en(_,d)?(l(_,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():v&&(b||(l(h,p,n,r,i,null,o,s,a),Gn(f,p)))):(f.pendingId=rs++,b?(f.isHydrating=!1,f.activeBranch=_):u(_,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),v?(l(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():(l(h,p,n,r,i,null,o,s,a),Gn(f,p))):h&&en(h,d)?(l(h,d,n,r,i,f,o,s,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0&&f.resolve()));else if(h&&en(h,d))l(h,d,n,r,i,f,o,s,a),Gn(f,d);else if(Lr(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=rs++,l(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0)f.resolve();else{const{timeout:w,pendingId:m}=f;w>0?setTimeout(()=>{f.pendingId===m&&f.fallback(p)},w):w===0&&f.fallback(p)}}function pu(e,t,n,r,i,o,s,a,l,u,c=!1){const{p:f,m:d,um:p,n:h,o:{parentNode:_,remove:v}}=u;let b;const w=oh(e);w&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const m=e.props?_d(e.props.timeout):void 0,E=o,S={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:rs++,timeout:typeof m=="number"?m:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(k=!1,x=!1){const{vnode:U,activeBranch:H,pendingBranch:V,pendingId:Q,effects:te,parentComponent:X,container:A,isInFallback:R}=S;let P=!1;if(S.isHydrating)S.isHydrating=!1;else if(!k){P=H&&V.transition&&V.transition.mode==="out-in";let Z=!1;P&&(H.transition.afterLeave=()=>{Q===S.pendingId&&(d(V,A,o===E&&!Z?h(H):o,0),Cr(te),R&&U.ssFallback&&(U.ssFallback.el=null))}),H&&!S.isFallbackMountPending&&(_(H.el)===A&&(o=h(H),Z=!0),p(H,X,S,!0),!P&&R&&U.ssFallback&&Ze(()=>U.ssFallback.el=null,S)),P||d(V,A,o,0)}S.isFallbackMountPending=!1,Gn(S,V),S.pendingBranch=null,S.isInFallback=!1;let z=S.parent,O=!1;for(;z;){if(z.pendingBranch){z.effects.push(...te),O=!0;break}z=z.parent}!O&&!P&&Cr(te),S.effects=[],w&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),Lr(U,"onResolve")},fallback(k){if(!S.pendingBranch)return;const{vnode:x,activeBranch:U,parentComponent:H,container:V,namespace:Q}=S;Lr(x,"onFallback");const te=h(U),X=()=>{S.isFallbackMountPending=!1,S.isInFallback&&(f(null,k,V,te,H,null,Q,a,l),Gn(S,k))},A=k.transition&&k.transition.mode==="out-in";A&&(S.isFallbackMountPending=!0,U.transition.afterLeave=X),S.isInFallback=!0,p(U,H,null,!0),A||X()},move(k,x,U){S.activeBranch&&d(S.activeBranch,k,x,U),S.container=k},next(){return S.activeBranch&&h(S.activeBranch)},registerDep(k,x,U){const H=!!S.pendingBranch;H&&S.deps++;const V=k.vnode.el;k.asyncDep.catch(Q=>{rr(Q,k,0)}).then(Q=>{if(k.isUnmounted||S.isUnmounted||S.pendingId!==k.suspenseId)return;xr(),k.asyncResolved=!0;const{vnode:te}=k;is(k,Q),V&&(te.el=V);const X=!V&&k.subTree.el;x(k,te,_(V||k.subTree.el),V?null:h(k.subTree),S,s,U),X&&(te.placeholder=null,v(X)),lo(k,te.el),H&&--S.deps===0&&S.resolve()})},unmount(k,x){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,k,x),S.pendingBranch&&p(S.pendingBranch,n,k,x)}};return S}function rh(e,t,n,r,i,o,s,a,l){const u=t.suspense=pu(t,r,n,e.parentNode,document.createElement("div"),null,i,o,s,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,s);return u.deps===0&&u.resolve(!1,!0),c}function ih(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Wa(r?n.default:n),e.ssFallback=r?Wa(n.fallback):ie(wt)}function Wa(e){let t;if(ce(e)){const n=Yn&&e._c;n&&(e._d=!1,ee()),e=e(),n&&(e._d=!0,t=lt,mu())}return se(e)&&(e=Bp(e)),e=mt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function hu(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):Cr(e)}function Gn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,lo(r,i))}function oh(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ue=Symbol.for("v-fgt"),wn=Symbol.for("v-txt"),wt=Symbol.for("v-cmt"),fi=Symbol.for("v-stc"),wr=[];let lt=null;function ee(e=!1){wr.push(lt=e?null:[])}function mu(){wr.pop(),lt=wr[wr.length-1]||null}let Yn=1;function Ai(e,t=!1){Yn+=e,e<0&<&&t&&(lt.hasOnce=!0)}function gu(e){return e.dynamicChildren=Yn>0?lt||Fn:null,mu(),Yn>0&<&<.push(e),e}function me(e,t,n,r,i,o){return gu(pe(e,t,n,r,i,o,!0))}function Oe(e,t,n,r,i){return gu(ie(e,t,n,r,i,!0))}function Qn(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const _u=({key:e})=>e??null,di=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||be(e)||ce(e)?{i:We,r:e,k:t,f:!!n}:e:null);function pe(e,t=null,n=null,r=0,i=null,o=e===Ue?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&_u(t),ref:t&&di(t),scopeId:Dc,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:i,dynamicChildren:null,appContext:null,ctx:We};return a?(Zs(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),Yn>0&&!s&<&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&<.push(l),l}const ie=sh;function sh(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===zc)&&(e=wt),Qn(e)){const a=Zn(e,t,!0);return n&&Zs(a,n),Yn>0&&!o&<&&(a.shapeFlag&6?lt[lt.indexOf(e)]=a:lt.push(a)),a.patchFlag=-2,a}if(hh(e)&&(e=e.__vccOpts),t){t=yu(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=qe(a)),Ee(l)&&(io(l)&&!se(l)&&(l=Je({},l)),t.style=Tn(l))}const s=ke(e)?1:du(e)?128:cp(e)?64:Ee(e)?4:ce(e)?2:0;return pe(e,t,n,r,i,s,o,!0)}function yu(e){return e?io(e)||nu(e)?Je({},e):e:null}function Zn(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:l}=e,u=t?ea(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&_u(u),ref:t&&t.ref?n&&o?se(o)?o.concat(di(t)):[o,di(t)]:di(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!==Ue?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zn(e.ssContent),ssFallback:e.ssFallback&&Zn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ws(c,l.clone(c)),c}function at(e=" ",t=0){return ie(wn,null,e,t)}function nt(e="",t=!1){return t?(ee(),Oe(wt,null,e)):ie(wt,null,e)}function mt(e){return e==null||typeof e=="boolean"?ie(wt):se(e)?ie(Ue,null,e.slice()):Qn(e)?Ut(e):ie(wn,null,String(e))}function Ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zn(e)}function Zs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Zs(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!nu(t)?t._ctx=We:i===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ce(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[at(t)]):n=8);e.children=t,e.shapeFlag|=n}function ea(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=qe([t.class,r.class]));else if(i==="style")t.style=Tn([t.style,r.style]);else if($r(i)){const o=t[i],s=r[i];s&&o!==s&&!(se(o)&&o.includes(s))?t[i]=o?[].concat(o,s):s:s==null&&o==null&&!Ki(i)&&(t[i]=s)}else i!==""&&(t[i]=r[i])}return t}function bt(e,t,n,r=null){jt(e,t,7,[n,r])}const ah=Yc();let lh=0;function ch(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ah,o={uid:lh++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new dc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:iu(r,i),emitsOptions:Qc(r,i),emit:null,emitted:null,propsDefaults:Te,inheritAttrs:r.inheritAttrs,ctx:Te,data:Te,props:Te,attrs:Te,slots:Te,refs:Te,setupState:Te,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=$p.bind(null,o),e.ce&&e.ce(o),o}let Ge=null;const St=()=>Ge||We;let Ri,Wn;{const e=Zi(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Ri=t("__VUE_INSTANCE_SETTERS__",n=>Ge=n),Wn=t("__VUE_SSR_SETTERS__",n=>An=n)}const or=e=>{const t=Ge;return Ri(e),e.scope.on(),()=>{e.scope.off(),Ri(t)}},xr=()=>{Ge&&Ge.scope.off(),Ri(null)};function vu(e){return e.vnode.shapeFlag&4}let An=!1;function uh(e,t=!1,n=!1){t&&Wn(t);const{props:r,children:i}=e.vnode,o=vu(e);zp(e,r,o,t),Kp(e,i,n||t);const s=o?fh(e,t):void 0;return t&&Wn(!1),s}function fh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Rp);const{setup:r}=n;if(r){Kt();const i=e.setupContext=r.length>1?Eu(e):null,o=or(e),s=Fr(r,e,0,[e.props,i]),a=Ns(s);if(Jt(),o(),(a||e.sp)&&!bn(e)&&qs(e),a){if(s.then(xr,xr),t)return s.then(l=>{is(e,l)}).catch(l=>{rr(l,e,0)});e.asyncDep=s}else is(e,s)}else bu(e)}function is(e,t,n){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=Lc(t)),bu(e)}function bu(e,t,n){const r=e.type;e.render||(e.render=r.render||Mt);{const i=or(e);Kt();try{Lp(e)}finally{Jt(),i()}}}const dh={get(e,t){return et(e,"get",""),e[t]}};function Eu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,dh),slots:e.slots,emit:e.emit,expose:t}}function co(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Lc(Wd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Er)return Er[n](e)},has(t,n){return n in t||n in Er}})):e.proxy}function ph(e,t=!0){return ce(e)?e.displayName||e.name:e.name||t&&e.__name}function hh(e){return ce(e)&&"__vccOpts"in e}const he=(e,t)=>tp(e,t,An);function Rn(e,t,n){try{Ai(-1);const r=arguments.length;return r===2?Ee(t)&&!se(t)?Qn(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Qn(n)&&(n=[n]),ie(e,t,n))}finally{Ai(1)}}const mh="3.5.34";/**
|
|
17
|
+
* @vue/runtime-dom v3.5.34
|
|
18
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
|
+
* @license MIT
|
|
20
|
+
**/let os;const qa=typeof window<"u"&&window.trustedTypes;if(qa)try{os=qa.createPolicy("vue",{createHTML:e=>e})}catch{}const wu=os?e=>os.createHTML(e):e=>e,gh="http://www.w3.org/2000/svg",_h="http://www.w3.org/1998/Math/MathML",Ht=typeof document<"u"?document:null,Ka=Ht&&Ht.createElement("template"),yh={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 i=t==="svg"?Ht.createElementNS(gh,e):t==="mathml"?Ht.createElementNS(_h,e):n?Ht.createElement(e,{is:n}):Ht.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ht.createTextNode(e),createComment:e=>Ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Ka.innerHTML=wu(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Ka.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[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},vh=Symbol("_vtc");function bh(e,t,n){const r=e[vh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Pi=Symbol("_vod"),Su=Symbol("_vsh"),Eh={name:"show",beforeMount(e,{value:t},{transition:n}){e[Pi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ur(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),ur(e,!0),r.enter(e)):r.leave(e,()=>{ur(e,!1)}):ur(e,t))},beforeUnmount(e,{value:t}){ur(e,t)}};function ur(e,t){e.style.display=t?e[Pi]:"none",e[Su]=!t}const wh=Symbol(""),Sh=/(?:^|;)\s*display\s*:/;function Th(e,t,n){const r=e.style,i=ke(n);let o=!1;if(n&&!i){if(t)if(ke(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&gr(r,a,"")}else for(const s in t)n[s]==null&&gr(r,s,"");for(const s in n){s==="display"&&(o=!0);const a=n[s];a!=null?Rh(e,s,!ke(t)&&t?t[s]:void 0,a)||gr(r,s,a):gr(r,s,"")}}else if(i){if(t!==n){const s=r[wh];s&&(n+=";"+s),r.cssText=n,o=Sh.test(n)}}else t&&e.removeAttribute("style");Pi in e&&(e[Pi]=o?r.display:"",e[Su]&&(r.display="none"))}const Ja=/\s*!important$/;function gr(e,t,n){if(se(n))n.forEach(r=>gr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Ah(e,t);Ja.test(n)?e.setProperty(Cn(r),n.replace(Ja,""),"important"):e[r]=n}}const Xa=["Webkit","Moz","ms"],ko={};function Ah(e,t){const n=ko[t];if(n)return n;let r=st(t);if(r!=="filter"&&r in e)return ko[t]=r;r=Yi(r);for(let i=0;i<Xa.length;i++){const o=Xa[i]+r;if(o in e)return ko[t]=o}return t}function Rh(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ke(r)&&n===r}const Ya="http://www.w3.org/1999/xlink";function Qa(e,t,n,r,i,o=Td(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ya,t.slice(6,t.length)):e.setAttributeNS(Ya,t,n):n==null||o&&!cc(n)?e.removeAttribute(t):e.setAttribute(t,o?"":_t(n)?String(n):n)}function Za(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?wu(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 s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=cc(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function Wt(e,t,n,r){e.addEventListener(t,n,r)}function Ph(e,t,n,r){e.removeEventListener(t,n,r)}const el=Symbol("_vei");function Ch(e,t,n,r,i=null){const o=e[el]||(e[el]={}),s=o[t];if(r&&s)s.value=r;else{const[a,l]=kh(t);if(r){const u=o[t]=Oh(r,i);Wt(e,a,u,l)}else s&&(Ph(e,a,s,l),o[t]=void 0)}}const tl=/(?:Once|Passive|Capture)$/;function kh(e){let t;if(tl.test(e)){t={};let r;for(;r=e.match(tl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Cn(e.slice(2)),t]}let Lo=0;const Lh=Promise.resolve(),xh=()=>Lo||(Lh.then(()=>Lo=0),Lo=Date.now());function Oh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;jt(Ih(r,n.value),t,5,[r])};return n.value=e,n.attached=xh(),n}function Ih(e,t){if(se(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const nl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dh=(e,t,n,r,i,o)=>{const s=i==="svg";t==="class"?bh(e,r,s):t==="style"?Th(e,n,r):$r(t)?Ki(t)||Ch(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nh(e,t,r,s))?(Za(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qa(e,t,r,s,o,t!=="value")):e._isVueCE&&(Mh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ke(r)))?Za(e,st(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Qa(e,t,r,s))};function Nh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&nl(t)&&ce(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return nl(t)&&ke(n)?!1:t in e}function Mh(e,t){const n=e._def.props;if(!n)return!1;const r=st(t);return Array.isArray(n)?n.some(i=>st(i)===r):Object.keys(n).some(i=>st(i)===r)}const sn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return se(t)?n=>ui(t,n):t};function Vh(e){e.target.composing=!0}function rl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Et=Symbol("_assign");function il(e,t,n){return t&&(e=e.trim()),n&&(e=Qi(e)),e}const ol={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Et]=sn(i);const o=r||i.props&&i.props.type==="number";Wt(e,t?"change":"input",s=>{s.target.composing||e[Et](il(e.value,n,o))}),(n||o)&&Wt(e,"change",()=>{e.value=il(e.value,n,o)}),t||(Wt(e,"compositionstart",Vh),Wt(e,"compositionend",rl),Wt(e,"change",rl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},s){if(e[Et]=sn(s),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Qi(e.value):e.value,l=t??"";if(a===l)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l)}},$h={deep:!0,created(e,t,n){e[Et]=sn(n),Wt(e,"change",()=>{const r=e._modelValue,i=er(e),o=e.checked,s=e[Et];if(se(r)){const a=Vs(r,i),l=a!==-1;if(o&&!l)s(r.concat(i));else if(!o&&l){const u=[...r];u.splice(a,1),s(u)}}else if(nr(r)){const a=new Set(r);o?a.add(i):a.delete(i),s(a)}else s(Ru(e,o))})},mounted:sl,beforeUpdate(e,t,n){e[Et]=sn(n),sl(e,t,n)}};function sl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(se(t))i=Vs(t,r.props.value)>-1;else if(nr(t))i=t.has(r.props.value);else{if(t===n)return;i=on(t,Ru(e,!0))}e.checked!==i&&(e.checked=i)}const Tu={created(e,{value:t},n){e.checked=on(t,n.props.value),e[Et]=sn(n),Wt(e,"change",()=>{e[Et](er(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Et]=sn(r),t!==n&&(e.checked=on(t,r.props.value))}},Au={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=nr(t);Wt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Qi(er(s)):er(s));e[Et](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Rt(()=>{e._assigning=!1})}),e[Et]=sn(r)},mounted(e,{value:t}){al(e,t)},beforeUpdate(e,t,n){e[Et]=sn(n)},updated(e,{value:t}){e._assigning||al(e,t)}};function al(e,t){const n=e.multiple,r=se(t);if(!(n&&!r&&!nr(t))){for(let i=0,o=e.options.length;i<o;i++){const s=e.options[i],a=er(s);if(n)if(r){const l=typeof a;l==="string"||l==="number"?s.selected=t.some(u=>String(u)===String(a)):s.selected=Vs(t,a)>-1}else s.selected=t.has(a);else if(on(er(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function er(e){return"_value"in e?e._value:e.value}function Ru(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const jh={created(e,t,n){Qr(e,t,n,null,"created")},mounted(e,t,n){Qr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Qr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Qr(e,t,n,r,"updated")}};function Bh(e,t){switch(e){case"SELECT":return Au;case"TEXTAREA":return ol;default:switch(t){case"checkbox":return $h;case"radio":return Tu;default:return ol}}}function Qr(e,t,n,r,i){const s=Bh(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,r)}const Pu=Je({patchProp:Dh},yh);let Sr,ll=!1;function Fh(){return Sr||(Sr=Xp(Pu))}function Hh(){return Sr=ll?Sr:Yp(Pu),ll=!0,Sr}const Uh=((...e)=>{const t=Fh().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=ku(r);if(!i)return;const o=t._component;!ce(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,Cu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t}),zh=((...e)=>{const t=Hh().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=ku(r);if(i)return n(i,!0,Cu(i))},t});function Cu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ku(e){return ke(e)?document.querySelector(e):e}const Gh=/"(?:_|\\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*:/,Wh=/"(?: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*:/,qh=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Kh(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Jh(e);return}return t}function Jh(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Xh(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!qh.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Gh.test(e)||Wh.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Kh)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Lu=/#/g,xu=/&/g,Yh=/\//g,Qh=/=/g,Zh=/\?/g,uo=/\+/g,em=/%5e/gi,tm=/%60/gi,nm=/%7c/gi,rm=/%20/gi,im=/%2f/gi,om=/%252f/gi;function Ou(e){return encodeURI(""+e).replace(nm,"|")}function ss(e){return Ou(typeof e=="string"?e:JSON.stringify(e)).replace(uo,"%2B").replace(rm,"+").replace(Lu,"%23").replace(xu,"%26").replace(tm,"`").replace(em,"^").replace(Yh,"%2F")}function xo(e){return ss(e).replace(Qh,"%3D")}function sm(e){return Ou(e).replace(Lu,"%23").replace(Zh,"%3F").replace(om,"%2F").replace(xu,"%26").replace(uo,"%2B")}function Or(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function am(e){return Or(e.replace(im,"%252F"))}function lm(e){return Or(e.replace(uo," "))}function cm(e){return Or(e.replace(uo," "))}function fo(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=lm(r[1]);if(i==="__proto__"||i==="constructor")continue;const o=cm(r[2]||"");t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}return t}function um(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${xo(e)}=${ss(n)}`).join("&"):`${xo(e)}=${ss(t)}`:xo(e)}function Iu(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>um(t,e[t])).filter(Boolean).join("&")}const fm=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,dm=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,pm=/^([/\\]\s*){2,}[^/\\]/,hm=/^[\s\0]*(blob|data|javascript|vbscript):$/i,mm=/\/$|\/\?|\/#/,gm=/^\.?\//;function kn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?fm.test(e):dm.test(e)||(t.acceptRelative?pm.test(e):!1)}function _m(e){return!!e&&hm.test(e)}function as(e="",t){return t?mm.test(e):e.endsWith("/")}function ta(e="",t){if(!t)return(as(e)?e.slice(0,-1):e)||"/";if(!as(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");i!==-1&&(n=e.slice(0,i),r=e.slice(i));const[o,...s]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(s.length>0?`?${s.join("?")}`:"")+r}function Ci(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(as(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;const[o,...s]=n.split("?");return o+"/"+(s.length>0?`?${s.join("?")}`:"")+r}function ym(e=""){return e.startsWith("/")}function cl(e=""){return ym(e)?e:"/"+e}function vm(e,t){if(Nu(t)||kn(e))return e;const n=ta(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return po(n,e)}function bm(e,t){if(Nu(t))return e;const n=ta(t);if(!e.startsWith(n))return e;const r=e[n.length];return r&&r!=="/"&&r!=="?"?e:"/"+e.slice(n.length).replace(/^\/+/,"")}function Du(e,t){const n=na(e),r={...fo(n.search),...t};return n.search=Iu(r),$u(n)}function Nu(e){return!e||e==="/"}function Em(e){return e&&e!=="/"}function po(e,...t){let n=e||"";for(const r of t.filter(i=>Em(i)))if(n){const i=r.replace(gm,"");n=Ci(n)+i}else n=r;return n}function Mu(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let i=0;for(const s of n)if(!(!s||s==="/")){for(const[a,l]of s.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&kn(r[0]))continue;r.pop(),i--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),i++}}let o=r.join("/");return i>=0?n[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:n[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*i)+o,n[n.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function wm(e,t,n={}){return n.trailingSlash||(e=Ci(e),t=Ci(t)),n.leadingSlash||(e=cl(e),t=cl(t)),n.encoding||(e=Or(e),t=Or(t)),e===t}const Vu=Symbol.for("ufo:protocolRelative");function na(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!kn(e,{acceptRelative:!0}))return ul(e);const[,r="",i,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=ul(a);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:s,pathname:l,search:u,hash:c,[Vu]:!r}}function ul(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function $u(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Vu]?(e.protocol||"")+"//":"")+i+o+t+n+r}class Sm extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function Tm(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",i=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${i}: ${o}${t?` ${t}`:""}`,a=new Sm(s,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const Am=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function fl(e="GET"){return Am.has(e.toUpperCase())}function Rm(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Pm=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Cm=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function km(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Cm.test(t)?"json":t==="text/event-stream"?"stream":Pm.has(t)||t.startsWith("text/")?"text":"blob"}function Lm(e,t,n,r){const i=xm(t?.headers??e?.headers,n?.headers,r);let o;return(n?.query||n?.params||t?.params||t?.query)&&(o={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:o,params:o,headers:i}}function xm(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[i,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(i,o);return r}async function Zr(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Om=new Set([408,409,425,429,500,502,503,504]),Im=new Set([101,204,205,304]);function ju(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=fl(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Om.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),o(a.request,{...a.options,retry:c-1})}}const u=Tm(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const c={request:l,options:Lm(l,u,e.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await Zr(c,c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=vm(c.request,c.options.baseURL)),c.options.query&&(c.request=Du(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&fl(c.options.method))if(Rm(c.options.body)){const p=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=p==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),p||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let f;if(!c.options.signal&&c.options.timeout){const p=new r;f=setTimeout(()=>{const h=new Error("[TimeoutError]: The operation was aborted due to timeout");h.name="TimeoutError",h.code=23,p.abort(h)},c.options.timeout),c.options.signal=p.signal}try{c.response=await t(c.request,c.options)}catch(p){return c.error=p,c.options.onRequestError&&await Zr(c,c.options.onRequestError),await i(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!Im.has(c.response.status)&&c.options.method!=="HEAD"){const p=(c.options.parseResponse?"json":c.options.responseType)||km(c.response.headers.get("content-type")||"");switch(p){case"json":{const h=await c.response.text(),_=c.options.parseResponse||Xh;c.response._data=_(h);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[p]()}}return c.options.onResponse&&await Zr(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await Zr(c,c.options.onResponseError),await i(c)):c.response},s=async function(l,u){return(await o(l,u))._data};return s.raw=o,s.native=(...a)=>t(...a),s.create=(a={},l={})=>ju({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),s}const ki=(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")})(),Dm=ki.fetch?(...e)=>ki.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Nm=ki.Headers,Mm=ki.AbortController,Vm=ju({fetch:Dm,Headers:Nm,AbortController:Mm}),$m=Vm,jm=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,ra=()=>jm().app,Bm=()=>ra().baseURL,Fm=()=>ra().buildAssetsDir,ia=(...e)=>Mu(Bu(),Fm(),...e),Bu=(...e)=>{const t=ra(),n=t.cdnURL||t.baseURL;return e.length?Mu(n,...e):n};globalThis.__buildAssetsURL=ia,globalThis.__publicAssetsURL=Bu;globalThis.$fetch||(globalThis.$fetch=$m.create({baseURL:Bm()}));"global"in globalThis||(globalThis.global=globalThis);function ls(e,t={},n){for(const r in e){const i=e[r],o=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?ls(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const Fu=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function Hu(e,t,n,r){for(let i=n;i<e.length;i+=1)try{const o=r?r.run(()=>e[i](...t)):e[i](...t);if(o&&typeof o.then=="function")return Promise.resolve(o).then(()=>Hu(e,t,i+1,r))}catch(o){return Promise.reject(o)}}function Hm(e,t,n){if(e.length>0)return Hu(e,t,0,Fu(n))}function Um(e,t,n){if(e.length>0){const r=Fu(n);return Promise.all(e.map(i=>r.run(()=>i(...t))))}}function Oo(e,t){for(const n of[...e])n(t)}var zm=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let o=i.message;o||(o=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...i)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...i));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=ls(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=ls(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(Hm,e,t)}callHookParallel(e,...t){return this.callHookWith(Um,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Oo(this._before,r);const i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&Oo(this._after,r)}):(this._after&&r&&Oo(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Uu(){return new zm}function Gm(e={}){let t,n=!1;const r=s=>{if(t&&t!==s)throw new Error("Context conflict")};let i;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?i=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(i){const s=i.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=o();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>o(),set:(s,a)=>{a||r(s),t=s,n=!0},unset:()=>{t=void 0,n=!1},call:(s,a)=>{r(s),t=s;try{return i?i.run(s,a):a()}finally{n||(t=void 0)}},async callAsync(s,a){t=s;const l=()=>{t=s},u=()=>t===s?l:void 0;cs.add(u);try{const c=i?i.run(s,a):a();return n||(t=void 0),await c}finally{cs.delete(u)}}}}function Wm(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Gm({...e,...r})),t[n]}}}const Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},dl="__unctx__",qm=Li[dl]||(Li[dl]=Wm()),Km=(e,t={})=>qm.get(e,t),pl="__unctx_async_handlers__",cs=Li[pl]||(Li[pl]=new Set);function Jm(e){const t=[];for(const i of cs){const o=i();o&&t.push(o)}const n=()=>{for(const i of t)i()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(i=>{throw n(),i})),[r,n]}const hl={id:"__nuxt-loader"},Xm={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Ym={deep:!1},Qm={},Zm="#__nuxt",zu="nuxt-app",ml=36e5,eg="vite:preloadError";function Gu(e=zu){return Km(e,{asyncContext:!1})}const tg="__nuxt_plugin";function ng(e){let t=0;const n={_id:e.id||zu||"nuxt-app",_scope:Rd(),provide:void 0,versions:{get nuxt(){return"4.4.6"},get vue(){return n.vueApp.version}},payload:pn({...e.ssrContext?.payload||{},data:pn({}),state:Vt({}),once:new Set,_errors:pn({})}),static:{data:{}},runWithContext(i){return n._scope.active&&!Br()?n._scope.run(()=>gl(n,i)):gl(n,i)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:pn({}),_state:pn({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const o in i)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],i[o]);break;default:n.payload[o]=i[o]}}n.hooks=Uu(),n.hook=n.hooks.hook;{const i=n.hooks.callHook;n.hooks.callHook=(o,...s)=>Promise.resolve().then(()=>i(o,...s))}n.callHook=n.hooks.callHook,n.provide=(i,o)=>{const s="$"+i;ei(n,s,o),ei(n.vueApp.config.globalProperties,s,o)},ei(n.vueApp,"$nuxt",n),ei(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(eg,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=Ie;const i=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",i)}const r=n.payload.config;return n.provide("config",r),n}function rg(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function ig(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 og(e,t){const n=new Set,r=[],i=[];let o,s=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=ig(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,d])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(s++,await a(d)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;o||=f});l.parallel?i.push(c):await c}}for(const l of t)rg(e,l);for(const l of t)await a(l);if(await Promise.all(i),s)for(let l=0;l<s;l++)await Promise.all(i);if(o)throw e.payload.error||o}function an(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[tg]:!0,_name:t})}function gl(e,t,n){const r=()=>t();return Gu(e._id).set(e),e.vueApp.runWithContext(r)}function sg(e){let t;return zs()&&(t=St()?.appContext.app.$nuxt),t||=Gu(e).tryUse(),t||null}function Ie(e){const t=sg(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Ir(e){return Ie().$config}function ei(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Io(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 us(e,t,n=".",r){if(!Io(t))return us(e,{},n,r);const i={...t};for(const o of Object.keys(e)){if(o==="__proto__"||o==="constructor")continue;const s=e[o];s!=null&&(r&&r(i,o,s,n)||(Array.isArray(s)&&Array.isArray(i[o])?i[o]=[...s,...i[o]]:Io(s)&&Io(i[o])?i[o]=us(s,i[o],(n?`${n}.`:"")+o.toString(),r):i[o]=s))}return i}function ag(e){return(...t)=>t.reduce((n,r)=>us(n,r,"",e),{})}const lg=ag();function cg(e,t){try{return t in e}catch{return!1}}class _l extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:fs(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Wu(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function ug(e){if(typeof e=="string")return new _l(e);if(fg(e))return e;const t=new _l(e.message??e.statusMessage??"",{cause:e.cause||e});if(cg(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=fs(e.statusCode,t.statusCode):e.status&&(t.statusCode=fs(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Wu(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 fg(e){return e?.constructor?.__h3_error__===!0}const dg=/[^\u0009\u0020-\u007E]/g;function Wu(e=""){return e.replace(dg,"")}function fs(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const qu=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Xt=()=>Ie()?.$router,pg=()=>zs()?ht(qu,Ie()._route):Ie()._route;const hg=()=>{try{if(Ie()._processingMiddleware)return!0}catch{return!1}return!1},Ku=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?ds(e):Xt().resolve(e).href;if(t?.open){const{target:u="_blank",windowFeatures:c={}}=t.open,f=[];for(const[d,p]of Object.entries(c))p!==void 0&&f.push(`${d.toLowerCase()}=${p}`);return open(n,u,f.join(", ")),Promise.resolve()}const r=kn(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:u}=new URL(n,window.location.href);if(u&&_m(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const o=hg();if(!i&&o){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:f}=na(e);return{path:u,...c&&{query:fo(c)},...f&&{hash:f},replace:!0}}return{...e,replace:!0}}return e}const s=Xt(),a=Ie();if(i)return a._scope.stop(),t?.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const l=typeof e=="string"?Ju(e):e;return t?.replace?s.replace(l):s.push(l)};function ds(e){return Du(e.path||"",e.query||{})+(e.hash||"")}function Ju(e){const t=na(e);return sm(am(t.pathname))+t.search+t.hash}const Xu="__nuxt_error",oa=()=>Hs(Ie().payload,"error"),mg=e=>{const t=ho(e);try{const n=oa();Ie().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},gg=async(e={})=>{const t=Ie(),n=oa();t.callHook("app:error:cleared",e),e.redirect&&await Xt().replace(e.redirect),n.value=void 0},_g=e=>!!e&&typeof e=="object"&&Xu in e,ho=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=ug(e);return Object.defineProperty(t,Xu,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t},yg=-1,vg=-2,bg=-3,Eg=-4,wg=-5,Sg=-6,Tg=-7,Yu=2**32-1,ps=Yu-1;function Ag(e){return!(!Number.isInteger(e)||e<0||e>ps)}function Rg(e){return!(!Number.isInteger(e)||e<0||e>Yu)}function Pg(e){return Uint8Array.fromBase64(e).buffer}function Cg(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function kg(e){const t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}const Lg=typeof Uint8Array.fromBase64=="function",xg=typeof process=="object"&&process.versions?.node!==void 0,Og=Lg?Pg:xg?Cg:kg;function Ig(e,t){return Dg(JSON.parse(e),t)}function Dg(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let i=null;function o(s,a=!1){if(s===yg)return;if(s===bg)return NaN;if(s===Eg)return 1/0;if(s===wg)return-1/0;if(s===Sg)return-0;if(a||typeof s!="number")throw new Error("Invalid input");if(s in r)return r[s];const l=n[s];if(!l||typeof l!="object")r[s]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const u=l[0],c=t&&Object.hasOwn(t,u)?t[u]:void 0;if(c){let f=l[1];if(typeof f!="number"&&(f=n.push(l[1])-1),i??=new Set,i.has(f))throw new Error("Invalid circular reference");return i.add(f),r[s]=c(o(f)),i.delete(f),r[s]}switch(u){case"Date":r[s]=new Date(l[1]);break;case"Set":const f=new Set;r[s]=f;for(let h=1;h<l.length;h+=1)f.add(o(l[h]));break;case"Map":const d=new Map;r[s]=d;for(let h=1;h<l.length;h+=2)d.set(o(l[h]),o(l[h+1]));break;case"RegExp":r[s]=new RegExp(l[1],l[2]);break;case"Object":{const h=l[1];if(typeof n[h]=="object"&&n[h][0]!=="BigInt")throw new Error("Invalid input");r[s]=Object(o(h));break}case"BigInt":r[s]=BigInt(l[1]);break;case"null":const p=Object.create(null);r[s]=p;for(let h=1;h<l.length;h+=2){if(l[h]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");p[l[h]]=o(l[h+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(n[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const h=globalThis[u],_=o(l[1]);r[s]=l[2]!==void 0?new h(_,l[2],l[3]):new h(_);break}case"ArrayBuffer":{const h=l[1];if(typeof h!="string")throw new Error("Invalid ArrayBuffer encoding");const _=Og(h);r[s]=_;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=u.slice(9);r[s]=Temporal[h].from(l[1]);break}case"URL":{const h=new URL(l[1]);r[s]=h;break}case"URLSearchParams":{const h=new URLSearchParams(l[1]);r[s]=h;break}default:throw new Error(`Unknown type ${u}`)}}else if(l[0]===Tg){const u=l[1];if(!Rg(u))throw new Error("Invalid input");const c=[];r[s]=c,c[ps]=void 0,delete c[ps];for(let f=2;f<l.length;f+=2){const d=l[f];if(!Ag(d)||d>=u)throw new Error("Invalid input");c[d]=o(l[f+1])}c.length=u}else{const u=new Array(l.length);r[s]=u;for(let c=0;c<l.length;c+=1){const f=l[c];f!==vg&&(u[c]=o(f))}}else{const u={};r[s]=u;for(const c of Object.keys(l)){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=l[c];u[c]=o(f)}}return r[s]}return o(0)}const Ng=new Set(["link","style","script","noscript"]),Mg=new Set(["title","titleTemplate","script","style","noscript"]),hs=new Set(["base","meta","link","style","script","noscript"]),Vg=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),$g=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),jg=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Bg=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Fg=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Hg=["name","property","http-equiv"],Ug=new Set(["viewport","description","keywords","robots"]);function Qu(e){const t=e.split(":");return t.length?Fg.has(t[1]):!1}function ms(e){const{props:t,tag:n}=e;if($g.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const r of Hg)if(t[r]!==void 0){const i=t[r],o=i&&typeof i=="string"&&i.includes(":"),s=i&&Ug.has(i),l=!(o||s)&&e.key?`:key:${e.key}`:"";return`${n}:${i}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(Mg.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function Zu(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,i])=>`${r}:${String(i)}`).join(",")}`}function xi(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const i=t?t(n,e):e;if(Array.isArray(i))return i.map(o=>xi(o,t));if(i?.constructor===Object){const o={};for(const s of Object.keys(i))o[s]=xi(i[s],t,s);return o}return i}function zg(e,t){const n=e==="style"?new Map:new Set;function r(i){if(i==null||i===void 0)return;const o=String(i).trim();if(o)if(e==="style"){const[s,...a]=o.split(":").map(l=>l?l.trim():"");s&&a.length&&n.set(s,a.join(":"))}else o.split(" ").filter(Boolean).forEach(s=>n.add(s))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(i=>r(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,o])=>{o&&o!=="false"&&(e==="style"?n.set(String(i).trim(),String(o)):r(i))}),n}function ef(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const n=hs.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";return Object.entries(t).forEach(([r,i])=>{if(r==="__proto__"||r==="constructor"||r==="prototype")return;if(i===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=zg(r,i);return}if(jg.has(r)){if((r==="textContent"||r==="innerHTML")&&typeof i=="object"){let u=t.type;if(t.type||(u="application/json"),!u?.endsWith("json")&&u!=="speculationrules")return;t.type=u,e.props.type=u,e[r]=JSON.stringify(i)}else e[r]=i;return}const o=r.startsWith("data-"),s=n&&!o?r.toLowerCase():r,a=String(i),l=e.tag==="meta"&&s==="content";a==="true"||a===""?e.props[s]=o||l?a:!0:!i&&o&&a==="false"?e.props[s]="false":i!==void 0&&(e.props[s]=i)}),e}function Gg(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=ef({tag:e,props:{}},n);return r.key&&Ng.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(i=>({...r,props:{...r.props,content:i}})):r}function Wg(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(i,o)=>{for(let s=0;s<t.length;s++)o=t[s](i,o);return o};e=n(void 0,e);const r=[];return e=xi(e,n),Object.entries(e||{}).forEach(([i,o])=>{if(o!==void 0)for(const s of Array.isArray(o)?o:[o])r.push(Gg(i,s))}),r.flat()}const yl=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,vl={base:-10,title:10},qg={critical:-8,high:-1,low:2},bl={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}},Kg=/@import/,fr=e=>e===""||e===!0;function Jg(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=qg[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:bl;if(t.tag in vl)n=vl[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=bl.meta[o])}else if(t.tag==="link"&&t.props.rel)n=i.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);fr(t.props.async)?n=i.script.async:t.props.src&&!fr(t.props.defer)&&!fr(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?n=i.script.sync:(fr(t.props.defer)&&t.props.src&&!fr(t.props.async)||o==="module")&&(n=i.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&Kg.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function El(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 Xg(e={}){const t=Uu();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,i=new Map,o=new Set,s={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>El(s,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??s._entryCount++,f={_i:c,input:a,options:u},d={_poll(p=!1){s.dirty=!0,!p&&o.add(c),t.callHook("entries:updated",s)},dispose(){r.delete(c)&&s.invalidate()},patch(p){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=p,r.set(c,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const d=o.values().next().value;o.delete(d);const p=r.get(d);if(p){const h={tags:Wg(p.input,e.propResolvers||[]).map(_=>Object.assign(_,p.options)),entry:p};await t.callHook("entries:normalize",h),p._tags=h.tags.map((_,v)=>(_._w=Jg(s,_),_._p=(p._i<<10)+v,_._d=ms(_),_._d||(_._h=Zu(_)),_))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(p=>({...p,props:{...p.props}}))).sort(yl).reduce((d,p)=>{const h=p._d||p._h;if(!d.has(h))return d.set(h,p);const _=d.get(h);if((p?.tagDuplicateStrategy||(Bg.has(p.tag)?"merge":null)||(p.key&&p.key===_.key?"merge":null))==="merge"){const b={..._.props};Object.entries(p.props).forEach(([w,m])=>b[w]=w==="style"?new Map([..._.props.style||new Map,...m]):w==="class"?new Set([..._.props.class||new Set,...m]):m),d.set(h,{...p,props:b})}else p._p>>10===_._p>>10&&p.tag==="meta"&&Qu(h)?(d.set(h,Object.assign([...Array.isArray(_)?_:[_],p],p)),l=!0):(p._w===_._w?p._p>_._p:p?._w<_?._w)&&d.set(h,p);return d},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(s._title=u?.textContent,c){const d=c?.textContent;if(s._titleTemplate=d,d){let p=typeof d=="function"?d(u?.textContent):d;typeof p=="string"&&!s.plugins.has("template-params")&&(p=p.replace("%s",u?.textContent||"")),u?p===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:p}):(c.tag="title",c.textContent=p)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(yl)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const d of a.tags){const{innerHTML:p,tag:h,props:_}=d;if(Vg.has(h)&&!(Object.keys(_).length===0&&!d.innerHTML&&!d.textContent)&&!(h==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(h==="script"&&p){if(String(_.type).endsWith("json")){const v=typeof p=="string"?p:JSON.stringify(p);d.innerHTML=v.replace(/</g,"\\u003C")}else typeof p=="string"&&(d.innerHTML=p.replace(new RegExp(`</${h}`,"g"),`<\\/${h}`));d._d=ms(d)}f.push(d)}}return f},invalidate(){for(const a of r.values())o.add(a._i);s.dirty=!0,t.callHook("entries:updated",s)}};return(e?.plugins||[]).forEach(a=>El(s,a)),s.hooks.callHook("init",s),e.init?.forEach(a=>a&&s.push(a)),s}const Yg=(e,t)=>be(t)?xe(t):t,tf="usehead";function Qg(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(tf,e)}}.install}function Zg(){if(zs()){const e=ht(tf);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Kw(e,t={}){const n=t.head||Zg();return n.ssr?n.push(e||{},t):e_(n,e,t)}function e_(e,t,n={}){const r=ge(!1);let i;return Nc(()=>{const s=r.value?{}:xi(t,Yg);i?i.patch(s):i=e.push(s,n)}),St()&&(Hr(()=>{i.dispose()}),jc(()=>{r.value=!0}),$c(()=>{r.value=!1})),i}const t_=(e,t)=>[],n_=e=>lg({},...t_().map(t=>t.data).reverse()),r_=n_;let pi;function i_(){let e;return e=$fetch(ia(`builds/meta/${Ir().app.buildId}.json`),{responseType:"json"}).then(t=>{if(!t||typeof t!="object"||!Array.isArray(t.prerendered))throw new Error("[nuxt] Received malformed app manifest. Ensure that `builds/meta/*.json` is served as JSON by your hosting/proxy and not rewritten to an HTML fallback.");return t}),pi=e,e.catch(t=>{pi===e&&(pi=void 0),console.error("[nuxt] Error fetching app manifest.",t)}),e}function o_(){return pi||i_()}function nf(e){const t=typeof e=="string"?e:e.path;try{return r_(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function s_(e){return null}let cn=null;async function a_(){if(cn)return cn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await l_(e.textContent||""),n=e.dataset.src?await s_(e.dataset.src):void 0;return cn={...t,...n,...window.__NUXT__},cn.config?.public&&(cn.config.public=Vt(cn.config.public)),cn}async function l_(e){return await Ig(e,Ie()._payloadRevivers)}function c_(e,t){Ie()._payloadRevivers[e]=t}function wl(e){try{return JSON.parse(e)}catch{return e}}const u_=[["NuxtError",e=>ho(e)],["EmptyShallowRef",e=>ze(e==="_"?void 0:e==="0n"?BigInt(0):wl(e))],["EmptyRef",e=>ge(e==="_"?void 0:e==="0n"?BigInt(0):wl(e))],["ShallowRef",e=>ze(e)],["ShallowReactive",e=>pn(e)],["Ref",e=>ge(e)],["Reactive",e=>Vt(e)]],f_=an({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,i]of u_)c_(r,i);Object.assign(e.payload,([t,n]=Jm(()=>e.runWithContext(a_)),t=await t,n(),t)),delete window.__NUXT__}});async function sa(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 i=>{const o=new Map,s=new Promise(p=>{e.resolveTags().then(h=>{p(h.map(_=>{const v=o.get(_._d)||0,b={tag:_,id:(v?`${_._d}:${v}`:_._d)||_._h,shouldRender:!0};return _._d&&Qu(_._d)&&o.set(_._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 h=n[p]?.children;for(const _ of h){const v=_.tagName.toLowerCase();if(!hs.has(v))continue;const b=ef({tag:v,props:{}},{innerHTML:_.innerHTML,..._.getAttributeNames().reduce((w,m)=>(w[m]=_.getAttribute(m),w),{})||{}});if(b.key=_.getAttribute("data-hid")||void 0,b._d=ms(b)||Zu(b),a.elMap.has(b._d)){let w=1,m=b._d;for(;a.elMap.has(m);)m=`${b._d}:${w++}`;a.elMap.set(m,_)}else a.elMap.set(b._d,_)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(p,h,_){const v=`${p}:${h}`;a.sideEffects[v]=_,delete a.pendingSideEffects[v]}function u({id:p,$el:h,tag:_}){const v=_.tag.endsWith("Attrs");a.elMap.set(p,h),v||(_.textContent&&_.textContent!==h.textContent&&(h.textContent=_.textContent),_.innerHTML&&_.innerHTML!==h.innerHTML&&(h.innerHTML=_.innerHTML),l(p,"el",()=>{h?.remove(),a.elMap.delete(p)}));for(const b in _.props){if(!Object.prototype.hasOwnProperty.call(_.props,b))continue;const w=_.props[b];if(b.startsWith("on")&&typeof w=="function"){const E=h?.dataset;if(E&&E[`${b}fired`]){const S=b.slice(0,-5);w.call(h,new Event(S.substring(2)))}h.getAttribute(`data-${b}`)!==""&&((_.tag==="bodyAttrs"?n.defaultView:h).addEventListener(b.substring(2),w.bind(h)),h.setAttribute(`data-${b}`,""));continue}const m=`attr:${b}`;if(b==="class"){if(!w)continue;for(const E of w)v&&l(p,`${m}:${E}`,()=>h.classList.remove(E)),!h.classList.contains(E)&&h.classList.add(E)}else if(b==="style"){if(!w)continue;for(const[E,S]of w)l(p,`${m}:${E}`,()=>{h.style.removeProperty(E)}),h.style.setProperty(E,S)}else w!==!1&&w!==null&&(h.getAttribute(b)!==w&&h.setAttribute(b,w===!0?"":String(w)),v&&l(p,m,()=>h.removeAttribute(b)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await s;for(const p of d){const{tag:h,shouldRender:_,id:v}=p;if(_){if(h.tag==="title"){n.title=h.textContent,l("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(v),p.$el?u(p):hs.has(h.tag)&&c.push(p)}}for(const p of c){const h=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),u(p),f[h]=f[h]||n.createDocumentFragment(),f[h].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}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function d_(e={}){const t=e.domOptions?.render||sa;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Xg({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function p_(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function h_(e={}){const t=d_({domOptions:{render:p_(()=>sa(t),n=>setTimeout(n,0))},...e});return t.install=Qg(t),t}const m_={disableDefaults:!0},g_=an({name:"nuxt:head",enforce:"pre",setup(e){const t=h_(m_);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await sa(t)};t.hooks.hook("dom:beforeRender",o=>{o.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);const i=t.push.bind(t);t.push=((o,s)=>{const a=i(o,s),l=a.dispose.bind(a);return a.dispose=()=>{const u=e["~transitionPromise"];u?u.then(l):l()},a})}}}),__=e=>{const t=nf({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return kn(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},y_=[__];function Do(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=$u({pathname:e.path||"",search:Iu(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:fo(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const v_=an({name:"nuxt:router",enforce:"pre",setup(e){const t=bm(window.location.pathname,Ir().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},i=(d,p)=>(r[d].push(p),()=>r[d].splice(r[d].indexOf(p),1)),o=Ir().app.baseURL,s=Vt(Do(t));async function a(d,p){try{const h=Do(d);for(const _ of r["navigate:before"]){const v=await _(h,s);if(v===!1||v instanceof Error)return;if(typeof v=="string"&&v.length)return await a(v,!0)}for(const _ of r["resolve:before"])await _(h,s);Object.assign(s,h),window.history[p?"replaceState":"pushState"]({},"",po(o,h.fullPath)),e.isHydrating||await e.runWithContext(gg);for(const _ of r["navigate:after"])await _(h,s)}catch(h){for(const _ of r.error)await _(h)}}const u={currentRoute:he(()=>s),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:d=>a(d,!1),replace:d=>a(d,!0),back:()=>window.history.go(-1),go:d=>window.history.go(d),forward:()=>window.history.go(1),beforeResolve:d=>i("resolve:before",d),beforeEach:d=>i("navigate:before",d),afterEach:d=>i("navigate:after",d),onError:d=>i("error",d),resolve:Do,addRoute:(d,p)=>{n.push(p)},getRoutes:()=>n,hasRoute:d=>n.some(p=>p.name===d),removeRoute:d=>{const p=n.findIndex(h=>h.name===d);p!==-1&&n.splice(p,1)}};e.vueApp.component("RouterLink",yt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(d,{slots:p})=>{const h=()=>a(d.to,d.replace);return()=>{const _=u.resolve(d.to);return d.custom?p.default?.({href:d.to,navigate:h,route:_}):Rn("a",{href:d.to,onClick:v=>(v.preventDefault(),h())},p)}}})),window.addEventListener("popstate",d=>{const p=d.target.location;u.replace(p.href.replace(p.origin,""))}),e._route=s,e._middleware||={global:[],named:{}};const c=e.payload.state._layout,f=e.payload.state._layoutProps;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(d,p)=>{d.meta=Vt(d.meta||{}),e.isHydrating&&c&&!$t(d.meta.layout)&&(d.meta.layout=c,d.meta.layoutProps=f),e._processingMiddleware=!0;{const h=new Set([...y_,...e._middleware.global]),_=nf({path:d.path});if(_.appMiddleware)for(const v in _.appMiddleware){const b=e._middleware.named[v];b&&(_.appMiddleware[v]?h.add(b):h.delete(b))}for(const v of h){const b=await e.runWithContext(()=>v(d,p));if(b!==!0&&(b||b===!1))return b}}}),u.afterEach(()=>{delete e._processingMiddleware}),await u.replace(t),wm(s.fullPath,t)||await e.runWithContext(()=>Ku(s.fullPath))}),{provide:{route:s,router:u}}}}),gs=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),b_=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),aa=e=>{const t=Ie();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{gs(()=>e())}):gs(()=>e())},E_=an(()=>{const e=Xt();aa(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),w_=an(e=>{let t;async function n(){let r;try{r=await o_()}catch(i){const o=i;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,ml);try{const i=await $fetch(ia("builds/latest.json")+`?${Date.now()}`);i.id!==r?.id&&(e.hooks.callHook("app:manifest:update",i),t&&clearTimeout(t))}catch{}}aa(()=>{t=setTimeout(n,ml)})});function S_(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Ie().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const T_=an({name:"nuxt:chunk-reload",setup(e){const t=Xt(),n=Ir(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function i(o){const s=po(n.app.baseURL,o.fullPath);S_({path:s,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(i)}),t.onError((o,s)=>{r.has(o)&&i(s)})}}),A_=an({name:"nuxt:global-components"}),R_=an(()=>{}),P_=[f_,g_,v_,E_,w_,T_,A_,R_];function C_(e,t){const n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function k_(e={}){const{duration:t=2e3,throttle:n=200,hideDelay:r=500,resetDelay:i=400}=e,o=e.estimatedProgress||C_,s=Ie(),a=ze(0),l=ze(!1),u=ze(!1);let c=!1,f,d,p,h;const _=(x={})=>{m(),u.value=!1,v(0,x)};function v(x=0,U={}){if(s.isHydrating)return;if(x>=100)return w({force:U.force});E(),a.value=x<0?0:x;const H=U.force?0:n;H?d=setTimeout(()=>{l.value=!0,S()},H):(l.value=!0,S())}function b(){p=setTimeout(()=>{l.value=!1,h=setTimeout(()=>{a.value=0},i)},r)}function w(x={}){a.value=100,c=!0,E(),m(),x.error&&(u.value=!0),x.force?(a.value=0,l.value=!1):b()}function m(){clearTimeout(p),clearTimeout(h)}function E(){clearTimeout(d),cancelAnimationFrame(f)}function S(){c=!1;let x;function U(H){if(c)return;x??=H;const V=H-x;a.value=Math.max(0,Math.min(100,o(t,V))),f=requestAnimationFrame(U)}f=requestAnimationFrame(U)}let k=()=>{};{const x=s.hook("page:loading:start",()=>{_()}),U=s.hook("page:loading:end",()=>{w()}),H=s.hook("vue:error",()=>w({error:!0}));k=()=>{H(),x(),U(),E(),m()}}return{_cleanup:k,progress:tn(a),isLoading:tn(l),error:tn(u),start:_,set:v,finish:w,clear:E}}function L_(e={}){const t=Ie(),n=t._loadingIndicator||=k_(e);return Br()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,$s(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}const x_=yt({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){const{progress:r,isLoading:i,error:o,start:s,finish:a,clear:l}=L_({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:i,error:o,start:s,finish:a,clear:l}),()=>Rn("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:i.value?1:0,background:o.value?e.errorColor:e.color||void 0,backgroundSize:`${r.value>0?100/r.value*100:0}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}});let rf;function qn(e){rf?.(e)}function O_(e){rf=e}const I_={__name:"NNotification",setup(e){const t=ge(!1),n=ge(),r=ge(),i=ge(),o=ge("top-center");return O_(s=>{r.value=s.message,n.value=s.icon,i.value=s.classes??"text-primary border-primary",n.value=s.icon,t.value=!0,o.value=s.position??"top-center",setTimeout(()=>{t.value=!1},s.duration??1500)}),(s,a)=>(ee(),me("div",{fixed:"","left-0":"","right-0":"","z-999":"","text-center":"",class:qe([{"pointer-events-none overflow-hidden":!t.value},{"top-0":o.value.startsWith("top")},{"bottom-0":o.value.startsWith("bottom")}])},[pe("div",{flex:"",style:Tn({justifyContent:o.value.includes("right")?"right":o.value.includes("left")?"left":"center"})},[pe("div",{border:"~ base",flex:"~ inline gap2","m-3":"","inline-block":"","items-center":"",rounded:"","bg-base":"","px-4":"","py-1":"","transition-all":"","duration-300":"",style:Tn(t.value?{}:{transform:`translateY(${o.value.startsWith("top")?"-":""}300%)`}),class:qe([t.value?"shadow":"shadow-none",i.value])},[n.value?(ee(),me("div",{key:0,class:qe(n.value)},null,2)):nt("",!0),pe("div",null,Pt(r.value),1)],6)],4)],2))}},Ln={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(ee(),me("div",{class:qe(["n-icon",e.icon])},null,2))}};async function of(e,t=Xt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>of(e,t));t._routePreloaded.add(n);for(const o of r){const s=o.components?.default;if(typeof s!="function")continue;const a=Promise.resolve(s()).catch(()=>{}).finally(()=>i.splice(i.indexOf(a),1));i.push(a)}await Promise.all(i)}const D_=(...e)=>e.find(t=>t!==void 0);function N_(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,s,a){const l=a??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return ti(o,l);const u="path"in o&&o.path!==void 0?o.path:s(o).path;return{...o,name:void 0,path:ti(u,l)}}function i(o){const s=Xt(),a=Ir(),l=he(()=>!!F(o.target)&&F(o.target)!=="_self"),u=he(()=>{const v=F(o.to)||F(o.href)||"";return typeof v=="string"&&kn(v,{acceptRelative:!0})}),c=Va("RouterLink"),f=typeof c!="string"?c.useLink:void 0,d=he(()=>{if(F(o.external))return!0;const v=F(o.to)||F(o.href)||"";return typeof v=="object"?!1:v===""||u.value}),p=he(()=>{const v=F(o.to)||F(o.href)||"";return d.value?v:r(v,s.resolve,F(o.trailingSlash))}),h=d.value?void 0:f?.({...o,to:p,viewTransition:F(o.viewTransition)}),_=he(()=>{const v=F(o.trailingSlash)??e.trailingSlash;if(!p.value||u.value||n(p.value))return p.value;if(d.value){const b=typeof p.value=="object"&&"path"in p.value?ds(p.value):p.value,w=typeof b=="object"?s.resolve(b).href:b;return ti(w,v)}return typeof p.value=="object"?s.resolve(p.value)?.href??null:ti(po(a.app.baseURL,p.value),v)});return{to:p,hasTarget:l,isAbsoluteUrl:u,isExternal:d,href:_,isActive:h?.isActive??he(()=>p.value===s.currentRoute.value.path),isExactActive:h?.isExactActive??he(()=>p.value===s.currentRoute.value.path),route:h?.route??he(()=>s.resolve(p.value)),async navigate(v){await Ku(_.value,{replace:F(o.replace),external:d.value||l.value})}}}return yt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(o,{slots:s}){const a=Xt(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:d,isAbsoluteUrl:p}=i(o),h=ze(!1),_=ge(null),v=m=>{_.value=o.custom?m?.$el?.nextElementSibling:m?.$el};function b(m){return!h.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:o.prefetchOn?.[m]??e.prefetchOn?.[m])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!j_()}async function w(m=Ie()){if(h.value)return;h.value=!0;const E=typeof l.value=="string"?l.value:f.value?ds(l.value):a.resolve(l.value).fullPath,S=f.value?new URL(E,window.location.href).href:E;await Promise.all([m.hooks.callHook("link:prefetch",S)?.catch(()=>{}),!f.value&&!d.value&&of(l.value,a).catch(()=>{})])}if(b("visibility")){const m=Ie();let E,S=null;ir(()=>{const k=V_();aa(()=>{E=gs(()=>{_?.value?.tagName&&(S=k.observe(_.value,async()=>{S?.(),S=null,await w(m)}))})})}),Hr(()=>{E&&b_(E),S?.(),S=null})}return()=>{if(!f.value&&!d.value&&!n(l.value)){const S={ref:v,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(b("interaction")&&(S.onPointerenter=w.bind(null,void 0),S.onFocus=w.bind(null,void 0)),h.value&&(S.class=o.prefetchedClass||e.prefetchedClass),S.rel=o.rel||void 0),Rn(Va("RouterLink"),S,s.default)}const m=o.target||null,E=D_(o.noRel?"":o.rel,e.externalRelAttribute,p.value||d.value?"noopener noreferrer":"")||null;return o.custom?s.default?s.default({href:u.value,navigate:c,prefetch:w,get route(){if(!u.value)return;const S=new URL(u.value,window.location.href);return{path:S.pathname,fullPath:S.pathname,get query(){return fo(S.search)},hash:S.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:E,target:m,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Rn("a",{ref:_,href:u.value||null,rel:E,target:m,onClick:async S=>{if(!(f.value||d.value)){S.preventDefault();try{const k=Ju(u.value);return await(o.replace?a.replace(k):a.push(k))}finally{if(n(l.value)){const k=l.value.slice(1);let x=k;try{x=decodeURIComponent(k)}catch{}document.getElementById(x)?.focus()}}}}},s.default?.())}}})}const M_=N_(Xm);function ti(e,t){const n=t==="append"?Ci:ta;return kn(e)&&!e.startsWith("http")?e:n(e,!0)}function V_(){const e=Ie();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,s)=>(t||=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(o,s),t.observe(o),()=>{n.delete(o),t?.unobserve(o),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const $_=/2g/;function j_(){const e=navigator.connection;return!!(e&&(e.saveData||$_.test(e.effectiveType)))}const la=yt({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()=>Rn(e.to?M_:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},{default:()=>[rt(n,"icon",{},()=>e.icon?[Rn(Ln,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),rt(n,"default")]})}}),ca=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},B_={},F_={class:"n-loading n-panel-grids-center"},H_={class:"flex flex-col animate-pulse items-center text-lg"};function U_(e,t){return ee(),me("div",F_,[pe("div",H_,[t[1]||(t[1]=pe("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),rt(e.$slots,"default",{},()=>[t[0]||(t[0]=at(" Loading... ",-1))])])])}const sf=Object.assign(ca(B_,[["render",U_]]),{__name:"NLoading"}),z_={class:"n-tip n-tip-base"},af={__name:"NTip",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>{const r=Ln;return ee(),me("div",z_,[rt(t.$slots,"icon",{},()=>[e.icon?(ee(),Oe(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):nt("",!0)]),pe("div",null,[rt(t.$slots,"default")])])}}},G_={},W_={class:"n-card n-card-base"};function q_(e,t){return ee(),me("div",W_,[rt(e.$slots,"default")])}const mo=Object.assign(ca(G_,[["render",q_]]),{__name:"NCard"}),K_={flex:"~ gap-3","items-center":""},J_={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(ee(),me("div",K_,[e.icon?(ee(),me("div",{key:0,class:qe(e.icon)},null,2)):nt("",!0),rt(t.$slots,"default",{},()=>[pe("div",null,Pt(e.text),1)])]))}},X_={},Y_={class:"n-badge"};function Q_(e,t){return ee(),me("span",Y_,[rt(e.$slots,"default")])}const lf=Object.assign(ca(X_,[["render",Q_]]),{__name:"NBadge"});function cf(e,t){return Br()?($s(e,t),!0):!1}const ua=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Z_=e=>typeof e<"u",ey=e=>e!=null,ty=Object.prototype.toString,ny=e=>ty.call(e)==="[object Object]",_r=()=>{};function ry(...e){if(e.length!==1)return Hs(...e);const t=e[0];return typeof t=="function"?yi(Xd(()=>({get:t,set:_r}))):ge(t)}function iy(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const uf=e=>e();function oy(e=uf,t={}){const{initialState:n="active"}=t,r=ry(n==="active");function i(){r.value=!1}function o(){r.value=!0}return{isActive:tn(r),pause:i,resume:o,eventFilter:(...a)=>{r.value&&e(...a)}}}function sy(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function hi(e){return Array.isArray(e)?e:[e]}function ay(e){return St()}function ly(e,t,n={}){const{eventFilter:r=uf,...i}=n;return Ke(e,iy(r,t),i)}function cy(e,t,n={}){const{eventFilter:r,initialState:i="active",...o}=n,{eventFilter:s,pause:a,resume:l,isActive:u}=oy(r,{initialState:i});return{stop:ly(e,t,{...o,eventFilter:s}),pause:a,resume:l,isActive:u}}function uy(e,t=!0,n){ay()?ir(e,n):t?e():Rt(e)}function fy(e,t,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n,o=ze(!1);let s;function a(){s&&(clearTimeout(s),s=void 0)}function l(){o.value=!1,a()}function u(...c){i&&e(),a(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=void 0,e(...c)},xe(t))}return r&&(o.value=!0,ua&&u()),cf(l),{isPending:tn(o),start:u,stop:l}}function dy(e,t,n){return Ke(e,t,{...n,immediate:!0})}const gn=ua?window:void 0,ff=ua?window.navigator:void 0;function $n(e){var t;const n=xe(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Sn(...e){const t=(r,i,o,s)=>(r.addEventListener(i,o,s),()=>r.removeEventListener(i,o,s)),n=he(()=>{const r=hi(xe(e[0])).filter(i=>i!=null);return r.every(i=>typeof i!="string")?r:void 0});return dy(()=>{var r,i;return[(r=(i=n.value)===null||i===void 0?void 0:i.map(o=>$n(o)))!==null&&r!==void 0?r:[gn].filter(o=>o!=null),hi(xe(n.value?e[1]:e[0])),hi(F(n.value?e[2]:e[1])),xe(n.value?e[3]:e[2])]},([r,i,o,s],a,l)=>{if(!r?.length||!i?.length||!o?.length)return;const u=ny(s)?{...s}:s,c=r.flatMap(f=>i.flatMap(d=>o.map(p=>t(f,d,p,u))));l(()=>{c.forEach(f=>f())})},{flush:"post"})}function py(e,t,n={}){const{window:r=gn,ignore:i=[],capture:o=!0,detectIframe:s=!1,controls:a=!1}=n;if(!r)return a?{stop:_r,cancel:_r,trigger:_r}:_r;let l=!0;const u=v=>xe(i).some(b=>{if(typeof b=="string")return Array.from(r.document.querySelectorAll(b)).some(w=>w===v.target||v.composedPath().includes(w));{const w=$n(b);return w&&(v.target===w||v.composedPath().includes(w))}});function c(v){const b=xe(v);return b&&b.$.subTree.shapeFlag===16}function f(v,b){const w=xe(v),m=w.$.subTree&&w.$.subTree.children;return m==null||!Array.isArray(m)?!1:m.some(E=>E.el===b.target||b.composedPath().includes(E.el))}const d=v=>{const b=$n(e);if(v.target!=null&&!(!(b instanceof Element)&&c(e)&&f(e,v))&&!(!b||b===v.target||v.composedPath().includes(b))){if("detail"in v&&v.detail===0&&(l=!u(v)),!l){l=!0;return}t(v)}};let p=!1;const h=[Sn(r,"click",v=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(v))},{passive:!0,capture:o}),Sn(r,"pointerdown",v=>{const b=$n(e);l=!u(v)&&!!(b&&!v.composedPath().includes(b))},{passive:!0}),s&&Sn(r,"blur",v=>{setTimeout(()=>{const b=$n(e);let w=r.document.activeElement;for(;w?.shadowRoot;)w=w.shadowRoot.activeElement;w?.tagName==="IFRAME"&&!b?.contains(r.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),_=()=>h.forEach(v=>v());return a?{stop:_,cancel:()=>{l=!1},trigger:v=>{l=!0,d(v),l=!1}}:_}function hy(){const e=ze(!1),t=St();return t&&ir(()=>{e.value=!0},t),e}function df(e){const t=hy();return he(()=>(t.value,!!e()))}function Sl(e,t={}){const{controls:n=!1,navigator:r=ff}=t,i=df(()=>r&&"permissions"in r),o=ze(),s=typeof e=="string"?{name:e}:e,a=ze(),l=()=>{var c,f;a.value=(c=(f=o.value)===null||f===void 0?void 0:f.state)!==null&&c!==void 0?c:"prompt"};Sn(o,"change",l,{passive:!0});const u=sy(async()=>{if(i.value){if(!o.value)try{o.value=await r.permissions.query(s)}catch{o.value=void 0}finally{l()}if(n)return ye(o.value)}});return u(),n?{state:a,isSupported:i,query:u}:a}function my(e={}){const{navigator:t=ff,read:n=!1,source:r,copiedDuring:i=1500,legacy:o=!1}=e,s=df(()=>t&&"clipboard"in t),a=Sl("clipboard-read"),l=Sl("clipboard-write"),u=he(()=>s.value||o),c=ze(""),f=ze(!1),d=ze(!1),p=fy(()=>f.value=!1,i,{immediate:!1});let h=0;async function _(){let S=!(s.value&&E(a.value));if(!S)try{c.value=await t.clipboard.readText()}catch{S=!0}S&&(c.value=m())}u.value&&n&&Sn(["copy","cut"],_,{passive:!0});async function v(S){const k=S??xe(r);if(u.value&&k!=null){d.value=!0;let x=!(s.value&&E(l.value));if(!x)try{const U=b(k);await t.clipboard.write([U])}catch{x=!0}if(x)if(typeof k=="string")c.value=k,w(k);else{const U=++h,H=await k();H!=null&&U===h&&(c.value=H,w(H))}f.value=!0,p.start(),d.value=!1}}function b(S){return typeof S=="string"?(c.value=S,new ClipboardItem({"text/plain":S})):new ClipboardItem({"text/plain":S().then((k="")=>(c.value=k,new Blob([k],{type:"text/plain"})))})}function w(S){const k=document.createElement("textarea");k.value=S,k.style.position="absolute",k.style.opacity="0",k.setAttribute("readonly",""),document.body.appendChild(k),k.select(),document.execCommand("copy"),k.remove()}function m(){var S,k,x;return(S=(k=document)===null||k===void 0||(x=k.getSelection)===null||x===void 0||(x=x.call(k))===null||x===void 0?void 0:x.toString())!==null&&S!==void 0?S:""}function E(S){return S==="granted"||S==="prompt"}return{copyPending:tn(d),isSupported:u,text:tn(c),copied:tn(f),copy:v}}function gy(e){return JSON.parse(JSON.stringify(e))}const ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ri="__vueuse_ssr_handlers__",_y=yy();function yy(){return ri in ni||(ni[ri]=ni[ri]||{}),ni[ri]}function vy(e,t){return _y[e]||t}function by(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 Ey={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()}},Tl="vueuse-storage";function wy(e,t,n,r={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=gn,eventFilter:d,onError:p=A=>{console.error(A)},initOnMounted:h}=r,_=(c?ze:ge)(typeof t=="function"?t():t),v=he(()=>xe(e));if(!n)try{n=vy("getDefaultStorage",()=>gn?.localStorage)()}catch(A){p(A)}if(!n)return _;const b=xe(t),w=by(b),m=(i=r.serializer)!==null&&i!==void 0?i:Ey[w],{pause:E,resume:S}=cy(_,A=>V(A),{flush:o,deep:s,eventFilter:d});Ke(v,()=>te(),{flush:o});let k=!1;const x=A=>{h&&!k||te(A)},U=A=>{h&&!k||X(A)};f&&a&&(n instanceof Storage?Sn(f,"storage",x,{passive:!0}):Sn(f,Tl,U)),h?uy(()=>{k=!0,te()}):te();function H(A,R){if(f){const P={key:v.value,oldValue:A,newValue:R,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",P):new CustomEvent(Tl,{detail:P}))}}function V(A){try{const R=n.getItem(v.value);if(A==null)H(R,null),n.removeItem(v.value);else{const P=m.write(A);R!==P&&(n.setItem(v.value,P),H(R,P))}}catch(R){p(R)}}function Q(A){const R=A?A.newValue:n.getItem(v.value);if(R==null)return l&&b!=null&&n.setItem(v.value,m.write(b)),b;if(!A&&u){const P=m.read(R);return typeof u=="function"?u(P,b):w==="object"&&!Array.isArray(P)?{...b,...P}:P}else return typeof R!="string"?R:m.read(R)}function te(A){if(!(A&&A.storageArea!==n)){if(A&&A.key==null){_.value=b;return}if(!(A&&A.key!==v.value)){E();try{const R=m.write(_.value);(A===void 0||A?.newValue!==R)&&(_.value=Q(A))}catch(R){p(R)}finally{A?Rt(S):S()}}}}function X(A){te(A.detail)}return _}function Sy(e,t,n={}){const{window:r=gn}=n;return wy(e,t,r?.localStorage,n)}function go(e,t,n,r={}){var i,o;const{clone:s=!1,passive:a=!1,eventName:l,deep:u=!1,defaultValue:c,shouldEmit:f}=r,d=St(),p=n||d?.emit||(d==null||(i=d.$emit)===null||i===void 0?void 0:i.bind(d))||(d==null||(o=d.proxy)===null||o===void 0||(o=o.$emit)===null||o===void 0?void 0:o.bind(d?.proxy));let h=l;h=h||`update:${t.toString()}`;const _=w=>s?typeof s=="function"?s(w):gy(w):w,v=()=>Z_(e[t])?_(e[t]):c,b=w=>{f?f(w)&&p(h,w):p(h,w)};if(a){const w=ge(v());let m=!1;return Ke(()=>e[t],E=>{m||(m=!0,w.value=_(E),Rt(()=>m=!1))}),Ke(w,E=>{!m&&(E!==e[t]||u)&&b(E)},{deep:u}),w}else return he({get(){return v()},set(w){b(w)}})}const Ty=["disabled"],Ay={key:0,value:"",disabled:"",hidden:""},Ry={__name:"NSelect",props:{modelValue:{type:null,required:!1,default:void 0},placeholder:{type:String,required:!1,default:""},icon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1}},emits:[],setup(e,{emit:t}){const i=go(e,"modelValue",t,{passive:!0});return(o,s)=>{const a=Ln;return ee(),me("div",{class:qe(["n-select flex flex items-center border rounded n-bg-base px-2 py-1 focus-within:border-context focus-within:n-focus-base",e.disabled?"border-gray:10":"n-border-base"])},[rt(o.$slots,"icon",{},()=>[e.icon?(ee(),Oe(a,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):nt("",!0)]),oo(pe("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>be(i)?i.value=l:null),disabled:e.disabled,class:qe(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(ee(),me("option",Ay,Pt(e.placeholder),1)):nt("",!0),rt(o.$slots,"default")],10,Ty),[[Au,F(i)]])],2)}}},Py={class:"space-y-2"},Cy={class:"flex items-center justify-between"},ky=["value"],Ly=yt({__name:"EmailTemplateSelector",props:{emailTemplates:{},selectedTemplate:{}},emits:["select"],setup(e){return(t,n)=>{const r=J_,i=lf,o=Ry,s=mo;return ee(),me("div",Py,[pe("div",Cy,[ie(r,{text:"Select a template:",icon:"carbon:list"}),ie(i,null,{default:Ce(()=>[at(Pt(e.emailTemplates.length)+" templates ",1)]),_:1})]),e.emailTemplates.length>0?(ee(),Oe(s,{key:0,class:"grid gap-3"},{default:Ce(()=>[ie(o,{"model-value":e.selectedTemplate,"onUpdate:modelValue":n[0]||(n[0]=a=>t.$emit("select",a))},{default:Ce(()=>[(ee(!0),me(Ue,null,qc(e.emailTemplates,a=>(ee(),me("option",{key:a.filename,value:a},Pt(a.filename),9,ky))),128))]),_:1},8,["model-value"])]),_:1})):nt("",!0)])}}}),xy=Object.assign(Ly,{__name:"EmailTemplateSelector"}),Oy={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},Iy=["disabled","title"],Dy=["disabled","value","title"],Ny={__name:"NSelectTabs",props:{modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!0}},emits:[],setup(e,{emit:t}){const i=go(e,"modelValue",t,{passive:!0});return(o,s)=>(ee(),me("fieldset",Oy,[(ee(!0),me(Ue,null,qc(e.options,(a,l)=>(ee(),me("label",{key:a.label,disabled:e.disabled,class:qe(["relative n-border-base px-0.5em py-0.1em hover:n-bg-active",[l?"border-l n-border-base ml--1px":"",a.value===F(i)?"n-bg-active":""]]),title:a.label},[pe("div",{class:qe([a.value===F(i)?"":"op35"])},Pt(a.label),3),oo(pe("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>be(i)?i.value=u:null),type:"radio",disabled:e.disabled,value:a.value,title:a.label,class:"absolute inset-0 op-0.1"},null,8,Dy),[[Tu,F(i)]])],10,Iy))),128))]))}},My=yt({__name:"BaseButton",props:{isLoading:{type:Boolean},isDisabled:{type:Boolean},icon:{}},setup(e){return(t,n)=>{const r=Ln,i=la;return ee(),Oe(i,{disabled:e.isLoading||e.isDisabled},{icon:Ce(()=>[ie(r,{icon:e.isLoading?"carbon:circle-dash":e.icon,class:qe({"animate-spin":e.isLoading})},null,8,["icon","class"])]),default:Ce(()=>[rt(t.$slots,"default")]),_:3},8,["disabled"])}}}),_s=Object.assign(My,{__name:"BaseButton"}),Vy={class:"n-text-input flex flex items-center border n-border-base rounded n-bg-base py-1 pl-1 pr-2 focus-within:border-context focus-within:n-focus-base"},$y={__name:"NTextInput",props:{modelValue:{type:[String,Number],required:!1,default:""},icon:{type:String,required:!1},placeholder:{type:String,required:!1},disabled:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},readonly:{type:Boolean,required:!1},type:{type:String,required:!1,default:"text"}},emits:["keydown","keyup","change"],setup(e,{emit:t}){const i=go(e,"modelValue",t,{passive:!0});return(o,s)=>{const a=Ln;return ee(),me("div",Vy,[rt(o.$slots,"icon",{},()=>[e.icon?(ee(),Oe(a,{key:0,icon:e.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):nt("",!0)]),oo(pe("input",ea({"onUpdate:modelValue":s[0]||(s[0]=l=>be(i)?i.value=l:null)},o.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[jh,F(i)]])])}}};/*!
|
|
21
|
+
* tabbable 6.4.0
|
|
22
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
23
|
+
*/var pf=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Oi=pf.join(","),hf=typeof Element>"u",Pn=hf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ii=!hf&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Di=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",s=o||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Di(t.parentNode));return s},jy=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},mf=function(t,n,r){if(Di(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Oi));return n&&Pn.call(t,Oi)&&i.unshift(t),i=i.filter(r),i},Ni=function(t,n,r){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Di(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,u=Ni(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:s,candidates:u})}else{var c=Pn.call(s,Oi);c&&r.filter(s)&&(n||!t.includes(s))&&i.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),d=!Di(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&d){var p=Ni(f===!0?s.children:f.children,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:s,candidates:p})}else o.unshift.apply(o,s.children)}}return i},gf=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},mn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||jy(t))&&!gf(t)?0:t.tabIndex},By=function(t,n){var r=mn(t);return r<0&&n&&!gf(t)?0:r},Fy=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},_f=function(t){return t.tagName==="INPUT"},Hy=function(t){return _f(t)&&t.type==="hidden"},Uy=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},zy=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Gy=function(t){if(!t.name)return!0;var n=t.form||Ii(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(s){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",s.message),!1}var o=zy(i,t.form);return!o||o===t},Wy=function(t){return _f(t)&&t.type==="radio"},qy=function(t){return Wy(t)&&!Gy(t)},Ky=function(t){var n,r=t&&Ii(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var s,a,l;for(o=!!((s=i)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&i;){var u,c,f;r=Ii(i),i=(u=r)===null||u===void 0?void 0:u.host,o=!!((c=i)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return o},Al=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Jy=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var o=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!o}if(getComputedStyle(t).visibility==="hidden")return!0;var s=Pn.call(t,"details>summary:first-of-type"),a=s?t.parentElement:t;if(Pn.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var u=t.parentElement,c=Ii(t);if(u&&!u.shadowRoot&&i(u)===!0)return Al(t);t.assignedSlot?t=t.assignedSlot:!u&&c!==t.ownerDocument?t=c.host:t=u}t=l}if(Ky(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Al(t);return!1},Xy=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 i=n.children.item(r);if(i.tagName==="LEGEND")return Pn.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},Mi=function(t,n){return!(n.disabled||Hy(n)||Jy(n,t)||Uy(n)||Xy(n))},ys=function(t,n){return!(qy(n)||mn(n)<0||!Mi(t,n))},Yy=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},yf=function(t){var n=[],r=[];return t.forEach(function(i,o){var s=!!i.scopeParent,a=s?i.scopeParent:i,l=By(a,s),u=s?yf(i.candidates):a;l===0?s?n.push.apply(n,u):n.push(a):r.push({documentOrder:o,tabIndex:l,item:i,isScope:s,content:u})}),r.sort(Fy).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},Qy=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Ni([t],n.includeContainer,{filter:ys.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Yy}):r=mf(t,n.includeContainer,ys.bind(null,n)),yf(r)},Zy=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Ni([t],n.includeContainer,{filter:Mi.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=mf(t,n.includeContainer,Mi.bind(null,n)),r},Dn=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Pn.call(t,Oi)===!1?!1:ys(n,t)},ev=pf.concat("iframe:not([inert]):not([inert] *)").join(","),No=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Pn.call(t,ev)===!1?!1:Mi(n,t)};/*!
|
|
24
|
+
* focus-trap 8.2.1
|
|
25
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
26
|
+
*/function vs(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 tv(e){if(Array.isArray(e))return vs(e)}function Rl(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=vf(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return s=l.done,l},e:function(l){a=!0,o=l},f:function(){try{s||n.return==null||n.return()}finally{if(a)throw o}}}}function nv(e,t,n){return(t=av(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
28
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pl(Object(n),!0).forEach(function(r){nv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ov(e){return tv(e)||rv(e)||vf(e)||iv()}function sv(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 av(e){var t=sv(e,"string");return typeof t=="symbol"?t:t+""}function vf(e,t){if(e){if(typeof e=="string")return vs(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)?vs(e,t):void 0}}var qt={getActiveTrap:function(t){return t?.length>0?t[t.length-1]:null},activateTrap:function(t,n){var r=qt.getActiveTrap(t);n!==r&&qt.pauseTrap(t);var i=t.indexOf(n);i===-1||t.splice(i,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),qt.unpauseTrap(t)},pauseTrap:function(t){var n=qt.getActiveTrap(t);n?._setPausedState(!0)},unpauseTrap:function(t){var n=qt.getActiveTrap(t);n&&!n._isManuallyPaused()&&n._setPausedState(!1)}},lv=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},cv=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},Tr=function(t){return t?.key==="Tab"||t?.keyCode===9},uv=function(t){return Tr(t)&&!t.shiftKey},fv=function(t){return Tr(t)&&t.shiftKey},kl=function(t){return setTimeout(t,0)},dr=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,r):t},ii=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},dv=[],pv=function(t,n){var r=n?.document||document,i=n?.trapStack||dv,o=Cl({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:uv,isKeyBackward:fv},n),s={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,l=function(A,R,P){return A&&A[R]!==void 0?A[R]:o[P||R]},u=function(A,R){var P=typeof R?.composedPath=="function"?R.composedPath():void 0;return s.containerGroups.findIndex(function(z){var O=z.container,Z=z.tabbableNodes;return O.contains(A)||P?.includes(O)||Z.find(function(re){return re===A})})},c=function(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=R.hasFallback,z=P===void 0?!1:P,O=R.params,Z=O===void 0?[]:O,re=o[A];if(typeof re=="function"&&(re=re.apply(void 0,ov(Z))),re===!0&&(re=void 0),!re){if(re===void 0||re===!1)return re;throw new Error("`".concat(A,"` was specified but was not a node, or did not return a node"))}var fe=re;if(typeof re=="string"){try{fe=r.querySelector(re)}catch(le){throw new Error("`".concat(A,'` appears to be an invalid selector; error="').concat(le.message,'"'))}if(!fe&&!z)throw new Error("`".concat(A,"` as selector refers to no known node"))}return fe},f=function(A){var R=A.activeElement;return R?R.shadowRoot&&R.shadowRoot.activeElement!==null?f(R.shadowRoot):R:null},d=function(){var A=c("initialFocus",{hasFallback:!0});if(A===!1)return!1;if(A===void 0||A&&!No(A,o.tabbableOptions)){var R=f(r);if(u(R)>=0)A=R;else{var P=s.tabbableGroups[0],z=P&&P.firstTabbableNode;A=z||c("fallbackFocus")}}else A===null&&(A=c("fallbackFocus"));if(!A)throw new Error("Your focus-trap needs to have at least one focusable element");return A},p=function(){if(s.containerGroups=s.containers.map(function(A){var R=Qy(A,o.tabbableOptions),P=Zy(A,o.tabbableOptions),z=R.length>0?R[0]:void 0,O=R.length>0?R[R.length-1]:void 0,Z=P.find(function(le){return Dn(le)}),re=P.slice().reverse().find(function(le){return Dn(le)}),fe=!!R.find(function(le){return mn(le)>0});return{container:A,tabbableNodes:R,focusableNodes:P,posTabIndexesFound:fe,firstTabbableNode:z,lastTabbableNode:O,firstDomTabbableNode:Z,lastDomTabbableNode:re,nextTabbableNode:function(Le){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,we=R.indexOf(Le);return we<0?De?P.slice(P.indexOf(Le)+1).find(function(Ye){return Dn(Ye)}):P.slice(0,P.indexOf(Le)).reverse().find(function(Ye){return Dn(Ye)}):R[we+(De?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(A){return A.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(A){return A.posTabIndexesFound})&&s.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(A){if(A!==!1&&A!==f(document)){if(!A||!A.focus){h(d());return}A.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=A,lv(A)&&A.select()}},_=function(A){var R=c("setReturnFocus",{params:[A]});return R||(R===!1?!1:A)},v=function(A){var R=A.target,P=A.event,z=A.isBackward,O=z===void 0?!1:z;R=R||ii(P),p();var Z=null;if(s.tabbableGroups.length>0){var re=u(R,P),fe=re>=0?s.containerGroups[re]:void 0;if(re<0)O?Z=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:Z=s.tabbableGroups[0].firstTabbableNode;else if(O){var le=s.tabbableGroups.findIndex(function($){var W=$.firstTabbableNode;return R===W});if(le<0&&(fe.container===R||No(R,o.tabbableOptions)&&!Dn(R,o.tabbableOptions)&&!fe.nextTabbableNode(R,!1))&&(le=re),le>=0){var Le=le===0?s.tabbableGroups.length-1:le-1,De=s.tabbableGroups[Le];Z=mn(R)>=0?De.lastTabbableNode:De.lastDomTabbableNode}else Tr(P)||(Z=fe.nextTabbableNode(R,!1))}else{var we=s.tabbableGroups.findIndex(function($){var W=$.lastTabbableNode;return R===W});if(we<0&&(fe.container===R||No(R,o.tabbableOptions)&&!Dn(R,o.tabbableOptions)&&!fe.nextTabbableNode(R))&&(we=re),we>=0){var Ye=we===s.tabbableGroups.length-1?0:we+1,L=s.tabbableGroups[Ye];Z=mn(R)>=0?L.firstTabbableNode:L.firstDomTabbableNode}else Tr(P)||(Z=fe.nextTabbableNode(R))}}else Z=c("fallbackFocus");return Z},b=function(A){var R=ii(A);if(!(u(R,A)>=0)){if(dr(o.clickOutsideDeactivates,A)){a.deactivate({returnFocus:o.returnFocusOnDeactivate});return}dr(o.allowOutsideClick,A)||A.preventDefault()}},w=function(A){var R=ii(A),P=u(R,A)>=0;if(P||R instanceof Document)P&&(s.mostRecentlyFocusedNode=R);else{A.stopImmediatePropagation();var z,O=!0;if(s.mostRecentlyFocusedNode)if(mn(s.mostRecentlyFocusedNode)>0){var Z=u(s.mostRecentlyFocusedNode),re=s.containerGroups[Z].tabbableNodes;if(re.length>0){var fe=re.findIndex(function(le){return le===s.mostRecentlyFocusedNode});fe>=0&&(o.isKeyForward(s.recentNavEvent)?fe+1<re.length&&(z=re[fe+1],O=!1):fe-1>=0&&(z=re[fe-1],O=!1))}}else s.containerGroups.some(function(le){return le.tabbableNodes.some(function(Le){return mn(Le)>0})})||(O=!1);else O=!1;O&&(z=v({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),h(z||s.mostRecentlyFocusedNode||d())}s.recentNavEvent=void 0},m=function(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=A;var P=v({event:A,isBackward:R});P&&(Tr(A)&&A.preventDefault(),h(P))},E=function(A){(o.isKeyForward(A)||o.isKeyBackward(A))&&m(A,o.isKeyBackward(A))},S=function(A){cv(A)&&dr(o.escapeDeactivates,A)!==!1&&(A.preventDefault(),a.deactivate())},k=function(A){var R=ii(A);u(R,A)>=0||dr(o.clickOutsideDeactivates,A)||dr(o.allowOutsideClick,A)||(A.preventDefault(),A.stopImmediatePropagation())},x=function(){if(s.active){qt.activateTrap(i,a);var A;return o.delayInitialFocus?A=new Promise(function(R){s.delayInitialFocusTimer=kl(function(){h(d()),R()})}):h(d()),r.addEventListener("focusin",w,!0),r.addEventListener("mousedown",b,{capture:!0,passive:!1}),r.addEventListener("touchstart",b,{capture:!0,passive:!1}),r.addEventListener("click",k,{capture:!0,passive:!1}),r.addEventListener("keydown",E,{capture:!0,passive:!1}),r.addEventListener("keydown",S),A}},U=function(A){s.active&&!s.paused&&a._setSubtreeIsolation(!1),s.adjacentElements.clear(),s.alreadySilent.clear();var R=new Set,P=new Set,z=Rl(A),O;try{for(z.s();!(O=z.n()).done;){var Z=O.value;R.add(Z);for(var re=typeof ShadowRoot<"u"&&Z.getRootNode()instanceof ShadowRoot,fe=Z;fe;){R.add(fe);var le=fe.parentElement,Le=[];le?Le=le.children:!le&&re&&(Le=fe.getRootNode().children,le=fe.getRootNode().host,re=typeof ShadowRoot<"u"&&le.getRootNode()instanceof ShadowRoot);var De=Rl(Le),we;try{for(De.s();!(we=De.n()).done;){var Ye=we.value;P.add(Ye)}}catch(L){De.e(L)}finally{De.f()}fe=le}}}catch(L){z.e(L)}finally{z.f()}R.forEach(function(L){P.delete(L)}),s.adjacentElements=P},H=function(){if(s.active)return r.removeEventListener("focusin",w,!0),r.removeEventListener("mousedown",b,!0),r.removeEventListener("touchstart",b,!0),r.removeEventListener("click",k,!0),r.removeEventListener("keydown",E,!0),r.removeEventListener("keydown",S),a},V=function(A){var R=s.mostRecentlyFocusedNode;if(R){var P=A.some(function(O){var Z=Array.from(O.removedNodes);return Z.some(function(re){return re===R||typeof re.contains=="function"&&re.contains(R)})});if(P&&s.containers.some(function(O){return O?.isConnected})){p();var z=d();h(z)}}},Q=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(V):void 0,te=function(){Q&&(Q.disconnect(),s.active&&!s.paused&&s.containers.map(function(A){Q.observe(A,{subtree:!0,childList:!0})}))};return a={get active(){return s.active},get paused(){return s.paused},activate:function(A){if(s.active)return this;var R=l(A,"onActivate"),P=l(A,"onPostActivate"),z=l(A,"checkCanFocusTrap"),O=qt.getActiveTrap(i),Z=!1;if(O&&!O.paused){var re;(re=O._setSubtreeIsolation)===null||re===void 0||re.call(O,!1),Z=!0}try{z||p(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=f(r),R?.({trap:a});var fe=function(){z&&p();var De=function(){a._setSubtreeIsolation(!0),te(),P?.({trap:a})},we=x();we?we.then(De):De()};if(z)return z(s.containers.concat()).then(fe,fe),this;fe()}catch(Le){if(O===qt.getActiveTrap(i)&&Z){var le;(le=O._setSubtreeIsolation)===null||le===void 0||le.call(O,!0)}throw Le}return this},deactivate:function(A){if(!s.active)return this;var R=Cl({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},A);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,s.paused||a._setSubtreeIsolation(!1),s.alreadySilent.clear(),H(),s.active=!1,s.paused=!1,te(),qt.deactivateTrap(i,a);var P=l(R,"onDeactivate"),z=l(R,"onPostDeactivate"),O=l(R,"checkCanReturnFocus"),Z=l(R,"delayReturnFocus"),re=l(R,"returnFocus","returnFocusOnDeactivate");P?.({trap:a});var fe=function(){re&&h(_(s.nodeFocusedBeforeActivation)),z?.({trap:a})},le=function(){Z&&re?kl(fe):fe()};return re&&O?(O(_(s.nodeFocusedBeforeActivation)).then(le,le),this):(le(),this)},pause:function(A){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,A)):this},unpause:function(A){return s.active?(s.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,A)):this},updateContainerElements:function(A){var R=[].concat(A).filter(Boolean);return s.containers=R.map(function(P){return typeof P=="string"?r.querySelector(P):P}),o.isolateSubtrees&&U(s.containers),s.active&&(p(),s.paused||a._setSubtreeIsolation(!0)),te(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(A,R){if(s.paused===A)return this;if(s.paused=A,A){var P=l(R,"onPause"),z=l(R,"onPostPause");P?.({trap:a}),H(),a._setSubtreeIsolation(!1),te(),z?.({trap:a})}else{var O=l(R,"onUnpause"),Z=l(R,"onPostUnpause");O?.({trap:a});var re=function(){p();var le=function(){a._setSubtreeIsolation(!0),te(),Z?.({trap:a})},Le=x();Le?Le.then(le):le()};re()}return this}},_setSubtreeIsolation:{value:function(A){o.isolateSubtrees&&s.adjacentElements.forEach(function(R){var P;if(A)switch(o.isolateSubtrees){case"aria-hidden":(R.ariaHidden==="true"||((P=R.getAttribute("aria-hidden"))===null||P===void 0?void 0:P.toLowerCase())==="true")&&s.alreadySilent.add(R),R.setAttribute("aria-hidden","true");break;default:(R.inert||R.hasAttribute("inert"))&&s.alreadySilent.add(R),R.setAttribute("inert",!0);break}else if(!s.alreadySilent.has(R))switch(o.isolateSubtrees){case"aria-hidden":R.removeAttribute("aria-hidden");break;default:R.removeAttribute("inert");break}})}}}),a.updateContainerElements(t),a};function hv(e,t={}){let n;const{immediate:r,...i}=t,o=ze(!1),s=ze(!1),a=f=>n&&n.activate(f),l=f=>n&&n.deactivate(f),u=()=>{n&&(n.pause(),s.value=!0)},c=()=>{n&&(n.unpause(),s.value=!1)};return Ke(he(()=>hi(xe(e)).map(f=>{const d=xe(f);return typeof d=="string"?d:$n(d)}).filter(ey)),f=>{if(f.length)if(!n)n=pv(f,{...i,onActivate(d){o.value=!0,t.onActivate&&t.onActivate(d)},onDeactivate(d){o.value=!1,t.onDeactivate&&t.onDeactivate(d)}}),r&&a();else{const d=n?.active;n?.updateContainerElements(f),!d&&r&&a()}},{flush:"post"}),cf(()=>l()),{hasFocus:o,isPaused:s,activate:a,deactivate:l,pause:u,unpause:c}}const mv={inheritAttrs:!1},gv=Object.assign(mv,{__name:"NDialog",props:{modelValue:{type:Boolean,required:!1,default:!1},dim:{type:Boolean,required:!1,default:!0},autoClose:{type:Boolean,required:!1,default:!0}},emits:["close","update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=go(n,"modelValue",r,{passive:!0}),o=ge(null),s=ge(!1),{activate:a,deactivate:l}=hv(he(()=>o.value||document.body),{immediate:!1});return Nc(()=>{!s.value&&i.value&&(s.value=!0),i.value&&o.value?Rt(a):l()}),py(o,()=>{n.modelValue&&n.autoClose&&(i.value=!1,r("close"))},{ignore:["a","button","summary"]}),(u,c)=>{const f=mo;return s.value?(ee(),Oe(pp,{key:0,to:"body"},[oo(pe("div",{class:qe(["fixed inset-0 z-100 flex items-center justify-center n-glass-effect n-transition",[F(i)?"":"op0 pointer-events-none visibility-none"]]),role:"dialog","aria-modal":"true"},[pe("div",{class:qe(["absolute inset-0 -z-1",[e.dim?"glass-effect":""]])},null,2),ie(f,ea(u.$attrs,{ref_key:"card",ref:o,class:"max-h-screen of-auto"}),{default:Ce(()=>[rt(u.$slots,"default")]),_:3},16)],2),[[Eh,F(i)]])])):nt("",!0)}}}),dt={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Ll={silent:{level:-1},fatal:{level:dt.fatal},error:{level:dt.error},warn:{level:dt.warn},log:{level:dt.log},info:{level:dt.info},success:{level:dt.success},fail:{level:dt.fail},ready:{level:dt.info},start:{level:dt.info},box:{level:dt.info},debug:{level:dt.debug},trace:{level:dt.trace},verbose:{level:dt.verbose}};function Mo(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 bs(e,t,n=".",r){if(!Mo(t))return bs(e,{},n);const i=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const s=e[o];s!=null&&(Array.isArray(s)&&Array.isArray(i[o])?i[o]=[...s,...i[o]]:Mo(s)&&Mo(i[o])?i[o]=bs(s,i[o],(n?`${n}.`:"")+o.toString()):i[o]=s)}return i}function _v(e){return(...t)=>t.reduce((n,r)=>bs(n,r,""),{})}const yv=_v();function vv(e){return Object.prototype.toString.call(e)==="[object Object]"}function bv(e){return!(!vv(e)||!e.message&&!e.args||e.stack)}let Vo=!1;const xl=[];class Xe{options;_lastLog;_mockFn;constructor(t={}){const n=t.types||Ll;this.options=yv({...t,defaults:{...t.defaults},level:$o(t.level,n),reporters:[...t.reporters||[]]},{types:Ll,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const r in n){const i={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=$o(t,this.options.types,this.options.level)}prompt(t,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,n)}create(t){const n=new Xe({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const n=this.options.reporters.indexOf(t);if(n!==-1)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,n){t&&(t.__write||(t.__write=t.write),t.write=r=>{this[n].raw(String(r).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){Vo=!0}resumeLogs(){Vo=!1;const t=xl.splice(0);for(const n of t)n[0]._logFn(n[1],n[2])}mockTypes(t){const n=t||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(t,n){return(...r)=>{if(Vo){xl.push([this,t,r,n]);return}return this._logFn(t,r,n)}}_logFn(t,n,r){if((t.level||0)>this.level)return!1;const i={date:new Date,args:[],...t,level:$o(t.level,this.options.types)};!r&&n.length===1&&bv(n[0])?Object.assign(i,n[0]):i.args=[...n],i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split(`
|
|
29
|
+
`)),i.args.push(`
|
|
30
|
+
`+i.additional.join(`
|
|
31
|
+
`)),delete i.additional),i.type=typeof i.type=="string"?i.type.toLowerCase():"log",i.tag=typeof i.tag=="string"?i.tag:"";const o=(a=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const u=[...this._lastLog.object.args];l>1&&u.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:u}),this._lastLog.count=1}a&&(this._lastLog.object=i,this._log(i))};clearTimeout(this._lastLog.timeout);const s=this._lastLog.time&&i.date?i.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=i.date,s<this.options.throttle)try{const a=JSON.stringify([i.type,i.tag,i.args]),l=this._lastLog.serialized===a;if(this._lastLog.serialized=a,l&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(o,this.options.throttle);return}}catch{}o(!0)}_log(t){for(const n of this.options.reporters)n.log(t,{options:this.options})}}function $o(e,t={},n=3){return e===void 0?n:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:n}Xe.prototype.add=Xe.prototype.addReporter;Xe.prototype.remove=Xe.prototype.removeReporter;Xe.prototype.clear=Xe.prototype.removeReporter;Xe.prototype.withScope=Xe.prototype.withTag;Xe.prototype.mock=Xe.prototype.mockTypes;Xe.prototype.pause=Xe.prototype.pauseLogs;Xe.prototype.resume=Xe.prototype.resumeLogs;function Ev(e={}){return new Xe(e)}class wv{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const n=this._getLogFn(t.level),r=t.type==="log"?"":t.type,i=t.tag||"",s=`
|
|
32
|
+
background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor};
|
|
33
|
+
border-radius: 0.5em;
|
|
34
|
+
color: white;
|
|
35
|
+
font-weight: bold;
|
|
36
|
+
padding: 2px 0.5em;
|
|
37
|
+
`,a=`%c${[i,r].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?n(`${a}%c ${t.args[0]}`,s,"",...t.args.slice(1)):n(a,s,...t.args)}}function Sv(e={}){return Ev({reporters:e.reporters||[new wv({})],prompt(n,r={}){return r.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...e})}const Vi=Sv(),Tv={class:"flex flex-col gap-2"},Av=yt({__name:"EmailSendButton",props:{html:{},subject:{}},setup(e){const t=e,n=ge(!1),r=ge(!1),i=ge(""),o=async()=>{n.value=!0;try{if(!i.value)return;const s=await fetch("https://react.email/api/send/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({to:i.value,subject:t.subject||"Test Email from Nuxt Email Renderer",html:t.html})});if(s.status===429){const{error:a}=await s.json();Vi.error(`Error sending test email: ${a}`),r.value=!1,qn({message:"Too many requests",icon:"i-carbon-warning",classes:"text-red"})}s.status===200&&(r.value=!1,qn({message:"Email sent successfully",icon:"i-carbon-checkmark",classes:"text-green"}))}catch(s){Vi.error("Error sending test email:",s),r.value=!1,qn({message:"Something went wrong. Please try again.",icon:"i-carbon-warning",classes:"text-red"})}finally{n.value=!1}};return(s,a)=>{const l=$y,u=gv;return ee(),me(Ue,null,[pe("div",Tv,[ie(_s,{"is-loading":F(n),icon:"carbon:email",onClick:a[0]||(a[0]=c=>r.value=!0)},{default:Ce(()=>[...a[3]||(a[3]=[at(" Send ",-1)])]),_:1},8,["is-loading"])]),ie(u,{modelValue:F(r),"onUpdate:modelValue":a[2]||(a[2]=c=>be(r)?r.value=c:null),class:"min-w-100 flex flex-col gap-4 p4"},{default:Ce(()=>[a[5]||(a[5]=pe("h1",{"text-xl":""}," Send Test Email ",-1)),ie(l,{modelValue:F(i),"onUpdate:modelValue":a[1]||(a[1]=c=>be(i)?i.value=c:null),placeholder:"you@email.com",type:"email"},null,8,["modelValue"]),pe("div",null,[ie(_s,{"is-loading":F(n),icon:"carbon:send",onClick:o},{default:Ce(()=>[...a[4]||(a[4]=[at(" Send ",-1)])]),_:1},8,["is-loading"])])]),_:1},8,["modelValue"])],64)}}}),Rv=Object.assign(Av,{__name:"EmailSendButton"}),Pv={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},Cv={class:"flex flex-col sm:flex-row sm:items-center gap-4"},kv={class:"flex items-center gap-3"},Lv={class:"flex items-center gap-3"},xv={class:"flex items-center gap-4"},Ov={class:"flex items-center gap-2"},Iv=yt({__name:"EmailViewerToolbar",props:{viewMode:{},contentMode:{},renderedHtml:{},renderedSubject:{},sourceCode:{}},emits:["update:viewMode","update:contentMode","refresh"],setup(e,{emit:t}){const n=e,r=t,i=[{value:"desktop",label:"Desktop"},{value:"mobile",label:"Mobile"}],o=[{value:"preview",label:"Preview"},{value:"html",label:"HTML"},{value:"source",label:"Source Code"}],s=he({get:()=>n.viewMode,set:p=>r("update:viewMode",p)}),a=he({get:()=>n.contentMode,set:p=>r("update:contentMode",p)}),{copy:l,copied:u,isSupported:c}=my(),f=async()=>{try{n.contentMode==="source"&&n.sourceCode?(await l(n.sourceCode),qn({message:"Copied source code to clipboard",icon:"i-carbon-checkmark",classes:"text-green"})):(n.contentMode==="preview"||n.contentMode==="html")&&n.renderedHtml&&(await l(n.renderedHtml),qn({message:"Copied HTML to clipboard",icon:"i-carbon-checkmark",classes:"text-green"}))}catch(p){Vi.error("Error copying to clipboard:",p),qn({message:"Failed to copy to clipboard",icon:"i-carbon-warning",classes:"text-red"})}},d=()=>{r("refresh")};return(p,h)=>{const _=Ny,v=lf,b=_s,w=la;return ee(),me("div",Pv,[pe("div",Cv,[pe("div",kv,[h[2]||(h[2]=pe("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," View: ",-1)),ie(_,{modelValue:F(a),"onUpdate:modelValue":h[0]||(h[0]=m=>be(a)?a.value=m:null),options:o},null,8,["modelValue"])]),e.contentMode==="preview"?(ee(),me(Ue,{key:0},[h[4]||(h[4]=pe("div",{class:"hidden sm:block w-px h-8 bg-gray-200 dark:bg-gray-700"},null,-1)),pe("div",Lv,[h[3]||(h[3]=pe("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," Viewport: ",-1)),ie(_,{modelValue:F(s),"onUpdate:modelValue":h[1]||(h[1]=m=>be(s)?s.value=m:null),options:i},null,8,["modelValue"]),ie(v,{class:"hidden sm:inline-flex"},{default:Ce(()=>[at(Pt(e.viewMode==="desktop"?"800px":"375px"),1)]),_:1})])],64)):nt("",!0)]),pe("div",xv,[pe("div",Ov,[e.contentMode==="preview"&&e.renderedHtml?(ee(),Oe(b,{key:0,icon:"carbon:rotate-360",onClick:d},{default:Ce(()=>[...h[5]||(h[5]=[at(" Re-render ",-1)])]),_:1})):nt("",!0),F(c)?(ee(),Oe(w,{key:1,icon:F(u)?"carbon:checkmark-outline":"carbon:copy",onClick:f},{default:Ce(()=>[at(Pt(F(u)?"Copied":"Copy"),1)]),_:1},8,["icon"])):nt("",!0),e.renderedHtml?(ee(),Oe(Rv,{key:2,html:e.renderedHtml,subject:e.renderedSubject},null,8,["html","subject"])):nt("",!0)])])])}}}),Dv=Object.assign(Iv,{__name:"EmailViewerToolbar"}),Nv={class:"border rounded-lg overflow-hidden bg-white shadow-sm"},Mv=["srcdoc"],Vv=yt({__name:"EmailPreviewPane",props:{renderedHtml:{},viewMode:{}},setup(e){const t=e,n=he(()=>t.viewMode==="mobile"?"max-w-[375px] mx-auto":"max-w-[800px] mx-auto");return(r,i)=>(ee(),me("div",null,[pe("div",Nv,[e.renderedHtml?(ee(),me("iframe",{key:0,srcdoc:e.renderedHtml,class:qe(["w-full h-screen border-0",F(n)]),width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts"},null,10,Mv)):nt("",!0)])]))}}),$v=Object.assign(Vv,{__name:"EmailPreviewPane"}),jv="modulepreload",Bv=function(e,t){return new URL(e,t).href},Ol={},g=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");i=u(n.map(c=>{if(c=Bv(c,r),c in Ol)return;Ol[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let _=s.length-1;_>=0;_--){const v=s[_];if(v.href===c&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":jv,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((_,v)=>{h.addEventListener("load",_),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let Ve=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Fv(e){return fa(e)}function fa(e){return Array.isArray(e)?Hv(e):e instanceof RegExp?e:typeof e=="object"?Uv(e):e}function Hv(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=fa(e[n]);return t}function Uv(e){let t={};for(let n in e)t[n]=fa(e[n]);return t}function bf(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Ef(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Ef(e.substring(0,e.length-1)):e.substr(~t+1)}var jo=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,oi=class{static hasCaptures(e){return e===null?!1:(jo.lastIndex=0,jo.test(e))}static replaceCaptures(e,t,n){return e.replace(jo,(r,i,o,s)=>{let a=n[parseInt(i||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function wf(e,t){return e<t?-1:e>t?1:0}function Sf(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 i=0;i<n;i++){let o=wf(e[i],t[i]);if(o!==0)return o}return 0}return n-r}function Il(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 Tf(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Af=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},$i=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Wv(e),t)}static createFromParsedTheme(e,t){return Kv(e,t)}_cachedMatchRoot=new Af(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(i=>zv(e.parent,i.parentScopes));return r?new Rf(r.fontStyle,r.foreground,r.background):null}},Bo=class mi{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new mi(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new mi(n,t[r]);return n}push(t){return new mi(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 zv(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Gv(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Gv(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Rf=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Wv(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let i=0,o=t.length;i<o;i++){let s=t[i];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let f=s.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let f=s.settings.fontStyle.split(" ");for(let d=0,p=f.length;d<p;d++)switch(f[d]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&Il(s.settings.foreground)&&(u=s.settings.foreground);let c=null;typeof s.settings.background=="string"&&Il(s.settings.background)&&(c=s.settings.background);for(let f=0,d=a.length;f<d;f++){let h=a[f].trim().split(" "),_=h[h.length-1],v=null;h.length>1&&(v=h.slice(0,h.length-1),v.reverse()),n[r++]=new qv(_,v,i,l,u,c)}}return n}var qv=class{constructor(e,t,n,r,i,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},tt=(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))(tt||{});function Kv(e,t){e.sort((l,u)=>{let c=wf(l.scope,u.scope);return c!==0||(c=Sf(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let n=0,r="#000000",i="#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&&(i=l.background)}let o=new Jv(t),s=new Rf(n,o.getId(r),o.getId(i)),a=new Yv(new Es(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];a.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new $i(o,s,a)}var Jv=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Xv=Object.freeze([]),Es=class Pf{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,i,o){this.scopeDepth=t,this.parentScopes=n||Xv,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new Pf(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},Yv=class ws{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,i=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=t.parentScopes.length||i>=n.parentScopes.length);){const o=n.parentScopes[i].length-t.parentScopes[r].length;if(o!==0)return o;r++,i++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),i,o;if(r===-1?(i=t,o=""):(i=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(ws._cmpBySpecificity),n}insert(t,n,r,i,o,s){if(n===""){this._doInsertHere(t,r,i,o,s);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new ws(this._mainRule.clone(),Es.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,r,i,o,s)}_doInsertHere(t,n,r,i,o){if(n===null){this._mainRule.acceptOverwrite(t,r,i,o);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let l=this._rulesWithParentScopes[s];if(Sf(l.parentScopes,n)===0){l.acceptOverwrite(t,r,i,o);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Es(t,n,r,i,o))}},tr=class vt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=vt.getLanguageId(t),r=vt.getTokenType(t),i=vt.getFontStyle(t),o=vt.getForeground(t),s=vt.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:o,background:s})}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,i,o,s,a){let l=vt.getLanguageId(t),u=vt.getTokenType(t),c=vt.containsBalancedBrackets(t)?1:0,f=vt.getFontStyle(t),d=vt.getForeground(t),p=vt.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),i!==null&&(c=i?1:0),o!==-1&&(f=o),s!==0&&(d=s),a!==0&&(p=a),(l<<0|u<<8|c<<10|f<<11|d<<15|p<<24)>>>0}};function ji(e,t){const n=[],r=Qv(e);let i=r.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=s();if(n.push({matcher:u,priority:l}),i!==",")break;i=r.next()}return n;function o(){if(i==="-"){i=r.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=r.next();const l=a();return i===")"&&(i=r.next()),l}if(Dl(i)){const l=[];do l.push(i),i=r.next();while(Dl(i));return u=>t(l,u)}return null}function s(){const l=[];let u=o();for(;u;)l.push(u),u=o();return c=>l.every(f=>f(c))}function a(){const l=[];let u=s();for(;u&&(l.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=s()}return c=>l.some(f=>f(c))}}function Dl(e){return!!e&&!!e.match(/[\w\.:]+/)}function Qv(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 Cf(e){typeof e.dispose=="function"&&e.dispose()}var Dr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Zv=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},eb=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},tb=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Dr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new eb;for(const n of e)nb(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Dr){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 nb(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Dr?gi({baseGrammar:o,selfGrammar:i},r):Ss(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const s=n.injections(e.scopeName);if(s)for(const a of s)r.add(new Dr(a))}function Ss(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Bi([r],t,n)}}function gi(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Bi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Bi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Bi(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?bf({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Bi(r.patterns,{...t,repository:i},n);const o=r.include;if(!o)continue;const s=kf(o);switch(s.kind){case 0:gi({...t,selfGrammar:t.baseGrammar},n);break;case 1:gi(t,n);break;case 2:Ss(s.ruleName,{...t,repository:i},n);break;case 3:case 4:const a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:i};s.kind===4?Ss(s.ruleName,l,n):gi(l,n)}else s.kind===4?n.add(new Zv(s.scopeName,s.ruleName)):n.add(new Dr(s.scopeName));break}}}var rb=class{kind=0},ib=class{kind=1},ob=class{constructor(e){this.ruleName=e}kind=2},sb=class{constructor(e){this.scopeName=e}kind=3},ab=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function kf(e){if(e==="$base")return new rb;if(e==="$self")return new ib;const t=e.indexOf("#");if(t===-1)return new sb(e);if(t===0)return new ob(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new ab(n,r)}}var lb=/\\(\d+)/,Nl=/\\(\d+)/g,cb=-1,Lf=-2;var Ur=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=oi.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=oi.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Ef(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:oi.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:oi.replaceCaptures(this._contentName,e,t)}},ub=class extends Ur{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},fb=class extends Ur{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Nr(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Mr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ml=class extends Ur{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Mr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ts=class extends Ur{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,o,s,a,l,u){super(e,t,n,r),this._begin=new Nr(i,this.id),this.beginCaptures=o,this._end=new Nr(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Mr;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Fi=class extends Ur{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,o,s,a,l){super(e,t,n,r),this._begin=new Nr(i,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new Nr(s,Lf),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Mr;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Mr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},xf=class Qe{static createCaptureRule(t,n,r,i,o){return t.registerRule(s=>new ub(n,s,r,i,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new fb(t.$vscodeTextmateLocation,t.id,t.name,t.match,Qe._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=bf({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Ml(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Qe._compilePatterns(o,n,r))}return t.while?new Fi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Qe._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Qe._compileCaptures(t.whileCaptures||t.captures,n,r),Qe._compilePatterns(t.patterns,n,r)):new Ts(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Qe._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Qe._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Qe._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>o&&(o=a)}for(let s=0;s<=o;s++)i[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;t[s].patterns&&(l=Qe.getCompiledRuleId(t[s],n,r)),i[a]=Qe.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let o=0,s=t.length;o<s;o++){const a=t[o];let l=-1;if(a.include){const u=kf(a.include);switch(u.kind){case 0:case 1:l=Qe.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=Qe.getCompiledRuleId(c,n,r));break;case 3:case 4:const f=u.scopeName,d=u.kind===4?u.ruleName:null,p=n.getExternalGrammar(f,r);if(p)if(d){let h=p.repository[d];h&&(l=Qe.getCompiledRuleId(h,n,p.repository))}else l=Qe.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else l=Qe.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Ml||u instanceof Ts||u instanceof Fi)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Nr=class Of{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let i=0,o=[],s=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const u=t.charAt(a+1);u==="z"?(o.push(t.substring(i,a)),o.push("$(?!\\n)(?<!\\n)"),i=a+2):(u==="A"||u==="G")&&(s=!0),a++}this.hasAnchor=s,i===0?this.source=t:(o.push(t.substring(i,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=lb.test(this.source):this.hasBackReferences=!1}clone(){return new Of(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(i=>t.substring(i.start,i.end));return Nl.lastIndex=0,this.source.replace(Nl,(i,o)=>Tf(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=[],i=[],o,s,a,l;for(o=0,s=this.source.length;o<s;o++)a=this.source.charAt(o),t[o]=a,n[o]=a,r[o]=a,i[o]=a,a==="\\"&&o+1<s&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",i[o+1]="A"):l==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",i[o+1]="G"):(t[o+1]=l,n[o+1]=l,r[o+1]=l,i[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.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}},Mr=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Vl(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(i=>i.resolveAnchors(t,n));return new Vl(e,r,this._items.map(i=>i.ruleId))}},Vl=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
38
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Fo=class{constructor(e,t){this.languageId=e,this.tokenType=t}},db=class As{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Fo(t,8),this._embeddedLanguagesMatcher=new pb(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?As._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Fo(0,0);_getBasicScopeAttributes=new Af(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Fo(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(As.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},pb=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Tf(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])}},$l=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function If(e,t,n,r,i,o,s,a){const l=t.content.length;let u=!1,c=-1;if(s){const p=hb(e,t,n,r,i,o);i=p.stack,r=p.linePos,n=p.isFirstLine,c=p.anchorPosition}const f=Date.now();for(;!u;){if(a!==0&&Date.now()-f>a)return new $l(i,!0);d()}return new $l(i,!1);function d(){const p=mb(e,t,n,r,i,c);if(!p){o.produce(i,l),u=!0;return}const h=p.captureIndices,_=p.matchedRuleId,v=h&&h.length>0?h[0].end>r:!1;if(_===cb){const b=i.getRule(e);o.produce(i,h[0].start),i=i.withContentNameScopesList(i.nameScopesList),yr(e,t,n,i,o,b.endCaptures,h),o.produce(i,h[0].end);const w=i;if(i=i.parent,c=w.getAnchorPos(),!v&&w.getEnterPos()===r){i=w,o.produce(i,l),u=!0;return}}else{const b=e.getRule(_);o.produce(i,h[0].start);const w=i,m=b.getName(t.content,h),E=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(_,r,c,h[0].end===l,null,E,E),b instanceof Ts){const S=b;yr(e,t,n,i,o,S.beginCaptures,h),o.produce(i,h[0].end),c=h[0].end;const k=S.getContentName(t.content,h),x=E.pushAttributed(k,e);if(i=i.withContentNameScopesList(x),S.endHasBackReferences&&(i=i.withEndRule(S.getEndWithResolvedBackReferences(t.content,h))),!v&&w.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(b instanceof Fi){const S=b;yr(e,t,n,i,o,S.beginCaptures,h),o.produce(i,h[0].end),c=h[0].end;const k=S.getContentName(t.content,h),x=E.pushAttributed(k,e);if(i=i.withContentNameScopesList(x),S.whileHasBackReferences&&(i=i.withEndRule(S.getWhileWithResolvedBackReferences(t.content,h))),!v&&w.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(yr(e,t,n,i,o,b.captures,h),o.produce(i,h[0].end),i=i.pop(),!v){i=i.safePop(),o.produce(i,l),u=!0;return}}h[0].end>r&&(r=h[0].end,n=!1)}}function hb(e,t,n,r,i,o){let s=i.beginRuleCapturedEOL?0:-1;const a=[];for(let l=i;l;l=l.pop()){const u=l.getRule(e);u instanceof Fi&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=yb(l.rule,e,l.stack.endRule,n,r===s),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==Lf){i=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),yr(e,t,n,l.stack,o,l.rule.whileCaptures,f.captureIndices),o.produce(l.stack,f.captureIndices[0].end),s=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}function mb(e,t,n,r,i,o){const s=gb(e,t,n,r,i,o),a=e.getInjections();if(a.length===0)return s;const l=_b(a,e,t,n,r,i,o);if(!l)return s;if(!s)return l;const u=s.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:s}function gb(e,t,n,r,i,o){const s=i.getRule(e),{ruleScanner:a,findOptions:l}=Df(s,e,i.endRule,n,r===o),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function _b(e,t,n,r,i,o,s){let a=Number.MAX_VALUE,l=null,u,c=0;const f=o.contentNameScopesList.getScopeNames();for(let d=0,p=e.length;d<p;d++){const h=e[d];if(!h.matcher(f))continue;const _=t.getRule(h.ruleId),{ruleScanner:v,findOptions:b}=Df(_,t,null,r,i===s),w=v.findNextMatchSync(n,i,b);if(!w)continue;const m=w.captureIndices[0].start;if(!(m>=a)&&(a=m,l=w.captureIndices,u=w.ruleId,c=h.priority,a===i))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function Df(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function yb(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function yr(e,t,n,r,i,o,s){if(o.length===0)return;const a=t.content,l=Math.min(o.length,s.length),u=[],c=s[0].end;for(let f=0;f<l;f++){const d=o[f];if(d===null)continue;const p=s[f];if(p.length===0)continue;if(p.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=p.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,p.start):i.produce(r,p.start),d.retokenizeCapturedWithRuleId){const _=d.getName(a,s),v=r.contentNameScopesList.pushAttributed(_,e),b=d.getContentName(a,s),w=v.pushAttributed(b,e),m=r.push(d.retokenizeCapturedWithRuleId,p.start,-1,!1,null,v,w),E=e.createOnigString(a.substring(0,p.end));If(e,E,n&&p.start===0,p.start,m,i,!1,0),Cf(E);continue}const h=d.getName(a,s);if(h!==null){const v=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);u.push(new vb(v,p.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var vb=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function bb(e,t,n,r,i,o,s,a){return new wb(e,t,n,r,i,o,s,a)}function jl(e,t,n,r,i){const o=ji(t,Hi),s=xf.getCompiledRuleId(n,r,i.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:s,grammar:i,priority:a.priority})}function Hi(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let i=n;i<t.length;i++)if(Eb(t[i],r))return n=i+1,!0;return!1})}function Eb(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 wb=class{constructor(e,t,n,r,i,o,s,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new db(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Bl(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const u=ji(l,Hi);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:i[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const i=r.injections;if(i)for(let s in i)jl(t,s,i[s],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(s=>{const a=this.getExternalGrammar(s);if(a){const l=a.injectionSelector;l&&jl(t,l,a,this,a)}})}return t.sort((i,o)=>i.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]=Bl(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=xf.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Rs.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=tr.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),d=this.getRule(this._rootId).getName(null,null);let p;d?p=Ar.createRootAndLookUpScopeName(d,f,this):p=Ar.createRoot("unknown",f),t=new Rs(null,this._rootId,-1,-1,!1,null,p,p)}else i=!1,t.reset();e=e+`
|
|
39
|
+
`;const o=this.createOnigString(e),s=o.content.length,a=new Tb(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=If(this,o,i,0,t,a,!0,r);return Cf(o),{lineLength:s,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Bl(e,t){return e=Fv(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 Ar=class Lt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(const o of n)i=Bo.push(i,o.scopeNames),r=new Lt(r,i,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Lt(null,new Bo(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),o=new Bo(null,t),s=r.themeProvider.themeMatch(o),a=Lt.mergeAttributes(n,i,s);return new Lt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Lt.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 i=-1,o=0,s=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,s=r.backgroundId),tr.set(t,n.languageId,n.tokenType,null,i,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Lt._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const o of r)i=Lt._pushAttributed(i,o,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),o=t.scopePath.push(n),s=r.themeProvider.themeMatch(o),a=Lt.mergeAttributes(t.tokenAttributes,i,s);return new Lt(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},Rs=class dn{constructor(t,n,r,i,o,s,a,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new dn(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:dn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Ar.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(){dn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,o,s,a){return new dn(this,t,n,r,i,o,s,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new dn(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Ar.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new dn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ar.fromExtension(r,n.contentNameScopesList))}},Sb=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ji(n,Hi).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>ji(n,Hi).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}},Tb=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(r=tr.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(r=tr.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},Ab=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,bb(e,o,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Rb=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Ab($i.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme($i.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 Sb(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,i,o){const s=new tb(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(a=>this._loadSingleGrammar(a.scopeName)),s.processQueue();return this._grammarForScopeName(t,n,r,i,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,i=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,i)}_grammarForScopeName(t,n=0,r=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,i,o)}},Ps=Rs.NULL;const Pb=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class zr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}zr.prototype.normal={};zr.prototype.property={};zr.prototype.space=void 0;function Nf(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new zr(n,r,t)}function Cs(e){return e.toLowerCase()}class ct{constructor(t,n){this.attribute=n,this.property=t}}ct.prototype.attribute="";ct.prototype.booleanish=!1;ct.prototype.boolean=!1;ct.prototype.commaOrSpaceSeparated=!1;ct.prototype.commaSeparated=!1;ct.prototype.defined=!1;ct.prototype.mustUseProperty=!1;ct.prototype.number=!1;ct.prototype.overloadedBoolean=!1;ct.prototype.property="";ct.prototype.spaceSeparated=!1;ct.prototype.space=void 0;let Cb=0;const de=xn(),Me=xn(),ks=xn(),j=xn(),Re=xn(),Kn=xn(),pt=xn();function xn(){return 2**++Cb}const Ls=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:Me,commaOrSpaceSeparated:pt,commaSeparated:Kn,number:j,overloadedBoolean:ks,spaceSeparated:Re},Symbol.toStringTag,{value:"Module"})),Ho=Object.keys(Ls);class da extends ct{constructor(t,n,r,i){let o=-1;if(super(t,n),Fl(this,"space",i),typeof r=="number")for(;++o<Ho.length;){const s=Ho[o];Fl(this,Ho[o],(r&Ls[s])===Ls[s])}}}da.prototype.defined=!0;function Fl(e,t,n){n&&(e[t]=n)}function sr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new da(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Cs(r)]=r,n[Cs(o.attribute)]=r}return new zr(t,n,e.space)}const Mf=sr({properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:Re,ariaCurrent:null,ariaDescribedBy:Re,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:Re,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:Re,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Re,ariaLevel:j,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:Re,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:Re,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:Me,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 Vf(e,t){return t in e?e[t]:t}function $f(e,t){return Vf(e,t.toLowerCase())}const kb=sr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kn,acceptCharset:Re,accessKey:Re,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Re,autoFocus:de,autoPlay:de,blocking:Re,capture:null,charSet:null,checked:de,cite:null,className:Re,cols:j,colSpan:null,content:null,contentEditable:Me,controls:de,controlsList:Re,coords:j|Kn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:ks,draggable:Me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Re,height:j,hidden:ks,high:j,href:null,hrefLang:null,htmlFor:Re,httpEquiv:Re,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Re,itemRef:Re,itemScope:de,itemType:Re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,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:de,optimum:j,pattern:null,ping:Re,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Re,required:de,reversed:de,rows:j,rowSpan:j,sandbox:Re,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:Me,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:de,useMap:null,value:Me,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Re,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:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:Me,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:de,disableRemotePlayback:de,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:$f}),Lb=sr({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:pt,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:Re,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:de,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:Kn,g2:Kn,glyphName:Kn,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:pt,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:Re,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pt,rev:pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pt,requiredFeatures:pt,requiredFonts:pt,requiredFormats:pt,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:pt,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:pt,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:pt,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:Vf}),jf=sr({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()}}),Bf=sr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$f}),Ff=sr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),xb=/[A-Z]/g,Hl=/-[a-z]/g,Ob=/^data[-\w.:]+$/i;function Ib(e,t){const n=Cs(t);let r=t,i=ct;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ob.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Hl,Nb);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Hl.test(o)){let s=o.replace(xb,Db);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=da}return new i(r,t)}function Db(e){return"-"+e.toLowerCase()}function Nb(e){return e.charAt(1).toUpperCase()}const Mb=Nf([Mf,kb,jf,Bf,Ff],"html"),Hf=Nf([Mf,Lb,jf,Bf,Ff],"svg"),Ul={}.hasOwnProperty;function Vb(e,t){const n=t||{};function r(i,...o){let s=r.invalid;const a=r.handlers;if(i&&Ul.call(i,e)){const l=String(i[e]);s=Ul.call(a,l)?a[l]:r.unknown}if(s)return s.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const $b=/["&'<>`]/g,jb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bb=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Fb=/[|\\{}()[\]^$+*?.]/g,zl=new WeakMap;function Hb(e,t){if(e=e.replace(t.subset?Ub(t.subset):$b,r),t.subset||t.escapeOnly)return e;return e.replace(jb,n).replace(Bb,r);function n(i,o,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function r(i,o,s){return t.format(i.charCodeAt(0),s.charCodeAt(o+1),t)}}function Ub(e){let t=zl.get(e);return t||(t=zb(e),zl.set(e,t)),t}function zb(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Fb,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Gb=/[\dA-Fa-f]/;function Wb(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Gb.test(String.fromCharCode(t))?r:r+";"}const qb=/\d/;function Kb(e,t,n){const r="&#"+String(e);return n&&t&&!qb.test(String.fromCharCode(t))?r:r+";"}const Jb=["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"],Uo={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:"€"},Xb=["cent","copy","divide","gt","lt","not","para","times"],Uf={}.hasOwnProperty,xs={};let si;for(si in Uo)Uf.call(Uo,si)&&(xs[Uo[si]]=si);const Yb=/[^\dA-Za-z]/;function Qb(e,t,n,r){const i=String.fromCharCode(e);if(Uf.call(xs,i)){const o=xs[i],s="&"+o;return n&&Jb.includes(o)&&!Xb.includes(o)&&(!r||t&&t!==61&&Yb.test(String.fromCharCode(t)))?s:s+";"}return""}function Zb(e,t,n){let r=Wb(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Qb(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=Kb(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Jn(e,t){return Hb(e,Object.assign({format:Zb},t))}const e0=/^>|^->|<!--|-->|--!>|<!-$/g,t0=[">"],n0=["<",">"];function r0(e,t,n,r){return r.settings.bogusComments?"<?"+Jn(e.value,Object.assign({},r.settings.characterReferences,{subset:t0}))+">":"<!--"+e.value.replace(e0,i)+"-->";function i(o){return Jn(o,Object.assign({},r.settings.characterReferences,{subset:n0}))}}function i0(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Gl(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function o0(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function s0(e){return e.join(" ").trim()}const a0=/[ \t\n\f\r]/g;function pa(e){return typeof e=="object"?e.type==="text"?Wl(e.value):!1:Wl(e)}function Wl(e){return e.replace(a0,"")===""}const Fe=Gf(1),zf=Gf(-1),l0=[];function Gf(e){return t;function t(n,r,i){const o=n?n.children:l0;let s=(r||0)+e,a=o[s];if(!i)for(;a&&pa(a);)s+=e,a=o[s];return a}}const c0={}.hasOwnProperty;function Wf(e){return t;function t(n,r,i){return c0.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const ha=Wf({body:f0,caption:zo,colgroup:zo,dd:m0,dt:h0,head:zo,html:u0,li:p0,optgroup:g0,option:_0,p:d0,rp:ql,rt:ql,tbody:v0,td:Kl,tfoot:b0,th:Kl,thead:y0,tr:E0});function zo(e,t,n){const r=Fe(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&pa(r.value.charAt(0)))}function u0(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function f0(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function d0(e,t,n){const r=Fe(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 p0(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="li"}function h0(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function m0(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ql(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function g0(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function _0(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function y0(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function v0(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function b0(e,t,n){return!Fe(n,t)}function E0(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Kl(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const w0=Wf({body:A0,colgroup:R0,head:T0,html:S0,tbody:P0});function S0(e){const t=Fe(e,-1);return!t||t.type!=="comment"}function T0(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 A0(e){const t=Fe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&pa(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function R0(e,t,n){const r=zf(n,t),i=Fe(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ha(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function P0(e,t,n){const r=zf(n,t),i=Fe(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ha(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const ai={name:[[`
|
|
40
|
+
\f\r &/=>`.split(""),`
|
|
41
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
42
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
43
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
44
|
+
\f\r &>`.split(""),`\0
|
|
45
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
46
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
47
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function C0(e,t,n,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let s=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;i.space==="html"&&e.tagName==="svg"&&(r.schema=Hf);const u=k0(r,e.properties),c=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,c&&(s=!1),(u||!o||!w0(e,t,n))&&(a.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!s&&(!o||!ha(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function k0(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const o=L0(e,i,t[i]);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 L0(e,t,n){const r=Ib(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let s=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=Jn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ai.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?o0:s0)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=Jn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ai.unquoted[i][o]}))),a!==n&&(e.settings.quoteSmart&&Gl(n,s)>Gl(n,e.alternative)&&(s=e.alternative),a=s+Jn(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?ai.single:ai.double)[i][o],attribute:!0}))+s),l+(a&&"="+a))}const x0=["<","&"];function qf(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Jn(e.value,Object.assign({},r.settings.characterReferences,{subset:x0}))}function O0(e,t,n,r){return r.settings.allowDangerousHtml?e.value:qf(e,t,n,r)}function I0(e,t,n,r){return r.all(e)}const D0=Vb("type",{invalid:N0,unknown:M0,handlers:{comment:r0,doctype:i0,element:C0,raw:O0,root:I0,text:qf}});function N0(e){throw new Error("Expected node, not `"+e+"`")}function M0(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const V0={},$0={},j0=[];function B0(e,t){const n=t||V0,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:F0,all:H0,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||Pb,characterReferences:n.characterReferences||$0,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Hf:Mb,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function F0(e,t,n){return D0(e,t,n,this)}function H0(e){const t=[],n=e&&e.children||j0;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Ui(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function rn(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function U0(e){return Array.isArray(e)?e:[e]}async function Kf(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function ma(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Jf(e){return e==="ansi"||ma(e)}function ga(e){return e==="none"}function Xf(e){return ga(e)}function Yf(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function _o(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let o=0;o<n.length;o+=2){const s=t?n[o]+(n[o+1]||""):n[o];i.push([s,r]),r+=n[o].length,r+=n[o+1]?.length||0}return i}function z0(e){const t=_o(e,!0).map(([i])=>i);function n(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=i,s=0;for(const a of t){if(o<a.length)break;o-=a.length,s++}return{line:s,character:o}}function r(i,o){let s=0;for(let a=0;a<i;a++)s+=t[a].length;return s+=o,s}return{lines:t,indexToPos:n,posToIndex:r}}function G0(e,t,n){const r=new Set;for(const o of e.matchAll(/:?lang=["']([^"']+)["']/g)){const s=o[1].toLowerCase().trim();s&&r.add(s)}for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g)){const s=o[1].toLowerCase().trim();s&&r.add(s)}for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g)){const s=o[1].toLowerCase().trim();s&&r.add(s)}for(const o of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const s=o[1].toLowerCase().trim(),a=s.includes("/")?s.split("/").pop():s;a&&r.add(a)}if(!n)return Array.from(r);const i=n.getBundledLanguages();return Array.from(r).filter(o=>o&&i[o])}const _a="light-dark()",W0=["color","background-color"];function q0(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function K0(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const o=n.filter(s=>i.offset<s&&s<i.offset+i.content.length).map(s=>s-i.offset).sort((s,a)=>s-a);return o.length?q0(i,o):i})):e}function J0(e,t,n,r,i="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(c=>zi(e.variants[c])),a=new Set(s.flatMap(c=>Object.keys(c))),l={},u=(c,f)=>{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[c]+(f==="color"?"":d)};return s.forEach((c,f)=>{for(const d of a){const p=c[d]||"inherit";if(f===0&&r&&W0.includes(d))if(r===_a&&s.length>1){const h=t.findIndex(w=>w==="light"),_=t.findIndex(w=>w==="dark");if(h===-1||_===-1)throw new Ve('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const v=s[h][d]||"inherit",b=s[_][d]||"inherit";l[d]=`light-dark(${v}, ${b})`,i==="css-vars"&&(l[u(f,d)]=p)}else l[d]=p;else i==="css-vars"&&(l[u(f,d)]=p)}}),o.htmlStyle=l,o}function zi(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&tt.Italic&&(t["font-style"]="italic"),e.fontStyle&tt.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&tt.Underline&&n.push("underline"),e.fontStyle&tt.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Os(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Qf=new WeakMap;function yo(e,t){Qf.set(e,t)}function Vr(e){return Qf.get(e)}class ar{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new ar(Object.fromEntries(U0(n).map(r=>[r,Ps])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return X0(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function X0(e){const t=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);const o=i?.nameScopesList?.scopeName;o&&t.push(o),i.parent&&r(i.parent)}return r(e),t}function Y0(e,t){if(!(e instanceof ar))throw new Ve("Invalid grammar state");return e.getInternalStack(t)}function Q0(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new Ve(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...i.indexToPos(s),offset:s}}else{const a=i.lines[s.line];if(a===void 0)throw new Ve(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${i.lines.length}`);let l=s.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new Ve(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${a.length}`);return{...s,character:l,offset:i.posToIndex(s.line,l)}}};const i=z0(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));Z0(o),e.set(n.meta,{decorations:o,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const i=t(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return K0(n,i)},code(n){if(!this.options.decorations?.length)return;const r=t(this),i=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(i.length!==r.converter.lines.length)throw new Ve(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(c,f,d,p){const h=i[c];let _="",v=-1,b=-1;if(f===0&&(v=0),d===0&&(b=0),d===Number.POSITIVE_INFINITY&&(b=h.children.length),v===-1||b===-1)for(let m=0;m<h.children.length;m++)_+=Zf(h.children[m]),v===-1&&_.length===f&&(v=m+1),b===-1&&_.length===d&&(b=m+1);if(v===-1)throw new Ve(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(b===-1)throw new Ve(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const w=h.children.slice(v,b);if(!p.alwaysWrap&&w.length===h.children.length)a(h,p,"line");else if(!p.alwaysWrap&&w.length===1&&w[0].type==="element")a(w[0],p,"token");else{const m={type:"element",tagName:"span",properties:{},children:w};a(m,p,"wrapper"),h.children.splice(v,w.length,m)}}function s(c,f){i[c]=a(i[c],f,"line")}function a(c,f,d){const p=f.properties||{},h=f.transform||(_=>_);return c.tagName=f.tagName||"span",c.properties={...c.properties,...p,class:c.properties.class},f.properties?.class&&Yf(c,f.properties.class),c=h(c,d)||c,c}const l=[],u=r.decorations.sort((c,f)=>f.start.offset-c.start.offset||c.end.offset-f.end.offset);for(const c of u){const{start:f,end:d}=c;if(f.line===d.line)o(f.line,f.character,d.character,c);else if(f.line<d.line){o(f.line,f.character,Number.POSITIVE_INFINITY,c);for(let p=f.line+1;p<d.line;p++)l.unshift(()=>s(p,c));o(d.line,0,d.character,c)}}l.forEach(c=>c())}}}function Z0(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ve(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const i=e[r],o=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,s=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,a=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,l=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(o||s||a||l){if(o&&s||a&&l||a&&n.start.offset===n.end.offset||s&&i.start.offset===i.end.offset)continue;throw new Ve(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function Zf(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Zf).join(""):""}const eE=[Q0()];function Gi(e){const t=tE(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...eE]}function tE(e){const t=[],n=[],r=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var _n=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Go={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function nE(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 Jl(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 rE(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)Go[r]&&t.push({type:"setDecoration",value:Go[r]});else if(r<=29){const i=Go[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:_n[r-30]}});else if(r===38){const i=Jl(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:_n[r-40]}});else if(r===48){const i=Jl(e);i&&t.push({type:"setBackgroundColor",value:i})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:_n[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:_n[r-100+8]}})}return t}function iE(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let o=0;do{const s=nE(r,o),a=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(a.length>0&&i.push({value:a,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const l=rE(s.sequence);for(const u of l)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}o=s.position}while(o<r.length);return i}}}var oE={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 sE(e=oE){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 i(){if(r)return r;r=[];for(let u=0;u<_n.length;u++)r.push(t(_n[u]));let a=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let c=0;c<6;c++)for(let f=0;f<6;f++)r.push(n([a[u],a[c],a[f]]));let l=8;for(let u=0;u<24;u++,l+=10)r.push(n([l,l,l]));return r}function o(a){return i()[a]}function s(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return o(a.index)}}return{value:s}}const aE={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function lE(e,t,n){const r=Ui(e,n),i=_o(t),o=Object.fromEntries(_n.map(l=>{const u=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,c=e.colors?.[u];return[l,c||aE[l]]})),s=sE(o),a=iE();return i.map(l=>a.parse(l[0]).map(u=>{let c,f;u.decorations.has("reverse")?(c=u.background?s.value(u.background):e.bg,f=u.foreground?s.value(u.foreground):e.fg):(c=u.foreground?s.value(u.foreground):e.fg,f=u.background?s.value(u.background):void 0),c=rn(c,r),f=rn(f,r),u.decorations.has("dim")&&(c=cE(c));let d=tt.None;return u.decorations.has("bold")&&(d|=tt.Bold),u.decorations.has("italic")&&(d|=tt.Italic),u.decorations.has("underline")&&(d|=tt.Underline),u.decorations.has("strikethrough")&&(d|=tt.Strikethrough),{content:u.value,offset:l[1],color:c,bgColor:f,fontStyle:d}}))}function cE(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const i=r[0],o=r[1],s=r[2],a=r[3],l=Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${o}${o}${s}${s}${l}`}else if(r.length===3){const i=r[0],o=r[1],s=r[2];return`#${i}${i}${o}${o}${s}${s}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function ya(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||"text");if(ma(i)||ga(r))return _o(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:s}=e.setTheme(r);if(i==="ansi")return lE(o,t,n);const a=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ve(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ve(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return fE(t,a,o,s,n)}function uE(...e){if(e.length===2)return Vr(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:o=t.getLoadedThemes()[0]}=r;if(ma(i)||ga(o))throw new Ve("Plain language does not have grammar state");if(i==="ansi")throw new Ve("ANSI language does not have grammar state");const{theme:s,colorMap:a}=t.setTheme(o),l=t.getLanguage(i);return new ar(va(n,l,s,a,r).stateStack,l.name,s.name)}function fE(e,t,n,r,i){const o=va(e,t,n,r,i),s=new ar(o.stateStack,t.name,n.name);return yo(o.tokens,s),o.tokens}function va(e,t,n,r,i){const o=Ui(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:a=500}=i,l=_o(e);let u=i.grammarState?Y0(i.grammarState,n.name)??Ps:i.grammarContextCode!=null?va(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ps,c=[];const f=[];for(let d=0,p=l.length;d<p;d++){const[h,_]=l[d];if(h===""){c=[],f.push([]);continue}if(s>0&&h.length>=s){c=[],f.push([{content:h,offset:_,color:"",fontStyle:0}]);continue}let v,b,w;i.includeExplanation&&(v=t.tokenizeLine(h,u,a),b=v.tokens,w=0);const m=t.tokenizeLine2(h,u,a),E=m.tokens.length/2;for(let S=0;S<E;S++){const k=m.tokens[2*S],x=S+1<E?m.tokens[2*S+2]:h.length;if(k===x)continue;const U=m.tokens[2*S+1],H=rn(r[tr.getForeground(U)],o),V=tr.getFontStyle(U),Q={content:h.substring(k,x),offset:_+k,color:H,fontStyle:V};if(i.includeExplanation){const te=[];if(i.includeExplanation!=="scopeName")for(const A of n.settings){let R;switch(typeof A.scope){case"string":R=A.scope.split(/,/).map(P=>P.trim());break;case"object":R=A.scope;break;default:continue}te.push({settings:A,selectors:R.map(P=>P.split(/ /))})}Q.explanation=[];let X=0;for(;k+X<x;){const A=b[w],R=h.substring(A.startIndex,A.endIndex);X+=R.length,Q.explanation.push({content:R,scopes:i.includeExplanation==="scopeName"?dE(A.scopes):pE(te,A.scopes)}),w+=1}}c.push(Q)}f.push(c),c=[],u=m.ruleStack}return{tokens:f,stateStack:u}}function dE(e){return e.map(t=>({scopeName:t}))}function pE(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const o=t[r];n[r]={scopeName:o,themeMatches:mE(e,o,t.slice(0,r))}}return n}function Xl(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function hE(e,t,n){if(!Xl(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Xl(e[r],n[i])&&(r-=1),i-=1;return r===-1}function mE(e,t,n){const r=[];for(const{selectors:i,settings:o}of e)for(const s of i)if(hE(s,t,n)){r.push(o);break}return r}function ed(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=r.map(l=>{const u=ya(e,t,{...n,theme:l.theme}),c=Vr(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=gE(...i.map(l=>l.tokens)),s=o[0].map((l,u)=>l.map((c,f)=>{const d={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=c.explanation),o.forEach((p,h)=>{const{content:_,explanation:v,offset:b,...w}=p[u][f];d.variants[r[h].color]=w}),d})),a=i[0].state?new ar(Object.fromEntries(i.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;return a&&yo(s,a),s}function gE(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const s=i.map(()=>0),a=i.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(u=>u.content.length));for(let u=0;u<n;u++){const c=a[u];c.content.length===l?(o[u].push(c),s[u]+=1,a[u]=i[u][s[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),a[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}function Wi(e,t,n){let r,i,o,s,a,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:f="css-vars"}=n,d=Object.entries(n.themes).filter(b=>b[1]).map(b=>({color:b[0],theme:b[1]})).sort((b,w)=>b.color===u?-1:w.color===u?1:0);if(d.length===0)throw new Ve("`themes` option must not be empty");const p=ed(e,t,n);if(l=Vr(p),u&&_a!==u&&!d.find(b=>b.color===u))throw new Ve(`\`themes\` option must contain the defaultColor key \`${u}\``);const h=d.map(b=>e.getTheme(b.theme)),_=d.map(b=>b.color);o=p.map(b=>b.map(w=>J0(w,_,c,u,f))),l&&yo(o,l);const v=d.map(b=>Ui(b.theme,n));i=Yl(d,h,v,c,u,"fg",f),r=Yl(d,h,v,c,u,"bg",f),s=`shiki-themes ${h.map(b=>b.name).join(" ")}`,a=u?void 0:[i,r].join(";")}else if("theme"in n){const u=Ui(n.theme,n);o=ya(e,t,n);const c=e.getTheme(n.theme);r=rn(c.bg,u),i=rn(c.fg,u),s=c.name,l=Vr(o)}else throw new Ve("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:s,rootStyle:a,grammarState:l}}function Yl(e,t,n,r,i,o,s){return e.map((a,l)=>{const u=rn(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&i){if(i===_a&&e.length>1){const f=e.findIndex(_=>_.color==="light"),d=e.findIndex(_=>_.color==="dark");if(f===-1||d===-1)throw new Ve('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const p=rn(t[f][o],n[f])||"inherit",h=rn(t[d][o],n[d])||"inherit";return`light-dark(${p}, ${h});${c}`}return u}return s==="css-vars"?c:null}).filter(a=>!!a).join(";")}function qi(e,t,n,r={meta:{},options:n,codeToHast:(i,o)=>qi(e,i,o),codeToTokens:(i,o)=>Wi(e,i,o)}){let i=t;for(const h of Gi(n))i=h.preprocess?.call(r,i,n)||i;let{tokens:o,fg:s,bg:a,themeName:l,rootStyle:u,grammarState:c}=Wi(e,i,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=yE(o):f==="never"&&(o=vE(o)),d&&(o=bE(o));const p={...r,get source(){return i}};for(const h of Gi(n))o=h.tokens?.call(p,o)||o;return _E(o,{...n,fg:s,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??u},p,c)}function _E(e,t,n,r=Vr(e)){const i=Gi(t),o=[],s={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(const[_,v]of Object.entries(t.meta||{}))_.startsWith("_")||(u[_]=v);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},f={type:"element",tagName:"code",properties:{},children:o};const d=[],p={...n,structure:a,addClassToHast:Yf,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return c},get code(){return f},get lines(){return d}};if(e.forEach((_,v)=>{v&&(a==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
|
|
48
|
+
`}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},w=0;for(const m of _){let E={type:"element",tagName:"span",properties:{...m.htmlAttrs},children:[{type:"text",value:m.content}]};const S=Os(m.htmlStyle||zi(m));S&&(E.properties.style=S);for(const k of i)E=k?.span?.call(p,E,v+1,w,b,m)||E;a==="inline"?s.children.push(E):a==="classic"&&b.children.push(E),w+=m.content.length}if(a==="classic"){for(const m of i)b=m?.line?.call(p,b,v+1)||b;d.push(b),o.push(b)}else a==="inline"&&d.push(b)}),a==="classic"){for(const _ of i)f=_?.code?.call(p,f)||f;c.children.push(f);for(const _ of i)c=_?.pre?.call(p,c)||c;s.children.push(c)}else if(a==="inline"){const _=[];let v={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const m of s.children)m.type==="element"&&m.tagName==="br"?(_.push(v),v={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(m.type==="element"||m.type==="text")&&v.children.push(m);_.push(v);let w={type:"element",tagName:"code",properties:{},children:_};for(const m of i)w=m?.code?.call(p,w)||w;s.children=[];for(let m=0;m<w.children.length;m++){m>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const E=w.children[m];E.type==="element"&&s.children.push(...E.children)}}let h=s;for(const _ of i)h=_?.root?.call(p,h)||h;return r&&yo(h,r),h}function yE(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((o,s)=>{const l=!(o.fontStyle&&(o.fontStyle&tt.Underline||o.fontStyle&tt.Strikethrough));l&&o.content.match(/^\s+$/)&&t[s+1]?(i===void 0&&(i=o.offset),r+=o.content):r?(l?n.push({...o,offset:i,content:r+o.content}):n.push({content:r,offset:i},o),i=void 0,r=""):n.push(o)}),n})}function vE(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[,i,o,s]=r;if(!i&&!s)return n;const a=[{...n,offset:n.offset+i.length,content:o}];return i&&a.unshift({content:i,offset:n.offset}),s&&a.push({content:s,offset:n.offset+i.length+o.length}),a}))}function bE(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],o=Os(i.htmlStyle||zi(i)),s=Os(r.htmlStyle||zi(r)),a=i.fontStyle&&(i.fontStyle&tt.Underline||i.fontStyle&tt.Strikethrough),l=r.fontStyle&&(r.fontStyle&tt.Underline||r.fontStyle&tt.Strikethrough);!a&&!l&&o===s?i.content+=r.content:n.push({...r})}return n})}const EE=B0;function wE(e,t,n){const r={meta:{},options:n,codeToHast:(o,s)=>qi(e,o,s),codeToTokens:(o,s)=>Wi(e,o,s)};let i=EE(qi(e,t,n,r));for(const o of Gi(n))i=o.postprocess?.call(r,i,n)||i;return i}const Ql={light:"#333333",dark:"#bbbbbb"},Zl={light:"#fffffe",dark:"#1e1e1e"},ec="__shiki_resolved";function ba(e){if(e?.[ec])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const a=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(r=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?Ql.light:Ql.dark),n||(n=t.type==="light"?Zl.light:Zl.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 i=0;const o=new Map;function s(a){if(o.has(a))return o.get(a);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?s(a):(o.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),u=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!u)return a;const c={...a,settings:{...a.settings}};if(l){const f=s(a.settings.foreground);t.colorReplacements[f]=a.settings.foreground,c.settings.foreground=f}if(u){const f=s(a.settings.background);t.colorReplacements[f]=a.settings.background,c.settings.background=f}return c});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=s(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,ec,{enumerable:!1,writable:!1,value:!0}),t}async function td(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Jf(t)).map(async t=>await Kf(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function nd(e){return(await Promise.all(e.map(async n=>Xf(n)?null:ba(await Kf(n))))).filter(n=>!!n)}let SE=3;function TE(e,t=3){t>SE||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let jn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function rd(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new jn(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class AE extends Rb{constructor(t,n,r,i={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=ba(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=$i.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=rd(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const i of t)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,o])=>!o);if(r.length){const i=n.filter(([o,s])=>s?(s.embeddedLanguages||s.embeddedLangs)?.some(l=>r.map(([u])=>u).includes(l)):!1).filter(o=>!r.includes(o));throw new jn(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of n)this._resolver.addLanguage(o);for(const[i,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class RE{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let i=1;i<=n.length;i++){const o=n.slice(0,i).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let pr=0;function PE(e){pr+=1,e.warnings!==!1&&pr>=10&&pr%10===0&&console.warn(`[Shiki] ${pr} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new jn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(ba),i=new RE(e.engine,n),o=new AE(i,r,n,e.langAlias);let s;function a(m){return rd(m,e.langAlias)}function l(m){b();const E=o.getGrammar(typeof m=="string"?m:m.name);if(!E)throw new jn(`Language \`${m}\` not found, you may need to load it first`);return E}function u(m){if(m==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const E=o.getTheme(m);if(!E)throw new jn(`Theme \`${m}\` not found, you may need to load it first`);return E}function c(m){b();const E=u(m);s!==m&&(o.setTheme(E),s=m);const S=o.getColorMap();return{theme:E,colorMap:S}}function f(){return b(),o.getLoadedThemes()}function d(){return b(),o.getLoadedLanguages()}function p(...m){b(),o.loadLanguages(m.flat(1))}async function h(...m){return p(await td(m))}function _(...m){b();for(const E of m.flat(1))o.loadTheme(E)}async function v(...m){return b(),_(await nd(m))}function b(){if(t)throw new jn("Shiki instance has been disposed")}function w(){t||(t=!0,o.dispose(),pr-=1)}return{setTheme:c,getTheme:u,getLanguage:l,getLoadedThemes:f,getLoadedLanguages:d,resolveLangAlias:a,loadLanguage:h,loadLanguageSync:p,loadTheme:v,loadThemeSync:_,dispose:w,[Symbol.dispose]:w}}async function CE(e){e.engine||TE("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([nd(e.themes||[]),td(e.langs||[]),e.engine]);return PE({...e,themes:t,langs:n,engine:r})}async function kE(e){const t=await CE(e);return{getLastGrammarState:(...n)=>uE(t,...n),codeToTokensBase:(n,r)=>ya(t,n,r),codeToTokensWithThemes:(n,r)=>ed(t,n,r),codeToTokens:(n,r)=>Wi(t,n,r),codeToHast:(n,r)=>qi(t,n,r),codeToHtml:(n,r)=>wE(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function LE(e){const t=e.langs,n=e.themes,r=e.engine;async function i(o){function s(f){if(typeof f=="string"){if(f=o.langAlias?.[f]||f,Jf(f))return[];const d=t[f];if(!d)throw new Ve(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);return d}return f}function a(f){if(Xf(f))return"none";if(typeof f=="string"){const d=n[f];if(!d)throw new Ve(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);return d}return f}const l=(o.themes??[]).map(f=>a(f)),u=(o.langs??[]).map(f=>s(f)),c=await kE({engine:o.engine??r(),...o,themes:l,langs:u});return{...c,loadLanguage(...f){return c.loadLanguage(...f.map(s))},loadTheme(...f){return c.loadTheme(...f.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function xE(e){let t;async function n(r={}){if(t){const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{t=e({...r,themes:[],langs:[]});const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return n}function OE(e,t){const n=xE(e);async function r(i,o){const s=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),a=await t?.guessEmbeddedLanguages?.(i,o.lang,s);return a&&await s.loadLanguage(...a),s}return{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}const id=[{id:"abap",name:"ABAP",import:(()=>g(()=>import("./BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>g(()=>import("./CoDkCxhg.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>g(()=>import("./bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>g(()=>import("./DxNHbxmM.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>g(()=>import("./Cl0AqbOI.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>g(()=>import("./Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>g(()=>import("./D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>g(()=>import("./Cn7AkR1O.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>g(()=>import("./Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>g(()=>import("./BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>g(()=>import("./Ve4PFQV2.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>g(()=>import("./D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>g(()=>import("./DxSwrfjg.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>g(()=>import("./DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>g(()=>import("./BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>g(()=>import("./BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>g(()=>import("./k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>g(()=>import("./uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>g(()=>import("./CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>g(()=>import("./Bmn6On1c.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>g(()=>import("./DPOp833l.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>g(()=>import("./5X7smno1.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>g(()=>import("./CquLrc37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>g(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>g(()=>import("./eo99z4R2.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>g(()=>import("./Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>g(()=>import("./CO1LY3CK.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>g(()=>import("./D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>g(()=>import("./P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>g(()=>import("./D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>g(()=>import("./BYV0-3_D.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>g(()=>import("./Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>g(()=>import("./DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>g(()=>import("./CxbxFI8M.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>g(()=>import("./Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>g(()=>import("./DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>g(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>g(()=>import("./fKv21gyL.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>g(()=>import("./COcwbKMJ.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>g(()=>import("./DPfMkruS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>g(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>g(()=>import("./D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>g(()=>import("./COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>g(()=>import("./85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>g(()=>import("./CF10PKvl.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>g(()=>import("./CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>g(()=>import("./BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>g(()=>import("./D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>g(()=>import("./BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>g(()=>import("./Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>g(()=>import("./BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>g(()=>import("./DZu-aV2c.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>g(()=>import("./CpOuai2O.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>g(()=>import("./CeZK1NFH.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>g(()=>import("./C9XAeP06.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>g(()=>import("./CgK0fS9t.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>g(()=>import("./CuPHTKiy.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>g(()=>import("./BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>g(()=>import("./BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>g(()=>import("./C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>g(()=>import("./B7c-h3xW.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>g(()=>import("./BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>g(()=>import("./BTifaqeh.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>g(()=>import("./CenWIFCC.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>g(()=>import("./C5YyOfLZ.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>g(()=>import("./DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>g(()=>import("./D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>g(()=>import("./DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>g(()=>import("./CxGSJlkm.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>g(()=>import("./CSXwinHm.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>g(()=>import("./BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>g(()=>import("./YqXBG_HV.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>g(()=>import("./BR5kRUq4.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>g(()=>import("./DZxFcAj9.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>g(()=>import("./n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>g(()=>import("./DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>g(()=>import("./CxLEBnE3.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>g(()=>import("./C9oPPf7i.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>g(()=>import("./gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>g(()=>import("./CLZrNe3w.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>g(()=>import("./CmIQRyeF.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>g(()=>import("./m17aaUwq.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>g(()=>import("./Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>g(()=>import("./CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>g(()=>import("./BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>g(()=>import("./D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>g(()=>import("./D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>g(()=>import("./CnnebwVN.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>g(()=>import("./DGP4VlC8.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>g(()=>import("./CufHLc7y.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>g(()=>import("./CYsAdtH9.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>g(()=>import("./DWrx1Km3.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>g(()=>import("./DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>g(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>g(()=>import("./BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>g(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>g(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>g(()=>import("./CXZktZb0.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>g(()=>import("./Br6cN0cg.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>g(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>g(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>g(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>g(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>g(()=>import("./DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>g(()=>import("./C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>g(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>g(()=>import("./W9tJ9s81.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"just",name:"Just",import:(()=>g(()=>import("./CENFIVCM.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>g(()=>import("./DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>g(()=>import("./BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>g(()=>import("./DZf3V79B.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>g(()=>import("./oH_c3LbQ.js"),__vite__mapDeps([65,66,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>g(()=>import("./BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>g(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>g(()=>import("./mjskCLCv.js"),__vite__mapDeps([67,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>g(()=>import("./DjAJT7YJ.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>g(()=>import("./2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>g(()=>import("./BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>g(()=>import("./CnsnAmq5.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>g(()=>import("./C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>g(()=>import("./CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>g(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>g(()=>import("./BN7gUcg9.js"),__vite__mapDeps([68,3,69,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>g(()=>import("./D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>g(()=>import("./DSeZwD4N.js"),__vite__mapDeps([70,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>g(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>g(()=>import("./mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>g(()=>import("./CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>g(()=>import("./rZm6bMo-.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>g(()=>import("./_H4v1dQx.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>g(()=>import("./IF9eRakj.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>g(()=>import("./DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>g(()=>import("./DRJZaHtK.js"),__vite__mapDeps([71,72]),import.meta.url))},{id:"nextflow-groovy",name:"nextflow-groovy",import:(()=>g(()=>import("./BeH2EWoN.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>g(()=>import("./Dph4kLrZ.js"),__vite__mapDeps([73,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>g(()=>import("./DhmSosst.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>g(()=>import("./CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>g(()=>import("./Cz2AlsmD.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>g(()=>import("./DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>g(()=>import("./CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>g(()=>import("./C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>g(()=>import("./BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>g(()=>import("./C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>g(()=>import("./D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>g(()=>import("./BzTr9Aqm.js"),__vite__mapDeps([64,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>g(()=>import("./DJjDtW9f.js"),__vite__mapDeps([75,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>g(()=>import("./u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>g(()=>import("./ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>g(()=>import("./BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>g(()=>import("./C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>g(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>g(()=>import("./CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>g(()=>import("./Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>g(()=>import("./Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>g(()=>import("./CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>g(()=>import("./C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>g(()=>import("./BLmx8bSh.js"),__vite__mapDeps([76,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>g(()=>import("./BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>g(()=>import("./CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>g(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>g(()=>import("./BVQ-GDCI.js"),__vite__mapDeps([77,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>g(()=>import("./C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>g(()=>import("./IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>g(()=>import("./Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>g(()=>import("./BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>g(()=>import("./DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>g(()=>import("./DsumFeuD.js"),__vite__mapDeps([78,1,2,3,79]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>g(()=>import("./C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>g(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>g(()=>import("./C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>g(()=>import("./BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>g(()=>import("./D8l8udqQ.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>g(()=>import("./BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>g(()=>import("./FtFNcQmh.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>g(()=>import("./CYpkKp66.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>g(()=>import("./B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>g(()=>import("./CG8Ifv2g.js"),__vite__mapDeps([82,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>g(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>g(()=>import("./C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>g(()=>import("./C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>g(()=>import("./2EtD6e53.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>g(()=>import("./DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>g(()=>import("./BqTXFGrv.js"),__vite__mapDeps([83,84]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>g(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>g(()=>import("./Cq5zzVJU.js"),__vite__mapDeps([85,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>g(()=>import("./BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>g(()=>import("./rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>g(()=>import("./Dzze3sRP.js"),__vite__mapDeps([86,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>g(()=>import("./BRZ36xJF.js"),__vite__mapDeps([87,88]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>g(()=>import("./BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>g(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>g(()=>import("./_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>g(()=>import("./DM8c43g1.js"),__vite__mapDeps([89,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>g(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>g(()=>import("./BH7IYjvW.js"),__vite__mapDeps([90,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>g(()=>import("./DgsIRcX7.js"),__vite__mapDeps([91,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>g(()=>import("./D82vCrfD.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>g(()=>import("./CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>g(()=>import("./4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>g(()=>import("./CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>g(()=>import("./QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>g(()=>import("./dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>g(()=>import("./CZhp0h8q.js"),__vite__mapDeps([92,93,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>g(()=>import("./BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>g(()=>import("./C5BYcBs_.js"),__vite__mapDeps([66,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>g(()=>import("./vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>g(()=>import("./Cm3UrAx6.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>g(()=>import("./B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>g(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>g(()=>import("./BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>g(()=>import("./DDvzSYfr.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>g(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>g(()=>import("./BGHnOYBU.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>g(()=>import("./DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>g(()=>import("./BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>g(()=>import("./CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>g(()=>import("./D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>g(()=>import("./BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>g(()=>import("./CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>g(()=>import("./CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>g(()=>import("./DEthMvLe.js"),__vite__mapDeps([96,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>g(()=>import("./DqQDbK_p.js"),__vite__mapDeps([97,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>g(()=>import("./CW8IKDeL.js"),__vite__mapDeps([98,3,5,69,99,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>g(()=>import("./CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>g(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>g(()=>import("./BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>g(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>g(()=>import("./BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>g(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>g(()=>import("./lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>g(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>g(()=>import("./yv6CvBhz.js"),__vite__mapDeps([100,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>g(()=>import("./Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>g(()=>import("./DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>g(()=>import("./VOosw3JB.js"),[],import.meta.url))}],IE=Object.fromEntries(id.map(e=>[e.id,e.import])),DE=Object.fromEntries(id.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),NE={...IE,...DE},ME=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>g(()=>import("./C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>g(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>g(()=>import("./DYE7WIF3.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>g(()=>import("./BA47KaF1.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>g(()=>import("./32ctXXKs.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>g(()=>import("./DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>g(()=>import("./C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>g(()=>import("./DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>g(()=>import("./D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>g(()=>import("./C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>g(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>g(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>g(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>g(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>g(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>g(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>g(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>g(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>g(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>g(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>g(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>g(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>g(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>g(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>g(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>g(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>g(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>g(()=>import("./BUw7H-hv.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:(()=>g(()=>import("./Cn-bp-IR.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>g(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>g(()=>import("./CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>g(()=>import("./CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>g(()=>import("./DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>g(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>g(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>g(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>g(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>g(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>g(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>g(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>g(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>g(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>g(()=>import("./D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>g(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>g(()=>import("./CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>g(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>g(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>g(()=>import("./C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>g(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>g(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>g(()=>import("./bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>g(()=>import("./qdsjHGoJ.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>g(()=>import("./DHQR4-dF.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>g(()=>import("./D4_iv3hh.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>g(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>g(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>g(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>g(()=>import("./DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>g(()=>import("./L9t79GZl.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>g(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>g(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>g(()=>import("./DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>g(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>g(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>g(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],VE=Object.fromEntries(ME.map(e=>[e.id,e.import]));class Ea extends Error{constructor(t){super(t),this.name="ShikiError"}}function $E(){return 2147483648}function jE(){return typeof performance<"u"?performance.now():Date.now()}const BE=(e,t)=>e+(t-e%t)%t;async function FE(e){let t,n;const r={};function i(p){n=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}function o(p,h,_){r.HEAPU8.copyWithin(p,h,h+_)}function s(p){try{return t.grow(p-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function a(p){const h=r.HEAPU8.length;p=p>>>0;const _=$E();if(p>_)return!1;for(let v=1;v<=4;v*=2){let b=h*(1+.2/v);b=Math.min(b,p+100663296);const w=Math.min(_,BE(Math.max(p,b),65536));if(s(w))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(p,h,_=1024){const v=h+_;let b=h;for(;p[b]&&!(b>=v);)++b;if(b-h>16&&p.buffer&&l)return l.decode(p.subarray(h,b));let w="";for(;h<b;){let m=p[h++];if(!(m&128)){w+=String.fromCharCode(m);continue}const E=p[h++]&63;if((m&224)===192){w+=String.fromCharCode((m&31)<<6|E);continue}const S=p[h++]&63;if((m&240)===224?m=(m&15)<<12|E<<6|S:m=(m&7)<<18|E<<12|S<<6|p[h++]&63,m<65536)w+=String.fromCharCode(m);else{const k=m-65536;w+=String.fromCharCode(55296|k>>10,56320|k&1023)}}return w}function c(p,h){return p?u(r.HEAPU8,p,h):""}const f={emscripten_get_now:jE,emscripten_memcpy_big:o,emscripten_resize_heap:a,fd_write:()=>0};async function d(){const h=await e({env:f,wasi_snapshot_preview1:f});t=h.memory,i(t.buffer),Object.assign(r,h),r.UTF8ToString=c}return await d(),r}var HE=Object.defineProperty,UE=(e,t,n)=>t in e?HE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t,n)=>UE(e,typeof t!="symbol"?t+"":t,n);let He=null;function zE(e){throw new Ea(e.UTF8ToString(e.getLastOnigError()))}class vo{constructor(t){Be(this,"utf16Length"),Be(this,"utf8Length"),Be(this,"utf16Value"),Be(this,"utf8Value"),Be(this,"utf16OffsetToUtf8"),Be(this,"utf8OffsetToUtf16");const n=t.length,r=vo._utf8ByteLength(t),i=r!==n,o=i?new Uint32Array(n+1):null;i&&(o[n]=r);const s=i?new Uint32Array(r+1):null;i&&(s[r]=n);const a=new Uint8Array(r);let l=0;for(let u=0;u<n;u++){const c=t.charCodeAt(u);let f=c,d=!1;if(c>=55296&&c<=56319&&u+1<n){const p=t.charCodeAt(u+1);p>=56320&&p<=57343&&(f=(c-55296<<10)+65536|p-56320,d=!0)}i&&(o[u]=l,d&&(o[u+1]=l),f<=127?s[l+0]=u:f<=2047?(s[l+0]=u,s[l+1]=u):f<=65535?(s[l+0]=u,s[l+1]=u,s[l+2]=u):(s[l+0]=u,s[l+1]=u,s[l+2]=u,s[l+3]=u)),f<=127?a[l++]=f:f<=2047?(a[l++]=192|(f&1984)>>>6,a[l++]=128|(f&63)>>>0):f<=65535?(a[l++]=224|(f&61440)>>>12,a[l++]=128|(f&4032)>>>6,a[l++]=128|(f&63)>>>0):(a[l++]=240|(f&1835008)>>>18,a[l++]=128|(f&258048)>>>12,a[l++]=128|(f&4032)>>>6,a[l++]=128|(f&63)>>>0),d&&u++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const o=t.charCodeAt(r);let s=o,a=!1;if(o>=55296&&o<=56319&&r+1<i){const l=t.charCodeAt(r+1);l>=56320&&l<=57343&&(s=(o-55296<<10)+65536|l-56320,a=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,a&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const bo=class xt{constructor(t){if(Be(this,"id",++xt.LAST_ID),Be(this,"_onigBinding"),Be(this,"content"),Be(this,"utf16Length"),Be(this,"utf8Length"),Be(this,"utf16OffsetToUtf8"),Be(this,"utf8OffsetToUtf16"),Be(this,"ptr"),!He)throw new Ea("Must invoke loadWasm first.");this._onigBinding=He,this.content=t;const n=new vo(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!xt._sharedPtrInUse?(xt._sharedPtr||(xt._sharedPtr=He.omalloc(1e4)),xt._sharedPtrInUse=!0,He.HEAPU8.set(n.utf8Value,xt._sharedPtr),this.ptr=xt._sharedPtr):this.ptr=n.createString(He)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===xt._sharedPtr?xt._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Be(bo,"LAST_ID",0);Be(bo,"_sharedPtr",0);Be(bo,"_sharedPtrInUse",!1);let od=bo;class GE{constructor(t){if(Be(this,"_onigBinding"),Be(this,"_ptr"),!He)throw new Ea("Must invoke loadWasm first.");const n=[],r=[];for(let a=0,l=t.length;a<l;a++){const u=new vo(t[a]);n[a]=u.createString(He),r[a]=u.utf8Length}const i=He.omalloc(4*t.length);He.HEAPU32.set(n,i/4);const o=He.omalloc(4*t.length);He.HEAPU32.set(r,o/4);const s=He.createOnigScanner(i,o,t.length);for(let a=0,l=t.length;a<l;a++)He.ofree(n[a]);He.ofree(o),He.ofree(i),s===0&&zE(He),this._onigBinding=He,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new od(t);const o=this._findNextMatchSync(t,n,!1,i);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(s===0)return null;const a=o.HEAPU32;let l=s/4;const u=a[l++],c=a[l++],f=[];for(let d=0;d<c;d++){const p=t.convertUtf8OffsetToUtf16(a[l++]),h=t.convertUtf8OffsetToUtf16(a[l++]);f[d]={start:p,end:h,length:h-p}}return{index:u,captureIndices:f}}}function WE(e){return typeof e.instantiator=="function"}function qE(e){return typeof e.default=="function"}function KE(e){return typeof e.data<"u"}function JE(e){return typeof Response<"u"&&e instanceof Response}function XE(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let li;function YE(e){if(li)return li;async function t(){He=await FE(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),WE(r)?r=await r.instantiator(n):qE(r)?r=await r.default(n):(KE(r)&&(r=r.data),JE(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await QE(r)(n):r=await ZE(r)(n):XE(r)?r=await Wo(r)(n):r instanceof WebAssembly.Module?r=await Wo(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Wo(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return li=t(),li}function Wo(e){return t=>WebAssembly.instantiate(e,t)}function QE(e){return t=>WebAssembly.instantiateStreaming(e,t)}function ZE(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function ew(e){return e&&await YE(e),{createScanner(t){return new GE(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new od(t)}}}const tw=LE({langs:NE,themes:VE,engine:()=>ew(g(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{getSingletonHighlighter:nw}=OE(tw,{guessEmbeddedLanguages:G0}),qo=ge(),rw=()=>(qo.value||nw({themes:["vitesse-dark"],langs:["html","vue"]}).then(e=>{qo.value=e}).catch(e=>{Vi.error("Error creating highlighter",e)}),{highlighter:qo}),iw=["innerHTML"],ow=yt({__name:"EmailSourceCodeViewer",props:{sourceCode:{},contentMode:{}},setup(e){const{highlighter:t}=rw(),n=ge(e.sourceCode);return Ke([()=>e.sourceCode,t],async([r,i])=>{if(!i){n.value=e.sourceCode;return}if(r)try{n.value=await i.codeToHtml(r,{lang:(e.contentMode==="source","html"),theme:"vitesse-dark"})}catch{n.value=e.sourceCode}else n.value="Missing source code"},{immediate:!0}),(r,i)=>{const o=mo;return ee(),Oe(o,{class:"p-4 overflow-auto max-h-full"},{default:Ce(()=>[pe("div",{innerHTML:F(n)},null,8,iw)]),_:1})}}}),sw=Object.assign(ow,{__name:"EmailSourceCodeViewer"});function sd(e){return new URL(globalThis.location.href)}const aw={trailing:!0};function lw(e,t=25,n={}){if(n={...aw,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,i,o=[],s,a;const l=(f,d)=>(s=cw(e,f,d),s.finally(()=>{if(s=null,n.trailing&&a&&!i){const p=l(f,a);return a=null,p}}),s),u=function(...f){return n.trailing&&(a=f),s||new Promise(d=>{const p=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;const h=n.leading?r:l(this,f);a=null;for(const _ of o)_(h);o=[]},t),p?(r=l(this,f),d(r)):o.push(d)})},c=f=>{f&&(clearTimeout(f),i=null)};return u.isPending=()=>!!i,u.cancel=()=>{c(i),o=[],a=null},u.flush=()=>{if(c(i),!a||s)return;const f=a;return a=null,l(this,f)},u}async function cw(e,t,n){return await e.apply(t,n)}function uw(e){return typeof e=="string"?`'${e}'`:new fw().serialize(e)}const fw=(function(){class e{#e=new Map;compare(n,r){const i=typeof n,o=typeof r;return i==="string"&&o==="string"?n.localeCompare(r):i==="number"&&o==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const i=n.constructor,o=i===Object||i===void 0?"":i.name;if(o!==""&&globalThis[o]===i)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const s=n.toJSON();return o+(s!==null&&typeof s=="object"?this.$object(s):`(${this.serialize(s)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,r){const i=this["$"+n];if(i)return i.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const i=Array.from(r).sort((s,a)=>this.compare(s[0],a[0]));let o=`${n}{`;for(let s=0;s<i.length;s++){const[a,l]=i[s];o+=`${this.serialize(a,!0)}:${this.serialize(l)}`,s<i.length-1&&(o+=",")}return o+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let i=0;i<n.length;i++)r+=this.serialize(n[i]),i<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,i)=>this.compare(r,i)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})(),dw=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],pw=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],hw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",un=[];class mw{_data=new Bn;_hash=new Bn([...dw]);_nDataBytes=0;_minBufferSize=0;finalize(t){t&&this._append(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,n){const r=this._hash.words;let i=r[0],o=r[1],s=r[2],a=r[3],l=r[4],u=r[5],c=r[6],f=r[7];for(let d=0;d<64;d++){if(d<16)un[d]=t[n+d]|0;else{const m=un[d-15],E=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,S=un[d-2],k=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;un[d]=E+un[d-7]+k+un[d-16]}const p=l&u^~l&c,h=i&o^i&s^o&s,_=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),v=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),b=f+v+p+pw[d]+un[d],w=_+h;f=c,c=u,u=l,l=a+b|0,a=s,s=o,o=i,i=b+w|0}r[0]=r[0]+i|0,r[1]=r[1]+o|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+u|0,r[6]=r[6]+c|0,r[7]=r[7]+f|0}_append(t){typeof t=="string"&&(t=Bn.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let n,r=this._data.sigBytes/64;t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const i=r*16,o=Math.min(i*4,this._data.sigBytes);if(i){for(let s=0;s<i;s+=16)this._doProcessBlock(this._data.words,s);n=this._data.words.splice(0,i),this._data.sigBytes-=o}return new Bn(n,o)}}class Bn{words;sigBytes;constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}static fromUtf8(t){const n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let o=0;o<r;o++)i[o>>>2]|=(n.charCodeAt(o)&255)<<24-o%4*8;return new Bn(i,r)}toBase64(){const t=[];for(let n=0;n<this.sigBytes;n+=3){const r=this.words[n>>>2]>>>24-n%4*8&255,i=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,o=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,s=r<<16|i<<8|o;for(let a=0;a<4&&n*8+a*6<this.sigBytes*8;a++)t.push(hw.charAt(s>>>6*(3-a)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}}function gw(e){return new mw().finalize(e).toBase64()}function Mn(e){return gw(uw(e))}const _w=Symbol.for("nuxt:client-only");function ad(e){return Object.defineProperty(function(){throw new Error(`[nuxt] \`${e.name}\` is a compiler macro and cannot be called at runtime.`)},"__nuxt_factory",{enumerable:!1,get:()=>e.factory})}const ld=ad({name:"createUseAsyncData",factory(e={}){function t(...n){const r=typeof n[n.length-1]=="string"?n.pop():void 0;yw(n[0],n[1])&&n.unshift(r);let[i,o,s={}]=n,a=!1;const l=be(i)||typeof i=="function",u=l?he(()=>xe(i)):{value:i};if(!u.value||typeof u.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a non-empty string.");if(typeof o!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const c=typeof e=="function",f=Ie(),d=c?e(s):e;if(!c)for(const m in d)d[m]!==void 0&&s[m]===void 0&&(s[m]=d[m]);if(s.server??=!0,s.default??=bw,s.getCachedData??=fd,s.lazy??=!1,s.immediate??=!0,s.deep??=Ym.deep,s.dedupe??="cancel",c)for(const m in d)d[m]!==void 0&&(s[m]=d[m]);f._asyncData[u.value];function p(){const m={cause:"initial",dedupe:s.dedupe},E=f._asyncData[u.value];return E?._init?m.cachedData=E._initialCachedData:(m.cachedData=s.getCachedData(u.value,f,{cause:"initial"}),f._asyncData[u.value]=tc(f,u.value,o,s,m.cachedData),f._asyncData[u.value]._initialCachedData=m.cachedData),()=>f._asyncData[u.value].execute(m)}const h=p(),_=f._asyncData[u.value];_._deps++;const v=s.server!==!1&&f.payload.serverRendered;{let m=function(V){const Q=f._asyncData[V];Q?._deps&&(Q._deps--,Q._deps===0&&Q?._off())};const E=St();if(E&&v&&s.immediate&&!E.sp&&(E.sp=[]),E&&!E._nuxtOnBeforeMountCbs){E._nuxtOnBeforeMountCbs=[];const V=E._nuxtOnBeforeMountCbs;Fc(()=>{V.forEach(Q=>{Q()}),V.splice(0,V.length)}),Js(()=>V.splice(0,V.length))}const S=E&&(E._nuxtClientOnly||ht(_w,!1));v&&f.isHydrating&&(_.error.value||_.data.value!==void 0)?_.status.value=_.error.value?"error":"success":E&&(!S&&f.payload.serverRendered&&f.isHydrating||s.lazy)&&s.immediate?E._nuxtOnBeforeMountCbs.push(h):s.immediate&&_.status.value!=="success"&&h();const k=Br(),x=()=>{},U=l?Ke(u,(V,Q)=>{if((V||Q)&&V!==Q){a=!0;const te=f._asyncData[Q]?.data.value!==void 0,X=f._asyncDataPromises[Q]!==void 0,A={cause:"initial",dedupe:s.dedupe};if(!f._asyncData[V]?._init){let P;Q&&te?P=f._asyncData[Q].data.value:(P=s.getCachedData(V,f,{cause:"initial"}),A.cachedData=P),f._asyncData[V]=tc(f,V,o,s,P)}f._asyncData[V]._deps++,Q&&m(Q),s._keyTriggersExecute!==!1&&(s.immediate||te||X)&&f._asyncData[V].execute(A),Cr(()=>{a=!1})}},{flush:"sync"}):x,H=s.watch?Ke(s.watch,()=>{a||(f._asyncData[u.value]?._execute.isPending()&&Cr(()=>{f._asyncData[u.value]?._execute.flush()}),f._asyncData[u.value]?._execute({cause:"watch",dedupe:s.dedupe}))}):x;k&&$s(()=>{U(),H(),m(u.value)})}const b={data:ci(()=>f._asyncData[u.value]?.data),pending:ci(()=>f._asyncData[u.value]?.pending),status:ci(()=>f._asyncData[u.value]?.status),error:ci(()=>f._asyncData[u.value]?.error),refresh:(...m)=>f._asyncData[u.value]?._init?f._asyncData[u.value].execute(...m):p()(),execute:(...m)=>b.refresh(...m),clear:()=>{const m=f._asyncData[u.value];if(m?._abortController)try{m._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{m._abortController=void 0}ud(f,u.value)}},w=Promise.resolve(f._asyncDataPromises[u.value]).then(()=>b);return Object.assign(w,b),Object.defineProperties(w,{then:{enumerable:!0,value:w.then.bind(w)},catch:{enumerable:!0,value:w.catch.bind(w)},finally:{enumerable:!0,value:w.finally.bind(w)}}),w}return t}}),cd=ld.__nuxt_factory();ld.__nuxt_factory({lazy:!0,_functionName:"useLazyAsyncData"});function ci(e){return he({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function yw(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function ud(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=F(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle",e._asyncData[t]._initialCachedData=void 0),t in e._asyncDataPromises&&(e._asyncDataPromises[t]=void 0)}function vw(e,t){const n={};for(const r of t)n[r]=e[r];return n}function tc(e,t,n,r,i){e.payload._errors[t]??=void 0;const o=r.getCachedData!==fd,s=n,a=r.deep?ge:ze,l=i!==void 0,u=e.hook("app:data:refresh",async f=>{(!f||f.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:a(l?i:r.default()),pending:he(()=>c.status.value==="pending"),error:Hs(e.payload._errors,t),status:ze("idle"),execute:(...f)=>{const[d,p=void 0]=f,h=d&&p===void 0&&typeof d=="object"?d:{};if(e._asyncDataPromises[t]&&(h.dedupe??r.dedupe)==="defer")return e._asyncDataPromises[t];{const b="cachedData"in h?h.cachedData:r.getCachedData(t,e,{cause:h.cause??"refresh:manual"});if(b!==void 0)return e.payload.data[t]=c.data.value=b,c.error.value=void 0,c.status.value="success",Promise.resolve(b)}c._abortController&&c._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),c._abortController=new AbortController,c.status.value="pending";const _=new AbortController,v=new Promise((b,w)=>{try{const m=h.timeout??r.timeout,E=Ew([c._abortController?.signal,h?.signal],_.signal,m);if(E.aborted){const S=E.reason;w(S instanceof Error?S:new DOMException(String(S??"Aborted"),"AbortError"));return}return E.addEventListener("abort",()=>{const S=E.reason;w(S instanceof Error?S:new DOMException(String(S??"Aborted"),"AbortError"))},{once:!0,signal:_.signal}),Promise.resolve(s(e,{signal:E})).then(b,w)}catch(m){w(m)}}).then(async b=>{if(e._asyncDataPromises[t]!==v)return;let w=b;r.transform&&(w=await r.transform(b)),r.pick&&(w=vw(w,r.pick)),e.payload.data[t]=w,c.data.value=w,c.error.value=void 0,c.status.value="success"}).catch(b=>{if(e._asyncDataPromises[t]!==v||c._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<"u"&&b instanceof DOMException&&b.name==="AbortError")return c.status.value="idle",e._asyncDataPromises[t];c.error.value=ho(b),c.data.value=F(r.default()),c.status.value="error"}).finally(()=>{_.abort(),e._asyncDataPromises[t]===v&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=v,e._asyncDataPromises[t]},_execute:lw((...f)=>c.execute(...f),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{u(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),o||Rt(()=>{e._asyncData[t]?._init||(ud(e,t),c.execute=()=>Promise.resolve())})}};return c}const bw=()=>{},fd=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]};function Ew(e,t,n){const r=e.filter(s=>!!s);if(typeof n=="number"&&n>=0){const s=AbortSignal.timeout?.(n);s&&r.push(s)}if(AbortSignal.any)return AbortSignal.any(r);const i=new AbortController;for(const s of r)if(s.aborted){const a=s.reason??new DOMException("Aborted","AbortError");try{i.abort(a)}catch{i.abort()}return i.signal}const o=()=>{const a=r.find(l=>l.aborted)?.reason??new DOMException("Aborted","AbortError");try{i.abort(a)}catch{i.abort()}};for(const s of r)s.addEventListener?.("abort",o,{once:!0,signal:t});return i.signal}const ww={class:"space-y-2"},Sw={key:0,class:"flex mt-8"},Tw={key:1,class:"flex flex-col"},Aw={key:2,class:"flex items-center justify-center h-64"},Rw={class:"text-center"},Pw={key:3,class:"space-y-6"},Cw={class:"space-y-4"},kw={key:0},Lw={key:1},xw={key:2},Ow=yt({__name:"EmailTemplateViewer",props:{template:{}},setup(e){const t=e,n=ge("desktop"),r=ge("preview"),i=sd(),{data:o,error:s,pending:a,refresh:l}=cd(async()=>{if(!t.template)return{html:null,subject:null,sourceCode:null};const d=await $fetch(`${i.origin}/api/emails/render`,{method:"POST",body:{name:t.template.filename,pretty:!0}}),p=typeof d=="string"?d:d.html,h=typeof d=="string"?null:d.subject,v=(await $fetch(`${i.origin}/api/emails/source`,{method:"POST",body:{name:t.template.filename}})).sourceCode;return{html:p,subject:h,sourceCode:v}},{watch:[()=>t.template]},"$hvHxJcgi8q"),u=he(()=>o.value?.sourceCode??null),c=he(()=>o.value?.html??null),f=he(()=>o.value?.subject??null);return(d,p)=>{const h=sf,_=af,v=Ln,b=Dv,w=$v,m=sw;return ee(),me("div",ww,[F(a)?(ee(),me("div",Sw,[ie(h,null,{default:Ce(()=>[...p[2]||(p[2]=[at("Loading email template...",-1)])]),_:1})])):F(s)?(ee(),me("div",Tw,[ie(_,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:Ce(()=>[...p[3]||(p[3]=[at(" Error! ",-1)])]),_:1}),ie(_,{n:"red6 dark:red5"},{default:Ce(()=>[at(Pt(F(s)),1)]),_:1})])):e.template?(ee(),me("div",Pw,[ie(b,{"view-mode":F(n),"onUpdate:viewMode":p[0]||(p[0]=E=>be(n)?n.value=E:null),"content-mode":F(r),"onUpdate:contentMode":p[1]||(p[1]=E=>be(r)?r.value=E:null),"rendered-html":F(c),"rendered-subject":F(f),"source-code":F(u),onRefresh:F(l)},null,8,["view-mode","content-mode","rendered-html","rendered-subject","source-code","onRefresh"]),pe("div",Cw,[F(r)==="preview"?(ee(),me("div",kw,[ie(w,{"rendered-html":F(c),"view-mode":F(n)},null,8,["rendered-html","view-mode"])])):F(r)==="html"?(ee(),me("div",Lw,[ie(m,{"source-code":F(c),"content-mode":F(r)},null,8,["source-code","content-mode"])])):F(r)==="source"?(ee(),me("div",xw,[ie(m,{"source-code":F(u),"content-mode":F(r)},null,8,["source-code","content-mode"])])):nt("",!0)])])):(ee(),me("div",Aw,[pe("div",Rw,[ie(v,{icon:"carbon:email",class:"w-12 h-12 text-gray-400 mx-auto mb-4"}),p[4]||(p[4]=pe("p",{class:"text-gray-500 dark:text-gray-400"}," Select an email template to preview ",-1))])]))])}}}),Iw=Object.assign(Ow,{__name:"EmailTemplateViewer"}),Dw={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const n=t,r=e,i=Pp(),o=ge([]),s=he(()=>o.value.reduce((L,$)=>(L[~~$.id]=$)&&L,{})),a=he(()=>o.value.length),l=ge(null),u=ge(!1),c=ge({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),f=ge({splitter:null,timeoutId:null}),d=he(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":c.value.dragging})),p=()=>{document.addEventListener("mousemove",v,{passive:!1}),document.addEventListener("mouseup",b),"ontouchstart"in window&&(document.addEventListener("touchmove",v,{passive:!1}),document.addEventListener("touchend",b))},h=()=>{document.removeEventListener("mousemove",v,{passive:!1}),document.removeEventListener("mouseup",b),"ontouchstart"in window&&(document.removeEventListener("touchmove",v,{passive:!1}),document.removeEventListener("touchend",b))},_=(L,$)=>{const W=L.target.closest(".splitpanes__splitter");if(W){const{left:B,top:q}=W.getBoundingClientRect(),{clientX:oe,clientY:y}="ontouchstart"in window&&L.touches?L.touches[0]:L;c.value.cursorOffset=r.horizontal?y-q:oe-B}p(),c.value.mouseDown=!0,c.value.activeSplitter=$},v=L=>{c.value.mouseDown&&(L.preventDefault(),c.value.dragging=!0,requestAnimationFrame(()=>{x(S(L)),we("resize",{event:L},!0)}))},b=L=>{c.value.dragging&&(window.getSelection().removeAllRanges(),we("resized",{event:L},!0)),c.value.mouseDown=!1,c.value.activeSplitter=null,setTimeout(()=>{c.value.dragging=!1,h()},100)},w=(L,$)=>{"ontouchstart"in window&&(L.preventDefault(),f.value.splitter===$?(clearTimeout(f.value.timeoutId),f.value.timeoutId=null,m(L,$),f.value.splitter=null):(f.value.splitter=$,f.value.timeoutId=setTimeout(()=>f.value.splitter=null,500))),c.value.dragging||we("splitter-click",{event:L,index:$},!0)},m=(L,$)=>{if(we("splitter-dblclick",{event:L,index:$},!0),r.maximizePanes){let W=0;o.value=o.value.map((B,q)=>(B.size=q===$?B.max:B.min,q!==$&&(W+=B.min),B)),o.value[$].size-=W,we("pane-maximize",{event:L,index:$,pane:o.value[$]}),we("resized",{event:L,index:$},!0)}},E=(L,$)=>{we("pane-click",{event:L,index:s.value[$].index,pane:s.value[$]})},S=L=>{const $=l.value.getBoundingClientRect(),{clientX:W,clientY:B}="ontouchstart"in window&&L.touches?L.touches[0]:L;return{x:W-(r.horizontal?0:c.value.cursorOffset)-$.left,y:B-(r.horizontal?c.value.cursorOffset:0)-$.top}},k=L=>{L=L[r.horizontal?"y":"x"];const $=l.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(L=$-L),L*100/$},x=L=>{const $=c.value.activeSplitter;let W={prevPanesSize:H($),nextPanesSize:V($),prevReachedMinPanes:0,nextReachedMinPanes:0};const B=0+(r.pushOtherPanes?0:W.prevPanesSize),q=100-(r.pushOtherPanes?0:W.nextPanesSize),oe=Math.max(Math.min(k(L),q),B);let y=[$,$+1],T=o.value[y[0]]||null,C=o.value[y[1]]||null;const N=T.max<100&&oe>=T.max+W.prevPanesSize,I=C.max<100&&oe<=100-(C.max+V($+1));if(N||I){N?(T.size=T.max,C.size=Math.max(100-T.max-W.prevPanesSize-W.nextPanesSize,0)):(T.size=Math.max(100-C.max-W.prevPanesSize-V($+1),0),C.size=C.max);return}if(r.pushOtherPanes){const D=U(W,oe);if(!D)return;({sums:W,panesToResize:y}=D),T=o.value[y[0]]||null,C=o.value[y[1]]||null}T!==null&&(T.size=Math.min(Math.max(oe-W.prevPanesSize-W.prevReachedMinPanes,T.min),T.max)),C!==null&&(C.size=Math.min(Math.max(100-oe-W.nextPanesSize-W.nextReachedMinPanes,C.min),C.max))},U=(L,$)=>{const W=c.value.activeSplitter,B=[W,W+1];return $<L.prevPanesSize+o.value[B[0]].min&&(B[0]=Q(W).index,L.prevReachedMinPanes=0,B[0]<W&&o.value.forEach((q,oe)=>{oe>B[0]&&oe<=W&&(q.size=q.min,L.prevReachedMinPanes+=q.min)}),L.prevPanesSize=H(B[0]),B[0]===void 0)?(L.prevReachedMinPanes=0,o.value[0].size=o.value[0].min,o.value.forEach((q,oe)=>{oe>0&&oe<=W&&(q.size=q.min,L.prevReachedMinPanes+=q.min)}),o.value[B[1]].size=100-L.prevReachedMinPanes-o.value[0].min-L.prevPanesSize-L.nextPanesSize,null):$>100-L.nextPanesSize-o.value[B[1]].min&&(B[1]=te(W).index,L.nextReachedMinPanes=0,B[1]>W+1&&o.value.forEach((q,oe)=>{oe>W&&oe<B[1]&&(q.size=q.min,L.nextReachedMinPanes+=q.min)}),L.nextPanesSize=V(B[1]-1),B[1]===void 0)?(L.nextReachedMinPanes=0,o.value.forEach((q,oe)=>{oe<a.value-1&&oe>=W+1&&(q.size=q.min,L.nextReachedMinPanes+=q.min)}),o.value[B[0]].size=100-L.prevPanesSize-V(B[0]-1),null):{sums:L,panesToResize:B}},H=L=>o.value.reduce(($,W,B)=>$+(B<L?W.size:0),0),V=L=>o.value.reduce(($,W,B)=>$+(B>L+1?W.size:0),0),Q=L=>[...o.value].reverse().find($=>$.index<L&&$.size>$.min)||{},te=L=>o.value.find($=>$.index>L+1&&$.size>$.min)||{},X=()=>{var L;const $=Array.from(((L=l.value)==null?void 0:L.children)||[]);for(const W of $){const B=W.classList.contains("splitpanes__pane"),q=W.classList.contains("splitpanes__splitter");!B&&!q&&(W.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},A=(L,$,W=!1)=>{const B=L-1,q=document.createElement("div");q.classList.add("splitpanes__splitter"),W||(q.onmousedown=oe=>_(oe,B),typeof window<"u"&&"ontouchstart"in window&&(q.ontouchstart=oe=>_(oe,B)),q.onclick=oe=>w(oe,B+1)),q.ondblclick=oe=>m(oe,B+1),$.parentNode.insertBefore(q,$)},R=L=>{L.onmousedown=void 0,L.onclick=void 0,L.ondblclick=void 0,L.remove()},P=()=>{var L;const $=Array.from(((L=l.value)==null?void 0:L.children)||[]);for(const B of $)B.className.includes("splitpanes__splitter")&&R(B);let W=0;for(const B of $)B.className.includes("splitpanes__pane")&&(!W&&r.firstSplitter?A(W,B,!0):W&&A(W,B),W++)},z=({uid:L,...$})=>{const W=s.value[L];for(const[B,q]of Object.entries($))W[B]=q},O=L=>{var $;let W=-1;Array.from((($=l.value)==null?void 0:$.children)||[]).some(B=>(B.className.includes("splitpanes__pane")&&W++,B.isSameNode(L.el))),o.value.splice(W,0,{...L,index:W}),o.value.forEach((B,q)=>B.index=q),u.value&&Rt(()=>{P(),re({addedPane:o.value[W]}),we("pane-add",{pane:o.value[W]})})},Z=L=>{const $=o.value.findIndex(B=>B.id===L);o.value[$].el=null;const W=o.value.splice($,1)[0];o.value.forEach((B,q)=>B.index=q),Rt(()=>{P(),we("pane-remove",{pane:W}),re({removedPane:{...W}})})},re=(L={})=>{!L.addedPane&&!L.removedPane?le():o.value.some($=>$.givenSize!==null||$.min||$.max<100)?Le(L):fe(),u.value&&we("resized")},fe=()=>{const L=100/a.value;let $=0;const W=[],B=[];for(const q of o.value)q.size=Math.max(Math.min(L,q.max),q.min),$-=q.size,q.size>=q.max&&W.push(q.id),q.size<=q.min&&B.push(q.id);$>.1&&De($,W,B)},le=()=>{let L=100;const $=[],W=[];let B=0;for(const oe of o.value)L-=oe.size,oe.givenSize!==null&&B++,oe.size>=oe.max&&$.push(oe.id),oe.size<=oe.min&&W.push(oe.id);let q=100;if(L>.1){for(const oe of o.value)oe.givenSize===null&&(oe.size=Math.max(Math.min(L/(a.value-B),oe.max),oe.min)),q-=oe.size;q>.1&&De(q,$,W)}},Le=({addedPane:L,removedPane:$}={})=>{let W=100/a.value,B=0;const q=[],oe=[];(L?.givenSize??null)!==null&&(W=(100-L.givenSize)/(a.value-1));for(const y of o.value)B-=y.size,y.size>=y.max&&q.push(y.id),y.size<=y.min&&oe.push(y.id);if(!(Math.abs(B)<.1)){for(const y of o.value)L?.givenSize!==null&&L?.id===y.id||(y.size=Math.max(Math.min(W,y.max),y.min)),B-=y.size,y.size>=y.max&&q.push(y.id),y.size<=y.min&&oe.push(y.id);B>.1&&De(B,q,oe)}},De=(L,$,W)=>{let B;L>0?B=L/(a.value-$.length):B=L/(a.value-W.length),o.value.forEach((q,oe)=>{if(L>0&&!$.includes(q.id)){const y=Math.max(Math.min(q.size+B,q.max),q.min),T=y-q.size;L-=T,q.size=y}else if(!W.includes(q.id)){const y=Math.max(Math.min(q.size+B,q.max),q.min),T=y-q.size;L-=T,q.size=y}}),Math.abs(L)>.1&&Rt(()=>{u.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},we=(L,$=void 0,W=!1)=>{const B=$?.index??c.value.activeSplitter??null;n(L,{...$,...B!==null&&{index:B},...W&&B!==null&&{prevPane:o.value[B-(r.firstSplitter?1:0)],nextPane:o.value[B+(r.firstSplitter?0:1)]},panes:o.value.map(q=>({min:q.min,max:q.max,size:q.size}))})};Ke(()=>r.firstSplitter,()=>P()),ir(()=>{X(),P(),re(),we("ready"),u.value=!0}),Hr(()=>u.value=!1);const Ye=()=>{var L;return Rn("div",{ref:l,class:d.value},(L=i.default)==null?void 0:L.call(i))};return Ft("panes",o),Ft("indexedPanes",s),Ft("horizontal",he(()=>r.horizontal)),Ft("requestUpdate",z),Ft("onPaneAdd",O),Ft("onPaneRemove",Z),Ft("onPaneClick",E),(L,$)=>(ee(),Oe(Gc(Ye)))}},nc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,r=ht("requestUpdate"),i=ht("onPaneAdd"),o=ht("horizontal"),s=ht("onPaneRemove"),a=ht("onPaneClick"),l=(t=St())==null?void 0:t.uid,u=ht("indexedPanes"),c=he(()=>u.value[l]),f=ge(null),d=he(()=>{const v=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(v,h.value),p.value)}),p=he(()=>{const v=parseFloat(n.minSize);return isNaN(v)?0:v}),h=he(()=>{const v=parseFloat(n.maxSize);return isNaN(v)?100:v}),_=he(()=>{var v;return`${o.value?"height":"width"}: ${(v=c.value)==null?void 0:v.size}%`});return Ke(()=>d.value,v=>r({uid:l,size:v})),Ke(()=>p.value,v=>r({uid:l,min:v})),Ke(()=>h.value,v=>r({uid:l,max:v})),ir(()=>{i({id:l,el:f.value,min:p.value,max:h.value,givenSize:n.size===void 0?null:d.value,size:d.value})}),Hr(()=>s(l)),(v,b)=>(ee(),me("div",{ref_key:"paneEl",ref:f,class:"splitpanes__pane",onClick:b[0]||(b[0]=w=>F(a)(w,v._.uid)),style:Tn(_.value)},[rt(v.$slots,"default")],4))}},rc=30,Nw={__name:"NSplitPane",props:{storageKey:{type:String,required:!1},stateKey:{type:String,required:!1,default:"nuxt-devtools-panels-state"},leftSize:{type:Number,required:!1},minSize:{type:Number,required:!1},horizontal:{type:Boolean,required:!1}},setup(e){const t=e,n=Sy(t.stateKey,{},{listenToStorageChanges:!1}),r=t.storageKey,i=r?he({get:()=>n.value[r]||t.leftSize||rc,set:o=>{n.value[r]=o}}):ge(t.leftSize||rc);return(o,s)=>(ee(),Oe(F(Dw),{horizontal:e.horizontal,"h-full":"","of-hidden":"",onResize:s[0]||(s[0]=a=>i.value=a[0].size)},{default:Ce(()=>[ie(F(nc),{"h-full":"",class:"of-auto!",size:F(i),"min-size":o.$slots.right?e.minSize||10:100},{default:Ce(()=>[rt(o.$slots,"left")]),_:3},8,["size","min-size"]),o.$slots.right?(ee(),Oe(F(nc),{key:0,relative:"","h-full":"",class:"of-auto!","min-size":e.minSize||10},{default:Ce(()=>[rt(o.$slots,"right")]),_:3},8,["min-size"])):nt("",!0)]),_:3},8,["horizontal"]))}};function Mw(e){const t=[xe(e.method)?.toUpperCase()||"GET",xe(e.baseURL)];for(const n of[e.query||e.params]){const r=xe(n);if(!r)continue;const i={};for(const[o,s]of Object.entries(r))i[xe(o)]=xe(s);t.push(i)}if(e.body){const n=xe(e.body);if(!n)t.push(Mn(n));else if(n instanceof ArrayBuffer)t.push(Mn(Object.fromEntries([...new Uint8Array(n).entries()].map(([r,i])=>[r,i.toString()]))));else if(n instanceof FormData){const r=[];for(const i of n.entries()){const[o,s]=i;r.push([o,s instanceof File?`${s.name}:${s.size}:${s.lastModified}`:s])}t.push(Mn(r))}else if(Ms(n))t.push(Mn(Vt(n)));else try{t.push(Mn(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return t}const dd=ad({name:"createUseFetch",factory(e={}){function t(n,r,i){const[o={},s]=typeof r=="string"?[{},r]:[r,i],a=typeof e=="function"?e(o):e,{server:l,lazy:u,default:c,transform:f,pick:d,watch:p,immediate:h,getCachedData:_,deep:v,dedupe:b,timeout:w,...m}={...typeof e=="function"?{}:a,...o,...typeof e=="function"?a:{}},E=he(()=>xe(n)),S=he(()=>xe(m.key)||"$f"+Mn([s,typeof E.value=="string"?E.value:"",...Mw(m)]));if(!m.baseURL&&typeof E.value=="string"&&E.value[0]==="/"&&E.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const k=Vt({...Qm,...m,cache:typeof m.cache=="boolean"?void 0:m.cache}),x={server:l,lazy:u,default:c,transform:f,pick:d,immediate:h,getCachedData:_,deep:v,dedupe:b,timeout:w,watch:p===!1?[]:[...p||[],k]};return p===!1&&(x._keyTriggersExecute=!1),cd(S,(H,{signal:V})=>(m.$fetch||globalThis.$fetch)(E.value,{signal:V,...k}),x)}return t}}),Vw=dd.__nuxt_factory();dd.__nuxt_factory({lazy:!0,_functionName:"useLazyFetch"});const $w={fixed:"","inset-0":"","h-screen":"","w-screen":"","font-sans":""},jw={class:"mb-8 flex justify-between"},Bw={class:"flex items-center gap-2"},Fw={key:0,class:"flex mt-8"},Hw={key:1,class:"flex flex-col"},Uw={key:3,class:"flex flex-col h-full"},zw={class:"mt-8"},Gw=yt({__name:"app",async setup(e){let t,n;const r=sd(),{data:i,pending:o,error:s}=([t,n]=kp(()=>Vw(`${r.origin}/api/emails`,{default:()=>[]},"$yRE9Gp-rMP")),t=await t,n(),t),a=ge(null);function l(u){a.value=u}return Ke(i,u=>{u.length>0&&!a.value&&(a.value=u[0])},{immediate:!0}),(u,c)=>{const f=x_,d=I_,p=la,h=sf,_=af,v=Ln,b=mo,w=xy,m=Iw,E=Nw;return ee(),me("div",$w,[ie(f),ie(d),ie(E,{"storage-key":"devtools:nuxt-email-renderer",class:"!h-screen p-4","min-size":30,horizontal:!1},{left:Ce(()=>[pe("div",jw,[c[0]||(c[0]=pe("h1",{class:"text-xl font-bold text-gray-900 dark:text-white mb-2"}," Nuxt Email Renderer ",-1)),pe("div",Bw,[ie(p,{icon:"carbon:logo-github",to:"https://github.com/Mokkapps/nuxt-email-renderer",target:"_blank"}),ie(p,{icon:"carbon:earth",to:"https://nuxtemail.com",target:"_blank"})])]),F(o)?(ee(),me("div",Fw,[ie(h,null,{default:Ce(()=>[...c[1]||(c[1]=[at("Loading email templates...",-1)])]),_:1})])):F(s)?(ee(),me("div",Hw,[ie(_,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:Ce(()=>[...c[2]||(c[2]=[at(" Error! ",-1)])]),_:1}),ie(_,{n:"red6 dark:red5"},{default:Ce(()=>[at(Pt(F(s)),1)]),_:1})])):nt("",!0),F(i).length===0?(ee(),Oe(b,{key:2,class:"text-center py-12"},{default:Ce(()=>[ie(v,{icon:"carbon:email",class:"w-16 h-16 text-gray-300 dark:text-gray-600 mx-auto mb-4"}),c[3]||(c[3]=pe("h3",{class:"text-lg font-medium text-gray-900 dark:text-white mb-2"}," No email templates found ",-1)),c[4]||(c[4]=pe("p",{class:"text-gray-500 dark:text-gray-400 mb-6 max-w-sm mx-auto"}," Create your first email template by adding a .vue file to the emails directory. ",-1))]),_:1})):(ee(),me("div",Uw,[ie(w,{"email-templates":F(i),"selected-template":F(a),onSelect:l},null,8,["email-templates","selected-template"]),pe("div",zw,[ie(m,{template:F(a)},null,8,["template"])])]))]),_:1})])}}}),Ww={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error,r=Number(n.statusCode||500),i=r===404,o=n.statusMessage??(i?"Page Not Found":"Internal Server Error"),s=n.message||n.toString(),a=void 0,c=i?Ma(()=>g(()=>import("./RIEECCrm.js"),__vite__mapDeps([101,102,103]),import.meta.url)):Ma(()=>g(()=>import("./zrPBi9jl.js"),__vite__mapDeps([104,102,105]),import.meta.url));return(f,d)=>(ee(),Oe(F(c),wd(yu({status:F(r),statusText:F(o),statusCode:F(r),statusMessage:F(o),description:F(s),stack:F(a)})),null,16))}},qw={key:0},ic={__name:"nuxt-root",setup(e){const t=()=>null,n=Ie(),r=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",r),f=Xt().beforeEach(()=>{c(),f()})}const i=!1;Ft(qu,pg()),n.hooks.callHookWith(c=>c.map(f=>f()),"vue:setup",[]);const o=oa(),s=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function l(c,f,d){const p=n.vueApp.config.errorHandler;if(p&&!p.__nuxt_default)try{p(c,f,d)}catch(h){console.error("[nuxt] Error in `app.config.errorHandler`",h)}}Hc((c,f,d)=>{if(n.hooks.callHook("vue:error",c,f,d)?.catch(p=>console.error("[nuxt] Error in `vue:error` hook",p)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(_g(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>mg(c)),l(c,f,d),!1});const u=!1;return(c,f)=>(ee(),Oe(eh,{onResolve:F(r)},{default:Ce(()=>[F(s)?(ee(),me("div",qw)):F(o)?(ee(),Oe(F(Ww),{key:1,error:F(o)},null,8,["error"])):F(u)?(ee(),Oe(F(t),{key:2,context:F(u)},null,8,["context"])):F(i)?(ee(),Oe(Gc(F(i)),{key:3})):(ee(),Oe(F(Gw),{key:4}))]),_:1},8,["onResolve"]))}};let oc;{let e;oc=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?zh(ic):Uh(ic),i=ng({vueApp:r});async function o(s){await i.callHook("app:error",s),i.payload.error||=ho(s)}o.__nuxt_default=!0,r.config.errorHandler=o,i.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&hl.id&&i.hook("app:suspense:resolve",()=>{document.getElementById(hl.id)?.remove()});try{await og(i,P_)}catch(s){o(s)}try{await i.hooks.callHook("app:created",r),await i.hooks.callHook("app:beforeMount",r),r.mount(Zm),await i.hooks.callHook("app:mounted",r),await Rt()}catch(s){o(s)}return r},e=oc().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{ca as _,pe as a,ie as b,me as c,at as d,M_ as e,Ie as f,tf as g,zs as h,ht as i,ee as o,Pt as t,Kw as u,Ce as w};
|