@roudanio/awesome-comment 0.7.21 → 0.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.
@@ -1,73 +1,113 @@
1
- (function(tn,oe){typeof exports=="object"&&typeof module<"u"?module.exports=oe():typeof define=="function"&&define.amd?define(oe):(tn=typeof globalThis<"u"?globalThis:tn||self,tn.AwesomeComment=oe())})(this,function(){"use strict";/**
1
+ (function(sn,oe){typeof exports=="object"&&typeof module<"u"?module.exports=oe():typeof define=="function"&&define.amd?define(oe):(sn=typeof globalThis<"u"?globalThis:sn||self,sn.AwesomeComment=oe())})(this,function(){"use strict";/**
2
2
  * @vue/shared v3.5.8
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function tn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const oe={},Cn=[],ut=()=>{},vf=()=>!1,Nr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$s=e=>e.startsWith("onUpdate:"),Ne=Object.assign,Ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wf=Object.prototype.hasOwnProperty,ae=(e,t)=>wf.call(e,t),B=Array.isArray,Ln=e=>Pr(e)==="[object Map]",Ao=e=>Pr(e)==="[object Set]",X=e=>typeof e=="function",ke=e=>typeof e=="string",Dt=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",No=e=>(be(e)||X(e))&&X(e.then)&&X(e.catch),Po=Object.prototype.toString,Pr=e=>Po.call(e),kf=e=>Pr(e).slice(8,-1),Ro=e=>Pr(e)==="[object Object]",Ds=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zn=tn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tf=/-(\w)/g,st=Rr(e=>e.replace(Tf,(t,n)=>n?n.toUpperCase():"")),Ef=/\B([A-Z])/g,Ft=Rr(e=>e.replace(Ef,"-$1").toLowerCase()),$r=Rr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Fs=Rr(e=>e?`on${$r(e)}`:""),jt=(e,t)=>!Object.is(e,t),Mr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},$o=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},js=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Mo;const Do=()=>Mo||(Mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dr(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ke(r)?xf(r):Dr(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ke(e)||be(e))return e}const If=/;(?![^(]*\))/g,Sf=/:([^]+)/,Of=/\/\*[^]*?\*\//g;function xf(e){const t={};return e.replace(Of,"").split(If).forEach(n=>{if(n){const r=n.split(Sf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Fr(e){let t="";if(ke(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const r=Fr(e[n]);r&&(t+=r+" ")}else if(be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Cf=tn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Fo(e){return!!e||e===""}const jo=e=>!!(e&&e.__v_isRef===!0),ye=e=>ke(e)?e:e==null?"":B(e)||be(e)&&(e.toString===Po||!X(e.toString))?jo(e)?ye(e.value):JSON.stringify(e,Uo,2):String(e),Uo=(e,t)=>jo(t)?Uo(e,t.value):Ln(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Us(r,s)+" =>"]=i,n),{})}:Ao(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Us(n))}:Dt(t)?Us(t):be(t)&&!B(t)&&!Ro(t)?String(t):t,Us=(e,t="")=>{var n;return Dt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function sn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const oe={},Ln=[],ut=()=>{},Tf=()=>!1,Rr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),js=e=>e.startsWith("onUpdate:"),Pe=Object.assign,Us=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ef=Object.prototype.hasOwnProperty,ae=(e,t)=>Ef.call(e,t),G=Array.isArray,An=e=>$r(e)==="[object Map]",$o=e=>$r(e)==="[object Set]",Z=e=>typeof e=="function",ke=e=>typeof e=="string",jt=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",Mo=e=>(be(e)||Z(e))&&Z(e.then)&&Z(e.catch),Do=Object.prototype.toString,$r=e=>Do.call(e),If=e=>$r(e).slice(8,-1),Fo=e=>$r(e)==="[object Object]",Ws=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Jn=sn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Sf=/-(\w)/g,it=Mr(e=>e.replace(Sf,(t,n)=>n?n.toUpperCase():"")),Of=/\B([A-Z])/g,Ut=Mr(e=>e.replace(Of,"-$1").toLowerCase()),Dr=Mr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hs=Mr(e=>e?`on${Dr(e)}`:""),Wt=(e,t)=>!Object.is(e,t),Fr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},jo=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ks=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Uo;const Wo=()=>Uo||(Uo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function jr(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ke(r)?Af(r):jr(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ke(e)||be(e))return e}const xf=/;(?![^(]*\))/g,Cf=/:([^]+)/,Lf=/\/\*[^]*?\*\//g;function Af(e){const t={};return e.replace(Lf,"").split(xf).forEach(n=>{if(n){const r=n.split(Cf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ur(e){let t="";if(ke(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const r=Ur(e[n]);r&&(t+=r+" ")}else if(be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Nf=sn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ho(e){return!!e||e===""}const Ko=e=>!!(e&&e.__v_isRef===!0),ye=e=>ke(e)?e:e==null?"":G(e)||be(e)&&(e.toString===Do||!Z(e.toString))?Ko(e)?ye(e.value):JSON.stringify(e,Vo,2):String(e),Vo=(e,t)=>Ko(t)?Vo(e,t.value):An(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Vs(r,s)+" =>"]=i,n),{})}:$o(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Vs(n))}:jt(t)?Vs(t):be(t)&&!G(t)&&!Fo(t)?String(t):t,Vs=(e,t="")=>{var n;return jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
6
  * @vue/reactivity v3.5.8
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let je;class Wo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!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,this._active=!1}}}function Ws(e){return new Wo(e)}function Ho(){return je}function Lf(e,t=!1){je&&je.cleanups.push(e)}let de;const Hs=new WeakSet;class Ko{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)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hs.has(this)&&(Hs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||zo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Zo(this),Bo(this);const t=de,n=it;de=this,it=!0;try{return this.fn()}finally{Go(this),de=t,it=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Bs(t);this.deps=this.depsTail=void 0,Zo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zs(this)&&this.run()}get dirty(){return zs(this)}}let Vo=0,Jn;function zo(e){e.flags|=8,e.next=Jn,Jn=e}function Ks(){Vo++}function Vs(){if(--Vo>0)return;let e;for(;Jn;){let t=Jn;for(Jn=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 Bo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Go(e,t=!1){let n,r=e.depsTail,i=r;for(;i;){const s=i.prevDep;i.version===-1?(i===r&&(r=s),Bs(i,t),Af(i)):n=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}e.deps=n,e.depsTail=r}function zs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qn))return;e.globalVersion=qn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!zs(e)){e.flags&=-3;return}const n=de,r=it;de=e,it=!0;try{Bo(e);const i=e.fn(e._value);(t.version===0||jt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{de=n,it=r,Go(e,!0),e.flags&=-3}}function Bs(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),!n.subs)if(n.computed){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Bs(s,!0)}else n.map&&!t&&(n.map.delete(n.key),n.map.size||Qn.delete(n.target))}function Af(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let it=!0;const Xo=[];function Tt(){Xo.push(it),it=!1}function Et(){const e=Xo.pop();it=e===void 0?!0:e}function Zo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=de;de=void 0;try{t()}finally{de=n}}}let qn=0;class Nf{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 Gs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0}track(t){if(!de||!it||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new Nf(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,de.flags&4&&Jo(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=de.depsTail,n.nextDep=void 0,de.depsTail.nextDep=n,de.depsTail=n,de.deps===n&&(de.deps=r)}return n}trigger(t){this.version++,qn++,this.notify(t)}notify(t){Ks();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Vs()}}}function Jo(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Jo(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Qn=new WeakMap,nn=Symbol(""),Ys=Symbol(""),er=Symbol("");function Re(e,t,n){if(it&&de){let r=Qn.get(e);r||Qn.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Gs),i.target=e,i.map=r,i.key=n),i.track()}}function It(e,t,n,r,i,s){const o=Qn.get(e);if(!o){qn++;return}const a=l=>{l&&l.trigger()};if(Ks(),t==="clear")o.forEach(a);else{const l=B(e),u=l&&Ds(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===er||!Dt(d)&&d>=c)&&a(f)})}else switch(n!==void 0&&a(o.get(n)),u&&a(o.get(er)),t){case"add":l?u&&a(o.get("length")):(a(o.get(nn)),Ln(e)&&a(o.get(Ys)));break;case"delete":l||(a(o.get(nn)),Ln(e)&&a(o.get(Ys)));break;case"set":Ln(e)&&a(o.get(nn));break}}Vs()}function Pf(e,t){var n;return(n=Qn.get(e))==null?void 0:n.get(t)}function An(e){const t=ee(e);return t===e?t:(Re(t,"iterate",er),Qe(e)?t:t.map($e))}function jr(e){return Re(e=ee(e),"iterate",er),e}const Rf={__proto__:null,[Symbol.iterator](){return Xs(this,Symbol.iterator,$e)},concat(...e){return An(this).concat(...e.map(t=>B(t)?An(t):t))},entries(){return Xs(this,"entries",e=>(e[1]=$e(e[1]),e))},every(e,t){return St(this,"every",e,t,void 0,arguments)},filter(e,t){return St(this,"filter",e,t,n=>n.map($e),arguments)},find(e,t){return St(this,"find",e,t,$e,arguments)},findIndex(e,t){return St(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return St(this,"findLast",e,t,$e,arguments)},findLastIndex(e,t){return St(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return St(this,"forEach",e,t,void 0,arguments)},includes(...e){return Zs(this,"includes",e)},indexOf(...e){return Zs(this,"indexOf",e)},join(e){return An(this).join(e)},lastIndexOf(...e){return Zs(this,"lastIndexOf",e)},map(e,t){return St(this,"map",e,t,void 0,arguments)},pop(){return tr(this,"pop")},push(...e){return tr(this,"push",e)},reduce(e,...t){return qo(this,"reduce",e,t)},reduceRight(e,...t){return qo(this,"reduceRight",e,t)},shift(){return tr(this,"shift")},some(e,t){return St(this,"some",e,t,void 0,arguments)},splice(...e){return tr(this,"splice",e)},toReversed(){return An(this).toReversed()},toSorted(e){return An(this).toSorted(e)},toSpliced(...e){return An(this).toSpliced(...e)},unshift(...e){return tr(this,"unshift",e)},values(){return Xs(this,"values",$e)}};function Xs(e,t,n){const r=jr(e),i=r[t]();return r!==e&&!Qe(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const $f=Array.prototype;function St(e,t,n,r,i,s){const o=jr(e),a=o!==e&&!Qe(e),l=o[t];if(l!==$f[t]){const f=l.apply(e,s);return a?$e(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,$e(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(o,u,r);return a&&i?i(c):c}function qo(e,t,n,r){const i=jr(e);let s=n;return i!==e&&(Qe(e)?n.length>3&&(s=function(o,a,l){return n.call(this,o,a,l,e)}):s=function(o,a,l){return n.call(this,o,$e(a),l,e)}),i[t](s,...r)}function Zs(e,t,n){const r=ee(e);Re(r,"iterate",er);const i=r[t](...n);return(i===-1||i===!1)&&qs(n[0])?(n[0]=ee(n[0]),r[t](...n)):i}function tr(e,t,n=[]){Tt(),Ks();const r=ee(e)[t].apply(e,n);return Vs(),Et(),r}const Mf=tn("__proto__,__v_isRef,__isVue"),Qo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dt));function Df(e){Dt(e)||(e=String(e));const t=ee(this);return Re(t,"has",e),t.hasOwnProperty(e)}class ea{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?ua:ca:s?la:aa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=B(t);if(!i){let l;if(o&&(l=Rf[n]))return l;if(n==="hasOwnProperty")return Df}const a=Reflect.get(t,n,ve(t)?t:r);return(Dt(n)?Qo.has(n):Mf(n))||(i||Re(t,"get",n),s)?a:ve(a)?o&&Ds(n)?a:a.value:be(a)?i?fa(a):Gr(a):a}}class ta extends ea{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const l=rn(s);if(!Qe(r)&&!rn(r)&&(s=ee(s),r=ee(r)),!B(t)&&ve(s)&&!ve(r))return l?!1:(s.value=r,!0)}const o=B(t)&&Ds(n)?Number(n)<t.length:ae(t,n),a=Reflect.set(t,n,r,ve(t)?t:i);return t===ee(i)&&(o?jt(r,s)&&It(t,"set",n,r):It(t,"add",n,r)),a}deleteProperty(t,n){const r=ae(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&It(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Dt(n)||!Qo.has(n))&&Re(t,"has",n),r}ownKeys(t){return Re(t,"iterate",B(t)?"length":nn),Reflect.ownKeys(t)}}class na extends ea{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ff=new ta,jf=new na,Uf=new ta(!0),Wf=new na(!0),Js=e=>e,Ur=e=>Reflect.getPrototypeOf(e);function Wr(e,t,n=!1,r=!1){e=e.__v_raw;const i=ee(e),s=ee(t);n||(jt(t,s)&&Re(i,"get",t),Re(i,"get",s));const{has:o}=Ur(i),a=r?Js:n?ei:$e;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function Hr(e,t=!1){const n=this.__v_raw,r=ee(n),i=ee(e);return t||(jt(e,i)&&Re(r,"has",e),Re(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Kr(e,t=!1){return e=e.__v_raw,!t&&Re(ee(e),"iterate",nn),Reflect.get(e,"size",e)}function ra(e,t=!1){!t&&!Qe(e)&&!rn(e)&&(e=ee(e));const n=ee(this);return Ur(n).has.call(n,e)||(n.add(e),It(n,"add",e,e)),this}function sa(e,t,n=!1){!n&&!Qe(t)&&!rn(t)&&(t=ee(t));const r=ee(this),{has:i,get:s}=Ur(r);let o=i.call(r,e);o||(e=ee(e),o=i.call(r,e));const a=s.call(r,e);return r.set(e,t),o?jt(t,a)&&It(r,"set",e,t):It(r,"add",e,t),this}function ia(e){const t=ee(this),{has:n,get:r}=Ur(t);let i=n.call(t,e);i||(e=ee(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&It(t,"delete",e,void 0),s}function oa(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&It(e,"clear",void 0,void 0),n}function Vr(e,t){return function(r,i){const s=this,o=s.__v_raw,a=ee(o),l=t?Js:e?ei:$e;return!e&&Re(a,"iterate",nn),o.forEach((u,c)=>r.call(i,l(u),l(c),s))}}function zr(e,t,n){return function(...r){const i=this.__v_raw,s=ee(i),o=Ln(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),c=n?Js:t?ei:$e;return!t&&Re(s,"iterate",l?Ys:nn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Ut(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hf(){const e={get(s){return Wr(this,s)},get size(){return Kr(this)},has:Hr,add:ra,set:sa,delete:ia,clear:oa,forEach:Vr(!1,!1)},t={get(s){return Wr(this,s,!1,!0)},get size(){return Kr(this)},has:Hr,add(s){return ra.call(this,s,!0)},set(s,o){return sa.call(this,s,o,!0)},delete:ia,clear:oa,forEach:Vr(!1,!0)},n={get(s){return Wr(this,s,!0)},get size(){return Kr(this,!0)},has(s){return Hr.call(this,s,!0)},add:Ut("add"),set:Ut("set"),delete:Ut("delete"),clear:Ut("clear"),forEach:Vr(!0,!1)},r={get(s){return Wr(this,s,!0,!0)},get size(){return Kr(this,!0)},has(s){return Hr.call(this,s,!0)},add:Ut("add"),set:Ut("set"),delete:Ut("delete"),clear:Ut("clear"),forEach:Vr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=zr(s,!1,!1),n[s]=zr(s,!0,!1),t[s]=zr(s,!1,!0),r[s]=zr(s,!0,!0)}),[e,n,t,r]}const[Kf,Vf,zf,Bf]=Hf();function Br(e,t){const n=t?e?Bf:zf:e?Vf:Kf;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ae(n,i)&&i in r?n:r,i,s)}const Gf={get:Br(!1,!1)},Yf={get:Br(!1,!0)},Xf={get:Br(!0,!1)},Zf={get:Br(!0,!0)},aa=new WeakMap,la=new WeakMap,ca=new WeakMap,ua=new WeakMap;function Jf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qf(e){return e.__v_skip||!Object.isExtensible(e)?0:Jf(kf(e))}function Gr(e){return rn(e)?e:Yr(e,!1,Ff,Gf,aa)}function Qf(e){return Yr(e,!1,Uf,Yf,la)}function fa(e){return Yr(e,!0,jf,Xf,ca)}function m0(e){return Yr(e,!0,Wf,Zf,ua)}function Yr(e,t,n,r,i){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=qf(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function Wt(e){return rn(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function rn(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function qs(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function Qs(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&$o(e,"__v_skip",!0),e}const $e=e=>be(e)?Gr(e):e,ei=e=>be(e)?fa(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function te(e){return ha(e,!1)}function da(e){return ha(e,!0)}function ha(e,t){return ve(e)?e:new ed(e,t)}class ed{constructor(t,n){this.dep=new Gs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ee(t),this._value=n?t:$e(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Qe(t)||rn(t);t=r?t:ee(t),jt(t,n)&&(this._rawValue=t,this._value=r?t:$e(t),this.dep.trigger())}}function J(e){return ve(e)?e.value:e}const td={get:(e,t,n)=>t==="__v_raw"?e:J(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ve(i)&&!ve(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function pa(e){return Wt(e)?e:new Proxy(e,td)}function nd(e){const t=B(e)?new Array(e.length):{};for(const n in e)t[n]=sd(e,n);return t}class rd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Pf(ee(this._object),this._key)}}function sd(e,t,n){const r=e[t];return ve(r)?r:new rd(e,t,n)}class id{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qn-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&de!==this)return zo(this),!0}get value(){const t=this.dep.track();return Yo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function od(e,t,n=!1){let r,i;return X(e)?r=e:(r=e.get,i=e.set),new id(r,i,n)}const Xr={},Zr=new WeakMap;let sn;function ad(e,t=!1,n=sn){if(n){let r=Zr.get(n);r||Zr.set(n,r=[]),r.push(e)}}function ld(e,t,n=oe){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=n,u=_=>i?_:Qe(_)||i===!1||i===0?Ot(_,1):Ot(_);let c,f,d,m,v=!1,E=!1;if(ve(e)?(f=()=>e.value,v=Qe(e)):Wt(e)?(f=()=>u(e),v=!0):B(e)?(E=!0,v=e.some(_=>Wt(_)||Qe(_)),f=()=>e.map(_=>{if(ve(_))return _.value;if(Wt(_))return u(_);if(X(_))return l?l(_,2):_()})):X(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Tt();try{d()}finally{Et()}}const _=sn;sn=c;try{return l?l(e,3,[m]):e(m)}finally{sn=_}}:f=ut,t&&i){const _=f,O=i===!0?1/0:i;f=()=>Ot(_(),O)}const k=Ho(),S=()=>{c.stop(),k&&Ms(k.effects,c)};if(s&&t){const _=t;t=(...O)=>{_(...O),S()}}let L=E?new Array(e.length).fill(Xr):Xr;const y=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const O=c.run();if(i||v||(E?O.some((C,A)=>jt(C,L[A])):jt(O,L))){d&&d();const C=sn;sn=c;try{const A=[O,L===Xr?void 0:E&&L[0]===Xr?[]:L,m];l?l(t,3,A):t(...A),L=O}finally{sn=C}}}else c.run()};return a&&a(y),c=new Ko(f),c.scheduler=o?()=>o(y,!1):y,m=_=>ad(_,!1,c),d=c.onStop=()=>{const _=Zr.get(c);if(_){if(l)l(_,4);else for(const O of _)O();Zr.delete(c)}},t?r?y(!0):L=c.run():o?o(y.bind(null,!0),!0):c.run(),S.pause=c.pause.bind(c),S.resume=c.resume.bind(c),S.stop=S,S}function Ot(e,t=1/0,n){if(t<=0||!be(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ve(e))Ot(e.value,t,n);else if(B(e))for(let r=0;r<e.length;r++)Ot(e[r],t,n);else if(Ao(e)||Ln(e))e.forEach(r=>{Ot(r,t,n)});else if(Ro(e)){for(const r in e)Ot(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ot(e[r],t,n)}return e}/**
9
+ **/let je;class zo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!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,this._active=!1}}}function zs(e){return new zo(e)}function Bo(){return je}function Pf(e,t=!1){je&&je.cleanups.push(e)}let de;const Bs=new WeakSet;class Go{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)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Bs.has(this)&&(Bs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ea(this),Zo(this);const t=de,n=ot;de=this,ot=!0;try{return this.fn()}finally{Jo(this),de=t,ot=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zs(t);this.deps=this.depsTail=void 0,ea(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Bs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xs(this)&&this.run()}get dirty(){return Xs(this)}}let Yo=0,qn;function Xo(e){e.flags|=8,e.next=qn,qn=e}function Gs(){Yo++}function Ys(){if(--Yo>0)return;let e;for(;qn;){let t=qn;for(qn=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 Zo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Jo(e,t=!1){let n,r=e.depsTail,i=r;for(;i;){const s=i.prevDep;i.version===-1?(i===r&&(r=s),Zs(i,t),Rf(i)):n=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}e.deps=n,e.depsTail=r}function Xs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qn))return;e.globalVersion=Qn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Xs(e)){e.flags&=-3;return}const n=de,r=ot;de=e,ot=!0;try{Zo(e);const i=e.fn(e._value);(t.version===0||Wt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{de=n,ot=r,Jo(e,!0),e.flags&=-3}}function Zs(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),!n.subs)if(n.computed){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Zs(s,!0)}else n.map&&!t&&(n.map.delete(n.key),n.map.size||er.delete(n.target))}function Rf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ot=!0;const Qo=[];function It(){Qo.push(ot),ot=!1}function St(){const e=Qo.pop();ot=e===void 0?!0:e}function ea(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=de;de=void 0;try{t()}finally{de=n}}}let Qn=0;class $f{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 Js{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.target=void 0,this.map=void 0,this.key=void 0}track(t){if(!de||!ot||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new $f(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,de.flags&4&&ta(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=de.depsTail,n.nextDep=void 0,de.depsTail.nextDep=n,de.depsTail=n,de.deps===n&&(de.deps=r)}return n}trigger(t){this.version++,Qn++,this.notify(t)}notify(t){Gs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ys()}}}function ta(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ta(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const er=new WeakMap,on=Symbol(""),qs=Symbol(""),tr=Symbol("");function $e(e,t,n){if(ot&&de){let r=er.get(e);r||er.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Js),i.target=e,i.map=r,i.key=n),i.track()}}function Ot(e,t,n,r,i,s){const o=er.get(e);if(!o){Qn++;return}const a=l=>{l&&l.trigger()};if(Gs(),t==="clear")o.forEach(a);else{const l=G(e),u=l&&Ws(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===tr||!jt(d)&&d>=c)&&a(f)})}else switch(n!==void 0&&a(o.get(n)),u&&a(o.get(tr)),t){case"add":l?u&&a(o.get("length")):(a(o.get(on)),An(e)&&a(o.get(qs)));break;case"delete":l||(a(o.get(on)),An(e)&&a(o.get(qs)));break;case"set":An(e)&&a(o.get(on));break}}Ys()}function Mf(e,t){var n;return(n=er.get(e))==null?void 0:n.get(t)}function Nn(e){const t=ne(e);return t===e?t:($e(t,"iterate",tr),et(e)?t:t.map(Me))}function Wr(e){return $e(e=ne(e),"iterate",tr),e}const Df={__proto__:null,[Symbol.iterator](){return Qs(this,Symbol.iterator,Me)},concat(...e){return Nn(this).concat(...e.map(t=>G(t)?Nn(t):t))},entries(){return Qs(this,"entries",e=>(e[1]=Me(e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,n=>n.map(Me),arguments)},find(e,t){return xt(this,"find",e,t,Me,arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,Me,arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ei(this,"includes",e)},indexOf(...e){return ei(this,"indexOf",e)},join(e){return Nn(this).join(e)},lastIndexOf(...e){return ei(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return nr(this,"pop")},push(...e){return nr(this,"push",e)},reduce(e,...t){return na(this,"reduce",e,t)},reduceRight(e,...t){return na(this,"reduceRight",e,t)},shift(){return nr(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return nr(this,"splice",e)},toReversed(){return Nn(this).toReversed()},toSorted(e){return Nn(this).toSorted(e)},toSpliced(...e){return Nn(this).toSpliced(...e)},unshift(...e){return nr(this,"unshift",e)},values(){return Qs(this,"values",Me)}};function Qs(e,t,n){const r=Wr(e),i=r[t]();return r!==e&&!et(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const Ff=Array.prototype;function xt(e,t,n,r,i,s){const o=Wr(e),a=o!==e&&!et(e),l=o[t];if(l!==Ff[t]){const f=l.apply(e,s);return a?Me(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Me(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(o,u,r);return a&&i?i(c):c}function na(e,t,n,r){const i=Wr(e);let s=n;return i!==e&&(et(e)?n.length>3&&(s=function(o,a,l){return n.call(this,o,a,l,e)}):s=function(o,a,l){return n.call(this,o,Me(a),l,e)}),i[t](s,...r)}function ei(e,t,n){const r=ne(e);$e(r,"iterate",tr);const i=r[t](...n);return(i===-1||i===!1)&&ni(n[0])?(n[0]=ne(n[0]),r[t](...n)):i}function nr(e,t,n=[]){It(),Gs();const r=ne(e)[t].apply(e,n);return Ys(),St(),r}const jf=sn("__proto__,__v_isRef,__isVue"),ra=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt));function Uf(e){jt(e)||(e=String(e));const t=ne(this);return $e(t,"has",e),t.hasOwnProperty(e)}class sa{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?pa:ha:s?da:fa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=G(t);if(!i){let l;if(o&&(l=Df[n]))return l;if(n==="hasOwnProperty")return Uf}const a=Reflect.get(t,n,ve(t)?t:r);return(jt(n)?ra.has(n):jf(n))||(i||$e(t,"get",n),s)?a:ve(a)?o&&Ws(n)?a:a.value:be(a)?i?ma(a):Xr(a):a}}class ia extends sa{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const l=an(s);if(!et(r)&&!an(r)&&(s=ne(s),r=ne(r)),!G(t)&&ve(s)&&!ve(r))return l?!1:(s.value=r,!0)}const o=G(t)&&Ws(n)?Number(n)<t.length:ae(t,n),a=Reflect.set(t,n,r,ve(t)?t:i);return t===ne(i)&&(o?Wt(r,s)&&Ot(t,"set",n,r):Ot(t,"add",n,r)),a}deleteProperty(t,n){const r=ae(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Ot(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!jt(n)||!ra.has(n))&&$e(t,"has",n),r}ownKeys(t){return $e(t,"iterate",G(t)?"length":on),Reflect.ownKeys(t)}}class oa extends sa{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Wf=new ia,Hf=new oa,Kf=new ia(!0),Vf=new oa(!0),ti=e=>e,Hr=e=>Reflect.getPrototypeOf(e);function Kr(e,t,n=!1,r=!1){e=e.__v_raw;const i=ne(e),s=ne(t);n||(Wt(t,s)&&$e(i,"get",t),$e(i,"get",s));const{has:o}=Hr(i),a=r?ti:n?si:Me;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function Vr(e,t=!1){const n=this.__v_raw,r=ne(n),i=ne(e);return t||(Wt(e,i)&&$e(r,"has",e),$e(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function zr(e,t=!1){return e=e.__v_raw,!t&&$e(ne(e),"iterate",on),Reflect.get(e,"size",e)}function aa(e,t=!1){!t&&!et(e)&&!an(e)&&(e=ne(e));const n=ne(this);return Hr(n).has.call(n,e)||(n.add(e),Ot(n,"add",e,e)),this}function la(e,t,n=!1){!n&&!et(t)&&!an(t)&&(t=ne(t));const r=ne(this),{has:i,get:s}=Hr(r);let o=i.call(r,e);o||(e=ne(e),o=i.call(r,e));const a=s.call(r,e);return r.set(e,t),o?Wt(t,a)&&Ot(r,"set",e,t):Ot(r,"add",e,t),this}function ca(e){const t=ne(this),{has:n,get:r}=Hr(t);let i=n.call(t,e);i||(e=ne(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&Ot(t,"delete",e,void 0),s}function ua(){const e=ne(this),t=e.size!==0,n=e.clear();return t&&Ot(e,"clear",void 0,void 0),n}function Br(e,t){return function(r,i){const s=this,o=s.__v_raw,a=ne(o),l=t?ti:e?si:Me;return!e&&$e(a,"iterate",on),o.forEach((u,c)=>r.call(i,l(u),l(c),s))}}function Gr(e,t,n){return function(...r){const i=this.__v_raw,s=ne(i),o=An(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),c=n?ti:t?si:Me;return!t&&$e(s,"iterate",l?qs:on),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Ht(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zf(){const e={get(s){return Kr(this,s)},get size(){return zr(this)},has:Vr,add:aa,set:la,delete:ca,clear:ua,forEach:Br(!1,!1)},t={get(s){return Kr(this,s,!1,!0)},get size(){return zr(this)},has:Vr,add(s){return aa.call(this,s,!0)},set(s,o){return la.call(this,s,o,!0)},delete:ca,clear:ua,forEach:Br(!1,!0)},n={get(s){return Kr(this,s,!0)},get size(){return zr(this,!0)},has(s){return Vr.call(this,s,!0)},add:Ht("add"),set:Ht("set"),delete:Ht("delete"),clear:Ht("clear"),forEach:Br(!0,!1)},r={get(s){return Kr(this,s,!0,!0)},get size(){return zr(this,!0)},has(s){return Vr.call(this,s,!0)},add:Ht("add"),set:Ht("set"),delete:Ht("delete"),clear:Ht("clear"),forEach:Br(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Gr(s,!1,!1),n[s]=Gr(s,!0,!1),t[s]=Gr(s,!1,!0),r[s]=Gr(s,!0,!0)}),[e,n,t,r]}const[Bf,Gf,Yf,Xf]=zf();function Yr(e,t){const n=t?e?Xf:Yf:e?Gf:Bf;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ae(n,i)&&i in r?n:r,i,s)}const Zf={get:Yr(!1,!1)},Jf={get:Yr(!1,!0)},qf={get:Yr(!0,!1)},Qf={get:Yr(!0,!0)},fa=new WeakMap,da=new WeakMap,ha=new WeakMap,pa=new WeakMap;function ed(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function td(e){return e.__v_skip||!Object.isExtensible(e)?0:ed(If(e))}function Xr(e){return an(e)?e:Zr(e,!1,Wf,Zf,fa)}function nd(e){return Zr(e,!1,Kf,Jf,da)}function ma(e){return Zr(e,!0,Hf,qf,ha)}function Pw(e){return Zr(e,!0,Vf,Qf,pa)}function Zr(e,t,n,r,i){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=td(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function Kt(e){return an(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function an(e){return!!(e&&e.__v_isReadonly)}function et(e){return!!(e&&e.__v_isShallow)}function ni(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function ri(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&jo(e,"__v_skip",!0),e}const Me=e=>be(e)?Xr(e):e,si=e=>be(e)?ma(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function re(e){return _a(e,!1)}function ga(e){return _a(e,!0)}function _a(e,t){return ve(e)?e:new rd(e,t)}class rd{constructor(t,n){this.dep=new Js,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:Me(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||et(t)||an(t);t=r?t:ne(t),Wt(t,n)&&(this._rawValue=t,this._value=r?t:Me(t),this.dep.trigger())}}function z(e){return ve(e)?e.value:e}const sd={get:(e,t,n)=>t==="__v_raw"?e:z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ve(i)&&!ve(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function ba(e){return Kt(e)?e:new Proxy(e,sd)}function id(e){const t=G(e)?new Array(e.length):{};for(const n in e)t[n]=ad(e,n);return t}class od{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Mf(ne(this._object),this._key)}}function ad(e,t,n){const r=e[t];return ve(r)?r:new od(e,t,n)}class ld{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Js(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qn-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&de!==this)return Xo(this),!0}get value(){const t=this.dep.track();return qo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cd(e,t,n=!1){let r,i;return Z(e)?r=e:(r=e.get,i=e.set),new ld(r,i,n)}const Jr={},qr=new WeakMap;let ln;function ud(e,t=!1,n=ln){if(n){let r=qr.get(n);r||qr.set(n,r=[]),r.push(e)}}function fd(e,t,n=oe){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=n,u=g=>i?g:et(g)||i===!1||i===0?Ct(g,1):Ct(g);let c,f,d,_,v=!1,S=!1;if(ve(e)?(f=()=>e.value,v=et(e)):Kt(e)?(f=()=>u(e),v=!0):G(e)?(S=!0,v=e.some(g=>Kt(g)||et(g)),f=()=>e.map(g=>{if(ve(g))return g.value;if(Kt(g))return u(g);if(Z(g))return l?l(g,2):g()})):Z(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){It();try{d()}finally{St()}}const g=ln;ln=c;try{return l?l(e,3,[_]):e(_)}finally{ln=g}}:f=ut,t&&i){const g=f,O=i===!0?1/0:i;f=()=>Ct(g(),O)}const T=Bo(),E=()=>{c.stop(),T&&Us(T.effects,c)};if(s&&t){const g=t;t=(...O)=>{g(...O),E()}}let L=S?new Array(e.length).fill(Jr):Jr;const y=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const O=c.run();if(i||v||(S?O.some((C,A)=>Wt(C,L[A])):Wt(O,L))){d&&d();const C=ln;ln=c;try{const A=[O,L===Jr?void 0:S&&L[0]===Jr?[]:L,_];l?l(t,3,A):t(...A),L=O}finally{ln=C}}}else c.run()};return a&&a(y),c=new Go(f),c.scheduler=o?()=>o(y,!1):y,_=g=>ud(g,!1,c),d=c.onStop=()=>{const g=qr.get(c);if(g){if(l)l(g,4);else for(const O of g)O();qr.delete(c)}},t?r?y(!0):L=c.run():o?o(y.bind(null,!0),!0):c.run(),E.pause=c.pause.bind(c),E.resume=c.resume.bind(c),E.stop=E,E}function Ct(e,t=1/0,n){if(t<=0||!be(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ve(e))Ct(e.value,t,n);else if(G(e))for(let r=0;r<e.length;r++)Ct(e[r],t,n);else if($o(e)||An(e))e.forEach(r=>{Ct(r,t,n)});else if(Fo(e)){for(const r in e)Ct(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ct(e[r],t,n)}return e}/**
10
10
  * @vue/runtime-core v3.5.8
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/const nr=[];let ti=!1;function g0(e,...t){if(ti)return;ti=!0,Tt();const n=nr.length?nr[nr.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=cd();if(r)Nn(r,n,11,[e+t.map(s=>{var o,a;return(a=(o=s.toString)==null?void 0:o.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,i.map(({vnode:s})=>`at <${cl(n,s.type)}>`).join(`
13
+ **/const rr=[];let ii=!1;function Rw(e,...t){if(ii)return;ii=!0,It();const n=rr.length?rr[rr.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=dd();if(r)Pn(r,n,11,[e+t.map(s=>{var o,a;return(a=(o=s.toString)==null?void 0:o.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,i.map(({vnode:s})=>`at <${hl(n,s.type)}>`).join(`
14
14
  `),i]);else{const s=[`[Vue warn]: ${e}`,...t];i.length&&s.push(`
15
- `,...ud(i)),console.warn(...s)}Et(),ti=!1}function cd(){let e=nr[nr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function ud(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
16
- `],...fd(n))}),t}function fd({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${cl(e.component,e.type,r)}`,s=">"+n;return e.props?[i,...dd(e.props),s]:[i+s]}function dd(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...ma(r,e[r]))}),n.length>3&&t.push(" ..."),t}function ma(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ve(t)?(t=ma(e,ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):X(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),n?t:[`${e}=`,t])}function Nn(e,t,n,r){try{return r?e(...r):e()}catch(i){Jr(i,t,n)}}function ft(e,t,n,r){if(X(e)){const i=Nn(e,t,n,r);return i&&No(i)&&i.catch(s=>{Jr(s,t,n)}),i}if(B(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ft(e[s],t,n,r));return i}}function Jr(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||oe;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(s){Tt(),Nn(s,null,10,[e,l,u]),Et();return}}hd(e,n,i,r,o)}function hd(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let rr=!1,ni=!1;const Ue=[];let dt=0;const Pn=[];let Ht=null,Rn=0;const ga=Promise.resolve();let ri=null;function _a(e){const t=ri||ga;return e?t.then(this?e.bind(this):e):t}function pd(e){let t=rr?dt+1:0,n=Ue.length;for(;t<n;){const r=t+n>>>1,i=Ue[r],s=sr(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function si(e){if(!(e.flags&1)){const t=sr(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=sr(n)?Ue.push(e):Ue.splice(pd(t),0,e),e.flags|=1,ba()}}function ba(){!rr&&!ni&&(ni=!0,ri=ga.then(wa))}function md(e){B(e)?Pn.push(...e):Ht&&e.id===-1?Ht.splice(Rn+1,0,e):e.flags&1||(Pn.push(e),e.flags|=1),ba()}function ya(e,t,n=rr?dt+1:0){for(;n<Ue.length;n++){const r=Ue[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ue.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function va(e){if(Pn.length){const t=[...new Set(Pn)].sort((n,r)=>sr(n)-sr(r));if(Pn.length=0,Ht){Ht.push(...t);return}for(Ht=t,Rn=0;Rn<Ht.length;Rn++){const n=Ht[Rn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ht=null,Rn=0}}const sr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function wa(e){ni=!1,rr=!0;try{for(dt=0;dt<Ue.length;dt++){const t=Ue[dt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Nn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;dt<Ue.length;dt++){const t=Ue[dt];t&&(t.flags&=-2)}dt=0,Ue.length=0,va(),rr=!1,ri=null,(Ue.length||Pn.length)&&wa()}}let We=null,ka=null;function qr(e){const t=We;return We=e,ka=e&&e.type.__scopeId||null,t}function gd(e,t=We,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&el(-1);const s=qr(t);let o;try{o=e(...i)}finally{qr(s),r._d&&el(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function _d(e,t){if(We===null)return e;const n=os(We),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,l=oe]=t[i];s&&(X(s)&&(s={mounted:s,updated:s}),s.deep&&Ot(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function on(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];s&&(a.oldValue=s[o].value);let l=a.dir[r];l&&(Tt(),ft(l,n,8,[e.el,a,e,t]),Et())}}const bd=Symbol("_vte"),yd=e=>e.__isTeleport;function ii(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ii(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function an(e,t){return X(e)?Ne({name:e.name},t,{setup:e}):e}function Ta(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function oi(e,t,n,r,i=!1){if(B(e)){e.forEach((v,E)=>oi(v,t&&(B(t)?t[E]:t),n,r,i));return}if(ir(r)&&!i)return;const s=r.shapeFlag&4?os(r.component):r.el,o=i?null:s,{i:a,r:l}=e,u=t&&t.r,c=a.refs===oe?a.refs={}:a.refs,f=a.setupState,d=ee(f),m=f===oe?()=>!1:v=>ae(d,v);if(u!=null&&u!==l&&(ke(u)?(c[u]=null,m(u)&&(f[u]=null)):ve(u)&&(u.value=null)),X(l))Nn(l,a,12,[o,c]);else{const v=ke(l),E=ve(l);if(v||E){const k=()=>{if(e.f){const S=v?m(l)?f[l]:c[l]:l.value;i?B(S)&&Ms(S,s):B(S)?S.includes(s)||S.push(s):v?(c[l]=[s],m(l)&&(f[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else v?(c[l]=o,m(l)&&(f[l]=o)):E&&(l.value=o,e.k&&(c[e.k]=o))};o?(k.id=-1,Ye(k,n)):k()}}}const ir=e=>!!e.type.__asyncLoader,Ea=e=>e.type.__isKeepAlive;function vd(e,t){Ia(e,"a",t)}function wd(e,t){Ia(e,"da",t)}function Ia(e,t,n=xe){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qr(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Ea(i.parent.vnode)&&kd(r,t,n,i),i=i.parent}}function kd(e,t,n,r){const i=Qr(t,e,r,!0);ai(()=>{Ms(r[t],i)},n)}function Qr(e,t,n=xe,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{Tt();const a=hr(n),l=ft(t,n,e,o);return a(),Et(),l});return r?i.unshift(s):i.push(s),s}}const xt=e=>(t,n=xe)=>{(!is||e==="sp")&&Qr(e,(...r)=>t(...r),n)},Sa=xt("bm"),es=xt("m"),Td=xt("bu"),Ed=xt("u"),Oa=xt("bum"),ai=xt("um"),Id=xt("sp"),Sd=xt("rtg"),Od=xt("rtc");function xd(e,t=xe){Qr("ec",e,t)}const Cd="components";function Ld(e,t){return Nd(Cd,e,!0,t)||e}const Ad=Symbol.for("v-ndc");function Nd(e,t,n=!0,r=!1){const i=We||xe;if(i){const s=i.type;{const a=ll(s,!1);if(a&&(a===t||a===st(t)||a===$r(st(t))))return s}const o=xa(i[e]||s[e],t)||xa(i.appContext[e],t);return!o&&r?s:o}}function xa(e,t){return e&&(e[t]||e[st(t)]||e[$r(st(t))])}function Ca(e,t,n,r){let i;const s=n,o=B(e);if(o||ke(e)){const a=o&&Wt(e);let l=!1;a&&(l=!Qe(e),e=jr(e)),i=new Array(e.length);for(let u=0,c=e.length;u<c;u++)i[u]=t(l?$e(e[u]):e[u],u,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,s)}else if(be(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,s));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,s)}}else i=[];return i}const li=e=>e?sl(e)?os(e):li(e.parent):null,or=Ne(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=>li(e.parent),$root:e=>li(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>fi(e),$forceUpdate:e=>e.f||(e.f=()=>{si(e.update)}),$nextTick:e=>e.n||(e.n=_a.bind(e.proxy)),$watch:e=>th.bind(e)}),ci=(e,t)=>e!==oe&&!e.__isScriptSetup&&ae(e,t),Pd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ci(r,t))return o[t]=1,r[t];if(i!==oe&&ae(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&ae(u,t))return o[t]=3,s[t];if(n!==oe&&ae(n,t))return o[t]=4,n[t];ui&&(o[t]=0)}}const c=or[t];let f,d;if(c)return t==="$attrs"&&Re(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==oe&&ae(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,ae(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ci(i,t)?(i[t]=n,!0):r!==oe&&ae(r,t)?(r[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==oe&&ae(e,o)||ci(t,o)||(a=s[0])&&ae(a,o)||ae(r,o)||ae(or,o)||ae(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function La(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ui=!0;function Rd(e){const t=fi(e),n=e.proxy,r=e.ctx;ui=!1,t.beforeCreate&&Aa(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:m,updated:v,activated:E,deactivated:k,beforeDestroy:S,beforeUnmount:L,destroyed:y,unmounted:_,render:O,renderTracked:C,renderTriggered:A,errorCaptured:N,serverPrefetch:P,expose:K,inheritAttrs:re,components:G,directives:he,filters:lt}=t;if(u&&$d(u,r,null),o)for(const Z in o){const ie=o[Z];X(ie)&&(r[Z]=ie.bind(n))}if(i){const Z=i.call(n,n);be(Z)&&(e.data=Gr(Z))}if(ui=!0,s)for(const Z in s){const ie=s[Z],Je=X(ie)?ie.bind(n,n):X(ie.get)?ie.get.bind(n,n):ut,wt=!X(ie)&&X(ie.set)?ie.set.bind(n):ut,Se=Ke({get:Je,set:wt});Object.defineProperty(r,Z,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Le=>Se.value=Le})}if(a)for(const Z in a)Na(a[Z],r,n,Z);if(l){const Z=X(l)?l.call(n):l;Reflect.ownKeys(Z).forEach(ie=>{Wd(ie,Z[ie])})}c&&Aa(c,e,"c");function se(Z,ie){B(ie)?ie.forEach(Je=>Z(Je.bind(n))):ie&&Z(ie.bind(n))}if(se(Sa,f),se(es,d),se(Td,m),se(Ed,v),se(vd,E),se(wd,k),se(xd,N),se(Od,C),se(Sd,A),se(Oa,L),se(ai,_),se(Id,P),B(K))if(K.length){const Z=e.exposed||(e.exposed={});K.forEach(ie=>{Object.defineProperty(Z,ie,{get:()=>n[ie],set:Je=>n[ie]=Je})})}else e.exposed||(e.exposed={});O&&e.render===ut&&(e.render=O),re!=null&&(e.inheritAttrs=re),G&&(e.components=G),he&&(e.directives=he),P&&Ta(e)}function $d(e,t,n=ut){B(e)&&(e=di(e));for(const r in e){const i=e[r];let s;be(i)?"default"in i?s=Ge(i.from||r,i.default,!0):s=Ge(i.from||r):s=Ge(i),ve(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function Aa(e,t,n){ft(B(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Na(e,t,n,r){let i=r.includes(".")?Za(n,r):()=>n[r];if(ke(e)){const s=t[e];X(s)&&un(i,s)}else if(X(e))un(i,e.bind(n));else if(be(e))if(B(e))e.forEach(s=>Na(s,t,n,r));else{const s=X(e.handler)?e.handler.bind(n):t[e.handler];X(s)&&un(i,s,e)}}function fi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>ts(l,u,o,!0)),ts(l,t,o)),be(t)&&s.set(t,l),l}function ts(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&ts(e,s,n,!0),i&&i.forEach(o=>ts(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Md[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Md={data:Pa,props:Ra,emits:Ra,methods:ar,computed:ar,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:ar,directives:ar,watch:Fd,provide:Pa,inject:Dd};function Pa(e,t){return t?e?function(){return Ne(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Dd(e,t){return ar(di(e),di(t))}function di(e){if(B(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function He(e,t){return e?[...new Set([].concat(e,t))]:t}function ar(e,t){return e?Ne(Object.create(null),e,t):t}function Ra(e,t){return e?B(e)&&B(t)?[...new Set([...e,...t])]:Ne(Object.create(null),La(e),La(t??{})):t}function Fd(e,t){if(!e)return t;if(!t)return e;const n=Ne(Object.create(null),e);for(const r in t)n[r]=He(e[r],t[r]);return n}function $a(){return{app:null,config:{isNativeTag:vf,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 jd=0;function Ud(e,t){return function(r,i=null){X(r)||(r=Ne({},r)),i!=null&&!be(i)&&(i=null);const s=$a(),o=new WeakSet,a=[];let l=!1;const u=s.app={_uid:jd++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Th,get config(){return s.config},set config(c){},use(c,...f){return o.has(c)||(c&&X(c.install)?(o.add(c),c.install(u,...f)):X(c)&&(o.add(c),c(u,...f))),u},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,f){return f?(s.components[c]=f,u):s.components[c]},directive(c,f){return f?(s.directives[c]=f,u):s.directives[c]},mount(c,f,d){if(!l){const m=u._ceVNode||Me(r,i);return m.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(m,c):e(m,c,d),l=!0,u._container=c,c.__vue_app__=u,os(m.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ft(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return s.provides[c]=f,u},runWithContext(c){const f=ln;ln=u;try{return c()}finally{ln=f}}};return u}}let ln=null;function Wd(e,t){if(xe){let n=xe.provides;const r=xe.parent&&xe.parent.provides;r===n&&(n=xe.provides=Object.create(r)),n[e]=t}}function Ge(e,t,n=!1){const r=xe||We;if(r||ln){const i=ln?ln._context.provides:r?r.parent==null?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&&X(t)?t.call(r&&r.proxy):t}}function Hd(){return!!(xe||We||ln)}const Ma={},Da=()=>Object.create(Ma),Fa=e=>Object.getPrototypeOf(e)===Ma;function Kd(e,t,n,r=!1){const i={},s=Da();e.propsDefaults=Object.create(null),ja(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:Qf(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Vd(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=ee(i),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(ns(e.emitsOptions,d))continue;const m=t[d];if(l)if(ae(s,d))m!==s[d]&&(s[d]=m,u=!0);else{const v=st(d);i[v]=hi(l,a,v,m,e,!1)}else m!==s[d]&&(s[d]=m,u=!0)}}}else{ja(e,t,i,s)&&(u=!0);let c;for(const f in a)(!t||!ae(t,f)&&((c=Ft(f))===f||!ae(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=hi(l,a,f,void 0,e,!0)):delete i[f]);if(s!==a)for(const f in s)(!t||!ae(t,f))&&(delete s[f],u=!0)}u&&It(e.attrs,"set","")}function ja(e,t,n,r){const[i,s]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Zn(l))continue;const u=t[l];let c;i&&ae(i,c=st(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:ns(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(s){const l=ee(n),u=a||oe;for(let c=0;c<s.length;c++){const f=s[c];n[f]=hi(i,l,f,u[f],e,!ae(u,f))}}return o}function hi(e,t,n,r,i,s){const o=e[n];if(o!=null){const a=ae(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&X(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=hr(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}o[0]&&(s&&!a?r=!1:o[1]&&(r===""||r===Ft(n))&&(r=!0))}return r}const zd=new WeakMap;function Ua(e,t,n=!1){const r=n?zd:t.propsCache,i=r.get(e);if(i)return i;const s=e.props,o={},a=[];let l=!1;if(!X(e)){const c=f=>{l=!0;const[d,m]=Ua(f,t,!0);Ne(o,d),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return be(e)&&r.set(e,Cn),Cn;if(B(s))for(let c=0;c<s.length;c++){const f=st(s[c]);Wa(f)&&(o[f]=oe)}else if(s)for(const c in s){const f=st(c);if(Wa(f)){const d=s[c],m=o[f]=B(d)||X(d)?{type:d}:Ne({},d),v=m.type;let E=!1,k=!0;if(B(v))for(let S=0;S<v.length;++S){const L=v[S],y=X(L)&&L.name;if(y==="Boolean"){E=!0;break}else y==="String"&&(k=!1)}else E=X(v)&&v.name==="Boolean";m[0]=E,m[1]=k,(E||ae(m,"default"))&&a.push(f)}}const u=[o,a];return be(e)&&r.set(e,u),u}function Wa(e){return e[0]!=="$"&&!Zn(e)}const Ha=e=>e[0]==="_"||e==="$stable",pi=e=>B(e)?e.map(ht):[ht(e)],Bd=(e,t,n)=>{if(t._n)return t;const r=gd((...i)=>pi(t(...i)),n);return r._c=!1,r},Ka=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Ha(i))continue;const s=e[i];if(X(s))t[i]=Bd(i,s,r);else if(s!=null){const o=pi(s);t[i]=()=>o}}},Va=(e,t)=>{const n=pi(t);e.slots.default=()=>n},za=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Gd=(e,t,n)=>{const r=e.slots=Da();if(e.vnode.shapeFlag&32){const i=t._;i?(za(r,t,n),n&&$o(r,"_",i,!0)):Ka(t,r)}else t&&Va(e,t)},Yd=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=oe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:za(i,t,n):(s=!t.$stable,Ka(t,i)),o=t}else t&&(Va(e,t),o={default:1});if(s)for(const a in i)!Ha(a)&&o[a]==null&&delete i[a]},Ye=lh;function Xd(e){return Zd(e)}function Zd(e,t){const n=Do();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:m=ut,insertStaticContent:v}=e,E=(b,g,I,F=null,R=null,M=null,U=void 0,h=null,p=!!g.dynamicChildren)=>{if(b===g)return;b&&!fr(b,g)&&(F=$t(b),Le(b,R,M,!0),b=null),g.patchFlag===-2&&(p=!1,g.dynamicChildren=null);const{type:w,ref:$,shapeFlag:j}=g;switch(w){case lr:k(b,g,I,F);break;case fn:S(b,g,I,F);break;case _i:b==null&&L(g,I,F,U);break;case Oe:G(b,g,I,F,R,M,U,h,p);break;default:j&1?O(b,g,I,F,R,M,U,h,p):j&6?he(b,g,I,F,R,M,U,h,p):(j&64||j&128)&&w.process(b,g,I,F,R,M,U,h,p,rt)}$!=null&&R&&oi($,b&&b.ref,M,g||b,!g)},k=(b,g,I,F)=>{if(b==null)r(g.el=a(g.children),I,F);else{const R=g.el=b.el;g.children!==b.children&&u(R,g.children)}},S=(b,g,I,F)=>{b==null?r(g.el=l(g.children||""),I,F):g.el=b.el},L=(b,g,I,F)=>{[b.el,b.anchor]=v(b.children,g,I,F,b.el,b.anchor)},y=({el:b,anchor:g},I,F)=>{let R;for(;b&&b!==g;)R=d(b),r(b,I,F),b=R;r(g,I,F)},_=({el:b,anchor:g})=>{let I;for(;b&&b!==g;)I=d(b),i(b),b=I;i(g)},O=(b,g,I,F,R,M,U,h,p)=>{g.type==="svg"?U="svg":g.type==="math"&&(U="mathml"),b==null?C(g,I,F,R,M,U,h,p):P(b,g,R,M,U,h,p)},C=(b,g,I,F,R,M,U,h)=>{let p,w;const{props:$,shapeFlag:j,transition:D,dirs:T}=b;if(p=b.el=o(b.type,M,$&&$.is,$),j&8?c(p,b.children):j&16&&N(b.children,p,null,F,R,mi(b,M),U,h),T&&on(b,null,F,"created"),A(p,b,b.scopeId,U,F),$){for(const H in $)H!=="value"&&!Zn(H)&&s(p,H,null,$[H],M,F);"value"in $&&s(p,"value",null,$.value,M),(w=$.onVnodeBeforeMount)&&pt(w,F,b)}T&&on(b,null,F,"beforeMount");const x=Jd(R,D);x&&D.beforeEnter(p),r(p,g,I),((w=$&&$.onVnodeMounted)||x||T)&&Ye(()=>{w&&pt(w,F,b),x&&D.enter(p),T&&on(b,null,F,"mounted")},R)},A=(b,g,I,F,R)=>{if(I&&m(b,I),F)for(let M=0;M<F.length;M++)m(b,F[M]);if(R){let M=R.subTree;if(g===M||Qa(M.type)&&(M.ssContent===g||M.ssFallback===g)){const U=R.vnode;A(b,U,U.scopeId,U.slotScopeIds,R.parent)}}},N=(b,g,I,F,R,M,U,h,p=0)=>{for(let w=p;w<b.length;w++){const $=b[w]=h?Kt(b[w]):ht(b[w]);E(null,$,g,I,F,R,M,U,h)}},P=(b,g,I,F,R,M,U)=>{const h=g.el=b.el;let{patchFlag:p,dynamicChildren:w,dirs:$}=g;p|=b.patchFlag&16;const j=b.props||oe,D=g.props||oe;let T;if(I&&cn(I,!1),(T=D.onVnodeBeforeUpdate)&&pt(T,I,g,b),$&&on(g,b,I,"beforeUpdate"),I&&cn(I,!0),(j.innerHTML&&D.innerHTML==null||j.textContent&&D.textContent==null)&&c(h,""),w?K(b.dynamicChildren,w,h,I,F,mi(g,R),M):U||ie(b,g,h,null,I,F,mi(g,R),M,!1),p>0){if(p&16)re(h,j,D,I,R);else if(p&2&&j.class!==D.class&&s(h,"class",null,D.class,R),p&4&&s(h,"style",j.style,D.style,R),p&8){const x=g.dynamicProps;for(let H=0;H<x.length;H++){const V=x[H],we=j[V],Te=D[V];(Te!==we||V==="value")&&s(h,V,we,Te,R,I)}}p&1&&b.children!==g.children&&c(h,g.children)}else!U&&w==null&&re(h,j,D,I,R);((T=D.onVnodeUpdated)||$)&&Ye(()=>{T&&pt(T,I,g,b),$&&on(g,b,I,"updated")},F)},K=(b,g,I,F,R,M,U)=>{for(let h=0;h<g.length;h++){const p=b[h],w=g[h],$=p.el&&(p.type===Oe||!fr(p,w)||p.shapeFlag&70)?f(p.el):I;E(p,w,$,null,F,R,M,U,!0)}},re=(b,g,I,F,R)=>{if(g!==I){if(g!==oe)for(const M in g)!Zn(M)&&!(M in I)&&s(b,M,g[M],null,R,F);for(const M in I){if(Zn(M))continue;const U=I[M],h=g[M];U!==h&&M!=="value"&&s(b,M,h,U,R,F)}"value"in I&&s(b,"value",g.value,I.value,R)}},G=(b,g,I,F,R,M,U,h,p)=>{const w=g.el=b?b.el:a(""),$=g.anchor=b?b.anchor:a("");let{patchFlag:j,dynamicChildren:D,slotScopeIds:T}=g;T&&(h=h?h.concat(T):T),b==null?(r(w,I,F),r($,I,F),N(g.children||[],I,$,R,M,U,h,p)):j>0&&j&64&&D&&b.dynamicChildren?(K(b.dynamicChildren,D,I,R,M,U,h),(g.key!=null||R&&g===R.subTree)&&Ba(b,g,!0)):ie(b,g,I,$,R,M,U,h,p)},he=(b,g,I,F,R,M,U,h,p)=>{g.slotScopeIds=h,b==null?g.shapeFlag&512?R.ctx.activate(g,I,F,U,p):lt(g,I,F,R,M,U,p):vt(b,g,p)},lt=(b,g,I,F,R,M,U)=>{const h=b.component=mh(b,F,R);if(Ea(b)&&(h.ctx.renderer=rt),gh(h,!1,U),h.asyncDep){if(R&&R.registerDep(h,se,U),!b.el){const p=h.subTree=Me(fn);S(null,p,g,I)}}else se(h,b,g,I,R,M,U)},vt=(b,g,I)=>{const F=g.component=b.component;if(oh(b,g,I))if(F.asyncDep&&!F.asyncResolved){Z(F,g,I);return}else F.next=g,F.update();else g.el=b.el,F.vnode=g},se=(b,g,I,F,R,M,U)=>{const h=()=>{if(b.isMounted){let{next:j,bu:D,u:T,parent:x,vnode:H}=b;{const ze=Ga(b);if(ze){j&&(j.el=H.el,Z(b,j,U)),ze.asyncDep.then(()=>{b.isUnmounted||h()});return}}let V=j,we;cn(b,!1),j?(j.el=H.el,Z(b,j,U)):j=H,D&&Mr(D),(we=j.props&&j.props.onVnodeBeforeUpdate)&&pt(we,x,j,H),cn(b,!0);const Te=gi(b),Ae=b.subTree;b.subTree=Te,E(Ae,Te,f(Ae.el),$t(Ae),b,R,M),j.el=Te.el,V===null&&ah(b,Te.el),T&&Ye(T,R),(we=j.props&&j.props.onVnodeUpdated)&&Ye(()=>pt(we,x,j,H),R)}else{let j;const{el:D,props:T}=g,{bm:x,m:H,parent:V,root:we,type:Te}=b,Ae=ir(g);if(cn(b,!1),x&&Mr(x),!Ae&&(j=T&&T.onVnodeBeforeMount)&&pt(j,V,g),cn(b,!0),D&&en){const ze=()=>{b.subTree=gi(b),en(D,b.subTree,b,R,null)};Ae&&Te.__asyncHydrate?Te.__asyncHydrate(D,b,ze):ze()}else{we.ce&&we.ce._injectChildStyle(Te);const ze=b.subTree=gi(b);E(null,ze,I,F,b,R,M),g.el=ze.el}if(H&&Ye(H,R),!Ae&&(j=T&&T.onVnodeMounted)){const ze=g;Ye(()=>pt(j,V,ze),R)}(g.shapeFlag&256||V&&ir(V.vnode)&&V.vnode.shapeFlag&256)&&b.a&&Ye(b.a,R),b.isMounted=!0,g=I=F=null}};b.scope.on();const p=b.effect=new Ko(h);b.scope.off();const w=b.update=p.run.bind(p),$=b.job=p.runIfDirty.bind(p);$.i=b,$.id=b.uid,p.scheduler=()=>si($),cn(b,!0),w()},Z=(b,g,I)=>{g.component=b;const F=b.vnode.props;b.vnode=g,b.next=null,Vd(b,g.props,F,I),Yd(b,g.children,I),Tt(),ya(b),Et()},ie=(b,g,I,F,R,M,U,h,p=!1)=>{const w=b&&b.children,$=b?b.shapeFlag:0,j=g.children,{patchFlag:D,shapeFlag:T}=g;if(D>0){if(D&128){wt(w,j,I,F,R,M,U,h,p);return}else if(D&256){Je(w,j,I,F,R,M,U,h,p);return}}T&8?($&16&&ct(w,R,M),j!==w&&c(I,j)):$&16?T&16?wt(w,j,I,F,R,M,U,h,p):ct(w,R,M,!0):($&8&&c(I,""),T&16&&N(j,I,F,R,M,U,h,p))},Je=(b,g,I,F,R,M,U,h,p)=>{b=b||Cn,g=g||Cn;const w=b.length,$=g.length,j=Math.min(w,$);let D;for(D=0;D<j;D++){const T=g[D]=p?Kt(g[D]):ht(g[D]);E(b[D],T,I,null,R,M,U,h,p)}w>$?ct(b,R,M,!0,!1,j):N(g,I,F,R,M,U,h,p,j)},wt=(b,g,I,F,R,M,U,h,p)=>{let w=0;const $=g.length;let j=b.length-1,D=$-1;for(;w<=j&&w<=D;){const T=b[w],x=g[w]=p?Kt(g[w]):ht(g[w]);if(fr(T,x))E(T,x,I,null,R,M,U,h,p);else break;w++}for(;w<=j&&w<=D;){const T=b[j],x=g[D]=p?Kt(g[D]):ht(g[D]);if(fr(T,x))E(T,x,I,null,R,M,U,h,p);else break;j--,D--}if(w>j){if(w<=D){const T=D+1,x=T<$?g[T].el:F;for(;w<=D;)E(null,g[w]=p?Kt(g[w]):ht(g[w]),I,x,R,M,U,h,p),w++}}else if(w>D)for(;w<=j;)Le(b[w],R,M,!0),w++;else{const T=w,x=w,H=new Map;for(w=x;w<=D;w++){const qe=g[w]=p?Kt(g[w]):ht(g[w]);qe.key!=null&&H.set(qe.key,w)}let V,we=0;const Te=D-x+1;let Ae=!1,ze=0;const Xn=new Array(Te);for(w=0;w<Te;w++)Xn[w]=0;for(w=T;w<=j;w++){const qe=b[w];if(we>=Te){Le(qe,R,M,!0);continue}let kt;if(qe.key!=null)kt=H.get(qe.key);else for(V=x;V<=D;V++)if(Xn[V-x]===0&&fr(qe,g[V])){kt=V;break}kt===void 0?Le(qe,R,M,!0):(Xn[kt-x]=w+1,kt>=ze?ze=kt:Ae=!0,E(qe,g[kt],I,null,R,M,U,h,p),we++)}const bf=Ae?qd(Xn):Cn;for(V=bf.length-1,w=Te-1;w>=0;w--){const qe=x+w,kt=g[qe],yf=qe+1<$?g[qe+1].el:F;Xn[w]===0?E(null,kt,I,yf,R,M,U,h,p):Ae&&(V<0||w!==bf[V]?Se(kt,I,yf,2):V--)}}},Se=(b,g,I,F,R=null)=>{const{el:M,type:U,transition:h,children:p,shapeFlag:w}=b;if(w&6){Se(b.component.subTree,g,I,F);return}if(w&128){b.suspense.move(g,I,F);return}if(w&64){U.move(b,g,I,rt);return}if(U===Oe){r(M,g,I);for(let j=0;j<p.length;j++)Se(p[j],g,I,F);r(b.anchor,g,I);return}if(U===_i){y(b,g,I);return}if(F!==2&&w&1&&h)if(F===0)h.beforeEnter(M),r(M,g,I),Ye(()=>h.enter(M),R);else{const{leave:j,delayLeave:D,afterLeave:T}=h,x=()=>r(M,g,I),H=()=>{j(M,()=>{x(),T&&T()})};D?D(M,x,H):H()}else r(M,g,I)},Le=(b,g,I,F=!1,R=!1)=>{const{type:M,props:U,ref:h,children:p,dynamicChildren:w,shapeFlag:$,patchFlag:j,dirs:D,cacheIndex:T}=b;if(j===-2&&(R=!1),h!=null&&oi(h,null,I,b,!0),T!=null&&(g.renderCache[T]=void 0),$&256){g.ctx.deactivate(b);return}const x=$&1&&D,H=!ir(b);let V;if(H&&(V=U&&U.onVnodeBeforeUnmount)&&pt(V,g,b),$&6)xn(b.component,I,F);else{if($&128){b.suspense.unmount(I,F);return}x&&on(b,null,g,"beforeUnmount"),$&64?b.type.remove(b,g,I,rt,F):w&&!w.hasOnce&&(M!==Oe||j>0&&j&64)?ct(w,g,I,!1,!0):(M===Oe&&j&384||!R&&$&16)&&ct(p,g,I),F&&Zt(b)}(H&&(V=U&&U.onVnodeUnmounted)||x)&&Ye(()=>{V&&pt(V,g,b),x&&on(b,null,g,"unmounted")},I)},Zt=b=>{const{type:g,el:I,anchor:F,transition:R}=b;if(g===Oe){Jt(I,F);return}if(g===_i){_(b);return}const M=()=>{i(I),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:U,delayLeave:h}=R,p=()=>U(I,M);h?h(b.el,M,p):p()}else M()},Jt=(b,g)=>{let I;for(;b!==g;)I=d(b),i(b),b=I;i(g)},xn=(b,g,I)=>{const{bum:F,scope:R,job:M,subTree:U,um:h,m:p,a:w}=b;Ya(p),Ya(w),F&&Mr(F),R.stop(),M&&(M.flags|=8,Le(U,b,g,I)),h&&Ye(h,g),Ye(()=>{b.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},ct=(b,g,I,F=!1,R=!1,M=0)=>{for(let U=M;U<b.length;U++)Le(b[U],g,I,F,R)},$t=b=>{if(b.shapeFlag&6)return $t(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const g=d(b.anchor||b.el),I=g&&g[bd];return I?d(I):g};let Mt=!1;const qt=(b,g,I)=>{b==null?g._vnode&&Le(g._vnode,null,null,!0):E(g._vnode||null,b,g,null,null,null,I),g._vnode=b,Mt||(Mt=!0,ya(),va(),Mt=!1)},rt={p:E,um:Le,m:Se,r:Zt,mt:lt,mc:N,pc:ie,pbc:K,n:$t,o:e};let Qt,en;return{render:qt,hydrate:Qt,createApp:Ud(qt,Qt)}}function mi({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 cn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ba(e,t,n=!1){const r=e.children,i=t.children;if(B(r)&&B(i))for(let s=0;s<r.length;s++){const o=r[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Kt(i[s]),a.el=o.el),!n&&a.patchFlag!==-2&&Ba(o,a)),a.type===lr&&(a.el=o.el)}}function qd(e){const t=e.slice(),n=[0];let r,i,s,o,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(s=0,o=n.length-1;s<o;)a=s+o>>1,e[n[a]]<u?s=a+1:o=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function Ga(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ga(t)}function Ya(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Qd=Symbol.for("v-scx"),eh=()=>Ge(Qd);function un(e,t,n){return Xa(e,t,n)}function Xa(e,t,n=oe){const{immediate:r,deep:i,flush:s,once:o}=n,a=Ne({},n);let l;if(is)if(s==="sync"){const d=eh();l=d.__watcherHandles||(d.__watcherHandles=[])}else if(!t||r)a.once=!0;else{const d=()=>{};return d.stop=ut,d.resume=ut,d.pause=ut,d}const u=xe;a.call=(d,m,v)=>ft(d,u,m,v);let c=!1;s==="post"?a.scheduler=d=>{Ye(d,u&&u.suspense)}:s!=="sync"&&(c=!0,a.scheduler=(d,m)=>{m?d():si(d)}),a.augmentJob=d=>{t&&(d.flags|=4),c&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const f=ld(e,t,a);return l&&l.push(f),f}function th(e,t,n){const r=this.proxy,i=ke(e)?e.includes(".")?Za(r,e):()=>r[e]:e.bind(r,r);let s;X(t)?s=t:(s=t.handler,n=t);const o=hr(this),a=Xa(i,s.bind(r),n);return o(),a}function Za(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 nh=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${Ft(t)}Modifiers`];function rh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||oe;let i=n;const s=t.startsWith("update:"),o=s&&nh(r,t.slice(7));o&&(o.trim&&(i=n.map(c=>ke(c)?c.trim():c)),o.number&&(i=n.map(js)));let a,l=r[a=Fs(t)]||r[a=Fs(st(t))];!l&&s&&(l=r[a=Fs(Ft(t))]),l&&ft(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,ft(u,e,6,i)}}function Ja(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!X(e)){const l=u=>{const c=Ja(u,t,!0);c&&(a=!0,Ne(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(be(e)&&r.set(e,null),null):(B(s)?s.forEach(l=>o[l]=null):Ne(o,s),be(e)&&r.set(e,o),o)}function ns(e,t){return!e||!Nr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ft(t))||ae(e,t))}function _0(){}function gi(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:m,ctx:v,inheritAttrs:E}=e,k=qr(e);let S,L;try{if(n.shapeFlag&4){const _=i||r,O=_;S=ht(u.call(O,_,c,f,m,d,v)),L=a}else{const _=t;S=ht(_.length>1?_(f,{attrs:a,slots:o,emit:l}):_(f,null)),L=t.props?a:sh(a)}}catch(_){cr.length=0,Jr(_,e,1),S=Me(fn)}let y=S;if(L&&E!==!1){const _=Object.keys(L),{shapeFlag:O}=y;_.length&&O&7&&(s&&_.some($s)&&(L=ih(L,s)),y=Mn(y,L,!1,!0))}return n.dirs&&(y=Mn(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&ii(y,n.transition),S=y,qr(k),S}const sh=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nr(n))&&((t||(t={}))[n]=e[n]);return t},ih=(e,t)=>{const n={};for(const r in e)(!$s(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function oh(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?qa(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!ns(u,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?qa(r,o,u):!0:!!o;return!1}function qa(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 s=r[i];if(t[s]!==e[s]&&!ns(n,s))return!0}return!1}function ah({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Qa=e=>e.__isSuspense;function lh(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):md(e)}const Oe=Symbol.for("v-fgt"),lr=Symbol.for("v-txt"),fn=Symbol.for("v-cmt"),_i=Symbol.for("v-stc"),cr=[];let Xe=null;function q(e=!1){cr.push(Xe=e?null:[])}function ch(){cr.pop(),Xe=cr[cr.length-1]||null}let ur=1;function el(e){ur+=e,e<0&&Xe&&(Xe.hasOnce=!0)}function tl(e){return e.dynamicChildren=ur>0?Xe||Cn:null,ch(),ur>0&&Xe&&Xe.push(e),e}function ne(e,t,n,r,i,s){return tl(ce(e,t,n,r,i,s,!0))}function $n(e,t,n,r,i){return tl(Me(e,t,n,r,i,!0))}function bi(e){return e?e.__v_isVNode===!0:!1}function fr(e,t){return e.type===t.type&&e.key===t.key}const nl=({key:e})=>e??null,rs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||ve(e)||X(e)?{i:We,r:e,k:t,f:!!n}:e:null);function ce(e,t=null,n=null,r=0,i=null,s=e===Oe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nl(t),ref:t&&rs(t),scopeId:ka,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:We};return a?(yi(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),ur>0&&!o&&Xe&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Xe.push(l),l}const Me=uh;function uh(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Ad)&&(e=fn),bi(e)){const a=Mn(e,t,!0);return n&&yi(a,n),ur>0&&!s&&Xe&&(a.shapeFlag&6?Xe[Xe.indexOf(e)]=a:Xe.push(a)),a.patchFlag=-2,a}if(kh(e)&&(e=e.__vccOpts),t){t=fh(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=Fr(a)),be(l)&&(qs(l)&&!B(l)&&(l=Ne({},l)),t.style=Dr(l))}const o=ke(e)?1:Qa(e)?128:yd(e)?64:be(e)?4:X(e)?2:0;return ce(e,t,n,r,i,o,s,!0)}function fh(e){return e?qs(e)||Fa(e)?Ne({},e):e:null}function Mn(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=e,u=t?dh(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&nl(u),ref:t&&t.ref?n&&s?B(s)?s.concat(rs(t)):[s,rs(t)]:rs(t):s,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!==Oe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mn(e.ssContent),ssFallback:e.ssFallback&&Mn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ii(c,l.clone(c)),c}function dn(e=" ",t=0){return Me(lr,null,e,t)}function De(e="",t=!1){return t?(q(),$n(fn,null,e)):Me(fn,null,e)}function ht(e){return e==null||typeof e=="boolean"?Me(fn):B(e)?Me(Oe,null,e.slice()):typeof e=="object"?Kt(e):Me(lr,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mn(e)}function yi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),yi(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Fa(t)?t._ctx=We:i===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[dn(t)]):n=8);e.children=t,e.shapeFlag|=n}function dh(...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=Fr([t.class,r.class]));else if(i==="style")t.style=Dr([t.style,r.style]);else if(Nr(i)){const s=t[i],o=r[i];o&&s!==o&&!(B(s)&&s.includes(o))&&(t[i]=s?[].concat(s,o):o)}else i!==""&&(t[i]=r[i])}return t}function pt(e,t,n,r=null){ft(e,t,7,[n,r])}const hh=$a();let ph=0;function mh(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||hh,s={uid:ph++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wo(!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:Ua(r,i),emitsOptions:Ja(r,i),emit:null,emitted:null,propsDefaults:oe,inheritAttrs:r.inheritAttrs,ctx:oe,data:oe,props:oe,attrs:oe,slots:oe,refs:oe,setupState:oe,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=rh.bind(null,s),e.ce&&e.ce(s),s}let xe=null;const dr=()=>xe||We;let ss,vi;{const e=Do(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};ss=t("__VUE_INSTANCE_SETTERS__",n=>xe=n),vi=t("__VUE_SSR_SETTERS__",n=>is=n)}const hr=e=>{const t=xe;return ss(e),e.scope.on(),()=>{e.scope.off(),ss(t)}},rl=()=>{xe&&xe.scope.off(),ss(null)};function sl(e){return e.vnode.shapeFlag&4}let is=!1;function gh(e,t=!1,n=!1){t&&vi(t);const{props:r,children:i}=e.vnode,s=sl(e);Kd(e,r,s,t),Gd(e,i,n);const o=s?_h(e,t):void 0;return t&&vi(!1),o}function _h(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pd);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?yh(e):null,s=hr(e);Tt();const o=Nn(r,e,0,[e.props,i]);if(Et(),s(),No(o)){if(ir(e)||Ta(e),o.then(rl,rl),t)return o.then(a=>{il(e,a,t)}).catch(a=>{Jr(a,e,0)});e.asyncDep=o}else il(e,o,t)}else al(e,t)}function il(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=pa(t)),al(e,n)}let ol;function al(e,t,n){const r=e.type;if(!e.render){if(!t&&ol&&!r.render){const i=r.template||fi(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Ne(Ne({isCustomElement:s,delimiters:a},o),l);r.render=ol(i,u)}}e.render=r.render||ut}{const i=hr(e);Tt();try{Rd(e)}finally{Et(),i()}}}const bh={get(e,t){return Re(e,"get",""),e[t]}};function yh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,bh),slots:e.slots,emit:e.emit,expose:t}}function os(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(pa(Qs(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in or)return or[n](e)},has(t,n){return n in t||n in or}})):e.proxy}const vh=/(?:^|[-_])(\w)/g,wh=e=>e.replace(vh,t=>t.toUpperCase()).replace(/[-_]/g,"");function ll(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function cl(e,t,n=!1){let r=ll(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=s=>{for(const o in s)if(s[o]===t)return o};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?wh(r):n?"App":"Anonymous"}function kh(e){return X(e)&&"__vccOpts"in e}const Ke=(e,t)=>od(e,t,is);function ul(e,t,n){const r=arguments.length;return r===2?be(t)&&!B(t)?bi(t)?Me(e,null,[t]):Me(e,t):Me(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&bi(n)&&(n=[n]),Me(e,t,n))}const Th="3.5.8";/**
15
+ `,...hd(i)),console.warn(...s)}St(),ii=!1}function dd(){let e=rr[rr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function hd(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
16
+ `],...pd(n))}),t}function pd({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${hl(e.component,e.type,r)}`,s=">"+n;return e.props?[i,...md(e.props),s]:[i+s]}function md(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...ya(r,e[r]))}),n.length>3&&t.push(" ..."),t}function ya(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ve(t)?(t=ya(e,ne(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ne(t),n?t:[`${e}=`,t])}function Pn(e,t,n,r){try{return r?e(...r):e()}catch(i){Qr(i,t,n)}}function ft(e,t,n,r){if(Z(e)){const i=Pn(e,t,n,r);return i&&Mo(i)&&i.catch(s=>{Qr(s,t,n)}),i}if(G(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ft(e[s],t,n,r));return i}}function Qr(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||oe;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(s){It(),Pn(s,null,10,[e,l,u]),St();return}}gd(e,n,i,r,o)}function gd(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let sr=!1,oi=!1;const Ue=[];let dt=0;const Rn=[];let Vt=null,$n=0;const va=Promise.resolve();let ai=null;function wa(e){const t=ai||va;return e?t.then(this?e.bind(this):e):t}function _d(e){let t=sr?dt+1:0,n=Ue.length;for(;t<n;){const r=t+n>>>1,i=Ue[r],s=ir(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function li(e){if(!(e.flags&1)){const t=ir(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=ir(n)?Ue.push(e):Ue.splice(_d(t),0,e),e.flags|=1,ka()}}function ka(){!sr&&!oi&&(oi=!0,ai=va.then(Ia))}function bd(e){G(e)?Rn.push(...e):Vt&&e.id===-1?Vt.splice($n+1,0,e):e.flags&1||(Rn.push(e),e.flags|=1),ka()}function Ta(e,t,n=sr?dt+1:0){for(;n<Ue.length;n++){const r=Ue[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ue.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ea(e){if(Rn.length){const t=[...new Set(Rn)].sort((n,r)=>ir(n)-ir(r));if(Rn.length=0,Vt){Vt.push(...t);return}for(Vt=t,$n=0;$n<Vt.length;$n++){const n=Vt[$n];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Vt=null,$n=0}}const ir=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ia(e){oi=!1,sr=!0;try{for(dt=0;dt<Ue.length;dt++){const t=Ue[dt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;dt<Ue.length;dt++){const t=Ue[dt];t&&(t.flags&=-2)}dt=0,Ue.length=0,Ea(),sr=!1,ai=null,(Ue.length||Rn.length)&&Ia()}}let We=null,Sa=null;function es(e){const t=We;return We=e,Sa=e&&e.type.__scopeId||null,t}function yd(e,t=We,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&sl(-1);const s=es(t);let o;try{o=e(...i)}finally{es(s),r._d&&sl(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function vd(e,t){if(We===null)return e;const n=ls(We),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,l=oe]=t[i];s&&(Z(s)&&(s={mounted:s,updated:s}),s.deep&&Ct(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function cn(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];s&&(a.oldValue=s[o].value);let l=a.dir[r];l&&(It(),ft(l,n,8,[e.el,a,e,t]),St())}}const wd=Symbol("_vte"),kd=e=>e.__isTeleport;function ci(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ci(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function ht(e,t){return Z(e)?Pe({name:e.name},t,{setup:e}):e}function Oa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ui(e,t,n,r,i=!1){if(G(e)){e.forEach((v,S)=>ui(v,t&&(G(t)?t[S]:t),n,r,i));return}if(or(r)&&!i)return;const s=r.shapeFlag&4?ls(r.component):r.el,o=i?null:s,{i:a,r:l}=e,u=t&&t.r,c=a.refs===oe?a.refs={}:a.refs,f=a.setupState,d=ne(f),_=f===oe?()=>!1:v=>ae(d,v);if(u!=null&&u!==l&&(ke(u)?(c[u]=null,_(u)&&(f[u]=null)):ve(u)&&(u.value=null)),Z(l))Pn(l,a,12,[o,c]);else{const v=ke(l),S=ve(l);if(v||S){const T=()=>{if(e.f){const E=v?_(l)?f[l]:c[l]:l.value;i?G(E)&&Us(E,s):G(E)?E.includes(s)||E.push(s):v?(c[l]=[s],_(l)&&(f[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else v?(c[l]=o,_(l)&&(f[l]=o)):S&&(l.value=o,e.k&&(c[e.k]=o))};o?(T.id=-1,Ye(T,n)):T()}}}const or=e=>!!e.type.__asyncLoader,xa=e=>e.type.__isKeepAlive;function Td(e,t){Ca(e,"a",t)}function Ed(e,t){Ca(e,"da",t)}function Ca(e,t,n=Ce){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ts(t,r,n),n){let i=n.parent;for(;i&&i.parent;)xa(i.parent.vnode)&&Id(r,t,n,i),i=i.parent}}function Id(e,t,n,r){const i=ts(t,e,r,!0);fi(()=>{Us(r[t],i)},n)}function ts(e,t,n=Ce,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{It();const a=pr(n),l=ft(t,n,e,o);return a(),St(),l});return r?i.unshift(s):i.push(s),s}}const Lt=e=>(t,n=Ce)=>{(!as||e==="sp")&&ts(e,(...r)=>t(...r),n)},La=Lt("bm"),ns=Lt("m"),Sd=Lt("bu"),Od=Lt("u"),Aa=Lt("bum"),fi=Lt("um"),xd=Lt("sp"),Cd=Lt("rtg"),Ld=Lt("rtc");function Ad(e,t=Ce){ts("ec",e,t)}const Nd="components";function Pd(e,t){return $d(Nd,e,!0,t)||e}const Rd=Symbol.for("v-ndc");function $d(e,t,n=!0,r=!1){const i=We||Ce;if(i){const s=i.type;{const a=dl(s,!1);if(a&&(a===t||a===it(t)||a===Dr(it(t))))return s}const o=Na(i[e]||s[e],t)||Na(i.appContext[e],t);return!o&&r?s:o}}function Na(e,t){return e&&(e[t]||e[it(t)]||e[Dr(it(t))])}function Pa(e,t,n,r){let i;const s=n,o=G(e);if(o||ke(e)){const a=o&&Kt(e);let l=!1;a&&(l=!et(e),e=Wr(e)),i=new Array(e.length);for(let u=0,c=e.length;u<c;u++)i[u]=t(l?Me(e[u]):e[u],u,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,s)}else if(be(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,s));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,s)}}else i=[];return i}const di=e=>e?ll(e)?ls(e):di(e.parent):null,ar=Pe(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=>di(e.parent),$root:e=>di(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mi(e),$forceUpdate:e=>e.f||(e.f=()=>{li(e.update)}),$nextTick:e=>e.n||(e.n=wa.bind(e.proxy)),$watch:e=>sh.bind(e)}),hi=(e,t)=>e!==oe&&!e.__isScriptSetup&&ae(e,t),Md={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const _=o[t];if(_!==void 0)switch(_){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(hi(r,t))return o[t]=1,r[t];if(i!==oe&&ae(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&ae(u,t))return o[t]=3,s[t];if(n!==oe&&ae(n,t))return o[t]=4,n[t];pi&&(o[t]=0)}}const c=ar[t];let f,d;if(c)return t==="$attrs"&&$e(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==oe&&ae(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,ae(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return hi(i,t)?(i[t]=n,!0):r!==oe&&ae(r,t)?(r[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==oe&&ae(e,o)||hi(t,o)||(a=s[0])&&ae(a,o)||ae(r,o)||ae(ar,o)||ae(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ra(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let pi=!0;function Dd(e){const t=mi(e),n=e.proxy,r=e.ctx;pi=!1,t.beforeCreate&&$a(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:_,updated:v,activated:S,deactivated:T,beforeDestroy:E,beforeUnmount:L,destroyed:y,unmounted:g,render:O,renderTracked:C,renderTriggered:A,errorCaptured:N,serverPrefetch:P,expose:Y,inheritAttrs:te,components:V,directives:he,filters:Je}=t;if(u&&Fd(u,r,null),o)for(const q in o){const ie=o[q];Z(ie)&&(r[q]=ie.bind(n))}if(i){const q=i.call(n,n);be(q)&&(e.data=Xr(q))}if(pi=!0,s)for(const q in s){const ie=s[q],qe=Z(ie)?ie.bind(n,n):Z(ie.get)?ie.get.bind(n,n):ut,Tt=!Z(ie)&&Z(ie.set)?ie.set.bind(n):ut,Oe=Ke({get:qe,set:Tt});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:Ae=>Oe.value=Ae})}if(a)for(const q in a)Ma(a[q],r,n,q);if(l){const q=Z(l)?l.call(n):l;Reflect.ownKeys(q).forEach(ie=>{Vd(ie,q[ie])})}c&&$a(c,e,"c");function se(q,ie){G(ie)?ie.forEach(qe=>q(qe.bind(n))):ie&&q(ie.bind(n))}if(se(La,f),se(ns,d),se(Sd,_),se(Od,v),se(Td,S),se(Ed,T),se(Ad,N),se(Ld,C),se(Cd,A),se(Aa,L),se(fi,g),se(xd,P),G(Y))if(Y.length){const q=e.exposed||(e.exposed={});Y.forEach(ie=>{Object.defineProperty(q,ie,{get:()=>n[ie],set:qe=>n[ie]=qe})})}else e.exposed||(e.exposed={});O&&e.render===ut&&(e.render=O),te!=null&&(e.inheritAttrs=te),V&&(e.components=V),he&&(e.directives=he),P&&Oa(e)}function Fd(e,t,n=ut){G(e)&&(e=gi(e));for(const r in e){const i=e[r];let s;be(i)?"default"in i?s=Ge(i.from||r,i.default,!0):s=Ge(i.from||r):s=Ge(i),ve(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function $a(e,t,n){ft(G(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ma(e,t,n,r){let i=r.includes(".")?el(n,r):()=>n[r];if(ke(e)){const s=t[e];Z(s)&&dn(i,s)}else if(Z(e))dn(i,e.bind(n));else if(be(e))if(G(e))e.forEach(s=>Ma(s,t,n,r));else{const s=Z(e.handler)?e.handler.bind(n):t[e.handler];Z(s)&&dn(i,s,e)}}function mi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>rs(l,u,o,!0)),rs(l,t,o)),be(t)&&s.set(t,l),l}function rs(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&rs(e,s,n,!0),i&&i.forEach(o=>rs(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=jd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const jd={data:Da,props:Fa,emits:Fa,methods:lr,computed:lr,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:lr,directives:lr,watch:Wd,provide:Da,inject:Ud};function Da(e,t){return t?e?function(){return Pe(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function Ud(e,t){return lr(gi(e),gi(t))}function gi(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function He(e,t){return e?[...new Set([].concat(e,t))]:t}function lr(e,t){return e?Pe(Object.create(null),e,t):t}function Fa(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Pe(Object.create(null),Ra(e),Ra(t??{})):t}function Wd(e,t){if(!e)return t;if(!t)return e;const n=Pe(Object.create(null),e);for(const r in t)n[r]=He(e[r],t[r]);return n}function ja(){return{app:null,config:{isNativeTag:Tf,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 Hd=0;function Kd(e,t){return function(r,i=null){Z(r)||(r=Pe({},r)),i!=null&&!be(i)&&(i=null);const s=ja(),o=new WeakSet,a=[];let l=!1;const u=s.app={_uid:Hd++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Sh,get config(){return s.config},set config(c){},use(c,...f){return o.has(c)||(c&&Z(c.install)?(o.add(c),c.install(u,...f)):Z(c)&&(o.add(c),c(u,...f))),u},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,f){return f?(s.components[c]=f,u):s.components[c]},directive(c,f){return f?(s.directives[c]=f,u):s.directives[c]},mount(c,f,d){if(!l){const _=u._ceVNode||Te(r,i);return _.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(_,c):e(_,c,d),l=!0,u._container=c,c.__vue_app__=u,ls(_.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ft(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return s.provides[c]=f,u},runWithContext(c){const f=un;un=u;try{return c()}finally{un=f}}};return u}}let un=null;function Vd(e,t){if(Ce){let n=Ce.provides;const r=Ce.parent&&Ce.parent.provides;r===n&&(n=Ce.provides=Object.create(r)),n[e]=t}}function Ge(e,t,n=!1){const r=Ce||We;if(r||un){const i=un?un._context.provides:r?r.parent==null?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&&Z(t)?t.call(r&&r.proxy):t}}function zd(){return!!(Ce||We||un)}const Ua={},Wa=()=>Object.create(Ua),Ha=e=>Object.getPrototypeOf(e)===Ua;function Bd(e,t,n,r=!1){const i={},s=Wa();e.propsDefaults=Object.create(null),Ka(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:nd(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Gd(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=ne(i),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(ss(e.emitsOptions,d))continue;const _=t[d];if(l)if(ae(s,d))_!==s[d]&&(s[d]=_,u=!0);else{const v=it(d);i[v]=_i(l,a,v,_,e,!1)}else _!==s[d]&&(s[d]=_,u=!0)}}}else{Ka(e,t,i,s)&&(u=!0);let c;for(const f in a)(!t||!ae(t,f)&&((c=Ut(f))===f||!ae(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=_i(l,a,f,void 0,e,!0)):delete i[f]);if(s!==a)for(const f in s)(!t||!ae(t,f))&&(delete s[f],u=!0)}u&&Ot(e.attrs,"set","")}function Ka(e,t,n,r){const[i,s]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Jn(l))continue;const u=t[l];let c;i&&ae(i,c=it(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:ss(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(s){const l=ne(n),u=a||oe;for(let c=0;c<s.length;c++){const f=s[c];n[f]=_i(i,l,f,u[f],e,!ae(u,f))}}return o}function _i(e,t,n,r,i,s){const o=e[n];if(o!=null){const a=ae(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Z(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=pr(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}o[0]&&(s&&!a?r=!1:o[1]&&(r===""||r===Ut(n))&&(r=!0))}return r}const Yd=new WeakMap;function Va(e,t,n=!1){const r=n?Yd:t.propsCache,i=r.get(e);if(i)return i;const s=e.props,o={},a=[];let l=!1;if(!Z(e)){const c=f=>{l=!0;const[d,_]=Va(f,t,!0);Pe(o,d),_&&a.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return be(e)&&r.set(e,Ln),Ln;if(G(s))for(let c=0;c<s.length;c++){const f=it(s[c]);za(f)&&(o[f]=oe)}else if(s)for(const c in s){const f=it(c);if(za(f)){const d=s[c],_=o[f]=G(d)||Z(d)?{type:d}:Pe({},d),v=_.type;let S=!1,T=!0;if(G(v))for(let E=0;E<v.length;++E){const L=v[E],y=Z(L)&&L.name;if(y==="Boolean"){S=!0;break}else y==="String"&&(T=!1)}else S=Z(v)&&v.name==="Boolean";_[0]=S,_[1]=T,(S||ae(_,"default"))&&a.push(f)}}const u=[o,a];return be(e)&&r.set(e,u),u}function za(e){return e[0]!=="$"&&!Jn(e)}const Ba=e=>e[0]==="_"||e==="$stable",bi=e=>G(e)?e.map(pt):[pt(e)],Xd=(e,t,n)=>{if(t._n)return t;const r=yd((...i)=>bi(t(...i)),n);return r._c=!1,r},Ga=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Ba(i))continue;const s=e[i];if(Z(s))t[i]=Xd(i,s,r);else if(s!=null){const o=bi(s);t[i]=()=>o}}},Ya=(e,t)=>{const n=bi(t);e.slots.default=()=>n},Xa=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Zd=(e,t,n)=>{const r=e.slots=Wa();if(e.vnode.shapeFlag&32){const i=t._;i?(Xa(r,t,n),n&&jo(r,"_",i,!0)):Ga(t,r)}else t&&Ya(e,t)},Jd=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=oe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:Xa(i,t,n):(s=!t.$stable,Ga(t,i)),o=t}else t&&(Ya(e,t),o={default:1});if(s)for(const a in i)!Ba(a)&&o[a]==null&&delete i[a]},Ye=fh;function qd(e){return Qd(e)}function Qd(e,t){const n=Wo();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:_=ut,insertStaticContent:v}=e,S=(b,m,I,F=null,R=null,M=null,U=void 0,h=null,p=!!m.dynamicChildren)=>{if(b===m)return;b&&!dr(b,m)&&(F=Dt(b),Ae(b,R,M,!0),b=null),m.patchFlag===-2&&(p=!1,m.dynamicChildren=null);const{type:w,ref:$,shapeFlag:j}=m;switch(w){case cr:T(b,m,I,F);break;case hn:E(b,m,I,F);break;case wi:b==null&&L(m,I,F,U);break;case xe:V(b,m,I,F,R,M,U,h,p);break;default:j&1?O(b,m,I,F,R,M,U,h,p):j&6?he(b,m,I,F,R,M,U,h,p):(j&64||j&128)&&w.process(b,m,I,F,R,M,U,h,p,st)}$!=null&&R&&ui($,b&&b.ref,M,m||b,!m)},T=(b,m,I,F)=>{if(b==null)r(m.el=a(m.children),I,F);else{const R=m.el=b.el;m.children!==b.children&&u(R,m.children)}},E=(b,m,I,F)=>{b==null?r(m.el=l(m.children||""),I,F):m.el=b.el},L=(b,m,I,F)=>{[b.el,b.anchor]=v(b.children,m,I,F,b.el,b.anchor)},y=({el:b,anchor:m},I,F)=>{let R;for(;b&&b!==m;)R=d(b),r(b,I,F),b=R;r(m,I,F)},g=({el:b,anchor:m})=>{let I;for(;b&&b!==m;)I=d(b),i(b),b=I;i(m)},O=(b,m,I,F,R,M,U,h,p)=>{m.type==="svg"?U="svg":m.type==="math"&&(U="mathml"),b==null?C(m,I,F,R,M,U,h,p):P(b,m,R,M,U,h,p)},C=(b,m,I,F,R,M,U,h)=>{let p,w;const{props:$,shapeFlag:j,transition:D,dirs:k}=b;if(p=b.el=o(b.type,M,$&&$.is,$),j&8?c(p,b.children):j&16&&N(b.children,p,null,F,R,yi(b,M),U,h),k&&cn(b,null,F,"created"),A(p,b,b.scopeId,U,F),$){for(const H in $)H!=="value"&&!Jn(H)&&s(p,H,null,$[H],M,F);"value"in $&&s(p,"value",null,$.value,M),(w=$.onVnodeBeforeMount)&&mt(w,F,b)}k&&cn(b,null,F,"beforeMount");const x=eh(R,D);x&&D.beforeEnter(p),r(p,m,I),((w=$&&$.onVnodeMounted)||x||k)&&Ye(()=>{w&&mt(w,F,b),x&&D.enter(p),k&&cn(b,null,F,"mounted")},R)},A=(b,m,I,F,R)=>{if(I&&_(b,I),F)for(let M=0;M<F.length;M++)_(b,F[M]);if(R){let M=R.subTree;if(m===M||rl(M.type)&&(M.ssContent===m||M.ssFallback===m)){const U=R.vnode;A(b,U,U.scopeId,U.slotScopeIds,R.parent)}}},N=(b,m,I,F,R,M,U,h,p=0)=>{for(let w=p;w<b.length;w++){const $=b[w]=h?Bt(b[w]):pt(b[w]);S(null,$,m,I,F,R,M,U,h)}},P=(b,m,I,F,R,M,U)=>{const h=m.el=b.el;let{patchFlag:p,dynamicChildren:w,dirs:$}=m;p|=b.patchFlag&16;const j=b.props||oe,D=m.props||oe;let k;if(I&&fn(I,!1),(k=D.onVnodeBeforeUpdate)&&mt(k,I,m,b),$&&cn(m,b,I,"beforeUpdate"),I&&fn(I,!0),(j.innerHTML&&D.innerHTML==null||j.textContent&&D.textContent==null)&&c(h,""),w?Y(b.dynamicChildren,w,h,I,F,yi(m,R),M):U||ie(b,m,h,null,I,F,yi(m,R),M,!1),p>0){if(p&16)te(h,j,D,I,R);else if(p&2&&j.class!==D.class&&s(h,"class",null,D.class,R),p&4&&s(h,"style",j.style,D.style,R),p&8){const x=m.dynamicProps;for(let H=0;H<x.length;H++){const K=x[H],we=j[K],Ee=D[K];(Ee!==we||K==="value")&&s(h,K,we,Ee,R,I)}}p&1&&b.children!==m.children&&c(h,m.children)}else!U&&w==null&&te(h,j,D,I,R);((k=D.onVnodeUpdated)||$)&&Ye(()=>{k&&mt(k,I,m,b),$&&cn(m,b,I,"updated")},F)},Y=(b,m,I,F,R,M,U)=>{for(let h=0;h<m.length;h++){const p=b[h],w=m[h],$=p.el&&(p.type===xe||!dr(p,w)||p.shapeFlag&70)?f(p.el):I;S(p,w,$,null,F,R,M,U,!0)}},te=(b,m,I,F,R)=>{if(m!==I){if(m!==oe)for(const M in m)!Jn(M)&&!(M in I)&&s(b,M,m[M],null,R,F);for(const M in I){if(Jn(M))continue;const U=I[M],h=m[M];U!==h&&M!=="value"&&s(b,M,h,U,R,F)}"value"in I&&s(b,"value",m.value,I.value,R)}},V=(b,m,I,F,R,M,U,h,p)=>{const w=m.el=b?b.el:a(""),$=m.anchor=b?b.anchor:a("");let{patchFlag:j,dynamicChildren:D,slotScopeIds:k}=m;k&&(h=h?h.concat(k):k),b==null?(r(w,I,F),r($,I,F),N(m.children||[],I,$,R,M,U,h,p)):j>0&&j&64&&D&&b.dynamicChildren?(Y(b.dynamicChildren,D,I,R,M,U,h),(m.key!=null||R&&m===R.subTree)&&Za(b,m,!0)):ie(b,m,I,$,R,M,U,h,p)},he=(b,m,I,F,R,M,U,h,p)=>{m.slotScopeIds=h,b==null?m.shapeFlag&512?R.ctx.activate(m,I,F,U,p):Je(m,I,F,R,M,U,p):kt(b,m,p)},Je=(b,m,I,F,R,M,U)=>{const h=b.component=bh(b,F,R);if(xa(b)&&(h.ctx.renderer=st),yh(h,!1,U),h.asyncDep){if(R&&R.registerDep(h,se,U),!b.el){const p=h.subTree=Te(hn);E(null,p,m,I)}}else se(h,b,m,I,R,M,U)},kt=(b,m,I)=>{const F=m.component=b.component;if(ch(b,m,I))if(F.asyncDep&&!F.asyncResolved){q(F,m,I);return}else F.next=m,F.update();else m.el=b.el,F.vnode=m},se=(b,m,I,F,R,M,U)=>{const h=()=>{if(b.isMounted){let{next:j,bu:D,u:k,parent:x,vnode:H}=b;{const ze=Ja(b);if(ze){j&&(j.el=H.el,q(b,j,U)),ze.asyncDep.then(()=>{b.isUnmounted||h()});return}}let K=j,we;fn(b,!1),j?(j.el=H.el,q(b,j,U)):j=H,D&&Fr(D),(we=j.props&&j.props.onVnodeBeforeUpdate)&&mt(we,x,j,H),fn(b,!0);const Ee=vi(b),Ne=b.subTree;b.subTree=Ee,S(Ne,Ee,f(Ne.el),Dt(Ne),b,R,M),j.el=Ee.el,K===null&&uh(b,Ee.el),k&&Ye(k,R),(we=j.props&&j.props.onVnodeUpdated)&&Ye(()=>mt(we,x,j,H),R)}else{let j;const{el:D,props:k}=m,{bm:x,m:H,parent:K,root:we,type:Ee}=b,Ne=or(m);if(fn(b,!1),x&&Fr(x),!Ne&&(j=k&&k.onVnodeBeforeMount)&&mt(j,K,m),fn(b,!0),D&&rn){const ze=()=>{b.subTree=vi(b),rn(D,b.subTree,b,R,null)};Ne&&Ee.__asyncHydrate?Ee.__asyncHydrate(D,b,ze):ze()}else{we.ce&&we.ce._injectChildStyle(Ee);const ze=b.subTree=vi(b);S(null,ze,I,F,b,R,M),m.el=ze.el}if(H&&Ye(H,R),!Ne&&(j=k&&k.onVnodeMounted)){const ze=m;Ye(()=>mt(j,K,ze),R)}(m.shapeFlag&256||K&&or(K.vnode)&&K.vnode.shapeFlag&256)&&b.a&&Ye(b.a,R),b.isMounted=!0,m=I=F=null}};b.scope.on();const p=b.effect=new Go(h);b.scope.off();const w=b.update=p.run.bind(p),$=b.job=p.runIfDirty.bind(p);$.i=b,$.id=b.uid,p.scheduler=()=>li($),fn(b,!0),w()},q=(b,m,I)=>{m.component=b;const F=b.vnode.props;b.vnode=m,b.next=null,Gd(b,m.props,F,I),Jd(b,m.children,I),It(),Ta(b),St()},ie=(b,m,I,F,R,M,U,h,p=!1)=>{const w=b&&b.children,$=b?b.shapeFlag:0,j=m.children,{patchFlag:D,shapeFlag:k}=m;if(D>0){if(D&128){Tt(w,j,I,F,R,M,U,h,p);return}else if(D&256){qe(w,j,I,F,R,M,U,h,p);return}}k&8?($&16&&ct(w,R,M),j!==w&&c(I,j)):$&16?k&16?Tt(w,j,I,F,R,M,U,h,p):ct(w,R,M,!0):($&8&&c(I,""),k&16&&N(j,I,F,R,M,U,h,p))},qe=(b,m,I,F,R,M,U,h,p)=>{b=b||Ln,m=m||Ln;const w=b.length,$=m.length,j=Math.min(w,$);let D;for(D=0;D<j;D++){const k=m[D]=p?Bt(m[D]):pt(m[D]);S(b[D],k,I,null,R,M,U,h,p)}w>$?ct(b,R,M,!0,!1,j):N(m,I,F,R,M,U,h,p,j)},Tt=(b,m,I,F,R,M,U,h,p)=>{let w=0;const $=m.length;let j=b.length-1,D=$-1;for(;w<=j&&w<=D;){const k=b[w],x=m[w]=p?Bt(m[w]):pt(m[w]);if(dr(k,x))S(k,x,I,null,R,M,U,h,p);else break;w++}for(;w<=j&&w<=D;){const k=b[j],x=m[D]=p?Bt(m[D]):pt(m[D]);if(dr(k,x))S(k,x,I,null,R,M,U,h,p);else break;j--,D--}if(w>j){if(w<=D){const k=D+1,x=k<$?m[k].el:F;for(;w<=D;)S(null,m[w]=p?Bt(m[w]):pt(m[w]),I,x,R,M,U,h,p),w++}}else if(w>D)for(;w<=j;)Ae(b[w],R,M,!0),w++;else{const k=w,x=w,H=new Map;for(w=x;w<=D;w++){const Qe=m[w]=p?Bt(m[w]):pt(m[w]);Qe.key!=null&&H.set(Qe.key,w)}let K,we=0;const Ee=D-x+1;let Ne=!1,ze=0;const Zn=new Array(Ee);for(w=0;w<Ee;w++)Zn[w]=0;for(w=k;w<=j;w++){const Qe=b[w];if(we>=Ee){Ae(Qe,R,M,!0);continue}let Et;if(Qe.key!=null)Et=H.get(Qe.key);else for(K=x;K<=D;K++)if(Zn[K-x]===0&&dr(Qe,m[K])){Et=K;break}Et===void 0?Ae(Qe,R,M,!0):(Zn[Et-x]=w+1,Et>=ze?ze=Et:Ne=!0,S(Qe,m[Et],I,null,R,M,U,h,p),we++)}const wf=Ne?th(Zn):Ln;for(K=wf.length-1,w=Ee-1;w>=0;w--){const Qe=x+w,Et=m[Qe],kf=Qe+1<$?m[Qe+1].el:F;Zn[w]===0?S(null,Et,I,kf,R,M,U,h,p):Ne&&(K<0||w!==wf[K]?Oe(Et,I,kf,2):K--)}}},Oe=(b,m,I,F,R=null)=>{const{el:M,type:U,transition:h,children:p,shapeFlag:w}=b;if(w&6){Oe(b.component.subTree,m,I,F);return}if(w&128){b.suspense.move(m,I,F);return}if(w&64){U.move(b,m,I,st);return}if(U===xe){r(M,m,I);for(let j=0;j<p.length;j++)Oe(p[j],m,I,F);r(b.anchor,m,I);return}if(U===wi){y(b,m,I);return}if(F!==2&&w&1&&h)if(F===0)h.beforeEnter(M),r(M,m,I),Ye(()=>h.enter(M),R);else{const{leave:j,delayLeave:D,afterLeave:k}=h,x=()=>r(M,m,I),H=()=>{j(M,()=>{x(),k&&k()})};D?D(M,x,H):H()}else r(M,m,I)},Ae=(b,m,I,F=!1,R=!1)=>{const{type:M,props:U,ref:h,children:p,dynamicChildren:w,shapeFlag:$,patchFlag:j,dirs:D,cacheIndex:k}=b;if(j===-2&&(R=!1),h!=null&&ui(h,null,I,b,!0),k!=null&&(m.renderCache[k]=void 0),$&256){m.ctx.deactivate(b);return}const x=$&1&&D,H=!or(b);let K;if(H&&(K=U&&U.onVnodeBeforeUnmount)&&mt(K,m,b),$&6)Cn(b.component,I,F);else{if($&128){b.suspense.unmount(I,F);return}x&&cn(b,null,m,"beforeUnmount"),$&64?b.type.remove(b,m,I,st,F):w&&!w.hasOnce&&(M!==xe||j>0&&j&64)?ct(w,m,I,!1,!0):(M===xe&&j&384||!R&&$&16)&&ct(p,m,I),F&&Qt(b)}(H&&(K=U&&U.onVnodeUnmounted)||x)&&Ye(()=>{K&&mt(K,m,b),x&&cn(b,null,m,"unmounted")},I)},Qt=b=>{const{type:m,el:I,anchor:F,transition:R}=b;if(m===xe){en(I,F);return}if(m===wi){g(b);return}const M=()=>{i(I),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:U,delayLeave:h}=R,p=()=>U(I,M);h?h(b.el,M,p):p()}else M()},en=(b,m)=>{let I;for(;b!==m;)I=d(b),i(b),b=I;i(m)},Cn=(b,m,I)=>{const{bum:F,scope:R,job:M,subTree:U,um:h,m:p,a:w}=b;qa(p),qa(w),F&&Fr(F),R.stop(),M&&(M.flags|=8,Ae(U,b,m,I)),h&&Ye(h,m),Ye(()=>{b.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},ct=(b,m,I,F=!1,R=!1,M=0)=>{for(let U=M;U<b.length;U++)Ae(b[U],m,I,F,R)},Dt=b=>{if(b.shapeFlag&6)return Dt(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const m=d(b.anchor||b.el),I=m&&m[wd];return I?d(I):m};let Ft=!1;const tn=(b,m,I)=>{b==null?m._vnode&&Ae(m._vnode,null,null,!0):S(m._vnode||null,b,m,null,null,null,I),m._vnode=b,Ft||(Ft=!0,Ta(),Ea(),Ft=!1)},st={p:S,um:Ae,m:Oe,r:Qt,mt:Je,mc:N,pc:ie,pbc:Y,n:Dt,o:e};let nn,rn;return{render:tn,hydrate:nn,createApp:Kd(tn,nn)}}function yi({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 fn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function eh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Za(e,t,n=!1){const r=e.children,i=t.children;if(G(r)&&G(i))for(let s=0;s<r.length;s++){const o=r[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Bt(i[s]),a.el=o.el),!n&&a.patchFlag!==-2&&Za(o,a)),a.type===cr&&(a.el=o.el)}}function th(e){const t=e.slice(),n=[0];let r,i,s,o,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(s=0,o=n.length-1;s<o;)a=s+o>>1,e[n[a]]<u?s=a+1:o=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function Ja(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ja(t)}function qa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const nh=Symbol.for("v-scx"),rh=()=>Ge(nh);function dn(e,t,n){return Qa(e,t,n)}function Qa(e,t,n=oe){const{immediate:r,deep:i,flush:s,once:o}=n,a=Pe({},n);let l;if(as)if(s==="sync"){const d=rh();l=d.__watcherHandles||(d.__watcherHandles=[])}else if(!t||r)a.once=!0;else{const d=()=>{};return d.stop=ut,d.resume=ut,d.pause=ut,d}const u=Ce;a.call=(d,_,v)=>ft(d,u,_,v);let c=!1;s==="post"?a.scheduler=d=>{Ye(d,u&&u.suspense)}:s!=="sync"&&(c=!0,a.scheduler=(d,_)=>{_?d():li(d)}),a.augmentJob=d=>{t&&(d.flags|=4),c&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const f=fd(e,t,a);return l&&l.push(f),f}function sh(e,t,n){const r=this.proxy,i=ke(e)?e.includes(".")?el(r,e):()=>r[e]:e.bind(r,r);let s;Z(t)?s=t:(s=t.handler,n=t);const o=pr(this),a=Qa(i,s.bind(r),n);return o(),a}function el(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 ih=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${it(t)}Modifiers`]||e[`${Ut(t)}Modifiers`];function oh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||oe;let i=n;const s=t.startsWith("update:"),o=s&&ih(r,t.slice(7));o&&(o.trim&&(i=n.map(c=>ke(c)?c.trim():c)),o.number&&(i=n.map(Ks)));let a,l=r[a=Hs(t)]||r[a=Hs(it(t))];!l&&s&&(l=r[a=Hs(Ut(t))]),l&&ft(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,ft(u,e,6,i)}}function tl(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!Z(e)){const l=u=>{const c=tl(u,t,!0);c&&(a=!0,Pe(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(be(e)&&r.set(e,null),null):(G(s)?s.forEach(l=>o[l]=null):Pe(o,s),be(e)&&r.set(e,o),o)}function ss(e,t){return!e||!Rr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ut(t))||ae(e,t))}function $w(){}function vi(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:_,ctx:v,inheritAttrs:S}=e,T=es(e);let E,L;try{if(n.shapeFlag&4){const g=i||r,O=g;E=pt(u.call(O,g,c,f,_,d,v)),L=a}else{const g=t;E=pt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),L=t.props?a:ah(a)}}catch(g){ur.length=0,Qr(g,e,1),E=Te(hn)}let y=E;if(L&&S!==!1){const g=Object.keys(L),{shapeFlag:O}=y;g.length&&O&7&&(s&&g.some(js)&&(L=lh(L,s)),y=Mn(y,L,!1,!0))}return n.dirs&&(y=Mn(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&ci(y,n.transition),E=y,es(T),E}const ah=e=>{let t;for(const n in e)(n==="class"||n==="style"||Rr(n))&&((t||(t={}))[n]=e[n]);return t},lh=(e,t)=>{const n={};for(const r in e)(!js(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ch(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?nl(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!ss(u,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?nl(r,o,u):!0:!!o;return!1}function nl(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 s=r[i];if(t[s]!==e[s]&&!ss(n,s))return!0}return!1}function uh({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const rl=e=>e.__isSuspense;function fh(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):bd(e)}const xe=Symbol.for("v-fgt"),cr=Symbol.for("v-txt"),hn=Symbol.for("v-cmt"),wi=Symbol.for("v-stc"),ur=[];let Xe=null;function J(e=!1){ur.push(Xe=e?null:[])}function dh(){ur.pop(),Xe=ur[ur.length-1]||null}let fr=1;function sl(e){fr+=e,e<0&&Xe&&(Xe.hasOnce=!0)}function il(e){return e.dynamicChildren=fr>0?Xe||Ln:null,dh(),fr>0&&Xe&&Xe.push(e),e}function ee(e,t,n,r,i,s){return il(ce(e,t,n,r,i,s,!0))}function zt(e,t,n,r,i){return il(Te(e,t,n,r,i,!0))}function ki(e){return e?e.__v_isVNode===!0:!1}function dr(e,t){return e.type===t.type&&e.key===t.key}const ol=({key:e})=>e??null,is=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||ve(e)||Z(e)?{i:We,r:e,k:t,f:!!n}:e:null);function ce(e,t=null,n=null,r=0,i=null,s=e===xe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ol(t),ref:t&&is(t),scopeId:Sa,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:We};return a?(Ti(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),fr>0&&!o&&Xe&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Xe.push(l),l}const Te=hh;function hh(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Rd)&&(e=hn),ki(e)){const a=Mn(e,t,!0);return n&&Ti(a,n),fr>0&&!s&&Xe&&(a.shapeFlag&6?Xe[Xe.indexOf(e)]=a:Xe.push(a)),a.patchFlag=-2,a}if(Ih(e)&&(e=e.__vccOpts),t){t=ph(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=Ur(a)),be(l)&&(ni(l)&&!G(l)&&(l=Pe({},l)),t.style=jr(l))}const o=ke(e)?1:rl(e)?128:kd(e)?64:be(e)?4:Z(e)?2:0;return ce(e,t,n,r,i,o,s,!0)}function ph(e){return e?ni(e)||Ha(e)?Pe({},e):e:null}function Mn(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=e,u=t?mh(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ol(u),ref:t&&t.ref?n&&s?G(s)?s.concat(is(t)):[s,is(t)]:is(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mn(e.ssContent),ssFallback:e.ssFallback&&Mn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ci(c,l.clone(c)),c}function pn(e=" ",t=0){return Te(cr,null,e,t)}function De(e="",t=!1){return t?(J(),zt(hn,null,e)):Te(hn,null,e)}function pt(e){return e==null||typeof e=="boolean"?Te(hn):G(e)?Te(xe,null,e.slice()):typeof e=="object"?Bt(e):Te(cr,null,String(e))}function Bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mn(e)}function Ti(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Ti(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ha(t)?t._ctx=We:i===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Z(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[pn(t)]):n=8);e.children=t,e.shapeFlag|=n}function mh(...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=Ur([t.class,r.class]));else if(i==="style")t.style=jr([t.style,r.style]);else if(Rr(i)){const s=t[i],o=r[i];o&&s!==o&&!(G(s)&&s.includes(o))&&(t[i]=s?[].concat(s,o):o)}else i!==""&&(t[i]=r[i])}return t}function mt(e,t,n,r=null){ft(e,t,7,[n,r])}const gh=ja();let _h=0;function bh(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||gh,s={uid:_h++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new zo(!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:Va(r,i),emitsOptions:tl(r,i),emit:null,emitted:null,propsDefaults:oe,inheritAttrs:r.inheritAttrs,ctx:oe,data:oe,props:oe,attrs:oe,slots:oe,refs:oe,setupState:oe,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=oh.bind(null,s),e.ce&&e.ce(s),s}let Ce=null;const hr=()=>Ce||We;let os,Ei;{const e=Wo(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};os=t("__VUE_INSTANCE_SETTERS__",n=>Ce=n),Ei=t("__VUE_SSR_SETTERS__",n=>as=n)}const pr=e=>{const t=Ce;return os(e),e.scope.on(),()=>{e.scope.off(),os(t)}},al=()=>{Ce&&Ce.scope.off(),os(null)};function ll(e){return e.vnode.shapeFlag&4}let as=!1;function yh(e,t=!1,n=!1){t&&Ei(t);const{props:r,children:i}=e.vnode,s=ll(e);Bd(e,r,s,t),Zd(e,i,n);const o=s?vh(e,t):void 0;return t&&Ei(!1),o}function vh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Md);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?kh(e):null,s=pr(e);It();const o=Pn(r,e,0,[e.props,i]);if(St(),s(),Mo(o)){if(or(e)||Oa(e),o.then(al,al),t)return o.then(a=>{cl(e,a,t)}).catch(a=>{Qr(a,e,0)});e.asyncDep=o}else cl(e,o,t)}else fl(e,t)}function cl(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=ba(t)),fl(e,n)}let ul;function fl(e,t,n){const r=e.type;if(!e.render){if(!t&&ul&&!r.render){const i=r.template||mi(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Pe(Pe({isCustomElement:s,delimiters:a},o),l);r.render=ul(i,u)}}e.render=r.render||ut}{const i=pr(e);It();try{Dd(e)}finally{St(),i()}}}const wh={get(e,t){return $e(e,"get",""),e[t]}};function kh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wh),slots:e.slots,emit:e.emit,expose:t}}function ls(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ba(ri(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ar)return ar[n](e)},has(t,n){return n in t||n in ar}})):e.proxy}const Th=/(?:^|[-_])(\w)/g,Eh=e=>e.replace(Th,t=>t.toUpperCase()).replace(/[-_]/g,"");function dl(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function hl(e,t,n=!1){let r=dl(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=s=>{for(const o in s)if(s[o]===t)return o};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?Eh(r):n?"App":"Anonymous"}function Ih(e){return Z(e)&&"__vccOpts"in e}const Ke=(e,t)=>cd(e,t,as);function mr(e,t,n){const r=arguments.length;return r===2?be(t)&&!G(t)?ki(t)?Te(e,null,[t]):Te(e,t):Te(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ki(n)&&(n=[n]),Te(e,t,n))}const Sh="3.5.8";/**
17
17
  * @vue/runtime-dom v3.5.8
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/let wi;const fl=typeof window<"u"&&window.trustedTypes;if(fl)try{wi=fl.createPolicy("vue",{createHTML:e=>e})}catch{}const dl=wi?e=>wi.createHTML(e):e=>e,Eh="http://www.w3.org/2000/svg",Ih="http://www.w3.org/1998/Math/MathML",Ct=typeof document<"u"?document:null,hl=Ct&&Ct.createElement("template"),Sh={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"?Ct.createElementNS(Eh,e):t==="mathml"?Ct.createElementNS(Ih,e):n?Ct.createElement(e,{is:n}):Ct.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ct.createTextNode(e),createComment:e=>Ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{hl.innerHTML=dl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=hl.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[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Oh=Symbol("_vtc");function xh(e,t,n){const r=e[Oh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const pl=Symbol("_vod"),Ch=Symbol("_vsh"),Lh=Symbol(""),Ah=/(^|;)\s*display\s*:/;function Nh(e,t,n){const r=e.style,i=ke(n);let s=!1;if(n&&!i){if(t)if(ke(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&as(r,a,"")}else for(const o in t)n[o]==null&&as(r,o,"");for(const o in n)o==="display"&&(s=!0),as(r,o,n[o])}else if(i){if(t!==n){const o=r[Lh];o&&(n+=";"+o),r.cssText=n,s=Ah.test(n)}}else t&&e.removeAttribute("style");pl in e&&(e[pl]=s?r.display:"",e[Ch]&&(r.display="none"))}const ml=/\s*!important$/;function as(e,t,n){if(B(n))n.forEach(r=>as(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Ph(e,t);ml.test(n)?e.setProperty(Ft(r),n.replace(ml,""),"important"):e[r]=n}}const gl=["Webkit","Moz","ms"],ki={};function Ph(e,t){const n=ki[t];if(n)return n;let r=st(t);if(r!=="filter"&&r in e)return ki[t]=r;r=$r(r);for(let i=0;i<gl.length;i++){const s=gl[i]+r;if(s in e)return ki[t]=s}return t}const _l="http://www.w3.org/1999/xlink";function bl(e,t,n,r,i,s=Cf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(_l,t.slice(6,t.length)):e.setAttributeNS(_l,t,n):n==null||s&&!Fo(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Dt(n)?String(n):n)}function Rh(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?dl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Fo(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Dn(e,t,n,r){e.addEventListener(t,n,r)}function $h(e,t,n,r){e.removeEventListener(t,n,r)}const yl=Symbol("_vei");function Mh(e,t,n,r,i=null){const s=e[yl]||(e[yl]={}),o=s[t];if(r&&o)o.value=r;else{const[a,l]=Dh(t);if(r){const u=s[t]=Uh(r,i);Dn(e,a,u,l)}else o&&($h(e,a,o,l),s[t]=void 0)}}const vl=/(?:Once|Passive|Capture)$/;function Dh(e){let t;if(vl.test(e)){t={};let r;for(;r=e.match(vl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ft(e.slice(2)),t]}let Ti=0;const Fh=Promise.resolve(),jh=()=>Ti||(Fh.then(()=>Ti=0),Ti=Date.now());function Uh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ft(Wh(r,n.value),t,5,[r])};return n.value=e,n.attached=jh(),n}function Wh(e,t){if(B(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 wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hh=(e,t,n,r,i,s)=>{const o=i==="svg";t==="class"?xh(e,r,o):t==="style"?Nh(e,n,r):Nr(t)?$s(t)||Mh(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Kh(e,t,r,o))?(Rh(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&bl(e,t,r,o,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),bl(e,t,r,o))};function Kh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&wl(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return wl(t)&&ke(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!ke(n)))}const kl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Mr(t,n):t};function Vh(e){e.target.composing=!0}function Tl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ei=Symbol("_assign"),zh={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ei]=kl(i);const s=r||i.props&&i.props.type==="number";Dn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=js(a)),e[Ei](a)}),n&&Dn(e,"change",()=>{e.value=e.value.trim()}),t||(Dn(e,"compositionstart",Vh),Dn(e,"compositionend",Tl),Dn(e,"change",Tl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},o){if(e[Ei]=kl(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?js(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},Bh=["ctrl","shift","alt","meta"],Gh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Bh.some(n=>e[`${n}Key`]&&!t.includes(n))},Yh=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...s)=>{for(let o=0;o<t.length;o++){const a=Gh[t[o]];if(a&&a(i,t))return}return e(i,...s)})},Xh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},El=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const s=Ft(i.key);if(t.some(o=>o===s||Xh[o]===s))return e(i)})},Zh=Ne({patchProp:Hh},Sh);let Il;function Jh(){return Il||(Il=Xd(Zh))}const qh=(...e)=>{const t=Jh().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=ep(r);if(!i)return;const s=t._component;!X(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,Qh(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Qh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ep(e){return ke(e)?document.querySelector(e):e}var tp=!1;/*!
20
+ **/let Ii;const pl=typeof window<"u"&&window.trustedTypes;if(pl)try{Ii=pl.createPolicy("vue",{createHTML:e=>e})}catch{}const ml=Ii?e=>Ii.createHTML(e):e=>e,Oh="http://www.w3.org/2000/svg",xh="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,gl=At&&At.createElement("template"),Ch={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"?At.createElementNS(Oh,e):t==="mathml"?At.createElementNS(xh,e):n?At.createElement(e,{is:n}):At.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>At.createTextNode(e),createComment:e=>At.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>At.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{gl.innerHTML=ml(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=gl.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[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Lh=Symbol("_vtc");function Ah(e,t,n){const r=e[Lh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const _l=Symbol("_vod"),Nh=Symbol("_vsh"),Ph=Symbol(""),Rh=/(^|;)\s*display\s*:/;function $h(e,t,n){const r=e.style,i=ke(n);let s=!1;if(n&&!i){if(t)if(ke(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&cs(r,a,"")}else for(const o in t)n[o]==null&&cs(r,o,"");for(const o in n)o==="display"&&(s=!0),cs(r,o,n[o])}else if(i){if(t!==n){const o=r[Ph];o&&(n+=";"+o),r.cssText=n,s=Rh.test(n)}}else t&&e.removeAttribute("style");_l in e&&(e[_l]=s?r.display:"",e[Nh]&&(r.display="none"))}const bl=/\s*!important$/;function cs(e,t,n){if(G(n))n.forEach(r=>cs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Mh(e,t);bl.test(n)?e.setProperty(Ut(r),n.replace(bl,""),"important"):e[r]=n}}const yl=["Webkit","Moz","ms"],Si={};function Mh(e,t){const n=Si[t];if(n)return n;let r=it(t);if(r!=="filter"&&r in e)return Si[t]=r;r=Dr(r);for(let i=0;i<yl.length;i++){const s=yl[i]+r;if(s in e)return Si[t]=s}return t}const vl="http://www.w3.org/1999/xlink";function wl(e,t,n,r,i,s=Nf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(vl,t.slice(6,t.length)):e.setAttributeNS(vl,t,n):n==null||s&&!Ho(n)?e.removeAttribute(t):e.setAttribute(t,s?"":jt(n)?String(n):n)}function Dh(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ml(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Ho(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function Dn(e,t,n,r){e.addEventListener(t,n,r)}function Fh(e,t,n,r){e.removeEventListener(t,n,r)}const kl=Symbol("_vei");function jh(e,t,n,r,i=null){const s=e[kl]||(e[kl]={}),o=s[t];if(r&&o)o.value=r;else{const[a,l]=Uh(t);if(r){const u=s[t]=Kh(r,i);Dn(e,a,u,l)}else o&&(Fh(e,a,o,l),s[t]=void 0)}}const Tl=/(?:Once|Passive|Capture)$/;function Uh(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):Ut(e.slice(2)),t]}let Oi=0;const Wh=Promise.resolve(),Hh=()=>Oi||(Wh.then(()=>Oi=0),Oi=Date.now());function Kh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ft(Vh(r,n.value),t,5,[r])};return n.value=e,n.attached=Hh(),n}function Vh(e,t){if(G(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 El=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,zh=(e,t,n,r,i,s)=>{const o=i==="svg";t==="class"?Ah(e,r,o):t==="style"?$h(e,n,r):Rr(t)?js(t)||jh(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Bh(e,t,r,o))?(Dh(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&wl(e,t,r,o,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),wl(e,t,r,o))};function Bh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&El(t)&&Z(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return El(t)&&ke(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!ke(n)))}const Il=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>Fr(t,n):t};function Gh(e){e.target.composing=!0}function Sl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xi=Symbol("_assign"),Yh={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[xi]=Il(i);const s=r||i.props&&i.props.type==="number";Dn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Ks(a)),e[xi](a)}),n&&Dn(e,"change",()=>{e.value=e.value.trim()}),t||(Dn(e,"compositionstart",Gh),Dn(e,"compositionend",Sl),Dn(e,"change",Sl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},o){if(e[xi]=Il(o),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Ks(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},Xh=["ctrl","shift","alt","meta"],Zh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Xh.some(n=>e[`${n}Key`]&&!t.includes(n))},Jh=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...s)=>{for(let o=0;o<t.length;o++){const a=Zh[t[o]];if(a&&a(i,t))return}return e(i,...s)})},qh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ol=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const s=Ut(i.key);if(t.some(o=>o===s||qh[o]===s))return e(i)})},Qh=Pe({patchProp:zh},Ch);let xl;function ep(){return xl||(xl=qd(Qh))}const tp=(...e)=>{const t=ep().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=rp(r);if(!i)return;const s=t._component;!Z(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,np(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function np(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rp(e){return ke(e)?document.querySelector(e):e}var sp=!1;/*!
21
21
  * pinia v2.2.2
22
22
  * (c) 2024 Eduardo San Martin Morote
23
23
  * @license MIT
24
- */let Sl;const ls=e=>Sl=e,Ol=Symbol();function Ii(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var pr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(pr||(pr={}));function np(){const e=Ws(!0),t=e.run(()=>te({}));let n=[],r=[];const i=Qs({install(s){ls(i),i._a=s,s.provide(Ol,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!tp?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const xl=()=>{};function Cl(e,t,n,r=xl){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Ho()&&Lf(i),i}function Fn(e,...t){e.slice().forEach(n=>{n(...t)})}const rp=e=>e(),Ll=Symbol(),Si=Symbol();function Oi(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Ii(i)&&Ii(r)&&e.hasOwnProperty(n)&&!ve(r)&&!Wt(r)?e[n]=Oi(i,r):e[n]=r}return e}const sp=Symbol();function ip(e){return!Ii(e)||!e.hasOwnProperty(sp)}const{assign:Vt}=Object;function op(e){return!!(ve(e)&&e.effect)}function ap(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=i?i():{});const c=nd(n.state.value[e]);return Vt(c,s,Object.keys(o||{}).reduce((f,d)=>(f[d]=Qs(Ke(()=>{ls(n);const m=n._s.get(e);return o[d].call(m,m)})),f),{}))}return l=Al(e,u,t,n,r,!0),l}function Al(e,t,n={},r,i,s){let o;const a=Vt({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],m;const v=r.state.value[e];!s&&!v&&(r.state.value[e]={}),te({});let E;function k(N){let P;u=c=!1,typeof N=="function"?(N(r.state.value[e]),P={type:pr.patchFunction,storeId:e,events:m}):(Oi(r.state.value[e],N),P={type:pr.patchObject,payload:N,storeId:e,events:m});const K=E=Symbol();_a().then(()=>{E===K&&(u=!0)}),c=!0,Fn(f,P,r.state.value[e])}const S=s?function(){const{state:P}=n,K=P?P():{};this.$patch(re=>{Vt(re,K)})}:xl;function L(){o.stop(),f=[],d=[],r._s.delete(e)}const y=(N,P="")=>{if(Ll in N)return N[Si]=P,N;const K=function(){ls(r);const re=Array.from(arguments),G=[],he=[];function lt(Z){G.push(Z)}function vt(Z){he.push(Z)}Fn(d,{args:re,name:K[Si],store:O,after:lt,onError:vt});let se;try{se=N.apply(this&&this.$id===e?this:O,re)}catch(Z){throw Fn(he,Z),Z}return se instanceof Promise?se.then(Z=>(Fn(G,Z),Z)).catch(Z=>(Fn(he,Z),Promise.reject(Z))):(Fn(G,se),se)};return K[Ll]=!0,K[Si]=P,K},_={_p:r,$id:e,$onAction:Cl.bind(null,d),$patch:k,$reset:S,$subscribe(N,P={}){const K=Cl(f,N,P.detached,()=>re()),re=o.run(()=>un(()=>r.state.value[e],G=>{(P.flush==="sync"?c:u)&&N({storeId:e,type:pr.direct,events:m},G)},Vt({},l,P)));return K},$dispose:L},O=Gr(_);r._s.set(e,O);const A=(r._a&&r._a.runWithContext||rp)(()=>r._e.run(()=>(o=Ws()).run(()=>t({action:y}))));for(const N in A){const P=A[N];if(ve(P)&&!op(P)||Wt(P))s||(v&&ip(P)&&(ve(P)?P.value=v[N]:Oi(P,v[N])),r.state.value[e][N]=P);else if(typeof P=="function"){const K=y(P,N);A[N]=K,a.actions[N]=P}}return Vt(O,A),Vt(ee(O),A),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:N=>{k(P=>{Vt(P,N)})}}),r._p.forEach(N=>{Vt(O,o.run(()=>N({store:O,app:r._a,pinia:r,options:a})))}),v&&s&&n.hydrate&&n.hydrate(O.$state,v),u=!0,c=!0,O}function lp(e,t,n){let r,i;const s=typeof t=="function";r=e,i=s?n:t;function o(a,l){const u=Hd();return a=a||(u?Ge(Ol,null):null),a&&ls(a),a=Sl,a._s.has(r)||(s?Al(r,t,i,a):ap(r,i,a)),a._s.get(r)}return o.$id=r,o}const Nl=Symbol("$auth0");function mt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}typeof SuppressedError=="function"&&SuppressedError;var hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ci(e,t){return e(t={exports:{}},t.exports),t.exports}var pn=Ci(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var i=this;this.locked=new Map,this.addToLocked=function(s,o){var a=i.locked.get(s);a===void 0?o===void 0?i.locked.set(s,[]):i.locked.set(s,[o]):o!==void 0&&(a.unshift(o),i.locked.set(s,a))},this.isLocked=function(s){return i.locked.has(s)},this.lock=function(s){return new Promise(function(o,a){i.isLocked(s)?i.addToLocked(s,o):(i.addToLocked(s),o())})},this.unlock=function(s){var o=i.locked.get(s);if(o!==void 0&&o.length!==0){var a=o.pop();i.locked.set(s,o),a!==void 0&&setTimeout(a,0)}else i.locked.delete(s)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});xi(pn);var cp=xi(Ci(function(e,t){var n=hn&&hn.__awaiter||function(c,f,d,m){return new(d||(d=Promise))(function(v,E){function k(y){try{L(m.next(y))}catch(_){E(_)}}function S(y){try{L(m.throw(y))}catch(_){E(_)}}function L(y){y.done?v(y.value):new d(function(_){_(y.value)}).then(k,S)}L((m=m.apply(c,f||[])).next())})},r=hn&&hn.__generator||function(c,f){var d,m,v,E,k={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return E={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(L){return function(y){return function(_){if(d)throw new TypeError("Generator is already executing.");for(;k;)try{if(d=1,m&&(v=2&_[0]?m.return:_[0]?m.throw||((v=m.return)&&v.call(m),0):m.next)&&!(v=v.call(m,_[1])).done)return v;switch(m=0,v&&(_=[2&_[0],v.value]),_[0]){case 0:case 1:v=_;break;case 4:return k.label++,{value:_[1],done:!1};case 5:k.label++,m=_[1],_=[0];continue;case 7:_=k.ops.pop(),k.trys.pop();continue;default:if(!((v=(v=k.trys).length>0&&v[v.length-1])||_[0]!==6&&_[0]!==2)){k=0;continue}if(_[0]===3&&(!v||_[1]>v[0]&&_[1]<v[3])){k.label=_[1];break}if(_[0]===6&&k.label<v[1]){k.label=v[1],v=_;break}if(v&&k.label<v[2]){k.label=v[2],k.ops.push(_);break}v[2]&&k.ops.pop(),k.trys.pop();continue}_=f.call(c,k)}catch(O){_=[6,O],m=0}finally{d=v=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([L,y])}}},i=hn;Object.defineProperty(t,"__esModule",{value:!0});var s="browser-tabs-lock-key",o={key:function(c){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},getItem:function(c){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},clear:function(){return n(i,void 0,void 0,function(){return r(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},setItem:function(c,f){return n(i,void 0,void 0,function(){return r(this,function(d){throw new Error("Unsupported")})})},keySync:function(c){return window.localStorage.key(c)},getItemSync:function(c){return window.localStorage.getItem(c)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(c){return window.localStorage.removeItem(c)},setItemSync:function(c,f){return window.localStorage.setItem(c,f)}};function a(c){return new Promise(function(f){return setTimeout(f,c)})}function l(c){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",m=0;m<c;m++)d+=f[Math.floor(Math.random()*f.length)];return d}var u=function(){function c(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=f,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var m,v,E,k,S,L,y;return r(this,function(_){switch(_.label){case 0:m=Date.now()+l(4),v=Date.now()+d,E=s+"-"+f,k=this.storageHandler===void 0?o:this.storageHandler,_.label=1;case 1:return Date.now()<v?[4,a(30)]:[3,8];case 2:return _.sent(),k.getItemSync(E)!==null?[3,5]:(S=this.id+"-"+f+"-"+m,[4,a(Math.floor(25*Math.random()))]);case 3:return _.sent(),k.setItemSync(E,JSON.stringify({id:this.id,iat:m,timeoutKey:S,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return _.sent(),(L=k.getItemSync(E))!==null&&(y=JSON.parse(L)).id===this.id&&y.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(E,m),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(v)];case 6:_.sent(),_.label=7;case 7:return m=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,function(){var m=this;return r(this,function(v){return setTimeout(function(){return n(m,void 0,void 0,function(){var E,k,S;return r(this,function(L){switch(L.label){case 0:return[4,pn.default().lock(d)];case 1:return L.sent(),this.acquiredIatSet.has(d)?(E=this.storageHandler===void 0?o:this.storageHandler,(k=E.getItemSync(f))===null?(pn.default().unlock(d),[2]):((S=JSON.parse(k)).timeRefreshed=Date.now(),E.setItemSync(f,JSON.stringify(S)),pn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(pn.default().unlock(d),[2])}})})},1e3),[2]})})},c.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,new Promise(function(m){var v=!1,E=Date.now(),k=!1;function S(){if(k||(window.removeEventListener("storage",S),c.removeFromWaiting(S),clearTimeout(L),k=!0),!v){v=!0;var y=50-(Date.now()-E);y>0?setTimeout(m,y):m(null)}}window.addEventListener("storage",S),c.addToWaiting(S);var L=setTimeout(S,Math.max(0,f-Date.now()))})];case 1:return d.sent(),[2]}})})},c.addToWaiting=function(f){this.removeFromWaiting(f),c.waiters!==void 0&&c.waiters.push(f)},c.removeFromWaiting=function(f){c.waiters!==void 0&&(c.waiters=c.waiters.filter(function(d){return d!==f}))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach(function(f){return f()})},c.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}})})},c.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var d,m,v,E;return r(this,function(k){switch(k.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,m=s+"-"+f,(v=d.getItemSync(m))===null?[2]:(E=JSON.parse(v)).id!==this.id?[3,2]:[4,pn.default().lock(E.iat)];case 1:k.sent(),this.acquiredIatSet.delete(E.iat),d.removeItemSync(m),pn.default().unlock(E.iat),c.notifyWaiters(),k.label=2;case 2:return[2]}})})},c.lockCorrector=function(f){for(var d=Date.now()-5e3,m=f,v=[],E=0;;){var k=m.keySync(E);if(k===null)break;v.push(k),E++}for(var S=!1,L=0;L<v.length;L++){var y=v[L];if(y.includes(s)){var _=m.getItemSync(y);if(_!==null){var O=JSON.parse(_);(O.timeRefreshed===void 0&&O.timeAcquired<d||O.timeRefreshed!==void 0&&O.timeRefreshed<d)&&(m.removeItemSync(y),S=!0)}}}S&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=u}));const up={timeoutInSeconds:60},Pl={name:"auth0-spa-js",version:"2.1.3"},Rl=()=>Date.now();class Fe extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Fe.prototype)}static fromPayload({error:t,error_description:n}){return new Fe(t,n)}}class Li extends Fe{constructor(t,n,r,i=null){super(t,n),this.state=r,this.appState=i,Object.setPrototypeOf(this,Li.prototype)}}class mr extends Fe{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,mr.prototype)}}class Ai extends mr{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Ai.prototype)}}class Ni extends Fe{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Ni.prototype)}}class Pi extends Fe{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Pi.prototype)}}class cs extends Fe{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${$l(t,["default"])}', scope: '${$l(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,cs.prototype)}}function $l(e,t=[]){return e&&!t.includes(e)?e:""}const us=()=>window.crypto,Ri=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(us().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Ml=e=>btoa(e),$i=e=>{var{clientId:t}=e,n=mt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(i=>r[i]!==void 0).reduce((i,s)=>Object.assign(Object.assign({},i),{[s]:r[s]}),{}))(Object.assign({client_id:t},n))).toString()},Dl=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),fp=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},dp=async(e,t,n,r,i,s,o=1e4)=>i?(async(a,l,u,c,f,d,m)=>{return v={auth:{audience:l,scope:u},timeout:f,fetchUrl:a,fetchOptions:c,useFormData:m},E=d,new Promise(function(k,S){const L=new MessageChannel;L.port1.onmessage=function(y){y.data.error?S(new Error(y.data.error)):k(y.data),L.port1.close()},E.postMessage(v,[L.port2])});var v,E})(e,t,n,r,o,i,s):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([fp(a,l),new Promise((d,m)=>{f=setTimeout(()=>{c.abort(),m(new Error("Timeout when executing 'fetch'"))},u)})]).finally(()=>{clearTimeout(f)})})(e,r,o);async function hp(e,t){var{baseUrl:n,timeout:r,audience:i,scope:s,auth0Client:o,useFormData:a}=e,l=mt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?$i(l):JSON.stringify(l);return await async function(c,f,d,m,v,E,k){let S,L=null;for(let N=0;N<3;N++)try{S=await dp(c,d,m,v,E,k,f),L=null;break}catch(P){L=P}if(L)throw L;const y=S.json,{error:_,error_description:O}=y,C=mt(y,["error","error_description"]),{ok:A}=S;if(!A){const N=O||`HTTP error. Unable to fetch ${c}`;throw _==="mfa_required"?new Pi(_,N,C.mfa_token):_==="missing_refresh_token"?new cs(d,m):new Fe(_||"request_error",N)}return C}(`${n}/oauth/token`,r,i||"default",s,{method:"POST",body:u,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Pl))}},t,a)}const fs=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class gt{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,i,s]=t.split("::");return new gt({clientId:r,scope:s,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:i}=t;return new gt({scope:n,audience:r,clientId:i})}}class pp{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class Fl{constructor(){this.enclosedCache=function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class mp{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Rl}async setIdToken(t,n,r){var i;const s=this.getIdTokenCacheKey(t);await this.cache.set(s,{id_token:n,decodedToken:r}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(s))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var r;let i=await this.cache.get(t.toKey());if(!i){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(i=await this.cache.get(l))}if(!i)return;const s=await this.nowProvider(),o=Math.floor(s/1e3);return i.expiresAt-n<o?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):i.body}async set(t){var n;const r=new gt({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter(i=>!t||i.includes(t)).reduce(async(i,s)=>{await i,await this.cache.remove(s)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new gt({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var i;const s=gt.fromKey(r),o=new Set(s.scope&&s.scope.split(" ")),a=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=s.scope&&a.reduce((u,c)=>u&&o.has(c),!0);return s.prefix==="@@auth0spajs@@"&&s.clientId===t.clientId&&s.audience===t.audience&&l})[0]}}class gp{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const gr=e=>typeof e=="number",_p=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var mn=Ci(function(e,t){var n=hn&&hn.__assign||function(){return n=Object.assign||function(l){for(var u,c=1,f=arguments.length;c<f;c++)for(var d in u=arguments[c])Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var c="; "+l;return u===!0?c:c+"="+u}function i(l,u,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(f){if(typeof f.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*f.expires),f.expires=d}return r("Expires",f.expires?f.expires.toUTCString():"")+r("Domain",f.domain)+r("Path",f.path)+r("Secure",f.secure)+r("SameSite",f.sameSite)}(c)}function s(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<c.length;d++){var m=c[d].split("="),v=m.slice(1).join("=");v.charAt(0)==='"'&&(v=v.slice(1,-1));try{u[m[0].replace(f,decodeURIComponent)]=v.replace(f,decodeURIComponent)}catch{}}return u}function o(){return s(document.cookie)}function a(l,u,c){document.cookie=i(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=i,t.parse=s,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}});xi(mn),mn.encode,mn.parse,mn.getAll;var bp=mn.get,jl=mn.set,Ul=mn.remove;const jn={get(e){const t=bp(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),jl(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ul(e,n)}},yp={get:e=>jn.get(e)||jn.get(`_legacy_${e}`),save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),jl(`_legacy_${e}`,JSON.stringify(t),r),jn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ul(e,n),jn.remove(e,t),jn.remove(`_legacy_${e}`,t)}},vp={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var Mi,wp=function(e){return Mi=Mi||function(t,n,r){var i=function(l,u){var c=atob(l);return c}(t),s=i.indexOf(`
25
- `,10)+1,o=i.substring(s)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(Mi,e)};const Di={};class kp{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(t),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(t),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const Tp={memory:()=>new Fl().enclosedCache,localstorage:()=>new pp},Wl=e=>Tp[e],Hl=e=>{const{openUrl:t,onRedirect:n}=e,r=mt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},Fi=new cp;class Ep{constructor(t){let n,r;if(this.userCache=new Fl().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Fi.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!us())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(us().subtle===void 0)throw new Error(`
24
+ */let Cl;const us=e=>Cl=e,Ll=Symbol();function Ci(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var gr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(gr||(gr={}));function ip(){const e=zs(!0),t=e.run(()=>re({}));let n=[],r=[];const i=ri({install(s){us(i),i._a=s,s.provide(Ll,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!sp?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Al=()=>{};function Nl(e,t,n,r=Al){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Bo()&&Pf(i),i}function Fn(e,...t){e.slice().forEach(n=>{n(...t)})}const op=e=>e(),Pl=Symbol(),Li=Symbol();function Ai(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Ci(i)&&Ci(r)&&e.hasOwnProperty(n)&&!ve(r)&&!Kt(r)?e[n]=Ai(i,r):e[n]=r}return e}const ap=Symbol();function lp(e){return!Ci(e)||!e.hasOwnProperty(ap)}const{assign:Gt}=Object;function cp(e){return!!(ve(e)&&e.effect)}function up(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=i?i():{});const c=id(n.state.value[e]);return Gt(c,s,Object.keys(o||{}).reduce((f,d)=>(f[d]=ri(Ke(()=>{us(n);const _=n._s.get(e);return o[d].call(_,_)})),f),{}))}return l=Rl(e,u,t,n,r,!0),l}function Rl(e,t,n={},r,i,s){let o;const a=Gt({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],_;const v=r.state.value[e];!s&&!v&&(r.state.value[e]={}),re({});let S;function T(N){let P;u=c=!1,typeof N=="function"?(N(r.state.value[e]),P={type:gr.patchFunction,storeId:e,events:_}):(Ai(r.state.value[e],N),P={type:gr.patchObject,payload:N,storeId:e,events:_});const Y=S=Symbol();wa().then(()=>{S===Y&&(u=!0)}),c=!0,Fn(f,P,r.state.value[e])}const E=s?function(){const{state:P}=n,Y=P?P():{};this.$patch(te=>{Gt(te,Y)})}:Al;function L(){o.stop(),f=[],d=[],r._s.delete(e)}const y=(N,P="")=>{if(Pl in N)return N[Li]=P,N;const Y=function(){us(r);const te=Array.from(arguments),V=[],he=[];function Je(q){V.push(q)}function kt(q){he.push(q)}Fn(d,{args:te,name:Y[Li],store:O,after:Je,onError:kt});let se;try{se=N.apply(this&&this.$id===e?this:O,te)}catch(q){throw Fn(he,q),q}return se instanceof Promise?se.then(q=>(Fn(V,q),q)).catch(q=>(Fn(he,q),Promise.reject(q))):(Fn(V,se),se)};return Y[Pl]=!0,Y[Li]=P,Y},g={_p:r,$id:e,$onAction:Nl.bind(null,d),$patch:T,$reset:E,$subscribe(N,P={}){const Y=Nl(f,N,P.detached,()=>te()),te=o.run(()=>dn(()=>r.state.value[e],V=>{(P.flush==="sync"?c:u)&&N({storeId:e,type:gr.direct,events:_},V)},Gt({},l,P)));return Y},$dispose:L},O=Xr(g);r._s.set(e,O);const A=(r._a&&r._a.runWithContext||op)(()=>r._e.run(()=>(o=zs()).run(()=>t({action:y}))));for(const N in A){const P=A[N];if(ve(P)&&!cp(P)||Kt(P))s||(v&&lp(P)&&(ve(P)?P.value=v[N]:Ai(P,v[N])),r.state.value[e][N]=P);else if(typeof P=="function"){const Y=y(P,N);A[N]=Y,a.actions[N]=P}}return Gt(O,A),Gt(ne(O),A),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:N=>{T(P=>{Gt(P,N)})}}),r._p.forEach(N=>{Gt(O,o.run(()=>N({store:O,app:r._a,pinia:r,options:a})))}),v&&s&&n.hydrate&&n.hydrate(O.$state,v),u=!0,c=!0,O}function fp(e,t,n){let r,i;const s=typeof t=="function";r=e,i=s?n:t;function o(a,l){const u=zd();return a=a||(u?Ge(Ll,null):null),a&&us(a),a=Cl,a._s.has(r)||(s?Rl(r,t,i,a):up(r,i,a)),a._s.get(r)}return o.$id=r,o}const $l=Symbol("$auth0");function gt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}typeof SuppressedError=="function"&&SuppressedError;var mn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pi(e,t){return e(t={exports:{}},t.exports),t.exports}var gn=Pi(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var i=this;this.locked=new Map,this.addToLocked=function(s,o){var a=i.locked.get(s);a===void 0?o===void 0?i.locked.set(s,[]):i.locked.set(s,[o]):o!==void 0&&(a.unshift(o),i.locked.set(s,a))},this.isLocked=function(s){return i.locked.has(s)},this.lock=function(s){return new Promise(function(o,a){i.isLocked(s)?i.addToLocked(s,o):(i.addToLocked(s),o())})},this.unlock=function(s){var o=i.locked.get(s);if(o!==void 0&&o.length!==0){var a=o.pop();i.locked.set(s,o),a!==void 0&&setTimeout(a,0)}else i.locked.delete(s)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});Ni(gn);var dp=Ni(Pi(function(e,t){var n=mn&&mn.__awaiter||function(c,f,d,_){return new(d||(d=Promise))(function(v,S){function T(y){try{L(_.next(y))}catch(g){S(g)}}function E(y){try{L(_.throw(y))}catch(g){S(g)}}function L(y){y.done?v(y.value):new d(function(g){g(y.value)}).then(T,E)}L((_=_.apply(c,f||[])).next())})},r=mn&&mn.__generator||function(c,f){var d,_,v,S,T={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return S={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function E(L){return function(y){return function(g){if(d)throw new TypeError("Generator is already executing.");for(;T;)try{if(d=1,_&&(v=2&g[0]?_.return:g[0]?_.throw||((v=_.return)&&v.call(_),0):_.next)&&!(v=v.call(_,g[1])).done)return v;switch(_=0,v&&(g=[2&g[0],v.value]),g[0]){case 0:case 1:v=g;break;case 4:return T.label++,{value:g[1],done:!1};case 5:T.label++,_=g[1],g=[0];continue;case 7:g=T.ops.pop(),T.trys.pop();continue;default:if(!((v=(v=T.trys).length>0&&v[v.length-1])||g[0]!==6&&g[0]!==2)){T=0;continue}if(g[0]===3&&(!v||g[1]>v[0]&&g[1]<v[3])){T.label=g[1];break}if(g[0]===6&&T.label<v[1]){T.label=v[1],v=g;break}if(v&&T.label<v[2]){T.label=v[2],T.ops.push(g);break}v[2]&&T.ops.pop(),T.trys.pop();continue}g=f.call(c,T)}catch(O){g=[6,O],_=0}finally{d=v=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([L,y])}}},i=mn;Object.defineProperty(t,"__esModule",{value:!0});var s="browser-tabs-lock-key",o={key:function(c){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},getItem:function(c){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},clear:function(){return n(i,void 0,void 0,function(){return r(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},setItem:function(c,f){return n(i,void 0,void 0,function(){return r(this,function(d){throw new Error("Unsupported")})})},keySync:function(c){return window.localStorage.key(c)},getItemSync:function(c){return window.localStorage.getItem(c)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(c){return window.localStorage.removeItem(c)},setItemSync:function(c,f){return window.localStorage.setItem(c,f)}};function a(c){return new Promise(function(f){return setTimeout(f,c)})}function l(c){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",_=0;_<c;_++)d+=f[Math.floor(Math.random()*f.length)];return d}var u=function(){function c(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=f,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var _,v,S,T,E,L,y;return r(this,function(g){switch(g.label){case 0:_=Date.now()+l(4),v=Date.now()+d,S=s+"-"+f,T=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<v?[4,a(30)]:[3,8];case 2:return g.sent(),T.getItemSync(S)!==null?[3,5]:(E=this.id+"-"+f+"-"+_,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),T.setItemSync(S,JSON.stringify({id:this.id,iat:_,timeoutKey:E,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(L=T.getItemSync(S))!==null&&(y=JSON.parse(L)).id===this.id&&y.iat===_?(this.acquiredIatSet.add(_),this.refreshLockWhileAcquired(S,_),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(v)];case 6:g.sent(),g.label=7;case 7:return _=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,function(){var _=this;return r(this,function(v){return setTimeout(function(){return n(_,void 0,void 0,function(){var S,T,E;return r(this,function(L){switch(L.label){case 0:return[4,gn.default().lock(d)];case 1:return L.sent(),this.acquiredIatSet.has(d)?(S=this.storageHandler===void 0?o:this.storageHandler,(T=S.getItemSync(f))===null?(gn.default().unlock(d),[2]):((E=JSON.parse(T)).timeRefreshed=Date.now(),S.setItemSync(f,JSON.stringify(E)),gn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(gn.default().unlock(d),[2])}})})},1e3),[2]})})},c.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,new Promise(function(_){var v=!1,S=Date.now(),T=!1;function E(){if(T||(window.removeEventListener("storage",E),c.removeFromWaiting(E),clearTimeout(L),T=!0),!v){v=!0;var y=50-(Date.now()-S);y>0?setTimeout(_,y):_(null)}}window.addEventListener("storage",E),c.addToWaiting(E);var L=setTimeout(E,Math.max(0,f-Date.now()))})];case 1:return d.sent(),[2]}})})},c.addToWaiting=function(f){this.removeFromWaiting(f),c.waiters!==void 0&&c.waiters.push(f)},c.removeFromWaiting=function(f){c.waiters!==void 0&&(c.waiters=c.waiters.filter(function(d){return d!==f}))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach(function(f){return f()})},c.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}})})},c.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var d,_,v,S;return r(this,function(T){switch(T.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,_=s+"-"+f,(v=d.getItemSync(_))===null?[2]:(S=JSON.parse(v)).id!==this.id?[3,2]:[4,gn.default().lock(S.iat)];case 1:T.sent(),this.acquiredIatSet.delete(S.iat),d.removeItemSync(_),gn.default().unlock(S.iat),c.notifyWaiters(),T.label=2;case 2:return[2]}})})},c.lockCorrector=function(f){for(var d=Date.now()-5e3,_=f,v=[],S=0;;){var T=_.keySync(S);if(T===null)break;v.push(T),S++}for(var E=!1,L=0;L<v.length;L++){var y=v[L];if(y.includes(s)){var g=_.getItemSync(y);if(g!==null){var O=JSON.parse(g);(O.timeRefreshed===void 0&&O.timeAcquired<d||O.timeRefreshed!==void 0&&O.timeRefreshed<d)&&(_.removeItemSync(y),E=!0)}}}E&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=u}));const hp={timeoutInSeconds:60},Ml={name:"auth0-spa-js",version:"2.1.3"},Dl=()=>Date.now();class Fe extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Fe.prototype)}static fromPayload({error:t,error_description:n}){return new Fe(t,n)}}class Ri extends Fe{constructor(t,n,r,i=null){super(t,n),this.state=r,this.appState=i,Object.setPrototypeOf(this,Ri.prototype)}}class _r extends Fe{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,_r.prototype)}}class $i extends _r{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,$i.prototype)}}class Mi extends Fe{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Mi.prototype)}}class Di extends Fe{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Di.prototype)}}class fs extends Fe{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Fl(t,["default"])}', scope: '${Fl(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,fs.prototype)}}function Fl(e,t=[]){return e&&!t.includes(e)?e:""}const ds=()=>window.crypto,Fi=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(ds().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},jl=e=>btoa(e),ji=e=>{var{clientId:t}=e,n=gt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(i=>r[i]!==void 0).reduce((i,s)=>Object.assign(Object.assign({},i),{[s]:r[s]}),{}))(Object.assign({client_id:t},n))).toString()},Ul=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),pp=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},mp=async(e,t,n,r,i,s,o=1e4)=>i?(async(a,l,u,c,f,d,_)=>{return v={auth:{audience:l,scope:u},timeout:f,fetchUrl:a,fetchOptions:c,useFormData:_},S=d,new Promise(function(T,E){const L=new MessageChannel;L.port1.onmessage=function(y){y.data.error?E(new Error(y.data.error)):T(y.data),L.port1.close()},S.postMessage(v,[L.port2])});var v,S})(e,t,n,r,o,i,s):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([pp(a,l),new Promise((d,_)=>{f=setTimeout(()=>{c.abort(),_(new Error("Timeout when executing 'fetch'"))},u)})]).finally(()=>{clearTimeout(f)})})(e,r,o);async function gp(e,t){var{baseUrl:n,timeout:r,audience:i,scope:s,auth0Client:o,useFormData:a}=e,l=gt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?ji(l):JSON.stringify(l);return await async function(c,f,d,_,v,S,T){let E,L=null;for(let N=0;N<3;N++)try{E=await mp(c,d,_,v,S,T,f),L=null;break}catch(P){L=P}if(L)throw L;const y=E.json,{error:g,error_description:O}=y,C=gt(y,["error","error_description"]),{ok:A}=E;if(!A){const N=O||`HTTP error. Unable to fetch ${c}`;throw g==="mfa_required"?new Di(g,N,C.mfa_token):g==="missing_refresh_token"?new fs(d,_):new Fe(g||"request_error",N)}return C}(`${n}/oauth/token`,r,i||"default",s,{method:"POST",body:u,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Ml))}},t,a)}const hs=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class _t{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,i,s]=t.split("::");return new _t({clientId:r,scope:s,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:i}=t;return new _t({scope:n,audience:r,clientId:i})}}class _p{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class Wl{constructor(){this.enclosedCache=function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class bp{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Dl}async setIdToken(t,n,r){var i;const s=this.getIdTokenCacheKey(t);await this.cache.set(s,{id_token:n,decodedToken:r}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(s))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var r;let i=await this.cache.get(t.toKey());if(!i){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(i=await this.cache.get(l))}if(!i)return;const s=await this.nowProvider(),o=Math.floor(s/1e3);return i.expiresAt-n<o?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):i.body}async set(t){var n;const r=new _t({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter(i=>!t||i.includes(t)).reduce(async(i,s)=>{await i,await this.cache.remove(s)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new _t({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var i;const s=_t.fromKey(r),o=new Set(s.scope&&s.scope.split(" ")),a=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=s.scope&&a.reduce((u,c)=>u&&o.has(c),!0);return s.prefix==="@@auth0spajs@@"&&s.clientId===t.clientId&&s.audience===t.audience&&l})[0]}}class yp{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const br=e=>typeof e=="number",vp=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var _n=Pi(function(e,t){var n=mn&&mn.__assign||function(){return n=Object.assign||function(l){for(var u,c=1,f=arguments.length;c<f;c++)for(var d in u=arguments[c])Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var c="; "+l;return u===!0?c:c+"="+u}function i(l,u,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(f){if(typeof f.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*f.expires),f.expires=d}return r("Expires",f.expires?f.expires.toUTCString():"")+r("Domain",f.domain)+r("Path",f.path)+r("Secure",f.secure)+r("SameSite",f.sameSite)}(c)}function s(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<c.length;d++){var _=c[d].split("="),v=_.slice(1).join("=");v.charAt(0)==='"'&&(v=v.slice(1,-1));try{u[_[0].replace(f,decodeURIComponent)]=v.replace(f,decodeURIComponent)}catch{}}return u}function o(){return s(document.cookie)}function a(l,u,c){document.cookie=i(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=i,t.parse=s,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}});Ni(_n),_n.encode,_n.parse,_n.getAll;var wp=_n.get,Hl=_n.set,Kl=_n.remove;const jn={get(e){const t=wp(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Hl(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Kl(e,n)}},kp={get:e=>jn.get(e)||jn.get(`_legacy_${e}`),save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Hl(`_legacy_${e}`,JSON.stringify(t),r),jn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Kl(e,n),jn.remove(e,t),jn.remove(`_legacy_${e}`,t)}},Tp={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var Ui,Ep=function(e){return Ui=Ui||function(t,n,r){var i=function(l,u){var c=atob(l);return c}(t),s=i.indexOf(`
25
+ `,10)+1,o=i.substring(s)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(Ui,e)};const Wi={};class Ip{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(t),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(t),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const Sp={memory:()=>new Wl().enclosedCache,localstorage:()=>new _p},Vl=e=>Sp[e],zl=e=>{const{openUrl:t,onRedirect:n}=e,r=gt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},Hi=new dp;class Op{constructor(t){let n,r;if(this.userCache=new Wl().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Hi.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!ds())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(ds().subtle===void 0)throw new Error(`
26
26
  auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
27
- `)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)r=t.cache;else{if(n=t.cacheLocation||"memory",!Wl(n))throw new Error(`Invalid cache location "${n}"`);r=Wl(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?jn:yp,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:vp;var s;this.scope=fs("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new gp(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Rl,this.cacheManager=new mp(r,r.allKeys?void 0:new kp(r,this.options.clientId),this.nowProvider),this.domainUrl=(s=this.options.domain,/^https?:\/\//.test(s)?s:`https://${s}`),this.tokenIssuer=((o,a)=>o?o.startsWith("https://")?o:`https://${o}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new wp)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Pl)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${$i(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(f=>{const d=f.split("."),[m,v,E]=d;if(d.length!==3||!m||!v||!E)throw new Error("ID token could not be decoded");const k=JSON.parse(Dl(v)),S={__raw:f},L={};return Object.keys(k).forEach(y=>{S[y]=k[y],_p.includes(y)||(L[y]=k[y])}),{encoded:{header:m,payload:v,signature:E},header:JSON.parse(Dl(m)),claims:S,user:L}})(o.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==o.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${o.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(o.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==o.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${o.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==o.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but found "${a.claims.aud}"`);if(o.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==o.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${o.nonce}", found "${a.claims.nonce}"`)}if(o.max_age&&!gr(a.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(a.claims.exp==null||!gr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!gr(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,u=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),u>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${u}) is after expiration time (${c})`);if(a.claims.nbf!=null&&gr(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-l),u<f)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${u}) is before ${f}`)}if(a.claims.auth_time!=null&&gr(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),u>f)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${u}) is after last auth at ${f}`)}if(o.organization){const f=o.organization.trim();if(f.startsWith("org_")){const d=f;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_id}"`)}else{const d=f.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:r,leeway:this.options.leeway,max_age:(s=this.options.authorizationParams.max_age,typeof s!="string"?s:parseInt(s,10)||void 0),now:i});var s}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const i=Ml(Ri()),s=Ml(Ri()),o=Ri(),a=(c=>{const f=new Uint8Array(c);return(d=>{const m={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,v=>m[v])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async c=>await us().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,d,m,v,E,k,S)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),d),{scope:fs(f,d.scope),response_type:"code",response_mode:S||"query",state:m,nonce:v,redirect_uri:k||c.authorizationParams.redirect_uri,code_challenge:E,code_challenge_method:"S256"}))(this.options,this.scope,t,i,s,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:s,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:u}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const s=await(a=>new Promise((l,u)=>{let c;const f=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(f),clearTimeout(d),window.removeEventListener("message",c,!1),u(new Ni(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(f),u(new Ai(a.popup)),window.removeEventListener("message",c,!1)},1e3*(a.timeoutInSeconds||60));c=function(m){if(m.data&&m.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(f),window.removeEventListener("message",c,!1),a.popup.close(),m.data.response.error)return u(Fe.fromPayload(m.data.response));l(m.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==s.state)throw new Fe("state_mismatch","Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:s.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organization:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=Hl(t),{openUrl:i,fragment:s,appState:o}=r,a=mt(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=u,f=mt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o}),l&&{organization:l}));const d=s?`${c}#${s}`:c;i?await i(d):window.location.assign(d)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:i,error:s,error_description:o}=(f=>{f.indexOf("#")>-1&&(f=f.substring(0,f.indexOf("#")));const d=new URLSearchParams(f);return{state:d.get("state"),code:d.get("code")||void 0,error:d.get("error")||void 0,error_description:d.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Fe("missing_transaction","Invalid state");if(this.transactionManager.remove(),s)throw new Li(s,o||s,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Fe("state_mismatch","Invalid state");const l=a.organization,u=a.nonce,c=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:i},c?{redirect_uri:c}:{}),{nonceIn:u,organization:l}),{appState:a.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:fs(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((s,o)=>{let a=Di[o];return a||(a=s().finally(()=>{delete Di[o],a=null}),Di[o]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=mt(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,s=3)=>{for(let o=0;o<s;o++)if(await i())return!0;return!1})(()=>Fi.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new mr;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:s,access_token:o,oauthTokenScope:a,expires_in:l}=i;return Object.assign(Object.assign({id_token:s,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Fi.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:fs(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},up),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new gt({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,i=mt(n,["federated"]),s=r?"&federated":"";return this._url(`/v2/logout?${$i(Object.assign({clientId:t.clientId},i))}`)+s}async logout(t={}){const n=Hl(t),{openUrl:r}=n,i=mt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const s=this._buildLogoutUrl(i);r?await r(s):r!==!1&&window.location.assign(s)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:i,state:s,nonce:o,code_verifier:a,redirect_uri:l,scope:u,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Fe("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,d=await((v,E,k=60)=>new Promise((S,L)=>{const y=window.document.createElement("iframe");y.setAttribute("width","0"),y.setAttribute("height","0"),y.style.display="none";const _=()=>{window.document.body.contains(y)&&(window.document.body.removeChild(y),window.removeEventListener("message",O,!1))};let O;const C=setTimeout(()=>{L(new mr),_()},1e3*k);O=function(A){if(A.origin!=E||!A.data||A.data.type!=="authorization_response")return;const N=A.source;N&&N.close(),A.data.response.error?L(Fe.fromPayload(A.data.response)):S(A.data.response),clearTimeout(C),window.removeEventListener("message",O,!1),setTimeout(_,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(y),y.setAttribute("src",v)}))(i,this.domainUrl,f);if(s!==d.state)throw new Fe("state_mismatch","Invalid state");const m=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:d.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},m),{scope:u,oauthTokenScope:m.scope,audience:c})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new gt({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new cs(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const s=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),i&&{timeout:i}));return Object.assign(Object.assign({},s),{scope:t.authorizationParams.scope,oauthTokenScope:s.scope,audience:t.authorizationParams.audience||"default"})}catch(s){if((s.message.indexOf("Missing Refresh Token")>-1||s.message&&s.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw s}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,i=mt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new gt({clientId:this.options.clientId,audience:t,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:r}){const i=await this.cacheManager.get(new gt({scope:t,audience:n,clientId:r}),60);if(i&&i.access_token){const{access_token:s,oauthTokenScope:o,expires_in:a}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:s},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:r,organization:i}=n||{},s=await hp(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(s.id_token,r,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},s),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),s.scope?{oauthTokenScope:s.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(i||o.claims.org_id),Object.assign(Object.assign({},s),{decodedToken:o})}}function _r(e){e?.redirect_uri&&(console.warn("Using `redirect_uri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirect_uri,delete e.redirect_uri)}const gn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},Ip={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:gn,loginWithRedirect:gn,getAccessTokenSilently:gn,getAccessTokenWithPopup:gn,logout:gn,checkSession:gn,handleRedirectCallback:gn},Sp=te(Ip);class Op{constructor(t,n){var r,i;this.clientOptions=t,this.pluginOptions=n,this.isLoading=te(!0),this.isAuthenticated=te(!1),this.user=te({}),this.idTokenClaims=te(),this.error=te(null),r=this,i=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter(s=>!i.includes(s)).forEach(s=>r[s]=r[s].bind(r))}install(t){this._client=new Ep(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(Nl,this),Sp.value=this}async loginWithRedirect(t){return _r(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return _r(t),this.__proxy(()=>this._client.loginWithPopup(t,n))}async logout(t){return t?.openUrl||t?.openUrl===!1?this.__proxy(()=>this._client.logout(t)):this._client.logout(t)}async getAccessTokenSilently(t={}){return _r(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return _r(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,r,i;const s=window.location.search;try{if((s.includes("code=")||s.includes("error="))&&s.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(r=a?.target)!==null&&r!==void 0?r:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((i=this.pluginOptions)===null||i===void 0?void 0:i.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let r;try{r=await t(),this.error.value=null}catch(i){throw this.error.value=i,i}finally{n&&await this.__refreshState()}return r}}function Kl(e,t){return _r(e),new Op(e,t)}function ji(){return Ge(Nl)}/*!
27
+ `)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)r=t.cache;else{if(n=t.cacheLocation||"memory",!Vl(n))throw new Error(`Invalid cache location "${n}"`);r=Vl(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?jn:kp,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:Tp;var s;this.scope=hs("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new yp(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Dl,this.cacheManager=new bp(r,r.allKeys?void 0:new Ip(r,this.options.clientId),this.nowProvider),this.domainUrl=(s=this.options.domain,/^https?:\/\//.test(s)?s:`https://${s}`),this.tokenIssuer=((o,a)=>o?o.startsWith("https://")?o:`https://${o}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new Ep)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ml)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${ji(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(f=>{const d=f.split("."),[_,v,S]=d;if(d.length!==3||!_||!v||!S)throw new Error("ID token could not be decoded");const T=JSON.parse(Ul(v)),E={__raw:f},L={};return Object.keys(T).forEach(y=>{E[y]=T[y],vp.includes(y)||(L[y]=T[y])}),{encoded:{header:_,payload:v,signature:S},header:JSON.parse(Ul(_)),claims:E,user:L}})(o.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==o.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${o.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(o.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==o.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${o.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==o.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but found "${a.claims.aud}"`);if(o.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==o.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${o.nonce}", found "${a.claims.nonce}"`)}if(o.max_age&&!br(a.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(a.claims.exp==null||!br(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!br(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,u=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),u>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${u}) is after expiration time (${c})`);if(a.claims.nbf!=null&&br(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-l),u<f)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${u}) is before ${f}`)}if(a.claims.auth_time!=null&&br(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),u>f)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${u}) is after last auth at ${f}`)}if(o.organization){const f=o.organization.trim();if(f.startsWith("org_")){const d=f;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_id}"`)}else{const d=f.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:r,leeway:this.options.leeway,max_age:(s=this.options.authorizationParams.max_age,typeof s!="string"?s:parseInt(s,10)||void 0),now:i});var s}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const i=jl(Fi()),s=jl(Fi()),o=Fi(),a=(c=>{const f=new Uint8Array(c);return(d=>{const _={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,v=>_[v])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async c=>await ds().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,d,_,v,S,T,E)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),d),{scope:hs(f,d.scope),response_type:"code",response_mode:E||"query",state:_,nonce:v,redirect_uri:T||c.authorizationParams.redirect_uri,code_challenge:S,code_challenge_method:"S256"}))(this.options,this.scope,t,i,s,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:s,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:u}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const s=await(a=>new Promise((l,u)=>{let c;const f=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(f),clearTimeout(d),window.removeEventListener("message",c,!1),u(new Mi(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(f),u(new $i(a.popup)),window.removeEventListener("message",c,!1)},1e3*(a.timeoutInSeconds||60));c=function(_){if(_.data&&_.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(f),window.removeEventListener("message",c,!1),a.popup.close(),_.data.response.error)return u(Fe.fromPayload(_.data.response));l(_.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==s.state)throw new Fe("state_mismatch","Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:s.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organization:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=zl(t),{openUrl:i,fragment:s,appState:o}=r,a=gt(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=u,f=gt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o}),l&&{organization:l}));const d=s?`${c}#${s}`:c;i?await i(d):window.location.assign(d)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:i,error:s,error_description:o}=(f=>{f.indexOf("#")>-1&&(f=f.substring(0,f.indexOf("#")));const d=new URLSearchParams(f);return{state:d.get("state"),code:d.get("code")||void 0,error:d.get("error")||void 0,error_description:d.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Fe("missing_transaction","Invalid state");if(this.transactionManager.remove(),s)throw new Ri(s,o||s,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Fe("state_mismatch","Invalid state");const l=a.organization,u=a.nonce,c=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:i},c?{redirect_uri:c}:{}),{nonceIn:u,organization:l}),{appState:a.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:hs(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((s,o)=>{let a=Wi[o];return a||(a=s().finally(()=>{delete Wi[o],a=null}),Wi[o]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=gt(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,s=3)=>{for(let o=0;o<s;o++)if(await i())return!0;return!1})(()=>Hi.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new _r;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:s,access_token:o,oauthTokenScope:a,expires_in:l}=i;return Object.assign(Object.assign({id_token:s,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Hi.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:hs(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},hp),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new _t({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,i=gt(n,["federated"]),s=r?"&federated":"";return this._url(`/v2/logout?${ji(Object.assign({clientId:t.clientId},i))}`)+s}async logout(t={}){const n=zl(t),{openUrl:r}=n,i=gt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const s=this._buildLogoutUrl(i);r?await r(s):r!==!1&&window.location.assign(s)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:i,state:s,nonce:o,code_verifier:a,redirect_uri:l,scope:u,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Fe("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,d=await((v,S,T=60)=>new Promise((E,L)=>{const y=window.document.createElement("iframe");y.setAttribute("width","0"),y.setAttribute("height","0"),y.style.display="none";const g=()=>{window.document.body.contains(y)&&(window.document.body.removeChild(y),window.removeEventListener("message",O,!1))};let O;const C=setTimeout(()=>{L(new _r),g()},1e3*T);O=function(A){if(A.origin!=S||!A.data||A.data.type!=="authorization_response")return;const N=A.source;N&&N.close(),A.data.response.error?L(Fe.fromPayload(A.data.response)):E(A.data.response),clearTimeout(C),window.removeEventListener("message",O,!1),setTimeout(g,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(y),y.setAttribute("src",v)}))(i,this.domainUrl,f);if(s!==d.state)throw new Fe("state_mismatch","Invalid state");const _=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:d.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},_),{scope:u,oauthTokenScope:_.scope,audience:c})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new _t({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new fs(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const s=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),i&&{timeout:i}));return Object.assign(Object.assign({},s),{scope:t.authorizationParams.scope,oauthTokenScope:s.scope,audience:t.authorizationParams.audience||"default"})}catch(s){if((s.message.indexOf("Missing Refresh Token")>-1||s.message&&s.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw s}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,i=gt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new _t({clientId:this.options.clientId,audience:t,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:r}){const i=await this.cacheManager.get(new _t({scope:t,audience:n,clientId:r}),60);if(i&&i.access_token){const{access_token:s,oauthTokenScope:o,expires_in:a}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:s},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:r,organization:i}=n||{},s=await gp(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(s.id_token,r,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},s),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),s.scope?{oauthTokenScope:s.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(i||o.claims.org_id),Object.assign(Object.assign({},s),{decodedToken:o})}}function yr(e){e?.redirect_uri&&(console.warn("Using `redirect_uri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirect_uri,delete e.redirect_uri)}const bn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},xp={isLoading:re(!1),isAuthenticated:re(!1),user:re(void 0),idTokenClaims:re(void 0),error:re(null),loginWithPopup:bn,loginWithRedirect:bn,getAccessTokenSilently:bn,getAccessTokenWithPopup:bn,logout:bn,checkSession:bn,handleRedirectCallback:bn},Cp=re(xp);class Lp{constructor(t,n){var r,i;this.clientOptions=t,this.pluginOptions=n,this.isLoading=re(!0),this.isAuthenticated=re(!1),this.user=re({}),this.idTokenClaims=re(),this.error=re(null),r=this,i=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter(s=>!i.includes(s)).forEach(s=>r[s]=r[s].bind(r))}install(t){this._client=new Op(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide($l,this),Cp.value=this}async loginWithRedirect(t){return yr(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return yr(t),this.__proxy(()=>this._client.loginWithPopup(t,n))}async logout(t){return t?.openUrl||t?.openUrl===!1?this.__proxy(()=>this._client.logout(t)):this._client.logout(t)}async getAccessTokenSilently(t={}){return yr(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return yr(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,r,i;const s=window.location.search;try{if((s.includes("code=")||s.includes("error="))&&s.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(r=a?.target)!==null&&r!==void 0?r:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((i=this.pluginOptions)===null||i===void 0?void 0:i.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let r;try{r=await t(),this.error.value=null}catch(i){throw this.error.value=i,i}finally{n&&await this.__refreshState()}return r}}function Bl(e,t){return yr(e),new Lp(e,t)}function Ki(){return Ge($l)}/*!
28
28
  * shared v9.14.0
29
29
  * (c) 2024 kazuya kawaguchi
30
30
  * Released under the MIT License.
31
- */const ds=typeof window<"u",zt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),xp=(e,t,n)=>Cp({l:e,k:t,s:n}),Cp=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ee=e=>typeof e=="number"&&isFinite(e),Lp=e=>Gl(e)==="[object Date]",Bt=e=>Gl(e)==="[object RegExp]",hs=e=>Y(e)&&Object.keys(e).length===0,Pe=Object.assign;let Vl;const Lt=()=>Vl||(Vl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zl(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Ap=Object.prototype.hasOwnProperty;function ps(e,t){return Ap.call(e,t)}const ge=Array.isArray,pe=e=>typeof e=="function",W=e=>typeof e=="string",Q=e=>typeof e=="boolean",le=e=>e!==null&&typeof e=="object",Np=e=>le(e)&&pe(e.then)&&pe(e.catch),Bl=Object.prototype.toString,Gl=e=>Bl.call(e),Y=e=>{if(!le(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Pp=e=>e==null?"":ge(e)||Y(e)&&e.toString===Bl?JSON.stringify(e,null,2):String(e);function Rp(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function ms(e){let t=e;return()=>++t}function $p(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const gs=e=>!le(e)||ge(e);function _s(e,t){if(gs(e)||gs(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(s=>{gs(r[s])||gs(i[s])?i[s]=r[s]:n.push({src:r[s],des:i[s]})})}}/*!
31
+ */const ps=typeof window<"u",Yt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ap=(e,t,n)=>Np({l:e,k:t,s:n}),Np=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ie=e=>typeof e=="number"&&isFinite(e),Pp=e=>Zl(e)==="[object Date]",Xt=e=>Zl(e)==="[object RegExp]",ms=e=>X(e)&&Object.keys(e).length===0,Re=Object.assign;let Gl;const Nt=()=>Gl||(Gl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yl(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Rp=Object.prototype.hasOwnProperty;function gs(e,t){return Rp.call(e,t)}const ge=Array.isArray,pe=e=>typeof e=="function",W=e=>typeof e=="string",Q=e=>typeof e=="boolean",le=e=>e!==null&&typeof e=="object",$p=e=>le(e)&&pe(e.then)&&pe(e.catch),Xl=Object.prototype.toString,Zl=e=>Xl.call(e),X=e=>{if(!le(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Mp=e=>e==null?"":ge(e)||X(e)&&e.toString===Xl?JSON.stringify(e,null,2):String(e);function Dp(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function _s(e){let t=e;return()=>++t}function Fp(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const bs=e=>!le(e)||ge(e);function ys(e,t){if(bs(e)||bs(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(s=>{bs(r[s])||bs(i[s])?i[s]=r[s]:n.push({src:r[s],des:i[s]})})}}/*!
32
32
  * message-compiler v9.14.0
33
33
  * (c) 2024 kazuya kawaguchi
34
34
  * Released under the MIT License.
35
- */function Mp(e,t,n){return{line:e,column:t,offset:n}}function bs(e,t,n){return{start:e,end:t}}const Dp=/\{([0-9a-zA-Z]+)\}/g;function Yl(e,...t){return t.length===1&&Fp(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Dp,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Xl=Object.assign,Zl=e=>typeof e=="string",Fp=e=>e!==null&&typeof e=="object";function Jl(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const Ui={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},jp={[Ui.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Up(e,t,...n){const r=Yl(jp[e],...n||[]),i={message:String(r),code:e};return t&&(i.location=t),i}const z={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Wp={[z.EXPECTED_TOKEN]:"Expected token: '{0}'",[z.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[z.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[z.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[z.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[z.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[z.EMPTY_PLACEHOLDER]:"Empty placeholder",[z.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[z.INVALID_LINKED_FORMAT]:"Invalid linked format",[z.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[z.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[z.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[z.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[z.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[z.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Un(e,t,n={}){const{domain:r,messages:i,args:s}=n,o=Yl((i||Wp)[e]||"",...s||[]),a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function Hp(e){throw e}const At=" ",Kp="\r",Ve=`
36
- `,Vp="\u2028",zp="\u2029";function Bp(e){const t=e;let n=0,r=1,i=1,s=0;const o=A=>t[A]===Kp&&t[A+1]===Ve,a=A=>t[A]===Ve,l=A=>t[A]===zp,u=A=>t[A]===Vp,c=A=>o(A)||a(A)||l(A)||u(A),f=()=>n,d=()=>r,m=()=>i,v=()=>s,E=A=>o(A)||l(A)||u(A)?Ve:t[A],k=()=>E(n),S=()=>E(n+s);function L(){return s=0,c(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+s)&&s++,s++,t[n+s]}function _(){n=0,r=1,i=1,s=0}function O(A=0){s=A}function C(){const A=n+s;for(;A!==n;)L();s=0}return{index:f,line:d,column:m,peekOffset:v,charAt:E,currentChar:k,currentPeek:S,next:L,peek:y,reset:_,resetPeek:O,skipToPeek:C}}const Gt=void 0,Gp=".",ql="'",Yp="tokenizer";function Xp(e,t={}){const n=t.location!==!1,r=Bp(e),i=()=>r.index(),s=()=>Mp(r.line(),r.column(),r.index()),o=s(),a=i(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(h,p,w,...$){const j=u();if(p.column+=w,p.offset+=w,c){const D=n?bs(j.startLoc,p):null,T=Un(h,D,{domain:Yp,args:$});c(T)}}function d(h,p,w){h.endLoc=s(),h.currentType=p;const $={type:p};return n&&($.loc=bs(h.startLoc,h.endLoc)),w!=null&&($.value=w),$}const m=h=>d(h,14);function v(h,p){return h.currentChar()===p?(h.next(),p):(f(z.EXPECTED_TOKEN,s(),0,p),"")}function E(h){let p="";for(;h.currentPeek()===At||h.currentPeek()===Ve;)p+=h.currentPeek(),h.peek();return p}function k(h){const p=E(h);return h.skipToPeek(),p}function S(h){if(h===Gt)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function L(h){if(h===Gt)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function y(h,p){const{currentType:w}=p;if(w!==2)return!1;E(h);const $=S(h.currentPeek());return h.resetPeek(),$}function _(h,p){const{currentType:w}=p;if(w!==2)return!1;E(h);const $=h.currentPeek()==="-"?h.peek():h.currentPeek(),j=L($);return h.resetPeek(),j}function O(h,p){const{currentType:w}=p;if(w!==2)return!1;E(h);const $=h.currentPeek()===ql;return h.resetPeek(),$}function C(h,p){const{currentType:w}=p;if(w!==8)return!1;E(h);const $=h.currentPeek()===".";return h.resetPeek(),$}function A(h,p){const{currentType:w}=p;if(w!==9)return!1;E(h);const $=S(h.currentPeek());return h.resetPeek(),$}function N(h,p){const{currentType:w}=p;if(!(w===8||w===12))return!1;E(h);const $=h.currentPeek()===":";return h.resetPeek(),$}function P(h,p){const{currentType:w}=p;if(w!==10)return!1;const $=()=>{const D=h.currentPeek();return D==="{"?S(h.peek()):D==="@"||D==="%"||D==="|"||D===":"||D==="."||D===At||!D?!1:D===Ve?(h.peek(),$()):G(h,!1)},j=$();return h.resetPeek(),j}function K(h){E(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function re(h){const p=E(h),w=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:w,hasSpace:p.length>0}}function G(h,p=!0){const w=(j=!1,D="",T=!1)=>{const x=h.currentPeek();return x==="{"?D==="%"?!1:j:x==="@"||!x?D==="%"?!0:j:x==="%"?(h.peek(),w(j,"%",!0)):x==="|"?D==="%"||T?!0:!(D===At||D===Ve):x===At?(h.peek(),w(!0,At,T)):x===Ve?(h.peek(),w(!0,Ve,T)):!0},$=w();return p&&h.resetPeek(),$}function he(h,p){const w=h.currentChar();return w===Gt?Gt:p(w)?(h.next(),w):null}function lt(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function vt(h){return he(h,lt)}function se(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36||p===45}function Z(h){return he(h,se)}function ie(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function Je(h){return he(h,ie)}function wt(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Se(h){return he(h,wt)}function Le(h){let p="",w="";for(;p=Je(h);)w+=p;return w}function Zt(h){k(h);const p=h.currentChar();return p!=="%"&&f(z.EXPECTED_TOKEN,s(),0,p),h.next(),"%"}function Jt(h){let p="";for(;;){const w=h.currentChar();if(w==="{"||w==="}"||w==="@"||w==="|"||!w)break;if(w==="%")if(G(h))p+=w,h.next();else break;else if(w===At||w===Ve)if(G(h))p+=w,h.next();else{if(K(h))break;p+=w,h.next()}else p+=w,h.next()}return p}function xn(h){k(h);let p="",w="";for(;p=Z(h);)w+=p;return h.currentChar()===Gt&&f(z.UNTERMINATED_CLOSING_BRACE,s(),0),w}function ct(h){k(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${Le(h)}`):p+=Le(h),h.currentChar()===Gt&&f(z.UNTERMINATED_CLOSING_BRACE,s(),0),p}function $t(h){return h!==ql&&h!==Ve}function Mt(h){k(h),v(h,"'");let p="",w="";for(;p=he(h,$t);)p==="\\"?w+=qt(h):w+=p;const $=h.currentChar();return $===Ve||$===Gt?(f(z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),$===Ve&&(h.next(),v(h,"'")),w):(v(h,"'"),w)}function qt(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return rt(h,p,4);case"U":return rt(h,p,6);default:return f(z.UNKNOWN_ESCAPE_SEQUENCE,s(),0,p),""}}function rt(h,p,w){v(h,p);let $="";for(let j=0;j<w;j++){const D=Se(h);if(!D){f(z.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${p}${$}${h.currentChar()}`);break}$+=D}return`\\${p}${$}`}function Qt(h){return h!=="{"&&h!=="}"&&h!==At&&h!==Ve}function en(h){k(h);let p="",w="";for(;p=he(h,Qt);)w+=p;return w}function b(h){let p="",w="";for(;p=vt(h);)w+=p;return w}function g(h){const p=w=>{const $=h.currentChar();return $==="{"||$==="%"||$==="@"||$==="|"||$==="("||$===")"||!$||$===At?w:(w+=$,h.next(),p(w))};return p("")}function I(h){k(h);const p=v(h,"|");return k(h),p}function F(h,p){let w=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(z.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),h.next(),w=d(p,2,"{"),k(h),p.braceNest++,w;case"}":return p.braceNest>0&&p.currentType===2&&f(z.EMPTY_PLACEHOLDER,s(),0),h.next(),w=d(p,3,"}"),p.braceNest--,p.braceNest>0&&k(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),w;case"@":return p.braceNest>0&&f(z.UNTERMINATED_CLOSING_BRACE,s(),0),w=R(h,p)||m(p),p.braceNest=0,w;default:{let j=!0,D=!0,T=!0;if(K(h))return p.braceNest>0&&f(z.UNTERMINATED_CLOSING_BRACE,s(),0),w=d(p,1,I(h)),p.braceNest=0,p.inLinked=!1,w;if(p.braceNest>0&&(p.currentType===5||p.currentType===6||p.currentType===7))return f(z.UNTERMINATED_CLOSING_BRACE,s(),0),p.braceNest=0,M(h,p);if(j=y(h,p))return w=d(p,5,xn(h)),k(h),w;if(D=_(h,p))return w=d(p,6,ct(h)),k(h),w;if(T=O(h,p))return w=d(p,7,Mt(h)),k(h),w;if(!j&&!D&&!T)return w=d(p,13,en(h)),f(z.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,w.value),k(h),w;break}}return w}function R(h,p){const{currentType:w}=p;let $=null;const j=h.currentChar();switch((w===8||w===9||w===12||w===10)&&(j===Ve||j===At)&&f(z.INVALID_LINKED_FORMAT,s(),0),j){case"@":return h.next(),$=d(p,8,"@"),p.inLinked=!0,$;case".":return k(h),h.next(),d(p,9,".");case":":return k(h),h.next(),d(p,10,":");default:return K(h)?($=d(p,1,I(h)),p.braceNest=0,p.inLinked=!1,$):C(h,p)||N(h,p)?(k(h),R(h,p)):A(h,p)?(k(h),d(p,12,b(h))):P(h,p)?(k(h),j==="{"?F(h,p)||$:d(p,11,g(h))):(w===8&&f(z.INVALID_LINKED_FORMAT,s(),0),p.braceNest=0,p.inLinked=!1,M(h,p))}}function M(h,p){let w={type:14};if(p.braceNest>0)return F(h,p)||m(p);if(p.inLinked)return R(h,p)||m(p);switch(h.currentChar()){case"{":return F(h,p)||m(p);case"}":return f(z.UNBALANCED_CLOSING_BRACE,s(),0),h.next(),d(p,3,"}");case"@":return R(h,p)||m(p);default:{if(K(h))return w=d(p,1,I(h)),p.braceNest=0,p.inLinked=!1,w;const{isModulo:j,hasSpace:D}=re(h);if(j)return D?d(p,0,Jt(h)):d(p,4,Zt(h));if(G(h))return d(p,0,Jt(h));break}}return w}function U(){const{currentType:h,offset:p,startLoc:w,endLoc:$}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=w,l.lastEndLoc=$,l.offset=i(),l.startLoc=s(),r.currentChar()===Gt?d(l,14):M(r,l)}return{nextToken:U,currentOffset:i,currentPosition:s,context:u}}const Zp="parser",Jp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function qp(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Qp(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function i(y,_,O,C,...A){const N=y.currentPosition();if(N.offset+=C,N.column+=C,n){const P=t?bs(O,N):null,K=Un(_,P,{domain:Zp,args:A});n(K)}}function s(y,_,O,C,...A){const N=y.currentPosition();if(N.offset+=C,N.column+=C,r){const P=t?bs(O,N):null;r(Up(_,P,A))}}function o(y,_,O){const C={type:y};return t&&(C.start=_,C.end=_,C.loc={start:O,end:O}),C}function a(y,_,O,C){t&&(y.end=_,y.loc&&(y.loc.end=O))}function l(y,_){const O=y.context(),C=o(3,O.offset,O.startLoc);return C.value=_,a(C,y.currentOffset(),y.currentPosition()),C}function u(y,_){const O=y.context(),{lastOffset:C,lastStartLoc:A}=O,N=o(5,C,A);return N.index=parseInt(_,10),y.nextToken(),a(N,y.currentOffset(),y.currentPosition()),N}function c(y,_,O){const C=y.context(),{lastOffset:A,lastStartLoc:N}=C,P=o(4,A,N);return P.key=_,O===!0&&(P.modulo=!0),y.nextToken(),a(P,y.currentOffset(),y.currentPosition()),P}function f(y,_){const O=y.context(),{lastOffset:C,lastStartLoc:A}=O,N=o(9,C,A);return N.value=_.replace(Jp,qp),y.nextToken(),a(N,y.currentOffset(),y.currentPosition()),N}function d(y){const _=y.nextToken(),O=y.context(),{lastOffset:C,lastStartLoc:A}=O,N=o(8,C,A);return _.type!==12?(i(y,z.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.lastStartLoc,0),N.value="",a(N,C,A),{nextConsumeToken:_,node:N}):(_.value==null&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,ot(_)),N.value=_.value||"",a(N,y.currentOffset(),y.currentPosition()),{node:N})}function m(y,_){const O=y.context(),C=o(7,O.offset,O.startLoc);return C.value=_,a(C,y.currentOffset(),y.currentPosition()),C}function v(y){const _=y.context(),O=o(6,_.offset,_.startLoc);let C=y.nextToken();if(C.type===9){const A=d(y);O.modifier=A.node,C=A.nextConsumeToken||y.nextToken()}switch(C.type!==10&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ot(C)),C=y.nextToken(),C.type===2&&(C=y.nextToken()),C.type){case 11:C.value==null&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ot(C)),O.key=m(y,C.value||"");break;case 5:C.value==null&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ot(C)),O.key=c(y,C.value||"");break;case 6:C.value==null&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ot(C)),O.key=u(y,C.value||"");break;case 7:C.value==null&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ot(C)),O.key=f(y,C.value||"");break;default:{i(y,z.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const A=y.context(),N=o(7,A.offset,A.startLoc);return N.value="",a(N,A.offset,A.startLoc),O.key=N,a(O,A.offset,A.startLoc),{nextConsumeToken:C,node:O}}}return a(O,y.currentOffset(),y.currentPosition()),{node:O}}function E(y){const _=y.context(),O=_.currentType===1?y.currentOffset():_.offset,C=_.currentType===1?_.endLoc:_.startLoc,A=o(2,O,C);A.items=[];let N=null,P=null;do{const G=N||y.nextToken();switch(N=null,G.type){case 0:G.value==null&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ot(G)),A.items.push(l(y,G.value||""));break;case 6:G.value==null&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ot(G)),A.items.push(u(y,G.value||""));break;case 4:P=!0;break;case 5:G.value==null&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ot(G)),A.items.push(c(y,G.value||"",!!P)),P&&(s(y,Ui.USE_MODULO_SYNTAX,_.lastStartLoc,0,ot(G)),P=null);break;case 7:G.value==null&&i(y,z.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,ot(G)),A.items.push(f(y,G.value||""));break;case 8:{const he=v(y);A.items.push(he.node),N=he.nextConsumeToken||null;break}}}while(_.currentType!==14&&_.currentType!==1);const K=_.currentType===1?_.lastOffset:y.currentOffset(),re=_.currentType===1?_.lastEndLoc:y.currentPosition();return a(A,K,re),A}function k(y,_,O,C){const A=y.context();let N=C.items.length===0;const P=o(1,_,O);P.cases=[],P.cases.push(C);do{const K=E(y);N||(N=K.items.length===0),P.cases.push(K)}while(A.currentType!==14);return N&&i(y,z.MUST_HAVE_MESSAGES_IN_PLURAL,O,0),a(P,y.currentOffset(),y.currentPosition()),P}function S(y){const _=y.context(),{offset:O,startLoc:C}=_,A=E(y);return _.currentType===14?A:k(y,O,C,A)}function L(y){const _=Xp(y,Xl({},e)),O=_.context(),C=o(0,O.offset,O.startLoc);return t&&C.loc&&(C.loc.source=y),C.body=S(_),e.onCacheKey&&(C.cacheKey=e.onCacheKey(y)),O.currentType!==14&&i(_,z.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,y[O.offset]||""),a(C,_.currentOffset(),_.currentPosition()),C}return{parse:L}}function ot(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function em(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Ql(e,t){for(let n=0;n<e.length;n++)Wi(e[n],t)}function Wi(e,t){switch(e.type){case 1:Ql(e.cases,t),t.helper("plural");break;case 2:Ql(e.items,t);break;case 6:{Wi(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function tm(e,t={}){const n=em(e);n.helper("normalize"),e.body&&Wi(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function nm(e){const t=e.body;return t.type===2?ec(t):t.cases.forEach(n=>ec(n)),e}function ec(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Jl(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const rm="minifier";function Wn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Wn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Wn(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Wn(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Wn(t.key),t.k=t.key,delete t.key,t.modifier&&(Wn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Un(z.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:rm,args:[e.type]})}delete e.type}const sm="parser";function im(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:s}=t,o=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:s,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function u(k,S){a.code+=k}function c(k,S=!0){const L=S?i:"";u(s?L+" ".repeat(k):L)}function f(k=!0){const S=++a.indentLevel;k&&c(S)}function d(k=!0){const S=--a.indentLevel;k&&c(S)}function m(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:m,helper:k=>`_${k}`,needIndent:()=>a.needIndent}}function om(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Hn(e,t.key),t.modifier?(e.push(", "),Hn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function am(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s<i&&(Hn(e,t.items[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function lm(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s<i&&(Hn(e,t.cases[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function cm(e,t){t.body?Hn(e,t.body):e.push("null")}function Hn(e,t){const{helper:n}=e;switch(t.type){case 0:cm(e,t);break;case 1:lm(e,t);break;case 2:am(e,t);break;case 6:om(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Un(z.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:sm,args:[t.type]})}}const um=(e,t={})=>{const n=Zl(t.mode)?t.mode:"normal",r=Zl(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
37
- `,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=im(e,{mode:n,filename:r,sourceMap:i,breakLineCode:s,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${Jl(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Hn(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function fm(e,t={}){const n=Xl({},t),r=!!n.jit,i=!!n.minify,s=n.optimize==null?!0:n.optimize,a=Qp(n).parse(e);return r?(s&&nm(a),i&&Wn(a),{ast:a,code:""}):(tm(a,n),um(a,n))}/*!
35
+ */function jp(e,t,n){return{line:e,column:t,offset:n}}function vs(e,t,n){return{start:e,end:t}}const Up=/\{([0-9a-zA-Z]+)\}/g;function Jl(e,...t){return t.length===1&&Wp(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Up,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const ql=Object.assign,Ql=e=>typeof e=="string",Wp=e=>e!==null&&typeof e=="object";function ec(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const Vi={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Hp={[Vi.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Kp(e,t,...n){const r=Jl(Hp[e],...n||[]),i={message:String(r),code:e};return t&&(i.location=t),i}const B={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Vp={[B.EXPECTED_TOKEN]:"Expected token: '{0}'",[B.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[B.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[B.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[B.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[B.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[B.EMPTY_PLACEHOLDER]:"Empty placeholder",[B.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[B.INVALID_LINKED_FORMAT]:"Invalid linked format",[B.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[B.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[B.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[B.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[B.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[B.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Un(e,t,n={}){const{domain:r,messages:i,args:s}=n,o=Jl((i||Vp)[e]||"",...s||[]),a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function zp(e){throw e}const Pt=" ",Bp="\r",Ve=`
36
+ `,Gp="\u2028",Yp="\u2029";function Xp(e){const t=e;let n=0,r=1,i=1,s=0;const o=A=>t[A]===Bp&&t[A+1]===Ve,a=A=>t[A]===Ve,l=A=>t[A]===Yp,u=A=>t[A]===Gp,c=A=>o(A)||a(A)||l(A)||u(A),f=()=>n,d=()=>r,_=()=>i,v=()=>s,S=A=>o(A)||l(A)||u(A)?Ve:t[A],T=()=>S(n),E=()=>S(n+s);function L(){return s=0,c(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+s)&&s++,s++,t[n+s]}function g(){n=0,r=1,i=1,s=0}function O(A=0){s=A}function C(){const A=n+s;for(;A!==n;)L();s=0}return{index:f,line:d,column:_,peekOffset:v,charAt:S,currentChar:T,currentPeek:E,next:L,peek:y,reset:g,resetPeek:O,skipToPeek:C}}const Zt=void 0,Zp=".",tc="'",Jp="tokenizer";function qp(e,t={}){const n=t.location!==!1,r=Xp(e),i=()=>r.index(),s=()=>jp(r.line(),r.column(),r.index()),o=s(),a=i(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(h,p,w,...$){const j=u();if(p.column+=w,p.offset+=w,c){const D=n?vs(j.startLoc,p):null,k=Un(h,D,{domain:Jp,args:$});c(k)}}function d(h,p,w){h.endLoc=s(),h.currentType=p;const $={type:p};return n&&($.loc=vs(h.startLoc,h.endLoc)),w!=null&&($.value=w),$}const _=h=>d(h,14);function v(h,p){return h.currentChar()===p?(h.next(),p):(f(B.EXPECTED_TOKEN,s(),0,p),"")}function S(h){let p="";for(;h.currentPeek()===Pt||h.currentPeek()===Ve;)p+=h.currentPeek(),h.peek();return p}function T(h){const p=S(h);return h.skipToPeek(),p}function E(h){if(h===Zt)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function L(h){if(h===Zt)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function y(h,p){const{currentType:w}=p;if(w!==2)return!1;S(h);const $=E(h.currentPeek());return h.resetPeek(),$}function g(h,p){const{currentType:w}=p;if(w!==2)return!1;S(h);const $=h.currentPeek()==="-"?h.peek():h.currentPeek(),j=L($);return h.resetPeek(),j}function O(h,p){const{currentType:w}=p;if(w!==2)return!1;S(h);const $=h.currentPeek()===tc;return h.resetPeek(),$}function C(h,p){const{currentType:w}=p;if(w!==8)return!1;S(h);const $=h.currentPeek()===".";return h.resetPeek(),$}function A(h,p){const{currentType:w}=p;if(w!==9)return!1;S(h);const $=E(h.currentPeek());return h.resetPeek(),$}function N(h,p){const{currentType:w}=p;if(!(w===8||w===12))return!1;S(h);const $=h.currentPeek()===":";return h.resetPeek(),$}function P(h,p){const{currentType:w}=p;if(w!==10)return!1;const $=()=>{const D=h.currentPeek();return D==="{"?E(h.peek()):D==="@"||D==="%"||D==="|"||D===":"||D==="."||D===Pt||!D?!1:D===Ve?(h.peek(),$()):V(h,!1)},j=$();return h.resetPeek(),j}function Y(h){S(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function te(h){const p=S(h),w=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:w,hasSpace:p.length>0}}function V(h,p=!0){const w=(j=!1,D="",k=!1)=>{const x=h.currentPeek();return x==="{"?D==="%"?!1:j:x==="@"||!x?D==="%"?!0:j:x==="%"?(h.peek(),w(j,"%",!0)):x==="|"?D==="%"||k?!0:!(D===Pt||D===Ve):x===Pt?(h.peek(),w(!0,Pt,k)):x===Ve?(h.peek(),w(!0,Ve,k)):!0},$=w();return p&&h.resetPeek(),$}function he(h,p){const w=h.currentChar();return w===Zt?Zt:p(w)?(h.next(),w):null}function Je(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function kt(h){return he(h,Je)}function se(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36||p===45}function q(h){return he(h,se)}function ie(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function qe(h){return he(h,ie)}function Tt(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Oe(h){return he(h,Tt)}function Ae(h){let p="",w="";for(;p=qe(h);)w+=p;return w}function Qt(h){T(h);const p=h.currentChar();return p!=="%"&&f(B.EXPECTED_TOKEN,s(),0,p),h.next(),"%"}function en(h){let p="";for(;;){const w=h.currentChar();if(w==="{"||w==="}"||w==="@"||w==="|"||!w)break;if(w==="%")if(V(h))p+=w,h.next();else break;else if(w===Pt||w===Ve)if(V(h))p+=w,h.next();else{if(Y(h))break;p+=w,h.next()}else p+=w,h.next()}return p}function Cn(h){T(h);let p="",w="";for(;p=q(h);)w+=p;return h.currentChar()===Zt&&f(B.UNTERMINATED_CLOSING_BRACE,s(),0),w}function ct(h){T(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${Ae(h)}`):p+=Ae(h),h.currentChar()===Zt&&f(B.UNTERMINATED_CLOSING_BRACE,s(),0),p}function Dt(h){return h!==tc&&h!==Ve}function Ft(h){T(h),v(h,"'");let p="",w="";for(;p=he(h,Dt);)p==="\\"?w+=tn(h):w+=p;const $=h.currentChar();return $===Ve||$===Zt?(f(B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),$===Ve&&(h.next(),v(h,"'")),w):(v(h,"'"),w)}function tn(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return st(h,p,4);case"U":return st(h,p,6);default:return f(B.UNKNOWN_ESCAPE_SEQUENCE,s(),0,p),""}}function st(h,p,w){v(h,p);let $="";for(let j=0;j<w;j++){const D=Oe(h);if(!D){f(B.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${p}${$}${h.currentChar()}`);break}$+=D}return`\\${p}${$}`}function nn(h){return h!=="{"&&h!=="}"&&h!==Pt&&h!==Ve}function rn(h){T(h);let p="",w="";for(;p=he(h,nn);)w+=p;return w}function b(h){let p="",w="";for(;p=kt(h);)w+=p;return w}function m(h){const p=w=>{const $=h.currentChar();return $==="{"||$==="%"||$==="@"||$==="|"||$==="("||$===")"||!$||$===Pt?w:(w+=$,h.next(),p(w))};return p("")}function I(h){T(h);const p=v(h,"|");return T(h),p}function F(h,p){let w=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(B.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),h.next(),w=d(p,2,"{"),T(h),p.braceNest++,w;case"}":return p.braceNest>0&&p.currentType===2&&f(B.EMPTY_PLACEHOLDER,s(),0),h.next(),w=d(p,3,"}"),p.braceNest--,p.braceNest>0&&T(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),w;case"@":return p.braceNest>0&&f(B.UNTERMINATED_CLOSING_BRACE,s(),0),w=R(h,p)||_(p),p.braceNest=0,w;default:{let j=!0,D=!0,k=!0;if(Y(h))return p.braceNest>0&&f(B.UNTERMINATED_CLOSING_BRACE,s(),0),w=d(p,1,I(h)),p.braceNest=0,p.inLinked=!1,w;if(p.braceNest>0&&(p.currentType===5||p.currentType===6||p.currentType===7))return f(B.UNTERMINATED_CLOSING_BRACE,s(),0),p.braceNest=0,M(h,p);if(j=y(h,p))return w=d(p,5,Cn(h)),T(h),w;if(D=g(h,p))return w=d(p,6,ct(h)),T(h),w;if(k=O(h,p))return w=d(p,7,Ft(h)),T(h),w;if(!j&&!D&&!k)return w=d(p,13,rn(h)),f(B.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,w.value),T(h),w;break}}return w}function R(h,p){const{currentType:w}=p;let $=null;const j=h.currentChar();switch((w===8||w===9||w===12||w===10)&&(j===Ve||j===Pt)&&f(B.INVALID_LINKED_FORMAT,s(),0),j){case"@":return h.next(),$=d(p,8,"@"),p.inLinked=!0,$;case".":return T(h),h.next(),d(p,9,".");case":":return T(h),h.next(),d(p,10,":");default:return Y(h)?($=d(p,1,I(h)),p.braceNest=0,p.inLinked=!1,$):C(h,p)||N(h,p)?(T(h),R(h,p)):A(h,p)?(T(h),d(p,12,b(h))):P(h,p)?(T(h),j==="{"?F(h,p)||$:d(p,11,m(h))):(w===8&&f(B.INVALID_LINKED_FORMAT,s(),0),p.braceNest=0,p.inLinked=!1,M(h,p))}}function M(h,p){let w={type:14};if(p.braceNest>0)return F(h,p)||_(p);if(p.inLinked)return R(h,p)||_(p);switch(h.currentChar()){case"{":return F(h,p)||_(p);case"}":return f(B.UNBALANCED_CLOSING_BRACE,s(),0),h.next(),d(p,3,"}");case"@":return R(h,p)||_(p);default:{if(Y(h))return w=d(p,1,I(h)),p.braceNest=0,p.inLinked=!1,w;const{isModulo:j,hasSpace:D}=te(h);if(j)return D?d(p,0,en(h)):d(p,4,Qt(h));if(V(h))return d(p,0,en(h));break}}return w}function U(){const{currentType:h,offset:p,startLoc:w,endLoc:$}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=w,l.lastEndLoc=$,l.offset=i(),l.startLoc=s(),r.currentChar()===Zt?d(l,14):M(r,l)}return{nextToken:U,currentOffset:i,currentPosition:s,context:u}}const Qp="parser",em=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function tm(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function nm(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function i(y,g,O,C,...A){const N=y.currentPosition();if(N.offset+=C,N.column+=C,n){const P=t?vs(O,N):null,Y=Un(g,P,{domain:Qp,args:A});n(Y)}}function s(y,g,O,C,...A){const N=y.currentPosition();if(N.offset+=C,N.column+=C,r){const P=t?vs(O,N):null;r(Kp(g,P,A))}}function o(y,g,O){const C={type:y};return t&&(C.start=g,C.end=g,C.loc={start:O,end:O}),C}function a(y,g,O,C){t&&(y.end=g,y.loc&&(y.loc.end=O))}function l(y,g){const O=y.context(),C=o(3,O.offset,O.startLoc);return C.value=g,a(C,y.currentOffset(),y.currentPosition()),C}function u(y,g){const O=y.context(),{lastOffset:C,lastStartLoc:A}=O,N=o(5,C,A);return N.index=parseInt(g,10),y.nextToken(),a(N,y.currentOffset(),y.currentPosition()),N}function c(y,g,O){const C=y.context(),{lastOffset:A,lastStartLoc:N}=C,P=o(4,A,N);return P.key=g,O===!0&&(P.modulo=!0),y.nextToken(),a(P,y.currentOffset(),y.currentPosition()),P}function f(y,g){const O=y.context(),{lastOffset:C,lastStartLoc:A}=O,N=o(9,C,A);return N.value=g.replace(em,tm),y.nextToken(),a(N,y.currentOffset(),y.currentPosition()),N}function d(y){const g=y.nextToken(),O=y.context(),{lastOffset:C,lastStartLoc:A}=O,N=o(8,C,A);return g.type!==12?(i(y,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.lastStartLoc,0),N.value="",a(N,C,A),{nextConsumeToken:g,node:N}):(g.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,at(g)),N.value=g.value||"",a(N,y.currentOffset(),y.currentPosition()),{node:N})}function _(y,g){const O=y.context(),C=o(7,O.offset,O.startLoc);return C.value=g,a(C,y.currentOffset(),y.currentPosition()),C}function v(y){const g=y.context(),O=o(6,g.offset,g.startLoc);let C=y.nextToken();if(C.type===9){const A=d(y);O.modifier=A.node,C=A.nextConsumeToken||y.nextToken()}switch(C.type!==10&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),C=y.nextToken(),C.type===2&&(C=y.nextToken()),C.type){case 11:C.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),O.key=_(y,C.value||"");break;case 5:C.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),O.key=c(y,C.value||"");break;case 6:C.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),O.key=u(y,C.value||"");break;case 7:C.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),O.key=f(y,C.value||"");break;default:{i(y,B.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const A=y.context(),N=o(7,A.offset,A.startLoc);return N.value="",a(N,A.offset,A.startLoc),O.key=N,a(O,A.offset,A.startLoc),{nextConsumeToken:C,node:O}}}return a(O,y.currentOffset(),y.currentPosition()),{node:O}}function S(y){const g=y.context(),O=g.currentType===1?y.currentOffset():g.offset,C=g.currentType===1?g.endLoc:g.startLoc,A=o(2,O,C);A.items=[];let N=null,P=null;do{const V=N||y.nextToken();switch(N=null,V.type){case 0:V.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(V)),A.items.push(l(y,V.value||""));break;case 6:V.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(V)),A.items.push(u(y,V.value||""));break;case 4:P=!0;break;case 5:V.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(V)),A.items.push(c(y,V.value||"",!!P)),P&&(s(y,Vi.USE_MODULO_SYNTAX,g.lastStartLoc,0,at(V)),P=null);break;case 7:V.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(V)),A.items.push(f(y,V.value||""));break;case 8:{const he=v(y);A.items.push(he.node),N=he.nextConsumeToken||null;break}}}while(g.currentType!==14&&g.currentType!==1);const Y=g.currentType===1?g.lastOffset:y.currentOffset(),te=g.currentType===1?g.lastEndLoc:y.currentPosition();return a(A,Y,te),A}function T(y,g,O,C){const A=y.context();let N=C.items.length===0;const P=o(1,g,O);P.cases=[],P.cases.push(C);do{const Y=S(y);N||(N=Y.items.length===0),P.cases.push(Y)}while(A.currentType!==14);return N&&i(y,B.MUST_HAVE_MESSAGES_IN_PLURAL,O,0),a(P,y.currentOffset(),y.currentPosition()),P}function E(y){const g=y.context(),{offset:O,startLoc:C}=g,A=S(y);return g.currentType===14?A:T(y,O,C,A)}function L(y){const g=qp(y,ql({},e)),O=g.context(),C=o(0,O.offset,O.startLoc);return t&&C.loc&&(C.loc.source=y),C.body=E(g),e.onCacheKey&&(C.cacheKey=e.onCacheKey(y)),O.currentType!==14&&i(g,B.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,y[O.offset]||""),a(C,g.currentOffset(),g.currentPosition()),C}return{parse:L}}function at(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function rm(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function nc(e,t){for(let n=0;n<e.length;n++)zi(e[n],t)}function zi(e,t){switch(e.type){case 1:nc(e.cases,t),t.helper("plural");break;case 2:nc(e.items,t);break;case 6:{zi(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function sm(e,t={}){const n=rm(e);n.helper("normalize"),e.body&&zi(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function im(e){const t=e.body;return t.type===2?rc(t):t.cases.forEach(n=>rc(n)),e}function rc(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=ec(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const om="minifier";function Wn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Wn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Wn(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Wn(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Wn(t.key),t.k=t.key,delete t.key,t.modifier&&(Wn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Un(B.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:om,args:[e.type]})}delete e.type}const am="parser";function lm(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:s}=t,o=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:s,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function u(T,E){a.code+=T}function c(T,E=!0){const L=E?i:"";u(s?L+" ".repeat(T):L)}function f(T=!0){const E=++a.indentLevel;T&&c(E)}function d(T=!0){const E=--a.indentLevel;T&&c(E)}function _(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:_,helper:T=>`_${T}`,needIndent:()=>a.needIndent}}function cm(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Hn(e,t.key),t.modifier?(e.push(", "),Hn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function um(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s<i&&(Hn(e,t.items[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function fm(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s<i&&(Hn(e,t.cases[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function dm(e,t){t.body?Hn(e,t.body):e.push("null")}function Hn(e,t){const{helper:n}=e;switch(t.type){case 0:dm(e,t);break;case 1:fm(e,t);break;case 2:um(e,t);break;case 6:cm(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Un(B.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:am,args:[t.type]})}}const hm=(e,t={})=>{const n=Ql(t.mode)?t.mode:"normal",r=Ql(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
37
+ `,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=lm(e,{mode:n,filename:r,sourceMap:i,breakLineCode:s,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${ec(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Hn(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function pm(e,t={}){const n=ql({},t),r=!!n.jit,i=!!n.minify,s=n.optimize==null?!0:n.optimize,a=nm(n).parse(e);return r?(s&&im(a),i&&Wn(a),{ast:a,code:""}):(sm(a,n),hm(a,n))}/*!
38
38
  * core-base v9.14.0
39
39
  * (c) 2024 kazuya kawaguchi
40
40
  * Released under the MIT License.
41
- */function dm(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Lt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Lt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Lt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Yt=[];Yt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Yt[1]={w:[1],".":[2],"[":[4],o:[7]},Yt[2]={w:[2],i:[3,0],0:[3,0]},Yt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Yt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Yt[5]={"'":[4,0],o:8,l:[5,0]},Yt[6]={'"':[4,0],o:8,l:[6,0]};const hm=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function pm(e){return hm.test(e)}function mm(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function gm(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function _m(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:pm(t)?mm(t):"*"+t}function bm(e){const t=[];let n=-1,r=0,i=0,s,o,a,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=a:o+=a},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),i++},d[3]=()=>{if(i>0)i--,r=4,d[0]();else{if(i=0,o===void 0||(o=_m(o),o===!1))return!1;d[1]()}};function m(){const v=e[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,a="\\"+v,d[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&m())){if(l=gm(s),f=Yt[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(a=s,c()===!1))))return;if(r===7)return t}}const tc=new Map;function ym(e,t){return le(e)?e[t]:null}function vm(e,t){if(!le(e))return null;let n=tc.get(t);if(n||(n=bm(t),n&&tc.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s<r;){const o=i[n[s]];if(o===void 0||pe(i))return null;i=o,s++}return i}const wm=e=>e,km=e=>"",Tm="text",Em=e=>e.length===0?"":Rp(e),Im=Pp;function nc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Sm(e){const t=Ee(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ee(e.named.count)||Ee(e.named.n))?Ee(e.named.count)?e.named.count:Ee(e.named.n)?e.named.n:t:t}function Om(e,t){t.count||(t.count=e),t.n||(t.n=e)}function xm(e={}){const t=e.locale,n=Sm(e),r=le(e.pluralRules)&&W(t)&&pe(e.pluralRules[t])?e.pluralRules[t]:nc,i=le(e.pluralRules)&&W(t)&&pe(e.pluralRules[t])?nc:void 0,s=S=>S[r(n,S.length,i)],o=e.list||[],a=S=>o[S],l=e.named||{};Ee(e.pluralIndex)&&Om(n,l);const u=S=>l[S];function c(S){const L=pe(e.messages)?e.messages(S):le(e.messages)?e.messages[S]:!1;return L||(e.parent?e.parent.message(S):km)}const f=S=>e.modifiers?e.modifiers[S]:wm,d=Y(e.processor)&&pe(e.processor.normalize)?e.processor.normalize:Em,m=Y(e.processor)&&pe(e.processor.interpolate)?e.processor.interpolate:Im,v=Y(e.processor)&&W(e.processor.type)?e.processor.type:Tm,k={list:a,named:u,plural:s,linked:(S,...L)=>{const[y,_]=L;let O="text",C="";L.length===1?le(y)?(C=y.modifier||C,O=y.type||O):W(y)&&(C=y||C):L.length===2&&(W(y)&&(C=y||C),W(_)&&(O=_||O));const A=c(S)(k),N=O==="vnode"&&ge(A)&&C?A[0]:A;return C?f(C)(N,O):N},message:c,type:v,interpolate:m,normalize:d,values:Pe({},o,l)};return k}let br=null;function Cm(e){br=e}function Lm(e,t,n){br&&br.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Am=Nm("function:translate");function Nm(e){return t=>br&&br.emit(e,t)}const rc=Ui.__EXTEND_POINT__,_n=ms(rc),Pm={NOT_FOUND_KEY:rc,FALLBACK_TO_TRANSLATE:_n(),CANNOT_FORMAT_NUMBER:_n(),FALLBACK_TO_NUMBER_FORMAT:_n(),CANNOT_FORMAT_DATE:_n(),FALLBACK_TO_DATE_FORMAT:_n(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:_n(),__EXTEND_POINT__:_n()},sc=z.__EXTEND_POINT__,bn=ms(sc),at={INVALID_ARGUMENT:sc,INVALID_DATE_ARGUMENT:bn(),INVALID_ISO_DATE_ARGUMENT:bn(),NOT_SUPPORT_NON_STRING_MESSAGE:bn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:bn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:bn(),NOT_SUPPORT_LOCALE_TYPE:bn(),__EXTEND_POINT__:bn()};function _t(e){return Un(e,null,void 0)}function Hi(e,t){return t.locale!=null?ic(t.locale):ic(e.locale)}let Ki;function ic(e){if(W(e))return e;if(pe(e)){if(e.resolvedOnce&&Ki!=null)return Ki;if(e.constructor.name==="Function"){const t=e();if(Np(t))throw _t(at.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ki=t}else throw _t(at.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw _t(at.NOT_SUPPORT_LOCALE_TYPE)}function Rm(e,t,n){return[...new Set([n,...ge(t)?t:le(t)?Object.keys(t):W(t)?[t]:[n]])]}function oc(e,t,n){const r=W(n)?n:Kn,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;ge(o);)o=ac(s,o,t);const a=ge(t)||!Y(t)?t:t.default?t.default:null;o=W(a)?[a]:a,ge(o)&&ac(s,o,!1),i.__localeChainCache.set(r,s)}return s}function ac(e,t,n){let r=!0;for(let i=0;i<t.length&&Q(r);i++){const s=t[i];W(s)&&(r=$m(e,t[i],n))}return r}function $m(e,t,n){let r;const i=t.split("-");do{const s=i.join("-");r=Mm(e,s,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Mm(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(ge(n)||Y(n))&&n[i]&&(r=n[i])}return r}const Dm="9.14.0",ys=-1,Kn="en-US",lc="",cc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Fm(){return{upper:(e,t)=>t==="text"&&W(e)?e.toUpperCase():t==="vnode"&&le(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&W(e)?e.toLowerCase():t==="vnode"&&le(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&W(e)?cc(e):t==="vnode"&&le(e)&&"__v_isVNode"in e?cc(e.children):e}}let uc;function fc(e){uc=e}let dc;function jm(e){dc=e}let hc;function Um(e){hc=e}let pc=null;const Wm=e=>{pc=e},Hm=()=>pc;let mc=null;const gc=e=>{mc=e},Km=()=>mc;let _c=0;function Vm(e={}){const t=pe(e.onWarn)?e.onWarn:$p,n=W(e.version)?e.version:Dm,r=W(e.locale)||pe(e.locale)?e.locale:Kn,i=pe(r)?Kn:r,s=ge(e.fallbackLocale)||Y(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Y(e.messages)?e.messages:{[i]:{}},a=Y(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=Y(e.numberFormats)?e.numberFormats:{[i]:{}},u=Pe({},e.modifiers||{},Fm()),c=e.pluralRules||{},f=pe(e.missing)?e.missing:null,d=Q(e.missingWarn)||Bt(e.missingWarn)?e.missingWarn:!0,m=Q(e.fallbackWarn)||Bt(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,E=!!e.unresolving,k=pe(e.postTranslation)?e.postTranslation:null,S=Y(e.processor)?e.processor:null,L=Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,_=pe(e.messageCompiler)?e.messageCompiler:uc,O=pe(e.messageResolver)?e.messageResolver:dc||ym,C=pe(e.localeFallbacker)?e.localeFallbacker:hc||Rm,A=le(e.fallbackContext)?e.fallbackContext:void 0,N=e,P=le(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,K=le(N.__numberFormatters)?N.__numberFormatters:new Map,re=le(N.__meta)?N.__meta:{};_c++;const G={version:n,cid:_c,locale:r,fallbackLocale:s,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:m,fallbackFormat:v,unresolving:E,postTranslation:k,processor:S,warnHtmlMessage:L,escapeParameter:y,messageCompiler:_,messageResolver:O,localeFallbacker:C,fallbackContext:A,onWarn:t,__meta:re};return G.datetimeFormats=a,G.numberFormats=l,G.__datetimeFormatters=P,G.__numberFormatters=K,__INTLIFY_PROD_DEVTOOLS__&&Lm(G,n,re),G}function Vi(e,t,n,r,i){const{missing:s,onWarn:o}=e;if(s!==null){const a=s(e,n,t,i);return W(a)?a:t}else return t}function yr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function zm(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Bm(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(zm(e,t[r]))return!0;return!1}function zi(e){return n=>Gm(n,e)}function Gm(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,i=r.c||r.cases;return e.plural(i.reduce((s,o)=>[...s,bc(e,o)],[]))}else return bc(e,n)}function bc(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((i,s)=>[...i,Bi(e,s)],[]);return e.normalize(r)}}function Bi(e,t){const n=t.t||t.type;switch(n){case 3:{const r=t;return r.v||r.value}case 9:{const r=t;return r.v||r.value}case 4:{const r=t;return e.interpolate(e.named(r.k||r.key))}case 5:{const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index))}case 6:{const r=t,i=r.m||r.modifier;return e.linked(Bi(e,r.k||r.key),i?Bi(e,i):void 0,e.type)}case 7:{const r=t;return r.v||r.value}case 8:{const r=t;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const yc=e=>e;let Vn=Object.create(null);const zn=e=>le(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function vc(e,t={}){let n=!1;const r=t.onError||Hp;return t.onError=i=>{n=!0,r(i)},{...fm(e,t),detectError:n}}const Ym=(e,t)=>{if(!W(e))throw _t(at.NOT_SUPPORT_NON_STRING_MESSAGE);{Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||yc)(e),i=Vn[r];if(i)return i;const{code:s,detectError:o}=vc(e,t),a=new Function(`return ${s}`)();return o?a:Vn[r]=a}};function Xm(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||yc)(e),i=Vn[r];if(i)return i;const{ast:s,detectError:o}=vc(e,{...t,location:!1,jit:!0}),a=zi(s);return o?a:Vn[r]=a}else{const n=e.cacheKey;if(n){const r=Vn[n];return r||(Vn[n]=zi(e))}else return zi(e)}}const wc=()=>"",et=e=>pe(e);function kc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:o,messages:a}=e,[l,u]=Gi(...t),c=Q(u.missingWarn)?u.missingWarn:e.missingWarn,f=Q(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=Q(u.escapeParameter)?u.escapeParameter:e.escapeParameter,m=!!u.resolvedMessage,v=W(u.default)||Q(u.default)?Q(u.default)?s?l:()=>l:u.default:n?s?l:()=>l:"",E=n||v!=="",k=Hi(e,u);d&&Zm(u);let[S,L,y]=m?[l,k,a[k]||{}]:Tc(e,l,k,o,f,c),_=S,O=l;if(!m&&!(W(_)||zn(_)||et(_))&&E&&(_=v,O=_),!m&&(!(W(_)||zn(_)||et(_))||!W(L)))return i?ys:l;let C=!1;const A=()=>{C=!0},N=et(_)?_:Ec(e,l,L,_,O,A);if(C)return _;const P=Qm(e,L,y,u),K=xm(P),re=Jm(e,N,K),G=r?r(re,l):re;if(__INTLIFY_PROD_DEVTOOLS__){const he={timestamp:Date.now(),key:W(l)?l:et(_)?_.key:"",locale:L||(et(_)?_.locale:""),format:W(_)?_:et(_)?_.source:"",message:G};he.meta=Pe({},e.__meta,Hm()||{}),Am(he)}return G}function Zm(e){ge(e.list)?e.list=e.list.map(t=>W(t)?zl(t):t):le(e.named)&&Object.keys(e.named).forEach(t=>{W(e.named[t])&&(e.named[t]=zl(e.named[t]))})}function Tc(e,t,n,r,i,s){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f={},d,m=null;const v="translate";for(let E=0;E<c.length&&(d=c[E],f=o[d]||{},(m=l(f,t))===null&&(m=f[t]),!(W(m)||zn(m)||et(m)));E++)if(!Bm(d,c)){const k=Vi(e,t,d,s,v);k!==t&&(m=k)}return[m,d,f]}function Ec(e,t,n,r,i,s){const{messageCompiler:o,warnHtmlMessage:a}=e;if(et(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=()=>r;return u.locale=n,u.key=t,u}const l=o(r,qm(e,n,i,r,a,s));return l.locale=n,l.key=t,l.source=r,l}function Jm(e,t,n){return t(n)}function Gi(...e){const[t,n,r]=e,i={};if(!W(t)&&!Ee(t)&&!et(t)&&!zn(t))throw _t(at.INVALID_ARGUMENT);const s=Ee(t)?String(t):(et(t),t);return Ee(n)?i.plural=n:W(n)?i.default=n:Y(n)&&!hs(n)?i.named=n:ge(n)&&(i.list=n),Ee(r)?i.plural=r:W(r)?i.default=r:Y(r)&&Pe(i,r),[s,i]}function qm(e,t,n,r,i,s){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw s&&s(o),o},onCacheKey:o=>xp(t,n,o)}}function Qm(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:i,pluralRules:s,messages:m=>{let v=o(n,m);if(v==null&&c){const[,,E]=Tc(c,m,t,a,l,u);v=o(E,m)}if(W(v)||zn(v)){let E=!1;const S=Ec(e,m,t,v,m,()=>{E=!0});return E?wc:S}else return et(v)?v:wc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ee(r.plural)&&(d.pluralIndex=r.plural),d}function Ic(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=Yi(...t),d=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,v=Hi(e,c),E=o(e,i,v);if(!W(l)||l==="")return new Intl.DateTimeFormat(v,f).format(u);let k={},S,L=null;const y="datetime format";for(let C=0;C<E.length&&(S=E[C],k=n[S]||{},L=k[l],!Y(L));C++)Vi(e,l,S,d,y);if(!Y(L)||!W(S))return r?ys:l;let _=`${S}__${l}`;hs(f)||(_=`${_}__${JSON.stringify(f)}`);let O=a.get(_);return O||(O=new Intl.DateTimeFormat(S,Pe({},L,f)),a.set(_,O)),m?O.formatToParts(u):O.format(u)}const Sc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Yi(...e){const[t,n,r,i]=e,s={};let o={},a;if(W(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw _t(at.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(u);try{a.toISOString()}catch{throw _t(at.INVALID_ISO_DATE_ARGUMENT)}}else if(Lp(t)){if(isNaN(t.getTime()))throw _t(at.INVALID_DATE_ARGUMENT);a=t}else if(Ee(t))a=t;else throw _t(at.INVALID_ARGUMENT);return W(n)?s.key=n:Y(n)&&Object.keys(n).forEach(l=>{Sc.includes(l)?o[l]=n[l]:s[l]=n[l]}),W(r)?s.locale=r:Y(r)&&(o=r),Y(i)&&(o=i),[s.key||"",a,s,o]}function Oc(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function xc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=Xi(...t),d=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,v=Hi(e,c),E=o(e,i,v);if(!W(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let k={},S,L=null;const y="number format";for(let C=0;C<E.length&&(S=E[C],k=n[S]||{},L=k[l],!Y(L));C++)Vi(e,l,S,d,y);if(!Y(L)||!W(S))return r?ys:l;let _=`${S}__${l}`;hs(f)||(_=`${_}__${JSON.stringify(f)}`);let O=a.get(_);return O||(O=new Intl.NumberFormat(S,Pe({},L,f)),a.set(_,O)),m?O.formatToParts(u):O.format(u)}const Cc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Xi(...e){const[t,n,r,i]=e,s={};let o={};if(!Ee(t))throw _t(at.INVALID_ARGUMENT);const a=t;return W(n)?s.key=n:Y(n)&&Object.keys(n).forEach(l=>{Cc.includes(l)?o[l]=n[l]:s[l]=n[l]}),W(r)?s.locale=r:Y(r)&&(o=r),Y(i)&&(o=i),[s.key||"",a,s,o]}function Lc(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}dm();/*!
41
+ */function mm(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Nt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Nt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Nt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Jt=[];Jt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Jt[1]={w:[1],".":[2],"[":[4],o:[7]},Jt[2]={w:[2],i:[3,0],0:[3,0]},Jt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Jt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Jt[5]={"'":[4,0],o:8,l:[5,0]},Jt[6]={'"':[4,0],o:8,l:[6,0]};const gm=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function _m(e){return gm.test(e)}function bm(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function ym(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function vm(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:_m(t)?bm(t):"*"+t}function wm(e){const t=[];let n=-1,r=0,i=0,s,o,a,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=a:o+=a},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),i++},d[3]=()=>{if(i>0)i--,r=4,d[0]();else{if(i=0,o===void 0||(o=vm(o),o===!1))return!1;d[1]()}};function _(){const v=e[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,a="\\"+v,d[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&_())){if(l=ym(s),f=Jt[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(a=s,c()===!1))))return;if(r===7)return t}}const sc=new Map;function km(e,t){return le(e)?e[t]:null}function Tm(e,t){if(!le(e))return null;let n=sc.get(t);if(n||(n=wm(t),n&&sc.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s<r;){const o=i[n[s]];if(o===void 0||pe(i))return null;i=o,s++}return i}const Em=e=>e,Im=e=>"",Sm="text",Om=e=>e.length===0?"":Dp(e),xm=Mp;function ic(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Cm(e){const t=Ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ie(e.named.count)||Ie(e.named.n))?Ie(e.named.count)?e.named.count:Ie(e.named.n)?e.named.n:t:t}function Lm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Am(e={}){const t=e.locale,n=Cm(e),r=le(e.pluralRules)&&W(t)&&pe(e.pluralRules[t])?e.pluralRules[t]:ic,i=le(e.pluralRules)&&W(t)&&pe(e.pluralRules[t])?ic:void 0,s=E=>E[r(n,E.length,i)],o=e.list||[],a=E=>o[E],l=e.named||{};Ie(e.pluralIndex)&&Lm(n,l);const u=E=>l[E];function c(E){const L=pe(e.messages)?e.messages(E):le(e.messages)?e.messages[E]:!1;return L||(e.parent?e.parent.message(E):Im)}const f=E=>e.modifiers?e.modifiers[E]:Em,d=X(e.processor)&&pe(e.processor.normalize)?e.processor.normalize:Om,_=X(e.processor)&&pe(e.processor.interpolate)?e.processor.interpolate:xm,v=X(e.processor)&&W(e.processor.type)?e.processor.type:Sm,T={list:a,named:u,plural:s,linked:(E,...L)=>{const[y,g]=L;let O="text",C="";L.length===1?le(y)?(C=y.modifier||C,O=y.type||O):W(y)&&(C=y||C):L.length===2&&(W(y)&&(C=y||C),W(g)&&(O=g||O));const A=c(E)(T),N=O==="vnode"&&ge(A)&&C?A[0]:A;return C?f(C)(N,O):N},message:c,type:v,interpolate:_,normalize:d,values:Re({},o,l)};return T}let vr=null;function Nm(e){vr=e}function Pm(e,t,n){vr&&vr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Rm=$m("function:translate");function $m(e){return t=>vr&&vr.emit(e,t)}const oc=Vi.__EXTEND_POINT__,yn=_s(oc),Mm={NOT_FOUND_KEY:oc,FALLBACK_TO_TRANSLATE:yn(),CANNOT_FORMAT_NUMBER:yn(),FALLBACK_TO_NUMBER_FORMAT:yn(),CANNOT_FORMAT_DATE:yn(),FALLBACK_TO_DATE_FORMAT:yn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:yn(),__EXTEND_POINT__:yn()},ac=B.__EXTEND_POINT__,vn=_s(ac),lt={INVALID_ARGUMENT:ac,INVALID_DATE_ARGUMENT:vn(),INVALID_ISO_DATE_ARGUMENT:vn(),NOT_SUPPORT_NON_STRING_MESSAGE:vn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:vn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:vn(),NOT_SUPPORT_LOCALE_TYPE:vn(),__EXTEND_POINT__:vn()};function bt(e){return Un(e,null,void 0)}function Bi(e,t){return t.locale!=null?lc(t.locale):lc(e.locale)}let Gi;function lc(e){if(W(e))return e;if(pe(e)){if(e.resolvedOnce&&Gi!=null)return Gi;if(e.constructor.name==="Function"){const t=e();if($p(t))throw bt(lt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Gi=t}else throw bt(lt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw bt(lt.NOT_SUPPORT_LOCALE_TYPE)}function Dm(e,t,n){return[...new Set([n,...ge(t)?t:le(t)?Object.keys(t):W(t)?[t]:[n]])]}function cc(e,t,n){const r=W(n)?n:Kn,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;ge(o);)o=uc(s,o,t);const a=ge(t)||!X(t)?t:t.default?t.default:null;o=W(a)?[a]:a,ge(o)&&uc(s,o,!1),i.__localeChainCache.set(r,s)}return s}function uc(e,t,n){let r=!0;for(let i=0;i<t.length&&Q(r);i++){const s=t[i];W(s)&&(r=Fm(e,t[i],n))}return r}function Fm(e,t,n){let r;const i=t.split("-");do{const s=i.join("-");r=jm(e,s,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function jm(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(ge(n)||X(n))&&n[i]&&(r=n[i])}return r}const Um="9.14.0",ws=-1,Kn="en-US",fc="",dc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Wm(){return{upper:(e,t)=>t==="text"&&W(e)?e.toUpperCase():t==="vnode"&&le(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&W(e)?e.toLowerCase():t==="vnode"&&le(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&W(e)?dc(e):t==="vnode"&&le(e)&&"__v_isVNode"in e?dc(e.children):e}}let hc;function pc(e){hc=e}let mc;function Hm(e){mc=e}let gc;function Km(e){gc=e}let _c=null;const Vm=e=>{_c=e},zm=()=>_c;let bc=null;const yc=e=>{bc=e},Bm=()=>bc;let vc=0;function Gm(e={}){const t=pe(e.onWarn)?e.onWarn:Fp,n=W(e.version)?e.version:Um,r=W(e.locale)||pe(e.locale)?e.locale:Kn,i=pe(r)?Kn:r,s=ge(e.fallbackLocale)||X(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=X(e.messages)?e.messages:{[i]:{}},a=X(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=X(e.numberFormats)?e.numberFormats:{[i]:{}},u=Re({},e.modifiers||{},Wm()),c=e.pluralRules||{},f=pe(e.missing)?e.missing:null,d=Q(e.missingWarn)||Xt(e.missingWarn)?e.missingWarn:!0,_=Q(e.fallbackWarn)||Xt(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,S=!!e.unresolving,T=pe(e.postTranslation)?e.postTranslation:null,E=X(e.processor)?e.processor:null,L=Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,g=pe(e.messageCompiler)?e.messageCompiler:hc,O=pe(e.messageResolver)?e.messageResolver:mc||km,C=pe(e.localeFallbacker)?e.localeFallbacker:gc||Dm,A=le(e.fallbackContext)?e.fallbackContext:void 0,N=e,P=le(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,Y=le(N.__numberFormatters)?N.__numberFormatters:new Map,te=le(N.__meta)?N.__meta:{};vc++;const V={version:n,cid:vc,locale:r,fallbackLocale:s,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:_,fallbackFormat:v,unresolving:S,postTranslation:T,processor:E,warnHtmlMessage:L,escapeParameter:y,messageCompiler:g,messageResolver:O,localeFallbacker:C,fallbackContext:A,onWarn:t,__meta:te};return V.datetimeFormats=a,V.numberFormats=l,V.__datetimeFormatters=P,V.__numberFormatters=Y,__INTLIFY_PROD_DEVTOOLS__&&Pm(V,n,te),V}function Yi(e,t,n,r,i){const{missing:s,onWarn:o}=e;if(s!==null){const a=s(e,n,t,i);return W(a)?a:t}else return t}function wr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ym(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Xm(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Ym(e,t[r]))return!0;return!1}function Xi(e){return n=>Zm(n,e)}function Zm(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,i=r.c||r.cases;return e.plural(i.reduce((s,o)=>[...s,wc(e,o)],[]))}else return wc(e,n)}function wc(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((i,s)=>[...i,Zi(e,s)],[]);return e.normalize(r)}}function Zi(e,t){const n=t.t||t.type;switch(n){case 3:{const r=t;return r.v||r.value}case 9:{const r=t;return r.v||r.value}case 4:{const r=t;return e.interpolate(e.named(r.k||r.key))}case 5:{const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index))}case 6:{const r=t,i=r.m||r.modifier;return e.linked(Zi(e,r.k||r.key),i?Zi(e,i):void 0,e.type)}case 7:{const r=t;return r.v||r.value}case 8:{const r=t;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const kc=e=>e;let Vn=Object.create(null);const zn=e=>le(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Tc(e,t={}){let n=!1;const r=t.onError||zp;return t.onError=i=>{n=!0,r(i)},{...pm(e,t),detectError:n}}const Jm=(e,t)=>{if(!W(e))throw bt(lt.NOT_SUPPORT_NON_STRING_MESSAGE);{Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||kc)(e),i=Vn[r];if(i)return i;const{code:s,detectError:o}=Tc(e,t),a=new Function(`return ${s}`)();return o?a:Vn[r]=a}};function qm(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||kc)(e),i=Vn[r];if(i)return i;const{ast:s,detectError:o}=Tc(e,{...t,location:!1,jit:!0}),a=Xi(s);return o?a:Vn[r]=a}else{const n=e.cacheKey;if(n){const r=Vn[n];return r||(Vn[n]=Xi(e))}else return Xi(e)}}const Ec=()=>"",tt=e=>pe(e);function Ic(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:o,messages:a}=e,[l,u]=Ji(...t),c=Q(u.missingWarn)?u.missingWarn:e.missingWarn,f=Q(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=Q(u.escapeParameter)?u.escapeParameter:e.escapeParameter,_=!!u.resolvedMessage,v=W(u.default)||Q(u.default)?Q(u.default)?s?l:()=>l:u.default:n?s?l:()=>l:"",S=n||v!=="",T=Bi(e,u);d&&Qm(u);let[E,L,y]=_?[l,T,a[T]||{}]:Sc(e,l,T,o,f,c),g=E,O=l;if(!_&&!(W(g)||zn(g)||tt(g))&&S&&(g=v,O=g),!_&&(!(W(g)||zn(g)||tt(g))||!W(L)))return i?ws:l;let C=!1;const A=()=>{C=!0},N=tt(g)?g:Oc(e,l,L,g,O,A);if(C)return g;const P=ng(e,L,y,u),Y=Am(P),te=eg(e,N,Y),V=r?r(te,l):te;if(__INTLIFY_PROD_DEVTOOLS__){const he={timestamp:Date.now(),key:W(l)?l:tt(g)?g.key:"",locale:L||(tt(g)?g.locale:""),format:W(g)?g:tt(g)?g.source:"",message:V};he.meta=Re({},e.__meta,zm()||{}),Rm(he)}return V}function Qm(e){ge(e.list)?e.list=e.list.map(t=>W(t)?Yl(t):t):le(e.named)&&Object.keys(e.named).forEach(t=>{W(e.named[t])&&(e.named[t]=Yl(e.named[t]))})}function Sc(e,t,n,r,i,s){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f={},d,_=null;const v="translate";for(let S=0;S<c.length&&(d=c[S],f=o[d]||{},(_=l(f,t))===null&&(_=f[t]),!(W(_)||zn(_)||tt(_)));S++)if(!Xm(d,c)){const T=Yi(e,t,d,s,v);T!==t&&(_=T)}return[_,d,f]}function Oc(e,t,n,r,i,s){const{messageCompiler:o,warnHtmlMessage:a}=e;if(tt(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=()=>r;return u.locale=n,u.key=t,u}const l=o(r,tg(e,n,i,r,a,s));return l.locale=n,l.key=t,l.source=r,l}function eg(e,t,n){return t(n)}function Ji(...e){const[t,n,r]=e,i={};if(!W(t)&&!Ie(t)&&!tt(t)&&!zn(t))throw bt(lt.INVALID_ARGUMENT);const s=Ie(t)?String(t):(tt(t),t);return Ie(n)?i.plural=n:W(n)?i.default=n:X(n)&&!ms(n)?i.named=n:ge(n)&&(i.list=n),Ie(r)?i.plural=r:W(r)?i.default=r:X(r)&&Re(i,r),[s,i]}function tg(e,t,n,r,i,s){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw s&&s(o),o},onCacheKey:o=>Ap(t,n,o)}}function ng(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:i,pluralRules:s,messages:_=>{let v=o(n,_);if(v==null&&c){const[,,S]=Sc(c,_,t,a,l,u);v=o(S,_)}if(W(v)||zn(v)){let S=!1;const E=Oc(e,_,t,v,_,()=>{S=!0});return S?Ec:E}else return tt(v)?v:Ec}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ie(r.plural)&&(d.pluralIndex=r.plural),d}function xc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=qi(...t),d=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const _=!!c.part,v=Bi(e,c),S=o(e,i,v);if(!W(l)||l==="")return new Intl.DateTimeFormat(v,f).format(u);let T={},E,L=null;const y="datetime format";for(let C=0;C<S.length&&(E=S[C],T=n[E]||{},L=T[l],!X(L));C++)Yi(e,l,E,d,y);if(!X(L)||!W(E))return r?ws:l;let g=`${E}__${l}`;ms(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.DateTimeFormat(E,Re({},L,f)),a.set(g,O)),_?O.formatToParts(u):O.format(u)}const Cc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function qi(...e){const[t,n,r,i]=e,s={};let o={},a;if(W(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw bt(lt.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(u);try{a.toISOString()}catch{throw bt(lt.INVALID_ISO_DATE_ARGUMENT)}}else if(Pp(t)){if(isNaN(t.getTime()))throw bt(lt.INVALID_DATE_ARGUMENT);a=t}else if(Ie(t))a=t;else throw bt(lt.INVALID_ARGUMENT);return W(n)?s.key=n:X(n)&&Object.keys(n).forEach(l=>{Cc.includes(l)?o[l]=n[l]:s[l]=n[l]}),W(r)?s.locale=r:X(r)&&(o=r),X(i)&&(o=i),[s.key||"",a,s,o]}function Lc(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Ac(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=Qi(...t),d=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const _=!!c.part,v=Bi(e,c),S=o(e,i,v);if(!W(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let T={},E,L=null;const y="number format";for(let C=0;C<S.length&&(E=S[C],T=n[E]||{},L=T[l],!X(L));C++)Yi(e,l,E,d,y);if(!X(L)||!W(E))return r?ws:l;let g=`${E}__${l}`;ms(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.NumberFormat(E,Re({},L,f)),a.set(g,O)),_?O.formatToParts(u):O.format(u)}const Nc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Qi(...e){const[t,n,r,i]=e,s={};let o={};if(!Ie(t))throw bt(lt.INVALID_ARGUMENT);const a=t;return W(n)?s.key=n:X(n)&&Object.keys(n).forEach(l=>{Nc.includes(l)?o[l]=n[l]:s[l]=n[l]}),W(r)?s.locale=r:X(r)&&(o=r),X(i)&&(o=i),[s.key||"",a,s,o]}function Pc(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}mm();/*!
42
42
  * vue-i18n v9.14.0
43
43
  * (c) 2024 kazuya kawaguchi
44
44
  * Released under the MIT License.
45
- */const eg="9.14.0";function tg(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Lt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Lt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Lt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Lt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Lt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ac=Pm.__EXTEND_POINT__,Nt=ms(Ac);Nt(),Nt(),Nt(),Nt(),Nt(),Nt(),Nt(),Nt(),Nt();const Nc=at.__EXTEND_POINT__,Be=ms(Nc),Ie={UNEXPECTED_RETURN_TYPE:Nc,INVALID_ARGUMENT:Be(),MUST_BE_CALL_SETUP_TOP:Be(),NOT_INSTALLED:Be(),NOT_AVAILABLE_IN_LEGACY_MODE:Be(),REQUIRED_VALUE:Be(),INVALID_VALUE:Be(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Be(),NOT_INSTALLED_WITH_PROVIDE:Be(),UNEXPECTED_ERROR:Be(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Be(),BRIDGE_SUPPORT_VUE_2_ONLY:Be(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Be(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Be(),__EXTEND_POINT__:Be()};function Ce(e,...t){return Un(e,null,void 0)}const Zi=zt("__translateVNode"),Ji=zt("__datetimeParts"),qi=zt("__numberParts"),Pc=zt("__setPluralRules"),Rc=zt("__injectWithOption"),Qi=zt("__dispose");function vr(e){if(!le(e))return e;for(const t in e)if(ps(e,t))if(!t.includes("."))le(e[t])&&vr(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let o=0;o<r;o++){if(n[o]in i||(i[n[o]]={}),!le(i[n[o]])){s=!0;break}i=i[n[o]]}s||(i[n[r]]=e[t],delete e[t]),le(i[n[r]])&&vr(i[n[r]])}return e}function vs(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:s}=t,o=Y(n)?n:ge(r)?{}:{[e]:{}};if(ge(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||{},_s(u,o[l])):_s(u,o)}else W(a)&&_s(JSON.parse(a),o)}),i==null&&s)for(const a in o)ps(o,a)&&vr(o[a]);return o}function $c(e){return e.type}function Mc(e,t,n){let r=le(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=vs(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(le(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(le(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Dc(e){return Me(lr,null,e,0)}const Fc="__INTLIFY_META__",jc=()=>[],ng=()=>!1;let Uc=0;function Wc(e){return(t,n,r,i)=>e(n,r,dr()||void 0,i)}const rg=()=>{const e=dr();let t=null;return e&&(t=$c(e)[Fc])?{[Fc]:t}:null};function eo(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,s=e.flatJson,o=ds?te:da,a=!!e.translateExistCompatible;let l=Q(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&l?n.locale.value:W(e.locale)?e.locale:Kn),c=o(n&&l?n.fallbackLocale.value:W(e.fallbackLocale)||ge(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),f=o(vs(u.value,e)),d=o(Y(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),m=o(Y(e.numberFormats)?e.numberFormats:{[u.value]:{}});let v=n?n.missingWarn:Q(e.missingWarn)||Bt(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:Q(e.fallbackWarn)||Bt(e.fallbackWarn)?e.fallbackWarn:!0,k=n?n.fallbackRoot:Q(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,L=pe(e.missing)?e.missing:null,y=pe(e.missing)?Wc(e.missing):null,_=pe(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter;const A=n?n.modifiers:Y(e.modifiers)?e.modifiers:{};let N=e.pluralRules||n&&n.pluralRules,P;P=(()=>{i&&gc(null);const T={version:eg,locale:u.value,fallbackLocale:c.value,messages:f.value,modifiers:A,pluralRules:N,missing:y===null?void 0:y,missingWarn:v,fallbackWarn:E,fallbackFormat:S,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:O,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=d.value,T.numberFormats=m.value,T.__datetimeFormatters=Y(P)?P.__datetimeFormatters:void 0,T.__numberFormatters=Y(P)?P.__numberFormatters:void 0;const x=Vm(T);return i&&gc(x),x})(),yr(P,u.value,c.value);function re(){return[u.value,c.value,f.value,d.value,m.value]}const G=Ke({get:()=>u.value,set:T=>{u.value=T,P.locale=u.value}}),he=Ke({get:()=>c.value,set:T=>{c.value=T,P.fallbackLocale=c.value,yr(P,u.value,T)}}),lt=Ke(()=>f.value),vt=Ke(()=>d.value),se=Ke(()=>m.value);function Z(){return pe(_)?_:null}function ie(T){_=T,P.postTranslation=T}function Je(){return L}function wt(T){T!==null&&(y=Wc(T)),L=T,P.missing=y}const Se=(T,x,H,V,we,Te)=>{re();let Ae;try{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=n?Km():void 0),Ae=T(P)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=void 0)}if(H!=="translate exists"&&Ee(Ae)&&Ae===ys||H==="translate exists"&&!Ae){const[ze,Xn]=x();return n&&k?V(n):we(ze)}else{if(Te(Ae))return Ae;throw Ce(Ie.UNEXPECTED_RETURN_TYPE)}};function Le(...T){return Se(x=>Reflect.apply(kc,null,[x,...T]),()=>Gi(...T),"translate",x=>Reflect.apply(x.t,x,[...T]),x=>x,x=>W(x))}function Zt(...T){const[x,H,V]=T;if(V&&!le(V))throw Ce(Ie.INVALID_ARGUMENT);return Le(x,H,Pe({resolvedMessage:!0},V||{}))}function Jt(...T){return Se(x=>Reflect.apply(Ic,null,[x,...T]),()=>Yi(...T),"datetime format",x=>Reflect.apply(x.d,x,[...T]),()=>lc,x=>W(x))}function xn(...T){return Se(x=>Reflect.apply(xc,null,[x,...T]),()=>Xi(...T),"number format",x=>Reflect.apply(x.n,x,[...T]),()=>lc,x=>W(x))}function ct(T){return T.map(x=>W(x)||Ee(x)||Q(x)?Dc(String(x)):x)}const Mt={normalize:ct,interpolate:T=>T,type:"vnode"};function qt(...T){return Se(x=>{let H;const V=x;try{V.processor=Mt,H=Reflect.apply(kc,null,[V,...T])}finally{V.processor=null}return H},()=>Gi(...T),"translate",x=>x[Zi](...T),x=>[Dc(x)],x=>ge(x))}function rt(...T){return Se(x=>Reflect.apply(xc,null,[x,...T]),()=>Xi(...T),"number format",x=>x[qi](...T),jc,x=>W(x)||ge(x))}function Qt(...T){return Se(x=>Reflect.apply(Ic,null,[x,...T]),()=>Yi(...T),"datetime format",x=>x[Ji](...T),jc,x=>W(x)||ge(x))}function en(T){N=T,P.pluralRules=N}function b(T,x){return Se(()=>{if(!T)return!1;const H=W(x)?x:u.value,V=F(H),we=P.messageResolver(V,T);return a?we!=null:zn(we)||et(we)||W(we)},()=>[T],"translate exists",H=>Reflect.apply(H.te,H,[T,x]),ng,H=>Q(H))}function g(T){let x=null;const H=oc(P,c.value,u.value);for(let V=0;V<H.length;V++){const we=f.value[H[V]]||{},Te=P.messageResolver(we,T);if(Te!=null){x=Te;break}}return x}function I(T){const x=g(T);return x??(n?n.tm(T)||{}:{})}function F(T){return f.value[T]||{}}function R(T,x){if(s){const H={[T]:x};for(const V in H)ps(H,V)&&vr(H[V]);x=H[T]}f.value[T]=x,P.messages=f.value}function M(T,x){f.value[T]=f.value[T]||{};const H={[T]:x};if(s)for(const V in H)ps(H,V)&&vr(H[V]);x=H[T],_s(x,f.value[T]),P.messages=f.value}function U(T){return d.value[T]||{}}function h(T,x){d.value[T]=x,P.datetimeFormats=d.value,Oc(P,T,x)}function p(T,x){d.value[T]=Pe(d.value[T]||{},x),P.datetimeFormats=d.value,Oc(P,T,x)}function w(T){return m.value[T]||{}}function $(T,x){m.value[T]=x,P.numberFormats=m.value,Lc(P,T,x)}function j(T,x){m.value[T]=Pe(m.value[T]||{},x),P.numberFormats=m.value,Lc(P,T,x)}Uc++,n&&ds&&(un(n.locale,T=>{l&&(u.value=T,P.locale=T,yr(P,u.value,c.value))}),un(n.fallbackLocale,T=>{l&&(c.value=T,P.fallbackLocale=T,yr(P,u.value,c.value))}));const D={id:Uc,locale:G,fallbackLocale:he,get inheritLocale(){return l},set inheritLocale(T){l=T,T&&n&&(u.value=n.locale.value,c.value=n.fallbackLocale.value,yr(P,u.value,c.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:lt,get modifiers(){return A},get pluralRules(){return N||{}},get isGlobal(){return i},get missingWarn(){return v},set missingWarn(T){v=T,P.missingWarn=v},get fallbackWarn(){return E},set fallbackWarn(T){E=T,P.fallbackWarn=E},get fallbackRoot(){return k},set fallbackRoot(T){k=T},get fallbackFormat(){return S},set fallbackFormat(T){S=T,P.fallbackFormat=S},get warnHtmlMessage(){return O},set warnHtmlMessage(T){O=T,P.warnHtmlMessage=T},get escapeParameter(){return C},set escapeParameter(T){C=T,P.escapeParameter=T},t:Le,getLocaleMessage:F,setLocaleMessage:R,mergeLocaleMessage:M,getPostTranslationHandler:Z,setPostTranslationHandler:ie,getMissingHandler:Je,setMissingHandler:wt,[Pc]:en};return D.datetimeFormats=vt,D.numberFormats=se,D.rt=Zt,D.te=b,D.tm=I,D.d=Jt,D.n=xn,D.getDateTimeFormat=U,D.setDateTimeFormat=h,D.mergeDateTimeFormat=p,D.getNumberFormat=w,D.setNumberFormat=$,D.mergeNumberFormat=j,D[Rc]=r,D[Zi]=qt,D[Ji]=Qt,D[qi]=rt,D}function sg(e){const t=W(e.locale)?e.locale:Kn,n=W(e.fallbackLocale)||ge(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=pe(e.missing)?e.missing:void 0,i=Q(e.silentTranslationWarn)||Bt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Q(e.silentFallbackWarn)||Bt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=Y(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=pe(e.postTranslation)?e.postTranslation:void 0,f=W(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,m=Q(e.sync)?e.sync:!0;let v=e.messages;if(Y(e.sharedMessages)){const C=e.sharedMessages;v=Object.keys(C).reduce((N,P)=>{const K=N[P]||(N[P]={});return Pe(K,C[P]),N},v||{})}const{__i18n:E,__root:k,__injectWithOption:S}=e,L=e.datetimeFormats,y=e.numberFormats,_=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:v,flatJson:_,datetimeFormats:L,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:m,translateExistCompatible:O,__i18n:E,__root:k,__injectWithOption:S}}function to(e={},t){{const n=eo(sg(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(s){},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return Q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=Q(s)?!s:s},get silentFallbackWarn(){return Q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=Q(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(s){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[o,a,l]=s,u={};let c=null,f=null;if(!W(o))throw Ce(Ie.INVALID_ARGUMENT);const d=o;return W(a)?u.locale=a:ge(a)?c=a:Y(a)&&(f=a),ge(l)?c=l:Y(l)&&(f=l),Reflect.apply(n.t,n,[d,c||f||{},u])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[o,a,l]=s,u={plural:1};let c=null,f=null;if(!W(o))throw Ce(Ie.INVALID_ARGUMENT);const d=o;return W(a)?u.locale=a:Ee(a)?u.plural=a:ge(a)?c=a:Y(a)&&(f=a),W(l)?u.locale=l:ge(l)?c=l:Y(l)&&(f=l),Reflect.apply(n.t,n,[d,c||f||{},u])},te(s,o){return n.te(s,o)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,o){n.setLocaleMessage(s,o)},mergeLocaleMessage(s,o){n.mergeLocaleMessage(s,o)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,o){n.setDateTimeFormat(s,o)},mergeDateTimeFormat(s,o){n.mergeDateTimeFormat(s,o)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,o){n.setNumberFormat(s,o)},mergeNumberFormat(s,o){n.mergeNumberFormat(s,o)},getChoiceIndex(s,o){return-1}};return i.__extender=r,i}}const no={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ig({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Oe?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},{})}function Hc(e){return Oe}const Kc=an({name:"i18n-t",props:Pe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ee(e)||!isNaN(e)}},no),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||yn({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=W(e.plural)?+e.plural:e.plural);const a=ig(t,s),l=i[Zi](e.keypath,a,o),u=Pe({},r),c=W(e.tag)||le(e.tag)?e.tag:Hc();return ul(c,u,l)}}});function og(e){return ge(e)&&!W(e[0])}function Vc(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),W(e.format)?o.key=e.format:le(e.format)&&(W(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,m)=>n.includes(m)?Pe({},d,{[m]:e.format[m]}):d,{}));const l=r(e.value,o,a);let u=[o.key];ge(l)?u=l.map((d,m)=>{const v=i[d.type],E=v?v({[d.type]:d.value,index:m,parts:l}):[d.value];return og(E)&&(E[0].key=`${d.type}-${m}`),E}):W(l)&&(u=[l]);const c=Pe({},s),f=W(e.tag)||le(e.tag)?e.tag:Hc();return ul(f,c,u)}}const zc=an({name:"i18n-n",props:Pe({value:{type:Number,required:!0},format:{type:[String,Object]}},no),setup(e,t){const n=e.i18n||yn({useScope:e.scope,__useComponent:!0});return Vc(e,t,Cc,(...r)=>n[qi](...r))}}),Bc=an({name:"i18n-d",props:Pe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},no),setup(e,t){const n=e.i18n||yn({useScope:e.scope,__useComponent:!0});return Vc(e,t,Sc,(...r)=>n[Ji](...r))}});function ag(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function lg(e){const t=o=>{const{instance:a,modifiers:l,value:u}=o;if(!a||!a.$)throw Ce(Ie.UNEXPECTED_ERROR);const c=ag(e,a.$),f=Gc(u);return[Reflect.apply(c.t,c,[...Yc(f)]),c]};return{created:(o,a)=>{const[l,u]=t(a);ds&&e.global===u&&(o.__i18nWatcher=un(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{ds&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,u=Gc(a);o.textContent=Reflect.apply(l.t,l,[...Yc(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function Gc(e){if(W(e))return{path:e};if(Y(e)){if(!("path"in e))throw Ce(Ie.REQUIRED_VALUE,"path");return e}else throw Ce(Ie.INVALID_VALUE)}function Yc(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,o={},a=r||{};return W(n)&&(o.locale=n),Ee(i)&&(o.plural=i),Ee(s)&&(o.plural=s),[t,a,o]}function cg(e,t,...n){const r=Y(n[0])?n[0]:{},i=!!r.useI18nComponentName;(Q(r.globalInstall)?r.globalInstall:!0)&&([i?"i18n":Kc.name,"I18nT"].forEach(o=>e.component(o,Kc)),[zc.name,"I18nN"].forEach(o=>e.component(o,zc)),[Bc.name,"I18nD"].forEach(o=>e.component(o,Bc))),e.directive("t",lg(t))}function ug(e,t,n){return{beforeCreate(){const r=dr();if(!r)throw Ce(Ie.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;if(i.__i18n&&(s.__i18n=i.__i18n),s.__root=t,this===this.$root)this.$i18n=Xc(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=to(s);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Xc(e,i);else{this.$i18n=to({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Mc(t,i,i),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=dr();if(!r)throw Ce(Ie.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Xc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Pc](t.pluralizationRules||e.pluralizationRules);const n=vs(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const fg=zt("global-vue-i18n");function dg(e={},t){const n=__VUE_I18N_LEGACY_API__&&Q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Q(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[o,a]=hg(e,n),l=zt("");function u(d){return s.get(d)||null}function c(d,m){s.set(d,m)}function f(d){s.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(m,...v){if(m.__VUE_I18N_SYMBOL__=l,m.provide(m.__VUE_I18N_SYMBOL__,d),Y(v[0])){const S=v[0];d.__composerExtend=S.__composerExtend,d.__vueI18nExtend=S.__vueI18nExtend}let E=null;!n&&r&&(E=kg(m,d.global)),__VUE_I18N_FULL_INSTALL__&&cg(m,d,...v),__VUE_I18N_LEGACY_API__&&n&&m.mixin(ug(a,a.__composer,d));const k=m.unmount;m.unmount=()=>{E&&E(),d.dispose(),k()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:u,__setInstance:c,__deleteInstance:f};return d}}function yn(e={}){const t=dr();if(t==null)throw Ce(Ie.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ce(Ie.NOT_INSTALLED);const n=pg(t),r=gg(n),i=$c(t),s=mg(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Ce(Ie.NOT_AVAILABLE_IN_LEGACY_MODE);return vg(t,s,r,e)}if(s==="global")return Mc(r,e,i),r;if(s==="parent"){let l=_g(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Pe({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),a=eo(l),o.__composerExtend&&(a[Qi]=o.__composerExtend(a)),yg(o,t,a),o.__setInstance(t,a)}return a}function hg(e,t,n){const r=Ws();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>to(e)):r.run(()=>eo(e));if(i==null)throw Ce(Ie.UNEXPECTED_ERROR);return[r,i]}}function pg(e){{const t=Ge(e.isCE?fg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ce(e.isCE?Ie.NOT_INSTALLED_WITH_PROVIDE:Ie.UNEXPECTED_ERROR);return t}}function mg(e,t){return hs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function gg(e){return e.mode==="composition"?e.global:e.global.__composer}function _g(e,t,n=!1){let r=null;const i=t.root;let s=bg(t,n);for(;s!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(s);a!=null&&(r=a.__composer,n&&r&&!r[Rc]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function bg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function yg(e,t,n){es(()=>{},t),ai(()=>{const r=n;e.__deleteInstance(t);const i=r[Qi];i&&(i(),delete r[Qi])},t)}function vg(e,t,n,r={}){const i=t==="local",s=da(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Ce(Ie.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Q(r.inheritLocale)?r.inheritLocale:!W(r.locale),a=te(!i||o?n.locale.value:W(r.locale)?r.locale:Kn),l=te(!i||o?n.fallbackLocale.value:W(r.fallbackLocale)||ge(r.fallbackLocale)||Y(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),u=te(vs(a.value,r)),c=te(Y(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=te(Y(r.numberFormats)?r.numberFormats:{[a.value]:{}}),d=i?n.missingWarn:Q(r.missingWarn)||Bt(r.missingWarn)?r.missingWarn:!0,m=i?n.fallbackWarn:Q(r.fallbackWarn)||Bt(r.fallbackWarn)?r.fallbackWarn:!0,v=i?n.fallbackRoot:Q(r.fallbackRoot)?r.fallbackRoot:!0,E=!!r.fallbackFormat,k=pe(r.missing)?r.missing:null,S=pe(r.postTranslation)?r.postTranslation:null,L=i?n.warnHtmlMessage:Q(r.warnHtmlMessage)?r.warnHtmlMessage:!0,y=!!r.escapeParameter,_=i?n.modifiers:Y(r.modifiers)?r.modifiers:{},O=r.pluralRules||i&&n.pluralRules;function C(){return[a.value,l.value,u.value,c.value,f.value]}const A=Ke({get:()=>s.value?s.value.locale.value:a.value,set:g=>{s.value&&(s.value.locale.value=g),a.value=g}}),N=Ke({get:()=>s.value?s.value.fallbackLocale.value:l.value,set:g=>{s.value&&(s.value.fallbackLocale.value=g),l.value=g}}),P=Ke(()=>s.value?s.value.messages.value:u.value),K=Ke(()=>c.value),re=Ke(()=>f.value);function G(){return s.value?s.value.getPostTranslationHandler():S}function he(g){s.value&&s.value.setPostTranslationHandler(g)}function lt(){return s.value?s.value.getMissingHandler():k}function vt(g){s.value&&s.value.setMissingHandler(g)}function se(g){return C(),g()}function Z(...g){return s.value?se(()=>Reflect.apply(s.value.t,null,[...g])):se(()=>"")}function ie(...g){return s.value?Reflect.apply(s.value.rt,null,[...g]):""}function Je(...g){return s.value?se(()=>Reflect.apply(s.value.d,null,[...g])):se(()=>"")}function wt(...g){return s.value?se(()=>Reflect.apply(s.value.n,null,[...g])):se(()=>"")}function Se(g){return s.value?s.value.tm(g):{}}function Le(g,I){return s.value?s.value.te(g,I):!1}function Zt(g){return s.value?s.value.getLocaleMessage(g):{}}function Jt(g,I){s.value&&(s.value.setLocaleMessage(g,I),u.value[g]=I)}function xn(g,I){s.value&&s.value.mergeLocaleMessage(g,I)}function ct(g){return s.value?s.value.getDateTimeFormat(g):{}}function $t(g,I){s.value&&(s.value.setDateTimeFormat(g,I),c.value[g]=I)}function Mt(g,I){s.value&&s.value.mergeDateTimeFormat(g,I)}function qt(g){return s.value?s.value.getNumberFormat(g):{}}function rt(g,I){s.value&&(s.value.setNumberFormat(g,I),f.value[g]=I)}function Qt(g,I){s.value&&s.value.mergeNumberFormat(g,I)}const en={get id(){return s.value?s.value.id:-1},locale:A,fallbackLocale:N,messages:P,datetimeFormats:K,numberFormats:re,get inheritLocale(){return s.value?s.value.inheritLocale:o},set inheritLocale(g){s.value&&(s.value.inheritLocale=g)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(u.value)},get modifiers(){return s.value?s.value.modifiers:_},get pluralRules(){return s.value?s.value.pluralRules:O},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:d},set missingWarn(g){s.value&&(s.value.missingWarn=g)},get fallbackWarn(){return s.value?s.value.fallbackWarn:m},set fallbackWarn(g){s.value&&(s.value.missingWarn=g)},get fallbackRoot(){return s.value?s.value.fallbackRoot:v},set fallbackRoot(g){s.value&&(s.value.fallbackRoot=g)},get fallbackFormat(){return s.value?s.value.fallbackFormat:E},set fallbackFormat(g){s.value&&(s.value.fallbackFormat=g)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:L},set warnHtmlMessage(g){s.value&&(s.value.warnHtmlMessage=g)},get escapeParameter(){return s.value?s.value.escapeParameter:y},set escapeParameter(g){s.value&&(s.value.escapeParameter=g)},t:Z,getPostTranslationHandler:G,setPostTranslationHandler:he,getMissingHandler:lt,setMissingHandler:vt,rt:ie,d:Je,n:wt,tm:Se,te:Le,getLocaleMessage:Zt,setLocaleMessage:Jt,mergeLocaleMessage:xn,getDateTimeFormat:ct,setDateTimeFormat:$t,mergeDateTimeFormat:Mt,getNumberFormat:qt,setNumberFormat:rt,mergeNumberFormat:Qt};function b(g){g.locale.value=a.value,g.fallbackLocale.value=l.value,Object.keys(u.value).forEach(I=>{g.mergeLocaleMessage(I,u.value[I])}),Object.keys(c.value).forEach(I=>{g.mergeDateTimeFormat(I,c.value[I])}),Object.keys(f.value).forEach(I=>{g.mergeNumberFormat(I,f.value[I])}),g.escapeParameter=y,g.fallbackFormat=E,g.fallbackRoot=v,g.fallbackWarn=m,g.missingWarn=d,g.warnHtmlMessage=L}return Sa(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Ce(Ie.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const g=s.value=e.proxy.$i18n.__composer;t==="global"?(a.value=g.locale.value,l.value=g.fallbackLocale.value,u.value=g.messages.value,c.value=g.datetimeFormats.value,f.value=g.numberFormats.value):i&&b(g)}),en}const wg=["locale","fallbackLocale","availableLocales"],Zc=["t","rt","d","n","tm","te"];function kg(e,t){const n=Object.create(null);return wg.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw Ce(Ie.UNEXPECTED_ERROR);const o=ve(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,Zc.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw Ce(Ie.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,Zc.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(tg(),__INTLIFY_JIT_COMPILATION__?fc(Xm):fc(Ym),jm(vm),Um(oc),__INTLIFY_PROD_DEVTOOLS__){const e=Lt();e.__INTLIFY__=!0,Cm(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Jc(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Tg(){this.__data__=[],this.size=0}function qc(e,t){return e===t||e!==e&&t!==t}function ws(e,t){for(var n=e.length;n--;)if(qc(e[n][0],t))return n;return-1}var Eg=Array.prototype,Ig=Eg.splice;function Sg(e){var t=this.__data__,n=ws(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ig.call(t,n,1),--this.size,!0}function Og(e){var t=this.__data__,n=ws(t,e);return n<0?void 0:t[n][1]}function xg(e){return ws(this.__data__,e)>-1}function Cg(e,t){var n=this.__data__,r=ws(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pt.prototype.clear=Tg,Pt.prototype.delete=Sg,Pt.prototype.get=Og,Pt.prototype.has=xg,Pt.prototype.set=Cg;function Lg(){this.__data__=new Pt,this.size=0}function Ag(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ng(e){return this.__data__.get(e)}function Pg(e){return this.__data__.has(e)}var Qc=typeof global=="object"&&global&&global.Object===Object&&global,Rg=typeof self=="object"&&self&&self.Object===Object&&self,bt=Qc||Rg||Function("return this")(),yt=bt.Symbol,eu=Object.prototype,$g=eu.hasOwnProperty,Mg=eu.toString,wr=yt?yt.toStringTag:void 0;function Dg(e){var t=$g.call(e,wr),n=e[wr];try{e[wr]=void 0;var r=!0}catch{}var i=Mg.call(e);return r&&(t?e[wr]=n:delete e[wr]),i}var Fg=Object.prototype,jg=Fg.toString;function Ug(e){return jg.call(e)}var Wg="[object Null]",Hg="[object Undefined]",tu=yt?yt.toStringTag:void 0;function vn(e){return e==null?e===void 0?Hg:Wg:tu&&tu in Object(e)?Dg(e):Ug(e)}function kr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Kg="[object AsyncFunction]",Vg="[object Function]",zg="[object GeneratorFunction]",Bg="[object Proxy]";function nu(e){if(!kr(e))return!1;var t=vn(e);return t==Vg||t==zg||t==Kg||t==Bg}var ro=bt["__core-js_shared__"],ru=function(){var e=/[^.]+$/.exec(ro&&ro.keys&&ro.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Gg(e){return!!ru&&ru in e}var Yg=Function.prototype,Xg=Yg.toString;function wn(e){if(e!=null){try{return Xg.call(e)}catch{}try{return e+""}catch{}}return""}var Zg=/[\\^$.*+?()[\]{}|]/g,Jg=/^\[object .+?Constructor\]$/,qg=Function.prototype,Qg=Object.prototype,e_=qg.toString,t_=Qg.hasOwnProperty,n_=RegExp("^"+e_.call(t_).replace(Zg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function r_(e){if(!kr(e)||Gg(e))return!1;var t=nu(e)?n_:Jg;return t.test(wn(e))}function s_(e,t){return e?.[t]}function kn(e,t){var n=s_(e,t);return r_(n)?n:void 0}var Tr=kn(bt,"Map"),Er=kn(Object,"create");function i_(){this.__data__=Er?Er(null):{},this.size=0}function o_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var a_="__lodash_hash_undefined__",l_=Object.prototype,c_=l_.hasOwnProperty;function u_(e){var t=this.__data__;if(Er){var n=t[e];return n===a_?void 0:n}return c_.call(t,e)?t[e]:void 0}var f_=Object.prototype,d_=f_.hasOwnProperty;function h_(e){var t=this.__data__;return Er?t[e]!==void 0:d_.call(t,e)}var p_="__lodash_hash_undefined__";function m_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Er&&t===void 0?p_:t,this}function Tn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tn.prototype.clear=i_,Tn.prototype.delete=o_,Tn.prototype.get=u_,Tn.prototype.has=h_,Tn.prototype.set=m_;function g_(){this.size=0,this.__data__={hash:new Tn,map:new(Tr||Pt),string:new Tn}}function __(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ks(e,t){var n=e.__data__;return __(t)?n[typeof t=="string"?"string":"hash"]:n.map}function b_(e){var t=ks(this,e).delete(e);return this.size-=t?1:0,t}function y_(e){return ks(this,e).get(e)}function v_(e){return ks(this,e).has(e)}function w_(e,t){var n=ks(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xt.prototype.clear=g_,Xt.prototype.delete=b_,Xt.prototype.get=y_,Xt.prototype.has=v_,Xt.prototype.set=w_;var k_=200;function T_(e,t){var n=this.__data__;if(n instanceof Pt){var r=n.__data__;if(!Tr||r.length<k_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xt(r)}return n.set(e,t),this.size=n.size,this}function Bn(e){var t=this.__data__=new Pt(e);this.size=t.size}Bn.prototype.clear=Lg,Bn.prototype.delete=Ag,Bn.prototype.get=Ng,Bn.prototype.has=Pg,Bn.prototype.set=T_;function E_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Ts=function(){try{var e=kn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function su(e,t,n){t=="__proto__"&&Ts?Ts(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var I_=Object.prototype,S_=I_.hasOwnProperty;function iu(e,t,n){var r=e[t];(!(S_.call(e,t)&&qc(r,n))||n===void 0&&!(t in e))&&su(e,t,n)}function Ir(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),i?su(n,a,l):iu(n,a,l)}return n}function O_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function En(e){return e!=null&&typeof e=="object"}var x_="[object Arguments]";function ou(e){return En(e)&&vn(e)==x_}var au=Object.prototype,C_=au.hasOwnProperty,L_=au.propertyIsEnumerable,lu=ou(function(){return arguments}())?ou:function(e){return En(e)&&C_.call(e,"callee")&&!L_.call(e,"callee")},In=Array.isArray;function A_(){return!1}var cu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,uu=cu&&typeof module=="object"&&module&&!module.nodeType&&module,N_=uu&&uu.exports===cu,fu=N_?bt.Buffer:void 0,P_=fu?fu.isBuffer:void 0,du=P_||A_,R_=9007199254740991,$_=/^(?:0|[1-9]\d*)$/;function M_(e,t){var n=typeof e;return t=t??R_,!!t&&(n=="number"||n!="symbol"&&$_.test(e))&&e>-1&&e%1==0&&e<t}var D_=9007199254740991;function hu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=D_}var F_="[object Arguments]",j_="[object Array]",U_="[object Boolean]",W_="[object Date]",H_="[object Error]",K_="[object Function]",V_="[object Map]",z_="[object Number]",B_="[object Object]",G_="[object RegExp]",Y_="[object Set]",X_="[object String]",Z_="[object WeakMap]",J_="[object ArrayBuffer]",q_="[object DataView]",Q_="[object Float32Array]",eb="[object Float64Array]",tb="[object Int8Array]",nb="[object Int16Array]",rb="[object Int32Array]",sb="[object Uint8Array]",ib="[object Uint8ClampedArray]",ob="[object Uint16Array]",ab="[object Uint32Array]",_e={};_e[Q_]=_e[eb]=_e[tb]=_e[nb]=_e[rb]=_e[sb]=_e[ib]=_e[ob]=_e[ab]=!0,_e[F_]=_e[j_]=_e[J_]=_e[U_]=_e[q_]=_e[W_]=_e[H_]=_e[K_]=_e[V_]=_e[z_]=_e[B_]=_e[G_]=_e[Y_]=_e[X_]=_e[Z_]=!1;function lb(e){return En(e)&&hu(e.length)&&!!_e[vn(e)]}function so(e){return function(t){return e(t)}}var pu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sr=pu&&typeof module=="object"&&module&&!module.nodeType&&module,cb=Sr&&Sr.exports===pu,io=cb&&Qc.process,Gn=function(){try{var e=Sr&&Sr.require&&Sr.require("util").types;return e||io&&io.binding&&io.binding("util")}catch{}}(),mu=Gn&&Gn.isTypedArray,ub=mu?so(mu):lb,fb=Object.prototype,db=fb.hasOwnProperty;function gu(e,t){var n=In(e),r=!n&&lu(e),i=!n&&!r&&du(e),s=!n&&!r&&!i&&ub(e),o=n||r||i||s,a=o?O_(e.length,String):[],l=a.length;for(var u in e)(t||db.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||M_(u,l)))&&a.push(u);return a}var hb=Object.prototype;function oo(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||hb;return e===n}function _u(e,t){return function(n){return e(t(n))}}var pb=_u(Object.keys,Object),mb=Object.prototype,gb=mb.hasOwnProperty;function _b(e){if(!oo(e))return pb(e);var t=[];for(var n in Object(e))gb.call(e,n)&&n!="constructor"&&t.push(n);return t}function bu(e){return e!=null&&hu(e.length)&&!nu(e)}function ao(e){return bu(e)?gu(e):_b(e)}function bb(e,t){return e&&Ir(t,ao(t),e)}function yb(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var vb=Object.prototype,wb=vb.hasOwnProperty;function kb(e){if(!kr(e))return yb(e);var t=oo(e),n=[];for(var r in e)r=="constructor"&&(t||!wb.call(e,r))||n.push(r);return n}function lo(e){return bu(e)?gu(e,!0):kb(e)}function Tb(e,t){return e&&Ir(t,lo(t),e)}var yu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vu=yu&&typeof module=="object"&&module&&!module.nodeType&&module,Eb=vu&&vu.exports===yu,wu=Eb?bt.Buffer:void 0,ku=wu?wu.allocUnsafe:void 0;function Ib(e,t){if(t)return e.slice();var n=e.length,r=ku?ku(n):new e.constructor(n);return e.copy(r),r}function Sb(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Ob(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function Tu(){return[]}var xb=Object.prototype,Cb=xb.propertyIsEnumerable,Eu=Object.getOwnPropertySymbols,co=Eu?function(e){return e==null?[]:(e=Object(e),Ob(Eu(e),function(t){return Cb.call(e,t)}))}:Tu;function Lb(e,t){return Ir(e,co(e),t)}function uo(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var fo=_u(Object.getPrototypeOf,Object),Ab=Object.getOwnPropertySymbols,Iu=Ab?function(e){for(var t=[];e;)uo(t,co(e)),e=fo(e);return t}:Tu;function Nb(e,t){return Ir(e,Iu(e),t)}function Su(e,t,n){var r=t(e);return In(e)?r:uo(r,n(e))}function Pb(e){return Su(e,ao,co)}function Ou(e){return Su(e,lo,Iu)}var ho=kn(bt,"DataView"),po=kn(bt,"Promise"),mo=kn(bt,"Set"),go=kn(bt,"WeakMap"),xu="[object Map]",Rb="[object Object]",Cu="[object Promise]",Lu="[object Set]",Au="[object WeakMap]",Nu="[object DataView]",$b=wn(ho),Mb=wn(Tr),Db=wn(po),Fb=wn(mo),jb=wn(go),Rt=vn;(ho&&Rt(new ho(new ArrayBuffer(1)))!=Nu||Tr&&Rt(new Tr)!=xu||po&&Rt(po.resolve())!=Cu||mo&&Rt(new mo)!=Lu||go&&Rt(new go)!=Au)&&(Rt=function(e){var t=vn(e),n=t==Rb?e.constructor:void 0,r=n?wn(n):"";if(r)switch(r){case $b:return Nu;case Mb:return xu;case Db:return Cu;case Fb:return Lu;case jb:return Au}return t});var Ub=Object.prototype,Wb=Ub.hasOwnProperty;function Hb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Wb.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Pu=bt.Uint8Array;function _o(e){var t=new e.constructor(e.byteLength);return new Pu(t).set(new Pu(e)),t}function Kb(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Vb=/\w*$/;function zb(e){var t=new e.constructor(e.source,Vb.exec(e));return t.lastIndex=e.lastIndex,t}var Ru=yt?yt.prototype:void 0,$u=Ru?Ru.valueOf:void 0;function Bb(e){return $u?Object($u.call(e)):{}}function Gb(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Yb="[object Boolean]",Xb="[object Date]",Zb="[object Map]",Jb="[object Number]",qb="[object RegExp]",Qb="[object Set]",ey="[object String]",ty="[object Symbol]",ny="[object ArrayBuffer]",ry="[object DataView]",sy="[object Float32Array]",iy="[object Float64Array]",oy="[object Int8Array]",ay="[object Int16Array]",ly="[object Int32Array]",cy="[object Uint8Array]",uy="[object Uint8ClampedArray]",fy="[object Uint16Array]",dy="[object Uint32Array]";function hy(e,t,n){var r=e.constructor;switch(t){case ny:return _o(e);case Yb:case Xb:return new r(+e);case ry:return Kb(e,n);case sy:case iy:case oy:case ay:case ly:case cy:case uy:case fy:case dy:return Gb(e,n);case Zb:return new r;case Jb:case ey:return new r(e);case qb:return zb(e);case Qb:return new r;case ty:return Bb(e)}}var Mu=Object.create,py=function(){function e(){}return function(t){if(!kr(t))return{};if(Mu)return Mu(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function my(e){return typeof e.constructor=="function"&&!oo(e)?py(fo(e)):{}}var gy="[object Map]";function _y(e){return En(e)&&Rt(e)==gy}var Du=Gn&&Gn.isMap,by=Du?so(Du):_y,yy="[object Set]";function vy(e){return En(e)&&Rt(e)==yy}var Fu=Gn&&Gn.isSet,wy=Fu?so(Fu):vy,ky=1,Ty=2,Ey=4,ju="[object Arguments]",Iy="[object Array]",Sy="[object Boolean]",Oy="[object Date]",xy="[object Error]",Uu="[object Function]",Cy="[object GeneratorFunction]",Ly="[object Map]",Ay="[object Number]",Wu="[object Object]",Ny="[object RegExp]",Py="[object Set]",Ry="[object String]",$y="[object Symbol]",My="[object WeakMap]",Dy="[object ArrayBuffer]",Fy="[object DataView]",jy="[object Float32Array]",Uy="[object Float64Array]",Wy="[object Int8Array]",Hy="[object Int16Array]",Ky="[object Int32Array]",Vy="[object Uint8Array]",zy="[object Uint8ClampedArray]",By="[object Uint16Array]",Gy="[object Uint32Array]",me={};me[ju]=me[Iy]=me[Dy]=me[Fy]=me[Sy]=me[Oy]=me[jy]=me[Uy]=me[Wy]=me[Hy]=me[Ky]=me[Ly]=me[Ay]=me[Wu]=me[Ny]=me[Py]=me[Ry]=me[$y]=me[Vy]=me[zy]=me[By]=me[Gy]=!0,me[xy]=me[Uu]=me[My]=!1;function Es(e,t,n,r,i,s){var o,a=t&ky,l=t&Ty,u=t&Ey;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!kr(e))return e;var c=In(e);if(c){if(o=Hb(e),!a)return Sb(e,o)}else{var f=Rt(e),d=f==Uu||f==Cy;if(du(e))return Ib(e,a);if(f==Wu||f==ju||d&&!i){if(o=l||d?{}:my(e),!a)return l?Nb(e,Tb(o,e)):Lb(e,bb(o,e))}else{if(!me[f])return i?e:{};o=hy(e,f,a)}}s||(s=new Bn);var m=s.get(e);if(m)return m;s.set(e,o),wy(e)?e.forEach(function(k){o.add(Es(k,t,n,k,e,s))}):by(e)&&e.forEach(function(k,S){o.set(S,Es(k,t,n,S,e,s))});var v=u?l?Ou:Pb:l?lo:ao,E=c?void 0:v(e);return E_(E||e,function(k,S){E&&(S=k,k=e[S]),iu(o,S,Es(k,t,n,S,e,s))}),o}var Yy="[object Symbol]";function bo(e){return typeof e=="symbol"||En(e)&&vn(e)==Yy}var Xy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zy=/^\w*$/;function Jy(e,t){if(In(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||bo(e)?!0:Zy.test(e)||!Xy.test(e)||t!=null&&e in Object(t)}var qy="Expected a function";function yo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qy);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(yo.Cache||Xt),n}yo.Cache=Xt;var Qy=500;function ev(e){var t=yo(e,function(r){return n.size===Qy&&n.clear(),r}),n=t.cache;return t}var tv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nv=/\\(\\)?/g,rv=ev(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tv,function(n,r,i,s){t.push(i?s.replace(nv,"$1"):r||n)}),t}),sv=1/0,Hu=yt?yt.prototype:void 0,Ku=Hu?Hu.toString:void 0;function Vu(e){if(typeof e=="string")return e;if(In(e))return Jc(e,Vu)+"";if(bo(e))return Ku?Ku.call(e):"";var t=e+"";return t=="0"&&1/e==-sv?"-0":t}function iv(e){return e==null?"":Vu(e)}function vo(e,t){return In(e)?e:Jy(e,t)?[e]:rv(iv(e))}function ov(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var av=1/0;function zu(e){if(typeof e=="string"||bo(e))return e;var t=e+"";return t=="0"&&1/e==-av?"-0":t}function lv(e,t){t=vo(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[zu(t[n++])];return n&&n==r?e:void 0}function cv(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function uv(e,t){return t.length<2?e:lv(e,cv(t,0,-1))}function fv(e,t){return t=vo(t,e),e=uv(e,t),e==null||delete e[zu(ov(t))]}var dv="[object Object]",hv=Function.prototype,pv=Object.prototype,Bu=hv.toString,mv=pv.hasOwnProperty,gv=Bu.call(Object);function _v(e){if(!En(e)||vn(e)!=dv)return!1;var t=fo(e);if(t===null)return!0;var n=mv.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Bu.call(n)==gv}function bv(e){return _v(e)?void 0:e}var Gu=yt?yt.isConcatSpreadable:void 0;function yv(e){return In(e)||lu(e)||!!(Gu&&e&&e[Gu])}function vv(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=yv),i||(i=[]);++s<o;){var a=e[s];n(a)?uo(i,a):i[i.length]=a}return i}function wv(e){var t=e==null?0:e.length;return t?vv(e):[]}function kv(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Yu=Math.max;function Tv(e,t,n){return t=Yu(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=Yu(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),kv(e,this,a)}}function Ev(e){return function(){return e}}function Iv(e){return e}var Sv=Ts?function(e,t){return Ts(e,"toString",{configurable:!0,enumerable:!1,value:Ev(t),writable:!0})}:Iv,Ov=800,xv=16,Cv=Date.now;function Lv(e){var t=0,n=0;return function(){var r=Cv(),i=xv-(r-n);if(n=r,i>0){if(++t>=Ov)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Av=Lv(Sv);function Nv(e){return Av(Tv(e,void 0,wv),e+"")}var Pv=1,Rv=2,$v=4,Mv=Nv(function(e,t){var n={};if(e==null)return n;var r=!1;t=Jc(t,function(s){return s=vo(s,e),r||(r=s.length>1),s}),Ir(e,Ou(e),n),r&&(n=Es(n,Pv|Rv|$v,bv));for(var i=t.length;i--;)fv(n,t[i]);return n});const Xu={de:{admin:"Admin",anonymous:"Anonym",approve_hint:"Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)",discussion:"Diskussion",edit:"Bearbeiten",load_more:"Mehr laden",login:"Anmelden",logout:"Abmelden",placeholder:"Schreiben Sie ein Kommentar...",post_comment:"Kommentar absenden",post_reply:"Antwort absenden",reply:"Antwort",reply_to:"Antwort auf",save_editing:"Speichern",ui_texts:["Seien Sie der Erste, der die Diskussion beginnt!","Beteiligen Sie sich an der Konversation (#)","Laden...","Kommentare laden"],your_comment:"Dein Kommentar"},en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",edit:"Edit",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",save_editing:"Save",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",edit:"Editar",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",save_editing:"Guardar",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},fr:{admin:"Admin",anonymous:"Anonyme",approve_hint:"Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)",discussion:"Discussion",edit:"Modifier",load_more:"Charger plus",login:"CONNEXION",logout:"Déconnexion",placeholder:"Écrivez un commentaire...",post_comment:"POSTER UN COMMENTAIRE",post_reply:"POSTER UNE RÉPONSE",reply:"Répondre",reply_to:"répondre à",save_editing:"Enregistrer",ui_texts:["Soyez le premier à lancer la discussion !","Rejoignez la conversation (#)","Chargement...","Charger les commentaires"],your_comment:"Votre commentaire"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",edit:"Edit",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",save_editing:"Simpan",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",edit:"Modifica",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",save_editing:"Salva",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",edit:"編集",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",save_editing:"保存",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",edit:"편집",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",save_editing:"저장",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",edit:"Editar",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",save_editing:"Salvar",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",edit:"แก้ไข",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",save_editing:"บันทึก",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",edit:"修改",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",save_editing:"保存",your_comment:"您的評論"},cn:{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",edit:"编辑",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",save_editing:"保存",your_comment:"您的评论"}};function Dv(){return!!navigator.userAgent.match(/Macintosh/)}function Fv(e,t){return(Dv()?e.metaKey:e.ctrlKey)&&e.key===t}var Is=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.UnReplied=255]="UnReplied",e[e["Replied to Admin"]=256]="Replied to Admin",e))(Is||{});const jv=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function Ss(e){return e<10?`0${e}`:`${e}`}function Zu(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function Ju(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${Ss(n)}-${Ss(r)}`}function qu(e){e instanceof Date||(e=Zu(e));const t=new Date,n=Ju(e);if(Ju(t)===n){const r=e.getHours(),i=e.getMinutes();return`${Ss(r)}:${Ss(i)}`}return n}function Uv(e){const{id:t,created_at:n,parent_id:r,ancestor_id:i,user_id:s,...o}=e;return{...o,id:Number(t),userId:s,parentId:Number(r),ancestorId:Number(i),status:Number(e.status),createdAt:Zu(n)}}const wo="awesome-comment-comments",Qu=localStorage.getItem(wo),Yn=Qu?JSON.parse(Qu):{},Os=lp("store",()=>{const e=Ge("postId"),t=Ge("comments"),n=Ge("total"),r=te(!!t?.length),i=te(0),s=te(""),o=te([]),a=te(n||0),l=Ge("ApiBaseUrl"),u=te(!1),c=te(!1);function f(E){const k={},S=[];E.forEach(y=>{v(Number(y.id));const _=Uv(y);!y.ancestor_id||Number(y.ancestor_id)===0?k[y.id]=_:S.push(_)});const L=Yn[e];L&&(L.createdAt=new Date(L.createdAt),!L.ancestorId||Number(L.ancestorId)===0?k[L.id]=L:S.push(L)),S.forEach(y=>{if(y.ancestorId in k){const _=k[y.ancestorId];_.children=[y,..._.children||[]]}});for(const y in k){const _=k[y];_.children&&(_.children=_.children.sort((O,C)=>O.id-C.id))}return k}async function d(E=!1){if(u.value)return;s.value="",u.value=!0;let k;if(E&&t?.length)k=f(t);else{const S=new URLSearchParams;S.append("postId",e),S.append("start",i.value.toString());const L=await fetch(`${l}/api/comments?${S}`);if(!L.ok){s.value="Load comments failed. "+L.statusText,r.value=!0,u.value=!1;return}const y=await L.json();if(y.code!==0){s.value="Load comments failed. "+y.message,r.value=!0,u.value=!1;return}k=f(y.data||[]),a.value=y.meta?.total||y.data?.length||0}c.value=Object.keys(k).length>20,c.value&&delete k[Object.keys(k)[0]],Object.assign(o.value,k),r.value=!0,u.value=!1}function m(E,k,S,L=Is.Pending,y,_){const{sub:O="",name:C="",picture:A="",email:N="",nickname:P=""}=S,K={id:E,postId:e,content:k,createdAt:new Date,user:{avatar:A,email:N,name:P||C},userId:O,status:L,isNew:!0};if(y||_){K.ancestorId=y,K.parentId=_;const re=o.value[y];if(re.children||(re.children=[]),y===_)re.children.unshift(K);else{const G=re.children.findIndex(he=>Number(he.id)===_);re.children.splice(G+1,0,K)}}else K.ancestorId=0,K.parentId=0,o.value={[E]:K,...o.value};a.value++,L!==Is.Approved&&(Yn[e]=K,localStorage.setItem(wo,JSON.stringify(Yn)))}function v(E){Yn[e]?.id===E&&(delete Yn[e],localStorage.setItem(wo,JSON.stringify(Yn)))}return{isLoaded:r,message:s,postId:e,comments:o,total:a,start:i,hasMore:c,loadingMore:u,loadComments:d,addComment:m}}),Wv={class:"ac-form-control bg-base-200 rounded-lg"},Hv={class:"sr-only",for:"ac-comment"},Kv=["placeholder"],Vv={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},zv={key:0,class:"text-xs text-neutral-400/40"},Bv={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},Gv=["disabled"],Yv={key:0,class:"ac-loading ac-loading-spinner"},xs=an({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,i=ji(),s=Os(),{t:o}=yn(),a=Ge("ApiBaseUrl"),l=Ge("Auth0Domain"),u="0.7.21",c=te(),f=te(!1),d=te(n.content||""),m=te("");async function v(L){if(!i.user.value)return E();if(L.target.matches(":invalid"))return;const y=d.value.trim();if(!y)return;f.value=!0,m.value="";let _=a+"/api/comment",O="POST";n.currentId&&(_+="/"+n.currentId,O="PATCH");try{const C=await i.getAccessTokenSilently(),A=await fetch(_,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${C}`},body:JSON.stringify({comment:y,postId:s.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status,window:`${window.innerWidth}x${window.innerHeight} / ${screen.width,screen.height}`})}),N=await A.json();if(!A.ok||N.message){m.value="Failed to post comment: "+(N.message||"Unknown"),f.value=!1;return}const{id:P,status:K}=N.data;n.ancestorId||n.parentId?s.addComment(P,y,i.user.value,K,n.ancestorId,n.parentId):n.currentId?r("update",y):s.addComment(P,y,i.user.value,K),d.value="",r("close")}catch(C){m.value=C.message||String(C)}f.value=!1}function E(){i.loginWithPopup()}function k(L){Fv(L,"Enter")&&v(L)}function S(){r("close")}return es(()=>{c.value?.focus()}),(L,y)=>(q(),ne("form",{class:"mb-6",onSubmit:Yh(v,["prevent"])},[ce("div",Wv,[ce("label",Hv,ye(J(o)("your_comment")),1),_d(ce("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:J(o)("placeholder"),required:"",onKeydown:[El(k,["enter"]),El(S,["esc"])],"onUpdate:modelValue":y[0]||(y[0]=_=>d.value=_)},null,40,Kv),[[zh,d.value]]),ce("div",Vv,[L.noVersion?De("",!0):(q(),ne("div",zv,"v"+ye(J(u)),1)),m.value?(q(),ne("div",Bv,ye(m.value),1)):De("",!0),ce("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:f.value},[f.value?(q(),ne("span",Yv)):De("",!0),L.currentId?(q(),ne(Oe,{key:1},[dn(ye(J(o)("save_editing")),1)],64)):L.parentId?(q(),ne(Oe,{key:2},[dn(ye(J(o)("post_reply")),1)],64)):(q(),ne(Oe,{key:3},[dn(ye(J(o)("post_comment")),1)],64))],8,Gv)])])],32))}});function ko(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Sn=ko();function ef(e){Sn=e}const tf=/[&<>"']/,Xv=new RegExp(tf.source,"g"),nf=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Zv=new RegExp(nf.source,"g"),Jv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rf=e=>Jv[e];function Ze(e,t){if(t){if(tf.test(e))return e.replace(Xv,rf)}else if(nf.test(e))return e.replace(Zv,rf);return e}const qv=/(^|[^\[])\^/g;function fe(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(qv,"$1"),n=n.replace(i,o),r},getRegex:()=>new RegExp(n,t)};return r}function sf(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Or={exec:()=>null};function of(e,t){const n=e.replace(/\|/g,(s,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function xr(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.slice(0,r-i)}function Qv(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function af(e,t,n,r){const i=t.href,s=t.title?Ze(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:s,text:Ze(o)}}function ew(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
45
+ */const rg="9.14.0";function sg(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Nt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Nt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Nt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Nt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Nt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Rc=Mm.__EXTEND_POINT__,Rt=_s(Rc);Rt(),Rt(),Rt(),Rt(),Rt(),Rt(),Rt(),Rt(),Rt();const $c=lt.__EXTEND_POINT__,Be=_s($c),Se={UNEXPECTED_RETURN_TYPE:$c,INVALID_ARGUMENT:Be(),MUST_BE_CALL_SETUP_TOP:Be(),NOT_INSTALLED:Be(),NOT_AVAILABLE_IN_LEGACY_MODE:Be(),REQUIRED_VALUE:Be(),INVALID_VALUE:Be(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Be(),NOT_INSTALLED_WITH_PROVIDE:Be(),UNEXPECTED_ERROR:Be(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Be(),BRIDGE_SUPPORT_VUE_2_ONLY:Be(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Be(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Be(),__EXTEND_POINT__:Be()};function Le(e,...t){return Un(e,null,void 0)}const eo=Yt("__translateVNode"),to=Yt("__datetimeParts"),no=Yt("__numberParts"),Mc=Yt("__setPluralRules"),Dc=Yt("__injectWithOption"),ro=Yt("__dispose");function kr(e){if(!le(e))return e;for(const t in e)if(gs(e,t))if(!t.includes("."))le(e[t])&&kr(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let o=0;o<r;o++){if(n[o]in i||(i[n[o]]={}),!le(i[n[o]])){s=!0;break}i=i[n[o]]}s||(i[n[r]]=e[t],delete e[t]),le(i[n[r]])&&kr(i[n[r]])}return e}function ks(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:s}=t,o=X(n)?n:ge(r)?{}:{[e]:{}};if(ge(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||{},ys(u,o[l])):ys(u,o)}else W(a)&&ys(JSON.parse(a),o)}),i==null&&s)for(const a in o)gs(o,a)&&kr(o[a]);return o}function Fc(e){return e.type}function jc(e,t,n){let r=le(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=ks(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(le(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(le(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Uc(e){return Te(cr,null,e,0)}const Wc="__INTLIFY_META__",Hc=()=>[],ig=()=>!1;let Kc=0;function Vc(e){return(t,n,r,i)=>e(n,r,hr()||void 0,i)}const og=()=>{const e=hr();let t=null;return e&&(t=Fc(e)[Wc])?{[Wc]:t}:null};function so(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,s=e.flatJson,o=ps?re:ga,a=!!e.translateExistCompatible;let l=Q(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&l?n.locale.value:W(e.locale)?e.locale:Kn),c=o(n&&l?n.fallbackLocale.value:W(e.fallbackLocale)||ge(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),f=o(ks(u.value,e)),d=o(X(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),_=o(X(e.numberFormats)?e.numberFormats:{[u.value]:{}});let v=n?n.missingWarn:Q(e.missingWarn)||Xt(e.missingWarn)?e.missingWarn:!0,S=n?n.fallbackWarn:Q(e.fallbackWarn)||Xt(e.fallbackWarn)?e.fallbackWarn:!0,T=n?n.fallbackRoot:Q(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,L=pe(e.missing)?e.missing:null,y=pe(e.missing)?Vc(e.missing):null,g=pe(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter;const A=n?n.modifiers:X(e.modifiers)?e.modifiers:{};let N=e.pluralRules||n&&n.pluralRules,P;P=(()=>{i&&yc(null);const k={version:rg,locale:u.value,fallbackLocale:c.value,messages:f.value,modifiers:A,pluralRules:N,missing:y===null?void 0:y,missingWarn:v,fallbackWarn:S,fallbackFormat:E,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:O,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};k.datetimeFormats=d.value,k.numberFormats=_.value,k.__datetimeFormatters=X(P)?P.__datetimeFormatters:void 0,k.__numberFormatters=X(P)?P.__numberFormatters:void 0;const x=Gm(k);return i&&yc(x),x})(),wr(P,u.value,c.value);function te(){return[u.value,c.value,f.value,d.value,_.value]}const V=Ke({get:()=>u.value,set:k=>{u.value=k,P.locale=u.value}}),he=Ke({get:()=>c.value,set:k=>{c.value=k,P.fallbackLocale=c.value,wr(P,u.value,k)}}),Je=Ke(()=>f.value),kt=Ke(()=>d.value),se=Ke(()=>_.value);function q(){return pe(g)?g:null}function ie(k){g=k,P.postTranslation=k}function qe(){return L}function Tt(k){k!==null&&(y=Vc(k)),L=k,P.missing=y}const Oe=(k,x,H,K,we,Ee)=>{te();let Ne;try{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=n?Bm():void 0),Ne=k(P)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=void 0)}if(H!=="translate exists"&&Ie(Ne)&&Ne===ws||H==="translate exists"&&!Ne){const[ze,Zn]=x();return n&&T?K(n):we(ze)}else{if(Ee(Ne))return Ne;throw Le(Se.UNEXPECTED_RETURN_TYPE)}};function Ae(...k){return Oe(x=>Reflect.apply(Ic,null,[x,...k]),()=>Ji(...k),"translate",x=>Reflect.apply(x.t,x,[...k]),x=>x,x=>W(x))}function Qt(...k){const[x,H,K]=k;if(K&&!le(K))throw Le(Se.INVALID_ARGUMENT);return Ae(x,H,Re({resolvedMessage:!0},K||{}))}function en(...k){return Oe(x=>Reflect.apply(xc,null,[x,...k]),()=>qi(...k),"datetime format",x=>Reflect.apply(x.d,x,[...k]),()=>fc,x=>W(x))}function Cn(...k){return Oe(x=>Reflect.apply(Ac,null,[x,...k]),()=>Qi(...k),"number format",x=>Reflect.apply(x.n,x,[...k]),()=>fc,x=>W(x))}function ct(k){return k.map(x=>W(x)||Ie(x)||Q(x)?Uc(String(x)):x)}const Ft={normalize:ct,interpolate:k=>k,type:"vnode"};function tn(...k){return Oe(x=>{let H;const K=x;try{K.processor=Ft,H=Reflect.apply(Ic,null,[K,...k])}finally{K.processor=null}return H},()=>Ji(...k),"translate",x=>x[eo](...k),x=>[Uc(x)],x=>ge(x))}function st(...k){return Oe(x=>Reflect.apply(Ac,null,[x,...k]),()=>Qi(...k),"number format",x=>x[no](...k),Hc,x=>W(x)||ge(x))}function nn(...k){return Oe(x=>Reflect.apply(xc,null,[x,...k]),()=>qi(...k),"datetime format",x=>x[to](...k),Hc,x=>W(x)||ge(x))}function rn(k){N=k,P.pluralRules=N}function b(k,x){return Oe(()=>{if(!k)return!1;const H=W(x)?x:u.value,K=F(H),we=P.messageResolver(K,k);return a?we!=null:zn(we)||tt(we)||W(we)},()=>[k],"translate exists",H=>Reflect.apply(H.te,H,[k,x]),ig,H=>Q(H))}function m(k){let x=null;const H=cc(P,c.value,u.value);for(let K=0;K<H.length;K++){const we=f.value[H[K]]||{},Ee=P.messageResolver(we,k);if(Ee!=null){x=Ee;break}}return x}function I(k){const x=m(k);return x??(n?n.tm(k)||{}:{})}function F(k){return f.value[k]||{}}function R(k,x){if(s){const H={[k]:x};for(const K in H)gs(H,K)&&kr(H[K]);x=H[k]}f.value[k]=x,P.messages=f.value}function M(k,x){f.value[k]=f.value[k]||{};const H={[k]:x};if(s)for(const K in H)gs(H,K)&&kr(H[K]);x=H[k],ys(x,f.value[k]),P.messages=f.value}function U(k){return d.value[k]||{}}function h(k,x){d.value[k]=x,P.datetimeFormats=d.value,Lc(P,k,x)}function p(k,x){d.value[k]=Re(d.value[k]||{},x),P.datetimeFormats=d.value,Lc(P,k,x)}function w(k){return _.value[k]||{}}function $(k,x){_.value[k]=x,P.numberFormats=_.value,Pc(P,k,x)}function j(k,x){_.value[k]=Re(_.value[k]||{},x),P.numberFormats=_.value,Pc(P,k,x)}Kc++,n&&ps&&(dn(n.locale,k=>{l&&(u.value=k,P.locale=k,wr(P,u.value,c.value))}),dn(n.fallbackLocale,k=>{l&&(c.value=k,P.fallbackLocale=k,wr(P,u.value,c.value))}));const D={id:Kc,locale:V,fallbackLocale:he,get inheritLocale(){return l},set inheritLocale(k){l=k,k&&n&&(u.value=n.locale.value,c.value=n.fallbackLocale.value,wr(P,u.value,c.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:Je,get modifiers(){return A},get pluralRules(){return N||{}},get isGlobal(){return i},get missingWarn(){return v},set missingWarn(k){v=k,P.missingWarn=v},get fallbackWarn(){return S},set fallbackWarn(k){S=k,P.fallbackWarn=S},get fallbackRoot(){return T},set fallbackRoot(k){T=k},get fallbackFormat(){return E},set fallbackFormat(k){E=k,P.fallbackFormat=E},get warnHtmlMessage(){return O},set warnHtmlMessage(k){O=k,P.warnHtmlMessage=k},get escapeParameter(){return C},set escapeParameter(k){C=k,P.escapeParameter=k},t:Ae,getLocaleMessage:F,setLocaleMessage:R,mergeLocaleMessage:M,getPostTranslationHandler:q,setPostTranslationHandler:ie,getMissingHandler:qe,setMissingHandler:Tt,[Mc]:rn};return D.datetimeFormats=kt,D.numberFormats=se,D.rt=Qt,D.te=b,D.tm=I,D.d=en,D.n=Cn,D.getDateTimeFormat=U,D.setDateTimeFormat=h,D.mergeDateTimeFormat=p,D.getNumberFormat=w,D.setNumberFormat=$,D.mergeNumberFormat=j,D[Dc]=r,D[eo]=tn,D[to]=nn,D[no]=st,D}function ag(e){const t=W(e.locale)?e.locale:Kn,n=W(e.fallbackLocale)||ge(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=pe(e.missing)?e.missing:void 0,i=Q(e.silentTranslationWarn)||Xt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Q(e.silentFallbackWarn)||Xt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=X(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=pe(e.postTranslation)?e.postTranslation:void 0,f=W(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,_=Q(e.sync)?e.sync:!0;let v=e.messages;if(X(e.sharedMessages)){const C=e.sharedMessages;v=Object.keys(C).reduce((N,P)=>{const Y=N[P]||(N[P]={});return Re(Y,C[P]),N},v||{})}const{__i18n:S,__root:T,__injectWithOption:E}=e,L=e.datetimeFormats,y=e.numberFormats,g=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:v,flatJson:g,datetimeFormats:L,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:_,translateExistCompatible:O,__i18n:S,__root:T,__injectWithOption:E}}function io(e={},t){{const n=so(ag(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(s){},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return Q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=Q(s)?!s:s},get silentFallbackWarn(){return Q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=Q(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(s){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[o,a,l]=s,u={};let c=null,f=null;if(!W(o))throw Le(Se.INVALID_ARGUMENT);const d=o;return W(a)?u.locale=a:ge(a)?c=a:X(a)&&(f=a),ge(l)?c=l:X(l)&&(f=l),Reflect.apply(n.t,n,[d,c||f||{},u])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[o,a,l]=s,u={plural:1};let c=null,f=null;if(!W(o))throw Le(Se.INVALID_ARGUMENT);const d=o;return W(a)?u.locale=a:Ie(a)?u.plural=a:ge(a)?c=a:X(a)&&(f=a),W(l)?u.locale=l:ge(l)?c=l:X(l)&&(f=l),Reflect.apply(n.t,n,[d,c||f||{},u])},te(s,o){return n.te(s,o)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,o){n.setLocaleMessage(s,o)},mergeLocaleMessage(s,o){n.mergeLocaleMessage(s,o)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,o){n.setDateTimeFormat(s,o)},mergeDateTimeFormat(s,o){n.mergeDateTimeFormat(s,o)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,o){n.setNumberFormat(s,o)},mergeNumberFormat(s,o){n.mergeNumberFormat(s,o)},getChoiceIndex(s,o){return-1}};return i.__extender=r,i}}const oo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function lg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===xe?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},{})}function zc(e){return xe}const Bc=ht({name:"i18n-t",props:Re({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie(e)||!isNaN(e)}},oo),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||yt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=W(e.plural)?+e.plural:e.plural);const a=lg(t,s),l=i[eo](e.keypath,a,o),u=Re({},r),c=W(e.tag)||le(e.tag)?e.tag:zc();return mr(c,u,l)}}});function cg(e){return ge(e)&&!W(e[0])}function Gc(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),W(e.format)?o.key=e.format:le(e.format)&&(W(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,_)=>n.includes(_)?Re({},d,{[_]:e.format[_]}):d,{}));const l=r(e.value,o,a);let u=[o.key];ge(l)?u=l.map((d,_)=>{const v=i[d.type],S=v?v({[d.type]:d.value,index:_,parts:l}):[d.value];return cg(S)&&(S[0].key=`${d.type}-${_}`),S}):W(l)&&(u=[l]);const c=Re({},s),f=W(e.tag)||le(e.tag)?e.tag:zc();return mr(f,c,u)}}const Yc=ht({name:"i18n-n",props:Re({value:{type:Number,required:!0},format:{type:[String,Object]}},oo),setup(e,t){const n=e.i18n||yt({useScope:e.scope,__useComponent:!0});return Gc(e,t,Nc,(...r)=>n[no](...r))}}),Xc=ht({name:"i18n-d",props:Re({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},oo),setup(e,t){const n=e.i18n||yt({useScope:e.scope,__useComponent:!0});return Gc(e,t,Cc,(...r)=>n[to](...r))}});function ug(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function fg(e){const t=o=>{const{instance:a,modifiers:l,value:u}=o;if(!a||!a.$)throw Le(Se.UNEXPECTED_ERROR);const c=ug(e,a.$),f=Zc(u);return[Reflect.apply(c.t,c,[...Jc(f)]),c]};return{created:(o,a)=>{const[l,u]=t(a);ps&&e.global===u&&(o.__i18nWatcher=dn(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{ps&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,u=Zc(a);o.textContent=Reflect.apply(l.t,l,[...Jc(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function Zc(e){if(W(e))return{path:e};if(X(e)){if(!("path"in e))throw Le(Se.REQUIRED_VALUE,"path");return e}else throw Le(Se.INVALID_VALUE)}function Jc(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,o={},a=r||{};return W(n)&&(o.locale=n),Ie(i)&&(o.plural=i),Ie(s)&&(o.plural=s),[t,a,o]}function dg(e,t,...n){const r=X(n[0])?n[0]:{},i=!!r.useI18nComponentName;(Q(r.globalInstall)?r.globalInstall:!0)&&([i?"i18n":Bc.name,"I18nT"].forEach(o=>e.component(o,Bc)),[Yc.name,"I18nN"].forEach(o=>e.component(o,Yc)),[Xc.name,"I18nD"].forEach(o=>e.component(o,Xc))),e.directive("t",fg(t))}function hg(e,t,n){return{beforeCreate(){const r=hr();if(!r)throw Le(Se.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;if(i.__i18n&&(s.__i18n=i.__i18n),s.__root=t,this===this.$root)this.$i18n=qc(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=io(s);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=qc(e,i);else{this.$i18n=io({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&jc(t,i,i),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=hr();if(!r)throw Le(Se.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function qc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Mc](t.pluralizationRules||e.pluralizationRules);const n=ks(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const pg=Yt("global-vue-i18n");function mg(e={},t){const n=__VUE_I18N_LEGACY_API__&&Q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Q(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[o,a]=gg(e,n),l=Yt("");function u(d){return s.get(d)||null}function c(d,_){s.set(d,_)}function f(d){s.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(_,...v){if(_.__VUE_I18N_SYMBOL__=l,_.provide(_.__VUE_I18N_SYMBOL__,d),X(v[0])){const E=v[0];d.__composerExtend=E.__composerExtend,d.__vueI18nExtend=E.__vueI18nExtend}let S=null;!n&&r&&(S=Ig(_,d.global)),__VUE_I18N_FULL_INSTALL__&&dg(_,d,...v),__VUE_I18N_LEGACY_API__&&n&&_.mixin(hg(a,a.__composer,d));const T=_.unmount;_.unmount=()=>{S&&S(),d.dispose(),T()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:u,__setInstance:c,__deleteInstance:f};return d}}function yt(e={}){const t=hr();if(t==null)throw Le(Se.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Le(Se.NOT_INSTALLED);const n=_g(t),r=yg(n),i=Fc(t),s=bg(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Le(Se.NOT_AVAILABLE_IN_LEGACY_MODE);return Tg(t,s,r,e)}if(s==="global")return jc(r,e,i),r;if(s==="parent"){let l=vg(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Re({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),a=so(l),o.__composerExtend&&(a[ro]=o.__composerExtend(a)),kg(o,t,a),o.__setInstance(t,a)}return a}function gg(e,t,n){const r=zs();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>io(e)):r.run(()=>so(e));if(i==null)throw Le(Se.UNEXPECTED_ERROR);return[r,i]}}function _g(e){{const t=Ge(e.isCE?pg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Le(e.isCE?Se.NOT_INSTALLED_WITH_PROVIDE:Se.UNEXPECTED_ERROR);return t}}function bg(e,t){return ms(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function yg(e){return e.mode==="composition"?e.global:e.global.__composer}function vg(e,t,n=!1){let r=null;const i=t.root;let s=wg(t,n);for(;s!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(s);a!=null&&(r=a.__composer,n&&r&&!r[Dc]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function wg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function kg(e,t,n){ns(()=>{},t),fi(()=>{const r=n;e.__deleteInstance(t);const i=r[ro];i&&(i(),delete r[ro])},t)}function Tg(e,t,n,r={}){const i=t==="local",s=ga(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Le(Se.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Q(r.inheritLocale)?r.inheritLocale:!W(r.locale),a=re(!i||o?n.locale.value:W(r.locale)?r.locale:Kn),l=re(!i||o?n.fallbackLocale.value:W(r.fallbackLocale)||ge(r.fallbackLocale)||X(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),u=re(ks(a.value,r)),c=re(X(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=re(X(r.numberFormats)?r.numberFormats:{[a.value]:{}}),d=i?n.missingWarn:Q(r.missingWarn)||Xt(r.missingWarn)?r.missingWarn:!0,_=i?n.fallbackWarn:Q(r.fallbackWarn)||Xt(r.fallbackWarn)?r.fallbackWarn:!0,v=i?n.fallbackRoot:Q(r.fallbackRoot)?r.fallbackRoot:!0,S=!!r.fallbackFormat,T=pe(r.missing)?r.missing:null,E=pe(r.postTranslation)?r.postTranslation:null,L=i?n.warnHtmlMessage:Q(r.warnHtmlMessage)?r.warnHtmlMessage:!0,y=!!r.escapeParameter,g=i?n.modifiers:X(r.modifiers)?r.modifiers:{},O=r.pluralRules||i&&n.pluralRules;function C(){return[a.value,l.value,u.value,c.value,f.value]}const A=Ke({get:()=>s.value?s.value.locale.value:a.value,set:m=>{s.value&&(s.value.locale.value=m),a.value=m}}),N=Ke({get:()=>s.value?s.value.fallbackLocale.value:l.value,set:m=>{s.value&&(s.value.fallbackLocale.value=m),l.value=m}}),P=Ke(()=>s.value?s.value.messages.value:u.value),Y=Ke(()=>c.value),te=Ke(()=>f.value);function V(){return s.value?s.value.getPostTranslationHandler():E}function he(m){s.value&&s.value.setPostTranslationHandler(m)}function Je(){return s.value?s.value.getMissingHandler():T}function kt(m){s.value&&s.value.setMissingHandler(m)}function se(m){return C(),m()}function q(...m){return s.value?se(()=>Reflect.apply(s.value.t,null,[...m])):se(()=>"")}function ie(...m){return s.value?Reflect.apply(s.value.rt,null,[...m]):""}function qe(...m){return s.value?se(()=>Reflect.apply(s.value.d,null,[...m])):se(()=>"")}function Tt(...m){return s.value?se(()=>Reflect.apply(s.value.n,null,[...m])):se(()=>"")}function Oe(m){return s.value?s.value.tm(m):{}}function Ae(m,I){return s.value?s.value.te(m,I):!1}function Qt(m){return s.value?s.value.getLocaleMessage(m):{}}function en(m,I){s.value&&(s.value.setLocaleMessage(m,I),u.value[m]=I)}function Cn(m,I){s.value&&s.value.mergeLocaleMessage(m,I)}function ct(m){return s.value?s.value.getDateTimeFormat(m):{}}function Dt(m,I){s.value&&(s.value.setDateTimeFormat(m,I),c.value[m]=I)}function Ft(m,I){s.value&&s.value.mergeDateTimeFormat(m,I)}function tn(m){return s.value?s.value.getNumberFormat(m):{}}function st(m,I){s.value&&(s.value.setNumberFormat(m,I),f.value[m]=I)}function nn(m,I){s.value&&s.value.mergeNumberFormat(m,I)}const rn={get id(){return s.value?s.value.id:-1},locale:A,fallbackLocale:N,messages:P,datetimeFormats:Y,numberFormats:te,get inheritLocale(){return s.value?s.value.inheritLocale:o},set inheritLocale(m){s.value&&(s.value.inheritLocale=m)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(u.value)},get modifiers(){return s.value?s.value.modifiers:g},get pluralRules(){return s.value?s.value.pluralRules:O},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:d},set missingWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackWarn(){return s.value?s.value.fallbackWarn:_},set fallbackWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackRoot(){return s.value?s.value.fallbackRoot:v},set fallbackRoot(m){s.value&&(s.value.fallbackRoot=m)},get fallbackFormat(){return s.value?s.value.fallbackFormat:S},set fallbackFormat(m){s.value&&(s.value.fallbackFormat=m)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:L},set warnHtmlMessage(m){s.value&&(s.value.warnHtmlMessage=m)},get escapeParameter(){return s.value?s.value.escapeParameter:y},set escapeParameter(m){s.value&&(s.value.escapeParameter=m)},t:q,getPostTranslationHandler:V,setPostTranslationHandler:he,getMissingHandler:Je,setMissingHandler:kt,rt:ie,d:qe,n:Tt,tm:Oe,te:Ae,getLocaleMessage:Qt,setLocaleMessage:en,mergeLocaleMessage:Cn,getDateTimeFormat:ct,setDateTimeFormat:Dt,mergeDateTimeFormat:Ft,getNumberFormat:tn,setNumberFormat:st,mergeNumberFormat:nn};function b(m){m.locale.value=a.value,m.fallbackLocale.value=l.value,Object.keys(u.value).forEach(I=>{m.mergeLocaleMessage(I,u.value[I])}),Object.keys(c.value).forEach(I=>{m.mergeDateTimeFormat(I,c.value[I])}),Object.keys(f.value).forEach(I=>{m.mergeNumberFormat(I,f.value[I])}),m.escapeParameter=y,m.fallbackFormat=S,m.fallbackRoot=v,m.fallbackWarn=_,m.missingWarn=d,m.warnHtmlMessage=L}return La(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Le(Se.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const m=s.value=e.proxy.$i18n.__composer;t==="global"?(a.value=m.locale.value,l.value=m.fallbackLocale.value,u.value=m.messages.value,c.value=m.datetimeFormats.value,f.value=m.numberFormats.value):i&&b(m)}),rn}const Eg=["locale","fallbackLocale","availableLocales"],Qc=["t","rt","d","n","tm","te"];function Ig(e,t){const n=Object.create(null);return Eg.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw Le(Se.UNEXPECTED_ERROR);const o=ve(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,Qc.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw Le(Se.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,Qc.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(sg(),__INTLIFY_JIT_COMPILATION__?pc(qm):pc(Jm),Hm(Tm),Km(cc),__INTLIFY_PROD_DEVTOOLS__){const e=Nt();e.__INTLIFY__=!0,Nm(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function eu(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Sg(){this.__data__=[],this.size=0}function tu(e,t){return e===t||e!==e&&t!==t}function Ts(e,t){for(var n=e.length;n--;)if(tu(e[n][0],t))return n;return-1}var Og=Array.prototype,xg=Og.splice;function Cg(e){var t=this.__data__,n=Ts(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xg.call(t,n,1),--this.size,!0}function Lg(e){var t=this.__data__,n=Ts(t,e);return n<0?void 0:t[n][1]}function Ag(e){return Ts(this.__data__,e)>-1}function Ng(e,t){var n=this.__data__,r=Ts(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function $t(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$t.prototype.clear=Sg,$t.prototype.delete=Cg,$t.prototype.get=Lg,$t.prototype.has=Ag,$t.prototype.set=Ng;function Pg(){this.__data__=new $t,this.size=0}function Rg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function $g(e){return this.__data__.get(e)}function Mg(e){return this.__data__.has(e)}var nu=typeof global=="object"&&global&&global.Object===Object&&global,Dg=typeof self=="object"&&self&&self.Object===Object&&self,vt=nu||Dg||Function("return this")(),wt=vt.Symbol,ru=Object.prototype,Fg=ru.hasOwnProperty,jg=ru.toString,Tr=wt?wt.toStringTag:void 0;function Ug(e){var t=Fg.call(e,Tr),n=e[Tr];try{e[Tr]=void 0;var r=!0}catch{}var i=jg.call(e);return r&&(t?e[Tr]=n:delete e[Tr]),i}var Wg=Object.prototype,Hg=Wg.toString;function Kg(e){return Hg.call(e)}var Vg="[object Null]",zg="[object Undefined]",su=wt?wt.toStringTag:void 0;function wn(e){return e==null?e===void 0?zg:Vg:su&&su in Object(e)?Ug(e):Kg(e)}function Er(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bg="[object AsyncFunction]",Gg="[object Function]",Yg="[object GeneratorFunction]",Xg="[object Proxy]";function iu(e){if(!Er(e))return!1;var t=wn(e);return t==Gg||t==Yg||t==Bg||t==Xg}var ao=vt["__core-js_shared__"],ou=function(){var e=/[^.]+$/.exec(ao&&ao.keys&&ao.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Zg(e){return!!ou&&ou in e}var Jg=Function.prototype,qg=Jg.toString;function kn(e){if(e!=null){try{return qg.call(e)}catch{}try{return e+""}catch{}}return""}var Qg=/[\\^$.*+?()[\]{}|]/g,e_=/^\[object .+?Constructor\]$/,t_=Function.prototype,n_=Object.prototype,r_=t_.toString,s_=n_.hasOwnProperty,i_=RegExp("^"+r_.call(s_).replace(Qg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o_(e){if(!Er(e)||Zg(e))return!1;var t=iu(e)?i_:e_;return t.test(kn(e))}function a_(e,t){return e?.[t]}function Tn(e,t){var n=a_(e,t);return o_(n)?n:void 0}var Ir=Tn(vt,"Map"),Sr=Tn(Object,"create");function l_(){this.__data__=Sr?Sr(null):{},this.size=0}function c_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u_="__lodash_hash_undefined__",f_=Object.prototype,d_=f_.hasOwnProperty;function h_(e){var t=this.__data__;if(Sr){var n=t[e];return n===u_?void 0:n}return d_.call(t,e)?t[e]:void 0}var p_=Object.prototype,m_=p_.hasOwnProperty;function g_(e){var t=this.__data__;return Sr?t[e]!==void 0:m_.call(t,e)}var __="__lodash_hash_undefined__";function b_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Sr&&t===void 0?__:t,this}function En(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}En.prototype.clear=l_,En.prototype.delete=c_,En.prototype.get=h_,En.prototype.has=g_,En.prototype.set=b_;function y_(){this.size=0,this.__data__={hash:new En,map:new(Ir||$t),string:new En}}function v_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Es(e,t){var n=e.__data__;return v_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function w_(e){var t=Es(this,e).delete(e);return this.size-=t?1:0,t}function k_(e){return Es(this,e).get(e)}function T_(e){return Es(this,e).has(e)}function E_(e,t){var n=Es(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function qt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qt.prototype.clear=y_,qt.prototype.delete=w_,qt.prototype.get=k_,qt.prototype.has=T_,qt.prototype.set=E_;var I_=200;function S_(e,t){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!Ir||r.length<I_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qt(r)}return n.set(e,t),this.size=n.size,this}function Bn(e){var t=this.__data__=new $t(e);this.size=t.size}Bn.prototype.clear=Pg,Bn.prototype.delete=Rg,Bn.prototype.get=$g,Bn.prototype.has=Mg,Bn.prototype.set=S_;function O_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Is=function(){try{var e=Tn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function au(e,t,n){t=="__proto__"&&Is?Is(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var x_=Object.prototype,C_=x_.hasOwnProperty;function lu(e,t,n){var r=e[t];(!(C_.call(e,t)&&tu(r,n))||n===void 0&&!(t in e))&&au(e,t,n)}function Or(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),i?au(n,a,l):lu(n,a,l)}return n}function L_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function In(e){return e!=null&&typeof e=="object"}var A_="[object Arguments]";function cu(e){return In(e)&&wn(e)==A_}var uu=Object.prototype,N_=uu.hasOwnProperty,P_=uu.propertyIsEnumerable,fu=cu(function(){return arguments}())?cu:function(e){return In(e)&&N_.call(e,"callee")&&!P_.call(e,"callee")},Sn=Array.isArray;function R_(){return!1}var du=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hu=du&&typeof module=="object"&&module&&!module.nodeType&&module,$_=hu&&hu.exports===du,pu=$_?vt.Buffer:void 0,M_=pu?pu.isBuffer:void 0,mu=M_||R_,D_=9007199254740991,F_=/^(?:0|[1-9]\d*)$/;function j_(e,t){var n=typeof e;return t=t??D_,!!t&&(n=="number"||n!="symbol"&&F_.test(e))&&e>-1&&e%1==0&&e<t}var U_=9007199254740991;function gu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=U_}var W_="[object Arguments]",H_="[object Array]",K_="[object Boolean]",V_="[object Date]",z_="[object Error]",B_="[object Function]",G_="[object Map]",Y_="[object Number]",X_="[object Object]",Z_="[object RegExp]",J_="[object Set]",q_="[object String]",Q_="[object WeakMap]",eb="[object ArrayBuffer]",tb="[object DataView]",nb="[object Float32Array]",rb="[object Float64Array]",sb="[object Int8Array]",ib="[object Int16Array]",ob="[object Int32Array]",ab="[object Uint8Array]",lb="[object Uint8ClampedArray]",cb="[object Uint16Array]",ub="[object Uint32Array]",_e={};_e[nb]=_e[rb]=_e[sb]=_e[ib]=_e[ob]=_e[ab]=_e[lb]=_e[cb]=_e[ub]=!0,_e[W_]=_e[H_]=_e[eb]=_e[K_]=_e[tb]=_e[V_]=_e[z_]=_e[B_]=_e[G_]=_e[Y_]=_e[X_]=_e[Z_]=_e[J_]=_e[q_]=_e[Q_]=!1;function fb(e){return In(e)&&gu(e.length)&&!!_e[wn(e)]}function lo(e){return function(t){return e(t)}}var _u=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xr=_u&&typeof module=="object"&&module&&!module.nodeType&&module,db=xr&&xr.exports===_u,co=db&&nu.process,Gn=function(){try{var e=xr&&xr.require&&xr.require("util").types;return e||co&&co.binding&&co.binding("util")}catch{}}(),bu=Gn&&Gn.isTypedArray,hb=bu?lo(bu):fb,pb=Object.prototype,mb=pb.hasOwnProperty;function yu(e,t){var n=Sn(e),r=!n&&fu(e),i=!n&&!r&&mu(e),s=!n&&!r&&!i&&hb(e),o=n||r||i||s,a=o?L_(e.length,String):[],l=a.length;for(var u in e)(t||mb.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||j_(u,l)))&&a.push(u);return a}var gb=Object.prototype;function uo(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||gb;return e===n}function vu(e,t){return function(n){return e(t(n))}}var _b=vu(Object.keys,Object),bb=Object.prototype,yb=bb.hasOwnProperty;function vb(e){if(!uo(e))return _b(e);var t=[];for(var n in Object(e))yb.call(e,n)&&n!="constructor"&&t.push(n);return t}function wu(e){return e!=null&&gu(e.length)&&!iu(e)}function fo(e){return wu(e)?yu(e):vb(e)}function wb(e,t){return e&&Or(t,fo(t),e)}function kb(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Tb=Object.prototype,Eb=Tb.hasOwnProperty;function Ib(e){if(!Er(e))return kb(e);var t=uo(e),n=[];for(var r in e)r=="constructor"&&(t||!Eb.call(e,r))||n.push(r);return n}function ho(e){return wu(e)?yu(e,!0):Ib(e)}function Sb(e,t){return e&&Or(t,ho(t),e)}var ku=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tu=ku&&typeof module=="object"&&module&&!module.nodeType&&module,Ob=Tu&&Tu.exports===ku,Eu=Ob?vt.Buffer:void 0,Iu=Eu?Eu.allocUnsafe:void 0;function xb(e,t){if(t)return e.slice();var n=e.length,r=Iu?Iu(n):new e.constructor(n);return e.copy(r),r}function Cb(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Lb(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function Su(){return[]}var Ab=Object.prototype,Nb=Ab.propertyIsEnumerable,Ou=Object.getOwnPropertySymbols,po=Ou?function(e){return e==null?[]:(e=Object(e),Lb(Ou(e),function(t){return Nb.call(e,t)}))}:Su;function Pb(e,t){return Or(e,po(e),t)}function mo(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var go=vu(Object.getPrototypeOf,Object),Rb=Object.getOwnPropertySymbols,xu=Rb?function(e){for(var t=[];e;)mo(t,po(e)),e=go(e);return t}:Su;function $b(e,t){return Or(e,xu(e),t)}function Cu(e,t,n){var r=t(e);return Sn(e)?r:mo(r,n(e))}function Mb(e){return Cu(e,fo,po)}function Lu(e){return Cu(e,ho,xu)}var _o=Tn(vt,"DataView"),bo=Tn(vt,"Promise"),yo=Tn(vt,"Set"),vo=Tn(vt,"WeakMap"),Au="[object Map]",Db="[object Object]",Nu="[object Promise]",Pu="[object Set]",Ru="[object WeakMap]",$u="[object DataView]",Fb=kn(_o),jb=kn(Ir),Ub=kn(bo),Wb=kn(yo),Hb=kn(vo),Mt=wn;(_o&&Mt(new _o(new ArrayBuffer(1)))!=$u||Ir&&Mt(new Ir)!=Au||bo&&Mt(bo.resolve())!=Nu||yo&&Mt(new yo)!=Pu||vo&&Mt(new vo)!=Ru)&&(Mt=function(e){var t=wn(e),n=t==Db?e.constructor:void 0,r=n?kn(n):"";if(r)switch(r){case Fb:return $u;case jb:return Au;case Ub:return Nu;case Wb:return Pu;case Hb:return Ru}return t});var Kb=Object.prototype,Vb=Kb.hasOwnProperty;function zb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Vb.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Mu=vt.Uint8Array;function wo(e){var t=new e.constructor(e.byteLength);return new Mu(t).set(new Mu(e)),t}function Bb(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Gb=/\w*$/;function Yb(e){var t=new e.constructor(e.source,Gb.exec(e));return t.lastIndex=e.lastIndex,t}var Du=wt?wt.prototype:void 0,Fu=Du?Du.valueOf:void 0;function Xb(e){return Fu?Object(Fu.call(e)):{}}function Zb(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Jb="[object Boolean]",qb="[object Date]",Qb="[object Map]",ey="[object Number]",ty="[object RegExp]",ny="[object Set]",ry="[object String]",sy="[object Symbol]",iy="[object ArrayBuffer]",oy="[object DataView]",ay="[object Float32Array]",ly="[object Float64Array]",cy="[object Int8Array]",uy="[object Int16Array]",fy="[object Int32Array]",dy="[object Uint8Array]",hy="[object Uint8ClampedArray]",py="[object Uint16Array]",my="[object Uint32Array]";function gy(e,t,n){var r=e.constructor;switch(t){case iy:return wo(e);case Jb:case qb:return new r(+e);case oy:return Bb(e,n);case ay:case ly:case cy:case uy:case fy:case dy:case hy:case py:case my:return Zb(e,n);case Qb:return new r;case ey:case ry:return new r(e);case ty:return Yb(e);case ny:return new r;case sy:return Xb(e)}}var ju=Object.create,_y=function(){function e(){}return function(t){if(!Er(t))return{};if(ju)return ju(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function by(e){return typeof e.constructor=="function"&&!uo(e)?_y(go(e)):{}}var yy="[object Map]";function vy(e){return In(e)&&Mt(e)==yy}var Uu=Gn&&Gn.isMap,wy=Uu?lo(Uu):vy,ky="[object Set]";function Ty(e){return In(e)&&Mt(e)==ky}var Wu=Gn&&Gn.isSet,Ey=Wu?lo(Wu):Ty,Iy=1,Sy=2,Oy=4,Hu="[object Arguments]",xy="[object Array]",Cy="[object Boolean]",Ly="[object Date]",Ay="[object Error]",Ku="[object Function]",Ny="[object GeneratorFunction]",Py="[object Map]",Ry="[object Number]",Vu="[object Object]",$y="[object RegExp]",My="[object Set]",Dy="[object String]",Fy="[object Symbol]",jy="[object WeakMap]",Uy="[object ArrayBuffer]",Wy="[object DataView]",Hy="[object Float32Array]",Ky="[object Float64Array]",Vy="[object Int8Array]",zy="[object Int16Array]",By="[object Int32Array]",Gy="[object Uint8Array]",Yy="[object Uint8ClampedArray]",Xy="[object Uint16Array]",Zy="[object Uint32Array]",me={};me[Hu]=me[xy]=me[Uy]=me[Wy]=me[Cy]=me[Ly]=me[Hy]=me[Ky]=me[Vy]=me[zy]=me[By]=me[Py]=me[Ry]=me[Vu]=me[$y]=me[My]=me[Dy]=me[Fy]=me[Gy]=me[Yy]=me[Xy]=me[Zy]=!0,me[Ay]=me[Ku]=me[jy]=!1;function Ss(e,t,n,r,i,s){var o,a=t&Iy,l=t&Sy,u=t&Oy;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!Er(e))return e;var c=Sn(e);if(c){if(o=zb(e),!a)return Cb(e,o)}else{var f=Mt(e),d=f==Ku||f==Ny;if(mu(e))return xb(e,a);if(f==Vu||f==Hu||d&&!i){if(o=l||d?{}:by(e),!a)return l?$b(e,Sb(o,e)):Pb(e,wb(o,e))}else{if(!me[f])return i?e:{};o=gy(e,f,a)}}s||(s=new Bn);var _=s.get(e);if(_)return _;s.set(e,o),Ey(e)?e.forEach(function(T){o.add(Ss(T,t,n,T,e,s))}):wy(e)&&e.forEach(function(T,E){o.set(E,Ss(T,t,n,E,e,s))});var v=u?l?Lu:Mb:l?ho:fo,S=c?void 0:v(e);return O_(S||e,function(T,E){S&&(E=T,T=e[E]),lu(o,E,Ss(T,t,n,E,e,s))}),o}var Jy="[object Symbol]";function ko(e){return typeof e=="symbol"||In(e)&&wn(e)==Jy}var qy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qy=/^\w*$/;function ev(e,t){if(Sn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ko(e)?!0:Qy.test(e)||!qy.test(e)||t!=null&&e in Object(t)}var tv="Expected a function";function To(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tv);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(To.Cache||qt),n}To.Cache=qt;var nv=500;function rv(e){var t=To(e,function(r){return n.size===nv&&n.clear(),r}),n=t.cache;return t}var sv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iv=/\\(\\)?/g,ov=rv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(sv,function(n,r,i,s){t.push(i?s.replace(iv,"$1"):r||n)}),t}),av=1/0,zu=wt?wt.prototype:void 0,Bu=zu?zu.toString:void 0;function Gu(e){if(typeof e=="string")return e;if(Sn(e))return eu(e,Gu)+"";if(ko(e))return Bu?Bu.call(e):"";var t=e+"";return t=="0"&&1/e==-av?"-0":t}function lv(e){return e==null?"":Gu(e)}function Eo(e,t){return Sn(e)?e:ev(e,t)?[e]:ov(lv(e))}function cv(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var uv=1/0;function Yu(e){if(typeof e=="string"||ko(e))return e;var t=e+"";return t=="0"&&1/e==-uv?"-0":t}function fv(e,t){t=Eo(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Yu(t[n++])];return n&&n==r?e:void 0}function dv(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function hv(e,t){return t.length<2?e:fv(e,dv(t,0,-1))}function pv(e,t){return t=Eo(t,e),e=hv(e,t),e==null||delete e[Yu(cv(t))]}var mv="[object Object]",gv=Function.prototype,_v=Object.prototype,Xu=gv.toString,bv=_v.hasOwnProperty,yv=Xu.call(Object);function vv(e){if(!In(e)||wn(e)!=mv)return!1;var t=go(e);if(t===null)return!0;var n=bv.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Xu.call(n)==yv}function wv(e){return vv(e)?void 0:e}var Zu=wt?wt.isConcatSpreadable:void 0;function kv(e){return Sn(e)||fu(e)||!!(Zu&&e&&e[Zu])}function Tv(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=kv),i||(i=[]);++s<o;){var a=e[s];n(a)?mo(i,a):i[i.length]=a}return i}function Ev(e){var t=e==null?0:e.length;return t?Tv(e):[]}function Iv(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ju=Math.max;function Sv(e,t,n){return t=Ju(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=Ju(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),Iv(e,this,a)}}function Ov(e){return function(){return e}}function xv(e){return e}var Cv=Is?function(e,t){return Is(e,"toString",{configurable:!0,enumerable:!1,value:Ov(t),writable:!0})}:xv,Lv=800,Av=16,Nv=Date.now;function Pv(e){var t=0,n=0;return function(){var r=Nv(),i=Av-(r-n);if(n=r,i>0){if(++t>=Lv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Rv=Pv(Cv);function $v(e){return Rv(Sv(e,void 0,Ev),e+"")}var Mv=1,Dv=2,Fv=4,jv=$v(function(e,t){var n={};if(e==null)return n;var r=!1;t=eu(t,function(s){return s=Eo(s,e),r||(r=s.length>1),s}),Or(e,Lu(e),n),r&&(n=Ss(n,Mv|Dv|Fv,wv));for(var i=t.length;i--;)pv(n,t[i]);return n});const qu={de:{admin:"Admin",anonymous:"Anonym",approve_hint:"Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)",discussion:"Diskussion",edit:"Bearbeiten",load_more:"Mehr laden",login:"Anmelden",logout:"Abmelden",placeholder:"Schreiben Sie ein Kommentar...",post_comment:"Kommentar absenden",post_reply:"Antwort absenden",reply:"Antwort",reply_to:"Antwort auf",save_editing:"Speichern",ui_texts:["Seien Sie der Erste, der die Diskussion beginnt!","Beteiligen Sie sich an der Konversation (#)","Laden...","Kommentare laden"],your_comment:"Dein Kommentar"},en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",edit:"Edit",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",save_editing:"Save",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",edit:"Editar",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",save_editing:"Guardar",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},fr:{admin:"Admin",anonymous:"Anonyme",approve_hint:"Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)",discussion:"Discussion",edit:"Modifier",load_more:"Charger plus",login:"CONNEXION",logout:"Déconnexion",placeholder:"Écrivez un commentaire...",post_comment:"POSTER UN COMMENTAIRE",post_reply:"POSTER UNE RÉPONSE",reply:"Répondre",reply_to:"répondre à",save_editing:"Enregistrer",ui_texts:["Soyez le premier à lancer la discussion !","Rejoignez la conversation (#)","Chargement...","Charger les commentaires"],your_comment:"Votre commentaire"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",edit:"Edit",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",save_editing:"Simpan",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",edit:"Modifica",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",save_editing:"Salva",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",edit:"編集",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",save_editing:"保存",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",edit:"편집",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",save_editing:"저장",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",edit:"Editar",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",save_editing:"Salvar",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",edit:"แก้ไข",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",save_editing:"บันทึก",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",edit:"修改",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",save_editing:"保存",your_comment:"您的評論"},cn:{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",edit:"编辑",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",save_editing:"保存",your_comment:"您的评论"}};function Uv(){return!!navigator.userAgent.match(/Macintosh/)}function Wv(e,t){return(Uv()?e.metaKey:e.ctrlKey)&&e.key===t}var Os=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.UnReplied=255]="UnReplied",e[e["Replied to Admin"]=256]="Replied to Admin",e))(Os||{});const Hv=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function xs(e){return e<10?`0${e}`:`${e}`}function Qu(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function ef(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${xs(n)}-${xs(r)}`}function tf(e){e instanceof Date||(e=Qu(e));const t=new Date,n=ef(e);if(ef(t)===n){const r=e.getHours(),i=e.getMinutes();return`${xs(r)}:${xs(i)}`}return n}function Kv(e){const{id:t,created_at:n,parent_id:r,ancestor_id:i,post_id:s,user_id:o,...a}=e;return{...a,id:Number(t),userId:o,parentId:Number(r),postId:s,ancestorId:Number(i),status:Number(e.status),createdAt:Qu(n)}}const Io="awesome-comment-comments",nf=localStorage.getItem(Io),Yn=nf?JSON.parse(nf):{},Xn=fp("store",()=>{const e=Ge("postId"),t=Ge("comments"),n=Ge("total"),r=re(!!t?.length),i=re(0),s=re(""),o=re([]),a=re(n||0),l=Ge("ApiBaseUrl"),u=re(!1),c=re(!1);function f(T){const E={},L=[];T.forEach(g=>{v(Number(g.id));const O=Kv(g);!g.ancestor_id||Number(g.ancestor_id)===0?E[g.id]=O:L.push(O)});const y=Yn[e];y&&(y.createdAt=new Date(y.createdAt),!y.ancestorId||Number(y.ancestorId)===0?E[y.id]=y:L.push(y)),L.forEach(g=>{if(g.ancestorId in E){const O=E[g.ancestorId];O.children=[g,...O.children||[]]}});for(const g in E){const O=E[g];O.children&&(O.children=O.children.sort((C,A)=>C.id-A.id))}return E}async function d(T=!1){if(u.value)return;s.value="",u.value=!0;let E;if(T&&t?.length)E=f(t);else{const L=new URLSearchParams;L.append("postId",e),L.append("start",i.value.toString());const y=await fetch(`${l}/api/comments?${L}`);if(!y.ok){s.value="Load comments failed. "+y.statusText,r.value=!0,u.value=!1;return}const g=await y.json();if(g.code!==0){s.value="Load comments failed. "+g.message,r.value=!0,u.value=!1;return}E=f(g.data||[]),a.value=g.meta?.total||g.data?.length||0}c.value=Object.keys(E).length>20,c.value&&delete E[Object.keys(E)[0]],Object.assign(o.value,E),r.value=!0,u.value=!1}function _(T,E,L,y=Os.Pending,g,O){const{sub:C="",name:A="",picture:N="",email:P="",nickname:Y=""}=L,te={id:T,postId:e,content:E,createdAt:new Date,user:{avatar:N,email:P,name:Y||A},userId:C,status:y,isNew:!0};if(g||O){te.ancestorId=g,te.parentId=O;const V=o.value[g];if(V.children||(V.children=[]),g===O)V.children.unshift(te);else{const he=V.children.findIndex(Je=>Number(Je.id)===O);V.children.splice(he+1,0,te)}}else te.ancestorId=0,te.parentId=0,o.value={[T]:te,...o.value};a.value++,y!==Os.Approved&&(Yn[e]=te,localStorage.setItem(Io,JSON.stringify(Yn)))}function v(T){Yn[e]?.id===T&&(delete Yn[e],localStorage.setItem(Io,JSON.stringify(Yn)))}function S(T,E){const L=o.value[T];L&&Object.assign(L,E)}return{isLoaded:r,message:s,postId:e,comments:o,total:a,start:i,hasMore:c,loadingMore:u,loadComments:d,addComment:_,updateComment:S}}),Vv={class:"ac-form-control bg-base-200 rounded-lg"},zv={class:"sr-only",for:"ac-comment"},Bv=["placeholder"],Gv={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Yv={key:0,class:"text-xs text-neutral-400/40"},Xv={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},Zv=["disabled"],Jv={key:0,class:"ac-loading ac-loading-spinner"},Cs=ht({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,i=Ki(),s=Xn(),{t:o}=yt(),a=Ge("ApiBaseUrl"),l=Ge("Auth0Domain"),u="0.8.0",c=re(),f=re(!1),d=re(n.content||""),_=re("");async function v(L){if(!i.user.value)return S();if(L.target.matches(":invalid"))return;const y=d.value.trim();if(!y)return;f.value=!0,_.value="";let g=a+"/api/comment",O="POST";n.currentId&&(g+="/"+n.currentId,O="PATCH");try{const C=await i.getAccessTokenSilently(),A=await fetch(g,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${C}`},body:JSON.stringify({comment:y,postId:s.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status,window:`${window.innerWidth}x${window.innerHeight} / ${screen.width,screen.height}`})}),N=await A.json();if(!A.ok||N.message){_.value="Failed to post comment: "+(N.message||"Unknown"),f.value=!1;return}const{id:P,status:Y}=N.data;n.ancestorId||n.parentId?s.addComment(P,y,i.user.value,Y,n.ancestorId,n.parentId):n.currentId?r("update",y):s.addComment(P,y,i.user.value,Y),d.value="",r("close")}catch(C){_.value=C.message||String(C)}f.value=!1}function S(){i.loginWithPopup()}function T(L){Wv(L,"Enter")&&v(L)}function E(){r("close")}return ns(()=>{c.value?.focus()}),(L,y)=>(J(),ee("form",{class:"mb-6",onSubmit:Jh(v,["prevent"])},[ce("div",Vv,[ce("label",zv,ye(z(o)("your_comment")),1),vd(ce("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:z(o)("placeholder"),required:"",onKeydown:[Ol(T,["enter"]),Ol(E,["esc"])],"onUpdate:modelValue":y[0]||(y[0]=g=>d.value=g)},null,40,Bv),[[Yh,d.value]]),ce("div",Gv,[L.noVersion?De("",!0):(J(),ee("div",Yv,"v"+ye(z(u)),1)),_.value?(J(),ee("div",Xv,ye(_.value),1)):De("",!0),ce("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:f.value},[f.value?(J(),ee("span",Jv)):De("",!0),L.currentId?(J(),ee(xe,{key:1},[pn(ye(z(o)("save_editing")),1)],64)):L.parentId?(J(),ee(xe,{key:2},[pn(ye(z(o)("post_reply")),1)],64)):(J(),ee(xe,{key:3},[pn(ye(z(o)("post_comment")),1)],64))],8,Zv)])])],32))}});/**
46
+ * @license lucide-vue-next v0.452.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */const qv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
51
+ * @license lucide-vue-next v0.452.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */var Ls={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
56
+ * @license lucide-vue-next v0.452.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const Qv=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:r,iconNode:i,name:s,class:o,...a},{slots:l})=>mr("svg",{...Ls,width:e||Ls.width,height:e||Ls.height,stroke:r||Ls.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:["lucide",`lucide-${qv(s??"icon")}`],...a},[...i.map(u=>mr(...u)),...l.default?[l.default()]:[]]);/**
61
+ * @license lucide-vue-next v0.452.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const As=(e,t)=>(n,{slots:r})=>mr(Qv,{...n,iconNode:t,name:e},r);/**
66
+ * @license lucide-vue-next v0.452.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const e0=As("BadgeCheckIcon",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
71
+ * @license lucide-vue-next v0.452.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const t0=As("ReplyIcon",[["polyline",{points:"9 17 4 12 9 7",key:"hvgpf2"}],["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}]]);/**
76
+ * @license lucide-vue-next v0.452.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const n0=As("ThumbsDownIcon",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
81
+ * @license lucide-vue-next v0.452.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const r0=As("ThumbsUpIcon",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]),s0={class:"flex items-center gap-2"},i0=["aria-label","title","disabled"],o0={key:0,class:"ac-loading ac-loading-spinner"},a0={class:"text-sm"},l0=["aria-label","title","disabled"],c0={key:0,class:"ac-loading ac-loading-spinner"},u0=["aria-label","title"],Ns="awesome-comment-likes",f0=ht({__name:"comment-actions",props:{comment:{}},emits:["reply"],setup(e,{emit:t}){const n=e,r=t,{t:i}=yt(),s=Xn(),o=re(0);async function a(l=!0){if(o.value)return;const u=localStorage.getItem(Ns);if(u){const d=JSON.parse(u),_=Date.now(),v=d[n.comment.id];if(v&&_-v<6e4){d[n.comment.id]=_,localStorage.setItem(Ns,JSON.stringify(d)),s.updateComment(n.comment.id,{like:Math.max((n.comment.like||0)+(l?1:-1),0)});return}d[n.comment.id]=_,localStorage.setItem(Ns,JSON.stringify(d))}else localStorage.setItem(Ns,JSON.stringify({[n.comment.id]:Date.now()}));o.value=l?1:-1;const f=await(await fetch(`/api/like/${n.comment.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({like:l,postId:n.comment.postId})})).json();s.updateComment(n.comment.id,{like:f.data?.like||0}),o.value=0}return(l,u)=>(J(),ee("div",s0,[ce("button",{"aria-label":z(i)("like"),title:z(i)("like"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:o.value!==0,type:"button",onClick:u[0]||(u[0]=c=>a())},[o.value>0?(J(),ee("span",o0)):(J(),zt(z(r0),{key:1,size:16}))],8,i0),ce("span",a0,ye(l.comment.like||0),1),ce("button",{"aria-label":z(i)("dislike"),title:z(i)("dislike"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:o.value!==0,type:"button",onClick:u[1]||(u[1]=c=>a(!1))},[o.value<0?(J(),ee("span",c0)):(J(),zt(z(n0),{key:1,size:16}))],8,l0),ce("button",{"aria-label":z(i)("reply"),title:z(i)("reply"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none -me-1.5",type:"button",onClick:u[2]||(u[2]=c=>r("reply"))},[Te(z(t0),{size:16})],8,u0)]))}});function So(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let On=So();function rf(e){On=e}const sf=/[&<>"']/,d0=new RegExp(sf.source,"g"),of=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,h0=new RegExp(of.source,"g"),p0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},af=e=>p0[e];function Ze(e,t){if(t){if(sf.test(e))return e.replace(d0,af)}else if(of.test(e))return e.replace(h0,af);return e}const m0=/(^|[^\[])\^/g;function fe(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(m0,"$1"),n=n.replace(i,o),r},getRegex:()=>new RegExp(n,t)};return r}function lf(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Cr={exec:()=>null};function cf(e,t){const n=e.replace(/\|/g,(s,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function Lr(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.slice(0,r-i)}function g0(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function uf(e,t,n,r){const i=t.href,s=t.title?Ze(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:s,text:Ze(o)}}function _0(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
46
86
  `).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[o]=s;return o.length>=r.length?i.slice(r.length):i}).join(`
47
- `)}class Cs{options;rules;lexer;constructor(t){this.options=t||Sn}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:xr(r,`
48
- `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=ew(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const i=xr(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:xr(n[0],`
49
- `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=xr(n[0],`
87
+ `)}class Ps{options;rules;lexer;constructor(t){this.options=t||On}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Lr(r,`
88
+ `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=_0(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const i=Lr(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Lr(n[0],`
89
+ `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Lr(n[0],`
50
90
  `).split(`
51
91
  `),i="",s="";const o=[];for(;r.length>0;){let a=!1;const l=[];let u;for(u=0;u<r.length;u++)if(/^ {0,3}>/.test(r[u]))l.push(r[u]),a=!0;else if(!a)l.push(r[u]);else break;r=r.slice(u);const c=l.join(`
52
92
  `),f=c.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
53
93
  $1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}
54
94
  ${c}`:c,s=s?`${s}
55
- ${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,o,!0),this.lexer.state.top=d,r.length===0)break;const m=o[o.length-1];if(m?.type==="code")break;if(m?.type==="blockquote"){const v=m,E=v.raw+`
95
+ ${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,o,!0),this.lexer.state.top=d,r.length===0)break;const _=o[o.length-1];if(_?.type==="code")break;if(_?.type==="blockquote"){const v=_,S=v.raw+`
56
96
  `+r.join(`
57
- `),k=this.blockquote(E);o[o.length-1]=k,i=i.substring(0,i.length-v.raw.length)+k.raw,s=s.substring(0,s.length-v.text.length)+k.text;break}else if(m?.type==="list"){const v=m,E=v.raw+`
97
+ `),T=this.blockquote(S);o[o.length-1]=T,i=i.substring(0,i.length-v.raw.length)+T.raw,s=s.substring(0,s.length-v.text.length)+T.text;break}else if(_?.type==="list"){const v=_,S=v.raw+`
58
98
  `+r.join(`
59
- `),k=this.list(E);o[o.length-1]=k,i=i.substring(0,i.length-m.raw.length)+k.raw,s=s.substring(0,s.length-v.raw.length)+k.raw,r=E.substring(o[o.length-1].raw.length).split(`
99
+ `),T=this.list(S);o[o.length-1]=T,i=i.substring(0,i.length-_.raw.length)+T.raw,s=s.substring(0,s.length-v.raw.length)+T.raw,r=S.substring(o[o.length-1].raw.length).split(`
60
100
  `);continue}}return{type:"blockquote",raw:i,tokens:o,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const o=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let a=!1;for(;t;){let l=!1,u="",c="";if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let f=n[2].split(`
61
- `,1)[0].replace(/^\t+/,S=>" ".repeat(3*S.length)),d=t.split(`
62
- `,1)[0],m=!f.trim(),v=0;if(this.options.pedantic?(v=2,c=f.trimStart()):m?v=n[1].length+1:(v=n[2].search(/[^ ]/),v=v>4?1:v,c=f.slice(v),v+=n[1].length),m&&/^[ \t]*$/.test(d)&&(u+=d+`
63
- `,t=t.substring(d.length+1),l=!0),!l){const S=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),L=new RegExp(`^ {0,${Math.min(3,v-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),y=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:\`\`\`|~~~)`),_=new RegExp(`^ {0,${Math.min(3,v-1)}}#`),O=new RegExp(`^ {0,${Math.min(3,v-1)}}<[a-z].*>`,"i");for(;t;){const C=t.split(`
64
- `,1)[0];let A;if(d=C,this.options.pedantic?(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),A=d):A=d.replace(/\t/g," "),y.test(d)||_.test(d)||O.test(d)||S.test(d)||L.test(d))break;if(A.search(/[^ ]/)>=v||!d.trim())c+=`
65
- `+A.slice(v);else{if(m||f.replace(/\t/g," ").search(/[^ ]/)>=4||y.test(f)||_.test(f)||L.test(f))break;c+=`
66
- `+d}!m&&!d.trim()&&(m=!0),u+=C+`
67
- `,t=t.substring(C.length+1),f=A.slice(v)}}s.loose||(a?s.loose=!0:/\n[ \t]*\n[ \t]*$/.test(u)&&(a=!0));let E=null,k;this.options.gfm&&(E=/^\[[ xX]\] /.exec(c),E&&(k=E[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:u,task:!!E,checked:k,loose:!1,text:c,tokens:[]}),s.raw+=u}s.items[s.items.length-1].raw=s.items[s.items.length-1].raw.trimEnd(),s.items[s.items.length-1].text=s.items[s.items.length-1].text.trimEnd(),s.raw=s.raw.trimEnd();for(let l=0;l<s.items.length;l++)if(this.lexer.state.top=!1,s.items[l].tokens=this.lexer.blockTokens(s.items[l].text,[]),!s.loose){const u=s.items[l].tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));s.loose=c}if(s.loose)for(let l=0;l<s.items.length;l++)s.items[l].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=of(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),s=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
68
- `):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<r.length;a++)o.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:o.align[a]});for(const a of s)o.rows.push(of(a,o.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[u]})));return o}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
69
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Ze(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=xr(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=Qv(n[2],"()");if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],s=o[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),af(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(/\s+/g," "),s=n[i.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return af(r,s,r[0],this.lexer)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...i[0]].length-1;let a,l,u=o,c=0;const f=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+o);(i=f.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=[...a].length,i[3]||i[4]){u+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const d=[...i[0]][0].length,m=t.slice(0,o+i.index+d+l);if(Math.min(o,l)%2){const E=m.slice(1,-1);return{type:"em",raw:m,text:E,tokens:this.lexer.inlineTokens(E)}}const v=m.slice(2,-2);return{type:"strong",raw:m,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const i=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return i&&s&&(r=r.substring(1,r.length-1)),r=Ze(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=Ze(n[1]),i="mailto:"+r):(r=Ze(n[1]),i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,i;if(n[2]==="@")r=Ze(n[0]),i="mailto:"+r;else{let s;do s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(s!==n[0]);r=Ze(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Ze(n[0]),{type:"text",raw:n[0],text:r}}}}const tw=/^(?:[ \t]*(?:\n|$))+/,nw=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rw=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Cr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,sw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,lf=/(?:[*+-]|\d{1,9}[.)])/,cf=fe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,lf).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),To=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,iw=/^[^\n]+/,Eo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ow=fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Eo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),aw=fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,lf).getRegex(),Ls="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Io=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lw=fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Io).replace("tag",Ls).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),uf=fe(To).replace("hr",Cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ls).getRegex(),So={blockquote:fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",uf).getRegex(),code:nw,def:ow,fences:rw,heading:sw,hr:Cr,html:lw,lheading:cf,list:aw,newline:tw,paragraph:uf,table:Or,text:iw},ff=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ls).getRegex(),cw={...So,table:ff,paragraph:fe(To).replace("hr",Cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ff).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ls).getRegex()},uw={...So,html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Io).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Or,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(To).replace("hr",Cr).replace("heading",` *#{1,6} *[^
70
- ]`).replace("lheading",cf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},df=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,fw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,hf=/^( {2,}|\\)\n(?!\s*$)/,dw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Lr="\\p{P}\\p{S}",hw=fe(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Lr).getRegex(),pw=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,mw=fe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Lr).getRegex(),gw=fe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Lr).getRegex(),_w=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Lr).getRegex(),bw=fe(/\\([punct])/,"gu").replace(/punct/g,Lr).getRegex(),yw=fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),vw=fe(Io).replace("(?:-->|$)","-->").getRegex(),ww=fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",vw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),As=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,kw=fe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",As).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pf=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",As).replace("ref",Eo).getRegex(),mf=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Eo).getRegex(),Tw=fe("reflink|nolink(?!\\()","g").replace("reflink",pf).replace("nolink",mf).getRegex(),Oo={_backpedal:Or,anyPunctuation:bw,autolink:yw,blockSkip:pw,br:hf,code:fw,del:Or,emStrongLDelim:mw,emStrongRDelimAst:gw,emStrongRDelimUnd:_w,escape:df,link:kw,nolink:mf,punctuation:hw,reflink:pf,reflinkSearch:Tw,tag:ww,text:dw,url:Or},Ew={...Oo,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",As).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",As).getRegex()},xo={...Oo,escape:fe(df).replace("])","~|])").getRegex(),url:fe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Iw={...xo,br:fe(hf).replace("{2,}","*").getRegex(),text:fe(xo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ns={normal:So,gfm:cw,pedantic:uw},Ar={normal:Oo,gfm:xo,breaks:Iw,pedantic:Ew};class tt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Sn,this.options.tokenizer=this.options.tokenizer||new Cs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Ns.normal,inline:Ar.normal};this.options.pedantic?(n.block=Ns.pedantic,n.inline=Ar.pedantic):this.options.gfm&&(n.block=Ns.gfm,this.options.breaks?n.inline=Ar.breaks:n.inline=Ar.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ns,inline:Ar}}static lex(t,n){return new tt(n).lex(t)}static lexInline(t,n){return new tt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
101
+ `,1)[0].replace(/^\t+/,E=>" ".repeat(3*E.length)),d=t.split(`
102
+ `,1)[0],_=!f.trim(),v=0;if(this.options.pedantic?(v=2,c=f.trimStart()):_?v=n[1].length+1:(v=n[2].search(/[^ ]/),v=v>4?1:v,c=f.slice(v),v+=n[1].length),_&&/^[ \t]*$/.test(d)&&(u+=d+`
103
+ `,t=t.substring(d.length+1),l=!0),!l){const E=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),L=new RegExp(`^ {0,${Math.min(3,v-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),y=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:\`\`\`|~~~)`),g=new RegExp(`^ {0,${Math.min(3,v-1)}}#`),O=new RegExp(`^ {0,${Math.min(3,v-1)}}<[a-z].*>`,"i");for(;t;){const C=t.split(`
104
+ `,1)[0];let A;if(d=C,this.options.pedantic?(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),A=d):A=d.replace(/\t/g," "),y.test(d)||g.test(d)||O.test(d)||E.test(d)||L.test(d))break;if(A.search(/[^ ]/)>=v||!d.trim())c+=`
105
+ `+A.slice(v);else{if(_||f.replace(/\t/g," ").search(/[^ ]/)>=4||y.test(f)||g.test(f)||L.test(f))break;c+=`
106
+ `+d}!_&&!d.trim()&&(_=!0),u+=C+`
107
+ `,t=t.substring(C.length+1),f=A.slice(v)}}s.loose||(a?s.loose=!0:/\n[ \t]*\n[ \t]*$/.test(u)&&(a=!0));let S=null,T;this.options.gfm&&(S=/^\[[ xX]\] /.exec(c),S&&(T=S[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:u,task:!!S,checked:T,loose:!1,text:c,tokens:[]}),s.raw+=u}s.items[s.items.length-1].raw=s.items[s.items.length-1].raw.trimEnd(),s.items[s.items.length-1].text=s.items[s.items.length-1].text.trimEnd(),s.raw=s.raw.trimEnd();for(let l=0;l<s.items.length;l++)if(this.lexer.state.top=!1,s.items[l].tokens=this.lexer.blockTokens(s.items[l].text,[]),!s.loose){const u=s.items[l].tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));s.loose=c}if(s.loose)for(let l=0;l<s.items.length;l++)s.items[l].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=cf(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),s=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
108
+ `):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<r.length;a++)o.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:o.align[a]});for(const a of s)o.rows.push(cf(a,o.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[u]})));return o}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
109
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Ze(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=Lr(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=g0(n[2],"()");if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],s=o[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),uf(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(/\s+/g," "),s=n[i.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return uf(r,s,r[0],this.lexer)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...i[0]].length-1;let a,l,u=o,c=0;const f=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+o);(i=f.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=[...a].length,i[3]||i[4]){u+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const d=[...i[0]][0].length,_=t.slice(0,o+i.index+d+l);if(Math.min(o,l)%2){const S=_.slice(1,-1);return{type:"em",raw:_,text:S,tokens:this.lexer.inlineTokens(S)}}const v=_.slice(2,-2);return{type:"strong",raw:_,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const i=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return i&&s&&(r=r.substring(1,r.length-1)),r=Ze(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=Ze(n[1]),i="mailto:"+r):(r=Ze(n[1]),i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,i;if(n[2]==="@")r=Ze(n[0]),i="mailto:"+r;else{let s;do s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(s!==n[0]);r=Ze(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Ze(n[0]),{type:"text",raw:n[0],text:r}}}}const b0=/^(?:[ \t]*(?:\n|$))+/,y0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,v0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ar=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,w0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ff=/(?:[*+-]|\d{1,9}[.)])/,df=fe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ff).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Oo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,k0=/^[^\n]+/,xo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,T0=fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),E0=fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ff).getRegex(),Rs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Co=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,I0=fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Co).replace("tag",Rs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),hf=fe(Oo).replace("hr",Ar).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rs).getRegex(),Lo={blockquote:fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",hf).getRegex(),code:y0,def:T0,fences:v0,heading:w0,hr:Ar,html:I0,lheading:df,list:E0,newline:b0,paragraph:hf,table:Cr,text:k0},pf=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ar).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rs).getRegex(),S0={...Lo,table:pf,paragraph:fe(Oo).replace("hr",Ar).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Rs).getRegex()},O0={...Lo,html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Co).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Cr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(Oo).replace("hr",Ar).replace("heading",` *#{1,6} *[^
110
+ ]`).replace("lheading",df).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},mf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,x0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gf=/^( {2,}|\\)\n(?!\s*$)/,C0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Nr="\\p{P}\\p{S}",L0=fe(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Nr).getRegex(),A0=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,N0=fe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Nr).getRegex(),P0=fe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Nr).getRegex(),R0=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Nr).getRegex(),$0=fe(/\\([punct])/,"gu").replace(/punct/g,Nr).getRegex(),M0=fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),D0=fe(Co).replace("(?:-->|$)","-->").getRegex(),F0=fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",D0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),$s=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,j0=fe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",$s).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),_f=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",$s).replace("ref",xo).getRegex(),bf=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",xo).getRegex(),U0=fe("reflink|nolink(?!\\()","g").replace("reflink",_f).replace("nolink",bf).getRegex(),Ao={_backpedal:Cr,anyPunctuation:$0,autolink:M0,blockSkip:A0,br:gf,code:x0,del:Cr,emStrongLDelim:N0,emStrongRDelimAst:P0,emStrongRDelimUnd:R0,escape:mf,link:j0,nolink:bf,punctuation:L0,reflink:_f,reflinkSearch:U0,tag:F0,text:C0,url:Cr},W0={...Ao,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",$s).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$s).getRegex()},No={...Ao,escape:fe(mf).replace("])","~|])").getRegex(),url:fe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},H0={...No,br:fe(gf).replace("{2,}","*").getRegex(),text:fe(No.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ms={normal:Lo,gfm:S0,pedantic:O0},Pr={normal:Ao,gfm:No,breaks:H0,pedantic:W0};class nt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||On,this.options.tokenizer=this.options.tokenizer||new Ps,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Ms.normal,inline:Pr.normal};this.options.pedantic?(n.block=Ms.pedantic,n.inline=Pr.pedantic):this.options.gfm&&(n.block=Ms.gfm,this.options.breaks?n.inline=Pr.breaks:n.inline=Pr.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ms,inline:Pr}}static lex(t,n){return new nt(n).lex(t)}static lexInline(t,n){return new nt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
71
111
  `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){this.options.pedantic&&(t=t.replace(/\t/g," ").replace(/^ +$/gm,""));let i,s,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(i=a.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),i.raw.length===1&&n.length>0?n[n.length-1].raw+=`
72
112
  `:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
73
113
  `+i.raw,s.text+=`
@@ -77,7 +117,7 @@ ${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block
77
117
  `+i.raw,s.text+=`
78
118
  `+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(i),r=o.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
79
119
  `+i.raw,s.text+=`
80
- `+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(i);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,i,s,o=t,a,l,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,o,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const f=t.slice(1);let d;this.options.extensions.startInline.forEach(m=>{d=m.call({lexer:this},f),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}if(r=this.tokenizer.inlineText(s)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),l=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class Ps{options;parser;constructor(t){this.options=t||Sn}space(t){return""}code({text:t,lang:n,escaped:r}){const i=(n||"").match(/^\S*/)?.[0],s=t.replace(/\n$/,"")+`
120
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(i);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,i,s,o=t,a,l,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,o,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const f=t.slice(1);let d;this.options.extensions.startInline.forEach(_=>{d=_.call({lexer:this},f),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}if(r=this.tokenizer.inlineText(s)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),l=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class Ds{options;parser;constructor(t){this.options=t||On}space(t){return""}code({text:t,lang:n,escaped:r}){const i=(n||"").match(/^\S*/)?.[0],s=t.replace(/\n$/,"")+`
81
121
  `;return i?'<pre><code class="language-'+Ze(i)+'">'+(r?s:Ze(s,!0))+`</code></pre>
82
122
  `:"<pre><code>"+(r?s:Ze(s,!0))+`</code></pre>
83
123
  `}blockquote({tokens:t}){return`<blockquote>
@@ -95,6 +135,6 @@ ${this.parser.parse(t)}</blockquote>
95
135
  `}tablerow({text:t}){return`<tr>
96
136
  ${t}</tr>
97
137
  `}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
98
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=sf(t);if(s===null)return i;t=s;let o='<a href="'+t+'"';return n&&(o+=' title="'+n+'"'),o+=">"+i+"</a>",o}image({href:t,title:n,text:r}){const i=sf(t);if(i===null)return r;t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${n}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class Co{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class nt{options;renderer;textRenderer;constructor(t){this.options=t||Sn,this.options.renderer=this.options.renderer||new Ps,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Co}static parse(t,n){return new nt(n).parse(t)}static parseInline(t,n){return new nt(n).parseInline(t)}parse(t,n=!0){let r="";for(let i=0;i<t.length;i++){const s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const a=s,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){r+=l||"";continue}}const o=s;switch(o.type){case"space":{r+=this.renderer.space(o);continue}case"hr":{r+=this.renderer.hr(o);continue}case"heading":{r+=this.renderer.heading(o);continue}case"code":{r+=this.renderer.code(o);continue}case"table":{r+=this.renderer.table(o);continue}case"blockquote":{r+=this.renderer.blockquote(o);continue}case"list":{r+=this.renderer.list(o);continue}case"html":{r+=this.renderer.html(o);continue}case"paragraph":{r+=this.renderer.paragraph(o);continue}case"text":{let a=o,l=this.renderer.text(a);for(;i+1<t.length&&t[i+1].type==="text";)a=t[++i],l+=`
99
- `+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):r+=l;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let i=0;i<t.length;i++){const s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=a||"";continue}}const o=s;switch(o.type){case"escape":{r+=n.text(o);break}case"html":{r+=n.html(o);break}case"link":{r+=n.link(o);break}case"image":{r+=n.image(o);break}case"strong":{r+=n.strong(o);break}case"em":{r+=n.em(o);break}case"codespan":{r+=n.codespan(o);break}case"br":{r+=n.br(o);break}case"del":{r+=n.del(o);break}case"text":{r+=n.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}}class Rs{options;block;constructor(t){this.options=t||Sn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?tt.lex:tt.lexInline}provideParser(){return this.block?nt.parse:nt.parseInline}}class Sw{defaults=ko();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=nt;Renderer=Ps;TextRenderer=Co;Lexer=tt;Tokenizer=Cs;Hooks=Rs;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(const i of t)switch(r=r.concat(n.call(this,i)),i.type){case"table":{const s=i;for(const o of s.header)r=r.concat(this.walkTokens(o.tokens,n));for(const o of s.rows)for(const a of o)r=r.concat(this.walkTokens(a.tokens,n));break}case"list":{const s=i;r=r.concat(this.walkTokens(s.items,n));break}default:{const s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(o=>{const a=s[o].flat(1/0);r=r.concat(this.walkTokens(a,n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=n.renderers[s.name];o?n.renderers[s.name]=function(...a){let l=s.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[s.level];o?o.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new Ps(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,l=r.renderer[a],u=s[a];s[a]=(...c)=>{let f=l.apply(s,c);return f===!1&&(f=u.apply(s,c)),f||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new Cs(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=r.tokenizer[a],u=s[a];s[a]=(...c)=>{let f=l.apply(s,c);return f===!1&&(f=u.apply(s,c)),f}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new Rs;for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,l=r.hooks[a],u=s[a];Rs.passThroughHooks.has(o)?s[a]=c=>{if(this.defaults.async)return Promise.resolve(l.call(s,c)).then(d=>u.call(s,d));const f=l.call(s,c);return u.call(s,f)}:s[a]=(...c)=>{let f=l.apply(s,c);return f===!1&&(f=u.apply(s,c)),f}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;i.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),s&&(l=l.concat(s.call(this,a))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return tt.lex(t,n??this.defaults)}parser(t,n){return nt.parse(t,n??this.defaults)}parseMarkdown(t){return(r,i)=>{const s={...i},o={...this.defaults,...s},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);const l=o.hooks?o.hooks.provideLexer():t?tt.lex:tt.lexInline,u=o.hooks?o.hooks.provideParser():t?nt.parse:nt.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(c=>l(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>u(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(a);try{o.hooks&&(r=o.hooks.preprocess(r));let c=l(r,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let f=u(c,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(c){return a(c)}}}onError(t,n){return r=>{if(r.message+=`
100
- Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Ze(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const On=new Sw;function ue(e,t){return On.parse(e,t)}ue.options=ue.setOptions=function(e){return On.setOptions(e),ue.defaults=On.defaults,ef(ue.defaults),ue},ue.getDefaults=ko,ue.defaults=Sn,ue.use=function(...e){return On.use(...e),ue.defaults=On.defaults,ef(ue.defaults),ue},ue.walkTokens=function(e,t){return On.walkTokens(e,t)},ue.parseInline=On.parseInline,ue.Parser=nt,ue.parser=nt.parse,ue.Renderer=Ps,ue.TextRenderer=Co,ue.Lexer=tt,ue.lexer=tt.lex,ue.Tokenizer=Cs,ue.Hooks=Rs,ue.parse=ue,ue.options,ue.setOptions,ue.use,ue.walkTokens,ue.parseInline,nt.parse,tt.lex;function Ow(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){const i=t>>r*8&255;n+=("00"+i.toString(16)).slice(-2)}return n}const xw=["id"],Cw={class:"pt-2 pb-3 px-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},Lw={class:"flex justify-between items-center font-sans"},Aw={class:"flex items-center text-sm text-base-content dark:text-white"},Nw={class:"ac-avatar me-2"},Pw={key:0,class:"w-6 h-6"},Rw=["src","alt"],$w={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},Mw=["data-tip"],Dw=["href"],Fw=["datetime","title"],jw=["title","aria-label"],Uw=["href"],Ww=["innerHTML"],Hw={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},Kw=["href"],Vw={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},zw=an({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=yn(),r=Os(),{user:i}=ji();let s;const o=te(Date.now()),a=te(!1),l=Ke(()=>t.comment.userId===i.value?.sub&&o.value-t.comment.createdAt.getTime()<36e5),u=Ke(()=>{if(t.comment.isAdmin)return n("admin");let m=t.comment.user?.name||n("anonymous");return m=m.replace(jv,""),m});function c(m){return`${location.origin}${location.pathname}#awcm-${m}`}function f(m){return ue(m).replace(/<a/g,'<a target="_blank"')}function d(m){if(t.ancestorId){const E=r.comments[t.ancestorId]?.children?.find(k=>Number(k.id)===Number(m));return E?.isAdmin?n("admin"):E?.user?.name||E?.user?.email||""}return""}return es(()=>{l.value&&(s=setInterval(()=>{o.value=Date.now(),l.value||clearInterval(s)},1e3))}),Oa(()=>{clearInterval(s)}),(m,v)=>{const E=Ld("comment-item",!0);return q(),ne("div",{class:Fr(["comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1",{"animated flash":m.comment.isNew}]),id:"awcm-"+m.comment.id,onAnimationend:v[6]||(v[6]=k=>m.comment.isNew=!1)},[ce("div",Cw,[ce("header",Lw,[ce("div",Aw,[ce("div",Nw,[m.comment.user.avatar?(q(),ne("div",Pw,[ce("img",{class:"rounded-full max-w-full max-h-full",src:m.comment.user.avatar,alt:u.value},null,8,Rw)])):(q(),ne("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:Dr({"background-color":J(Ow)(u.value)})},[ce("span",$w,ye(u.value.substring(0,1)),1)],4))]),dn(ye(u.value),1),m.comment.isAdmin?(q(),ne("div",{key:0,class:"ac-tooltip ms-2","data-tip":J(n)("admin")},v[7]||(v[7]=[ce("i",{class:"bi bi-patch-check-fill text-success"},null,-1)]),8,Mw)):De("",!0),ce("a",{class:"ms-4 no-underline hover:underline hover:decoration-green-middle",href:c(m.comment.id)},[ce("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:m.comment.createdAt,title:J(qu)(m.comment.createdAt)},ye(J(qu)(m.comment.createdAt)),9,Fw)],8,Dw),l.value?(q(),ne("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:v[0]||(v[0]=k=>a.value=!a.value)},ye(J(n)("edit")),1)):De("",!0)]),ce("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 -me-1.5",type:"button",title:J(n)("reply"),"aria-label":J(n)("reply"),onClick:v[1]||(v[1]=k=>m.comment.isReplying=!m.comment.isReplying)},v[8]||(v[8]=[ce("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)]),8,jw)]),m.comment.isAdmin?(q(),ne(Oe,{key:0},[m.comment.parentId&&m.comment.parentId!==m.comment.ancestorId?(q(),ne("a",{key:0,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${m.comment.parentId}`,target:"_self"},"@"+ye(d(m.comment.parentId)),9,Uw)):De("",!0),ce("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:f(m.comment.content)},null,8,Ww)],64)):(q(),ne("p",Hw,[m.comment.parentId&&m.comment.parentId!==m.comment.ancestorId?(q(),ne("a",{key:0,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${m.comment.parentId}`,target:"_self"},"@"+ye(d(m.comment.parentId)),9,Kw)):De("",!0),dn(ye(m.comment.content),1)])),m.comment.status===J(Is).Pending?(q(),ne("p",Vw,ye(J(n)("approve_hint")),1)):De("",!0)]),a.value?(q(),$n(xs,{key:0,class:"mt-3","no-version":"",content:m.comment.content,"current-id":m.comment.id,status:m.comment.status,onUpdate:v[2]||(v[2]=k=>m.comment.content=k),onClose:v[3]||(v[3]=k=>a.value=!1)},null,8,["content","current-id","status"])):De("",!0),m.comment.isReplying&&m.isFirstLevel?(q(),$n(xs,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":m.ancestorId,"parent-id":Number(m.comment.id),onClose:v[4]||(v[4]=k=>m.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):De("",!0),m.comment.children?.length?(q(!0),ne(Oe,{key:2},Ca(m.comment.children,k=>(q(),$n(E,{class:"ms-7 mt-2",key:k.id,comment:k,"ancestor-id":m.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):De("",!0),m.comment.isReplying&&!m.isFirstLevel?(q(),$n(xs,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":m.ancestorId,"parent-id":m.comment.id,onClose:v[5]||(v[5]=k=>m.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):De("",!0)],42,xw)}}}),Bw={key:0,class:"comments-wrapper"},Gw=["disabled"],Yw={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Xw={key:1,class:"pt-8 text-center"},Zw=an({...{name:"CommentSections"},setup(e){const{t}=yn(),n=Os();n.loadComments(!0);function r(){n.start+=20,n.loadComments()}return(i,s)=>J(n).isLoaded?(q(),ne("div",Bw,[(q(!0),ne(Oe,null,Ca(Object.values(J(n).comments).reverse(),o=>(q(),$n(zw,{key:o.id,comment:o,"parent-id":o.parentId,"ancestor-id":o.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),J(n).hasMore?(q(),ne("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:r,disabled:J(n).loadingMore},[J(n).loadingMore?(q(),ne("span",Yw)):De("",!0),dn(ye(J(t)("load_more")),1)],8,Gw)):De("",!0)])):(q(),ne("div",Xw,s[0]||(s[0]=[ce("span",{class:"ac-loading ac-loading-spinner"},null,-1)])))}}),Jw={class:"awesome-comment"},qw={key:0,class:"ac-alert ac-alert-error mb-4"},Qw={class:"flex justify-between items-center py-2"},e0={class:"text-lg font-bold text-base-content my-0"},t0={key:0,class:"ac-loading ac-loading-spinner"},n0={key:1,class:"ac-dropdown ac-dropdown-end"},r0={key:0,class:"ac-avatar flex",tabindex:"0"},s0={class:"w-6 h-6 rounded-full"},i0=["alt","src"],o0={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},a0={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},l0={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},c0={class:"text-base-content"},u0=["disabled"],f0=["disabled"],d0=an({__name:"App",setup(e){const t=Os(),{t:n}=yn(),{isAuthenticated:r,isLoading:i,user:s,loginWithPopup:o,logout:a}=ji(),l=Ke(()=>{const f=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const d=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(d),f});function u(){o()}function c(){a({openUrl:!1})}return(f,d)=>(q(),ne("div",Jw,[J(t).message?(q(),ne("div",qw,[ce("p",null,ye(J(t).message),1)])):De("",!0),ce("header",Qw,[ce("h2",e0,ye(J(n)("discussion"))+" ("+ye(l.value)+")",1),J(i)?(q(),ne("span",t0)):(q(),ne("div",n0,[J(r)&&J(s)?(q(),ne(Oe,{key:0},[J(s).picture?(q(),ne("label",r0,[ce("div",s0,[ce("img",{class:"w-full h-full block",alt:J(s).name||J(s).email,src:J(s).picture},null,8,i0)])])):(q(),ne("label",o0,ye(J(s).email),1)),ce("ul",a0,[J(s).picture?(q(),ne("li",l0,[ce("span",c0,ye(J(s).email),1)])):De("",!0),ce("li",null,[ce("button",{class:"border-0 bg-base-100",type:"button",disabled:J(i),onClick:c},ye(J(n)("logout")),9,u0)])])],64)):(q(),ne("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:J(i),onClick:u},ye(J(n)("login")),9,f0))]))]),Me(xs),Me(Zw)]))}}),gf=[];let Lo=0,_f=null;function h0(e,t,n=navigator.language){const r=qh(d0),i=np(),s=_f||Kl({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=dg({legacy:!1,locale:n,fallbackLocale:"en",messages:{...Mv(Xu,"cn"),"zh-CN":Xu.cn}});return r.use(s),r.use(i),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:r,clientId:i,locale:s=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain,i??=this.clientId;const o=h0(r,i,s);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.provide("Auth0Domain",r),o.provide("comments",gf),o.provide("total",Lo),o.mount(e)},async preload(e,t,n,r){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=r,_f=Kl({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}});const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const s=await i.json();if(s.data){gf.push(...s.data),Lo=s.meta?.total||s.data.length;const o=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Lo});document.body.dispatchEvent(o)}}}});
138
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=lf(t);if(s===null)return i;t=s;let o='<a href="'+t+'"';return n&&(o+=' title="'+n+'"'),o+=">"+i+"</a>",o}image({href:t,title:n,text:r}){const i=lf(t);if(i===null)return r;t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${n}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class Po{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class rt{options;renderer;textRenderer;constructor(t){this.options=t||On,this.options.renderer=this.options.renderer||new Ds,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Po}static parse(t,n){return new rt(n).parse(t)}static parseInline(t,n){return new rt(n).parseInline(t)}parse(t,n=!0){let r="";for(let i=0;i<t.length;i++){const s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const a=s,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){r+=l||"";continue}}const o=s;switch(o.type){case"space":{r+=this.renderer.space(o);continue}case"hr":{r+=this.renderer.hr(o);continue}case"heading":{r+=this.renderer.heading(o);continue}case"code":{r+=this.renderer.code(o);continue}case"table":{r+=this.renderer.table(o);continue}case"blockquote":{r+=this.renderer.blockquote(o);continue}case"list":{r+=this.renderer.list(o);continue}case"html":{r+=this.renderer.html(o);continue}case"paragraph":{r+=this.renderer.paragraph(o);continue}case"text":{let a=o,l=this.renderer.text(a);for(;i+1<t.length&&t[i+1].type==="text";)a=t[++i],l+=`
139
+ `+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):r+=l;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let i=0;i<t.length;i++){const s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=a||"";continue}}const o=s;switch(o.type){case"escape":{r+=n.text(o);break}case"html":{r+=n.html(o);break}case"link":{r+=n.link(o);break}case"image":{r+=n.image(o);break}case"strong":{r+=n.strong(o);break}case"em":{r+=n.em(o);break}case"codespan":{r+=n.codespan(o);break}case"br":{r+=n.br(o);break}case"del":{r+=n.del(o);break}case"text":{r+=n.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}}class Fs{options;block;constructor(t){this.options=t||On}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?nt.lex:nt.lexInline}provideParser(){return this.block?rt.parse:rt.parseInline}}class K0{defaults=So();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=rt;Renderer=Ds;TextRenderer=Po;Lexer=nt;Tokenizer=Ps;Hooks=Fs;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(const i of t)switch(r=r.concat(n.call(this,i)),i.type){case"table":{const s=i;for(const o of s.header)r=r.concat(this.walkTokens(o.tokens,n));for(const o of s.rows)for(const a of o)r=r.concat(this.walkTokens(a.tokens,n));break}case"list":{const s=i;r=r.concat(this.walkTokens(s.items,n));break}default:{const s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(o=>{const a=s[o].flat(1/0);r=r.concat(this.walkTokens(a,n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=n.renderers[s.name];o?n.renderers[s.name]=function(...a){let l=s.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[s.level];o?o.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new Ds(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,l=r.renderer[a],u=s[a];s[a]=(...c)=>{let f=l.apply(s,c);return f===!1&&(f=u.apply(s,c)),f||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new Ps(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=r.tokenizer[a],u=s[a];s[a]=(...c)=>{let f=l.apply(s,c);return f===!1&&(f=u.apply(s,c)),f}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new Fs;for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,l=r.hooks[a],u=s[a];Fs.passThroughHooks.has(o)?s[a]=c=>{if(this.defaults.async)return Promise.resolve(l.call(s,c)).then(d=>u.call(s,d));const f=l.call(s,c);return u.call(s,f)}:s[a]=(...c)=>{let f=l.apply(s,c);return f===!1&&(f=u.apply(s,c)),f}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;i.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),s&&(l=l.concat(s.call(this,a))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return nt.lex(t,n??this.defaults)}parser(t,n){return rt.parse(t,n??this.defaults)}parseMarkdown(t){return(r,i)=>{const s={...i},o={...this.defaults,...s},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);const l=o.hooks?o.hooks.provideLexer():t?nt.lex:nt.lexInline,u=o.hooks?o.hooks.provideParser():t?rt.parse:rt.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(c=>l(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>u(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(a);try{o.hooks&&(r=o.hooks.preprocess(r));let c=l(r,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let f=u(c,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(c){return a(c)}}}onError(t,n){return r=>{if(r.message+=`
140
+ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Ze(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const xn=new K0;function ue(e,t){return xn.parse(e,t)}ue.options=ue.setOptions=function(e){return xn.setOptions(e),ue.defaults=xn.defaults,rf(ue.defaults),ue},ue.getDefaults=So,ue.defaults=On,ue.use=function(...e){return xn.use(...e),ue.defaults=xn.defaults,rf(ue.defaults),ue},ue.walkTokens=function(e,t){return xn.walkTokens(e,t)},ue.parseInline=xn.parseInline,ue.Parser=rt,ue.parser=rt.parse,ue.Renderer=Ds,ue.TextRenderer=Po,ue.Lexer=nt,ue.lexer=nt.lex,ue.Tokenizer=Ps,ue.Hooks=Fs,ue.parse=ue,ue.options,ue.setOptions,ue.use,ue.walkTokens,ue.parseInline,rt.parse,nt.lex;const V0=["href"],z0=["innerHTML"],B0={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},G0=["href"],Y0=ht({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=yt(),r=Xn();function i(o){return ue(o).replace(/<a/g,'<a target="_blank"')}function s(o){if(t.ancestorId){const l=r.comments[t.ancestorId]?.children?.find(u=>Number(u.id)===Number(o));return l?.isAdmin?n("admin"):l?.user?.name||l?.user?.email||""}return""}return(o,a)=>o.comment.isAdmin?(J(),ee(xe,{key:0},[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(J(),ee("a",{key:0,href:`#awcm-${o.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+ye(s(o.comment.parentId)),9,V0)):De("",!0),ce("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:i(o.comment.content)},null,8,z0)],64)):(J(),ee("p",B0,[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(J(),ee("a",{key:0,href:`#awcm-${o.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+ye(s(o.comment.parentId)),9,G0)):De("",!0),pn(ye(o.comment.content),1)]))}});function X0(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){const i=t>>r*8&255;n+=("00"+i.toString(16)).slice(-2)}return n}const Z0={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},J0={class:"ac-avatar"},q0={key:0,class:"w-6 h-6"},Q0=["alt","src"],ew={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},tw=["data-tip"],nw=["href"],rw=["datetime","title"],sw=ht({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:i}=yt(),s=Ke(()=>{if(n.comment.isAdmin)return i("admin");let a=n.comment.user?.name||i("anonymous");return a=a.replace(Hv,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(J(),ee("div",Z0,[ce("div",J0,[a.comment.user?.avatar?(J(),ee("div",q0,[ce("img",{alt:s.value,src:a.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,Q0)])):(J(),ee("div",{key:1,style:jr({"background-color":z(X0)(s.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[ce("span",ew,ye(s.value.substring(0,1)),1)],4))]),pn(" "+ye(s.value)+" ",1),a.comment.isAdmin?(J(),ee("div",{key:0,"data-tip":z(i)("admin"),class:"ac-tooltip text-success"},[Te(z(e0),{class:"block",size:18})],8,tw)):De("",!0),ce("a",{href:o(a.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[ce("time",{datetime:a.comment.createdAt.toISOString(),title:z(tf)(a.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},ye(z(tf)(a.comment.createdAt)),9,rw)],8,nw),a.isEditable?(J(),ee("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs hover:no-underline",type:"button",onClick:l[0]||(l[0]=u=>r("edit"))},ye(z(i)("edit")),1)):De("",!0)]))}}),iw=["id"],ow={class:"pt-2 pb-3 px-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},aw={class:"flex justify-between items-center font-sans"},lw={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},cw=ht({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=yt(),r=Xn(),{user:i}=Ki();let s;const o=re(Date.now()),a=re(!1),l=re(!1),u=Ke(()=>t.comment.userId===i.value?.sub&&o.value-t.comment.createdAt.getTime()<36e5);return ns(()=>{u.value&&(s=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(s)},1e3))}),Aa(()=>{clearInterval(s)}),(c,f)=>{const d=Pd("comment-item",!0);return J(),ee("div",{id:"awcm-"+c.comment.id,class:Ur([{"animated flash":c.comment.isNew},"comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=_=>z(r).updateComment(c.comment.id,{isNew:!1}))},[ce("div",ow,[ce("header",aw,[Te(sw,{comment:c.comment,"is-editable":u.value,"is-editing":a.value,onEdit:f[0]||(f[0]=_=>a.value=!a.value)},null,8,["comment","is-editable","is-editing"]),Te(f0,{comment:c.comment,onReply:f[1]||(f[1]=_=>l.value=!l.value)},null,8,["comment"])]),Te(Y0,{"ancestor-id":c.ancestorId,comment:c.comment},null,8,["ancestor-id","comment"]),c.comment.status===z(Os).Pending?(J(),ee("p",lw,ye(z(n)("approve_hint")),1)):De("",!0)]),a.value?(J(),zt(Cs,{key:0,content:c.comment.content,"current-id":c.comment.id,status:c.comment.status,class:"mt-3","no-version":"",onClose:f[2]||(f[2]=_=>a.value=!1),onUpdate:f[3]||(f[3]=_=>z(r).updateComment(c.comment.id,{content:_}))},null,8,["content","current-id","status"])):De("",!0),l.value&&c.isFirstLevel?(J(),zt(Cs,{key:1,"ancestor-id":c.ancestorId,"parent-id":Number(c.comment.id),class:"mt-3 ms-7","no-version":"",onClose:f[4]||(f[4]=_=>l.value=!1)},null,8,["ancestor-id","parent-id"])):De("",!0),c.comment.children?.length?(J(!0),ee(xe,{key:2},Pa(c.comment.children,_=>(J(),zt(d,{key:_.id,"ancestor-id":c.ancestorId,comment:_,"is-first-level":!1,class:"ms-7 mt-2"},null,8,["ancestor-id","comment"]))),128)):De("",!0),l.value&&!c.isFirstLevel?(J(),zt(Cs,{key:3,"ancestor-id":c.ancestorId,"parent-id":c.comment.id,class:"mt-3 ms-7","no-version":"",onClose:f[5]||(f[5]=_=>l.value=!1)},null,8,["ancestor-id","parent-id"])):De("",!0)],42,iw)}}}),uw={key:0,class:"comments-wrapper"},fw=["disabled"],dw={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},hw={key:1,class:"pt-8 text-center"},pw=ht({...{name:"CommentSections"},setup(e){const{t}=yt(),n=Xn();n.loadComments(!0);function r(){n.start+=20,n.loadComments()}return(i,s)=>z(n).isLoaded?(J(),ee("div",uw,[(J(!0),ee(xe,null,Pa(Object.values(z(n).comments).reverse(),o=>(J(),zt(cw,{key:o.id,comment:o,"parent-id":o.parentId,"ancestor-id":o.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),z(n).hasMore?(J(),ee("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:r,disabled:z(n).loadingMore},[z(n).loadingMore?(J(),ee("span",dw)):De("",!0),pn(ye(z(t)("load_more")),1)],8,fw)):De("",!0)])):(J(),ee("div",hw,s[0]||(s[0]=[ce("span",{class:"ac-loading ac-loading-spinner"},null,-1)])))}}),mw={class:"awesome-comment"},gw={key:0,class:"ac-alert ac-alert-error mb-4"},_w={class:"flex justify-between items-center py-2"},bw={class:"text-lg font-bold text-base-content my-0"},yw={key:0,class:"ac-loading ac-loading-spinner"},vw={key:1,class:"ac-dropdown ac-dropdown-end"},ww={key:0,class:"ac-avatar flex",tabindex:"0"},kw={class:"w-6 h-6 rounded-full"},Tw=["alt","src"],Ew={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Iw={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Sw={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Ow={class:"text-base-content"},xw=["disabled"],Cw=["disabled"],Lw=ht({__name:"App",setup(e){const t=Xn(),{t:n}=yt(),{isAuthenticated:r,isLoading:i,user:s,loginWithPopup:o,logout:a}=Ki(),l=Ke(()=>{const f=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const d=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(d),f});function u(){o()}function c(){a({openUrl:!1})}return(f,d)=>(J(),ee("div",mw,[z(t).message?(J(),ee("div",gw,[ce("p",null,ye(z(t).message),1)])):De("",!0),ce("header",_w,[ce("h2",bw,ye(z(n)("discussion"))+" ("+ye(l.value)+")",1),z(i)?(J(),ee("span",yw)):(J(),ee("div",vw,[z(r)&&z(s)?(J(),ee(xe,{key:0},[z(s).picture?(J(),ee("label",ww,[ce("div",kw,[ce("img",{class:"w-full h-full block",alt:z(s).name||z(s).email,src:z(s).picture},null,8,Tw)])])):(J(),ee("label",Ew,ye(z(s).email),1)),ce("ul",Iw,[z(s).picture?(J(),ee("li",Sw,[ce("span",Ow,ye(z(s).email),1)])):De("",!0),ce("li",null,[ce("button",{class:"border-0 bg-base-100",type:"button",disabled:z(i),onClick:c},ye(z(n)("logout")),9,xw)])])],64)):(J(),ee("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:z(i),onClick:u},ye(z(n)("login")),9,Cw))]))]),Te(Cs),Te(pw)]))}}),yf=[];let Ro=0,vf=null;function Aw(e,t,n=navigator.language){const r=tp(Lw),i=ip(),s=vf||Bl({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=mg({legacy:!1,locale:n,fallbackLocale:"en",messages:{...jv(qu,"cn"),"zh-CN":qu.cn}});return r.use(s),r.use(i),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:r,clientId:i,locale:s=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain,i??=this.clientId;const o=Aw(r,i,s);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.provide("Auth0Domain",r),o.provide("comments",yf),o.provide("total",Ro),o.mount(e)},async preload(e,t,n,r){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=r,vf=Bl({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}});const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const s=await i.json();if(s.data){yf.push(...s.data),Ro=s.meta?.total||s.data.length;const o=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Ro});document.body.dispatchEvent(o)}}}});