@roudanio/awesome-comment 0.9.11 → 0.9.12

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.
@@ -2,47 +2,47 @@
2
2
  * @vue/shared v3.5.13
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function qt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const re={},vn=[],at=()=>{},af=()=>!1,Ar=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ds=e=>e.startsWith("onUpdate:"),Le=Object.assign,Ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},lf=Object.prototype.hasOwnProperty,ie=(e,t)=>lf.call(e,t),K=Array.isArray,Tn=e=>Lr(e)==="[object Map]",$o=e=>Lr(e)==="[object Set]",V=e=>typeof e=="function",we=e=>typeof e=="string",Dt=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Do=e=>(_e(e)||V(e))&&V(e.then)&&V(e.catch),Mo=Object.prototype.toString,Lr=e=>Mo.call(e),cf=e=>Lr(e).slice(8,-1),Fo=e=>Lr(e)==="[object Object]",Fs=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hn=qt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},uf=/-(\w)/g,Ye=Pr(e=>e.replace(uf,(t,n)=>n?n.toUpperCase():"")),ff=/\B([A-Z])/g,Mt=Pr(e=>e.replace(ff,"-$1").toLowerCase()),Rr=Pr(e=>e.charAt(0).toUpperCase()+e.slice(1)),js=Pr(e=>e?`on${Rr(e)}`:""),Ft=(e,t)=>!Object.is(e,t),Nr=(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})},Us=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Uo;const $r=()=>Uo||(Uo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dr(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?mf(r):Dr(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(we(e)||_e(e))return e}const df=/;(?![^(]*\))/g,hf=/:([^]+)/,pf=/\/\*[^]*?\*\//g;function mf(e){const t={};return e.replace(pf,"").split(df).forEach(n=>{if(n){const r=n.split(hf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function zn(e){let t="";if(we(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const r=zn(e[n]);r&&(t+=r+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gf=qt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Wo(e){return!!e||e===""}const Ho=e=>!!(e&&e.__v_isRef===!0),be=e=>we(e)?e:e==null?"":K(e)||_e(e)&&(e.toString===Mo||!V(e.toString))?Ho(e)?be(e.value):JSON.stringify(e,zo,2):String(e),zo=(e,t)=>Ho(t)?zo(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Ws(r,i)+" =>"]=s,n),{})}:$o(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ws(n))}:Dt(t)?Ws(t):_e(t)&&!K(t)&&!Fo(t)?String(t):t,Ws=(e,t="")=>{var n;return Dt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function qt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const re={},vn=[],at=()=>{},lf=()=>!1,Ar=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ds=e=>e.startsWith("onUpdate:"),Le=Object.assign,Ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},cf=Object.prototype.hasOwnProperty,ie=(e,t)=>cf.call(e,t),K=Array.isArray,Tn=e=>Lr(e)==="[object Map]",Do=e=>Lr(e)==="[object Set]",V=e=>typeof e=="function",we=e=>typeof e=="string",Dt=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Mo=e=>(_e(e)||V(e))&&V(e.then)&&V(e.catch),Fo=Object.prototype.toString,Lr=e=>Fo.call(e),uf=e=>Lr(e).slice(8,-1),jo=e=>Lr(e)==="[object Object]",Fs=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hn=qt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ff=/-(\w)/g,Ye=Pr(e=>e.replace(ff,(t,n)=>n?n.toUpperCase():"")),df=/\B([A-Z])/g,Mt=Pr(e=>e.replace(df,"-$1").toLowerCase()),Rr=Pr(e=>e.charAt(0).toUpperCase()+e.slice(1)),js=Pr(e=>e?`on${Rr(e)}`:""),Ft=(e,t)=>!Object.is(e,t),Nr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Uo=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Us=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Wo;const $r=()=>Wo||(Wo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dr(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?gf(r):Dr(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(we(e)||_e(e))return e}const hf=/;(?![^(]*\))/g,pf=/:([^]+)/,mf=/\/\*[^]*?\*\//g;function gf(e){const t={};return e.replace(mf,"").split(hf).forEach(n=>{if(n){const r=n.split(pf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function zn(e){let t="";if(we(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const r=zn(e[n]);r&&(t+=r+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const _f=qt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ho(e){return!!e||e===""}const zo=e=>!!(e&&e.__v_isRef===!0),be=e=>we(e)?e:e==null?"":K(e)||_e(e)&&(e.toString===Fo||!V(e.toString))?zo(e)?be(e.value):JSON.stringify(e,Ko,2):String(e),Ko=(e,t)=>zo(t)?Ko(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Ws(r,i)+" =>"]=s,n),{})}:Do(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ws(n))}:Dt(t)?Ws(t):_e(t)&&!K(t)&&!jo(t)?String(t):t,Ws=(e,t="")=>{var n;return Dt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
6
  * @vue/reactivity v3.5.13
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let De;class Ko{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=De,!t&&De&&(this.index=(De.scopes||(De.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=De;try{return De=this,t()}finally{De=n}}}on(){De=this}off(){De=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Hs(e){return new Ko(e)}function Vo(){return De}function _f(e,t=!1){De&&De.cleanups.push(e)}let de;const zs=new WeakSet;class Bo{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,De&&De.active&&De.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zs.has(this)&&(zs.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,Qo(this),Yo(this);const t=de,n=nt;de=this,nt=!0;try{return this.fn()}finally{Xo(this),de=t,nt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Gs(t);this.deps=this.depsTail=void 0,Qo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?zs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bs(this)&&this.run()}get dirty(){return Bs(this)}}let Go=0,Kn,Vn;function Zo(e,t=!1){if(e.flags|=8,t){e.next=Vn,Vn=e;return}e.next=Kn,Kn=e}function Ks(){Go++}function Vs(){if(--Go>0)return;if(Vn){let t=Vn;for(Vn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Kn;){let t=Kn;for(Kn=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 Yo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xo(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Gs(r),bf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Bs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Jo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Jo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bn))return;e.globalVersion=Bn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Bs(e)){e.flags&=-3;return}const n=de,r=nt;de=e,nt=!0;try{Yo(e);const s=e.fn(e._value);(t.version===0||Ft(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{de=n,nt=r,Xo(e),e.flags&=-3}}function Gs(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Gs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function bf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nt=!0;const qo=[];function kt(){qo.push(nt),nt=!1}function vt(){const e=qo.pop();nt=e===void 0?!0:e}function Qo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=de;de=void 0;try{t()}finally{de=n}}}let Bn=0;class yf{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 Zs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!de||!nt||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new yf(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,ea(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++,Bn++,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 ea(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ea(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Mr=new WeakMap,Qt=Symbol(""),Ys=Symbol(""),Gn=Symbol("");function Pe(e,t,n){if(nt&&de){let r=Mr.get(e);r||Mr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Zs),s.map=r,s.key=n),s.track()}}function Tt(e,t,n,r,s,i){const o=Mr.get(e);if(!o){Bn++;return}const a=l=>{l&&l.trigger()};if(Ks(),t==="clear")o.forEach(a);else{const l=K(e),u=l&&Fs(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Gn||!Dt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Gn)),t){case"add":l?u&&a(o.get("length")):(a(o.get(Qt)),Tn(e)&&a(o.get(Ys)));break;case"delete":l||(a(o.get(Qt)),Tn(e)&&a(o.get(Ys)));break;case"set":Tn(e)&&a(o.get(Qt));break}}Vs()}function wf(e,t){const n=Mr.get(e);return n&&n.get(t)}function Sn(e){const t=ee(e);return t===e?t:(Pe(t,"iterate",Gn),Xe(e)?t:t.map(Re))}function Fr(e){return Pe(e=ee(e),"iterate",Gn),e}const kf={__proto__:null,[Symbol.iterator](){return Xs(this,Symbol.iterator,Re)},concat(...e){return Sn(this).concat(...e.map(t=>K(t)?Sn(t):t))},entries(){return Xs(this,"entries",e=>(e[1]=Re(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(Re),arguments)},find(e,t){return St(this,"find",e,t,Re,arguments)},findIndex(e,t){return St(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return St(this,"findLast",e,t,Re,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 Js(this,"includes",e)},indexOf(...e){return Js(this,"indexOf",e)},join(e){return Sn(this).join(e)},lastIndexOf(...e){return Js(this,"lastIndexOf",e)},map(e,t){return St(this,"map",e,t,void 0,arguments)},pop(){return Zn(this,"pop")},push(...e){return Zn(this,"push",e)},reduce(e,...t){return ta(this,"reduce",e,t)},reduceRight(e,...t){return ta(this,"reduceRight",e,t)},shift(){return Zn(this,"shift")},some(e,t){return St(this,"some",e,t,void 0,arguments)},splice(...e){return Zn(this,"splice",e)},toReversed(){return Sn(this).toReversed()},toSorted(e){return Sn(this).toSorted(e)},toSpliced(...e){return Sn(this).toSpliced(...e)},unshift(...e){return Zn(this,"unshift",e)},values(){return Xs(this,"values",Re)}};function Xs(e,t,n){const r=Fr(e),s=r[t]();return r!==e&&!Xe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const vf=Array.prototype;function St(e,t,n,r,s,i){const o=Fr(e),a=o!==e&&!Xe(e),l=o[t];if(l!==vf[t]){const f=l.apply(e,i);return a?Re(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Re(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&&s?s(c):c}function ta(e,t,n,r){const s=Fr(e);let i=n;return s!==e&&(Xe(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,Re(a),l,e)}),s[t](i,...r)}function Js(e,t,n){const r=ee(e);Pe(r,"iterate",Gn);const s=r[t](...n);return(s===-1||s===!1)&&Qs(n[0])?(n[0]=ee(n[0]),r[t](...n)):s}function Zn(e,t,n=[]){kt(),Ks();const r=ee(e)[t].apply(e,n);return Vs(),vt(),r}const Tf=qt("__proto__,__v_isRef,__isVue"),na=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dt));function Sf(e){Dt(e)||(e=String(e));const t=ee(this);return Pe(t,"has",e),t.hasOwnProperty(e)}class ra{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?ca:la:i?aa:oa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=K(t);if(!s){let l;if(o&&(l=kf[n]))return l;if(n==="hasOwnProperty")return Sf}const a=Reflect.get(t,n,ye(t)?t:r);return(Dt(n)?na.has(n):Tf(n))||(s||Pe(t,"get",n),i)?a:ye(a)?o&&Fs(n)?a:a.value:_e(a)?s?ua(a):Hr(a):a}}class sa extends ra{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=en(i);if(!Xe(r)&&!en(r)&&(i=ee(i),r=ee(r)),!K(t)&&ye(i)&&!ye(r))return l?!1:(i.value=r,!0)}const o=K(t)&&Fs(n)?Number(n)<t.length:ie(t,n),a=Reflect.set(t,n,r,ye(t)?t:s);return t===ee(s)&&(o?Ft(r,i)&&Tt(t,"set",n,r):Tt(t,"add",n,r)),a}deleteProperty(t,n){const r=ie(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Tt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Dt(n)||!na.has(n))&&Pe(t,"has",n),r}ownKeys(t){return Pe(t,"iterate",K(t)?"length":Qt),Reflect.ownKeys(t)}}class ia extends ra{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const If=new sa,Ef=new ia,xf=new sa(!0),Of=new ia(!0),qs=e=>e,jr=e=>Reflect.getPrototypeOf(e);function Cf(e,t,n){return function(...r){const s=this.__v_raw,i=ee(s),o=Tn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?qs:t?ti:Re;return!t&&Pe(i,"iterate",l?Ys:Qt),{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 Ur(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Af(e,t){const n={get(s){const i=this.__v_raw,o=ee(i),a=ee(s);e||(Ft(s,a)&&Pe(o,"get",s),Pe(o,"get",a));const{has:l}=jr(o),u=t?qs:e?ti:Re;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Pe(ee(s),"iterate",Qt),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=ee(i),a=ee(s);return e||(Ft(s,a)&&Pe(o,"has",s),Pe(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=ee(a),u=t?qs:e?ti:Re;return!e&&Pe(l,"iterate",Qt),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Le(n,e?{add:Ur("add"),set:Ur("set"),delete:Ur("delete"),clear:Ur("clear")}:{add(s){!t&&!Xe(s)&&!en(s)&&(s=ee(s));const i=ee(this);return jr(i).has.call(i,s)||(i.add(s),Tt(i,"add",s,s)),this},set(s,i){!t&&!Xe(i)&&!en(i)&&(i=ee(i));const o=ee(this),{has:a,get:l}=jr(o);let u=a.call(o,s);u||(s=ee(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Ft(i,c)&&Tt(o,"set",s,i):Tt(o,"add",s,i),this},delete(s){const i=ee(this),{has:o,get:a}=jr(i);let l=o.call(i,s);l||(s=ee(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&Tt(i,"delete",s,void 0),u},clear(){const s=ee(this),i=s.size!==0,o=s.clear();return i&&Tt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Cf(s,e,t)}),n}function Wr(e,t){const n=Af(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ie(n,s)&&s in r?n:r,s,i)}const Lf={get:Wr(!1,!1)},Pf={get:Wr(!1,!0)},Rf={get:Wr(!0,!1)},Nf={get:Wr(!0,!0)},oa=new WeakMap,aa=new WeakMap,la=new WeakMap,ca=new WeakMap;function $f(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Df(e){return e.__v_skip||!Object.isExtensible(e)?0:$f(cf(e))}function Hr(e){return en(e)?e:zr(e,!1,If,Lf,oa)}function Mf(e){return zr(e,!1,xf,Pf,aa)}function ua(e){return zr(e,!0,Ef,Rf,la)}function xv(e){return zr(e,!0,Of,Nf,ca)}function zr(e,t,n,r,s){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Df(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function jt(e){return en(e)?jt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Xe(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 ei(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&jo(e,"__v_skip",!0),e}const Re=e=>_e(e)?Hr(e):e,ti=e=>_e(e)?ua(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function te(e){return fa(e,!1)}function Ff(e){return fa(e,!0)}function fa(e,t){return ye(e)?e:new jf(e,t)}class jf{constructor(t,n){this.dep=new Zs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ee(t),this._value=n?t:Re(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Xe(t)||en(t);t=r?t:ee(t),Ft(t,n)&&(this._rawValue=t,this._value=r?t:Re(t),this.dep.trigger())}}function H(e){return ye(e)?e.value:e}const Uf={get:(e,t,n)=>t==="__v_raw"?e:H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ye(s)&&!ye(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function da(e){return jt(e)?e:new Proxy(e,Uf)}function Wf(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=zf(e,n);return t}class Hf{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 wf(ee(this._object),this._key)}}function zf(e,t,n){const r=e[t];return ye(r)?r:new Hf(e,t,n)}class Kf{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Zs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&de!==this)return Zo(this,!0),!0}get value(){const t=this.dep.track();return Jo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vf(e,t,n=!1){let r,s;return V(e)?r=e:(r=e.get,s=e.set),new Kf(r,s,n)}const Kr={},Vr=new WeakMap;let tn;function Bf(e,t=!1,n=tn){if(n){let r=Vr.get(n);r||Vr.set(n,r=[]),r.push(e)}}function Gf(e,t,n=re){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=g=>s?g:Xe(g)||s===!1||s===0?It(g,1):It(g);let c,f,d,m,k=!1,w=!1;if(ye(e)?(f=()=>e.value,k=Xe(e)):jt(e)?(f=()=>u(e),k=!0):K(e)?(w=!0,k=e.some(g=>jt(g)||Xe(g)),f=()=>e.map(g=>{if(ye(g))return g.value;if(jt(g))return u(g);if(V(g))return l?l(g,2):g()})):V(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){kt();try{d()}finally{vt()}}const g=tn;tn=c;try{return l?l(e,3,[m]):e(m)}finally{tn=g}}:f=at,t&&s){const g=f,O=s===!0?1/0:s;f=()=>It(g(),O)}const E=Vo(),_=()=>{c.stop(),E&&E.active&&Ms(E.effects,c)};if(i&&t){const g=t;t=(...O)=>{g(...O),_()}}let y=w?new Array(e.length).fill(Kr):Kr;const I=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const O=c.run();if(s||k||(w?O.some((D,L)=>Ft(D,y[L])):Ft(O,y))){d&&d();const D=tn;tn=c;try{const L=[O,y===Kr?void 0:w&&y[0]===Kr?[]:y,m];l?l(t,3,L):t(...L),y=O}finally{tn=D}}}else c.run()};return a&&a(I),c=new Bo(f),c.scheduler=o?()=>o(I,!1):I,m=g=>Bf(g,!1,c),d=c.onStop=()=>{const g=Vr.get(c);if(g){if(l)l(g,4);else for(const O of g)O();Vr.delete(c)}},t?r?I(!0):y=c.run():o?o(I.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function It(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ye(e))It(e.value,t,n);else if(K(e))for(let r=0;r<e.length;r++)It(e[r],t,n);else if($o(e)||Tn(e))e.forEach(r=>{It(r,t,n)});else if(Fo(e)){for(const r in e)It(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&It(e[r],t,n)}return e}/**
9
+ **/let De;class Vo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=De,!t&&De&&(this.index=(De.scopes||(De.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=De;try{return De=this,t()}finally{De=n}}}on(){De=this}off(){De=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Hs(e){return new Vo(e)}function Bo(){return De}function bf(e,t=!1){De&&De.cleanups.push(e)}let de;const zs=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,De&&De.active&&De.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zs.has(this)&&(zs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ea(this),Xo(this);const t=de,n=nt;de=this,nt=!0;try{return this.fn()}finally{Jo(this),de=t,nt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Gs(t);this.deps=this.depsTail=void 0,ea(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?zs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bs(this)&&this.run()}get dirty(){return Bs(this)}}let Zo=0,Kn,Vn;function Yo(e,t=!1){if(e.flags|=8,t){e.next=Vn,Vn=e;return}e.next=Kn,Kn=e}function Ks(){Zo++}function Vs(){if(--Zo>0)return;if(Vn){let t=Vn;for(Vn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Kn;){let t=Kn;for(Kn=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 Xo(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){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Gs(r),yf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Bs(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===Bn))return;e.globalVersion=Bn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Bs(e)){e.flags&=-3;return}const n=de,r=nt;de=e,nt=!0;try{Xo(e);const s=e.fn(e._value);(t.version===0||Ft(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{de=n,nt=r,Jo(e),e.flags&=-3}}function Gs(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Gs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function yf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nt=!0;const Qo=[];function kt(){Qo.push(nt),nt=!1}function vt(){const e=Qo.pop();nt=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 Bn=0;class wf{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 Zs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!de||!nt||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new wf(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,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++,Bn++,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 ta(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ta(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Mr=new WeakMap,Qt=Symbol(""),Ys=Symbol(""),Gn=Symbol("");function Pe(e,t,n){if(nt&&de){let r=Mr.get(e);r||Mr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Zs),s.map=r,s.key=n),s.track()}}function Tt(e,t,n,r,s,i){const o=Mr.get(e);if(!o){Bn++;return}const a=l=>{l&&l.trigger()};if(Ks(),t==="clear")o.forEach(a);else{const l=K(e),u=l&&Fs(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Gn||!Dt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Gn)),t){case"add":l?u&&a(o.get("length")):(a(o.get(Qt)),Tn(e)&&a(o.get(Ys)));break;case"delete":l||(a(o.get(Qt)),Tn(e)&&a(o.get(Ys)));break;case"set":Tn(e)&&a(o.get(Qt));break}}Vs()}function kf(e,t){const n=Mr.get(e);return n&&n.get(t)}function Sn(e){const t=ee(e);return t===e?t:(Pe(t,"iterate",Gn),Xe(e)?t:t.map(Re))}function Fr(e){return Pe(e=ee(e),"iterate",Gn),e}const vf={__proto__:null,[Symbol.iterator](){return Xs(this,Symbol.iterator,Re)},concat(...e){return Sn(this).concat(...e.map(t=>K(t)?Sn(t):t))},entries(){return Xs(this,"entries",e=>(e[1]=Re(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(Re),arguments)},find(e,t){return St(this,"find",e,t,Re,arguments)},findIndex(e,t){return St(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return St(this,"findLast",e,t,Re,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 Js(this,"includes",e)},indexOf(...e){return Js(this,"indexOf",e)},join(e){return Sn(this).join(e)},lastIndexOf(...e){return Js(this,"lastIndexOf",e)},map(e,t){return St(this,"map",e,t,void 0,arguments)},pop(){return Zn(this,"pop")},push(...e){return Zn(this,"push",e)},reduce(e,...t){return na(this,"reduce",e,t)},reduceRight(e,...t){return na(this,"reduceRight",e,t)},shift(){return Zn(this,"shift")},some(e,t){return St(this,"some",e,t,void 0,arguments)},splice(...e){return Zn(this,"splice",e)},toReversed(){return Sn(this).toReversed()},toSorted(e){return Sn(this).toSorted(e)},toSpliced(...e){return Sn(this).toSpliced(...e)},unshift(...e){return Zn(this,"unshift",e)},values(){return Xs(this,"values",Re)}};function Xs(e,t,n){const r=Fr(e),s=r[t]();return r!==e&&!Xe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const Tf=Array.prototype;function St(e,t,n,r,s,i){const o=Fr(e),a=o!==e&&!Xe(e),l=o[t];if(l!==Tf[t]){const f=l.apply(e,i);return a?Re(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Re(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&&s?s(c):c}function na(e,t,n,r){const s=Fr(e);let i=n;return s!==e&&(Xe(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,Re(a),l,e)}),s[t](i,...r)}function Js(e,t,n){const r=ee(e);Pe(r,"iterate",Gn);const s=r[t](...n);return(s===-1||s===!1)&&Qs(n[0])?(n[0]=ee(n[0]),r[t](...n)):s}function Zn(e,t,n=[]){kt(),Ks();const r=ee(e)[t].apply(e,n);return Vs(),vt(),r}const Sf=qt("__proto__,__v_isRef,__isVue"),ra=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dt));function If(e){Dt(e)||(e=String(e));const t=ee(this);return Pe(t,"has",e),t.hasOwnProperty(e)}class sa{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?ua:ca:i?la:aa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=K(t);if(!s){let l;if(o&&(l=vf[n]))return l;if(n==="hasOwnProperty")return If}const a=Reflect.get(t,n,ye(t)?t:r);return(Dt(n)?ra.has(n):Sf(n))||(s||Pe(t,"get",n),i)?a:ye(a)?o&&Fs(n)?a:a.value:_e(a)?s?fa(a):Hr(a):a}}class ia extends sa{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=en(i);if(!Xe(r)&&!en(r)&&(i=ee(i),r=ee(r)),!K(t)&&ye(i)&&!ye(r))return l?!1:(i.value=r,!0)}const o=K(t)&&Fs(n)?Number(n)<t.length:ie(t,n),a=Reflect.set(t,n,r,ye(t)?t:s);return t===ee(s)&&(o?Ft(r,i)&&Tt(t,"set",n,r):Tt(t,"add",n,r)),a}deleteProperty(t,n){const r=ie(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Tt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Dt(n)||!ra.has(n))&&Pe(t,"has",n),r}ownKeys(t){return Pe(t,"iterate",K(t)?"length":Qt),Reflect.ownKeys(t)}}class oa extends sa{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ef=new ia,xf=new oa,Of=new ia(!0),Cf=new oa(!0),qs=e=>e,jr=e=>Reflect.getPrototypeOf(e);function Af(e,t,n){return function(...r){const s=this.__v_raw,i=ee(s),o=Tn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?qs:t?ti:Re;return!t&&Pe(i,"iterate",l?Ys:Qt),{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 Ur(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Lf(e,t){const n={get(s){const i=this.__v_raw,o=ee(i),a=ee(s);e||(Ft(s,a)&&Pe(o,"get",s),Pe(o,"get",a));const{has:l}=jr(o),u=t?qs:e?ti:Re;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Pe(ee(s),"iterate",Qt),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=ee(i),a=ee(s);return e||(Ft(s,a)&&Pe(o,"has",s),Pe(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=ee(a),u=t?qs:e?ti:Re;return!e&&Pe(l,"iterate",Qt),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Le(n,e?{add:Ur("add"),set:Ur("set"),delete:Ur("delete"),clear:Ur("clear")}:{add(s){!t&&!Xe(s)&&!en(s)&&(s=ee(s));const i=ee(this);return jr(i).has.call(i,s)||(i.add(s),Tt(i,"add",s,s)),this},set(s,i){!t&&!Xe(i)&&!en(i)&&(i=ee(i));const o=ee(this),{has:a,get:l}=jr(o);let u=a.call(o,s);u||(s=ee(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Ft(i,c)&&Tt(o,"set",s,i):Tt(o,"add",s,i),this},delete(s){const i=ee(this),{has:o,get:a}=jr(i);let l=o.call(i,s);l||(s=ee(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&Tt(i,"delete",s,void 0),u},clear(){const s=ee(this),i=s.size!==0,o=s.clear();return i&&Tt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Af(s,e,t)}),n}function Wr(e,t){const n=Lf(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ie(n,s)&&s in r?n:r,s,i)}const Pf={get:Wr(!1,!1)},Rf={get:Wr(!1,!0)},Nf={get:Wr(!0,!1)},$f={get:Wr(!0,!0)},aa=new WeakMap,la=new WeakMap,ca=new WeakMap,ua=new WeakMap;function Df(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mf(e){return e.__v_skip||!Object.isExtensible(e)?0:Df(uf(e))}function Hr(e){return en(e)?e:zr(e,!1,Ef,Pf,aa)}function Ff(e){return zr(e,!1,Of,Rf,la)}function fa(e){return zr(e,!0,xf,Nf,ca)}function xv(e){return zr(e,!0,Cf,$f,ua)}function zr(e,t,n,r,s){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Mf(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function jt(e){return en(e)?jt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Xe(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 ei(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&Uo(e,"__v_skip",!0),e}const Re=e=>_e(e)?Hr(e):e,ti=e=>_e(e)?fa(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function te(e){return da(e,!1)}function jf(e){return da(e,!0)}function da(e,t){return ye(e)?e:new Uf(e,t)}class Uf{constructor(t,n){this.dep=new Zs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ee(t),this._value=n?t:Re(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Xe(t)||en(t);t=r?t:ee(t),Ft(t,n)&&(this._rawValue=t,this._value=r?t:Re(t),this.dep.trigger())}}function H(e){return ye(e)?e.value:e}const Wf={get:(e,t,n)=>t==="__v_raw"?e:H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ye(s)&&!ye(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ha(e){return jt(e)?e:new Proxy(e,Wf)}function Hf(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=Kf(e,n);return t}class zf{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 kf(ee(this._object),this._key)}}function Kf(e,t,n){const r=e[t];return ye(r)?r:new zf(e,t,n)}class Vf{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Zs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&de!==this)return Yo(this,!0),!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 Bf(e,t,n=!1){let r,s;return V(e)?r=e:(r=e.get,s=e.set),new Vf(r,s,n)}const Kr={},Vr=new WeakMap;let tn;function Gf(e,t=!1,n=tn){if(n){let r=Vr.get(n);r||Vr.set(n,r=[]),r.push(e)}}function Zf(e,t,n=re){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=g=>s?g:Xe(g)||s===!1||s===0?It(g,1):It(g);let c,f,d,m,k=!1,w=!1;if(ye(e)?(f=()=>e.value,k=Xe(e)):jt(e)?(f=()=>u(e),k=!0):K(e)?(w=!0,k=e.some(g=>jt(g)||Xe(g)),f=()=>e.map(g=>{if(ye(g))return g.value;if(jt(g))return u(g);if(V(g))return l?l(g,2):g()})):V(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){kt();try{d()}finally{vt()}}const g=tn;tn=c;try{return l?l(e,3,[m]):e(m)}finally{tn=g}}:f=at,t&&s){const g=f,O=s===!0?1/0:s;f=()=>It(g(),O)}const E=Bo(),_=()=>{c.stop(),E&&E.active&&Ms(E.effects,c)};if(i&&t){const g=t;t=(...O)=>{g(...O),_()}}let y=w?new Array(e.length).fill(Kr):Kr;const T=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const O=c.run();if(s||k||(w?O.some((D,L)=>Ft(D,y[L])):Ft(O,y))){d&&d();const D=tn;tn=c;try{const L=[O,y===Kr?void 0:w&&y[0]===Kr?[]:y,m];l?l(t,3,L):t(...L),y=O}finally{tn=D}}}else c.run()};return a&&a(T),c=new Go(f),c.scheduler=o?()=>o(T,!1):T,m=g=>Gf(g,!1,c),d=c.onStop=()=>{const g=Vr.get(c);if(g){if(l)l(g,4);else for(const O of g)O();Vr.delete(c)}},t?r?T(!0):y=c.run():o?o(T.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function It(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ye(e))It(e.value,t,n);else if(K(e))for(let r=0;r<e.length;r++)It(e[r],t,n);else if(Do(e)||Tn(e))e.forEach(r=>{It(r,t,n)});else if(jo(e)){for(const r in e)It(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&It(e[r],t,n)}return e}/**
10
10
  * @vue/runtime-core v3.5.13
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/const Yn=[];let ni=!1;function Ov(e,...t){if(ni)return;ni=!0,kt();const n=Yn.length?Yn[Yn.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=Zf();if(r)In(r,n,11,[e+t.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${al(n,i.type)}>`).join(`
13
+ **/const Yn=[];let ni=!1;function Ov(e,...t){if(ni)return;ni=!0,kt();const n=Yn.length?Yn[Yn.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=Yf();if(r)In(r,n,11,[e+t.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${ll(n,i.type)}>`).join(`
14
14
  `),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
15
- `,...Yf(s)),console.warn(...i)}vt(),ni=!1}function Zf(){let e=Yn[Yn.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 Yf(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
16
- `],...Xf(n))}),t}function Xf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${al(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...Jf(e.props),i]:[s+i]}function Jf(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...ha(r,e[r]))}),n.length>3&&t.push(" ..."),t}function ha(e,t,n){return we(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ye(t)?(t=ha(e,ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),n?t:[`${e}=`,t])}function In(e,t,n,r){try{return r?e(...r):e()}catch(s){Br(s,t,n)}}function lt(e,t,n,r){if(V(e)){const s=In(e,t,n,r);return s&&Do(s)&&s.catch(i=>{Br(i,t,n)}),s}if(K(e)){const s=[];for(let i=0;i<e.length;i++)s.push(lt(e[i],t,n,r));return s}}function Br(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||re;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(i){kt(),In(i,null,10,[e,l,u]),vt();return}}qf(e,n,s,r,o)}function qf(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Me=[];let ct=-1;const En=[];let Ut=null,xn=0;const pa=Promise.resolve();let Gr=null;function ma(e){const t=Gr||pa;return e?t.then(this?e.bind(this):e):t}function Qf(e){let t=ct+1,n=Me.length;for(;t<n;){const r=t+n>>>1,s=Me[r],i=Xn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function ri(e){if(!(e.flags&1)){const t=Xn(e),n=Me[Me.length-1];!n||!(e.flags&2)&&t>=Xn(n)?Me.push(e):Me.splice(Qf(t),0,e),e.flags|=1,ga()}}function ga(){Gr||(Gr=pa.then(ya))}function ed(e){K(e)?En.push(...e):Ut&&e.id===-1?Ut.splice(xn+1,0,e):e.flags&1||(En.push(e),e.flags|=1),ga()}function _a(e,t,n=ct+1){for(;n<Me.length;n++){const r=Me[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Me.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ba(e){if(En.length){const t=[...new Set(En)].sort((n,r)=>Xn(n)-Xn(r));if(En.length=0,Ut){Ut.push(...t);return}for(Ut=t,xn=0;xn<Ut.length;xn++){const n=Ut[xn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ut=null,xn=0}}const Xn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ya(e){try{for(ct=0;ct<Me.length;ct++){const t=Me[ct];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),In(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ct<Me.length;ct++){const t=Me[ct];t&&(t.flags&=-2)}ct=-1,Me.length=0,ba(),Gr=null,(Me.length||En.length)&&ya()}}let Fe=null,wa=null;function Zr(e){const t=Fe;return Fe=e,wa=e&&e.type.__scopeId||null,t}function td(e,t=Fe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Qa(-1);const i=Zr(t);let o;try{o=e(...s)}finally{Zr(i),r._d&&Qa(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function nd(e,t){if(Fe===null)return e;const n=ns(Fe),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=re]=t[s];i&&(V(i)&&(i={mounted:i,updated:i}),i.deep&&It(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function nn(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(kt(),lt(l,n,8,[e.el,a,e,t]),vt())}}const rd=Symbol("_vte"),sd=e=>e.__isTeleport;function si(e,t){e.shapeFlag&6&&e.component?(e.transition=t,si(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 ut(e,t){return V(e)?Le({name:e.name},t,{setup:e}):e}function ka(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yr(e,t,n,r,s=!1){if(K(e)){e.forEach((k,w)=>Yr(k,t&&(K(t)?t[w]:t),n,r,s));return}if(Jn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Yr(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?ns(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===re?a.refs={}:a.refs,f=a.setupState,d=ee(f),m=f===re?()=>!1:k=>ie(d,k);if(u!=null&&u!==l&&(we(u)?(c[u]=null,m(u)&&(f[u]=null)):ye(u)&&(u.value=null)),V(l))In(l,a,12,[o,c]);else{const k=we(l),w=ye(l);if(k||w){const E=()=>{if(e.f){const _=k?m(l)?f[l]:c[l]:l.value;s?K(_)&&Ms(_,i):K(_)?_.includes(i)||_.push(i):k?(c[l]=[i],m(l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else k?(c[l]=o,m(l)&&(f[l]=o)):w&&(l.value=o,e.k&&(c[e.k]=o))};o?(E.id=-1,Ve(E,n)):E()}}}$r().requestIdleCallback,$r().cancelIdleCallback;const Jn=e=>!!e.type.__asyncLoader,va=e=>e.type.__isKeepAlive;function id(e,t){Ta(e,"a",t)}function od(e,t){Ta(e,"da",t)}function Ta(e,t,n=xe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Xr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)va(s.parent.vnode)&&ad(r,t,n,s),s=s.parent}}function ad(e,t,n,r){const s=Xr(t,e,r,!0);ii(()=>{Ms(r[t],s)},n)}function Xr(e,t,n=xe,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{kt();const a=or(n),l=lt(t,n,e,o);return a(),vt(),l});return r?s.unshift(i):s.push(i),i}}const Et=e=>(t,n=xe)=>{(!ar||e==="sp")&&Xr(e,(...r)=>t(...r),n)},ld=Et("bm"),qn=Et("m"),cd=Et("bu"),ud=Et("u"),Sa=Et("bum"),ii=Et("um"),fd=Et("sp"),dd=Et("rtg"),hd=Et("rtc");function pd(e,t=xe){Xr("ec",e,t)}const md="components";function gd(e,t){return bd(md,e,!0,t)||e}const _d=Symbol.for("v-ndc");function bd(e,t,n=!0,r=!1){const s=Fe||xe;if(s){const i=s.type;{const a=ol(i,!1);if(a&&(a===t||a===Ye(t)||a===Rr(Ye(t))))return i}const o=Ia(s[e]||i[e],t)||Ia(s.appContext[e],t);return!o&&r?i:o}}function Ia(e,t){return e&&(e[t]||e[Ye(t)]||e[Rr(Ye(t))])}function Ea(e,t,n,r){let s;const i=n,o=K(e);if(o||we(e)){const a=o&&jt(e);let l=!1;a&&(l=!Xe(e),e=Fr(e)),s=new Array(e.length);for(let u=0,c=e.length;u<c;u++)s[u]=t(l?Re(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(_e(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}const oi=e=>e?rl(e)?ns(e):oi(e.parent):null,Qn=Le(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=>oi(e.parent),$root:e=>oi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Aa(e),$forceUpdate:e=>e.f||(e.f=()=>{ri(e.update)}),$nextTick:e=>e.n||(e.n=ma.bind(e.proxy)),$watch:e=>Wd.bind(e)}),ai=(e,t)=>e!==re&&!e.__isScriptSetup&&ie(e,t),yd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,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 s[t];case 4:return n[t];case 3:return i[t]}else{if(ai(r,t))return o[t]=1,r[t];if(s!==re&&ie(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&ie(u,t))return o[t]=3,i[t];if(n!==re&&ie(n,t))return o[t]=4,n[t];li&&(o[t]=0)}}const c=Qn[t];let f,d;if(c)return t==="$attrs"&&Pe(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==re&&ie(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,ie(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ai(s,t)?(s[t]=n,!0):r!==re&&ie(r,t)?(r[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==re&&ie(e,o)||ai(t,o)||(a=i[0])&&ie(a,o)||ie(r,o)||ie(Qn,o)||ie(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xa(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let li=!0;function wd(e){const t=Aa(e),n=e.proxy,r=e.ctx;li=!1,t.beforeCreate&&Oa(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:m,updated:k,activated:w,deactivated:E,beforeDestroy:_,beforeUnmount:y,destroyed:I,unmounted:g,render:O,renderTracked:D,renderTriggered:L,errorCaptured:M,serverPrefetch:U,expose:Z,inheritAttrs:q,components:Q,directives:Ce,filters:it}=t;if(u&&kd(u,r,null),o)for(const G in o){const oe=o[G];V(oe)&&(r[G]=oe.bind(n))}if(s){const G=s.call(n,n);_e(G)&&(e.data=Hr(G))}if(li=!0,i)for(const G in i){const oe=i[G],Ae=V(oe)?oe.bind(n,n):V(oe.get)?oe.get.bind(n,n):at,Rt=!V(oe)&&V(oe.set)?oe.set.bind(n):at,et=rt({get:Ae,set:Rt});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>et.value,set:Ke=>et.value=Ke})}if(a)for(const G in a)Ca(a[G],r,n,G);if(l){const G=V(l)?l.call(n):l;Reflect.ownKeys(G).forEach(oe=>{xd(oe,G[oe])})}c&&Oa(c,e,"c");function ge(G,oe){K(oe)?oe.forEach(Ae=>G(Ae.bind(n))):oe&&G(oe.bind(n))}if(ge(ld,f),ge(qn,d),ge(cd,m),ge(ud,k),ge(id,w),ge(od,E),ge(pd,M),ge(hd,D),ge(dd,L),ge(Sa,y),ge(ii,g),ge(fd,U),K(Z))if(Z.length){const G=e.exposed||(e.exposed={});Z.forEach(oe=>{Object.defineProperty(G,oe,{get:()=>n[oe],set:Ae=>n[oe]=Ae})})}else e.exposed||(e.exposed={});O&&e.render===at&&(e.render=O),q!=null&&(e.inheritAttrs=q),Q&&(e.components=Q),Ce&&(e.directives=Ce),U&&ka(e)}function kd(e,t,n=at){K(e)&&(e=ci(e));for(const r in e){const s=e[r];let i;_e(s)?"default"in s?i=Ue(s.from||r,s.default,!0):i=Ue(s.from||r):i=Ue(s),ye(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Oa(e,t,n){lt(K(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ca(e,t,n,r){let s=r.includes(".")?Za(n,r):()=>n[r];if(we(e)){const i=t[e];V(i)&&ft(s,i)}else if(V(e))ft(s,e.bind(n));else if(_e(e))if(K(e))e.forEach(i=>Ca(i,t,n,r));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&ft(s,i,e)}}function Aa(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Jr(l,u,o,!0)),Jr(l,t,o)),_e(t)&&i.set(t,l),l}function Jr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Jr(e,i,n,!0),s&&s.forEach(o=>Jr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=vd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const vd={data:La,props:Pa,emits:Pa,methods:er,computed:er,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:er,directives:er,watch:Sd,provide:La,inject:Td};function La(e,t){return t?e?function(){return Le(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Td(e,t){return er(ci(e),ci(t))}function ci(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function er(e,t){return e?Le(Object.create(null),e,t):t}function Pa(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Le(Object.create(null),xa(e),xa(t??{})):t}function Sd(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const r in t)n[r]=je(e[r],t[r]);return n}function Ra(){return{app:null,config:{isNativeTag:af,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 Id=0;function Ed(e,t){return function(r,s=null){V(r)||(r=Le({},r)),s!=null&&!_e(s)&&(s=null);const i=Ra(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:Id++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:ch,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&V(c.install)?(o.add(c),c.install(u,...f)):V(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,d){if(!l){const m=u._ceVNode||ke(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(m,c,d),l=!0,u._container=c,c.__vue_app__=u,ns(m.component)}},onUnmount(c){a.push(c)},unmount(){l&&(lt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=rn;rn=u;try{return c()}finally{rn=f}}};return u}}let rn=null;function xd(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 Ue(e,t,n=!1){const r=xe||Fe;if(r||rn){const s=rn?rn._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&V(t)?t.call(r&&r.proxy):t}}function Od(){return!!(xe||Fe||rn)}const Na={},$a=()=>Object.create(Na),Da=e=>Object.getPrototypeOf(e)===Na;function Cd(e,t,n,r=!1){const s={},i=$a();e.propsDefaults=Object.create(null),Ma(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Mf(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Ad(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ee(s),[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(qr(e.emitsOptions,d))continue;const m=t[d];if(l)if(ie(i,d))m!==i[d]&&(i[d]=m,u=!0);else{const k=Ye(d);s[k]=ui(l,a,k,m,e,!1)}else m!==i[d]&&(i[d]=m,u=!0)}}}else{Ma(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!ie(t,f)&&((c=Mt(f))===f||!ie(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=ui(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!ie(t,f))&&(delete i[f],u=!0)}u&&Tt(e.attrs,"set","")}function Ma(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Hn(l))continue;const u=t[l];let c;s&&ie(s,c=Ye(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:qr(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=ee(n),u=a||re;for(let c=0;c<i.length;c++){const f=i[c];n[f]=ui(s,l,f,u[f],e,!ie(u,f))}}return o}function ui(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=ie(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&V(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=or(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===Mt(n))&&(r=!0))}return r}const Ld=new WeakMap;function Fa(e,t,n=!1){const r=n?Ld:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!V(e)){const c=f=>{l=!0;const[d,m]=Fa(f,t,!0);Le(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(!i&&!l)return _e(e)&&r.set(e,vn),vn;if(K(i))for(let c=0;c<i.length;c++){const f=Ye(i[c]);ja(f)&&(o[f]=re)}else if(i)for(const c in i){const f=Ye(c);if(ja(f)){const d=i[c],m=o[f]=K(d)||V(d)?{type:d}:Le({},d),k=m.type;let w=!1,E=!0;if(K(k))for(let _=0;_<k.length;++_){const y=k[_],I=V(y)&&y.name;if(I==="Boolean"){w=!0;break}else I==="String"&&(E=!1)}else w=V(k)&&k.name==="Boolean";m[0]=w,m[1]=E,(w||ie(m,"default"))&&a.push(f)}}const u=[o,a];return _e(e)&&r.set(e,u),u}function ja(e){return e[0]!=="$"&&!Hn(e)}const Ua=e=>e[0]==="_"||e==="$stable",fi=e=>K(e)?e.map(dt):[dt(e)],Pd=(e,t,n)=>{if(t._n)return t;const r=td((...s)=>fi(t(...s)),n);return r._c=!1,r},Wa=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ua(s))continue;const i=e[s];if(V(i))t[s]=Pd(s,i,r);else if(i!=null){const o=fi(i);t[s]=()=>o}}},Ha=(e,t)=>{const n=fi(t);e.slots.default=()=>n},za=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Rd=(e,t,n)=>{const r=e.slots=$a();if(e.vnode.shapeFlag&32){const s=t._;s?(za(r,t,n),n&&jo(r,"_",s,!0)):Wa(t,r)}else t&&Ha(e,t)},Nd=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=re;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:za(s,t,n):(i=!t.$stable,Wa(t,s)),o=t}else t&&(Ha(e,t),o={default:1});if(i)for(const a in s)!Ua(a)&&o[a]==null&&delete s[a]},Ve=Zd;function $d(e){return Dd(e)}function Dd(e,t){const n=$r();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:m=at,insertStaticContent:k}=e,w=(b,v,A,N=null,R=null,$=null,h=void 0,p=null,T=!!v.dynamicChildren)=>{if(b===v)return;b&&!sr(b,v)&&(N=Xt(b),Ke(b,R,$,!0),b=null),v.patchFlag===-2&&(T=!1,v.dynamicChildren=null);const{type:x,ref:F,shapeFlag:P}=v;switch(x){case tr:E(b,v,A,N);break;case on:_(b,v,A,N);break;case hi:b==null&&y(v,A,N,h);break;case Ee:Q(b,v,A,N,R,$,h,p,T);break;default:P&1?O(b,v,A,N,R,$,h,p,T):P&6?Ce(b,v,A,N,R,$,h,p,T):(P&64||P&128)&&x.process(b,v,A,N,R,$,h,p,T,$t)}F!=null&&R&&Yr(F,b&&b.ref,$,v||b,!v)},E=(b,v,A,N)=>{if(b==null)r(v.el=a(v.children),A,N);else{const R=v.el=b.el;v.children!==b.children&&u(R,v.children)}},_=(b,v,A,N)=>{b==null?r(v.el=l(v.children||""),A,N):v.el=b.el},y=(b,v,A,N)=>{[b.el,b.anchor]=k(b.children,v,A,N,b.el,b.anchor)},I=({el:b,anchor:v},A,N)=>{let R;for(;b&&b!==v;)R=d(b),r(b,A,N),b=R;r(v,A,N)},g=({el:b,anchor:v})=>{let A;for(;b&&b!==v;)A=d(b),s(b),b=A;s(v)},O=(b,v,A,N,R,$,h,p,T)=>{v.type==="svg"?h="svg":v.type==="math"&&(h="mathml"),b==null?D(v,A,N,R,$,h,p,T):U(b,v,R,$,h,p,T)},D=(b,v,A,N,R,$,h,p)=>{let T,x;const{props:F,shapeFlag:P,transition:S,dirs:C}=b;if(T=b.el=o(b.type,$,F&&F.is,F),P&8?c(T,b.children):P&16&&M(b.children,T,null,N,R,di(b,$),h,p),C&&nn(b,null,N,"created"),L(T,b,b.scopeId,h,N),F){for(const z in F)z!=="value"&&!Hn(z)&&i(T,z,null,F[z],$,N);"value"in F&&i(T,"value",null,F.value,$),(x=F.onVnodeBeforeMount)&&ht(x,N,b)}C&&nn(b,null,N,"beforeMount");const W=Md(R,S);W&&S.beforeEnter(T),r(T,v,A),((x=F&&F.onVnodeMounted)||W||C)&&Ve(()=>{x&&ht(x,N,b),W&&S.enter(T),C&&nn(b,null,N,"mounted")},R)},L=(b,v,A,N,R)=>{if(A&&m(b,A),N)for(let $=0;$<N.length;$++)m(b,N[$]);if(R){let $=R.subTree;if(v===$||qa($.type)&&($.ssContent===v||$.ssFallback===v)){const h=R.vnode;L(b,h,h.scopeId,h.slotScopeIds,R.parent)}}},M=(b,v,A,N,R,$,h,p,T=0)=>{for(let x=T;x<b.length;x++){const F=b[x]=p?Ht(b[x]):dt(b[x]);w(null,F,v,A,N,R,$,h,p)}},U=(b,v,A,N,R,$,h)=>{const p=v.el=b.el;let{patchFlag:T,dynamicChildren:x,dirs:F}=v;T|=b.patchFlag&16;const P=b.props||re,S=v.props||re;let C;if(A&&sn(A,!1),(C=S.onVnodeBeforeUpdate)&&ht(C,A,v,b),F&&nn(v,b,A,"beforeUpdate"),A&&sn(A,!0),(P.innerHTML&&S.innerHTML==null||P.textContent&&S.textContent==null)&&c(p,""),x?Z(b.dynamicChildren,x,p,A,N,di(v,R),$):h||oe(b,v,p,null,A,N,di(v,R),$,!1),T>0){if(T&16)q(p,P,S,A,R);else if(T&2&&P.class!==S.class&&i(p,"class",null,S.class,R),T&4&&i(p,"style",P.style,S.style,R),T&8){const W=v.dynamicProps;for(let z=0;z<W.length;z++){const X=W[z],Oe=P[X],ve=S[X];(ve!==Oe||X==="value")&&i(p,X,Oe,ve,R,A)}}T&1&&b.children!==v.children&&c(p,v.children)}else!h&&x==null&&q(p,P,S,A,R);((C=S.onVnodeUpdated)||F)&&Ve(()=>{C&&ht(C,A,v,b),F&&nn(v,b,A,"updated")},N)},Z=(b,v,A,N,R,$,h)=>{for(let p=0;p<v.length;p++){const T=b[p],x=v[p],F=T.el&&(T.type===Ee||!sr(T,x)||T.shapeFlag&70)?f(T.el):A;w(T,x,F,null,N,R,$,h,!0)}},q=(b,v,A,N,R)=>{if(v!==A){if(v!==re)for(const $ in v)!Hn($)&&!($ in A)&&i(b,$,v[$],null,R,N);for(const $ in A){if(Hn($))continue;const h=A[$],p=v[$];h!==p&&$!=="value"&&i(b,$,p,h,R,N)}"value"in A&&i(b,"value",v.value,A.value,R)}},Q=(b,v,A,N,R,$,h,p,T)=>{const x=v.el=b?b.el:a(""),F=v.anchor=b?b.anchor:a("");let{patchFlag:P,dynamicChildren:S,slotScopeIds:C}=v;C&&(p=p?p.concat(C):C),b==null?(r(x,A,N),r(F,A,N),M(v.children||[],A,F,R,$,h,p,T)):P>0&&P&64&&S&&b.dynamicChildren?(Z(b.dynamicChildren,S,A,R,$,h,p),(v.key!=null||R&&v===R.subTree)&&Ka(b,v,!0)):oe(b,v,A,F,R,$,h,p,T)},Ce=(b,v,A,N,R,$,h,p,T)=>{v.slotScopeIds=p,b==null?v.shapeFlag&512?R.ctx.activate(v,A,N,h,T):it(v,A,N,R,$,h,T):Yt(b,v,T)},it=(b,v,A,N,R,$,h)=>{const p=b.component=th(b,N,R);if(va(b)&&(p.ctx.renderer=$t),nh(p,!1,h),p.asyncDep){if(R&&R.registerDep(p,ge,h),!b.el){const T=p.subTree=ke(on);_(null,T,v,A)}}else ge(p,b,v,A,R,$,h)},Yt=(b,v,A)=>{const N=v.component=b.component;if(Bd(b,v,A))if(N.asyncDep&&!N.asyncResolved){G(N,v,A);return}else N.next=v,N.update();else v.el=b.el,N.vnode=v},ge=(b,v,A,N,R,$,h)=>{const p=()=>{if(b.isMounted){let{next:P,bu:S,u:C,parent:W,vnode:z}=b;{const ot=Va(b);if(ot){P&&(P.el=z.el,G(b,P,h)),ot.asyncDep.then(()=>{b.isUnmounted||p()});return}}let X=P,Oe;sn(b,!1),P?(P.el=z.el,G(b,P,h)):P=z,S&&Nr(S),(Oe=P.props&&P.props.onVnodeBeforeUpdate)&&ht(Oe,W,P,z),sn(b,!0);const ve=Xa(b),tt=b.subTree;b.subTree=ve,w(tt,ve,f(tt.el),Xt(tt),b,R,$),P.el=ve.el,X===null&&Gd(b,ve.el),C&&Ve(C,R),(Oe=P.props&&P.props.onVnodeUpdated)&&Ve(()=>ht(Oe,W,P,z),R)}else{let P;const{el:S,props:C}=v,{bm:W,m:z,parent:X,root:Oe,type:ve}=b,tt=Jn(v);sn(b,!1),W&&Nr(W),!tt&&(P=C&&C.onVnodeBeforeMount)&&ht(P,X,v),sn(b,!0);{Oe.ce&&Oe.ce._injectChildStyle(ve);const ot=b.subTree=Xa(b);w(null,ot,A,N,b,R,$),v.el=ot.el}if(z&&Ve(z,R),!tt&&(P=C&&C.onVnodeMounted)){const ot=v;Ve(()=>ht(P,X,ot),R)}(v.shapeFlag&256||X&&Jn(X.vnode)&&X.vnode.shapeFlag&256)&&b.a&&Ve(b.a,R),b.isMounted=!0,v=A=N=null}};b.scope.on();const T=b.effect=new Bo(p);b.scope.off();const x=b.update=T.run.bind(T),F=b.job=T.runIfDirty.bind(T);F.i=b,F.id=b.uid,T.scheduler=()=>ri(F),sn(b,!0),x()},G=(b,v,A)=>{v.component=b;const N=b.vnode.props;b.vnode=v,b.next=null,Ad(b,v.props,N,A),Nd(b,v.children,A),kt(),_a(b),vt()},oe=(b,v,A,N,R,$,h,p,T=!1)=>{const x=b&&b.children,F=b?b.shapeFlag:0,P=v.children,{patchFlag:S,shapeFlag:C}=v;if(S>0){if(S&128){Rt(x,P,A,N,R,$,h,p,T);return}else if(S&256){Ae(x,P,A,N,R,$,h,p,T);return}}C&8?(F&16&&Nt(x,R,$),P!==x&&c(A,P)):F&16?C&16?Rt(x,P,A,N,R,$,h,p,T):Nt(x,R,$,!0):(F&8&&c(A,""),C&16&&M(P,A,N,R,$,h,p,T))},Ae=(b,v,A,N,R,$,h,p,T)=>{b=b||vn,v=v||vn;const x=b.length,F=v.length,P=Math.min(x,F);let S;for(S=0;S<P;S++){const C=v[S]=T?Ht(v[S]):dt(v[S]);w(b[S],C,A,null,R,$,h,p,T)}x>F?Nt(b,R,$,!0,!1,P):M(v,A,N,R,$,h,p,T,P)},Rt=(b,v,A,N,R,$,h,p,T)=>{let x=0;const F=v.length;let P=b.length-1,S=F-1;for(;x<=P&&x<=S;){const C=b[x],W=v[x]=T?Ht(v[x]):dt(v[x]);if(sr(C,W))w(C,W,A,null,R,$,h,p,T);else break;x++}for(;x<=P&&x<=S;){const C=b[P],W=v[S]=T?Ht(v[S]):dt(v[S]);if(sr(C,W))w(C,W,A,null,R,$,h,p,T);else break;P--,S--}if(x>P){if(x<=S){const C=S+1,W=C<F?v[C].el:N;for(;x<=S;)w(null,v[x]=T?Ht(v[x]):dt(v[x]),A,W,R,$,h,p,T),x++}}else if(x>S)for(;x<=P;)Ke(b[x],R,$,!0),x++;else{const C=x,W=x,z=new Map;for(x=W;x<=S;x++){const Ze=v[x]=T?Ht(v[x]):dt(v[x]);Ze.key!=null&&z.set(Ze.key,x)}let X,Oe=0;const ve=S-W+1;let tt=!1,ot=0;const Cr=new Array(ve);for(x=0;x<ve;x++)Cr[x]=0;for(x=C;x<=P;x++){const Ze=b[x];if(Oe>=ve){Ke(Ze,R,$,!0);continue}let wt;if(Ze.key!=null)wt=z.get(Ze.key);else for(X=W;X<=S;X++)if(Cr[X-W]===0&&sr(Ze,v[X])){wt=X;break}wt===void 0?Ke(Ze,R,$,!0):(Cr[wt-W]=x+1,wt>=ot?ot=wt:tt=!0,w(Ze,v[wt],A,null,R,$,h,p,T),Oe++)}const sf=tt?Fd(Cr):vn;for(X=sf.length-1,x=ve-1;x>=0;x--){const Ze=W+x,wt=v[Ze],of=Ze+1<F?v[Ze+1].el:N;Cr[x]===0?w(null,wt,A,of,R,$,h,p,T):tt&&(X<0||x!==sf[X]?et(wt,A,of,2):X--)}}},et=(b,v,A,N,R=null)=>{const{el:$,type:h,transition:p,children:T,shapeFlag:x}=b;if(x&6){et(b.component.subTree,v,A,N);return}if(x&128){b.suspense.move(v,A,N);return}if(x&64){h.move(b,v,A,$t);return}if(h===Ee){r($,v,A);for(let P=0;P<T.length;P++)et(T[P],v,A,N);r(b.anchor,v,A);return}if(h===hi){I(b,v,A);return}if(N!==2&&x&1&&p)if(N===0)p.beforeEnter($),r($,v,A),Ve(()=>p.enter($),R);else{const{leave:P,delayLeave:S,afterLeave:C}=p,W=()=>r($,v,A),z=()=>{P($,()=>{W(),C&&C()})};S?S($,W,z):z()}else r($,v,A)},Ke=(b,v,A,N=!1,R=!1)=>{const{type:$,props:h,ref:p,children:T,dynamicChildren:x,shapeFlag:F,patchFlag:P,dirs:S,cacheIndex:C}=b;if(P===-2&&(R=!1),p!=null&&Yr(p,null,A,b,!0),C!=null&&(v.renderCache[C]=void 0),F&256){v.ctx.deactivate(b);return}const W=F&1&&S,z=!Jn(b);let X;if(z&&(X=h&&h.onVnodeBeforeUnmount)&&ht(X,v,b),F&6)Ns(b.component,A,N);else{if(F&128){b.suspense.unmount(A,N);return}W&&nn(b,null,v,"beforeUnmount"),F&64?b.type.remove(b,v,A,$t,N):x&&!x.hasOnce&&($!==Ee||P>0&&P&64)?Nt(x,v,A,!1,!0):($===Ee&&P&384||!R&&F&16)&&Nt(T,v,A),N&&Un(b)}(z&&(X=h&&h.onVnodeUnmounted)||W)&&Ve(()=>{X&&ht(X,v,b),W&&nn(b,null,v,"unmounted")},A)},Un=b=>{const{type:v,el:A,anchor:N,transition:R}=b;if(v===Ee){Or(A,N);return}if(v===hi){g(b);return}const $=()=>{s(A),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:h,delayLeave:p}=R,T=()=>h(A,$);p?p(b.el,$,T):T()}else $()},Or=(b,v)=>{let A;for(;b!==v;)A=d(b),s(b),b=A;s(v)},Ns=(b,v,A)=>{const{bum:N,scope:R,job:$,subTree:h,um:p,m:T,a:x}=b;Ba(T),Ba(x),N&&Nr(N),R.stop(),$&&($.flags|=8,Ke(h,b,v,A)),p&&Ve(p,v),Ve(()=>{b.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve())},Nt=(b,v,A,N=!1,R=!1,$=0)=>{for(let h=$;h<b.length;h++)Ke(b[h],v,A,N,R)},Xt=b=>{if(b.shapeFlag&6)return Xt(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const v=d(b.anchor||b.el),A=v&&v[rd];return A?d(A):v};let Jt=!1;const Wn=(b,v,A)=>{b==null?v._vnode&&Ke(v._vnode,null,null,!0):w(v._vnode||null,b,v,null,null,null,A),v._vnode=b,Jt||(Jt=!0,_a(),ba(),Jt=!1)},$t={p:w,um:Ke,m:et,r:Un,mt:it,mc:M,pc:oe,pbc:Z,n:Xt,o:e};return{render:Wn,hydrate:void 0,createApp:Ed(Wn)}}function di({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 sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Md(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ka(e,t,n=!1){const r=e.children,s=t.children;if(K(r)&&K(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ht(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Ka(o,a)),a.type===tr&&(a.el=o.el)}}function Fd(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Va(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Va(t)}function Ba(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const jd=Symbol.for("v-scx"),Ud=()=>Ue(jd);function ft(e,t,n){return Ga(e,t,n)}function Ga(e,t,n=re){const{immediate:r,deep:s,flush:i,once:o}=n,a=Le({},n),l=t&&r||!t&&i!=="post";let u;if(ar){if(i==="sync"){const m=Ud();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=at,m.resume=at,m.pause=at,m}}const c=xe;a.call=(m,k,w)=>lt(m,c,k,w);let f=!1;i==="post"?a.scheduler=m=>{Ve(m,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(m,k)=>{k?m():ri(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const d=Gf(e,t,a);return ar&&(u?u.push(d):l&&d()),d}function Wd(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?Za(r,e):()=>r[e]:e.bind(r,r);let i;V(t)?i=t:(i=t.handler,n=t);const o=or(this),a=Ga(s,i.bind(r),n);return o(),a}function Za(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Hd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${Mt(t)}Modifiers`];function zd(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||re;let s=n;const i=t.startsWith("update:"),o=i&&Hd(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>we(c)?c.trim():c)),o.number&&(s=n.map(Us)));let a,l=r[a=js(t)]||r[a=js(Ye(t))];!l&&i&&(l=r[a=js(Mt(t))]),l&&lt(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,lt(u,e,6,s)}}function Ya(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!V(e)){const l=u=>{const c=Ya(u,t,!0);c&&(a=!0,Le(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(_e(e)&&r.set(e,null),null):(K(i)?i.forEach(l=>o[l]=null):Le(o,i),_e(e)&&r.set(e,o),o)}function qr(e,t){return!e||!Ar(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Mt(t))||ie(e,t))}function Cv(){}function Xa(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:m,ctx:k,inheritAttrs:w}=e,E=Zr(e);let _,y;try{if(n.shapeFlag&4){const g=s||r,O=g;_=dt(u.call(O,g,c,f,m,d,k)),y=a}else{const g=t;_=dt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),y=t.props?a:Kd(a)}}catch(g){nr.length=0,Br(g,e,1),_=ke(on)}let I=_;if(y&&w!==!1){const g=Object.keys(y),{shapeFlag:O}=I;g.length&&O&7&&(i&&g.some(Ds)&&(y=Vd(y,i)),I=On(I,y,!1,!0))}return n.dirs&&(I=On(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&si(I,n.transition),_=I,Zr(E),_}const Kd=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ar(n))&&((t||(t={}))[n]=e[n]);return t},Vd=(e,t)=>{const n={};for(const r in e)(!Ds(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Bd(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ja(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]&&!qr(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Ja(r,o,u):!0:!!o;return!1}function Ja(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!qr(n,i))return!0}return!1}function Gd({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 Zd(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):ed(e)}const Ee=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),on=Symbol.for("v-cmt"),hi=Symbol.for("v-stc"),nr=[];let Be=null;function B(e=!1){nr.push(Be=e?null:[])}function Yd(){nr.pop(),Be=nr[nr.length-1]||null}let rr=1;function Qa(e,t=!1){rr+=e,e<0&&Be&&t&&(Be.hasOnce=!0)}function el(e){return e.dynamicChildren=rr>0?Be||vn:null,Yd(),rr>0&&Be&&Be.push(e),e}function J(e,t,n,r,s,i){return el(ae(e,t,n,r,s,i,!0))}function Wt(e,t,n,r,s){return el(ke(e,t,n,r,s,!0))}function Qr(e){return e?e.__v_isVNode===!0:!1}function sr(e,t){return e.type===t.type&&e.key===t.key}const tl=({key:e})=>e??null,es=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||ye(e)||V(e)?{i:Fe,r:e,k:t,f:!!n}:e:null);function ae(e,t=null,n=null,r=0,s=null,i=e===Ee?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tl(t),ref:t&&es(t),scopeId:wa,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Fe};return a?(pi(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),rr>0&&!o&&Be&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Be.push(l),l}const ke=Xd;function Xd(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===_d)&&(e=on),Qr(e)){const a=On(e,t,!0);return n&&pi(a,n),rr>0&&!i&&Be&&(a.shapeFlag&6?Be[Be.indexOf(e)]=a:Be.push(a)),a.patchFlag=-2,a}if(lh(e)&&(e=e.__vccOpts),t){t=Jd(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=zn(a)),_e(l)&&(Qs(l)&&!K(l)&&(l=Le({},l)),t.style=Dr(l))}const o=we(e)?1:qa(e)?128:sd(e)?64:_e(e)?4:V(e)?2:0;return ae(e,t,n,r,s,o,i,!0)}function Jd(e){return e?Qs(e)||Da(e)?Le({},e):e:null}function On(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?qd(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&tl(u),ref:t&&t.ref?n&&i?K(i)?i.concat(es(t)):[i,es(t)]:es(t):i,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!==Ee?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&&On(e.ssContent),ssFallback:e.ssFallback&&On(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&si(c,l.clone(c)),c}function an(e=" ",t=0){return ke(tr,null,e,t)}function Ne(e="",t=!1){return t?(B(),Wt(on,null,e)):ke(on,null,e)}function dt(e){return e==null||typeof e=="boolean"?ke(on):K(e)?ke(Ee,null,e.slice()):Qr(e)?Ht(e):ke(tr,null,String(e))}function Ht(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:On(e)}function pi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),pi(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Da(t)?t._ctx=Fe:s===3&&Fe&&(Fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:Fe},n=32):(t=String(t),r&64?(n=16,t=[an(t)]):n=8);e.children=t,e.shapeFlag|=n}function qd(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=zn([t.class,r.class]));else if(s==="style")t.style=Dr([t.style,r.style]);else if(Ar(s)){const i=t[s],o=r[s];o&&i!==o&&!(K(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function ht(e,t,n,r=null){lt(e,t,7,[n,r])}const Qd=Ra();let eh=0;function th(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Qd,i={uid:eh++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ko(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Fa(r,s),emitsOptions:Ya(r,s),emit:null,emitted:null,propsDefaults:re,inheritAttrs:r.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=zd.bind(null,i),e.ce&&e.ce(i),i}let xe=null;const ir=()=>xe||Fe;let ts,mi;{const e=$r(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};ts=t("__VUE_INSTANCE_SETTERS__",n=>xe=n),mi=t("__VUE_SSR_SETTERS__",n=>ar=n)}const or=e=>{const t=xe;return ts(e),e.scope.on(),()=>{e.scope.off(),ts(t)}},nl=()=>{xe&&xe.scope.off(),ts(null)};function rl(e){return e.vnode.shapeFlag&4}let ar=!1;function nh(e,t=!1,n=!1){t&&mi(t);const{props:r,children:s}=e.vnode,i=rl(e);Cd(e,r,i,t),Rd(e,s,n);const o=i?rh(e,t):void 0;return t&&mi(!1),o}function rh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yd);const{setup:r}=n;if(r){kt();const s=e.setupContext=r.length>1?ih(e):null,i=or(e),o=In(r,e,0,[e.props,s]),a=Do(o);if(vt(),i(),(a||e.sp)&&!Jn(e)&&ka(e),a){if(o.then(nl,nl),t)return o.then(l=>{sl(e,l)}).catch(l=>{Br(l,e,0)});e.asyncDep=o}else sl(e,o)}else il(e)}function sl(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=da(t)),il(e)}function il(e,t,n){const r=e.type;e.render||(e.render=r.render||at);{const s=or(e);kt();try{wd(e)}finally{vt(),s()}}}const sh={get(e,t){return Pe(e,"get",""),e[t]}};function ih(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,sh),slots:e.slots,emit:e.emit,expose:t}}function ns(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(da(ei(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qn)return Qn[n](e)},has(t,n){return n in t||n in Qn}})):e.proxy}const oh=/(?:^|[-_])(\w)/g,ah=e=>e.replace(oh,t=>t.toUpperCase()).replace(/[-_]/g,"");function ol(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function al(e,t,n=!1){let r=ol(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?ah(r):n?"App":"Anonymous"}function lh(e){return V(e)&&"__vccOpts"in e}const rt=(e,t)=>Vf(e,t,ar);function lr(e,t,n){const r=arguments.length;return r===2?_e(t)&&!K(t)?Qr(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Qr(n)&&(n=[n]),ke(e,t,n))}const ch="3.5.13";/**
15
+ `,...Xf(s)),console.warn(...i)}vt(),ni=!1}function Yf(){let e=Yn[Yn.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 Xf(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
16
+ `],...Jf(n))}),t}function Jf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${ll(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...qf(e.props),i]:[s+i]}function qf(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...pa(r,e[r]))}),n.length>3&&t.push(" ..."),t}function pa(e,t,n){return we(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ye(t)?(t=pa(e,ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),n?t:[`${e}=`,t])}function In(e,t,n,r){try{return r?e(...r):e()}catch(s){Br(s,t,n)}}function lt(e,t,n,r){if(V(e)){const s=In(e,t,n,r);return s&&Mo(s)&&s.catch(i=>{Br(i,t,n)}),s}if(K(e)){const s=[];for(let i=0;i<e.length;i++)s.push(lt(e[i],t,n,r));return s}}function Br(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||re;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(i){kt(),In(i,null,10,[e,l,u]),vt();return}}Qf(e,n,s,r,o)}function Qf(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Me=[];let ct=-1;const En=[];let Ut=null,xn=0;const ma=Promise.resolve();let Gr=null;function ga(e){const t=Gr||ma;return e?t.then(this?e.bind(this):e):t}function ed(e){let t=ct+1,n=Me.length;for(;t<n;){const r=t+n>>>1,s=Me[r],i=Xn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function ri(e){if(!(e.flags&1)){const t=Xn(e),n=Me[Me.length-1];!n||!(e.flags&2)&&t>=Xn(n)?Me.push(e):Me.splice(ed(t),0,e),e.flags|=1,_a()}}function _a(){Gr||(Gr=ma.then(wa))}function td(e){K(e)?En.push(...e):Ut&&e.id===-1?Ut.splice(xn+1,0,e):e.flags&1||(En.push(e),e.flags|=1),_a()}function ba(e,t,n=ct+1){for(;n<Me.length;n++){const r=Me[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Me.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ya(e){if(En.length){const t=[...new Set(En)].sort((n,r)=>Xn(n)-Xn(r));if(En.length=0,Ut){Ut.push(...t);return}for(Ut=t,xn=0;xn<Ut.length;xn++){const n=Ut[xn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ut=null,xn=0}}const Xn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function wa(e){try{for(ct=0;ct<Me.length;ct++){const t=Me[ct];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),In(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ct<Me.length;ct++){const t=Me[ct];t&&(t.flags&=-2)}ct=-1,Me.length=0,ya(),Gr=null,(Me.length||En.length)&&wa()}}let Fe=null,ka=null;function Zr(e){const t=Fe;return Fe=e,ka=e&&e.type.__scopeId||null,t}function nd(e,t=Fe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&el(-1);const i=Zr(t);let o;try{o=e(...s)}finally{Zr(i),r._d&&el(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function rd(e,t){if(Fe===null)return e;const n=ns(Fe),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=re]=t[s];i&&(V(i)&&(i={mounted:i,updated:i}),i.deep&&It(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function nn(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(kt(),lt(l,n,8,[e.el,a,e,t]),vt())}}const sd=Symbol("_vte"),id=e=>e.__isTeleport;function si(e,t){e.shapeFlag&6&&e.component?(e.transition=t,si(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 ut(e,t){return V(e)?Le({name:e.name},t,{setup:e}):e}function va(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yr(e,t,n,r,s=!1){if(K(e)){e.forEach((k,w)=>Yr(k,t&&(K(t)?t[w]:t),n,r,s));return}if(Jn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Yr(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?ns(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===re?a.refs={}:a.refs,f=a.setupState,d=ee(f),m=f===re?()=>!1:k=>ie(d,k);if(u!=null&&u!==l&&(we(u)?(c[u]=null,m(u)&&(f[u]=null)):ye(u)&&(u.value=null)),V(l))In(l,a,12,[o,c]);else{const k=we(l),w=ye(l);if(k||w){const E=()=>{if(e.f){const _=k?m(l)?f[l]:c[l]:l.value;s?K(_)&&Ms(_,i):K(_)?_.includes(i)||_.push(i):k?(c[l]=[i],m(l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else k?(c[l]=o,m(l)&&(f[l]=o)):w&&(l.value=o,e.k&&(c[e.k]=o))};o?(E.id=-1,Ve(E,n)):E()}}}$r().requestIdleCallback,$r().cancelIdleCallback;const Jn=e=>!!e.type.__asyncLoader,Ta=e=>e.type.__isKeepAlive;function od(e,t){Sa(e,"a",t)}function ad(e,t){Sa(e,"da",t)}function Sa(e,t,n=xe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Xr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Ta(s.parent.vnode)&&ld(r,t,n,s),s=s.parent}}function ld(e,t,n,r){const s=Xr(t,e,r,!0);ii(()=>{Ms(r[t],s)},n)}function Xr(e,t,n=xe,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{kt();const a=or(n),l=lt(t,n,e,o);return a(),vt(),l});return r?s.unshift(i):s.push(i),i}}const Et=e=>(t,n=xe)=>{(!ar||e==="sp")&&Xr(e,(...r)=>t(...r),n)},cd=Et("bm"),qn=Et("m"),ud=Et("bu"),fd=Et("u"),Ia=Et("bum"),ii=Et("um"),dd=Et("sp"),hd=Et("rtg"),pd=Et("rtc");function md(e,t=xe){Xr("ec",e,t)}const gd="components";function _d(e,t){return yd(gd,e,!0,t)||e}const bd=Symbol.for("v-ndc");function yd(e,t,n=!0,r=!1){const s=Fe||xe;if(s){const i=s.type;{const a=al(i,!1);if(a&&(a===t||a===Ye(t)||a===Rr(Ye(t))))return i}const o=Ea(s[e]||i[e],t)||Ea(s.appContext[e],t);return!o&&r?i:o}}function Ea(e,t){return e&&(e[t]||e[Ye(t)]||e[Rr(Ye(t))])}function xa(e,t,n,r){let s;const i=n,o=K(e);if(o||we(e)){const a=o&&jt(e);let l=!1;a&&(l=!Xe(e),e=Fr(e)),s=new Array(e.length);for(let u=0,c=e.length;u<c;u++)s[u]=t(l?Re(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(_e(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}const oi=e=>e?sl(e)?ns(e):oi(e.parent):null,Qn=Le(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=>oi(e.parent),$root:e=>oi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>La(e),$forceUpdate:e=>e.f||(e.f=()=>{ri(e.update)}),$nextTick:e=>e.n||(e.n=ga.bind(e.proxy)),$watch:e=>Hd.bind(e)}),ai=(e,t)=>e!==re&&!e.__isScriptSetup&&ie(e,t),wd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,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 s[t];case 4:return n[t];case 3:return i[t]}else{if(ai(r,t))return o[t]=1,r[t];if(s!==re&&ie(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&ie(u,t))return o[t]=3,i[t];if(n!==re&&ie(n,t))return o[t]=4,n[t];li&&(o[t]=0)}}const c=Qn[t];let f,d;if(c)return t==="$attrs"&&Pe(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==re&&ie(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,ie(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ai(s,t)?(s[t]=n,!0):r!==re&&ie(r,t)?(r[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==re&&ie(e,o)||ai(t,o)||(a=i[0])&&ie(a,o)||ie(r,o)||ie(Qn,o)||ie(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oa(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let li=!0;function kd(e){const t=La(e),n=e.proxy,r=e.ctx;li=!1,t.beforeCreate&&Ca(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:m,updated:k,activated:w,deactivated:E,beforeDestroy:_,beforeUnmount:y,destroyed:T,unmounted:g,render:O,renderTracked:D,renderTriggered:L,errorCaptured:M,serverPrefetch:U,expose:Z,inheritAttrs:q,components:Q,directives:Ce,filters:it}=t;if(u&&vd(u,r,null),o)for(const G in o){const oe=o[G];V(oe)&&(r[G]=oe.bind(n))}if(s){const G=s.call(n,n);_e(G)&&(e.data=Hr(G))}if(li=!0,i)for(const G in i){const oe=i[G],Ae=V(oe)?oe.bind(n,n):V(oe.get)?oe.get.bind(n,n):at,Rt=!V(oe)&&V(oe.set)?oe.set.bind(n):at,et=rt({get:Ae,set:Rt});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>et.value,set:Ke=>et.value=Ke})}if(a)for(const G in a)Aa(a[G],r,n,G);if(l){const G=V(l)?l.call(n):l;Reflect.ownKeys(G).forEach(oe=>{Od(oe,G[oe])})}c&&Ca(c,e,"c");function ge(G,oe){K(oe)?oe.forEach(Ae=>G(Ae.bind(n))):oe&&G(oe.bind(n))}if(ge(cd,f),ge(qn,d),ge(ud,m),ge(fd,k),ge(od,w),ge(ad,E),ge(md,M),ge(pd,D),ge(hd,L),ge(Ia,y),ge(ii,g),ge(dd,U),K(Z))if(Z.length){const G=e.exposed||(e.exposed={});Z.forEach(oe=>{Object.defineProperty(G,oe,{get:()=>n[oe],set:Ae=>n[oe]=Ae})})}else e.exposed||(e.exposed={});O&&e.render===at&&(e.render=O),q!=null&&(e.inheritAttrs=q),Q&&(e.components=Q),Ce&&(e.directives=Ce),U&&va(e)}function vd(e,t,n=at){K(e)&&(e=ci(e));for(const r in e){const s=e[r];let i;_e(s)?"default"in s?i=Ue(s.from||r,s.default,!0):i=Ue(s.from||r):i=Ue(s),ye(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Ca(e,t,n){lt(K(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Aa(e,t,n,r){let s=r.includes(".")?Ya(n,r):()=>n[r];if(we(e)){const i=t[e];V(i)&&ft(s,i)}else if(V(e))ft(s,e.bind(n));else if(_e(e))if(K(e))e.forEach(i=>Aa(i,t,n,r));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&ft(s,i,e)}}function La(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Jr(l,u,o,!0)),Jr(l,t,o)),_e(t)&&i.set(t,l),l}function Jr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Jr(e,i,n,!0),s&&s.forEach(o=>Jr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Td[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Td={data:Pa,props:Ra,emits:Ra,methods:er,computed:er,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:er,directives:er,watch:Id,provide:Pa,inject:Sd};function Pa(e,t){return t?e?function(){return Le(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Sd(e,t){return er(ci(e),ci(t))}function ci(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function er(e,t){return e?Le(Object.create(null),e,t):t}function Ra(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Le(Object.create(null),Oa(e),Oa(t??{})):t}function Id(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const r in t)n[r]=je(e[r],t[r]);return n}function Na(){return{app:null,config:{isNativeTag:lf,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 Ed=0;function xd(e,t){return function(r,s=null){V(r)||(r=Le({},r)),s!=null&&!_e(s)&&(s=null);const i=Na(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:Ed++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:uh,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&V(c.install)?(o.add(c),c.install(u,...f)):V(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,d){if(!l){const m=u._ceVNode||ke(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(m,c,d),l=!0,u._container=c,c.__vue_app__=u,ns(m.component)}},onUnmount(c){a.push(c)},unmount(){l&&(lt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=rn;rn=u;try{return c()}finally{rn=f}}};return u}}let rn=null;function Od(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 Ue(e,t,n=!1){const r=xe||Fe;if(r||rn){const s=rn?rn._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&V(t)?t.call(r&&r.proxy):t}}function Cd(){return!!(xe||Fe||rn)}const $a={},Da=()=>Object.create($a),Ma=e=>Object.getPrototypeOf(e)===$a;function Ad(e,t,n,r=!1){const s={},i=Da();e.propsDefaults=Object.create(null),Fa(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Ff(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Ld(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ee(s),[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(qr(e.emitsOptions,d))continue;const m=t[d];if(l)if(ie(i,d))m!==i[d]&&(i[d]=m,u=!0);else{const k=Ye(d);s[k]=ui(l,a,k,m,e,!1)}else m!==i[d]&&(i[d]=m,u=!0)}}}else{Fa(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!ie(t,f)&&((c=Mt(f))===f||!ie(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=ui(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!ie(t,f))&&(delete i[f],u=!0)}u&&Tt(e.attrs,"set","")}function Fa(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Hn(l))continue;const u=t[l];let c;s&&ie(s,c=Ye(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:qr(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=ee(n),u=a||re;for(let c=0;c<i.length;c++){const f=i[c];n[f]=ui(s,l,f,u[f],e,!ie(u,f))}}return o}function ui(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=ie(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&V(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=or(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===Mt(n))&&(r=!0))}return r}const Pd=new WeakMap;function ja(e,t,n=!1){const r=n?Pd:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!V(e)){const c=f=>{l=!0;const[d,m]=ja(f,t,!0);Le(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(!i&&!l)return _e(e)&&r.set(e,vn),vn;if(K(i))for(let c=0;c<i.length;c++){const f=Ye(i[c]);Ua(f)&&(o[f]=re)}else if(i)for(const c in i){const f=Ye(c);if(Ua(f)){const d=i[c],m=o[f]=K(d)||V(d)?{type:d}:Le({},d),k=m.type;let w=!1,E=!0;if(K(k))for(let _=0;_<k.length;++_){const y=k[_],T=V(y)&&y.name;if(T==="Boolean"){w=!0;break}else T==="String"&&(E=!1)}else w=V(k)&&k.name==="Boolean";m[0]=w,m[1]=E,(w||ie(m,"default"))&&a.push(f)}}const u=[o,a];return _e(e)&&r.set(e,u),u}function Ua(e){return e[0]!=="$"&&!Hn(e)}const Wa=e=>e[0]==="_"||e==="$stable",fi=e=>K(e)?e.map(dt):[dt(e)],Rd=(e,t,n)=>{if(t._n)return t;const r=nd((...s)=>fi(t(...s)),n);return r._c=!1,r},Ha=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Wa(s))continue;const i=e[s];if(V(i))t[s]=Rd(s,i,r);else if(i!=null){const o=fi(i);t[s]=()=>o}}},za=(e,t)=>{const n=fi(t);e.slots.default=()=>n},Ka=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Nd=(e,t,n)=>{const r=e.slots=Da();if(e.vnode.shapeFlag&32){const s=t._;s?(Ka(r,t,n),n&&Uo(r,"_",s,!0)):Ha(t,r)}else t&&za(e,t)},$d=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=re;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ka(s,t,n):(i=!t.$stable,Ha(t,s)),o=t}else t&&(za(e,t),o={default:1});if(i)for(const a in s)!Wa(a)&&o[a]==null&&delete s[a]},Ve=Yd;function Dd(e){return Md(e)}function Md(e,t){const n=$r();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:m=at,insertStaticContent:k}=e,w=(b,v,A,N=null,R=null,$=null,h=void 0,p=null,S=!!v.dynamicChildren)=>{if(b===v)return;b&&!sr(b,v)&&(N=Xt(b),Ke(b,R,$,!0),b=null),v.patchFlag===-2&&(S=!1,v.dynamicChildren=null);const{type:x,ref:F,shapeFlag:P}=v;switch(x){case tr:E(b,v,A,N);break;case on:_(b,v,A,N);break;case hi:b==null&&y(v,A,N,h);break;case Ee:Q(b,v,A,N,R,$,h,p,S);break;default:P&1?O(b,v,A,N,R,$,h,p,S):P&6?Ce(b,v,A,N,R,$,h,p,S):(P&64||P&128)&&x.process(b,v,A,N,R,$,h,p,S,$t)}F!=null&&R&&Yr(F,b&&b.ref,$,v||b,!v)},E=(b,v,A,N)=>{if(b==null)r(v.el=a(v.children),A,N);else{const R=v.el=b.el;v.children!==b.children&&u(R,v.children)}},_=(b,v,A,N)=>{b==null?r(v.el=l(v.children||""),A,N):v.el=b.el},y=(b,v,A,N)=>{[b.el,b.anchor]=k(b.children,v,A,N,b.el,b.anchor)},T=({el:b,anchor:v},A,N)=>{let R;for(;b&&b!==v;)R=d(b),r(b,A,N),b=R;r(v,A,N)},g=({el:b,anchor:v})=>{let A;for(;b&&b!==v;)A=d(b),s(b),b=A;s(v)},O=(b,v,A,N,R,$,h,p,S)=>{v.type==="svg"?h="svg":v.type==="math"&&(h="mathml"),b==null?D(v,A,N,R,$,h,p,S):U(b,v,R,$,h,p,S)},D=(b,v,A,N,R,$,h,p)=>{let S,x;const{props:F,shapeFlag:P,transition:I,dirs:C}=b;if(S=b.el=o(b.type,$,F&&F.is,F),P&8?c(S,b.children):P&16&&M(b.children,S,null,N,R,di(b,$),h,p),C&&nn(b,null,N,"created"),L(S,b,b.scopeId,h,N),F){for(const z in F)z!=="value"&&!Hn(z)&&i(S,z,null,F[z],$,N);"value"in F&&i(S,"value",null,F.value,$),(x=F.onVnodeBeforeMount)&&ht(x,N,b)}C&&nn(b,null,N,"beforeMount");const W=Fd(R,I);W&&I.beforeEnter(S),r(S,v,A),((x=F&&F.onVnodeMounted)||W||C)&&Ve(()=>{x&&ht(x,N,b),W&&I.enter(S),C&&nn(b,null,N,"mounted")},R)},L=(b,v,A,N,R)=>{if(A&&m(b,A),N)for(let $=0;$<N.length;$++)m(b,N[$]);if(R){let $=R.subTree;if(v===$||Qa($.type)&&($.ssContent===v||$.ssFallback===v)){const h=R.vnode;L(b,h,h.scopeId,h.slotScopeIds,R.parent)}}},M=(b,v,A,N,R,$,h,p,S=0)=>{for(let x=S;x<b.length;x++){const F=b[x]=p?Ht(b[x]):dt(b[x]);w(null,F,v,A,N,R,$,h,p)}},U=(b,v,A,N,R,$,h)=>{const p=v.el=b.el;let{patchFlag:S,dynamicChildren:x,dirs:F}=v;S|=b.patchFlag&16;const P=b.props||re,I=v.props||re;let C;if(A&&sn(A,!1),(C=I.onVnodeBeforeUpdate)&&ht(C,A,v,b),F&&nn(v,b,A,"beforeUpdate"),A&&sn(A,!0),(P.innerHTML&&I.innerHTML==null||P.textContent&&I.textContent==null)&&c(p,""),x?Z(b.dynamicChildren,x,p,A,N,di(v,R),$):h||oe(b,v,p,null,A,N,di(v,R),$,!1),S>0){if(S&16)q(p,P,I,A,R);else if(S&2&&P.class!==I.class&&i(p,"class",null,I.class,R),S&4&&i(p,"style",P.style,I.style,R),S&8){const W=v.dynamicProps;for(let z=0;z<W.length;z++){const X=W[z],Oe=P[X],ve=I[X];(ve!==Oe||X==="value")&&i(p,X,Oe,ve,R,A)}}S&1&&b.children!==v.children&&c(p,v.children)}else!h&&x==null&&q(p,P,I,A,R);((C=I.onVnodeUpdated)||F)&&Ve(()=>{C&&ht(C,A,v,b),F&&nn(v,b,A,"updated")},N)},Z=(b,v,A,N,R,$,h)=>{for(let p=0;p<v.length;p++){const S=b[p],x=v[p],F=S.el&&(S.type===Ee||!sr(S,x)||S.shapeFlag&70)?f(S.el):A;w(S,x,F,null,N,R,$,h,!0)}},q=(b,v,A,N,R)=>{if(v!==A){if(v!==re)for(const $ in v)!Hn($)&&!($ in A)&&i(b,$,v[$],null,R,N);for(const $ in A){if(Hn($))continue;const h=A[$],p=v[$];h!==p&&$!=="value"&&i(b,$,p,h,R,N)}"value"in A&&i(b,"value",v.value,A.value,R)}},Q=(b,v,A,N,R,$,h,p,S)=>{const x=v.el=b?b.el:a(""),F=v.anchor=b?b.anchor:a("");let{patchFlag:P,dynamicChildren:I,slotScopeIds:C}=v;C&&(p=p?p.concat(C):C),b==null?(r(x,A,N),r(F,A,N),M(v.children||[],A,F,R,$,h,p,S)):P>0&&P&64&&I&&b.dynamicChildren?(Z(b.dynamicChildren,I,A,R,$,h,p),(v.key!=null||R&&v===R.subTree)&&Va(b,v,!0)):oe(b,v,A,F,R,$,h,p,S)},Ce=(b,v,A,N,R,$,h,p,S)=>{v.slotScopeIds=p,b==null?v.shapeFlag&512?R.ctx.activate(v,A,N,h,S):it(v,A,N,R,$,h,S):Yt(b,v,S)},it=(b,v,A,N,R,$,h)=>{const p=b.component=nh(b,N,R);if(Ta(b)&&(p.ctx.renderer=$t),rh(p,!1,h),p.asyncDep){if(R&&R.registerDep(p,ge,h),!b.el){const S=p.subTree=ke(on);_(null,S,v,A)}}else ge(p,b,v,A,R,$,h)},Yt=(b,v,A)=>{const N=v.component=b.component;if(Gd(b,v,A))if(N.asyncDep&&!N.asyncResolved){G(N,v,A);return}else N.next=v,N.update();else v.el=b.el,N.vnode=v},ge=(b,v,A,N,R,$,h)=>{const p=()=>{if(b.isMounted){let{next:P,bu:I,u:C,parent:W,vnode:z}=b;{const ot=Ba(b);if(ot){P&&(P.el=z.el,G(b,P,h)),ot.asyncDep.then(()=>{b.isUnmounted||p()});return}}let X=P,Oe;sn(b,!1),P?(P.el=z.el,G(b,P,h)):P=z,I&&Nr(I),(Oe=P.props&&P.props.onVnodeBeforeUpdate)&&ht(Oe,W,P,z),sn(b,!0);const ve=Ja(b),tt=b.subTree;b.subTree=ve,w(tt,ve,f(tt.el),Xt(tt),b,R,$),P.el=ve.el,X===null&&Zd(b,ve.el),C&&Ve(C,R),(Oe=P.props&&P.props.onVnodeUpdated)&&Ve(()=>ht(Oe,W,P,z),R)}else{let P;const{el:I,props:C}=v,{bm:W,m:z,parent:X,root:Oe,type:ve}=b,tt=Jn(v);sn(b,!1),W&&Nr(W),!tt&&(P=C&&C.onVnodeBeforeMount)&&ht(P,X,v),sn(b,!0);{Oe.ce&&Oe.ce._injectChildStyle(ve);const ot=b.subTree=Ja(b);w(null,ot,A,N,b,R,$),v.el=ot.el}if(z&&Ve(z,R),!tt&&(P=C&&C.onVnodeMounted)){const ot=v;Ve(()=>ht(P,X,ot),R)}(v.shapeFlag&256||X&&Jn(X.vnode)&&X.vnode.shapeFlag&256)&&b.a&&Ve(b.a,R),b.isMounted=!0,v=A=N=null}};b.scope.on();const S=b.effect=new Go(p);b.scope.off();const x=b.update=S.run.bind(S),F=b.job=S.runIfDirty.bind(S);F.i=b,F.id=b.uid,S.scheduler=()=>ri(F),sn(b,!0),x()},G=(b,v,A)=>{v.component=b;const N=b.vnode.props;b.vnode=v,b.next=null,Ld(b,v.props,N,A),$d(b,v.children,A),kt(),ba(b),vt()},oe=(b,v,A,N,R,$,h,p,S=!1)=>{const x=b&&b.children,F=b?b.shapeFlag:0,P=v.children,{patchFlag:I,shapeFlag:C}=v;if(I>0){if(I&128){Rt(x,P,A,N,R,$,h,p,S);return}else if(I&256){Ae(x,P,A,N,R,$,h,p,S);return}}C&8?(F&16&&Nt(x,R,$),P!==x&&c(A,P)):F&16?C&16?Rt(x,P,A,N,R,$,h,p,S):Nt(x,R,$,!0):(F&8&&c(A,""),C&16&&M(P,A,N,R,$,h,p,S))},Ae=(b,v,A,N,R,$,h,p,S)=>{b=b||vn,v=v||vn;const x=b.length,F=v.length,P=Math.min(x,F);let I;for(I=0;I<P;I++){const C=v[I]=S?Ht(v[I]):dt(v[I]);w(b[I],C,A,null,R,$,h,p,S)}x>F?Nt(b,R,$,!0,!1,P):M(v,A,N,R,$,h,p,S,P)},Rt=(b,v,A,N,R,$,h,p,S)=>{let x=0;const F=v.length;let P=b.length-1,I=F-1;for(;x<=P&&x<=I;){const C=b[x],W=v[x]=S?Ht(v[x]):dt(v[x]);if(sr(C,W))w(C,W,A,null,R,$,h,p,S);else break;x++}for(;x<=P&&x<=I;){const C=b[P],W=v[I]=S?Ht(v[I]):dt(v[I]);if(sr(C,W))w(C,W,A,null,R,$,h,p,S);else break;P--,I--}if(x>P){if(x<=I){const C=I+1,W=C<F?v[C].el:N;for(;x<=I;)w(null,v[x]=S?Ht(v[x]):dt(v[x]),A,W,R,$,h,p,S),x++}}else if(x>I)for(;x<=P;)Ke(b[x],R,$,!0),x++;else{const C=x,W=x,z=new Map;for(x=W;x<=I;x++){const Ze=v[x]=S?Ht(v[x]):dt(v[x]);Ze.key!=null&&z.set(Ze.key,x)}let X,Oe=0;const ve=I-W+1;let tt=!1,ot=0;const Cr=new Array(ve);for(x=0;x<ve;x++)Cr[x]=0;for(x=C;x<=P;x++){const Ze=b[x];if(Oe>=ve){Ke(Ze,R,$,!0);continue}let wt;if(Ze.key!=null)wt=z.get(Ze.key);else for(X=W;X<=I;X++)if(Cr[X-W]===0&&sr(Ze,v[X])){wt=X;break}wt===void 0?Ke(Ze,R,$,!0):(Cr[wt-W]=x+1,wt>=ot?ot=wt:tt=!0,w(Ze,v[wt],A,null,R,$,h,p,S),Oe++)}const of=tt?jd(Cr):vn;for(X=of.length-1,x=ve-1;x>=0;x--){const Ze=W+x,wt=v[Ze],af=Ze+1<F?v[Ze+1].el:N;Cr[x]===0?w(null,wt,A,af,R,$,h,p,S):tt&&(X<0||x!==of[X]?et(wt,A,af,2):X--)}}},et=(b,v,A,N,R=null)=>{const{el:$,type:h,transition:p,children:S,shapeFlag:x}=b;if(x&6){et(b.component.subTree,v,A,N);return}if(x&128){b.suspense.move(v,A,N);return}if(x&64){h.move(b,v,A,$t);return}if(h===Ee){r($,v,A);for(let P=0;P<S.length;P++)et(S[P],v,A,N);r(b.anchor,v,A);return}if(h===hi){T(b,v,A);return}if(N!==2&&x&1&&p)if(N===0)p.beforeEnter($),r($,v,A),Ve(()=>p.enter($),R);else{const{leave:P,delayLeave:I,afterLeave:C}=p,W=()=>r($,v,A),z=()=>{P($,()=>{W(),C&&C()})};I?I($,W,z):z()}else r($,v,A)},Ke=(b,v,A,N=!1,R=!1)=>{const{type:$,props:h,ref:p,children:S,dynamicChildren:x,shapeFlag:F,patchFlag:P,dirs:I,cacheIndex:C}=b;if(P===-2&&(R=!1),p!=null&&Yr(p,null,A,b,!0),C!=null&&(v.renderCache[C]=void 0),F&256){v.ctx.deactivate(b);return}const W=F&1&&I,z=!Jn(b);let X;if(z&&(X=h&&h.onVnodeBeforeUnmount)&&ht(X,v,b),F&6)Ns(b.component,A,N);else{if(F&128){b.suspense.unmount(A,N);return}W&&nn(b,null,v,"beforeUnmount"),F&64?b.type.remove(b,v,A,$t,N):x&&!x.hasOnce&&($!==Ee||P>0&&P&64)?Nt(x,v,A,!1,!0):($===Ee&&P&384||!R&&F&16)&&Nt(S,v,A),N&&Un(b)}(z&&(X=h&&h.onVnodeUnmounted)||W)&&Ve(()=>{X&&ht(X,v,b),W&&nn(b,null,v,"unmounted")},A)},Un=b=>{const{type:v,el:A,anchor:N,transition:R}=b;if(v===Ee){Or(A,N);return}if(v===hi){g(b);return}const $=()=>{s(A),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:h,delayLeave:p}=R,S=()=>h(A,$);p?p(b.el,$,S):S()}else $()},Or=(b,v)=>{let A;for(;b!==v;)A=d(b),s(b),b=A;s(v)},Ns=(b,v,A)=>{const{bum:N,scope:R,job:$,subTree:h,um:p,m:S,a:x}=b;Ga(S),Ga(x),N&&Nr(N),R.stop(),$&&($.flags|=8,Ke(h,b,v,A)),p&&Ve(p,v),Ve(()=>{b.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve())},Nt=(b,v,A,N=!1,R=!1,$=0)=>{for(let h=$;h<b.length;h++)Ke(b[h],v,A,N,R)},Xt=b=>{if(b.shapeFlag&6)return Xt(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const v=d(b.anchor||b.el),A=v&&v[sd];return A?d(A):v};let Jt=!1;const Wn=(b,v,A)=>{b==null?v._vnode&&Ke(v._vnode,null,null,!0):w(v._vnode||null,b,v,null,null,null,A),v._vnode=b,Jt||(Jt=!0,ba(),ya(),Jt=!1)},$t={p:w,um:Ke,m:et,r:Un,mt:it,mc:M,pc:oe,pbc:Z,n:Xt,o:e};return{render:Wn,hydrate:void 0,createApp:xd(Wn)}}function di({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 sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Fd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Va(e,t,n=!1){const r=e.children,s=t.children;if(K(r)&&K(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ht(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Va(o,a)),a.type===tr&&(a.el=o.el)}}function jd(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Ba(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ba(t)}function Ga(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ud=Symbol.for("v-scx"),Wd=()=>Ue(Ud);function ft(e,t,n){return Za(e,t,n)}function Za(e,t,n=re){const{immediate:r,deep:s,flush:i,once:o}=n,a=Le({},n),l=t&&r||!t&&i!=="post";let u;if(ar){if(i==="sync"){const m=Wd();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=at,m.resume=at,m.pause=at,m}}const c=xe;a.call=(m,k,w)=>lt(m,c,k,w);let f=!1;i==="post"?a.scheduler=m=>{Ve(m,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(m,k)=>{k?m():ri(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const d=Zf(e,t,a);return ar&&(u?u.push(d):l&&d()),d}function Hd(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?Ya(r,e):()=>r[e]:e.bind(r,r);let i;V(t)?i=t:(i=t.handler,n=t);const o=or(this),a=Za(s,i.bind(r),n);return o(),a}function Ya(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const zd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${Mt(t)}Modifiers`];function Kd(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||re;let s=n;const i=t.startsWith("update:"),o=i&&zd(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>we(c)?c.trim():c)),o.number&&(s=n.map(Us)));let a,l=r[a=js(t)]||r[a=js(Ye(t))];!l&&i&&(l=r[a=js(Mt(t))]),l&&lt(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,lt(u,e,6,s)}}function Xa(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!V(e)){const l=u=>{const c=Xa(u,t,!0);c&&(a=!0,Le(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(_e(e)&&r.set(e,null),null):(K(i)?i.forEach(l=>o[l]=null):Le(o,i),_e(e)&&r.set(e,o),o)}function qr(e,t){return!e||!Ar(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Mt(t))||ie(e,t))}function Cv(){}function Ja(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:m,ctx:k,inheritAttrs:w}=e,E=Zr(e);let _,y;try{if(n.shapeFlag&4){const g=s||r,O=g;_=dt(u.call(O,g,c,f,m,d,k)),y=a}else{const g=t;_=dt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),y=t.props?a:Vd(a)}}catch(g){nr.length=0,Br(g,e,1),_=ke(on)}let T=_;if(y&&w!==!1){const g=Object.keys(y),{shapeFlag:O}=T;g.length&&O&7&&(i&&g.some(Ds)&&(y=Bd(y,i)),T=On(T,y,!1,!0))}return n.dirs&&(T=On(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&si(T,n.transition),_=T,Zr(E),_}const Vd=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ar(n))&&((t||(t={}))[n]=e[n]);return t},Bd=(e,t)=>{const n={};for(const r in e)(!Ds(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Gd(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.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]&&!qr(u,d))return!0}}}else return(s||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 s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!qr(n,i))return!0}return!1}function Zd({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 Yd(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):td(e)}const Ee=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),on=Symbol.for("v-cmt"),hi=Symbol.for("v-stc"),nr=[];let Be=null;function B(e=!1){nr.push(Be=e?null:[])}function Xd(){nr.pop(),Be=nr[nr.length-1]||null}let rr=1;function el(e,t=!1){rr+=e,e<0&&Be&&t&&(Be.hasOnce=!0)}function tl(e){return e.dynamicChildren=rr>0?Be||vn:null,Xd(),rr>0&&Be&&Be.push(e),e}function J(e,t,n,r,s,i){return tl(ae(e,t,n,r,s,i,!0))}function Wt(e,t,n,r,s){return tl(ke(e,t,n,r,s,!0))}function Qr(e){return e?e.__v_isVNode===!0:!1}function sr(e,t){return e.type===t.type&&e.key===t.key}const nl=({key:e})=>e??null,es=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||ye(e)||V(e)?{i:Fe,r:e,k:t,f:!!n}:e:null);function ae(e,t=null,n=null,r=0,s=null,i=e===Ee?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nl(t),ref:t&&es(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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Fe};return a?(pi(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),rr>0&&!o&&Be&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Be.push(l),l}const ke=Jd;function Jd(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===bd)&&(e=on),Qr(e)){const a=On(e,t,!0);return n&&pi(a,n),rr>0&&!i&&Be&&(a.shapeFlag&6?Be[Be.indexOf(e)]=a:Be.push(a)),a.patchFlag=-2,a}if(ch(e)&&(e=e.__vccOpts),t){t=qd(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=zn(a)),_e(l)&&(Qs(l)&&!K(l)&&(l=Le({},l)),t.style=Dr(l))}const o=we(e)?1:Qa(e)?128:id(e)?64:_e(e)?4:V(e)?2:0;return ae(e,t,n,r,s,o,i,!0)}function qd(e){return e?Qs(e)||Ma(e)?Le({},e):e:null}function On(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?Qd(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&nl(u),ref:t&&t.ref?n&&i?K(i)?i.concat(es(t)):[i,es(t)]:es(t):i,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!==Ee?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&&On(e.ssContent),ssFallback:e.ssFallback&&On(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&si(c,l.clone(c)),c}function an(e=" ",t=0){return ke(tr,null,e,t)}function Ne(e="",t=!1){return t?(B(),Wt(on,null,e)):ke(on,null,e)}function dt(e){return e==null||typeof e=="boolean"?ke(on):K(e)?ke(Ee,null,e.slice()):Qr(e)?Ht(e):ke(tr,null,String(e))}function Ht(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:On(e)}function pi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),pi(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ma(t)?t._ctx=Fe:s===3&&Fe&&(Fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:Fe},n=32):(t=String(t),r&64?(n=16,t=[an(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qd(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=zn([t.class,r.class]));else if(s==="style")t.style=Dr([t.style,r.style]);else if(Ar(s)){const i=t[s],o=r[s];o&&i!==o&&!(K(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function ht(e,t,n,r=null){lt(e,t,7,[n,r])}const eh=Na();let th=0;function nh(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||eh,i={uid:th++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Vo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ja(r,s),emitsOptions:Xa(r,s),emit:null,emitted:null,propsDefaults:re,inheritAttrs:r.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=Kd.bind(null,i),e.ce&&e.ce(i),i}let xe=null;const ir=()=>xe||Fe;let ts,mi;{const e=$r(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};ts=t("__VUE_INSTANCE_SETTERS__",n=>xe=n),mi=t("__VUE_SSR_SETTERS__",n=>ar=n)}const or=e=>{const t=xe;return ts(e),e.scope.on(),()=>{e.scope.off(),ts(t)}},rl=()=>{xe&&xe.scope.off(),ts(null)};function sl(e){return e.vnode.shapeFlag&4}let ar=!1;function rh(e,t=!1,n=!1){t&&mi(t);const{props:r,children:s}=e.vnode,i=sl(e);Ad(e,r,i,t),Nd(e,s,n);const o=i?sh(e,t):void 0;return t&&mi(!1),o}function sh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,wd);const{setup:r}=n;if(r){kt();const s=e.setupContext=r.length>1?oh(e):null,i=or(e),o=In(r,e,0,[e.props,s]),a=Mo(o);if(vt(),i(),(a||e.sp)&&!Jn(e)&&va(e),a){if(o.then(rl,rl),t)return o.then(l=>{il(e,l)}).catch(l=>{Br(l,e,0)});e.asyncDep=o}else il(e,o)}else ol(e)}function il(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=ha(t)),ol(e)}function ol(e,t,n){const r=e.type;e.render||(e.render=r.render||at);{const s=or(e);kt();try{kd(e)}finally{vt(),s()}}}const ih={get(e,t){return Pe(e,"get",""),e[t]}};function oh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ih),slots:e.slots,emit:e.emit,expose:t}}function ns(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ha(ei(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qn)return Qn[n](e)},has(t,n){return n in t||n in Qn}})):e.proxy}const ah=/(?:^|[-_])(\w)/g,lh=e=>e.replace(ah,t=>t.toUpperCase()).replace(/[-_]/g,"");function al(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function ll(e,t,n=!1){let r=al(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?lh(r):n?"App":"Anonymous"}function ch(e){return V(e)&&"__vccOpts"in e}const rt=(e,t)=>Bf(e,t,ar);function lr(e,t,n){const r=arguments.length;return r===2?_e(t)&&!K(t)?Qr(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Qr(n)&&(n=[n]),ke(e,t,n))}const uh="3.5.13";/**
17
17
  * @vue/runtime-dom v3.5.13
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/let gi;const ll=typeof window<"u"&&window.trustedTypes;if(ll)try{gi=ll.createPolicy("vue",{createHTML:e=>e})}catch{}const cl=gi?e=>gi.createHTML(e):e=>e,uh="http://www.w3.org/2000/svg",fh="http://www.w3.org/1998/Math/MathML",xt=typeof document<"u"?document:null,ul=xt&&xt.createElement("template"),dh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?xt.createElementNS(uh,e):t==="mathml"?xt.createElementNS(fh,e):n?xt.createElement(e,{is:n}):xt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{ul.innerHTML=cl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=ul.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]}},hh=Symbol("_vtc");function ph(e,t,n){const r=e[hh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const fl=Symbol("_vod"),mh=Symbol("_vsh"),gh=Symbol(""),_h=/(^|;)\s*display\s*:/;function bh(e,t,n){const r=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&rs(r,a,"")}else for(const o in t)n[o]==null&&rs(r,o,"");for(const o in n)o==="display"&&(i=!0),rs(r,o,n[o])}else if(s){if(t!==n){const o=r[gh];o&&(n+=";"+o),r.cssText=n,i=_h.test(n)}}else t&&e.removeAttribute("style");fl in e&&(e[fl]=i?r.display:"",e[mh]&&(r.display="none"))}const dl=/\s*!important$/;function rs(e,t,n){if(K(n))n.forEach(r=>rs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=yh(e,t);dl.test(n)?e.setProperty(Mt(r),n.replace(dl,""),"important"):e[r]=n}}const hl=["Webkit","Moz","ms"],_i={};function yh(e,t){const n=_i[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return _i[t]=r;r=Rr(r);for(let s=0;s<hl.length;s++){const i=hl[s]+r;if(i in e)return _i[t]=i}return t}const pl="http://www.w3.org/1999/xlink";function ml(e,t,n,r,s,i=gf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(pl,t.slice(6,t.length)):e.setAttributeNS(pl,t,n):n==null||i&&!Wo(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Dt(n)?String(n):n)}function gl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?cl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Wo(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Cn(e,t,n,r){e.addEventListener(t,n,r)}function wh(e,t,n,r){e.removeEventListener(t,n,r)}const _l=Symbol("_vei");function kh(e,t,n,r,s=null){const i=e[_l]||(e[_l]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=vh(t);if(r){const u=i[t]=Ih(r,s);Cn(e,a,u,l)}else o&&(wh(e,a,o,l),i[t]=void 0)}}const bl=/(?:Once|Passive|Capture)$/;function vh(e){let t;if(bl.test(e)){t={};let r;for(;r=e.match(bl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Mt(e.slice(2)),t]}let bi=0;const Th=Promise.resolve(),Sh=()=>bi||(Th.then(()=>bi=0),bi=Date.now());function Ih(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lt(Eh(r,n.value),t,5,[r])};return n.value=e,n.attached=Sh(),n}function Eh(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const yl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xh=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?ph(e,r,o):t==="style"?bh(e,n,r):Ar(t)?Ds(t)||kh(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Oh(e,t,r,o))?(gl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ml(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?gl(e,Ye(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ml(e,t,r,o))};function Oh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&yl(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return yl(t)&&we(n)?!1:t in e}const wl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>Nr(t,n):t};function Ch(e){e.target.composing=!0}function kl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const yi=Symbol("_assign"),Ah={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[yi]=wl(s);const i=r||s.props&&s.props.type==="number";Cn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Us(a)),e[yi](a)}),n&&Cn(e,"change",()=>{e.value=e.value.trim()}),t||(Cn(e,"compositionstart",Ch),Cn(e,"compositionend",kl),Cn(e,"change",kl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[yi]=wl(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Us(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},Lh=["ctrl","shift","alt","meta"],Ph={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)=>Lh.some(n=>e[`${n}Key`]&&!t.includes(n))},Rh=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o<t.length;o++){const a=Ph[t[o]];if(a&&a(s,t))return}return e(s,...i)})},Nh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vl=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=Mt(s.key);if(t.some(o=>o===i||Nh[o]===i))return e(s)})},$h=Le({patchProp:xh},dh);let Tl;function Dh(){return Tl||(Tl=$d($h))}const Mh=(...e)=>{const t=Dh().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=jh(r);if(!s)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Fh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Fh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jh(e){return we(e)?document.querySelector(e):e}/*!
20
+ **/let gi;const cl=typeof window<"u"&&window.trustedTypes;if(cl)try{gi=cl.createPolicy("vue",{createHTML:e=>e})}catch{}const ul=gi?e=>gi.createHTML(e):e=>e,fh="http://www.w3.org/2000/svg",dh="http://www.w3.org/1998/Math/MathML",xt=typeof document<"u"?document:null,fl=xt&&xt.createElement("template"),hh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?xt.createElementNS(fh,e):t==="mathml"?xt.createElementNS(dh,e):n?xt.createElement(e,{is:n}):xt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{fl.innerHTML=ul(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=fl.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]}},ph=Symbol("_vtc");function mh(e,t,n){const r=e[ph];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const dl=Symbol("_vod"),gh=Symbol("_vsh"),_h=Symbol(""),bh=/(^|;)\s*display\s*:/;function yh(e,t,n){const r=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&rs(r,a,"")}else for(const o in t)n[o]==null&&rs(r,o,"");for(const o in n)o==="display"&&(i=!0),rs(r,o,n[o])}else if(s){if(t!==n){const o=r[_h];o&&(n+=";"+o),r.cssText=n,i=bh.test(n)}}else t&&e.removeAttribute("style");dl in e&&(e[dl]=i?r.display:"",e[gh]&&(r.display="none"))}const hl=/\s*!important$/;function rs(e,t,n){if(K(n))n.forEach(r=>rs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=wh(e,t);hl.test(n)?e.setProperty(Mt(r),n.replace(hl,""),"important"):e[r]=n}}const pl=["Webkit","Moz","ms"],_i={};function wh(e,t){const n=_i[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return _i[t]=r;r=Rr(r);for(let s=0;s<pl.length;s++){const i=pl[s]+r;if(i in e)return _i[t]=i}return t}const ml="http://www.w3.org/1999/xlink";function gl(e,t,n,r,s,i=_f(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ml,t.slice(6,t.length)):e.setAttributeNS(ml,t,n):n==null||i&&!Ho(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Dt(n)?String(n):n)}function _l(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ul(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Ho(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Cn(e,t,n,r){e.addEventListener(t,n,r)}function kh(e,t,n,r){e.removeEventListener(t,n,r)}const bl=Symbol("_vei");function vh(e,t,n,r,s=null){const i=e[bl]||(e[bl]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=Th(t);if(r){const u=i[t]=Eh(r,s);Cn(e,a,u,l)}else o&&(kh(e,a,o,l),i[t]=void 0)}}const yl=/(?:Once|Passive|Capture)$/;function Th(e){let t;if(yl.test(e)){t={};let r;for(;r=e.match(yl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Mt(e.slice(2)),t]}let bi=0;const Sh=Promise.resolve(),Ih=()=>bi||(Sh.then(()=>bi=0),bi=Date.now());function Eh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lt(xh(r,n.value),t,5,[r])};return n.value=e,n.attached=Ih(),n}function xh(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Oh=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?mh(e,r,o):t==="style"?yh(e,n,r):Ar(t)?Ds(t)||vh(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ch(e,t,r,o))?(_l(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gl(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?_l(e,Ye(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),gl(e,t,r,o))};function Ch(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&wl(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return wl(t)&&we(n)?!1:t in e}const kl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>Nr(t,n):t};function Ah(e){e.target.composing=!0}function vl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const yi=Symbol("_assign"),Lh={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[yi]=kl(s);const i=r||s.props&&s.props.type==="number";Cn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Us(a)),e[yi](a)}),n&&Cn(e,"change",()=>{e.value=e.value.trim()}),t||(Cn(e,"compositionstart",Ah),Cn(e,"compositionend",vl),Cn(e,"change",vl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[yi]=kl(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Us(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},Ph=["ctrl","shift","alt","meta"],Rh={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)=>Ph.some(n=>e[`${n}Key`]&&!t.includes(n))},wi=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o<t.length;o++){const a=Rh[t[o]];if(a&&a(s,t))return}return e(s,...i)})},Nh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Tl=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=Mt(s.key);if(t.some(o=>o===i||Nh[o]===i))return e(s)})},$h=Le({patchProp:Oh},hh);let Sl;function Dh(){return Sl||(Sl=Dd($h))}const Mh=(...e)=>{const t=Dh().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=jh(r);if(!s)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Fh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Fh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jh(e){return we(e)?document.querySelector(e):e}/*!
21
21
  * pinia v2.3.0
22
22
  * (c) 2024 Eduardo San Martin Morote
23
23
  * @license MIT
24
- */let Sl;const ss=e=>Sl=e,Il=Symbol();function wi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var cr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(cr||(cr={}));function Uh(){const e=Hs(!0),t=e.run(()=>te({}));let n=[],r=[];const s=ei({install(i){ss(s),s._a=i,i.provide(Il,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const El=()=>{};function xl(e,t,n,r=El){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Vo()&&_f(s),s}function An(e,...t){e.slice().forEach(n=>{n(...t)})}const Wh=e=>e(),Ol=Symbol(),ki=Symbol();function vi(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],s=e[n];wi(s)&&wi(r)&&e.hasOwnProperty(n)&&!ye(r)&&!jt(r)?e[n]=vi(s,r):e[n]=r}return e}const Hh=Symbol();function zh(e){return!wi(e)||!e.hasOwnProperty(Hh)}const{assign:zt}=Object;function Kh(e){return!!(ye(e)&&e.effect)}function Vh(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=Wf(n.state.value[e]);return zt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=ei(rt(()=>{ss(n);const m=n._s.get(e);return o[d].call(m,m)})),f),{}))}return l=Cl(e,u,t,n,r,!0),l}function Cl(e,t,n={},r,s,i){let o;const a=zt({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],m;const k=r.state.value[e];!i&&!k&&(r.state.value[e]={}),te({});let w;function E(M){let U;u=c=!1,typeof M=="function"?(M(r.state.value[e]),U={type:cr.patchFunction,storeId:e,events:m}):(vi(r.state.value[e],M),U={type:cr.patchObject,payload:M,storeId:e,events:m});const Z=w=Symbol();ma().then(()=>{w===Z&&(u=!0)}),c=!0,An(f,U,r.state.value[e])}const _=i?function(){const{state:U}=n,Z=U?U():{};this.$patch(q=>{zt(q,Z)})}:El;function y(){o.stop(),f=[],d=[],r._s.delete(e)}const I=(M,U="")=>{if(Ol in M)return M[ki]=U,M;const Z=function(){ss(r);const q=Array.from(arguments),Q=[],Ce=[];function it(G){Q.push(G)}function Yt(G){Ce.push(G)}An(d,{args:q,name:Z[ki],store:O,after:it,onError:Yt});let ge;try{ge=M.apply(this&&this.$id===e?this:O,q)}catch(G){throw An(Ce,G),G}return ge instanceof Promise?ge.then(G=>(An(Q,G),G)).catch(G=>(An(Ce,G),Promise.reject(G))):(An(Q,ge),ge)};return Z[Ol]=!0,Z[ki]=U,Z},g={_p:r,$id:e,$onAction:xl.bind(null,d),$patch:E,$reset:_,$subscribe(M,U={}){const Z=xl(f,M,U.detached,()=>q()),q=o.run(()=>ft(()=>r.state.value[e],Q=>{(U.flush==="sync"?c:u)&&M({storeId:e,type:cr.direct,events:m},Q)},zt({},l,U)));return Z},$dispose:y},O=Hr(g);r._s.set(e,O);const L=(r._a&&r._a.runWithContext||Wh)(()=>r._e.run(()=>(o=Hs()).run(()=>t({action:I}))));for(const M in L){const U=L[M];if(ye(U)&&!Kh(U)||jt(U))i||(k&&zh(U)&&(ye(U)?U.value=k[M]:vi(U,k[M])),r.state.value[e][M]=U);else if(typeof U=="function"){const Z=I(U,M);L[M]=Z,a.actions[M]=U}}return zt(O,L),zt(ee(O),L),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:M=>{E(U=>{zt(U,M)})}}),r._p.forEach(M=>{zt(O,o.run(()=>M({store:O,app:r._a,pinia:r,options:a})))}),k&&i&&n.hydrate&&n.hydrate(O.$state,k),u=!0,c=!0,O}/*! #__NO_SIDE_EFFECTS__ */function Al(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const u=Od();return a=a||(u?Ue(Il,null):null),a&&ss(a),a=Sl,a._s.has(r)||(i?Cl(r,t,s,a):Vh(r,s,a)),a._s.get(r)}return o.$id=r,o}const Ll=Symbol("$auth0");function pt(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 s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}typeof SuppressedError=="function"&&SuppressedError;var ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Si(e,t){return e(t={exports:{}},t.exports),t.exports}var cn=Si(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var s=this;this.locked=new Map,this.addToLocked=function(i,o){var a=s.locked.get(i);a===void 0?o===void 0?s.locked.set(i,[]):s.locked.set(i,[o]):o!==void 0&&(a.unshift(o),s.locked.set(i,a))},this.isLocked=function(i){return s.locked.has(i)},this.lock=function(i){return new Promise(function(o,a){s.isLocked(i)?s.addToLocked(i,o):(s.addToLocked(i),o())})},this.unlock=function(i){var o=s.locked.get(i);if(o!==void 0&&o.length!==0){var a=o.pop();s.locked.set(i,o),a!==void 0&&setTimeout(a,0)}else s.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});Ti(cn);var Bh=Ti(Si(function(e,t){var n=ln&&ln.__awaiter||function(c,f,d,m){return new(d||(d=Promise))(function(k,w){function E(I){try{y(m.next(I))}catch(g){w(g)}}function _(I){try{y(m.throw(I))}catch(g){w(g)}}function y(I){I.done?k(I.value):new d(function(g){g(I.value)}).then(E,_)}y((m=m.apply(c,f||[])).next())})},r=ln&&ln.__generator||function(c,f){var d,m,k,w,E={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return w={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function _(y){return function(I){return function(g){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,m&&(k=2&g[0]?m.return:g[0]?m.throw||((k=m.return)&&k.call(m),0):m.next)&&!(k=k.call(m,g[1])).done)return k;switch(m=0,k&&(g=[2&g[0],k.value]),g[0]){case 0:case 1:k=g;break;case 4:return E.label++,{value:g[1],done:!1};case 5:E.label++,m=g[1],g=[0];continue;case 7:g=E.ops.pop(),E.trys.pop();continue;default:if(!((k=(k=E.trys).length>0&&k[k.length-1])||g[0]!==6&&g[0]!==2)){E=0;continue}if(g[0]===3&&(!k||g[1]>k[0]&&g[1]<k[3])){E.label=g[1];break}if(g[0]===6&&E.label<k[1]){E.label=k[1],k=g;break}if(k&&E.label<k[2]){E.label=k[2],E.ops.push(g);break}k[2]&&E.ops.pop(),E.trys.pop();continue}g=f.call(c,E)}catch(O){g=[6,O],m=0}finally{d=k=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([y,I])}}},s=ln;Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},getItem:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},clear:function(){return n(s,void 0,void 0,function(){return r(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},setItem:function(c,f){return n(s,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,k,w,E,_,y,I;return r(this,function(g){switch(g.label){case 0:m=Date.now()+l(4),k=Date.now()+d,w=i+"-"+f,E=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<k?[4,a(30)]:[3,8];case 2:return g.sent(),E.getItemSync(w)!==null?[3,5]:(_=this.id+"-"+f+"-"+m,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),E.setItemSync(w,JSON.stringify({id:this.id,iat:m,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(y=E.getItemSync(w))!==null&&(I=JSON.parse(y)).id===this.id&&I.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(w,m),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(k)];case 6:g.sent(),g.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(k){return setTimeout(function(){return n(m,void 0,void 0,function(){var w,E,_;return r(this,function(y){switch(y.label){case 0:return[4,cn.default().lock(d)];case 1:return y.sent(),this.acquiredIatSet.has(d)?(w=this.storageHandler===void 0?o:this.storageHandler,(E=w.getItemSync(f))===null?(cn.default().unlock(d),[2]):((_=JSON.parse(E)).timeRefreshed=Date.now(),w.setItemSync(f,JSON.stringify(_)),cn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(cn.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 k=!1,w=Date.now(),E=!1;function _(){if(E||(window.removeEventListener("storage",_),c.removeFromWaiting(_),clearTimeout(y),E=!0),!k){k=!0;var I=50-(Date.now()-w);I>0?setTimeout(m,I):m(null)}}window.addEventListener("storage",_),c.addToWaiting(_);var y=setTimeout(_,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,k,w;return r(this,function(E){switch(E.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,m=i+"-"+f,(k=d.getItemSync(m))===null?[2]:(w=JSON.parse(k)).id!==this.id?[3,2]:[4,cn.default().lock(w.iat)];case 1:E.sent(),this.acquiredIatSet.delete(w.iat),d.removeItemSync(m),cn.default().unlock(w.iat),c.notifyWaiters(),E.label=2;case 2:return[2]}})})},c.lockCorrector=function(f){for(var d=Date.now()-5e3,m=f,k=[],w=0;;){var E=m.keySync(w);if(E===null)break;k.push(E),w++}for(var _=!1,y=0;y<k.length;y++){var I=k[y];if(I.includes(i)){var g=m.getItemSync(I);if(g!==null){var O=JSON.parse(g);(O.timeRefreshed===void 0&&O.timeAcquired<d||O.timeRefreshed!==void 0&&O.timeRefreshed<d)&&(m.removeItemSync(I),_=!0)}}}_&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=u}));const Gh={timeoutInSeconds:60},Pl={name:"auth0-spa-js",version:"2.1.3"},Rl=()=>Date.now();class $e extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,$e.prototype)}static fromPayload({error:t,error_description:n}){return new $e(t,n)}}class Ii extends $e{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Ii.prototype)}}class ur extends $e{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,ur.prototype)}}class Ei extends ur{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Ei.prototype)}}class xi extends $e{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,xi.prototype)}}class Oi extends $e{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Oi.prototype)}}class is extends $e{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Nl(t,["default"])}', scope: '${Nl(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,is.prototype)}}function Nl(e,t=[]){return e&&!t.includes(e)?e:""}const os=()=>window.crypto,Ci=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(os().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},$l=e=>btoa(e),Ai=e=>{var{clientId:t}=e,n=pt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(s=>r[s]!==void 0).reduce((s,i)=>Object.assign(Object.assign({},s),{[i]:r[i]}),{}))(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,"+")),Zh=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Yh=async(e,t,n,r,s,i,o=1e4)=>s?(async(a,l,u,c,f,d,m)=>{return k={auth:{audience:l,scope:u},timeout:f,fetchUrl:a,fetchOptions:c,useFormData:m},w=d,new Promise(function(E,_){const y=new MessageChannel;y.port1.onmessage=function(I){I.data.error?_(new Error(I.data.error)):E(I.data),y.port1.close()},w.postMessage(k,[y.port2])});var k,w})(e,t,n,r,o,s,i):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([Zh(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 Xh(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a}=e,l=pt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?Ai(l):JSON.stringify(l);return await async function(c,f,d,m,k,w,E){let _,y=null;for(let M=0;M<3;M++)try{_=await Yh(c,d,m,k,w,E,f),y=null;break}catch(U){y=U}if(y)throw y;const I=_.json,{error:g,error_description:O}=I,D=pt(I,["error","error_description"]),{ok:L}=_;if(!L){const M=O||`HTTP error. Unable to fetch ${c}`;throw g==="mfa_required"?new Oi(g,M,D.mfa_token):g==="missing_refresh_token"?new is(d,m):new $e(g||"request_error",M)}return D}(`${n}/oauth/token`,r,s||"default",i,{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 as=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};let un=class No{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,s,i]=t.split("::");return new No({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new No({scope:n,audience:r,clientId:s})}},Jh=class{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 Ml{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 qh{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Rl}async setIdToken(t,n,r){var s;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:r}),await((s=this.keyManifest)===null||s===void 0?void 0:s.add(i))}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 s=await this.cache.get(t.toKey());if(!s){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(s=await this.cache.get(l))}if(!s)return;const i=await this.nowProvider(),o=Math.floor(i/1e3);return s.expiresAt-n<o?s.body.refresh_token?(s.body={refresh_token:s.body.refresh_token},await this.cache.set(t.toKey(),s),s.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):s.body}async set(t){var n;const r=new un({clientId:t.client_id,scope:t.scope,audience:t.audience}),s=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),s),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(s=>!t||s.includes(t)).reduce(async(s,i)=>{await s,await this.cache.remove(i)},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 un({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var s;const i=un.fromKey(r),o=new Set(i.scope&&i.scope.split(" ")),a=((s=t.scope)===null||s===void 0?void 0:s.split(" "))||[],l=i.scope&&a.reduce((u,c)=>u&&o.has(c),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId&&i.audience===t.audience&&l})[0]}}let Qh=class{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 fr=e=>typeof e=="number",ep=["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 fn=Si(function(e,t){var n=ln&&ln.__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 s(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 i(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<c.length;d++){var m=c[d].split("="),k=m.slice(1).join("=");k.charAt(0)==='"'&&(k=k.slice(1,-1));try{u[m[0].replace(f,decodeURIComponent)]=k.replace(f,decodeURIComponent)}catch{}}return u}function o(){return i(document.cookie)}function a(l,u,c){document.cookie=s(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=s,t.parse=i,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}))}});Ti(fn),fn.encode,fn.parse,fn.getAll;var tp=fn.get,Fl=fn.set,jl=fn.remove;const Ln={get(e){const t=tp(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),Fl(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),jl(e,n)}},np={get:e=>Ln.get(e)||Ln.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),Fl(`_legacy_${e}`,JSON.stringify(t),r),Ln.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),jl(e,n),Ln.remove(e,t),Ln.remove(`_legacy_${e}`,t)}},rp={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 Li,sp=function(e){return Li=Li||function(t,n,r){var s=function(l,u){var c=atob(l);return c}(t),i=s.indexOf(`
25
- `,10)+1,o=s.substring(i)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(Li,e)};const Pi={};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 op={memory:()=>new Ml().enclosedCache,localstorage:()=>new Jh},Ul=e=>op[e],Wl=e=>{const{openUrl:t,onRedirect:n}=e,r=pt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},Ri=new Bh;class ap{constructor(t){let n,r;if(this.userCache=new Ml().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Ri.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(!os())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(os().subtle===void 0)throw new Error(`
24
+ */let Il;const ss=e=>Il=e,El=Symbol();function ki(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var cr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(cr||(cr={}));function Uh(){const e=Hs(!0),t=e.run(()=>te({}));let n=[],r=[];const s=ei({install(i){ss(s),s._a=i,i.provide(El,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const xl=()=>{};function Ol(e,t,n,r=xl){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Bo()&&bf(s),s}function An(e,...t){e.slice().forEach(n=>{n(...t)})}const Wh=e=>e(),Cl=Symbol(),vi=Symbol();function Ti(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],s=e[n];ki(s)&&ki(r)&&e.hasOwnProperty(n)&&!ye(r)&&!jt(r)?e[n]=Ti(s,r):e[n]=r}return e}const Hh=Symbol();function zh(e){return!ki(e)||!e.hasOwnProperty(Hh)}const{assign:zt}=Object;function Kh(e){return!!(ye(e)&&e.effect)}function Vh(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=Hf(n.state.value[e]);return zt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=ei(rt(()=>{ss(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,s,i){let o;const a=zt({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],m;const k=r.state.value[e];!i&&!k&&(r.state.value[e]={}),te({});let w;function E(M){let U;u=c=!1,typeof M=="function"?(M(r.state.value[e]),U={type:cr.patchFunction,storeId:e,events:m}):(Ti(r.state.value[e],M),U={type:cr.patchObject,payload:M,storeId:e,events:m});const Z=w=Symbol();ga().then(()=>{w===Z&&(u=!0)}),c=!0,An(f,U,r.state.value[e])}const _=i?function(){const{state:U}=n,Z=U?U():{};this.$patch(q=>{zt(q,Z)})}:xl;function y(){o.stop(),f=[],d=[],r._s.delete(e)}const T=(M,U="")=>{if(Cl in M)return M[vi]=U,M;const Z=function(){ss(r);const q=Array.from(arguments),Q=[],Ce=[];function it(G){Q.push(G)}function Yt(G){Ce.push(G)}An(d,{args:q,name:Z[vi],store:O,after:it,onError:Yt});let ge;try{ge=M.apply(this&&this.$id===e?this:O,q)}catch(G){throw An(Ce,G),G}return ge instanceof Promise?ge.then(G=>(An(Q,G),G)).catch(G=>(An(Ce,G),Promise.reject(G))):(An(Q,ge),ge)};return Z[Cl]=!0,Z[vi]=U,Z},g={_p:r,$id:e,$onAction:Ol.bind(null,d),$patch:E,$reset:_,$subscribe(M,U={}){const Z=Ol(f,M,U.detached,()=>q()),q=o.run(()=>ft(()=>r.state.value[e],Q=>{(U.flush==="sync"?c:u)&&M({storeId:e,type:cr.direct,events:m},Q)},zt({},l,U)));return Z},$dispose:y},O=Hr(g);r._s.set(e,O);const L=(r._a&&r._a.runWithContext||Wh)(()=>r._e.run(()=>(o=Hs()).run(()=>t({action:T}))));for(const M in L){const U=L[M];if(ye(U)&&!Kh(U)||jt(U))i||(k&&zh(U)&&(ye(U)?U.value=k[M]:Ti(U,k[M])),r.state.value[e][M]=U);else if(typeof U=="function"){const Z=T(U,M);L[M]=Z,a.actions[M]=U}}return zt(O,L),zt(ee(O),L),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:M=>{E(U=>{zt(U,M)})}}),r._p.forEach(M=>{zt(O,o.run(()=>M({store:O,app:r._a,pinia:r,options:a})))}),k&&i&&n.hydrate&&n.hydrate(O.$state,k),u=!0,c=!0,O}/*! #__NO_SIDE_EFFECTS__ */function Ll(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const u=Cd();return a=a||(u?Ue(El,null):null),a&&ss(a),a=Il,a._s.has(r)||(i?Al(r,t,s,a):Vh(r,s,a)),a._s.get(r)}return o.$id=r,o}const Pl=Symbol("$auth0");function pt(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 s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}typeof SuppressedError=="function"&&SuppressedError;var ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ii(e,t){return e(t={exports:{}},t.exports),t.exports}var cn=Ii(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var s=this;this.locked=new Map,this.addToLocked=function(i,o){var a=s.locked.get(i);a===void 0?o===void 0?s.locked.set(i,[]):s.locked.set(i,[o]):o!==void 0&&(a.unshift(o),s.locked.set(i,a))},this.isLocked=function(i){return s.locked.has(i)},this.lock=function(i){return new Promise(function(o,a){s.isLocked(i)?s.addToLocked(i,o):(s.addToLocked(i),o())})},this.unlock=function(i){var o=s.locked.get(i);if(o!==void 0&&o.length!==0){var a=o.pop();s.locked.set(i,o),a!==void 0&&setTimeout(a,0)}else s.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});Si(cn);var Bh=Si(Ii(function(e,t){var n=ln&&ln.__awaiter||function(c,f,d,m){return new(d||(d=Promise))(function(k,w){function E(T){try{y(m.next(T))}catch(g){w(g)}}function _(T){try{y(m.throw(T))}catch(g){w(g)}}function y(T){T.done?k(T.value):new d(function(g){g(T.value)}).then(E,_)}y((m=m.apply(c,f||[])).next())})},r=ln&&ln.__generator||function(c,f){var d,m,k,w,E={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return w={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function _(y){return function(T){return function(g){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,m&&(k=2&g[0]?m.return:g[0]?m.throw||((k=m.return)&&k.call(m),0):m.next)&&!(k=k.call(m,g[1])).done)return k;switch(m=0,k&&(g=[2&g[0],k.value]),g[0]){case 0:case 1:k=g;break;case 4:return E.label++,{value:g[1],done:!1};case 5:E.label++,m=g[1],g=[0];continue;case 7:g=E.ops.pop(),E.trys.pop();continue;default:if(!((k=(k=E.trys).length>0&&k[k.length-1])||g[0]!==6&&g[0]!==2)){E=0;continue}if(g[0]===3&&(!k||g[1]>k[0]&&g[1]<k[3])){E.label=g[1];break}if(g[0]===6&&E.label<k[1]){E.label=k[1],k=g;break}if(k&&E.label<k[2]){E.label=k[2],E.ops.push(g);break}k[2]&&E.ops.pop(),E.trys.pop();continue}g=f.call(c,E)}catch(O){g=[6,O],m=0}finally{d=k=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([y,T])}}},s=ln;Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},getItem:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},clear:function(){return n(s,void 0,void 0,function(){return r(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},setItem:function(c,f){return n(s,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,k,w,E,_,y,T;return r(this,function(g){switch(g.label){case 0:m=Date.now()+l(4),k=Date.now()+d,w=i+"-"+f,E=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<k?[4,a(30)]:[3,8];case 2:return g.sent(),E.getItemSync(w)!==null?[3,5]:(_=this.id+"-"+f+"-"+m,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),E.setItemSync(w,JSON.stringify({id:this.id,iat:m,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(y=E.getItemSync(w))!==null&&(T=JSON.parse(y)).id===this.id&&T.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(w,m),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(k)];case 6:g.sent(),g.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(k){return setTimeout(function(){return n(m,void 0,void 0,function(){var w,E,_;return r(this,function(y){switch(y.label){case 0:return[4,cn.default().lock(d)];case 1:return y.sent(),this.acquiredIatSet.has(d)?(w=this.storageHandler===void 0?o:this.storageHandler,(E=w.getItemSync(f))===null?(cn.default().unlock(d),[2]):((_=JSON.parse(E)).timeRefreshed=Date.now(),w.setItemSync(f,JSON.stringify(_)),cn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(cn.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 k=!1,w=Date.now(),E=!1;function _(){if(E||(window.removeEventListener("storage",_),c.removeFromWaiting(_),clearTimeout(y),E=!0),!k){k=!0;var T=50-(Date.now()-w);T>0?setTimeout(m,T):m(null)}}window.addEventListener("storage",_),c.addToWaiting(_);var y=setTimeout(_,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,k,w;return r(this,function(E){switch(E.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,m=i+"-"+f,(k=d.getItemSync(m))===null?[2]:(w=JSON.parse(k)).id!==this.id?[3,2]:[4,cn.default().lock(w.iat)];case 1:E.sent(),this.acquiredIatSet.delete(w.iat),d.removeItemSync(m),cn.default().unlock(w.iat),c.notifyWaiters(),E.label=2;case 2:return[2]}})})},c.lockCorrector=function(f){for(var d=Date.now()-5e3,m=f,k=[],w=0;;){var E=m.keySync(w);if(E===null)break;k.push(E),w++}for(var _=!1,y=0;y<k.length;y++){var T=k[y];if(T.includes(i)){var g=m.getItemSync(T);if(g!==null){var O=JSON.parse(g);(O.timeRefreshed===void 0&&O.timeAcquired<d||O.timeRefreshed!==void 0&&O.timeRefreshed<d)&&(m.removeItemSync(T),_=!0)}}}_&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=u}));const Gh={timeoutInSeconds:60},Rl={name:"auth0-spa-js",version:"2.1.3"},Nl=()=>Date.now();class $e extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,$e.prototype)}static fromPayload({error:t,error_description:n}){return new $e(t,n)}}class Ei extends $e{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Ei.prototype)}}class ur extends $e{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,ur.prototype)}}class xi extends ur{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,xi.prototype)}}class Oi extends $e{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Oi.prototype)}}class Ci extends $e{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Ci.prototype)}}class is extends $e{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,is.prototype)}}function $l(e,t=[]){return e&&!t.includes(e)?e:""}const os=()=>window.crypto,Ai=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(os().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Dl=e=>btoa(e),Li=e=>{var{clientId:t}=e,n=pt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(s=>r[s]!==void 0).reduce((s,i)=>Object.assign(Object.assign({},s),{[i]:r[i]}),{}))(Object.assign({client_id:t},n))).toString()},Ml=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Zh=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Yh=async(e,t,n,r,s,i,o=1e4)=>s?(async(a,l,u,c,f,d,m)=>{return k={auth:{audience:l,scope:u},timeout:f,fetchUrl:a,fetchOptions:c,useFormData:m},w=d,new Promise(function(E,_){const y=new MessageChannel;y.port1.onmessage=function(T){T.data.error?_(new Error(T.data.error)):E(T.data),y.port1.close()},w.postMessage(k,[y.port2])});var k,w})(e,t,n,r,o,s,i):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([Zh(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 Xh(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a}=e,l=pt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?Li(l):JSON.stringify(l);return await async function(c,f,d,m,k,w,E){let _,y=null;for(let M=0;M<3;M++)try{_=await Yh(c,d,m,k,w,E,f),y=null;break}catch(U){y=U}if(y)throw y;const T=_.json,{error:g,error_description:O}=T,D=pt(T,["error","error_description"]),{ok:L}=_;if(!L){const M=O||`HTTP error. Unable to fetch ${c}`;throw g==="mfa_required"?new Ci(g,M,D.mfa_token):g==="missing_refresh_token"?new is(d,m):new $e(g||"request_error",M)}return D}(`${n}/oauth/token`,r,s||"default",i,{method:"POST",body:u,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Rl))}},t,a)}const as=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};let un=class $o{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,s,i]=t.split("::");return new $o({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new $o({scope:n,audience:r,clientId:s})}},Jh=class{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 qh{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Nl}async setIdToken(t,n,r){var s;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:r}),await((s=this.keyManifest)===null||s===void 0?void 0:s.add(i))}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 s=await this.cache.get(t.toKey());if(!s){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(s=await this.cache.get(l))}if(!s)return;const i=await this.nowProvider(),o=Math.floor(i/1e3);return s.expiresAt-n<o?s.body.refresh_token?(s.body={refresh_token:s.body.refresh_token},await this.cache.set(t.toKey(),s),s.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):s.body}async set(t){var n;const r=new un({clientId:t.client_id,scope:t.scope,audience:t.audience}),s=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),s),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(s=>!t||s.includes(t)).reduce(async(s,i)=>{await s,await this.cache.remove(i)},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 un({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var s;const i=un.fromKey(r),o=new Set(i.scope&&i.scope.split(" ")),a=((s=t.scope)===null||s===void 0?void 0:s.split(" "))||[],l=i.scope&&a.reduce((u,c)=>u&&o.has(c),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId&&i.audience===t.audience&&l})[0]}}let Qh=class{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 fr=e=>typeof e=="number",ep=["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 fn=Ii(function(e,t){var n=ln&&ln.__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 s(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 i(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<c.length;d++){var m=c[d].split("="),k=m.slice(1).join("=");k.charAt(0)==='"'&&(k=k.slice(1,-1));try{u[m[0].replace(f,decodeURIComponent)]=k.replace(f,decodeURIComponent)}catch{}}return u}function o(){return i(document.cookie)}function a(l,u,c){document.cookie=s(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=s,t.parse=i,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}))}});Si(fn),fn.encode,fn.parse,fn.getAll;var tp=fn.get,jl=fn.set,Ul=fn.remove;const Ln={get(e){const t=tp(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)}},np={get:e=>Ln.get(e)||Ln.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),Ln.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ul(e,n),Ln.remove(e,t),Ln.remove(`_legacy_${e}`,t)}},rp={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 Pi,sp=function(e){return Pi=Pi||function(t,n,r){var s=function(l,u){var c=atob(l);return c}(t),i=s.indexOf(`
25
+ `,10)+1,o=s.substring(i)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(Pi,e)};const Ri={};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 op={memory:()=>new Fl().enclosedCache,localstorage:()=>new Jh},Wl=e=>op[e],Hl=e=>{const{openUrl:t,onRedirect:n}=e,r=pt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},Ni=new Bh;class ap{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 Ni.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(!os())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(os().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",!Ul(n))throw new Error(`Invalid cache location "${n}"`);r=Ul(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Ln:np,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const s=t.useCookiesForTransactions?this.cookieStorage:rp;var i;this.scope=as("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Qh(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Rl,this.cacheManager=new qh(r,r.allKeys?void 0:new ip(r,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),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 sp)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Pl)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Ai(t)}`)}async _verifyIdToken(t,n,r){const s=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,k,w]=d;if(d.length!==3||!m||!k||!w)throw new Error("ID token could not be decoded");const E=JSON.parse(Dl(k)),_={__raw:f},y={};return Object.keys(E).forEach(I=>{_[I]=E[I],ep.includes(I)||(y[I]=E[I])}),{encoded:{header:m,payload:k,signature:w},header:JSON.parse(Dl(m)),claims:_,user:y}})(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&&!fr(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||!fr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!fr(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&&fr(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&&fr(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:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:s});var i}_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 s=$l(Ci()),i=$l(Ci()),o=Ci(),a=(c=>{const f=new Uint8Array(c);return(d=>{const m={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,k=>m[k])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async c=>await os().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,d,m,k,w,E,_)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),d),{scope:as(f,d.scope),response_type:"code",response_mode:_||"query",state:m,nonce:k,redirect_uri:E||c.authorizationParams.redirect_uri,code_challenge:w,code_challenge_method:"S256"}))(this.options,this.scope,t,s,i,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:i,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:s,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 s=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=s.url;const i=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 xi(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(f),u(new Ei(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($e.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(s.state!==i.state)throw new $e("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:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:s.redirect_uri},{nonceIn:s.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=Wl(t),{openUrl:s,fragment:i,appState:o}=r,a=pt(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=pt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o}),l&&{organization:l}));const d=i?`${c}#${i}`:c;s?await s(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:s,error:i,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 $e("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new Ii(i,o||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new $e("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:s},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:as(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),s=await((i,o)=>{let a=Pi[o];return a||(a=i().finally(()=>{delete Pi[o],a=null}),Pi[o]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?s:s?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=pt(t,["cacheMode"]);if(n!=="off"){const s=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(s)return s}if(n!=="cache-only"){if(!await(async(s,i=3)=>{for(let o=0;o<i;o++)if(await s())return!0;return!1})(()=>Ri.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new ur;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 s=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:i,access_token:o,oauthTokenScope:a,expires_in:l}=s;return Object.assign(Object.assign({id_token:i,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Ri.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const s=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:as(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Gh),n),await this.loginWithPopup(s,n),(await this.cacheManager.get(new un({scope:s.authorizationParams.scope,audience:s.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,s=pt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Ai(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){const n=Wl(t),{openUrl:r}=n,s=pt(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 i=this._buildLogoutUrl(s);r?await r(i):r!==!1&&window.location.assign(i)}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:s,state:i,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 $e("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((k,w,E=60)=>new Promise((_,y)=>{const I=window.document.createElement("iframe");I.setAttribute("width","0"),I.setAttribute("height","0"),I.style.display="none";const g=()=>{window.document.body.contains(I)&&(window.document.body.removeChild(I),window.removeEventListener("message",O,!1))};let O;const D=setTimeout(()=>{y(new ur),g()},1e3*E);O=function(L){if(L.origin!=w||!L.data||L.data.type!=="authorization_response")return;const M=L.source;M&&M.close(),L.data.response.error?y($e.fromPayload(L.data.response)):_(L.data.response),clearTimeout(D),window.removeEventListener("message",O,!1),setTimeout(g,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(I),I.setAttribute("src",k)}))(s,this.domainUrl,f);if(i!==d.state)throw new $e("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 un({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 is(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,s=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),s&&{timeout:s}));return Object.assign(Object.assign({},i),{scope:t.authorizationParams.scope,oauthTokenScope:i.scope,audience:t.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw i}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,s=pt(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(s)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new un({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 s=await this.cacheManager.get(new un({scope:t,audience:n,clientId:r}),60);if(s&&s.access_token){const{access_token:i,oauthTokenScope:o,expires_in:a}=s,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:i},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:r,organization:s}=n||{},i=await Xh(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(i.id_token,r,s);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(s||o.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:o})}}function dr(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 dn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},lp={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:dn,loginWithRedirect:dn,getAccessTokenSilently:dn,getAccessTokenWithPopup:dn,logout:dn,checkSession:dn,handleRedirectCallback:dn},cp=te(lp);class up{constructor(t,n){var r,s;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,s=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter(i=>!s.includes(i)).forEach(i=>r[i]=r[i].bind(r))}install(t){this._client=new ap(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(Ll,this),cp.value=this}async loginWithRedirect(t){return dr(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return dr(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 dr(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return dr(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,s;const i=window.location.search;try{if((i.includes("code=")||i.includes("error="))&&i.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(((s=this.pluginOptions)===null||s===void 0?void 0:s.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(s){throw this.error.value=s,s}finally{n&&await this.__refreshState()}return r}}function Hl(e,t){return dr(e),new up(e,t)}function fp(){return Ue(Ll)}/*!
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?Ln:np,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const s=t.useCookiesForTransactions?this.cookieStorage:rp;var i;this.scope=as("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Qh(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Nl,this.cacheManager=new qh(r,r.allKeys?void 0:new ip(r,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),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 sp)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Rl)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Li(t)}`)}async _verifyIdToken(t,n,r){const s=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,k,w]=d;if(d.length!==3||!m||!k||!w)throw new Error("ID token could not be decoded");const E=JSON.parse(Ml(k)),_={__raw:f},y={};return Object.keys(E).forEach(T=>{_[T]=E[T],ep.includes(T)||(y[T]=E[T])}),{encoded:{header:m,payload:k,signature:w},header:JSON.parse(Ml(m)),claims:_,user:y}})(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&&!fr(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||!fr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!fr(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&&fr(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&&fr(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:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:s});var i}_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 s=Dl(Ai()),i=Dl(Ai()),o=Ai(),a=(c=>{const f=new Uint8Array(c);return(d=>{const m={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,k=>m[k])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async c=>await os().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,d,m,k,w,E,_)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),d),{scope:as(f,d.scope),response_type:"code",response_mode:_||"query",state:m,nonce:k,redirect_uri:E||c.authorizationParams.redirect_uri,code_challenge:w,code_challenge_method:"S256"}))(this.options,this.scope,t,s,i,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:i,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:s,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 s=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=s.url;const i=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 Oi(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(f),u(new xi(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($e.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(s.state!==i.state)throw new $e("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:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:s.redirect_uri},{nonceIn:s.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:s,fragment:i,appState:o}=r,a=pt(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=pt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o}),l&&{organization:l}));const d=i?`${c}#${i}`:c;s?await s(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:s,error:i,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 $e("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new Ei(i,o||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new $e("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:s},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:as(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),s=await((i,o)=>{let a=Ri[o];return a||(a=i().finally(()=>{delete Ri[o],a=null}),Ri[o]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?s:s?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=pt(t,["cacheMode"]);if(n!=="off"){const s=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(s)return s}if(n!=="cache-only"){if(!await(async(s,i=3)=>{for(let o=0;o<i;o++)if(await s())return!0;return!1})(()=>Ni.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new ur;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 s=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:i,access_token:o,oauthTokenScope:a,expires_in:l}=s;return Object.assign(Object.assign({id_token:i,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Ni.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const s=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:as(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Gh),n),await this.loginWithPopup(s,n),(await this.cacheManager.get(new un({scope:s.authorizationParams.scope,audience:s.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,s=pt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Li(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){const n=Hl(t),{openUrl:r}=n,s=pt(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 i=this._buildLogoutUrl(s);r?await r(i):r!==!1&&window.location.assign(i)}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:s,state:i,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 $e("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((k,w,E=60)=>new Promise((_,y)=>{const T=window.document.createElement("iframe");T.setAttribute("width","0"),T.setAttribute("height","0"),T.style.display="none";const g=()=>{window.document.body.contains(T)&&(window.document.body.removeChild(T),window.removeEventListener("message",O,!1))};let O;const D=setTimeout(()=>{y(new ur),g()},1e3*E);O=function(L){if(L.origin!=w||!L.data||L.data.type!=="authorization_response")return;const M=L.source;M&&M.close(),L.data.response.error?y($e.fromPayload(L.data.response)):_(L.data.response),clearTimeout(D),window.removeEventListener("message",O,!1),setTimeout(g,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(T),T.setAttribute("src",k)}))(s,this.domainUrl,f);if(i!==d.state)throw new $e("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 un({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 is(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,s=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),s&&{timeout:s}));return Object.assign(Object.assign({},i),{scope:t.authorizationParams.scope,oauthTokenScope:i.scope,audience:t.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw i}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,s=pt(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(s)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new un({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 s=await this.cacheManager.get(new un({scope:t,audience:n,clientId:r}),60);if(s&&s.access_token){const{access_token:i,oauthTokenScope:o,expires_in:a}=s,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:i},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:r,organization:s}=n||{},i=await Xh(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(i.id_token,r,s);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(s||o.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:o})}}function dr(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 dn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},lp={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:dn,loginWithRedirect:dn,getAccessTokenSilently:dn,getAccessTokenWithPopup:dn,logout:dn,checkSession:dn,handleRedirectCallback:dn},cp=te(lp);class up{constructor(t,n){var r,s;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,s=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter(i=>!s.includes(i)).forEach(i=>r[i]=r[i].bind(r))}install(t){this._client=new ap(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(Pl,this),cp.value=this}async loginWithRedirect(t){return dr(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return dr(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 dr(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return dr(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,s;const i=window.location.search;try{if((i.includes("code=")||i.includes("error="))&&i.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(((s=this.pluginOptions)===null||s===void 0?void 0:s.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(s){throw this.error.value=s,s}finally{n&&await this.__refreshState()}return r}}function zl(e,t){return dr(e),new up(e,t)}function fp(){return Ue(Pl)}/*!
28
28
  * shared v11.0.1
29
29
  * (c) 2024 kazuya kawaguchi
30
30
  * Released under the MIT License.
31
- */const ls=typeof window<"u",Kt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),dp=(e,t,n)=>hp({l:e,k:t,s:n}),hp=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Te=e=>typeof e=="number"&&isFinite(e),pp=e=>Ni(e)==="[object Date]",Pn=e=>Ni(e)==="[object RegExp]",cs=e=>Y(e)&&Object.keys(e).length===0,Ie=Object.assign,mp=Object.create,fe=(e=null)=>mp(e);let zl;const hn=()=>zl||(zl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:fe());function Kl(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const gp=Object.prototype.hasOwnProperty;function st(e,t){return gp.call(e,t)}const Se=Array.isArray,pe=e=>typeof e=="function",j=e=>typeof e=="string",ne=e=>typeof e=="boolean",se=e=>e!==null&&typeof e=="object",_p=e=>se(e)&&pe(e.then)&&pe(e.catch),Vl=Object.prototype.toString,Ni=e=>Vl.call(e),Y=e=>Ni(e)==="[object Object]",bp=e=>e==null?"":Se(e)||Y(e)&&e.toString===Vl?JSON.stringify(e,null,2):String(e);function $i(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function yp(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const us=e=>!se(e)||Se(e);function fs(e,t){if(us(e)||us(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(se(r[i])&&!se(s[i])&&(s[i]=Array.isArray(r[i])?[]:fe()),us(s[i])||us(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}/*!
31
+ */const ls=typeof window<"u",Kt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),dp=(e,t,n)=>hp({l:e,k:t,s:n}),hp=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Te=e=>typeof e=="number"&&isFinite(e),pp=e=>$i(e)==="[object Date]",Pn=e=>$i(e)==="[object RegExp]",cs=e=>Y(e)&&Object.keys(e).length===0,Ie=Object.assign,mp=Object.create,fe=(e=null)=>mp(e);let Kl;const hn=()=>Kl||(Kl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:fe());function Vl(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const gp=Object.prototype.hasOwnProperty;function st(e,t){return gp.call(e,t)}const Se=Array.isArray,pe=e=>typeof e=="function",j=e=>typeof e=="string",ne=e=>typeof e=="boolean",se=e=>e!==null&&typeof e=="object",_p=e=>se(e)&&pe(e.then)&&pe(e.catch),Bl=Object.prototype.toString,$i=e=>Bl.call(e),Y=e=>$i(e)==="[object Object]",bp=e=>e==null?"":Se(e)||Y(e)&&e.toString===Bl?JSON.stringify(e,null,2):String(e);function Di(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function yp(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const us=e=>!se(e)||Se(e);function fs(e,t){if(us(e)||us(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(se(r[i])&&!se(s[i])&&(s[i]=Array.isArray(r[i])?[]:fe()),us(s[i])||us(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}/*!
32
32
  * message-compiler v11.0.1
33
33
  * (c) 2024 kazuya kawaguchi
34
34
  * Released under the MIT License.
35
- */function wp(e,t,n){return{line:e,column:t,offset:n}}function Di(e,t,n){return{start:e,end:t}}const le={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},kp=17;function ds(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function vp(e){throw e}const Ot=" ",Tp="\r",We=`
36
- `,Sp="\u2028",Ip="\u2029";function Ep(e){const t=e;let n=0,r=1,s=1,i=0;const o=L=>t[L]===Tp&&t[L+1]===We,a=L=>t[L]===We,l=L=>t[L]===Ip,u=L=>t[L]===Sp,c=L=>o(L)||a(L)||l(L)||u(L),f=()=>n,d=()=>r,m=()=>s,k=()=>i,w=L=>o(L)||l(L)||u(L)?We:t[L],E=()=>w(n),_=()=>w(n+i);function y(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function I(){return o(n+i)&&i++,i++,t[n+i]}function g(){n=0,r=1,s=1,i=0}function O(L=0){i=L}function D(){const L=n+i;for(;L!==n;)y();i=0}return{index:f,line:d,column:m,peekOffset:k,charAt:w,currentChar:E,currentPeek:_,next:y,peek:I,reset:g,resetPeek:O,skipToPeek:D}}const Vt=void 0,xp=".",Bl="'",Op="tokenizer";function Cp(e,t={}){const n=t.location!==!1,r=Ep(e),s=()=>r.index(),i=()=>wp(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(h,p,T,...x){const F=u();if(p.column+=T,p.offset+=T,c){const P=n?Di(F.startLoc,p):null,S=ds(h,P,{domain:Op,args:x});c(S)}}function d(h,p,T){h.endLoc=i(),h.currentType=p;const x={type:p};return n&&(x.loc=Di(h.startLoc,h.endLoc)),T!=null&&(x.value=T),x}const m=h=>d(h,13);function k(h,p){return h.currentChar()===p?(h.next(),p):(f(le.EXPECTED_TOKEN,i(),0,p),"")}function w(h){let p="";for(;h.currentPeek()===Ot||h.currentPeek()===We;)p+=h.currentPeek(),h.peek();return p}function E(h){const p=w(h);return h.skipToPeek(),p}function _(h){if(h===Vt)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function y(h){if(h===Vt)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function I(h,p){const{currentType:T}=p;if(T!==2)return!1;w(h);const x=_(h.currentPeek());return h.resetPeek(),x}function g(h,p){const{currentType:T}=p;if(T!==2)return!1;w(h);const x=h.currentPeek()==="-"?h.peek():h.currentPeek(),F=y(x);return h.resetPeek(),F}function O(h,p){const{currentType:T}=p;if(T!==2)return!1;w(h);const x=h.currentPeek()===Bl;return h.resetPeek(),x}function D(h,p){const{currentType:T}=p;if(T!==7)return!1;w(h);const x=h.currentPeek()===".";return h.resetPeek(),x}function L(h,p){const{currentType:T}=p;if(T!==8)return!1;w(h);const x=_(h.currentPeek());return h.resetPeek(),x}function M(h,p){const{currentType:T}=p;if(!(T===7||T===11))return!1;w(h);const x=h.currentPeek()===":";return h.resetPeek(),x}function U(h,p){const{currentType:T}=p;if(T!==9)return!1;const x=()=>{const P=h.currentPeek();return P==="{"?_(h.peek()):P==="@"||P==="|"||P===":"||P==="."||P===Ot||!P?!1:P===We?(h.peek(),x()):q(h,!1)},F=x();return h.resetPeek(),F}function Z(h){w(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function q(h,p=!0){const T=(F=!1,P="")=>{const S=h.currentPeek();return S==="{"||S==="@"||!S?F:S==="|"?!(P===Ot||P===We):S===Ot?(h.peek(),T(!0,Ot)):S===We?(h.peek(),T(!0,We)):!0},x=T();return p&&h.resetPeek(),x}function Q(h,p){const T=h.currentChar();return T===Vt?Vt:p(T)?(h.next(),T):null}function Ce(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function it(h){return Q(h,Ce)}function Yt(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 ge(h){return Q(h,Yt)}function G(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function oe(h){return Q(h,G)}function Ae(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Rt(h){return Q(h,Ae)}function et(h){let p="",T="";for(;p=oe(h);)T+=p;return T}function Ke(h){let p="";for(;;){const T=h.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===Ot||T===We)if(q(h))p+=T,h.next();else{if(Z(h))break;p+=T,h.next()}else p+=T,h.next()}return p}function Un(h){E(h);let p="",T="";for(;p=ge(h);)T+=p;return h.currentChar()===Vt&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),T}function Or(h){E(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${et(h)}`):p+=et(h),h.currentChar()===Vt&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),p}function Ns(h){return h!==Bl&&h!==We}function Nt(h){E(h),k(h,"'");let p="",T="";for(;p=Q(h,Ns);)p==="\\"?T+=Xt(h):T+=p;const x=h.currentChar();return x===We||x===Vt?(f(le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),x===We&&(h.next(),k(h,"'")),T):(k(h,"'"),T)}function Xt(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return Jt(h,p,4);case"U":return Jt(h,p,6);default:return f(le.UNKNOWN_ESCAPE_SEQUENCE,i(),0,p),""}}function Jt(h,p,T){k(h,p);let x="";for(let F=0;F<T;F++){const P=Rt(h);if(!P){f(le.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${p}${x}${h.currentChar()}`);break}x+=P}return`\\${p}${x}`}function Wn(h){return h!=="{"&&h!=="}"&&h!==Ot&&h!==We}function $t(h){E(h);let p="",T="";for(;p=Q(h,Wn);)T+=p;return T}function $s(h){let p="",T="";for(;p=it(h);)T+=p;return T}function b(h){const p=T=>{const x=h.currentChar();return x==="{"||x==="@"||x==="|"||x==="("||x===")"||!x||x===Ot?T:(T+=x,h.next(),p(T))};return p("")}function v(h){E(h);const p=k(h,"|");return E(h),p}function A(h,p){let T=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(le.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),h.next(),T=d(p,2,"{"),E(h),p.braceNest++,T;case"}":return p.braceNest>0&&p.currentType===2&&f(le.EMPTY_PLACEHOLDER,i(),0),h.next(),T=d(p,3,"}"),p.braceNest--,p.braceNest>0&&E(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),T;case"@":return p.braceNest>0&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),T=N(h,p)||m(p),p.braceNest=0,T;default:{let F=!0,P=!0,S=!0;if(Z(h))return p.braceNest>0&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),T=d(p,1,v(h)),p.braceNest=0,p.inLinked=!1,T;if(p.braceNest>0&&(p.currentType===4||p.currentType===5||p.currentType===6))return f(le.UNTERMINATED_CLOSING_BRACE,i(),0),p.braceNest=0,R(h,p);if(F=I(h,p))return T=d(p,4,Un(h)),E(h),T;if(P=g(h,p))return T=d(p,5,Or(h)),E(h),T;if(S=O(h,p))return T=d(p,6,Nt(h)),E(h),T;if(!F&&!P&&!S)return T=d(p,12,$t(h)),f(le.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,T.value),E(h),T;break}}return T}function N(h,p){const{currentType:T}=p;let x=null;const F=h.currentChar();switch((T===7||T===8||T===11||T===9)&&(F===We||F===Ot)&&f(le.INVALID_LINKED_FORMAT,i(),0),F){case"@":return h.next(),x=d(p,7,"@"),p.inLinked=!0,x;case".":return E(h),h.next(),d(p,8,".");case":":return E(h),h.next(),d(p,9,":");default:return Z(h)?(x=d(p,1,v(h)),p.braceNest=0,p.inLinked=!1,x):D(h,p)||M(h,p)?(E(h),N(h,p)):L(h,p)?(E(h),d(p,11,$s(h))):U(h,p)?(E(h),F==="{"?A(h,p)||x:d(p,10,b(h))):(T===7&&f(le.INVALID_LINKED_FORMAT,i(),0),p.braceNest=0,p.inLinked=!1,R(h,p))}}function R(h,p){let T={type:13};if(p.braceNest>0)return A(h,p)||m(p);if(p.inLinked)return N(h,p)||m(p);switch(h.currentChar()){case"{":return A(h,p)||m(p);case"}":return f(le.UNBALANCED_CLOSING_BRACE,i(),0),h.next(),d(p,3,"}");case"@":return N(h,p)||m(p);default:{if(Z(h))return T=d(p,1,v(h)),p.braceNest=0,p.inLinked=!1,T;if(q(h))return d(p,0,Ke(h));break}}return T}function $(){const{currentType:h,offset:p,startLoc:T,endLoc:x}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=T,l.lastEndLoc=x,l.offset=s(),l.startLoc=i(),r.currentChar()===Vt?d(l,13):R(r,l)}return{nextToken:$,currentOffset:s,currentPosition:i,context:u}}const Ap="parser",Lp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Pp(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 Rp(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,y,I,g,...O){const D=_.currentPosition();if(D.offset+=g,D.column+=g,n){const L=t?Di(I,D):null,M=ds(y,L,{domain:Ap,args:O});n(M)}}function s(_,y,I){const g={type:_};return t&&(g.start=y,g.end=y,g.loc={start:I,end:I}),g}function i(_,y,I,g){t&&(_.end=y,_.loc&&(_.loc.end=I))}function o(_,y){const I=_.context(),g=s(3,I.offset,I.startLoc);return g.value=y,i(g,_.currentOffset(),_.currentPosition()),g}function a(_,y){const I=_.context(),{lastOffset:g,lastStartLoc:O}=I,D=s(5,g,O);return D.index=parseInt(y,10),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function l(_,y){const I=_.context(),{lastOffset:g,lastStartLoc:O}=I,D=s(4,g,O);return D.key=y,_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function u(_,y){const I=_.context(),{lastOffset:g,lastStartLoc:O}=I,D=s(9,g,O);return D.value=y.replace(Lp,Pp),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function c(_){const y=_.nextToken(),I=_.context(),{lastOffset:g,lastStartLoc:O}=I,D=s(8,g,O);return y.type!==11?(r(_,le.UNEXPECTED_EMPTY_LINKED_MODIFIER,I.lastStartLoc,0),D.value="",i(D,g,O),{nextConsumeToken:y,node:D}):(y.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,mt(y)),D.value=y.value||"",i(D,_.currentOffset(),_.currentPosition()),{node:D})}function f(_,y){const I=_.context(),g=s(7,I.offset,I.startLoc);return g.value=y,i(g,_.currentOffset(),_.currentPosition()),g}function d(_){const y=_.context(),I=s(6,y.offset,y.startLoc);let g=_.nextToken();if(g.type===8){const O=c(_);I.modifier=O.node,g=O.nextConsumeToken||_.nextToken()}switch(g.type!==9&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),g=_.nextToken(),g.type===2&&(g=_.nextToken()),g.type){case 10:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),I.key=f(_,g.value||"");break;case 4:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),I.key=l(_,g.value||"");break;case 5:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),I.key=a(_,g.value||"");break;case 6:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),I.key=u(_,g.value||"");break;default:{r(_,le.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const O=_.context(),D=s(7,O.offset,O.startLoc);return D.value="",i(D,O.offset,O.startLoc),I.key=D,i(I,O.offset,O.startLoc),{nextConsumeToken:g,node:I}}}return i(I,_.currentOffset(),_.currentPosition()),{node:I}}function m(_){const y=_.context(),I=y.currentType===1?_.currentOffset():y.offset,g=y.currentType===1?y.endLoc:y.startLoc,O=s(2,I,g);O.items=[];let D=null;do{const U=D||_.nextToken();switch(D=null,U.type){case 0:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),O.items.push(o(_,U.value||""));break;case 5:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),O.items.push(a(_,U.value||""));break;case 4:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),O.items.push(l(_,U.value||""));break;case 6:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),O.items.push(u(_,U.value||""));break;case 7:{const Z=d(_);O.items.push(Z.node),D=Z.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const L=y.currentType===1?y.lastOffset:_.currentOffset(),M=y.currentType===1?y.lastEndLoc:_.currentPosition();return i(O,L,M),O}function k(_,y,I,g){const O=_.context();let D=g.items.length===0;const L=s(1,y,I);L.cases=[],L.cases.push(g);do{const M=m(_);D||(D=M.items.length===0),L.cases.push(M)}while(O.currentType!==13);return D&&r(_,le.MUST_HAVE_MESSAGES_IN_PLURAL,I,0),i(L,_.currentOffset(),_.currentPosition()),L}function w(_){const y=_.context(),{offset:I,startLoc:g}=y,O=m(_);return y.currentType===13?O:k(_,I,g,O)}function E(_){const y=Cp(_,Ie({},e)),I=y.context(),g=s(0,I.offset,I.startLoc);return t&&g.loc&&(g.loc.source=_),g.body=w(y),e.onCacheKey&&(g.cacheKey=e.onCacheKey(_)),I.currentType!==13&&r(y,le.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,_[I.offset]||""),i(g,y.currentOffset(),y.currentPosition()),g}return{parse:E}}function mt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Np(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Gl(e,t){for(let n=0;n<e.length;n++)Mi(e[n],t)}function Mi(e,t){switch(e.type){case 1:Gl(e.cases,t),t.helper("plural");break;case 2:Gl(e.items,t);break;case 6:{Mi(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 $p(e,t={}){const n=Np(e);n.helper("normalize"),e.body&&Mi(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Dp(e){const t=e.body;return t.type===2?Zl(t):t.cases.forEach(n=>Zl(n)),e}function Zl(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=$i(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Rn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Rn(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++)Rn(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++)Rn(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;Rn(t.key),t.k=t.key,delete t.key,t.modifier&&(Rn(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}}delete e.type}function Mp(e,t){const{sourceMap:n,filename:r,breakLineCode:s,needIndent:i}=t,o=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:i,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function u(E,_){a.code+=E}function c(E,_=!0){const y=_?s:"";u(i?y+" ".repeat(E):y)}function f(E=!0){const _=++a.indentLevel;E&&c(_)}function d(E=!0){const _=--a.indentLevel;E&&c(_)}function m(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:m,helper:E=>`_${E}`,needIndent:()=>a.needIndent}}function Fp(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Nn(e,t.key),t.modifier?(e.push(", "),Nn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function jp(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(Nn(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function Up(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(Nn(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function Wp(e,t){t.body?Nn(e,t.body):e.push("null")}function Nn(e,t){const{helper:n}=e;switch(t.type){case 0:Wp(e,t);break;case 1:Up(e,t);break;case 2:jp(e,t);break;case 6:Fp(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}}const Hp=(e,t={})=>{const n=j(t.mode)?t.mode:"normal",r=j(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
37
- `,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Mp(e,{mode:n,filename:r,sourceMap:s,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${$i(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Nn(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 zp(e,t={}){const n=Ie({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=Rp(n).parse(e);return r?(i&&Dp(a),s&&Rn(a),{ast:a,code:""}):($p(a,n),Hp(a,n))}/*!
35
+ */function wp(e,t,n){return{line:e,column:t,offset:n}}function Mi(e,t,n){return{start:e,end:t}}const le={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},kp=17;function ds(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function vp(e){throw e}const Ot=" ",Tp="\r",We=`
36
+ `,Sp="\u2028",Ip="\u2029";function Ep(e){const t=e;let n=0,r=1,s=1,i=0;const o=L=>t[L]===Tp&&t[L+1]===We,a=L=>t[L]===We,l=L=>t[L]===Ip,u=L=>t[L]===Sp,c=L=>o(L)||a(L)||l(L)||u(L),f=()=>n,d=()=>r,m=()=>s,k=()=>i,w=L=>o(L)||l(L)||u(L)?We:t[L],E=()=>w(n),_=()=>w(n+i);function y(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+i)&&i++,i++,t[n+i]}function g(){n=0,r=1,s=1,i=0}function O(L=0){i=L}function D(){const L=n+i;for(;L!==n;)y();i=0}return{index:f,line:d,column:m,peekOffset:k,charAt:w,currentChar:E,currentPeek:_,next:y,peek:T,reset:g,resetPeek:O,skipToPeek:D}}const Vt=void 0,xp=".",Gl="'",Op="tokenizer";function Cp(e,t={}){const n=t.location!==!1,r=Ep(e),s=()=>r.index(),i=()=>wp(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(h,p,S,...x){const F=u();if(p.column+=S,p.offset+=S,c){const P=n?Mi(F.startLoc,p):null,I=ds(h,P,{domain:Op,args:x});c(I)}}function d(h,p,S){h.endLoc=i(),h.currentType=p;const x={type:p};return n&&(x.loc=Mi(h.startLoc,h.endLoc)),S!=null&&(x.value=S),x}const m=h=>d(h,13);function k(h,p){return h.currentChar()===p?(h.next(),p):(f(le.EXPECTED_TOKEN,i(),0,p),"")}function w(h){let p="";for(;h.currentPeek()===Ot||h.currentPeek()===We;)p+=h.currentPeek(),h.peek();return p}function E(h){const p=w(h);return h.skipToPeek(),p}function _(h){if(h===Vt)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function y(h){if(h===Vt)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function T(h,p){const{currentType:S}=p;if(S!==2)return!1;w(h);const x=_(h.currentPeek());return h.resetPeek(),x}function g(h,p){const{currentType:S}=p;if(S!==2)return!1;w(h);const x=h.currentPeek()==="-"?h.peek():h.currentPeek(),F=y(x);return h.resetPeek(),F}function O(h,p){const{currentType:S}=p;if(S!==2)return!1;w(h);const x=h.currentPeek()===Gl;return h.resetPeek(),x}function D(h,p){const{currentType:S}=p;if(S!==7)return!1;w(h);const x=h.currentPeek()===".";return h.resetPeek(),x}function L(h,p){const{currentType:S}=p;if(S!==8)return!1;w(h);const x=_(h.currentPeek());return h.resetPeek(),x}function M(h,p){const{currentType:S}=p;if(!(S===7||S===11))return!1;w(h);const x=h.currentPeek()===":";return h.resetPeek(),x}function U(h,p){const{currentType:S}=p;if(S!==9)return!1;const x=()=>{const P=h.currentPeek();return P==="{"?_(h.peek()):P==="@"||P==="|"||P===":"||P==="."||P===Ot||!P?!1:P===We?(h.peek(),x()):q(h,!1)},F=x();return h.resetPeek(),F}function Z(h){w(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function q(h,p=!0){const S=(F=!1,P="")=>{const I=h.currentPeek();return I==="{"||I==="@"||!I?F:I==="|"?!(P===Ot||P===We):I===Ot?(h.peek(),S(!0,Ot)):I===We?(h.peek(),S(!0,We)):!0},x=S();return p&&h.resetPeek(),x}function Q(h,p){const S=h.currentChar();return S===Vt?Vt:p(S)?(h.next(),S):null}function Ce(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function it(h){return Q(h,Ce)}function Yt(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 ge(h){return Q(h,Yt)}function G(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function oe(h){return Q(h,G)}function Ae(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Rt(h){return Q(h,Ae)}function et(h){let p="",S="";for(;p=oe(h);)S+=p;return S}function Ke(h){let p="";for(;;){const S=h.currentChar();if(S==="{"||S==="}"||S==="@"||S==="|"||!S)break;if(S===Ot||S===We)if(q(h))p+=S,h.next();else{if(Z(h))break;p+=S,h.next()}else p+=S,h.next()}return p}function Un(h){E(h);let p="",S="";for(;p=ge(h);)S+=p;return h.currentChar()===Vt&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),S}function Or(h){E(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${et(h)}`):p+=et(h),h.currentChar()===Vt&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),p}function Ns(h){return h!==Gl&&h!==We}function Nt(h){E(h),k(h,"'");let p="",S="";for(;p=Q(h,Ns);)p==="\\"?S+=Xt(h):S+=p;const x=h.currentChar();return x===We||x===Vt?(f(le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),x===We&&(h.next(),k(h,"'")),S):(k(h,"'"),S)}function Xt(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return Jt(h,p,4);case"U":return Jt(h,p,6);default:return f(le.UNKNOWN_ESCAPE_SEQUENCE,i(),0,p),""}}function Jt(h,p,S){k(h,p);let x="";for(let F=0;F<S;F++){const P=Rt(h);if(!P){f(le.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${p}${x}${h.currentChar()}`);break}x+=P}return`\\${p}${x}`}function Wn(h){return h!=="{"&&h!=="}"&&h!==Ot&&h!==We}function $t(h){E(h);let p="",S="";for(;p=Q(h,Wn);)S+=p;return S}function $s(h){let p="",S="";for(;p=it(h);)S+=p;return S}function b(h){const p=S=>{const x=h.currentChar();return x==="{"||x==="@"||x==="|"||x==="("||x===")"||!x||x===Ot?S:(S+=x,h.next(),p(S))};return p("")}function v(h){E(h);const p=k(h,"|");return E(h),p}function A(h,p){let S=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(le.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),h.next(),S=d(p,2,"{"),E(h),p.braceNest++,S;case"}":return p.braceNest>0&&p.currentType===2&&f(le.EMPTY_PLACEHOLDER,i(),0),h.next(),S=d(p,3,"}"),p.braceNest--,p.braceNest>0&&E(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),S;case"@":return p.braceNest>0&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),S=N(h,p)||m(p),p.braceNest=0,S;default:{let F=!0,P=!0,I=!0;if(Z(h))return p.braceNest>0&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),S=d(p,1,v(h)),p.braceNest=0,p.inLinked=!1,S;if(p.braceNest>0&&(p.currentType===4||p.currentType===5||p.currentType===6))return f(le.UNTERMINATED_CLOSING_BRACE,i(),0),p.braceNest=0,R(h,p);if(F=T(h,p))return S=d(p,4,Un(h)),E(h),S;if(P=g(h,p))return S=d(p,5,Or(h)),E(h),S;if(I=O(h,p))return S=d(p,6,Nt(h)),E(h),S;if(!F&&!P&&!I)return S=d(p,12,$t(h)),f(le.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,S.value),E(h),S;break}}return S}function N(h,p){const{currentType:S}=p;let x=null;const F=h.currentChar();switch((S===7||S===8||S===11||S===9)&&(F===We||F===Ot)&&f(le.INVALID_LINKED_FORMAT,i(),0),F){case"@":return h.next(),x=d(p,7,"@"),p.inLinked=!0,x;case".":return E(h),h.next(),d(p,8,".");case":":return E(h),h.next(),d(p,9,":");default:return Z(h)?(x=d(p,1,v(h)),p.braceNest=0,p.inLinked=!1,x):D(h,p)||M(h,p)?(E(h),N(h,p)):L(h,p)?(E(h),d(p,11,$s(h))):U(h,p)?(E(h),F==="{"?A(h,p)||x:d(p,10,b(h))):(S===7&&f(le.INVALID_LINKED_FORMAT,i(),0),p.braceNest=0,p.inLinked=!1,R(h,p))}}function R(h,p){let S={type:13};if(p.braceNest>0)return A(h,p)||m(p);if(p.inLinked)return N(h,p)||m(p);switch(h.currentChar()){case"{":return A(h,p)||m(p);case"}":return f(le.UNBALANCED_CLOSING_BRACE,i(),0),h.next(),d(p,3,"}");case"@":return N(h,p)||m(p);default:{if(Z(h))return S=d(p,1,v(h)),p.braceNest=0,p.inLinked=!1,S;if(q(h))return d(p,0,Ke(h));break}}return S}function $(){const{currentType:h,offset:p,startLoc:S,endLoc:x}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=S,l.lastEndLoc=x,l.offset=s(),l.startLoc=i(),r.currentChar()===Vt?d(l,13):R(r,l)}return{nextToken:$,currentOffset:s,currentPosition:i,context:u}}const Ap="parser",Lp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Pp(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 Rp(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,y,T,g,...O){const D=_.currentPosition();if(D.offset+=g,D.column+=g,n){const L=t?Mi(T,D):null,M=ds(y,L,{domain:Ap,args:O});n(M)}}function s(_,y,T){const g={type:_};return t&&(g.start=y,g.end=y,g.loc={start:T,end:T}),g}function i(_,y,T,g){t&&(_.end=y,_.loc&&(_.loc.end=T))}function o(_,y){const T=_.context(),g=s(3,T.offset,T.startLoc);return g.value=y,i(g,_.currentOffset(),_.currentPosition()),g}function a(_,y){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,D=s(5,g,O);return D.index=parseInt(y,10),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function l(_,y){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,D=s(4,g,O);return D.key=y,_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function u(_,y){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,D=s(9,g,O);return D.value=y.replace(Lp,Pp),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function c(_){const y=_.nextToken(),T=_.context(),{lastOffset:g,lastStartLoc:O}=T,D=s(8,g,O);return y.type!==11?(r(_,le.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),D.value="",i(D,g,O),{nextConsumeToken:y,node:D}):(y.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,mt(y)),D.value=y.value||"",i(D,_.currentOffset(),_.currentPosition()),{node:D})}function f(_,y){const T=_.context(),g=s(7,T.offset,T.startLoc);return g.value=y,i(g,_.currentOffset(),_.currentPosition()),g}function d(_){const y=_.context(),T=s(6,y.offset,y.startLoc);let g=_.nextToken();if(g.type===8){const O=c(_);T.modifier=O.node,g=O.nextConsumeToken||_.nextToken()}switch(g.type!==9&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),g=_.nextToken(),g.type===2&&(g=_.nextToken()),g.type){case 10:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),T.key=f(_,g.value||"");break;case 4:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),T.key=l(_,g.value||"");break;case 5:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),T.key=a(_,g.value||"");break;case 6:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),T.key=u(_,g.value||"");break;default:{r(_,le.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const O=_.context(),D=s(7,O.offset,O.startLoc);return D.value="",i(D,O.offset,O.startLoc),T.key=D,i(T,O.offset,O.startLoc),{nextConsumeToken:g,node:T}}}return i(T,_.currentOffset(),_.currentPosition()),{node:T}}function m(_){const y=_.context(),T=y.currentType===1?_.currentOffset():y.offset,g=y.currentType===1?y.endLoc:y.startLoc,O=s(2,T,g);O.items=[];let D=null;do{const U=D||_.nextToken();switch(D=null,U.type){case 0:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),O.items.push(o(_,U.value||""));break;case 5:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),O.items.push(a(_,U.value||""));break;case 4:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),O.items.push(l(_,U.value||""));break;case 6:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),O.items.push(u(_,U.value||""));break;case 7:{const Z=d(_);O.items.push(Z.node),D=Z.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const L=y.currentType===1?y.lastOffset:_.currentOffset(),M=y.currentType===1?y.lastEndLoc:_.currentPosition();return i(O,L,M),O}function k(_,y,T,g){const O=_.context();let D=g.items.length===0;const L=s(1,y,T);L.cases=[],L.cases.push(g);do{const M=m(_);D||(D=M.items.length===0),L.cases.push(M)}while(O.currentType!==13);return D&&r(_,le.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),i(L,_.currentOffset(),_.currentPosition()),L}function w(_){const y=_.context(),{offset:T,startLoc:g}=y,O=m(_);return y.currentType===13?O:k(_,T,g,O)}function E(_){const y=Cp(_,Ie({},e)),T=y.context(),g=s(0,T.offset,T.startLoc);return t&&g.loc&&(g.loc.source=_),g.body=w(y),e.onCacheKey&&(g.cacheKey=e.onCacheKey(_)),T.currentType!==13&&r(y,le.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,_[T.offset]||""),i(g,y.currentOffset(),y.currentPosition()),g}return{parse:E}}function mt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Np(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Zl(e,t){for(let n=0;n<e.length;n++)Fi(e[n],t)}function Fi(e,t){switch(e.type){case 1:Zl(e.cases,t),t.helper("plural");break;case 2:Zl(e.items,t);break;case 6:{Fi(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 $p(e,t={}){const n=Np(e);n.helper("normalize"),e.body&&Fi(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Dp(e){const t=e.body;return t.type===2?Yl(t):t.cases.forEach(n=>Yl(n)),e}function Yl(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=Di(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Rn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Rn(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++)Rn(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++)Rn(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;Rn(t.key),t.k=t.key,delete t.key,t.modifier&&(Rn(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}}delete e.type}function Mp(e,t){const{sourceMap:n,filename:r,breakLineCode:s,needIndent:i}=t,o=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:i,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function u(E,_){a.code+=E}function c(E,_=!0){const y=_?s:"";u(i?y+" ".repeat(E):y)}function f(E=!0){const _=++a.indentLevel;E&&c(_)}function d(E=!0){const _=--a.indentLevel;E&&c(_)}function m(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:m,helper:E=>`_${E}`,needIndent:()=>a.needIndent}}function Fp(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Nn(e,t.key),t.modifier?(e.push(", "),Nn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function jp(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(Nn(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function Up(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(Nn(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function Wp(e,t){t.body?Nn(e,t.body):e.push("null")}function Nn(e,t){const{helper:n}=e;switch(t.type){case 0:Wp(e,t);break;case 1:Up(e,t);break;case 2:jp(e,t);break;case 6:Fp(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}}const Hp=(e,t={})=>{const n=j(t.mode)?t.mode:"normal",r=j(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
37
+ `,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Mp(e,{mode:n,filename:r,sourceMap:s,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${Di(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Nn(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 zp(e,t={}){const n=Ie({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=Rp(n).parse(e);return r?(i&&Dp(a),s&&Rn(a),{ast:a,code:""}):($p(a,n),Hp(a,n))}/*!
38
38
  * core-base v11.0.1
39
39
  * (c) 2024 kazuya kawaguchi
40
40
  * Released under the MIT License.
41
- */function Kp(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(hn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Fi(e){return n=>Vp(n,e)}function Vp(e,t){const n=Gp(t);if(n==null)throw hr(0);if(Ui(n)===1){const i=Yp(n);return e.plural(i.reduce((o,a)=>[...o,Yl(e,a)],[]))}else return Yl(e,n)}const Bp=["b","body"];function Gp(e){return Bt(e,Bp)}const Zp=["c","cases"];function Yp(e){return Bt(e,Zp,[])}function Yl(e,t){const n=Jp(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Qp(t).reduce((s,i)=>[...s,ji(e,i)],[]);return e.normalize(r)}}const Xp=["s","static"];function Jp(e){return Bt(e,Xp)}const qp=["i","items"];function Qp(e){return Bt(e,qp,[])}function ji(e,t){const n=Ui(t);switch(n){case 3:return hs(t,n);case 9:return hs(t,n);case 4:{const r=t;if(st(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(st(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw hr(n)}case 5:{const r=t;if(st(r,"i")&&Te(r.i))return e.interpolate(e.list(r.i));if(st(r,"index")&&Te(r.index))return e.interpolate(e.list(r.index));throw hr(n)}case 6:{const r=t,s=rm(r),i=im(r);return e.linked(ji(e,i),s?ji(e,s):void 0,e.type)}case 7:return hs(t,n);case 8:return hs(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const em=["t","type"];function Ui(e){return Bt(e,em)}const tm=["v","value"];function hs(e,t){const n=Bt(e,tm);if(n)return n;throw hr(t)}const nm=["m","modifier"];function rm(e){return Bt(e,nm)}const sm=["k","key"];function im(e){const t=Bt(e,sm);if(t)return t;throw hr(6)}function Bt(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(st(e,s)&&e[s]!=null)return e[s]}return n}function hr(e){return new Error(`unhandled node type: ${e}`)}const om=e=>e;let ps=fe();function $n(e){return se(e)&&Ui(e)===0&&(st(e,"b")||st(e,"body"))}function am(e,t={}){let n=!1;const r=t.onError||vp;return t.onError=s=>{n=!0,r(s)},{...zp(e,t),detectError:n}}function lm(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&j(e)){ne(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||om)(e),s=ps[r];if(s)return s;const{ast:i,detectError:o}=am(e,{...t,location:!1,jit:!0}),a=Fi(i);return o?a:ps[r]=a}else{const n=e.cacheKey;if(n){const r=ps[n];return r||(ps[n]=Fi(e))}else return Fi(e)}}let pr=null;function cm(e){pr=e}function um(e,t,n){pr&&pr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const fm=dm("function:translate");function dm(e){return t=>pr&&pr.emit(e,t)}const Ct={INVALID_ARGUMENT:kp,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},hm=24;function At(e){return ds(e,null,void 0)}function Wi(e,t){return t.locale!=null?Xl(t.locale):Xl(e.locale)}let Hi;function Xl(e){if(j(e))return e;if(pe(e)){if(e.resolvedOnce&&Hi!=null)return Hi;if(e.constructor.name==="Function"){const t=e();if(_p(t))throw At(Ct.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Hi=t}else throw At(Ct.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw At(Ct.NOT_SUPPORT_LOCALE_TYPE)}function pm(e,t,n){return[...new Set([n,...Se(t)?t:se(t)?Object.keys(t):j(t)?[t]:[n]])]}function Jl(e,t,n){const r=j(n)?n:mr,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;Se(o);)o=ql(i,o,t);const a=Se(t)||!Y(t)?t:t.default?t.default:null;o=j(a)?[a]:a,Se(o)&&ql(i,o,!1),s.__localeChainCache.set(r,i)}return i}function ql(e,t,n){let r=!0;for(let s=0;s<t.length&&ne(r);s++){const i=t[s];j(i)&&(r=mm(e,t[s],n))}return r}function mm(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=gm(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function gm(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(Se(n)||Y(n))&&n[s]&&(r=n[s])}return r}const Gt=[];Gt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Gt[1]={w:[1],".":[2],"[":[4],o:[7]},Gt[2]={w:[2],i:[3,0],0:[3,0]},Gt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Gt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Gt[5]={"'":[4,0],o:8,l:[5,0]},Gt[6]={'"':[4,0],o:8,l:[6,0]};const _m=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function bm(e){return _m.test(e)}function ym(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 wm(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 km(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:bm(t)?ym(t):"*"+t}function vm(e){const t=[];let n=-1,r=0,s=0,i,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](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,o===void 0||(o=km(o),o===!1))return!1;d[1]()}};function m(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,a="\\"+k,d[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&m())){if(l=wm(i),f=Gt[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(a=i,c()===!1))))return;if(r===7)return t}}const Ql=new Map;function Tm(e,t){return se(e)?e[t]:null}function Sm(e,t){if(!se(e))return null;let n=Ql.get(t);if(n||(n=vm(t),n&&Ql.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=s[n[i]];if(o===void 0||pe(s))return null;s=o,i++}return s}const Im="11.0.1",ms=-1,mr="en-US",ec="",tc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Em(){return{upper:(e,t)=>t==="text"&&j(e)?e.toUpperCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&j(e)?e.toLowerCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&j(e)?tc(e):t==="vnode"&&se(e)&&"__v_isVNode"in e?tc(e.children):e}}let nc;function xm(e){nc=e}let rc;function Om(e){rc=e}let sc;function Cm(e){sc=e}let ic=null;const Am=e=>{ic=e},Lm=()=>ic;let oc=null;const ac=e=>{oc=e},Pm=()=>oc;let lc=0;function Rm(e={}){const t=pe(e.onWarn)?e.onWarn:yp,n=j(e.version)?e.version:Im,r=j(e.locale)||pe(e.locale)?e.locale:mr,s=pe(r)?mr:r,i=Se(e.fallbackLocale)||Y(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=Y(e.messages)?e.messages:zi(s),a=Y(e.datetimeFormats)?e.datetimeFormats:zi(s),l=Y(e.numberFormats)?e.numberFormats:zi(s),u=Ie(fe(),e.modifiers,Em()),c=e.pluralRules||fe(),f=pe(e.missing)?e.missing:null,d=ne(e.missingWarn)||Pn(e.missingWarn)?e.missingWarn:!0,m=ne(e.fallbackWarn)||Pn(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,w=!!e.unresolving,E=pe(e.postTranslation)?e.postTranslation:null,_=Y(e.processor)?e.processor:null,y=ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter,g=pe(e.messageCompiler)?e.messageCompiler:nc,O=pe(e.messageResolver)?e.messageResolver:rc||Tm,D=pe(e.localeFallbacker)?e.localeFallbacker:sc||pm,L=se(e.fallbackContext)?e.fallbackContext:void 0,M=e,U=se(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,Z=se(M.__numberFormatters)?M.__numberFormatters:new Map,q=se(M.__meta)?M.__meta:{};lc++;const Q={version:n,cid:lc,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:m,fallbackFormat:k,unresolving:w,postTranslation:E,processor:_,warnHtmlMessage:y,escapeParameter:I,messageCompiler:g,messageResolver:O,localeFallbacker:D,fallbackContext:L,onWarn:t,__meta:q};return Q.datetimeFormats=a,Q.numberFormats=l,Q.__datetimeFormatters=U,Q.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&um(Q,n,q),Q}const zi=e=>({[e]:fe()});function Ki(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return j(a)?a:t}else return t}function gr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Nm(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function $m(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Nm(e,t[r]))return!0;return!1}function cc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=Vi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,k=Wi(e,c),w=o(e,s,k);if(!j(l)||l==="")return new Intl.DateTimeFormat(k,f).format(u);let E={},_,y=null;const I="datetime format";for(let D=0;D<w.length&&(_=w[D],E=n[_]||{},y=E[l],!Y(y));D++)Ki(e,l,_,d,I);if(!Y(y)||!j(_))return r?ms:l;let g=`${_}__${l}`;cs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.DateTimeFormat(_,Ie({},y,f)),a.set(g,O)),m?O.formatToParts(u):O.format(u)}const uc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Vi(...e){const[t,n,r,s]=e,i=fe();let o=fe(),a;if(j(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw At(Ct.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 At(Ct.INVALID_ISO_DATE_ARGUMENT)}}else if(pp(t)){if(isNaN(t.getTime()))throw At(Ct.INVALID_DATE_ARGUMENT);a=t}else if(Te(t))a=t;else throw At(Ct.INVALID_ARGUMENT);return j(n)?i.key=n:Y(n)&&Object.keys(n).forEach(l=>{uc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:Y(r)&&(o=r),Y(s)&&(o=s),[i.key||"",a,i,o]}function fc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function dc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=Bi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,k=Wi(e,c),w=o(e,s,k);if(!j(l)||l==="")return new Intl.NumberFormat(k,f).format(u);let E={},_,y=null;const I="number format";for(let D=0;D<w.length&&(_=w[D],E=n[_]||{},y=E[l],!Y(y));D++)Ki(e,l,_,d,I);if(!Y(y)||!j(_))return r?ms:l;let g=`${_}__${l}`;cs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.NumberFormat(_,Ie({},y,f)),a.set(g,O)),m?O.formatToParts(u):O.format(u)}const hc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Bi(...e){const[t,n,r,s]=e,i=fe();let o=fe();if(!Te(t))throw At(Ct.INVALID_ARGUMENT);const a=t;return j(n)?i.key=n:Y(n)&&Object.keys(n).forEach(l=>{hc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:Y(r)&&(o=r),Y(s)&&(o=s),[i.key||"",a,i,o]}function pc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const Dm=e=>e,Mm=e=>"",Fm="text",jm=e=>e.length===0?"":$i(e),Um=bp;function mc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Wm(e){const t=Te(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Te(e.named.count)||Te(e.named.n))?Te(e.named.count)?e.named.count:Te(e.named.n)?e.named.n:t:t}function Hm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function zm(e={}){const t=e.locale,n=Wm(e),r=se(e.pluralRules)&&j(t)&&pe(e.pluralRules[t])?e.pluralRules[t]:mc,s=se(e.pluralRules)&&j(t)&&pe(e.pluralRules[t])?mc:void 0,i=_=>_[r(n,_.length,s)],o=e.list||[],a=_=>o[_],l=e.named||fe();Te(e.pluralIndex)&&Hm(n,l);const u=_=>l[_];function c(_,y){const I=pe(e.messages)?e.messages(_,!!y):se(e.messages)?e.messages[_]:!1;return I||(e.parent?e.parent.message(_):Mm)}const f=_=>e.modifiers?e.modifiers[_]:Dm,d=Y(e.processor)&&pe(e.processor.normalize)?e.processor.normalize:jm,m=Y(e.processor)&&pe(e.processor.interpolate)?e.processor.interpolate:Um,k=Y(e.processor)&&j(e.processor.type)?e.processor.type:Fm,E={list:a,named:u,plural:i,linked:(_,...y)=>{const[I,g]=y;let O="text",D="";y.length===1?se(I)?(D=I.modifier||D,O=I.type||O):j(I)&&(D=I||D):y.length===2&&(j(I)&&(D=I||D),j(g)&&(O=g||O));const L=c(_,!0)(E),M=O==="vnode"&&Se(L)&&D?L[0]:L;return D?f(D)(M,O):M},message:c,type:k,interpolate:m,normalize:d,values:Ie(fe(),o,l)};return E}const gc=()=>"",Je=e=>pe(e);function _c(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,u]=Gi(...t),c=ne(u.missingWarn)?u.missingWarn:e.missingWarn,f=ne(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=ne(u.escapeParameter)?u.escapeParameter:e.escapeParameter,m=!!u.resolvedMessage,k=j(u.default)||ne(u.default)?ne(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,w=n||k!=null&&(j(k)||pe(k)),E=Wi(e,u);d&&Km(u);let[_,y,I]=m?[l,E,a[E]||fe()]:bc(e,l,E,o,f,c),g=_,O=l;if(!m&&!(j(g)||$n(g)||Je(g))&&w&&(g=k,O=g),!m&&(!(j(g)||$n(g)||Je(g))||!j(y)))return s?ms:l;let D=!1;const L=()=>{D=!0},M=Je(g)?g:yc(e,l,y,g,O,L);if(D)return g;const U=Gm(e,y,I,u),Z=zm(U),q=Vm(e,M,Z),Q=r?r(q,l):q;if(__INTLIFY_PROD_DEVTOOLS__){const Ce={timestamp:Date.now(),key:j(l)?l:Je(g)?g.key:"",locale:y||(Je(g)?g.locale:""),format:j(g)?g:Je(g)?g.source:"",message:Q};Ce.meta=Ie({},e.__meta,Lm()||{}),fm(Ce)}return Q}function Km(e){Se(e.list)?e.list=e.list.map(t=>j(t)?Kl(t):t):se(e.named)&&Object.keys(e.named).forEach(t=>{j(e.named[t])&&(e.named[t]=Kl(e.named[t]))})}function bc(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=fe(),d,m=null;const k="translate";for(let w=0;w<c.length&&(d=c[w],f=o[d]||fe(),(m=l(f,t))===null&&(m=f[t]),!(j(m)||$n(m)||Je(m)));w++)if(!$m(d,c)){const E=Ki(e,t,d,i,k);E!==t&&(m=E)}return[m,d,f]}function yc(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=e;if(Je(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,Bm(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function Vm(e,t,n){return t(n)}function Gi(...e){const[t,n,r]=e,s=fe();if(!j(t)&&!Te(t)&&!Je(t)&&!$n(t))throw At(Ct.INVALID_ARGUMENT);const i=Te(t)?String(t):(Je(t),t);return Te(n)?s.plural=n:j(n)?s.default=n:Y(n)&&!cs(n)?s.named=n:Se(n)&&(s.list=n),Te(r)?s.plural=r:j(r)?s.default=r:Y(r)&&Ie(s,r),[i,s]}function Bm(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>dp(t,n,o)}}function Gm(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:s,pluralRules:i,messages:(m,k)=>{let w=o(n,m);if(w==null&&(c||k)){const[,,E]=bc(c||e,m,t,a,l,u);w=o(E,m)}if(j(w)||$n(w)){let E=!1;const y=yc(e,m,t,w,m,()=>{E=!0});return E?gc:y}else return Je(w)?w:gc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Te(r.plural)&&(d.pluralIndex=r.plural),d}Kp();/*!
41
+ */function Kp(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(hn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ji(e){return n=>Vp(n,e)}function Vp(e,t){const n=Gp(t);if(n==null)throw hr(0);if(Wi(n)===1){const i=Yp(n);return e.plural(i.reduce((o,a)=>[...o,Xl(e,a)],[]))}else return Xl(e,n)}const Bp=["b","body"];function Gp(e){return Bt(e,Bp)}const Zp=["c","cases"];function Yp(e){return Bt(e,Zp,[])}function Xl(e,t){const n=Jp(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Qp(t).reduce((s,i)=>[...s,Ui(e,i)],[]);return e.normalize(r)}}const Xp=["s","static"];function Jp(e){return Bt(e,Xp)}const qp=["i","items"];function Qp(e){return Bt(e,qp,[])}function Ui(e,t){const n=Wi(t);switch(n){case 3:return hs(t,n);case 9:return hs(t,n);case 4:{const r=t;if(st(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(st(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw hr(n)}case 5:{const r=t;if(st(r,"i")&&Te(r.i))return e.interpolate(e.list(r.i));if(st(r,"index")&&Te(r.index))return e.interpolate(e.list(r.index));throw hr(n)}case 6:{const r=t,s=rm(r),i=im(r);return e.linked(Ui(e,i),s?Ui(e,s):void 0,e.type)}case 7:return hs(t,n);case 8:return hs(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const em=["t","type"];function Wi(e){return Bt(e,em)}const tm=["v","value"];function hs(e,t){const n=Bt(e,tm);if(n)return n;throw hr(t)}const nm=["m","modifier"];function rm(e){return Bt(e,nm)}const sm=["k","key"];function im(e){const t=Bt(e,sm);if(t)return t;throw hr(6)}function Bt(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(st(e,s)&&e[s]!=null)return e[s]}return n}function hr(e){return new Error(`unhandled node type: ${e}`)}const om=e=>e;let ps=fe();function $n(e){return se(e)&&Wi(e)===0&&(st(e,"b")||st(e,"body"))}function am(e,t={}){let n=!1;const r=t.onError||vp;return t.onError=s=>{n=!0,r(s)},{...zp(e,t),detectError:n}}function lm(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&j(e)){ne(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||om)(e),s=ps[r];if(s)return s;const{ast:i,detectError:o}=am(e,{...t,location:!1,jit:!0}),a=ji(i);return o?a:ps[r]=a}else{const n=e.cacheKey;if(n){const r=ps[n];return r||(ps[n]=ji(e))}else return ji(e)}}let pr=null;function cm(e){pr=e}function um(e,t,n){pr&&pr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const fm=dm("function:translate");function dm(e){return t=>pr&&pr.emit(e,t)}const Ct={INVALID_ARGUMENT:kp,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},hm=24;function At(e){return ds(e,null,void 0)}function Hi(e,t){return t.locale!=null?Jl(t.locale):Jl(e.locale)}let zi;function Jl(e){if(j(e))return e;if(pe(e)){if(e.resolvedOnce&&zi!=null)return zi;if(e.constructor.name==="Function"){const t=e();if(_p(t))throw At(Ct.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return zi=t}else throw At(Ct.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw At(Ct.NOT_SUPPORT_LOCALE_TYPE)}function pm(e,t,n){return[...new Set([n,...Se(t)?t:se(t)?Object.keys(t):j(t)?[t]:[n]])]}function ql(e,t,n){const r=j(n)?n:mr,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;Se(o);)o=Ql(i,o,t);const a=Se(t)||!Y(t)?t:t.default?t.default:null;o=j(a)?[a]:a,Se(o)&&Ql(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Ql(e,t,n){let r=!0;for(let s=0;s<t.length&&ne(r);s++){const i=t[s];j(i)&&(r=mm(e,t[s],n))}return r}function mm(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=gm(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function gm(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(Se(n)||Y(n))&&n[s]&&(r=n[s])}return r}const Gt=[];Gt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Gt[1]={w:[1],".":[2],"[":[4],o:[7]},Gt[2]={w:[2],i:[3,0],0:[3,0]},Gt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Gt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Gt[5]={"'":[4,0],o:8,l:[5,0]},Gt[6]={'"':[4,0],o:8,l:[6,0]};const _m=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function bm(e){return _m.test(e)}function ym(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 wm(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 km(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:bm(t)?ym(t):"*"+t}function vm(e){const t=[];let n=-1,r=0,s=0,i,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](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,o===void 0||(o=km(o),o===!1))return!1;d[1]()}};function m(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,a="\\"+k,d[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&m())){if(l=wm(i),f=Gt[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(a=i,c()===!1))))return;if(r===7)return t}}const ec=new Map;function Tm(e,t){return se(e)?e[t]:null}function Sm(e,t){if(!se(e))return null;let n=ec.get(t);if(n||(n=vm(t),n&&ec.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=s[n[i]];if(o===void 0||pe(s))return null;s=o,i++}return s}const Im="11.0.1",ms=-1,mr="en-US",tc="",nc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Em(){return{upper:(e,t)=>t==="text"&&j(e)?e.toUpperCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&j(e)?e.toLowerCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&j(e)?nc(e):t==="vnode"&&se(e)&&"__v_isVNode"in e?nc(e.children):e}}let rc;function xm(e){rc=e}let sc;function Om(e){sc=e}let ic;function Cm(e){ic=e}let oc=null;const Am=e=>{oc=e},Lm=()=>oc;let ac=null;const lc=e=>{ac=e},Pm=()=>ac;let cc=0;function Rm(e={}){const t=pe(e.onWarn)?e.onWarn:yp,n=j(e.version)?e.version:Im,r=j(e.locale)||pe(e.locale)?e.locale:mr,s=pe(r)?mr:r,i=Se(e.fallbackLocale)||Y(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=Y(e.messages)?e.messages:Ki(s),a=Y(e.datetimeFormats)?e.datetimeFormats:Ki(s),l=Y(e.numberFormats)?e.numberFormats:Ki(s),u=Ie(fe(),e.modifiers,Em()),c=e.pluralRules||fe(),f=pe(e.missing)?e.missing:null,d=ne(e.missingWarn)||Pn(e.missingWarn)?e.missingWarn:!0,m=ne(e.fallbackWarn)||Pn(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,w=!!e.unresolving,E=pe(e.postTranslation)?e.postTranslation:null,_=Y(e.processor)?e.processor:null,y=ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,g=pe(e.messageCompiler)?e.messageCompiler:rc,O=pe(e.messageResolver)?e.messageResolver:sc||Tm,D=pe(e.localeFallbacker)?e.localeFallbacker:ic||pm,L=se(e.fallbackContext)?e.fallbackContext:void 0,M=e,U=se(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,Z=se(M.__numberFormatters)?M.__numberFormatters:new Map,q=se(M.__meta)?M.__meta:{};cc++;const Q={version:n,cid:cc,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:m,fallbackFormat:k,unresolving:w,postTranslation:E,processor:_,warnHtmlMessage:y,escapeParameter:T,messageCompiler:g,messageResolver:O,localeFallbacker:D,fallbackContext:L,onWarn:t,__meta:q};return Q.datetimeFormats=a,Q.numberFormats=l,Q.__datetimeFormatters=U,Q.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&um(Q,n,q),Q}const Ki=e=>({[e]:fe()});function Vi(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return j(a)?a:t}else return t}function gr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Nm(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function $m(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Nm(e,t[r]))return!0;return!1}function uc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=Bi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,k=Hi(e,c),w=o(e,s,k);if(!j(l)||l==="")return new Intl.DateTimeFormat(k,f).format(u);let E={},_,y=null;const T="datetime format";for(let D=0;D<w.length&&(_=w[D],E=n[_]||{},y=E[l],!Y(y));D++)Vi(e,l,_,d,T);if(!Y(y)||!j(_))return r?ms:l;let g=`${_}__${l}`;cs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.DateTimeFormat(_,Ie({},y,f)),a.set(g,O)),m?O.formatToParts(u):O.format(u)}const fc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Bi(...e){const[t,n,r,s]=e,i=fe();let o=fe(),a;if(j(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw At(Ct.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 At(Ct.INVALID_ISO_DATE_ARGUMENT)}}else if(pp(t)){if(isNaN(t.getTime()))throw At(Ct.INVALID_DATE_ARGUMENT);a=t}else if(Te(t))a=t;else throw At(Ct.INVALID_ARGUMENT);return j(n)?i.key=n:Y(n)&&Object.keys(n).forEach(l=>{fc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:Y(r)&&(o=r),Y(s)&&(o=s),[i.key||"",a,i,o]}function dc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function hc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=Gi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,k=Hi(e,c),w=o(e,s,k);if(!j(l)||l==="")return new Intl.NumberFormat(k,f).format(u);let E={},_,y=null;const T="number format";for(let D=0;D<w.length&&(_=w[D],E=n[_]||{},y=E[l],!Y(y));D++)Vi(e,l,_,d,T);if(!Y(y)||!j(_))return r?ms:l;let g=`${_}__${l}`;cs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.NumberFormat(_,Ie({},y,f)),a.set(g,O)),m?O.formatToParts(u):O.format(u)}const pc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Gi(...e){const[t,n,r,s]=e,i=fe();let o=fe();if(!Te(t))throw At(Ct.INVALID_ARGUMENT);const a=t;return j(n)?i.key=n:Y(n)&&Object.keys(n).forEach(l=>{pc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:Y(r)&&(o=r),Y(s)&&(o=s),[i.key||"",a,i,o]}function mc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const Dm=e=>e,Mm=e=>"",Fm="text",jm=e=>e.length===0?"":Di(e),Um=bp;function gc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Wm(e){const t=Te(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Te(e.named.count)||Te(e.named.n))?Te(e.named.count)?e.named.count:Te(e.named.n)?e.named.n:t:t}function Hm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function zm(e={}){const t=e.locale,n=Wm(e),r=se(e.pluralRules)&&j(t)&&pe(e.pluralRules[t])?e.pluralRules[t]:gc,s=se(e.pluralRules)&&j(t)&&pe(e.pluralRules[t])?gc:void 0,i=_=>_[r(n,_.length,s)],o=e.list||[],a=_=>o[_],l=e.named||fe();Te(e.pluralIndex)&&Hm(n,l);const u=_=>l[_];function c(_,y){const T=pe(e.messages)?e.messages(_,!!y):se(e.messages)?e.messages[_]:!1;return T||(e.parent?e.parent.message(_):Mm)}const f=_=>e.modifiers?e.modifiers[_]:Dm,d=Y(e.processor)&&pe(e.processor.normalize)?e.processor.normalize:jm,m=Y(e.processor)&&pe(e.processor.interpolate)?e.processor.interpolate:Um,k=Y(e.processor)&&j(e.processor.type)?e.processor.type:Fm,E={list:a,named:u,plural:i,linked:(_,...y)=>{const[T,g]=y;let O="text",D="";y.length===1?se(T)?(D=T.modifier||D,O=T.type||O):j(T)&&(D=T||D):y.length===2&&(j(T)&&(D=T||D),j(g)&&(O=g||O));const L=c(_,!0)(E),M=O==="vnode"&&Se(L)&&D?L[0]:L;return D?f(D)(M,O):M},message:c,type:k,interpolate:m,normalize:d,values:Ie(fe(),o,l)};return E}const _c=()=>"",Je=e=>pe(e);function bc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,u]=Zi(...t),c=ne(u.missingWarn)?u.missingWarn:e.missingWarn,f=ne(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=ne(u.escapeParameter)?u.escapeParameter:e.escapeParameter,m=!!u.resolvedMessage,k=j(u.default)||ne(u.default)?ne(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,w=n||k!=null&&(j(k)||pe(k)),E=Hi(e,u);d&&Km(u);let[_,y,T]=m?[l,E,a[E]||fe()]:yc(e,l,E,o,f,c),g=_,O=l;if(!m&&!(j(g)||$n(g)||Je(g))&&w&&(g=k,O=g),!m&&(!(j(g)||$n(g)||Je(g))||!j(y)))return s?ms:l;let D=!1;const L=()=>{D=!0},M=Je(g)?g:wc(e,l,y,g,O,L);if(D)return g;const U=Gm(e,y,T,u),Z=zm(U),q=Vm(e,M,Z),Q=r?r(q,l):q;if(__INTLIFY_PROD_DEVTOOLS__){const Ce={timestamp:Date.now(),key:j(l)?l:Je(g)?g.key:"",locale:y||(Je(g)?g.locale:""),format:j(g)?g:Je(g)?g.source:"",message:Q};Ce.meta=Ie({},e.__meta,Lm()||{}),fm(Ce)}return Q}function Km(e){Se(e.list)?e.list=e.list.map(t=>j(t)?Vl(t):t):se(e.named)&&Object.keys(e.named).forEach(t=>{j(e.named[t])&&(e.named[t]=Vl(e.named[t]))})}function yc(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=fe(),d,m=null;const k="translate";for(let w=0;w<c.length&&(d=c[w],f=o[d]||fe(),(m=l(f,t))===null&&(m=f[t]),!(j(m)||$n(m)||Je(m)));w++)if(!$m(d,c)){const E=Vi(e,t,d,i,k);E!==t&&(m=E)}return[m,d,f]}function wc(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=e;if(Je(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,Bm(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function Vm(e,t,n){return t(n)}function Zi(...e){const[t,n,r]=e,s=fe();if(!j(t)&&!Te(t)&&!Je(t)&&!$n(t))throw At(Ct.INVALID_ARGUMENT);const i=Te(t)?String(t):(Je(t),t);return Te(n)?s.plural=n:j(n)?s.default=n:Y(n)&&!cs(n)?s.named=n:Se(n)&&(s.list=n),Te(r)?s.plural=r:j(r)?s.default=r:Y(r)&&Ie(s,r),[i,s]}function Bm(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>dp(t,n,o)}}function Gm(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:s,pluralRules:i,messages:(m,k)=>{let w=o(n,m);if(w==null&&(c||k)){const[,,E]=yc(c||e,m,t,a,l,u);w=o(E,m)}if(j(w)||$n(w)){let E=!1;const y=wc(e,m,t,w,m,()=>{E=!0});return E?_c:y}else return Je(w)?w:_c}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Te(r.plural)&&(d.pluralIndex=r.plural),d}Kp();/*!
42
42
  * vue-i18n v11.0.1
43
43
  * (c) 2024 kazuya kawaguchi
44
44
  * Released under the MIT License.
45
- */const Zm="11.0.1";function Ym(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(hn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(hn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(hn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hn().__INTLIFY_PROD_DEVTOOLS__=!1)}const ze={UNEXPECTED_RETURN_TYPE:hm,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Ge(e,...t){return ds(e,null,void 0)}const Zi=Kt("__translateVNode"),Yi=Kt("__datetimeParts"),Xi=Kt("__numberParts"),wc=Kt("__setPluralRules"),kc=Kt("__injectWithOption"),Ji=Kt("__dispose");function _r(e){if(!se(e))return e;for(const t in e)if(st(e,t))if(!t.includes("."))se(e[t])&&_r(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]in s||(s[n[o]]=fe()),!se(s[n[o]])){i=!0;break}s=s[n[o]]}i||(s[n[r]]=e[t],delete e[t]),se(s[n[r]])&&_r(s[n[r]])}return e}function qi(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=Y(n)?n:Se(r)?fe():{[e]:fe()};if(Se(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||fe(),fs(u,o[l])):fs(u,o)}else j(a)&&fs(JSON.parse(a),o)}),s==null&&i)for(const a in o)st(o,a)&&_r(o[a]);return o}function vc(e){return e.type}function Tc(e,t,n){let r=se(t.messages)?t.messages:fe();"__i18nGlobal"in n&&(r=qi(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(se(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(se(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Sc(e){return ke(tr,null,e,0)}const Ic="__INTLIFY_META__",Ec=()=>[],Xm=()=>!1;let xc=0;function Oc(e){return(t,n,r,s)=>e(n,r,ir()||void 0,s)}const Jm=()=>{const e=ir();let t=null;return e&&(t=vc(e)[Ic])?{[Ic]:t}:null};function Qi(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=ls?te:Ff;let o=ne(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:j(e.locale)?e.locale:mr),l=i(t&&o?t.fallbackLocale.value:j(e.fallbackLocale)||Se(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(qi(a.value,e)),c=i(Y(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(Y(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:ne(e.missingWarn)||Pn(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ne(e.fallbackWarn)||Pn(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:ne(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,E=pe(e.missing)?e.missing:null,_=pe(e.missing)?Oc(e.missing):null,y=pe(e.postTranslation)?e.postTranslation:null,I=t?t.warnHtmlMessage:ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const O=t?t.modifiers:Y(e.modifiers)?e.modifiers:{};let D=e.pluralRules||t&&t.pluralRules,L;L=(()=>{r&&ac(null);const S={version:Zm,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:O,pluralRules:D,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:m,fallbackFormat:w,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:I,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=c.value,S.numberFormats=f.value,S.__datetimeFormatters=Y(L)?L.__datetimeFormatters:void 0,S.__numberFormatters=Y(L)?L.__numberFormatters:void 0;const C=Rm(S);return r&&ac(C),C})(),gr(L,a.value,l.value);function U(){return[a.value,l.value,u.value,c.value,f.value]}const Z=rt({get:()=>a.value,set:S=>{a.value=S,L.locale=a.value}}),q=rt({get:()=>l.value,set:S=>{l.value=S,L.fallbackLocale=l.value,gr(L,a.value,S)}}),Q=rt(()=>u.value),Ce=rt(()=>c.value),it=rt(()=>f.value);function Yt(){return pe(y)?y:null}function ge(S){y=S,L.postTranslation=S}function G(){return E}function oe(S){S!==null&&(_=Oc(S)),E=S,L.missing=_}const Ae=(S,C,W,z,X,Oe)=>{U();let ve;try{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=t?Pm():void 0),ve=S(L)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=void 0)}if(W!=="translate exists"&&Te(ve)&&ve===ms||W==="translate exists"&&!ve){const[tt,ot]=C();return t&&k?z(t):X(tt)}else{if(Oe(ve))return ve;throw Ge(ze.UNEXPECTED_RETURN_TYPE)}};function Rt(...S){return Ae(C=>Reflect.apply(_c,null,[C,...S]),()=>Gi(...S),"translate",C=>Reflect.apply(C.t,C,[...S]),C=>C,C=>j(C))}function et(...S){const[C,W,z]=S;if(z&&!se(z))throw Ge(ze.INVALID_ARGUMENT);return Rt(C,W,Ie({resolvedMessage:!0},z||{}))}function Ke(...S){return Ae(C=>Reflect.apply(cc,null,[C,...S]),()=>Vi(...S),"datetime format",C=>Reflect.apply(C.d,C,[...S]),()=>ec,C=>j(C))}function Un(...S){return Ae(C=>Reflect.apply(dc,null,[C,...S]),()=>Bi(...S),"number format",C=>Reflect.apply(C.n,C,[...S]),()=>ec,C=>j(C))}function Or(S){return S.map(C=>j(C)||Te(C)||ne(C)?Sc(String(C)):C)}const Nt={normalize:Or,interpolate:S=>S,type:"vnode"};function Xt(...S){return Ae(C=>{let W;const z=C;try{z.processor=Nt,W=Reflect.apply(_c,null,[z,...S])}finally{z.processor=null}return W},()=>Gi(...S),"translate",C=>C[Zi](...S),C=>[Sc(C)],C=>Se(C))}function Jt(...S){return Ae(C=>Reflect.apply(dc,null,[C,...S]),()=>Bi(...S),"number format",C=>C[Xi](...S),Ec,C=>j(C)||Se(C))}function Wn(...S){return Ae(C=>Reflect.apply(cc,null,[C,...S]),()=>Vi(...S),"datetime format",C=>C[Yi](...S),Ec,C=>j(C)||Se(C))}function $t(S){D=S,L.pluralRules=D}function $s(S,C){return Ae(()=>{if(!S)return!1;const W=j(C)?C:a.value,z=A(W),X=L.messageResolver(z,S);return $n(X)||Je(X)||j(X)},()=>[S],"translate exists",W=>Reflect.apply(W.te,W,[S,C]),Xm,W=>ne(W))}function b(S){let C=null;const W=Jl(L,l.value,a.value);for(let z=0;z<W.length;z++){const X=u.value[W[z]]||{},Oe=L.messageResolver(X,S);if(Oe!=null){C=Oe;break}}return C}function v(S){const C=b(S);return C??(t?t.tm(S)||{}:{})}function A(S){return u.value[S]||{}}function N(S,C){if(s){const W={[S]:C};for(const z in W)st(W,z)&&_r(W[z]);C=W[S]}u.value[S]=C,L.messages=u.value}function R(S,C){u.value[S]=u.value[S]||{};const W={[S]:C};if(s)for(const z in W)st(W,z)&&_r(W[z]);C=W[S],fs(C,u.value[S]),L.messages=u.value}function $(S){return c.value[S]||{}}function h(S,C){c.value[S]=C,L.datetimeFormats=c.value,fc(L,S,C)}function p(S,C){c.value[S]=Ie(c.value[S]||{},C),L.datetimeFormats=c.value,fc(L,S,C)}function T(S){return f.value[S]||{}}function x(S,C){f.value[S]=C,L.numberFormats=f.value,pc(L,S,C)}function F(S,C){f.value[S]=Ie(f.value[S]||{},C),L.numberFormats=f.value,pc(L,S,C)}xc++,t&&ls&&(ft(t.locale,S=>{o&&(a.value=S,L.locale=S,gr(L,a.value,l.value))}),ft(t.fallbackLocale,S=>{o&&(l.value=S,L.fallbackLocale=S,gr(L,a.value,l.value))}));const P={id:xc,locale:Z,fallbackLocale:q,get inheritLocale(){return o},set inheritLocale(S){o=S,S&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,gr(L,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Q,get modifiers(){return O},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(S){d=S,L.missingWarn=d},get fallbackWarn(){return m},set fallbackWarn(S){m=S,L.fallbackWarn=m},get fallbackRoot(){return k},set fallbackRoot(S){k=S},get fallbackFormat(){return w},set fallbackFormat(S){w=S,L.fallbackFormat=w},get warnHtmlMessage(){return I},set warnHtmlMessage(S){I=S,L.warnHtmlMessage=S},get escapeParameter(){return g},set escapeParameter(S){g=S,L.escapeParameter=S},t:Rt,getLocaleMessage:A,setLocaleMessage:N,mergeLocaleMessage:R,getPostTranslationHandler:Yt,setPostTranslationHandler:ge,getMissingHandler:G,setMissingHandler:oe,[wc]:$t};return P.datetimeFormats=Ce,P.numberFormats=it,P.rt=et,P.te=$s,P.tm=v,P.d=Ke,P.n=Un,P.getDateTimeFormat=$,P.setDateTimeFormat=h,P.mergeDateTimeFormat=p,P.getNumberFormat=T,P.setNumberFormat=x,P.mergeNumberFormat=F,P[kc]=n,P[Zi]=Xt,P[Yi]=Wn,P[Xi]=Jt,P}function qm(e){const t=j(e.locale)?e.locale:mr,n=j(e.fallbackLocale)||Se(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=pe(e.missing)?e.missing:void 0,s=ne(e.silentTranslationWarn)||Pn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ne(e.silentFallbackWarn)||Pn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ne(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=j(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,m=ne(e.sync)?e.sync:!0;let k=e.messages;if(Y(e.sharedMessages)){const O=e.sharedMessages;k=Object.keys(O).reduce((L,M)=>{const U=L[M]||(L[M]={});return Ie(U,O[M]),L},k||{})}const{__i18n:w,__root:E,__injectWithOption:_}=e,y=e.datetimeFormats,I=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:g,datetimeFormats:y,numberFormats:I,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:m,__i18n:w,__root:E,__injectWithOption:_}}function eo(e={}){const t=Qi(qm(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return ne(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=ne(s)?!s:s},get silentFallbackWarn(){return ne(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=ne(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,i){return t.te(s,i)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,i){t.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){t.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,i){t.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){t.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,i){t.setNumberFormat(s,i)},mergeNumberFormat(s,i){t.mergeNumberFormat(s,i)}};return r.__extender=n,r}function Qm(e,t,n){return{beforeCreate(){const r=ir();if(!r)throw Ge(ze.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=t,this===this.$root)this.$i18n=Cc(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=eo(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Cc(e,s);else{this.$i18n=eo({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Tc(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=ir();if(!r)throw Ge(ze.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Cc(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[wc](t.pluralizationRules||e.pluralizationRules);const n=qi(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 to={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function eg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ee?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},fe())}function Ac(){return Ee}const Lc=ut({name:"i18n-t",props:Ie({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Te(e)||!isNaN(e)}},to),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||gt({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o=fe();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=j(e.plural)?+e.plural:e.plural);const a=eg(t,i),l=s[Zi](e.keypath,a,o),u=Ie(fe(),r),c=j(e.tag)||se(e.tag)?e.tag:Ac();return lr(c,u,l)}}});function tg(e){return Se(e)&&!j(e[0])}function Pc(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a=fe();e.locale&&(o.locale=e.locale),j(e.format)?o.key=e.format:se(e.format)&&(j(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,m)=>n.includes(m)?Ie(fe(),d,{[m]:e.format[m]}):d,fe()));const l=r(e.value,o,a);let u=[o.key];Se(l)?u=l.map((d,m)=>{const k=s[d.type],w=k?k({[d.type]:d.value,index:m,parts:l}):[d.value];return tg(w)&&(w[0].key=`${d.type}-${m}`),w}):j(l)&&(u=[l]);const c=Ie(fe(),i),f=j(e.tag)||se(e.tag)?e.tag:Ac();return lr(f,c,u)}}const Rc=ut({name:"i18n-n",props:Ie({value:{type:Number,required:!0},format:{type:[String,Object]}},to),setup(e,t){const n=e.i18n||gt({useScope:e.scope,__useComponent:!0});return Pc(e,t,hc,(...r)=>n[Xi](...r))}});function ng(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 rg(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw Ge(ze.UNEXPECTED_ERROR);const u=ng(e,a.$),c=Nc(l);return[Reflect.apply(u.t,u,[...$c(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);ls&&e.global===u&&(o.__i18nWatcher=ft(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{ls&&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=Nc(a);o.textContent=Reflect.apply(l.t,l,[...$c(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function Nc(e){if(j(e))return{path:e};if(Y(e)){if(!("path"in e))throw Ge(ze.REQUIRED_VALUE,"path");return e}else throw Ge(ze.INVALID_VALUE)}function $c(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return j(n)&&(o.locale=n),Te(s)&&(o.plural=s),Te(i)&&(o.plural=i),[t,a,o]}function sg(e,t,...n){const r=Y(n[0])?n[0]:{};(ne(r.globalInstall)?r.globalInstall:!0)&&([Lc.name,"I18nT"].forEach(i=>e.component(i,Lc)),[Rc.name,"I18nN"].forEach(i=>e.component(i,Rc)),[Mc.name,"I18nD"].forEach(i=>e.component(i,Mc))),e.directive("t",rg(t))}const ig=Kt("global-vue-i18n");function og(e={}){const t=__VUE_I18N_LEGACY_API__&&ne(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=ne(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,i]=ag(e,t),o=Kt("");function a(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,c),Y(d[0])){const w=d[0];c.__composerExtend=w.__composerExtend,c.__vueI18nExtend=w.__vueI18nExtend}let m=null;!t&&n&&(m=mg(f,c.global)),__VUE_I18N_FULL_INSTALL__&&sg(f,c,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Qm(i,i.__composer,c));const k=f.unmount;f.unmount=()=>{m&&m(),c.dispose(),k()}},get global(){return i},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:u};return c}function gt(e={}){const t=ir();if(t==null)throw Ge(ze.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ge(ze.NOT_INSTALLED);const n=lg(t),r=ug(n),s=vc(t),i=cg(e,s);if(i==="global")return Tc(r,e,s),r;if(i==="parent"){let l=fg(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Ie({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=Qi(l),o.__composerExtend&&(a[Ji]=o.__composerExtend(a)),hg(o,t,a),o.__setInstance(t,a)}return a}function ag(e,t){const n=Hs(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>eo(e)):n.run(()=>Qi(e));if(r==null)throw Ge(ze.UNEXPECTED_ERROR);return[n,r]}function lg(e){const t=Ue(e.isCE?ig:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ge(e.isCE?ze.NOT_INSTALLED_WITH_PROVIDE:ze.UNEXPECTED_ERROR);return t}function cg(e,t){return cs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function ug(e){return e.mode==="composition"?e.global:e.global.__composer}function fg(e,t,n=!1){let r=null;const s=t.root;let i=dg(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[kc]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function dg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function hg(e,t,n){qn(()=>{},t),ii(()=>{const r=n;e.__deleteInstance(t);const s=r[Ji];s&&(s(),delete r[Ji])},t)}const pg=["locale","fallbackLocale","availableLocales"],Dc=["t","rt","d","n","tm","te"];function mg(e,t){const n=Object.create(null);return pg.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Ge(ze.UNEXPECTED_ERROR);const o=ye(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,Dc.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Ge(ze.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,Dc.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Mc=ut({name:"i18n-d",props:Ie({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},to),setup(e,t){const n=e.i18n||gt({useScope:e.scope,__useComponent:!0});return Pc(e,t,uc,(...r)=>n[Yi](...r))}});if(Ym(),xm(lm),Om(Sm),Cm(Jl),__INTLIFY_PROD_DEVTOOLS__){const e=hn();e.__INTLIFY__=!0,cm(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Fc(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}function gg(){this.__data__=[],this.size=0}function jc(e,t){return e===t||e!==e&&t!==t}function gs(e,t){for(var n=e.length;n--;)if(jc(e[n][0],t))return n;return-1}var _g=Array.prototype,bg=_g.splice;function yg(e){var t=this.__data__,n=gs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():bg.call(t,n,1),--this.size,!0}function wg(e){var t=this.__data__,n=gs(t,e);return n<0?void 0:t[n][1]}function kg(e){return gs(this.__data__,e)>-1}function vg(e,t){var n=this.__data__,r=gs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Lt(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])}}Lt.prototype.clear=gg,Lt.prototype.delete=yg,Lt.prototype.get=wg,Lt.prototype.has=kg,Lt.prototype.set=vg;function Tg(){this.__data__=new Lt,this.size=0}function Sg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ig(e){return this.__data__.get(e)}function Eg(e){return this.__data__.has(e)}var Uc=typeof global=="object"&&global&&global.Object===Object&&global,xg=typeof self=="object"&&self&&self.Object===Object&&self,_t=Uc||xg||Function("return this")(),bt=_t.Symbol,Wc=Object.prototype,Og=Wc.hasOwnProperty,Cg=Wc.toString,br=bt?bt.toStringTag:void 0;function Ag(e){var t=Og.call(e,br),n=e[br];try{e[br]=void 0;var r=!0}catch{}var s=Cg.call(e);return r&&(t?e[br]=n:delete e[br]),s}var Lg=Object.prototype,Pg=Lg.toString;function Rg(e){return Pg.call(e)}var Ng="[object Null]",$g="[object Undefined]",Hc=bt?bt.toStringTag:void 0;function pn(e){return e==null?e===void 0?$g:Ng:Hc&&Hc in Object(e)?Ag(e):Rg(e)}function yr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dg="[object AsyncFunction]",Mg="[object Function]",Fg="[object GeneratorFunction]",jg="[object Proxy]";function zc(e){if(!yr(e))return!1;var t=pn(e);return t==Mg||t==Fg||t==Dg||t==jg}var no=_t["__core-js_shared__"],Kc=function(){var e=/[^.]+$/.exec(no&&no.keys&&no.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ug(e){return!!Kc&&Kc in e}var Wg=Function.prototype,Hg=Wg.toString;function mn(e){if(e!=null){try{return Hg.call(e)}catch{}try{return e+""}catch{}}return""}var zg=/[\\^$.*+?()[\]{}|]/g,Kg=/^\[object .+?Constructor\]$/,Vg=Function.prototype,Bg=Object.prototype,Gg=Vg.toString,Zg=Bg.hasOwnProperty,Yg=RegExp("^"+Gg.call(Zg).replace(zg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xg(e){if(!yr(e)||Ug(e))return!1;var t=zc(e)?Yg:Kg;return t.test(mn(e))}function Jg(e,t){return e?.[t]}function gn(e,t){var n=Jg(e,t);return Xg(n)?n:void 0}var wr=gn(_t,"Map"),kr=gn(Object,"create");function qg(){this.__data__=kr?kr(null):{},this.size=0}function Qg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var e_="__lodash_hash_undefined__",t_=Object.prototype,n_=t_.hasOwnProperty;function r_(e){var t=this.__data__;if(kr){var n=t[e];return n===e_?void 0:n}return n_.call(t,e)?t[e]:void 0}var s_=Object.prototype,i_=s_.hasOwnProperty;function o_(e){var t=this.__data__;return kr?t[e]!==void 0:i_.call(t,e)}var a_="__lodash_hash_undefined__";function l_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kr&&t===void 0?a_:t,this}function _n(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])}}_n.prototype.clear=qg,_n.prototype.delete=Qg,_n.prototype.get=r_,_n.prototype.has=o_,_n.prototype.set=l_;function c_(){this.size=0,this.__data__={hash:new _n,map:new(wr||Lt),string:new _n}}function u_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _s(e,t){var n=e.__data__;return u_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function f_(e){var t=_s(this,e).delete(e);return this.size-=t?1:0,t}function d_(e){return _s(this,e).get(e)}function h_(e){return _s(this,e).has(e)}function p_(e,t){var n=_s(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Zt(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])}}Zt.prototype.clear=c_,Zt.prototype.delete=f_,Zt.prototype.get=d_,Zt.prototype.has=h_,Zt.prototype.set=p_;var m_=200;function g_(e,t){var n=this.__data__;if(n instanceof Lt){var r=n.__data__;if(!wr||r.length<m_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(e,t),this.size=n.size,this}function Dn(e){var t=this.__data__=new Lt(e);this.size=t.size}Dn.prototype.clear=Tg,Dn.prototype.delete=Sg,Dn.prototype.get=Ig,Dn.prototype.has=Eg,Dn.prototype.set=g_;function __(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var bs=function(){try{var e=gn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Vc(e,t,n){t=="__proto__"&&bs?bs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var b_=Object.prototype,y_=b_.hasOwnProperty;function Bc(e,t,n){var r=e[t];(!(y_.call(e,t)&&jc(r,n))||n===void 0&&!(t in e))&&Vc(e,t,n)}function vr(e,t,n,r){var s=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),s?Vc(n,a,l):Bc(n,a,l)}return n}function w_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function bn(e){return e!=null&&typeof e=="object"}var k_="[object Arguments]";function Gc(e){return bn(e)&&pn(e)==k_}var Zc=Object.prototype,v_=Zc.hasOwnProperty,T_=Zc.propertyIsEnumerable,Yc=Gc(function(){return arguments}())?Gc:function(e){return bn(e)&&v_.call(e,"callee")&&!T_.call(e,"callee")},yn=Array.isArray;function S_(){return!1}var Xc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jc=Xc&&typeof module=="object"&&module&&!module.nodeType&&module,I_=Jc&&Jc.exports===Xc,qc=I_?_t.Buffer:void 0,E_=qc?qc.isBuffer:void 0,Qc=E_||S_,x_=9007199254740991,O_=/^(?:0|[1-9]\d*)$/;function C_(e,t){var n=typeof e;return t=t??x_,!!t&&(n=="number"||n!="symbol"&&O_.test(e))&&e>-1&&e%1==0&&e<t}var A_=9007199254740991;function eu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=A_}var L_="[object Arguments]",P_="[object Array]",R_="[object Boolean]",N_="[object Date]",$_="[object Error]",D_="[object Function]",M_="[object Map]",F_="[object Number]",j_="[object Object]",U_="[object RegExp]",W_="[object Set]",H_="[object String]",z_="[object WeakMap]",K_="[object ArrayBuffer]",V_="[object DataView]",B_="[object Float32Array]",G_="[object Float64Array]",Z_="[object Int8Array]",Y_="[object Int16Array]",X_="[object Int32Array]",J_="[object Uint8Array]",q_="[object Uint8ClampedArray]",Q_="[object Uint16Array]",eb="[object Uint32Array]",me={};me[B_]=me[G_]=me[Z_]=me[Y_]=me[X_]=me[J_]=me[q_]=me[Q_]=me[eb]=!0,me[L_]=me[P_]=me[K_]=me[R_]=me[V_]=me[N_]=me[$_]=me[D_]=me[M_]=me[F_]=me[j_]=me[U_]=me[W_]=me[H_]=me[z_]=!1;function tb(e){return bn(e)&&eu(e.length)&&!!me[pn(e)]}function ro(e){return function(t){return e(t)}}var tu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tr=tu&&typeof module=="object"&&module&&!module.nodeType&&module,nb=Tr&&Tr.exports===tu,so=nb&&Uc.process,Mn=function(){try{var e=Tr&&Tr.require&&Tr.require("util").types;return e||so&&so.binding&&so.binding("util")}catch{}}(),nu=Mn&&Mn.isTypedArray,rb=nu?ro(nu):tb,sb=Object.prototype,ib=sb.hasOwnProperty;function ru(e,t){var n=yn(e),r=!n&&Yc(e),s=!n&&!r&&Qc(e),i=!n&&!r&&!s&&rb(e),o=n||r||s||i,a=o?w_(e.length,String):[],l=a.length;for(var u in e)(t||ib.call(e,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||C_(u,l)))&&a.push(u);return a}var ob=Object.prototype;function io(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ob;return e===n}function su(e,t){return function(n){return e(t(n))}}var ab=su(Object.keys,Object),lb=Object.prototype,cb=lb.hasOwnProperty;function ub(e){if(!io(e))return ab(e);var t=[];for(var n in Object(e))cb.call(e,n)&&n!="constructor"&&t.push(n);return t}function iu(e){return e!=null&&eu(e.length)&&!zc(e)}function oo(e){return iu(e)?ru(e):ub(e)}function fb(e,t){return e&&vr(t,oo(t),e)}function db(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var hb=Object.prototype,pb=hb.hasOwnProperty;function mb(e){if(!yr(e))return db(e);var t=io(e),n=[];for(var r in e)r=="constructor"&&(t||!pb.call(e,r))||n.push(r);return n}function ao(e){return iu(e)?ru(e,!0):mb(e)}function gb(e,t){return e&&vr(t,ao(t),e)}var ou=typeof exports=="object"&&exports&&!exports.nodeType&&exports,au=ou&&typeof module=="object"&&module&&!module.nodeType&&module,_b=au&&au.exports===ou,lu=_b?_t.Buffer:void 0,cu=lu?lu.allocUnsafe:void 0;function bb(e,t){if(t)return e.slice();var n=e.length,r=cu?cu(n):new e.constructor(n);return e.copy(r),r}function yb(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function wb(e,t){for(var n=-1,r=e==null?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}function uu(){return[]}var kb=Object.prototype,vb=kb.propertyIsEnumerable,fu=Object.getOwnPropertySymbols,lo=fu?function(e){return e==null?[]:(e=Object(e),wb(fu(e),function(t){return vb.call(e,t)}))}:uu;function Tb(e,t){return vr(e,lo(e),t)}function co(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var uo=su(Object.getPrototypeOf,Object),Sb=Object.getOwnPropertySymbols,du=Sb?function(e){for(var t=[];e;)co(t,lo(e)),e=uo(e);return t}:uu;function Ib(e,t){return vr(e,du(e),t)}function hu(e,t,n){var r=t(e);return yn(e)?r:co(r,n(e))}function Eb(e){return hu(e,oo,lo)}function pu(e){return hu(e,ao,du)}var fo=gn(_t,"DataView"),ho=gn(_t,"Promise"),po=gn(_t,"Set"),mo=gn(_t,"WeakMap"),mu="[object Map]",xb="[object Object]",gu="[object Promise]",_u="[object Set]",bu="[object WeakMap]",yu="[object DataView]",Ob=mn(fo),Cb=mn(wr),Ab=mn(ho),Lb=mn(po),Pb=mn(mo),Pt=pn;(fo&&Pt(new fo(new ArrayBuffer(1)))!=yu||wr&&Pt(new wr)!=mu||ho&&Pt(ho.resolve())!=gu||po&&Pt(new po)!=_u||mo&&Pt(new mo)!=bu)&&(Pt=function(e){var t=pn(e),n=t==xb?e.constructor:void 0,r=n?mn(n):"";if(r)switch(r){case Ob:return yu;case Cb:return mu;case Ab:return gu;case Lb:return _u;case Pb:return bu}return t});var Rb=Object.prototype,Nb=Rb.hasOwnProperty;function $b(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Nb.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var wu=_t.Uint8Array;function go(e){var t=new e.constructor(e.byteLength);return new wu(t).set(new wu(e)),t}function Db(e,t){var n=t?go(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Mb=/\w*$/;function Fb(e){var t=new e.constructor(e.source,Mb.exec(e));return t.lastIndex=e.lastIndex,t}var ku=bt?bt.prototype:void 0,vu=ku?ku.valueOf:void 0;function jb(e){return vu?Object(vu.call(e)):{}}function Ub(e,t){var n=t?go(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Wb="[object Boolean]",Hb="[object Date]",zb="[object Map]",Kb="[object Number]",Vb="[object RegExp]",Bb="[object Set]",Gb="[object String]",Zb="[object Symbol]",Yb="[object ArrayBuffer]",Xb="[object DataView]",Jb="[object Float32Array]",qb="[object Float64Array]",Qb="[object Int8Array]",ey="[object Int16Array]",ty="[object Int32Array]",ny="[object Uint8Array]",ry="[object Uint8ClampedArray]",sy="[object Uint16Array]",iy="[object Uint32Array]";function oy(e,t,n){var r=e.constructor;switch(t){case Yb:return go(e);case Wb:case Hb:return new r(+e);case Xb:return Db(e,n);case Jb:case qb:case Qb:case ey:case ty:case ny:case ry:case sy:case iy:return Ub(e,n);case zb:return new r;case Kb:case Gb:return new r(e);case Vb:return Fb(e);case Bb:return new r;case Zb:return jb(e)}}var Tu=Object.create,ay=function(){function e(){}return function(t){if(!yr(t))return{};if(Tu)return Tu(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function ly(e){return typeof e.constructor=="function"&&!io(e)?ay(uo(e)):{}}var cy="[object Map]";function uy(e){return bn(e)&&Pt(e)==cy}var Su=Mn&&Mn.isMap,fy=Su?ro(Su):uy,dy="[object Set]";function hy(e){return bn(e)&&Pt(e)==dy}var Iu=Mn&&Mn.isSet,py=Iu?ro(Iu):hy,my=1,gy=2,_y=4,Eu="[object Arguments]",by="[object Array]",yy="[object Boolean]",wy="[object Date]",ky="[object Error]",xu="[object Function]",vy="[object GeneratorFunction]",Ty="[object Map]",Sy="[object Number]",Ou="[object Object]",Iy="[object RegExp]",Ey="[object Set]",xy="[object String]",Oy="[object Symbol]",Cy="[object WeakMap]",Ay="[object ArrayBuffer]",Ly="[object DataView]",Py="[object Float32Array]",Ry="[object Float64Array]",Ny="[object Int8Array]",$y="[object Int16Array]",Dy="[object Int32Array]",My="[object Uint8Array]",Fy="[object Uint8ClampedArray]",jy="[object Uint16Array]",Uy="[object Uint32Array]",he={};he[Eu]=he[by]=he[Ay]=he[Ly]=he[yy]=he[wy]=he[Py]=he[Ry]=he[Ny]=he[$y]=he[Dy]=he[Ty]=he[Sy]=he[Ou]=he[Iy]=he[Ey]=he[xy]=he[Oy]=he[My]=he[Fy]=he[jy]=he[Uy]=!0,he[ky]=he[xu]=he[Cy]=!1;function ys(e,t,n,r,s,i){var o,a=t&my,l=t&gy,u=t&_y;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!yr(e))return e;var c=yn(e);if(c){if(o=$b(e),!a)return yb(e,o)}else{var f=Pt(e),d=f==xu||f==vy;if(Qc(e))return bb(e,a);if(f==Ou||f==Eu||d&&!s){if(o=l||d?{}:ly(e),!a)return l?Ib(e,gb(o,e)):Tb(e,fb(o,e))}else{if(!he[f])return s?e:{};o=oy(e,f,a)}}i||(i=new Dn);var m=i.get(e);if(m)return m;i.set(e,o),py(e)?e.forEach(function(E){o.add(ys(E,t,n,E,e,i))}):fy(e)&&e.forEach(function(E,_){o.set(_,ys(E,t,n,_,e,i))});var k=u?l?pu:Eb:l?ao:oo,w=c?void 0:k(e);return __(w||e,function(E,_){w&&(_=E,E=e[_]),Bc(o,_,ys(E,t,n,_,e,i))}),o}var Wy="[object Symbol]";function _o(e){return typeof e=="symbol"||bn(e)&&pn(e)==Wy}var Hy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zy=/^\w*$/;function Ky(e,t){if(yn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_o(e)?!0:zy.test(e)||!Hy.test(e)||t!=null&&e in Object(t)}var Vy="Expected a function";function bo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Vy);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(bo.Cache||Zt),n}bo.Cache=Zt;var By=500;function Gy(e){var t=bo(e,function(r){return n.size===By&&n.clear(),r}),n=t.cache;return t}var Zy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yy=/\\(\\)?/g,Xy=Gy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Zy,function(n,r,s,i){t.push(s?i.replace(Yy,"$1"):r||n)}),t}),Cu=bt?bt.prototype:void 0,Au=Cu?Cu.toString:void 0;function Lu(e){if(typeof e=="string")return e;if(yn(e))return Fc(e,Lu)+"";if(_o(e))return Au?Au.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Jy(e){return e==null?"":Lu(e)}function yo(e,t){return yn(e)?e:Ky(e,t)?[e]:Xy(Jy(e))}function qy(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Pu(e){if(typeof e=="string"||_o(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Qy(e,t){t=yo(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Pu(t[n++])];return n&&n==r?e:void 0}function ew(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(s);++r<s;)i[r]=e[r+t];return i}function tw(e,t){return t.length<2?e:Qy(e,ew(t,0,-1))}function nw(e,t){return t=yo(t,e),e=tw(e,t),e==null||delete e[Pu(qy(t))]}var rw="[object Object]",sw=Function.prototype,iw=Object.prototype,Ru=sw.toString,ow=iw.hasOwnProperty,aw=Ru.call(Object);function lw(e){if(!bn(e)||pn(e)!=rw)return!1;var t=uo(e);if(t===null)return!0;var n=ow.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ru.call(n)==aw}function cw(e){return lw(e)?void 0:e}var Nu=bt?bt.isConcatSpreadable:void 0;function uw(e){return yn(e)||Yc(e)||!!(Nu&&e&&e[Nu])}function fw(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=uw),s||(s=[]);++i<o;){var a=e[i];n(a)?co(s,a):s[s.length]=a}return s}function dw(e){var t=e==null?0:e.length;return t?fw(e):[]}function hw(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 $u=Math.max;function pw(e,t,n){return t=$u(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=$u(r.length-t,0),o=Array(i);++s<i;)o[s]=r[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=r[s];return a[t]=n(o),hw(e,this,a)}}function mw(e){return function(){return e}}function gw(e){return e}var _w=bs?function(e,t){return bs(e,"toString",{configurable:!0,enumerable:!1,value:mw(t),writable:!0})}:gw,bw=800,yw=16,ww=Date.now;function kw(e){var t=0,n=0;return function(){var r=ww(),s=yw-(r-n);if(n=r,s>0){if(++t>=bw)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var vw=kw(_w);function Tw(e){return vw(pw(e,void 0,dw),e+"")}var Sw=1,Iw=2,Ew=4,xw=Tw(function(e,t){var n={};if(e==null)return n;var r=!1;t=Fc(t,function(i){return i=yo(i,e),r||(r=i.length>1),i}),vr(e,pu(e),n),r&&(n=ys(n,Sw|Iw|Ew,cw));for(var s=t.length;s--;)nw(n,t[s]);return n});const Du={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 Ow(){return!!navigator.userAgent.match(/Macintosh/)}function Cw(e,t){return(Ow()?e.metaKey:e.ctrlKey)&&e.key===t}var ws=(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))(ws||{});const Aw=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function ks(e){return e<10?`0${e}`:`${e}`}function Mu(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function Fu(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${ks(n)}-${ks(r)}`}function ju(e){e instanceof Date||(e=Mu(e));const t=new Date,n=Fu(e);if(Fu(t)===n){const r=e.getHours(),s=e.getMinutes();return`${ks(r)}:${ks(s)}`}return n}function Lw(e){const{id:t,created_at:n,parent_id:r,ancestor_id:s,post_id:i,user_id:o,...a}=e;return{...a,id:Number(t),userId:o,parentId:Number(r),postId:i,ancestorId:Number(s),status:Number(e.status),createdAt:Mu(n)}}const wo="awesome-comment-comments",Uu=localStorage.getItem(wo),Fn=Uu?JSON.parse(Uu):{},jn=Al("store",()=>{const e=Ue("postId"),t=Ue("comments"),n=Ue("total"),r=te(!!t?.length),s=te(0),i=te(""),o=te([]),a=te(n||0),l=Ue("ApiBaseUrl"),u=te(!1),c=te(!1);function f(E){const _={},y=[];E.forEach(g=>{k(Number(g.id));const O=Lw(g);!g.ancestor_id||Number(g.ancestor_id)===0?_[g.id]=O:y.push(O)});const I=Fn[e];I&&(I.createdAt=new Date(I.createdAt),!I.ancestorId||Number(I.ancestorId)===0?_[I.id]=I:y.push(I)),y.forEach(g=>{if(g.ancestorId in _){const O=_[g.ancestorId];O.children=[g,...O.children||[]]}});for(const g in _){const O=_[g];O.children&&(O.children=O.children.sort((D,L)=>D.id-L.id))}return _}async function d(E=!1){if(u.value)return;i.value="",u.value=!0;let _;if(E&&t?.length)_=f(t);else{const y=new URLSearchParams;y.append("postId",e),y.append("start",s.value.toString());const I=await fetch(`${l}/api/comments?${y}`);if(!I.ok){i.value="Load comments failed. "+I.statusText,r.value=!0,u.value=!1;return}const g=await I.json();if(g.code!==0){i.value="Load comments failed. "+g.message,r.value=!0,u.value=!1;return}_=f(g.data||[]),a.value=g.meta?.total||g.data?.length||0}c.value=Object.keys(_).length>20,c.value&&delete _[Object.keys(_)[0]],Object.assign(o.value,_),r.value=!0,u.value=!1}function m(E,_,y,I=ws.Pending,g,O){const{sub:D="",name:L="",picture:M="",email:U="",nickname:Z=""}=y,q={id:E,postId:e,content:_,createdAt:new Date,user:{avatar:M,email:U,name:Z||L},userId:D,status:I,isNew:!0};if(g||O){q.ancestorId=g,q.parentId=O;const Q=o.value[g];if(Q.children||(Q.children=[]),g===O)Q.children.unshift(q);else{const Ce=Q.children.findIndex(it=>Number(it.id)===O);Q.children.splice(Ce+1,0,q)}}else q.ancestorId=0,q.parentId=0,o.value={[E]:q,...o.value};a.value++,I!==ws.Approved&&(Fn[e]=q,localStorage.setItem(wo,JSON.stringify(Fn)))}function k(E){Fn[e]?.id===E&&(delete Fn[e],localStorage.setItem(wo,JSON.stringify(Fn)))}function w(E,_){let y=o.value[E];if(!y){for(const I of Object.values(o.value))if(I.children&&(y=I.children.find(g=>Number(g.id)===E),y))break}y&&Object.assign(y,_)}return{isLoaded:r,message:i,postId:e,comments:o,total:a,start:s,hasMore:c,loadingMore:u,loadComments:d,addComment:m,updateComment:w}});var Pw={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function s(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var m=new s(c,f||l,d),k=n?n+u:u;return l._events[k]?l._events[k].fn?l._events[k]=[l._events[k],m]:l._events[k].push(m):(l._events[k]=m,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,c;if(this._eventsCount===0)return l;for(c in u=this._events)t.call(u,c)&&l.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,c=this._events[u];if(!c)return[];if(c.fn)return[c.fn];for(var f=0,d=c.length,m=new Array(d);f<d;f++)m[f]=c[f].fn;return m},a.prototype.listenerCount=function(l){var u=n?n+l:l,c=this._events[u];return c?c.fn?1:c.length:0},a.prototype.emit=function(l,u,c,f,d,m){var k=n?n+l:l;if(!this._events[k])return!1;var w=this._events[k],E=arguments.length,_,y;if(w.fn){switch(w.once&&this.removeListener(l,w.fn,void 0,!0),E){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,u),!0;case 3:return w.fn.call(w.context,u,c),!0;case 4:return w.fn.call(w.context,u,c,f),!0;case 5:return w.fn.call(w.context,u,c,f,d),!0;case 6:return w.fn.call(w.context,u,c,f,d,m),!0}for(y=1,_=new Array(E-1);y<E;y++)_[y-1]=arguments[y];w.fn.apply(w.context,_)}else{var I=w.length,g;for(y=0;y<I;y++)switch(w[y].once&&this.removeListener(l,w[y].fn,void 0,!0),E){case 1:w[y].fn.call(w[y].context);break;case 2:w[y].fn.call(w[y].context,u);break;case 3:w[y].fn.call(w[y].context,u,c);break;case 4:w[y].fn.call(w[y].context,u,c,f);break;default:if(!_)for(g=1,_=new Array(E-1);g<E;g++)_[g-1]=arguments[g];w[y].fn.apply(w[y].context,_)}}return!0},a.prototype.on=function(l,u,c){return i(this,l,u,c,!1)},a.prototype.once=function(l,u,c){return i(this,l,u,c,!0)},a.prototype.removeListener=function(l,u,c,f){var d=n?n+l:l;if(!this._events[d])return this;if(!u)return o(this,d),this;var m=this._events[d];if(m.fn)m.fn===u&&(!f||m.once)&&(!c||m.context===c)&&o(this,d);else{for(var k=0,w=[],E=m.length;k<E;k++)(m[k].fn!==u||f&&!m[k].once||c&&m[k].context!==c)&&w.push(m[k]);w.length?this._events[d]=w.length===1?w[0]:w:o(this,d)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(Pw);class Rw extends Error{}Rw.prototype.name="InvalidTokenError";var Nw=typeof global=="object"&&global&&global.Object===Object&&global,$w=typeof self=="object"&&self&&self.Object===Object&&self,Dw=Nw||$w||Function("return this")(),vs=Dw.Symbol;vs&&vs.toStringTag,vs&&vs.toStringTag;var Ts=(e=>(e.INIT="init",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(Ts||{});const ko=Al("auth",()=>{const e=Ue("awesomeAuth"),t=!e&&fp(),n=te(!1),r=te(!1),s=te(),i=!!e,o=rt(()=>e?e.root:"");async function a(){return e?e.accessToken:t?await t.getAccessTokenSilently():""}function l(){e?e.doSignIn():t&&t.loginWithPopup()}function u(c){e?e.doSignOut():t&&t.logout(c)}return e?(e.on(Ts.INIT,c=>{r.value=c,c&&(n.value=!1)}),e.on(Ts.VERIFYING,c=>{r.value=c}),e.on(Ts.VERIFIED,c=>{n.value=c,s.value=c?e.user:void 0}),r.value=e.isVerifying,n.value=e.isVerified,s.value=e.user):t&&(ft(t.isLoading,c=>{r.value=c},{immediate:!0}),ft(t.isAuthenticated,c=>{n.value=c},{immediate:!0}),ft(t.user,c=>{s.value=c},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,login:l,logout:u}}),Mw={class:"ac-form-control bg-base-200 rounded-lg"},Fw={class:"sr-only",for:"ac-comment"},jw=["placeholder"],Uw={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Ww={key:0,class:"text-xs text-neutral-400/40"},Hw={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},zw=["disabled"],Kw={key:0,class:"ac-loading ac-loading-spinner"},Ss=ut({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=ko(),i=jn(),{t:o}=gt(),a=Ue("ApiBaseUrl"),l=Ue("Auth0Domain"),u="0.9.11",c=te(),f=te(!1),d=te(n.content||""),m=te("");async function k(y){if(!s.user)return w();if(y.target.matches(":invalid"))return;const I=d.value.trim();if(!I)return;if(I.length<5||/^\w{35,}$/.test(I)){m.value="We encourage meaningful contributions to foster a positive community. Thank you for your understanding!";return}f.value=!0,m.value="";let g=a+"/api/comment",O="POST";n.currentId&&(g+="/"+n.currentId,O="PATCH");try{const D=await s.getAccessToken(),L=s.authEndpoint,M=await fetch(g,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${D}`,"Auth-Endpoint":L},body:JSON.stringify({comment:I,postId:i.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}`,customData:window.custom_comment_data,extraData:`${window.BM_LEVEL}:${window.BM_VALUE}`})}),U=await M.json();if(!M.ok||U.message){m.value="Failed to post comment: "+(U.message||"Unknown"),f.value=!1;return}const{id:Z,status:q}=U.data;n.ancestorId||n.parentId?i.addComment(Z,I,s.user,q,n.ancestorId,n.parentId):n.currentId?r("update",I):i.addComment(Z,I,s.user,q),d.value="",r("close")}catch(D){m.value=D.message||String(D)}f.value=!1}function w(){s.login()}function E(y){Cw(y,"Enter")&&k(y)}function _(){r("close")}return qn(()=>{c.value?.focus()}),(y,I)=>(B(),J("form",{class:"mb-6",onSubmit:Rh(k,["prevent"])},[ae("div",Mw,[ae("label",Fw,be(H(o)("your_comment")),1),nd(ae("textarea",{id:"ac-comment",ref_key:"textarea",ref:c,"onUpdate:modelValue":I[0]||(I[0]=g=>d.value=g),placeholder:H(o)("placeholder"),class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",required:"required",rows:"3",onKeydown:[vl(E,["enter"]),vl(_,["esc"])]},null,40,jw),[[Ah,d.value]]),ae("div",Uw,[y.noVersion?Ne("",!0):(B(),J("div",Ww," v"+be(H(u)),1)),m.value?(B(),J("div",Hw,be(m.value),1)):Ne("",!0),ae("button",{disabled:f.value,class:"ac-btn ac-btn-primary ac-btn-sm ms-auto"},[f.value?(B(),J("span",Kw)):Ne("",!0),y.currentId?(B(),J(Ee,{key:1},[an(be(H(o)("save_editing")),1)],64)):y.parentId?(B(),J(Ee,{key:2},[an(be(H(o)("post_reply")),1)],64)):(B(),J(Ee,{key:3},[an(be(H(o)("post_comment")),1)],64))],8,zw)])])],32))}});/**
45
+ */const Zm="11.0.1";function Ym(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(hn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(hn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(hn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hn().__INTLIFY_PROD_DEVTOOLS__=!1)}const ze={UNEXPECTED_RETURN_TYPE:hm,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Ge(e,...t){return ds(e,null,void 0)}const Yi=Kt("__translateVNode"),Xi=Kt("__datetimeParts"),Ji=Kt("__numberParts"),kc=Kt("__setPluralRules"),vc=Kt("__injectWithOption"),qi=Kt("__dispose");function _r(e){if(!se(e))return e;for(const t in e)if(st(e,t))if(!t.includes("."))se(e[t])&&_r(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]in s||(s[n[o]]=fe()),!se(s[n[o]])){i=!0;break}s=s[n[o]]}i||(s[n[r]]=e[t],delete e[t]),se(s[n[r]])&&_r(s[n[r]])}return e}function Qi(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=Y(n)?n:Se(r)?fe():{[e]:fe()};if(Se(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||fe(),fs(u,o[l])):fs(u,o)}else j(a)&&fs(JSON.parse(a),o)}),s==null&&i)for(const a in o)st(o,a)&&_r(o[a]);return o}function Tc(e){return e.type}function Sc(e,t,n){let r=se(t.messages)?t.messages:fe();"__i18nGlobal"in n&&(r=Qi(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(se(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(se(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Ic(e){return ke(tr,null,e,0)}const Ec="__INTLIFY_META__",xc=()=>[],Xm=()=>!1;let Oc=0;function Cc(e){return(t,n,r,s)=>e(n,r,ir()||void 0,s)}const Jm=()=>{const e=ir();let t=null;return e&&(t=Tc(e)[Ec])?{[Ec]:t}:null};function eo(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=ls?te:jf;let o=ne(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:j(e.locale)?e.locale:mr),l=i(t&&o?t.fallbackLocale.value:j(e.fallbackLocale)||Se(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(Qi(a.value,e)),c=i(Y(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(Y(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:ne(e.missingWarn)||Pn(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ne(e.fallbackWarn)||Pn(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:ne(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,E=pe(e.missing)?e.missing:null,_=pe(e.missing)?Cc(e.missing):null,y=pe(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const O=t?t.modifiers:Y(e.modifiers)?e.modifiers:{};let D=e.pluralRules||t&&t.pluralRules,L;L=(()=>{r&&lc(null);const I={version:Zm,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:O,pluralRules:D,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:m,fallbackFormat:w,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:T,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};I.datetimeFormats=c.value,I.numberFormats=f.value,I.__datetimeFormatters=Y(L)?L.__datetimeFormatters:void 0,I.__numberFormatters=Y(L)?L.__numberFormatters:void 0;const C=Rm(I);return r&&lc(C),C})(),gr(L,a.value,l.value);function U(){return[a.value,l.value,u.value,c.value,f.value]}const Z=rt({get:()=>a.value,set:I=>{a.value=I,L.locale=a.value}}),q=rt({get:()=>l.value,set:I=>{l.value=I,L.fallbackLocale=l.value,gr(L,a.value,I)}}),Q=rt(()=>u.value),Ce=rt(()=>c.value),it=rt(()=>f.value);function Yt(){return pe(y)?y:null}function ge(I){y=I,L.postTranslation=I}function G(){return E}function oe(I){I!==null&&(_=Cc(I)),E=I,L.missing=_}const Ae=(I,C,W,z,X,Oe)=>{U();let ve;try{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=t?Pm():void 0),ve=I(L)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=void 0)}if(W!=="translate exists"&&Te(ve)&&ve===ms||W==="translate exists"&&!ve){const[tt,ot]=C();return t&&k?z(t):X(tt)}else{if(Oe(ve))return ve;throw Ge(ze.UNEXPECTED_RETURN_TYPE)}};function Rt(...I){return Ae(C=>Reflect.apply(bc,null,[C,...I]),()=>Zi(...I),"translate",C=>Reflect.apply(C.t,C,[...I]),C=>C,C=>j(C))}function et(...I){const[C,W,z]=I;if(z&&!se(z))throw Ge(ze.INVALID_ARGUMENT);return Rt(C,W,Ie({resolvedMessage:!0},z||{}))}function Ke(...I){return Ae(C=>Reflect.apply(uc,null,[C,...I]),()=>Bi(...I),"datetime format",C=>Reflect.apply(C.d,C,[...I]),()=>tc,C=>j(C))}function Un(...I){return Ae(C=>Reflect.apply(hc,null,[C,...I]),()=>Gi(...I),"number format",C=>Reflect.apply(C.n,C,[...I]),()=>tc,C=>j(C))}function Or(I){return I.map(C=>j(C)||Te(C)||ne(C)?Ic(String(C)):C)}const Nt={normalize:Or,interpolate:I=>I,type:"vnode"};function Xt(...I){return Ae(C=>{let W;const z=C;try{z.processor=Nt,W=Reflect.apply(bc,null,[z,...I])}finally{z.processor=null}return W},()=>Zi(...I),"translate",C=>C[Yi](...I),C=>[Ic(C)],C=>Se(C))}function Jt(...I){return Ae(C=>Reflect.apply(hc,null,[C,...I]),()=>Gi(...I),"number format",C=>C[Ji](...I),xc,C=>j(C)||Se(C))}function Wn(...I){return Ae(C=>Reflect.apply(uc,null,[C,...I]),()=>Bi(...I),"datetime format",C=>C[Xi](...I),xc,C=>j(C)||Se(C))}function $t(I){D=I,L.pluralRules=D}function $s(I,C){return Ae(()=>{if(!I)return!1;const W=j(C)?C:a.value,z=A(W),X=L.messageResolver(z,I);return $n(X)||Je(X)||j(X)},()=>[I],"translate exists",W=>Reflect.apply(W.te,W,[I,C]),Xm,W=>ne(W))}function b(I){let C=null;const W=ql(L,l.value,a.value);for(let z=0;z<W.length;z++){const X=u.value[W[z]]||{},Oe=L.messageResolver(X,I);if(Oe!=null){C=Oe;break}}return C}function v(I){const C=b(I);return C??(t?t.tm(I)||{}:{})}function A(I){return u.value[I]||{}}function N(I,C){if(s){const W={[I]:C};for(const z in W)st(W,z)&&_r(W[z]);C=W[I]}u.value[I]=C,L.messages=u.value}function R(I,C){u.value[I]=u.value[I]||{};const W={[I]:C};if(s)for(const z in W)st(W,z)&&_r(W[z]);C=W[I],fs(C,u.value[I]),L.messages=u.value}function $(I){return c.value[I]||{}}function h(I,C){c.value[I]=C,L.datetimeFormats=c.value,dc(L,I,C)}function p(I,C){c.value[I]=Ie(c.value[I]||{},C),L.datetimeFormats=c.value,dc(L,I,C)}function S(I){return f.value[I]||{}}function x(I,C){f.value[I]=C,L.numberFormats=f.value,mc(L,I,C)}function F(I,C){f.value[I]=Ie(f.value[I]||{},C),L.numberFormats=f.value,mc(L,I,C)}Oc++,t&&ls&&(ft(t.locale,I=>{o&&(a.value=I,L.locale=I,gr(L,a.value,l.value))}),ft(t.fallbackLocale,I=>{o&&(l.value=I,L.fallbackLocale=I,gr(L,a.value,l.value))}));const P={id:Oc,locale:Z,fallbackLocale:q,get inheritLocale(){return o},set inheritLocale(I){o=I,I&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,gr(L,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Q,get modifiers(){return O},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(I){d=I,L.missingWarn=d},get fallbackWarn(){return m},set fallbackWarn(I){m=I,L.fallbackWarn=m},get fallbackRoot(){return k},set fallbackRoot(I){k=I},get fallbackFormat(){return w},set fallbackFormat(I){w=I,L.fallbackFormat=w},get warnHtmlMessage(){return T},set warnHtmlMessage(I){T=I,L.warnHtmlMessage=I},get escapeParameter(){return g},set escapeParameter(I){g=I,L.escapeParameter=I},t:Rt,getLocaleMessage:A,setLocaleMessage:N,mergeLocaleMessage:R,getPostTranslationHandler:Yt,setPostTranslationHandler:ge,getMissingHandler:G,setMissingHandler:oe,[kc]:$t};return P.datetimeFormats=Ce,P.numberFormats=it,P.rt=et,P.te=$s,P.tm=v,P.d=Ke,P.n=Un,P.getDateTimeFormat=$,P.setDateTimeFormat=h,P.mergeDateTimeFormat=p,P.getNumberFormat=S,P.setNumberFormat=x,P.mergeNumberFormat=F,P[vc]=n,P[Yi]=Xt,P[Xi]=Wn,P[Ji]=Jt,P}function qm(e){const t=j(e.locale)?e.locale:mr,n=j(e.fallbackLocale)||Se(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=pe(e.missing)?e.missing:void 0,s=ne(e.silentTranslationWarn)||Pn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ne(e.silentFallbackWarn)||Pn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ne(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=j(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,m=ne(e.sync)?e.sync:!0;let k=e.messages;if(Y(e.sharedMessages)){const O=e.sharedMessages;k=Object.keys(O).reduce((L,M)=>{const U=L[M]||(L[M]={});return Ie(U,O[M]),L},k||{})}const{__i18n:w,__root:E,__injectWithOption:_}=e,y=e.datetimeFormats,T=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:g,datetimeFormats:y,numberFormats:T,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:m,__i18n:w,__root:E,__injectWithOption:_}}function to(e={}){const t=eo(qm(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return ne(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=ne(s)?!s:s},get silentFallbackWarn(){return ne(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=ne(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,i){return t.te(s,i)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,i){t.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){t.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,i){t.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){t.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,i){t.setNumberFormat(s,i)},mergeNumberFormat(s,i){t.mergeNumberFormat(s,i)}};return r.__extender=n,r}function Qm(e,t,n){return{beforeCreate(){const r=ir();if(!r)throw Ge(ze.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=t,this===this.$root)this.$i18n=Ac(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=to(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Ac(e,s);else{this.$i18n=to({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Sc(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=ir();if(!r)throw Ge(ze.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Ac(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[kc](t.pluralizationRules||e.pluralizationRules);const n=Qi(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 no={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function eg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ee?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},fe())}function Lc(){return Ee}const Pc=ut({name:"i18n-t",props:Ie({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Te(e)||!isNaN(e)}},no),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||gt({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o=fe();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=j(e.plural)?+e.plural:e.plural);const a=eg(t,i),l=s[Yi](e.keypath,a,o),u=Ie(fe(),r),c=j(e.tag)||se(e.tag)?e.tag:Lc();return lr(c,u,l)}}});function tg(e){return Se(e)&&!j(e[0])}function Rc(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a=fe();e.locale&&(o.locale=e.locale),j(e.format)?o.key=e.format:se(e.format)&&(j(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,m)=>n.includes(m)?Ie(fe(),d,{[m]:e.format[m]}):d,fe()));const l=r(e.value,o,a);let u=[o.key];Se(l)?u=l.map((d,m)=>{const k=s[d.type],w=k?k({[d.type]:d.value,index:m,parts:l}):[d.value];return tg(w)&&(w[0].key=`${d.type}-${m}`),w}):j(l)&&(u=[l]);const c=Ie(fe(),i),f=j(e.tag)||se(e.tag)?e.tag:Lc();return lr(f,c,u)}}const Nc=ut({name:"i18n-n",props:Ie({value:{type:Number,required:!0},format:{type:[String,Object]}},no),setup(e,t){const n=e.i18n||gt({useScope:e.scope,__useComponent:!0});return Rc(e,t,pc,(...r)=>n[Ji](...r))}});function ng(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 rg(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw Ge(ze.UNEXPECTED_ERROR);const u=ng(e,a.$),c=$c(l);return[Reflect.apply(u.t,u,[...Dc(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);ls&&e.global===u&&(o.__i18nWatcher=ft(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{ls&&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=$c(a);o.textContent=Reflect.apply(l.t,l,[...Dc(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function $c(e){if(j(e))return{path:e};if(Y(e)){if(!("path"in e))throw Ge(ze.REQUIRED_VALUE,"path");return e}else throw Ge(ze.INVALID_VALUE)}function Dc(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return j(n)&&(o.locale=n),Te(s)&&(o.plural=s),Te(i)&&(o.plural=i),[t,a,o]}function sg(e,t,...n){const r=Y(n[0])?n[0]:{};(ne(r.globalInstall)?r.globalInstall:!0)&&([Pc.name,"I18nT"].forEach(i=>e.component(i,Pc)),[Nc.name,"I18nN"].forEach(i=>e.component(i,Nc)),[Fc.name,"I18nD"].forEach(i=>e.component(i,Fc))),e.directive("t",rg(t))}const ig=Kt("global-vue-i18n");function og(e={}){const t=__VUE_I18N_LEGACY_API__&&ne(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=ne(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,i]=ag(e,t),o=Kt("");function a(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,c),Y(d[0])){const w=d[0];c.__composerExtend=w.__composerExtend,c.__vueI18nExtend=w.__vueI18nExtend}let m=null;!t&&n&&(m=mg(f,c.global)),__VUE_I18N_FULL_INSTALL__&&sg(f,c,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Qm(i,i.__composer,c));const k=f.unmount;f.unmount=()=>{m&&m(),c.dispose(),k()}},get global(){return i},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:u};return c}function gt(e={}){const t=ir();if(t==null)throw Ge(ze.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ge(ze.NOT_INSTALLED);const n=lg(t),r=ug(n),s=Tc(t),i=cg(e,s);if(i==="global")return Sc(r,e,s),r;if(i==="parent"){let l=fg(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Ie({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=eo(l),o.__composerExtend&&(a[qi]=o.__composerExtend(a)),hg(o,t,a),o.__setInstance(t,a)}return a}function ag(e,t){const n=Hs(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>to(e)):n.run(()=>eo(e));if(r==null)throw Ge(ze.UNEXPECTED_ERROR);return[n,r]}function lg(e){const t=Ue(e.isCE?ig:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ge(e.isCE?ze.NOT_INSTALLED_WITH_PROVIDE:ze.UNEXPECTED_ERROR);return t}function cg(e,t){return cs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function ug(e){return e.mode==="composition"?e.global:e.global.__composer}function fg(e,t,n=!1){let r=null;const s=t.root;let i=dg(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[vc]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function dg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function hg(e,t,n){qn(()=>{},t),ii(()=>{const r=n;e.__deleteInstance(t);const s=r[qi];s&&(s(),delete r[qi])},t)}const pg=["locale","fallbackLocale","availableLocales"],Mc=["t","rt","d","n","tm","te"];function mg(e,t){const n=Object.create(null);return pg.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Ge(ze.UNEXPECTED_ERROR);const o=ye(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,Mc.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Ge(ze.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,Mc.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Fc=ut({name:"i18n-d",props:Ie({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},no),setup(e,t){const n=e.i18n||gt({useScope:e.scope,__useComponent:!0});return Rc(e,t,fc,(...r)=>n[Xi](...r))}});if(Ym(),xm(lm),Om(Sm),Cm(ql),__INTLIFY_PROD_DEVTOOLS__){const e=hn();e.__INTLIFY__=!0,cm(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function jc(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}function gg(){this.__data__=[],this.size=0}function Uc(e,t){return e===t||e!==e&&t!==t}function gs(e,t){for(var n=e.length;n--;)if(Uc(e[n][0],t))return n;return-1}var _g=Array.prototype,bg=_g.splice;function yg(e){var t=this.__data__,n=gs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():bg.call(t,n,1),--this.size,!0}function wg(e){var t=this.__data__,n=gs(t,e);return n<0?void 0:t[n][1]}function kg(e){return gs(this.__data__,e)>-1}function vg(e,t){var n=this.__data__,r=gs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Lt(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])}}Lt.prototype.clear=gg,Lt.prototype.delete=yg,Lt.prototype.get=wg,Lt.prototype.has=kg,Lt.prototype.set=vg;function Tg(){this.__data__=new Lt,this.size=0}function Sg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ig(e){return this.__data__.get(e)}function Eg(e){return this.__data__.has(e)}var Wc=typeof global=="object"&&global&&global.Object===Object&&global,xg=typeof self=="object"&&self&&self.Object===Object&&self,_t=Wc||xg||Function("return this")(),bt=_t.Symbol,Hc=Object.prototype,Og=Hc.hasOwnProperty,Cg=Hc.toString,br=bt?bt.toStringTag:void 0;function Ag(e){var t=Og.call(e,br),n=e[br];try{e[br]=void 0;var r=!0}catch{}var s=Cg.call(e);return r&&(t?e[br]=n:delete e[br]),s}var Lg=Object.prototype,Pg=Lg.toString;function Rg(e){return Pg.call(e)}var Ng="[object Null]",$g="[object Undefined]",zc=bt?bt.toStringTag:void 0;function pn(e){return e==null?e===void 0?$g:Ng:zc&&zc in Object(e)?Ag(e):Rg(e)}function yr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dg="[object AsyncFunction]",Mg="[object Function]",Fg="[object GeneratorFunction]",jg="[object Proxy]";function Kc(e){if(!yr(e))return!1;var t=pn(e);return t==Mg||t==Fg||t==Dg||t==jg}var ro=_t["__core-js_shared__"],Vc=function(){var e=/[^.]+$/.exec(ro&&ro.keys&&ro.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ug(e){return!!Vc&&Vc in e}var Wg=Function.prototype,Hg=Wg.toString;function mn(e){if(e!=null){try{return Hg.call(e)}catch{}try{return e+""}catch{}}return""}var zg=/[\\^$.*+?()[\]{}|]/g,Kg=/^\[object .+?Constructor\]$/,Vg=Function.prototype,Bg=Object.prototype,Gg=Vg.toString,Zg=Bg.hasOwnProperty,Yg=RegExp("^"+Gg.call(Zg).replace(zg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xg(e){if(!yr(e)||Ug(e))return!1;var t=Kc(e)?Yg:Kg;return t.test(mn(e))}function Jg(e,t){return e?.[t]}function gn(e,t){var n=Jg(e,t);return Xg(n)?n:void 0}var wr=gn(_t,"Map"),kr=gn(Object,"create");function qg(){this.__data__=kr?kr(null):{},this.size=0}function Qg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var e_="__lodash_hash_undefined__",t_=Object.prototype,n_=t_.hasOwnProperty;function r_(e){var t=this.__data__;if(kr){var n=t[e];return n===e_?void 0:n}return n_.call(t,e)?t[e]:void 0}var s_=Object.prototype,i_=s_.hasOwnProperty;function o_(e){var t=this.__data__;return kr?t[e]!==void 0:i_.call(t,e)}var a_="__lodash_hash_undefined__";function l_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kr&&t===void 0?a_:t,this}function _n(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])}}_n.prototype.clear=qg,_n.prototype.delete=Qg,_n.prototype.get=r_,_n.prototype.has=o_,_n.prototype.set=l_;function c_(){this.size=0,this.__data__={hash:new _n,map:new(wr||Lt),string:new _n}}function u_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _s(e,t){var n=e.__data__;return u_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function f_(e){var t=_s(this,e).delete(e);return this.size-=t?1:0,t}function d_(e){return _s(this,e).get(e)}function h_(e){return _s(this,e).has(e)}function p_(e,t){var n=_s(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Zt(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])}}Zt.prototype.clear=c_,Zt.prototype.delete=f_,Zt.prototype.get=d_,Zt.prototype.has=h_,Zt.prototype.set=p_;var m_=200;function g_(e,t){var n=this.__data__;if(n instanceof Lt){var r=n.__data__;if(!wr||r.length<m_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(e,t),this.size=n.size,this}function Dn(e){var t=this.__data__=new Lt(e);this.size=t.size}Dn.prototype.clear=Tg,Dn.prototype.delete=Sg,Dn.prototype.get=Ig,Dn.prototype.has=Eg,Dn.prototype.set=g_;function __(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var bs=function(){try{var e=gn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Bc(e,t,n){t=="__proto__"&&bs?bs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var b_=Object.prototype,y_=b_.hasOwnProperty;function Gc(e,t,n){var r=e[t];(!(y_.call(e,t)&&Uc(r,n))||n===void 0&&!(t in e))&&Bc(e,t,n)}function vr(e,t,n,r){var s=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),s?Bc(n,a,l):Gc(n,a,l)}return n}function w_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function bn(e){return e!=null&&typeof e=="object"}var k_="[object Arguments]";function Zc(e){return bn(e)&&pn(e)==k_}var Yc=Object.prototype,v_=Yc.hasOwnProperty,T_=Yc.propertyIsEnumerable,Xc=Zc(function(){return arguments}())?Zc:function(e){return bn(e)&&v_.call(e,"callee")&&!T_.call(e,"callee")},yn=Array.isArray;function S_(){return!1}var Jc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qc=Jc&&typeof module=="object"&&module&&!module.nodeType&&module,I_=qc&&qc.exports===Jc,Qc=I_?_t.Buffer:void 0,E_=Qc?Qc.isBuffer:void 0,eu=E_||S_,x_=9007199254740991,O_=/^(?:0|[1-9]\d*)$/;function C_(e,t){var n=typeof e;return t=t??x_,!!t&&(n=="number"||n!="symbol"&&O_.test(e))&&e>-1&&e%1==0&&e<t}var A_=9007199254740991;function tu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=A_}var L_="[object Arguments]",P_="[object Array]",R_="[object Boolean]",N_="[object Date]",$_="[object Error]",D_="[object Function]",M_="[object Map]",F_="[object Number]",j_="[object Object]",U_="[object RegExp]",W_="[object Set]",H_="[object String]",z_="[object WeakMap]",K_="[object ArrayBuffer]",V_="[object DataView]",B_="[object Float32Array]",G_="[object Float64Array]",Z_="[object Int8Array]",Y_="[object Int16Array]",X_="[object Int32Array]",J_="[object Uint8Array]",q_="[object Uint8ClampedArray]",Q_="[object Uint16Array]",eb="[object Uint32Array]",me={};me[B_]=me[G_]=me[Z_]=me[Y_]=me[X_]=me[J_]=me[q_]=me[Q_]=me[eb]=!0,me[L_]=me[P_]=me[K_]=me[R_]=me[V_]=me[N_]=me[$_]=me[D_]=me[M_]=me[F_]=me[j_]=me[U_]=me[W_]=me[H_]=me[z_]=!1;function tb(e){return bn(e)&&tu(e.length)&&!!me[pn(e)]}function so(e){return function(t){return e(t)}}var nu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tr=nu&&typeof module=="object"&&module&&!module.nodeType&&module,nb=Tr&&Tr.exports===nu,io=nb&&Wc.process,Mn=function(){try{var e=Tr&&Tr.require&&Tr.require("util").types;return e||io&&io.binding&&io.binding("util")}catch{}}(),ru=Mn&&Mn.isTypedArray,rb=ru?so(ru):tb,sb=Object.prototype,ib=sb.hasOwnProperty;function su(e,t){var n=yn(e),r=!n&&Xc(e),s=!n&&!r&&eu(e),i=!n&&!r&&!s&&rb(e),o=n||r||s||i,a=o?w_(e.length,String):[],l=a.length;for(var u in e)(t||ib.call(e,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||C_(u,l)))&&a.push(u);return a}var ob=Object.prototype;function oo(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ob;return e===n}function iu(e,t){return function(n){return e(t(n))}}var ab=iu(Object.keys,Object),lb=Object.prototype,cb=lb.hasOwnProperty;function ub(e){if(!oo(e))return ab(e);var t=[];for(var n in Object(e))cb.call(e,n)&&n!="constructor"&&t.push(n);return t}function ou(e){return e!=null&&tu(e.length)&&!Kc(e)}function ao(e){return ou(e)?su(e):ub(e)}function fb(e,t){return e&&vr(t,ao(t),e)}function db(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var hb=Object.prototype,pb=hb.hasOwnProperty;function mb(e){if(!yr(e))return db(e);var t=oo(e),n=[];for(var r in e)r=="constructor"&&(t||!pb.call(e,r))||n.push(r);return n}function lo(e){return ou(e)?su(e,!0):mb(e)}function gb(e,t){return e&&vr(t,lo(t),e)}var au=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lu=au&&typeof module=="object"&&module&&!module.nodeType&&module,_b=lu&&lu.exports===au,cu=_b?_t.Buffer:void 0,uu=cu?cu.allocUnsafe:void 0;function bb(e,t){if(t)return e.slice();var n=e.length,r=uu?uu(n):new e.constructor(n);return e.copy(r),r}function yb(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function wb(e,t){for(var n=-1,r=e==null?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}function fu(){return[]}var kb=Object.prototype,vb=kb.propertyIsEnumerable,du=Object.getOwnPropertySymbols,co=du?function(e){return e==null?[]:(e=Object(e),wb(du(e),function(t){return vb.call(e,t)}))}:fu;function Tb(e,t){return vr(e,co(e),t)}function uo(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var fo=iu(Object.getPrototypeOf,Object),Sb=Object.getOwnPropertySymbols,hu=Sb?function(e){for(var t=[];e;)uo(t,co(e)),e=fo(e);return t}:fu;function Ib(e,t){return vr(e,hu(e),t)}function pu(e,t,n){var r=t(e);return yn(e)?r:uo(r,n(e))}function Eb(e){return pu(e,ao,co)}function mu(e){return pu(e,lo,hu)}var ho=gn(_t,"DataView"),po=gn(_t,"Promise"),mo=gn(_t,"Set"),go=gn(_t,"WeakMap"),gu="[object Map]",xb="[object Object]",_u="[object Promise]",bu="[object Set]",yu="[object WeakMap]",wu="[object DataView]",Ob=mn(ho),Cb=mn(wr),Ab=mn(po),Lb=mn(mo),Pb=mn(go),Pt=pn;(ho&&Pt(new ho(new ArrayBuffer(1)))!=wu||wr&&Pt(new wr)!=gu||po&&Pt(po.resolve())!=_u||mo&&Pt(new mo)!=bu||go&&Pt(new go)!=yu)&&(Pt=function(e){var t=pn(e),n=t==xb?e.constructor:void 0,r=n?mn(n):"";if(r)switch(r){case Ob:return wu;case Cb:return gu;case Ab:return _u;case Lb:return bu;case Pb:return yu}return t});var Rb=Object.prototype,Nb=Rb.hasOwnProperty;function $b(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Nb.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ku=_t.Uint8Array;function _o(e){var t=new e.constructor(e.byteLength);return new ku(t).set(new ku(e)),t}function Db(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Mb=/\w*$/;function Fb(e){var t=new e.constructor(e.source,Mb.exec(e));return t.lastIndex=e.lastIndex,t}var vu=bt?bt.prototype:void 0,Tu=vu?vu.valueOf:void 0;function jb(e){return Tu?Object(Tu.call(e)):{}}function Ub(e,t){var n=t?_o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Wb="[object Boolean]",Hb="[object Date]",zb="[object Map]",Kb="[object Number]",Vb="[object RegExp]",Bb="[object Set]",Gb="[object String]",Zb="[object Symbol]",Yb="[object ArrayBuffer]",Xb="[object DataView]",Jb="[object Float32Array]",qb="[object Float64Array]",Qb="[object Int8Array]",ey="[object Int16Array]",ty="[object Int32Array]",ny="[object Uint8Array]",ry="[object Uint8ClampedArray]",sy="[object Uint16Array]",iy="[object Uint32Array]";function oy(e,t,n){var r=e.constructor;switch(t){case Yb:return _o(e);case Wb:case Hb:return new r(+e);case Xb:return Db(e,n);case Jb:case qb:case Qb:case ey:case ty:case ny:case ry:case sy:case iy:return Ub(e,n);case zb:return new r;case Kb:case Gb:return new r(e);case Vb:return Fb(e);case Bb:return new r;case Zb:return jb(e)}}var Su=Object.create,ay=function(){function e(){}return function(t){if(!yr(t))return{};if(Su)return Su(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function ly(e){return typeof e.constructor=="function"&&!oo(e)?ay(fo(e)):{}}var cy="[object Map]";function uy(e){return bn(e)&&Pt(e)==cy}var Iu=Mn&&Mn.isMap,fy=Iu?so(Iu):uy,dy="[object Set]";function hy(e){return bn(e)&&Pt(e)==dy}var Eu=Mn&&Mn.isSet,py=Eu?so(Eu):hy,my=1,gy=2,_y=4,xu="[object Arguments]",by="[object Array]",yy="[object Boolean]",wy="[object Date]",ky="[object Error]",Ou="[object Function]",vy="[object GeneratorFunction]",Ty="[object Map]",Sy="[object Number]",Cu="[object Object]",Iy="[object RegExp]",Ey="[object Set]",xy="[object String]",Oy="[object Symbol]",Cy="[object WeakMap]",Ay="[object ArrayBuffer]",Ly="[object DataView]",Py="[object Float32Array]",Ry="[object Float64Array]",Ny="[object Int8Array]",$y="[object Int16Array]",Dy="[object Int32Array]",My="[object Uint8Array]",Fy="[object Uint8ClampedArray]",jy="[object Uint16Array]",Uy="[object Uint32Array]",he={};he[xu]=he[by]=he[Ay]=he[Ly]=he[yy]=he[wy]=he[Py]=he[Ry]=he[Ny]=he[$y]=he[Dy]=he[Ty]=he[Sy]=he[Cu]=he[Iy]=he[Ey]=he[xy]=he[Oy]=he[My]=he[Fy]=he[jy]=he[Uy]=!0,he[ky]=he[Ou]=he[Cy]=!1;function ys(e,t,n,r,s,i){var o,a=t&my,l=t&gy,u=t&_y;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!yr(e))return e;var c=yn(e);if(c){if(o=$b(e),!a)return yb(e,o)}else{var f=Pt(e),d=f==Ou||f==vy;if(eu(e))return bb(e,a);if(f==Cu||f==xu||d&&!s){if(o=l||d?{}:ly(e),!a)return l?Ib(e,gb(o,e)):Tb(e,fb(o,e))}else{if(!he[f])return s?e:{};o=oy(e,f,a)}}i||(i=new Dn);var m=i.get(e);if(m)return m;i.set(e,o),py(e)?e.forEach(function(E){o.add(ys(E,t,n,E,e,i))}):fy(e)&&e.forEach(function(E,_){o.set(_,ys(E,t,n,_,e,i))});var k=u?l?mu:Eb:l?lo:ao,w=c?void 0:k(e);return __(w||e,function(E,_){w&&(_=E,E=e[_]),Gc(o,_,ys(E,t,n,_,e,i))}),o}var Wy="[object Symbol]";function bo(e){return typeof e=="symbol"||bn(e)&&pn(e)==Wy}var Hy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zy=/^\w*$/;function Ky(e,t){if(yn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||bo(e)?!0:zy.test(e)||!Hy.test(e)||t!=null&&e in Object(t)}var Vy="Expected a function";function yo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Vy);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(yo.Cache||Zt),n}yo.Cache=Zt;var By=500;function Gy(e){var t=yo(e,function(r){return n.size===By&&n.clear(),r}),n=t.cache;return t}var Zy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yy=/\\(\\)?/g,Xy=Gy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Zy,function(n,r,s,i){t.push(s?i.replace(Yy,"$1"):r||n)}),t}),Au=bt?bt.prototype:void 0,Lu=Au?Au.toString:void 0;function Pu(e){if(typeof e=="string")return e;if(yn(e))return jc(e,Pu)+"";if(bo(e))return Lu?Lu.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Jy(e){return e==null?"":Pu(e)}function wo(e,t){return yn(e)?e:Ky(e,t)?[e]:Xy(Jy(e))}function qy(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Ru(e){if(typeof e=="string"||bo(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Qy(e,t){t=wo(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ru(t[n++])];return n&&n==r?e:void 0}function ew(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(s);++r<s;)i[r]=e[r+t];return i}function tw(e,t){return t.length<2?e:Qy(e,ew(t,0,-1))}function nw(e,t){return t=wo(t,e),e=tw(e,t),e==null||delete e[Ru(qy(t))]}var rw="[object Object]",sw=Function.prototype,iw=Object.prototype,Nu=sw.toString,ow=iw.hasOwnProperty,aw=Nu.call(Object);function lw(e){if(!bn(e)||pn(e)!=rw)return!1;var t=fo(e);if(t===null)return!0;var n=ow.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Nu.call(n)==aw}function cw(e){return lw(e)?void 0:e}var $u=bt?bt.isConcatSpreadable:void 0;function uw(e){return yn(e)||Xc(e)||!!($u&&e&&e[$u])}function fw(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=uw),s||(s=[]);++i<o;){var a=e[i];n(a)?uo(s,a):s[s.length]=a}return s}function dw(e){var t=e==null?0:e.length;return t?fw(e):[]}function hw(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 Du=Math.max;function pw(e,t,n){return t=Du(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=Du(r.length-t,0),o=Array(i);++s<i;)o[s]=r[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=r[s];return a[t]=n(o),hw(e,this,a)}}function mw(e){return function(){return e}}function gw(e){return e}var _w=bs?function(e,t){return bs(e,"toString",{configurable:!0,enumerable:!1,value:mw(t),writable:!0})}:gw,bw=800,yw=16,ww=Date.now;function kw(e){var t=0,n=0;return function(){var r=ww(),s=yw-(r-n);if(n=r,s>0){if(++t>=bw)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var vw=kw(_w);function Tw(e){return vw(pw(e,void 0,dw),e+"")}var Sw=1,Iw=2,Ew=4,xw=Tw(function(e,t){var n={};if(e==null)return n;var r=!1;t=jc(t,function(i){return i=wo(i,e),r||(r=i.length>1),i}),vr(e,mu(e),n),r&&(n=ys(n,Sw|Iw|Ew,cw));for(var s=t.length;s--;)nw(n,t[s]);return n});const Mu={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 Ow(){return!!navigator.userAgent.match(/Macintosh/)}function Cw(e,t){return(Ow()?e.metaKey:e.ctrlKey)&&e.key===t}var ws=(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))(ws||{});const Aw=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function ks(e){return e<10?`0${e}`:`${e}`}function Fu(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}-${ks(n)}-${ks(r)}`}function Uu(e){e instanceof Date||(e=Fu(e));const t=new Date,n=ju(e);if(ju(t)===n){const r=e.getHours(),s=e.getMinutes();return`${ks(r)}:${ks(s)}`}return n}function Lw(e){const{id:t,created_at:n,parent_id:r,ancestor_id:s,post_id:i,user_id:o,...a}=e;return{...a,id:Number(t),userId:o,parentId:Number(r),postId:i,ancestorId:Number(s),status:Number(e.status),createdAt:Fu(n)}}const ko="awesome-comment-comments",Wu=localStorage.getItem(ko),Fn=Wu?JSON.parse(Wu):{},jn=Ll("store",()=>{const e=Ue("postId"),t=Ue("comments"),n=Ue("total"),r=te(!!t?.length),s=te(0),i=te(""),o=te([]),a=te(n||0),l=Ue("ApiBaseUrl"),u=te(!1),c=te(!1);function f(E){const _={},y=[];E.forEach(g=>{k(Number(g.id));const O=Lw(g);!g.ancestor_id||Number(g.ancestor_id)===0?_[g.id]=O:y.push(O)});const T=Fn[e];T&&(T.createdAt=new Date(T.createdAt),!T.ancestorId||Number(T.ancestorId)===0?_[T.id]=T:y.push(T)),y.forEach(g=>{if(g.ancestorId in _){const O=_[g.ancestorId];O.children=[g,...O.children||[]]}});for(const g in _){const O=_[g];O.children&&(O.children=O.children.sort((D,L)=>D.id-L.id))}return _}async function d(E=!1){if(u.value)return;i.value="",u.value=!0;let _;if(E&&t?.length)_=f(t);else{const y=new URLSearchParams;y.append("postId",e),y.append("start",s.value.toString());const T=await fetch(`${l}/api/comments?${y}`);if(!T.ok){i.value="Load comments failed. "+T.statusText,r.value=!0,u.value=!1;return}const g=await T.json();if(g.code!==0){i.value="Load comments failed. "+g.message,r.value=!0,u.value=!1;return}_=f(g.data||[]),a.value=g.meta?.total||g.data?.length||0}c.value=Object.keys(_).length>20,c.value&&delete _[Object.keys(_)[0]],Object.assign(o.value,_),r.value=!0,u.value=!1}function m(E,_,y,T=ws.Pending,g,O){const{sub:D="",name:L="",picture:M="",email:U="",nickname:Z=""}=y,q={id:E,postId:e,content:_,createdAt:new Date,user:{avatar:M,email:U,name:Z||L},userId:D,status:T,isNew:!0};if(g||O){q.ancestorId=g,q.parentId=O;const Q=o.value[g];if(Q.children||(Q.children=[]),g===O)Q.children.unshift(q);else{const Ce=Q.children.findIndex(it=>Number(it.id)===O);Q.children.splice(Ce+1,0,q)}}else q.ancestorId=0,q.parentId=0,o.value={[E]:q,...o.value};a.value++,T!==ws.Approved&&(Fn[e]=q,localStorage.setItem(ko,JSON.stringify(Fn)))}function k(E){Fn[e]?.id===E&&(delete Fn[e],localStorage.setItem(ko,JSON.stringify(Fn)))}function w(E,_){let y=o.value[E];if(!y){for(const T of Object.values(o.value))if(T.children&&(y=T.children.find(g=>Number(g.id)===E),y))break}y&&Object.assign(y,_)}return{isLoaded:r,message:i,postId:e,comments:o,total:a,start:s,hasMore:c,loadingMore:u,loadComments:d,addComment:m,updateComment:w}});var Pw={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function s(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var m=new s(c,f||l,d),k=n?n+u:u;return l._events[k]?l._events[k].fn?l._events[k]=[l._events[k],m]:l._events[k].push(m):(l._events[k]=m,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,c;if(this._eventsCount===0)return l;for(c in u=this._events)t.call(u,c)&&l.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,c=this._events[u];if(!c)return[];if(c.fn)return[c.fn];for(var f=0,d=c.length,m=new Array(d);f<d;f++)m[f]=c[f].fn;return m},a.prototype.listenerCount=function(l){var u=n?n+l:l,c=this._events[u];return c?c.fn?1:c.length:0},a.prototype.emit=function(l,u,c,f,d,m){var k=n?n+l:l;if(!this._events[k])return!1;var w=this._events[k],E=arguments.length,_,y;if(w.fn){switch(w.once&&this.removeListener(l,w.fn,void 0,!0),E){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,u),!0;case 3:return w.fn.call(w.context,u,c),!0;case 4:return w.fn.call(w.context,u,c,f),!0;case 5:return w.fn.call(w.context,u,c,f,d),!0;case 6:return w.fn.call(w.context,u,c,f,d,m),!0}for(y=1,_=new Array(E-1);y<E;y++)_[y-1]=arguments[y];w.fn.apply(w.context,_)}else{var T=w.length,g;for(y=0;y<T;y++)switch(w[y].once&&this.removeListener(l,w[y].fn,void 0,!0),E){case 1:w[y].fn.call(w[y].context);break;case 2:w[y].fn.call(w[y].context,u);break;case 3:w[y].fn.call(w[y].context,u,c);break;case 4:w[y].fn.call(w[y].context,u,c,f);break;default:if(!_)for(g=1,_=new Array(E-1);g<E;g++)_[g-1]=arguments[g];w[y].fn.apply(w[y].context,_)}}return!0},a.prototype.on=function(l,u,c){return i(this,l,u,c,!1)},a.prototype.once=function(l,u,c){return i(this,l,u,c,!0)},a.prototype.removeListener=function(l,u,c,f){var d=n?n+l:l;if(!this._events[d])return this;if(!u)return o(this,d),this;var m=this._events[d];if(m.fn)m.fn===u&&(!f||m.once)&&(!c||m.context===c)&&o(this,d);else{for(var k=0,w=[],E=m.length;k<E;k++)(m[k].fn!==u||f&&!m[k].once||c&&m[k].context!==c)&&w.push(m[k]);w.length?this._events[d]=w.length===1?w[0]:w:o(this,d)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(Pw);class Rw extends Error{}Rw.prototype.name="InvalidTokenError";var Nw=typeof global=="object"&&global&&global.Object===Object&&global,$w=typeof self=="object"&&self&&self.Object===Object&&self,Dw=Nw||$w||Function("return this")(),vs=Dw.Symbol;vs&&vs.toStringTag,vs&&vs.toStringTag;var Ts=(e=>(e.INIT="init",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(Ts||{});const vo=Ll("auth",()=>{const e=Ue("awesomeAuth"),t=!e&&fp(),n=te(!1),r=te(!1),s=te(),i=!!e,o=rt(()=>e?e.root:"");async function a(){return e?e.accessToken:t?await t.getAccessTokenSilently():""}function l(){e?e.doSignIn():t&&t.loginWithPopup()}function u(c){e?e.doSignOut():t&&t.logout(c)}return e?(e.on(Ts.INIT,c=>{r.value=c,c&&(n.value=!1)}),e.on(Ts.VERIFYING,c=>{r.value=c}),e.on(Ts.VERIFIED,c=>{n.value=c,s.value=c?e.user:void 0}),r.value=e.isVerifying,n.value=e.isVerified,s.value=e.user):t&&(ft(t.isLoading,c=>{r.value=c},{immediate:!0}),ft(t.isAuthenticated,c=>{n.value=c},{immediate:!0}),ft(t.user,c=>{s.value=c},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,login:l,logout:u}}),Mw={class:"ac-form-control bg-base-200 rounded-lg"},Fw={class:"sr-only",for:"ac-comment"},jw=["placeholder"],Uw={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Ww={key:0,class:"text-xs text-neutral-400/40"},Hw={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},zw=["disabled"],Kw={key:0,class:"ac-loading ac-loading-spinner"},Ss=ut({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=vo(),i=jn(),{t:o}=gt(),a=Ue("ApiBaseUrl"),l=Ue("Auth0Domain"),u="0.9.12",c=te(),f=te(!1),d=te(n.content||""),m=te("");async function k(y){if(!s.user)return w();if(y.target.matches(":invalid"))return;const T=d.value.trim();if(!T)return;if(T.length<5||/^\w{35,}$/.test(T)){m.value="We encourage meaningful contributions to foster a positive community. Thank you for your understanding!";return}f.value=!0,m.value="";let g=a+"/api/comment",O="POST";n.currentId&&(g+="/"+n.currentId,O="PATCH");try{const D=await s.getAccessToken(),L=s.authEndpoint,M=await fetch(g,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${D}`,"Auth-Endpoint":L},body:JSON.stringify({comment:T,postId:i.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}`,customData:window.custom_comment_data,extraData:`${window.BM_LEVEL}:${window.BM_VALUE}`})}),U=await M.json();if(!M.ok||U.message){m.value="Failed to post comment: "+(U.message||"Unknown"),f.value=!1;return}const{id:Z,status:q}=U.data;n.ancestorId||n.parentId?i.addComment(Z,T,s.user,q,n.ancestorId,n.parentId):n.currentId?r("update",T):i.addComment(Z,T,s.user,q),d.value="",r("close")}catch(D){m.value=D.message||String(D)}f.value=!1}function w(){s.login()}function E(y){Cw(y,"Enter")&&k(y)}function _(){r("close")}return qn(()=>{c.value?.focus()}),(y,T)=>(B(),J("form",{class:"mb-6",onSubmit:wi(k,["prevent"])},[ae("div",Mw,[ae("label",Fw,be(H(o)("your_comment")),1),rd(ae("textarea",{id:"ac-comment",ref_key:"textarea",ref:c,"onUpdate:modelValue":T[0]||(T[0]=g=>d.value=g),placeholder:H(o)("placeholder"),class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",required:"",rows:"3",onKeydown:[T[1]||(T[1]=wi(()=>{},["stop"])),Tl(E,["enter"]),Tl(_,["esc"])],onKeyup:T[2]||(T[2]=wi(()=>{},["stop"]))},null,40,jw),[[Lh,d.value]]),ae("div",Uw,[y.noVersion?Ne("",!0):(B(),J("div",Ww," v"+be(H(u)),1)),m.value?(B(),J("div",Hw,be(m.value),1)):Ne("",!0),ae("button",{disabled:f.value,class:"ac-btn ac-btn-primary ac-btn-sm ms-auto"},[f.value?(B(),J("span",Kw)):Ne("",!0),y.currentId?(B(),J(Ee,{key:1},[an(be(H(o)("save_editing")),1)],64)):y.parentId?(B(),J(Ee,{key:2},[an(be(H(o)("post_reply")),1)],64)):(B(),J(Ee,{key:3},[an(be(H(o)("post_comment")),1)],64))],8,zw)])])],32))}});/**
46
46
  * @license lucide-vue-next v0.469.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
@@ -82,8 +82,8 @@
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const Xw=Es("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"}]]),Jw={class:"flex items-center gap-2"},qw=["aria-label","title","disabled"],Qw={key:0,class:"ac-loading ac-loading-spinner"},ek={class:"text-sm text-gray-500 dark:text-gray-400"},tk=["aria-label","title","disabled"],nk={key:0,class:"ac-loading ac-loading-spinner"},rk=["aria-label","title"],vo="awesome-comment-likes",sk=ut({__name:"comment-actions",props:{comment:{}},emits:["reply"],setup(e,{emit:t}){const n=e,r=t,s=jn(),{t:i}=gt(),o=Ue("ApiBaseUrl"),a=te(0);async function l(u=!0){if(a.value)return;const c=localStorage.getItem(vo);if(c){const m=JSON.parse(c),k=Date.now(),w=m[n.comment.id];if(m[n.comment.id]=k,localStorage.setItem(vo,JSON.stringify(m)),w&&k-w<6e4){s.updateComment(n.comment.id,{like:Math.max((n.comment.like||0)+(u?1:-1),0)});return}}else localStorage.setItem(vo,JSON.stringify({[n.comment.id]:Date.now()}));a.value=u?1:-1;const d=await(await fetch(`${o}/api/like/${n.comment.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({like:u,postId:n.comment.postId})})).json();s.updateComment(n.comment.id,{like:d.data?.like||0}),a.value=0}return(u,c)=>(B(),J("div",Jw,[ae("button",{"aria-label":H(i)("like"),title:H(i)("like"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[0]||(c[0]=f=>l())},[a.value>0?(B(),J("span",Qw)):(B(),Wt(H(Xw),{key:1,size:16}))],8,qw),ae("span",ek,be(u.comment.like||0),1),ae("button",{"aria-label":H(i)("dislike"),title:H(i)("dislike"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[1]||(c[1]=f=>l(!1))},[a.value<0?(B(),J("span",nk)):(B(),Wt(H(Yw),{key:1,size:16}))],8,tk),ae("button",{"aria-label":H(i)("reply"),title:H(i)("reply"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none -me-1.5",type:"button",onClick:c[2]||(c[2]=f=>r("reply"))},[ke(H(Zw),{size:16})],8,rk)]))}});function To(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let wn=To();function Wu(e){wn=e}const Sr={exec:()=>null};function ce(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(He.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}const He={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},ik=/^(?:[ \t]*(?:\n|$))+/,ok=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ak=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ir=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,lk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Hu=/(?:[*+-]|\d{1,9}[.)])/,zu=ce(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Hu).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(),So=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ck=/^[^\n]+/,Io=/(?!\s*\])(?:\\.|[^\[\]\\])+/,uk=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Io).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),fk=ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Hu).getRegex(),xs="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",Eo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,dk=ce("^ {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",Eo).replace("tag",xs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ku=ce(So).replace("hr",Ir).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",xs).getRegex(),xo={blockquote:ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ku).getRegex(),code:ok,def:uk,fences:ak,heading:lk,hr:Ir,html:dk,lheading:zu,list:fk,newline:ik,paragraph:Ku,table:Sr,text:ck},Vu=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ir).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",xs).getRegex(),hk={...xo,table:Vu,paragraph:ce(So).replace("hr",Ir).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vu).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",xs).getRegex()},pk={...xo,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Eo).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:Sr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(So).replace("hr",Ir).replace("heading",` *#{1,6} *[^
86
- ]`).replace("lheading",zu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},mk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,gk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bu=/^( {2,}|\\)\n(?!\s*$)/,_k=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Os=/[\p{P}\p{S}]/u,Oo=/[\s\p{P}\p{S}]/u,Gu=/[^\s\p{P}\p{S}]/u,bk=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Oo).getRegex(),Zu=/(?!~)[\p{P}\p{S}]/u,yk=/(?!~)[\s\p{P}\p{S}]/u,wk=/(?:[^\s\p{P}\p{S}]|~)/u,kk=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Yu=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,vk=ce(Yu,"u").replace(/punct/g,Os).getRegex(),Tk=ce(Yu,"u").replace(/punct/g,Zu).getRegex(),Xu="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Sk=ce(Xu,"gu").replace(/notPunctSpace/g,Gu).replace(/punctSpace/g,Oo).replace(/punct/g,Os).getRegex(),Ik=ce(Xu,"gu").replace(/notPunctSpace/g,wk).replace(/punctSpace/g,yk).replace(/punct/g,Zu).getRegex(),Ek=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Gu).replace(/punctSpace/g,Oo).replace(/punct/g,Os).getRegex(),xk=ce(/\\(punct)/,"gu").replace(/punct/g,Os).getRegex(),Ok=ce(/^<(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(),Ck=ce(Eo).replace("(?:-->|$)","-->").getRegex(),Ak=ce("^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",Ck).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Cs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Lk=ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Cs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ju=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Cs).replace("ref",Io).getRegex(),qu=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Io).getRegex(),Pk=ce("reflink|nolink(?!\\()","g").replace("reflink",Ju).replace("nolink",qu).getRegex(),Co={_backpedal:Sr,anyPunctuation:xk,autolink:Ok,blockSkip:kk,br:Bu,code:gk,del:Sr,emStrongLDelim:vk,emStrongRDelimAst:Sk,emStrongRDelimUnd:Ek,escape:mk,link:Lk,nolink:qu,punctuation:bk,reflink:Ju,reflinkSearch:Pk,tag:Ak,text:_k,url:Sr},Rk={...Co,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Cs).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Cs).getRegex()},Ao={...Co,emStrongRDelimAst:Ik,emStrongLDelim:Tk,url:ce(/^((?: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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Nk={...Ao,br:ce(Bu).replace("{2,}","*").getRegex(),text:ce(Ao.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},As={normal:xo,gfm:hk,pedantic:pk},Er={normal:Co,gfm:Ao,breaks:Nk,pedantic:Rk},$k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qu=e=>$k[e];function yt(e,t){if(t){if(He.escapeTest.test(e))return e.replace(He.escapeReplace,Qu)}else if(He.escapeTestNoEncode.test(e))return e.replace(He.escapeReplaceNoEncode,Qu);return e}function ef(e){try{e=encodeURI(e).replace(He.percentDecode,"%")}catch{return null}return e}function tf(e,t){const n=e.replace(He.findPipe,(i,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(He.splitPipe);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(He.slashPipe,"|");return r}function xr(e,t,n){const r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function Dk(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 nf(e,t,n,r,s){const i=t.href,o=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}return{type:"image",raw:n,href:i,title:o,text:a}}function Mk(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const s=r[1];return t.split(`
85
+ */const Xw=Es("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"}]]),Jw={class:"flex items-center gap-2"},qw=["aria-label","title","disabled"],Qw={key:0,class:"ac-loading ac-loading-spinner"},ek={class:"text-sm text-gray-500 dark:text-gray-400"},tk=["aria-label","title","disabled"],nk={key:0,class:"ac-loading ac-loading-spinner"},rk=["aria-label","title"],To="awesome-comment-likes",sk=ut({__name:"comment-actions",props:{comment:{}},emits:["reply"],setup(e,{emit:t}){const n=e,r=t,s=jn(),{t:i}=gt(),o=Ue("ApiBaseUrl"),a=te(0);async function l(u=!0){if(a.value)return;const c=localStorage.getItem(To);if(c){const m=JSON.parse(c),k=Date.now(),w=m[n.comment.id];if(m[n.comment.id]=k,localStorage.setItem(To,JSON.stringify(m)),w&&k-w<6e4){s.updateComment(n.comment.id,{like:Math.max((n.comment.like||0)+(u?1:-1),0)});return}}else localStorage.setItem(To,JSON.stringify({[n.comment.id]:Date.now()}));a.value=u?1:-1;const d=await(await fetch(`${o}/api/like/${n.comment.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({like:u,postId:n.comment.postId})})).json();s.updateComment(n.comment.id,{like:d.data?.like||0}),a.value=0}return(u,c)=>(B(),J("div",Jw,[ae("button",{"aria-label":H(i)("like"),title:H(i)("like"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[0]||(c[0]=f=>l())},[a.value>0?(B(),J("span",Qw)):(B(),Wt(H(Xw),{key:1,size:16}))],8,qw),ae("span",ek,be(u.comment.like||0),1),ae("button",{"aria-label":H(i)("dislike"),title:H(i)("dislike"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[1]||(c[1]=f=>l(!1))},[a.value<0?(B(),J("span",nk)):(B(),Wt(H(Yw),{key:1,size:16}))],8,tk),ae("button",{"aria-label":H(i)("reply"),title:H(i)("reply"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none -me-1.5",type:"button",onClick:c[2]||(c[2]=f=>r("reply"))},[ke(H(Zw),{size:16})],8,rk)]))}});function So(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let wn=So();function Hu(e){wn=e}const Sr={exec:()=>null};function ce(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(He.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}const He={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},ik=/^(?:[ \t]*(?:\n|$))+/,ok=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ak=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ir=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,lk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,zu=/(?:[*+-]|\d{1,9}[.)])/,Ku=ce(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,zu).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(),Io=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ck=/^[^\n]+/,Eo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,uk=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Eo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),fk=ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,zu).getRegex(),xs="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",xo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,dk=ce("^ {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",xo).replace("tag",xs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vu=ce(Io).replace("hr",Ir).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",xs).getRegex(),Oo={blockquote:ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Vu).getRegex(),code:ok,def:uk,fences:ak,heading:lk,hr:Ir,html:dk,lheading:Ku,list:fk,newline:ik,paragraph:Vu,table:Sr,text:ck},Bu=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ir).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",xs).getRegex(),hk={...Oo,table:Bu,paragraph:ce(Io).replace("hr",Ir).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bu).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",xs).getRegex()},pk={...Oo,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xo).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:Sr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Io).replace("hr",Ir).replace("heading",` *#{1,6} *[^
86
+ ]`).replace("lheading",Ku).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},mk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,gk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gu=/^( {2,}|\\)\n(?!\s*$)/,_k=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Os=/[\p{P}\p{S}]/u,Co=/[\s\p{P}\p{S}]/u,Zu=/[^\s\p{P}\p{S}]/u,bk=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Co).getRegex(),Yu=/(?!~)[\p{P}\p{S}]/u,yk=/(?!~)[\s\p{P}\p{S}]/u,wk=/(?:[^\s\p{P}\p{S}]|~)/u,kk=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Xu=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,vk=ce(Xu,"u").replace(/punct/g,Os).getRegex(),Tk=ce(Xu,"u").replace(/punct/g,Yu).getRegex(),Ju="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Sk=ce(Ju,"gu").replace(/notPunctSpace/g,Zu).replace(/punctSpace/g,Co).replace(/punct/g,Os).getRegex(),Ik=ce(Ju,"gu").replace(/notPunctSpace/g,wk).replace(/punctSpace/g,yk).replace(/punct/g,Yu).getRegex(),Ek=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zu).replace(/punctSpace/g,Co).replace(/punct/g,Os).getRegex(),xk=ce(/\\(punct)/,"gu").replace(/punct/g,Os).getRegex(),Ok=ce(/^<(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(),Ck=ce(xo).replace("(?:-->|$)","-->").getRegex(),Ak=ce("^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",Ck).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Cs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Lk=ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Cs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qu=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Cs).replace("ref",Eo).getRegex(),Qu=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Eo).getRegex(),Pk=ce("reflink|nolink(?!\\()","g").replace("reflink",qu).replace("nolink",Qu).getRegex(),Ao={_backpedal:Sr,anyPunctuation:xk,autolink:Ok,blockSkip:kk,br:Gu,code:gk,del:Sr,emStrongLDelim:vk,emStrongRDelimAst:Sk,emStrongRDelimUnd:Ek,escape:mk,link:Lk,nolink:Qu,punctuation:bk,reflink:qu,reflinkSearch:Pk,tag:Ak,text:_k,url:Sr},Rk={...Ao,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Cs).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Cs).getRegex()},Lo={...Ao,emStrongRDelimAst:Ik,emStrongLDelim:Tk,url:ce(/^((?: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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Nk={...Lo,br:ce(Gu).replace("{2,}","*").getRegex(),text:ce(Lo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},As={normal:Oo,gfm:hk,pedantic:pk},Er={normal:Ao,gfm:Lo,breaks:Nk,pedantic:Rk},$k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ef=e=>$k[e];function yt(e,t){if(t){if(He.escapeTest.test(e))return e.replace(He.escapeReplace,ef)}else if(He.escapeTestNoEncode.test(e))return e.replace(He.escapeReplaceNoEncode,ef);return e}function tf(e){try{e=encodeURI(e).replace(He.percentDecode,"%")}catch{return null}return e}function nf(e,t){const n=e.replace(He.findPipe,(i,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(He.splitPipe);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(He.slashPipe,"|");return r}function xr(e,t,n){const r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function Dk(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 rf(e,t,n,r,s){const i=t.href,o=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}return{type:"image",raw:n,href:i,title:o,text:a}}function Mk(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const s=r[1];return t.split(`
87
87
  `).map(i=>{const o=i.match(n.other.beginningSpace);if(o===null)return i;const[a]=o;return a.length>=s.length?i.slice(s.length):i}).join(`
88
88
  `)}class Ls{options;rules;lexer;constructor(t){this.options=t||wn}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(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:xr(r,`
89
89
  `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],s=Mk(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const s=xr(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.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],`
@@ -101,13 +101,13 @@ ${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block
101
101
  `);continue}}return{type:"blockquote",raw:s,tokens:o,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const s=r.length>1,i={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const o=this.rules.other.listItemRegex(r);let a=!1;for(;t;){let u=!1,c="",f="";if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;c=n[0],t=t.substring(c.length);let d=n[2].split(`
102
102
  `,1)[0].replace(this.rules.other.listReplaceTabs,y=>" ".repeat(3*y.length)),m=t.split(`
103
103
  `,1)[0],k=!d.trim(),w=0;if(this.options.pedantic?(w=2,f=d.trimStart()):k?w=n[1].length+1:(w=n[2].search(this.rules.other.nonSpaceChar),w=w>4?1:w,f=d.slice(w),w+=n[1].length),k&&this.rules.other.blankLine.test(m)&&(c+=m+`
104
- `,t=t.substring(m.length+1),u=!0),!u){const y=this.rules.other.nextBulletRegex(w),I=this.rules.other.hrRegex(w),g=this.rules.other.fencesBeginRegex(w),O=this.rules.other.headingBeginRegex(w),D=this.rules.other.htmlBeginRegex(w);for(;t;){const L=t.split(`
105
- `,1)[0];let M;if(m=L,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),M=m):M=m.replace(this.rules.other.tabCharGlobal," "),g.test(m)||O.test(m)||D.test(m)||y.test(m)||I.test(m))break;if(M.search(this.rules.other.nonSpaceChar)>=w||!m.trim())f+=`
106
- `+M.slice(w);else{if(k||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||g.test(d)||O.test(d)||I.test(d))break;f+=`
104
+ `,t=t.substring(m.length+1),u=!0),!u){const y=this.rules.other.nextBulletRegex(w),T=this.rules.other.hrRegex(w),g=this.rules.other.fencesBeginRegex(w),O=this.rules.other.headingBeginRegex(w),D=this.rules.other.htmlBeginRegex(w);for(;t;){const L=t.split(`
105
+ `,1)[0];let M;if(m=L,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),M=m):M=m.replace(this.rules.other.tabCharGlobal," "),g.test(m)||O.test(m)||D.test(m)||y.test(m)||T.test(m))break;if(M.search(this.rules.other.nonSpaceChar)>=w||!m.trim())f+=`
106
+ `+M.slice(w);else{if(k||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||g.test(d)||O.test(d)||T.test(d))break;f+=`
107
107
  `+m}!k&&!m.trim()&&(k=!0),c+=L+`
108
- `,t=t.substring(L.length+1),d=M.slice(w)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0));let E=null,_;this.options.gfm&&(E=this.rules.other.listIsTask.exec(f),E&&(_=E[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!E,checked:_,loose:!1,text:f,tokens:[]}),i.raw+=c}const l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){const c=i.items[u].tokens.filter(d=>d.type==="space"),f=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));i.loose=f}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}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(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=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:s,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=tf(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
109
- `):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const a of s)this.rules.other.tableAlignRight.test(a)?o.align.push("right"):this.rules.other.tableAlignCenter.test(a)?o.align.push("center"):this.rules.other.tableAlignLeft.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 i)o.rows.push(tf(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)===`
110
- `?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:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.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&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const o=xr(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=Dk(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 s=n[2],i="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(s);o&&(s=o[1],i=o[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),nf(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[s.toLowerCase()];if(!i){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return nf(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...s[0]].length-1;let a,l,u=o,c=0;const f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+o);(s=f.exec(n))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){u+=l;continue}else if((s[5]||s[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const d=[...s[0]][0].length,m=t.slice(0,o+s.index+d+l);if(Math.min(o,l)%2){const w=m.slice(1,-1);return{type:"em",raw:m,text:w,tokens:this.lexer.inlineTokens(w)}}const k=m.slice(2,-2);return{type:"strong",raw:m,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&i&&(r=r.substring(1,r.length-1)),{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,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,s;if(n[2]==="@")r=n[0],s="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class qe{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||wn,this.options.tokenizer=this.options.tokenizer||new Ls,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={other:He,block:As.normal,inline:Er.normal};this.options.pedantic?(n.block=As.pedantic,n.inline=Er.pedantic):this.options.gfm&&(n.block=As.gfm,this.options.breaks?n.inline=Er.breaks:n.inline=Er.gfm),this.tokenizer.rules=n}static get rules(){return{block:As,inline:Er}}static lex(t,n){return new qe(n).lex(t)}static lexInline(t,n){return new qe(n).inlineTokens(t)}lex(t){t=t.replace(He.carriageReturn,`
108
+ `,t=t.substring(L.length+1),d=M.slice(w)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0));let E=null,_;this.options.gfm&&(E=this.rules.other.listIsTask.exec(f),E&&(_=E[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!E,checked:_,loose:!1,text:f,tokens:[]}),i.raw+=c}const l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){const c=i.items[u].tokens.filter(d=>d.type==="space"),f=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));i.loose=f}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}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(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=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:s,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=nf(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
109
+ `):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const a of s)this.rules.other.tableAlignRight.test(a)?o.align.push("right"):this.rules.other.tableAlignCenter.test(a)?o.align.push("center"):this.rules.other.tableAlignLeft.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 i)o.rows.push(nf(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)===`
110
+ `?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:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.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&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const o=xr(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=Dk(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 s=n[2],i="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(s);o&&(s=o[1],i=o[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),rf(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[s.toLowerCase()];if(!i){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return rf(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...s[0]].length-1;let a,l,u=o,c=0;const f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+o);(s=f.exec(n))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){u+=l;continue}else if((s[5]||s[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const d=[...s[0]][0].length,m=t.slice(0,o+s.index+d+l);if(Math.min(o,l)%2){const w=m.slice(1,-1);return{type:"em",raw:m,text:w,tokens:this.lexer.inlineTokens(w)}}const k=m.slice(2,-2);return{type:"strong",raw:m,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&i&&(r=r.substring(1,r.length-1)),{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,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,s;if(n[2]==="@")r=n[0],s="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class qe{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||wn,this.options.tokenizer=this.options.tokenizer||new Ls,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={other:He,block:As.normal,inline:Er.normal};this.options.pedantic?(n.block=As.pedantic,n.inline=Er.pedantic):this.options.gfm&&(n.block=As.gfm,this.options.breaks?n.inline=Er.breaks:n.inline=Er.gfm),this.tokenizer.rules=n}static get rules(){return{block:As,inline:Er}}static lex(t,n){return new qe(n).lex(t)}static lexInline(t,n){return new qe(n).inlineTokens(t)}lex(t){t=t.replace(He.carriageReturn,`
111
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){for(this.options.pedantic&&(t=t.replace(He.tabCharGlobal," ").replace(He.spaceLine,""));t;){let s;if(this.options.extensions?.block?.some(o=>(s=o.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);const o=n.at(-1);s.raw.length===1&&o!==void 0?o.raw+=`
112
112
  `:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);const o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=`
113
113
  `+s.raw,o.text+=`
@@ -135,6 +135,6 @@ ${this.parser.parse(t)}</blockquote>
135
135
  `}tablerow({text:t}){return`<tr>
136
136
  ${t}</tr>
137
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}>
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>${yt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const s=this.parser.parseInline(r),i=ef(t);if(i===null)return s;t=i;let o='<a href="'+t+'"';return n&&(o+=' title="'+yt(n)+'"'),o+=">"+s+"</a>",o}image({href:t,title:n,text:r}){const s=ef(t);if(s===null)return yt(r);t=s;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${yt(n)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:yt(t.text)}}class Lo{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 Qe{options;renderer;textRenderer;constructor(t){this.options=t||wn,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 Lo}static parse(t,n){return new Qe(n).parse(t)}static parseInline(t,n){return new Qe(n).parseInline(t)}parse(t,n=!0){let r="";for(let s=0;s<t.length;s++){const i=t[s];if(this.options.extensions?.renderers?.[i.type]){const a=i,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=i;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(;s+1<t.length&&t[s+1].type==="text";)a=t[++s],l+=`
139
- `+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):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=this.renderer){let r="";for(let s=0;s<t.length;s++){const i=t[s];if(this.options.extensions?.renderers?.[i.type]){const a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=a||"";continue}}const o=i;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||wn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?qe.lex:qe.lexInline}provideParser(){return this.block?Qe.parse:Qe.parseInline}}class Fk{defaults=To();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Qe;Renderer=Ps;TextRenderer=Lo;Lexer=qe;Tokenizer=Ls;Hooks=Rs;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(const s of t)switch(r=r.concat(n.call(this,s)),s.type){case"table":{const i=s;for(const o of i.header)r=r.concat(this.walkTokens(o.tokens,n));for(const o of i.rows)for(const a of o)r=r.concat(this.walkTokens(a.tokens,n));break}case"list":{const i=s;r=r.concat(this.walkTokens(i.items,n));break}default:{const i=s;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(o=>{const a=i[o].flat(1/0);r=r.concat(this.walkTokens(a,n))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=n.renderers[i.name];o?n.renderers[i.name]=function(...a){let l=i.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[i.level];o?o.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),s.extensions=n),r.renderer){const i=this.defaults.renderer||new Ps(this.defaults);for(const o in r.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,l=r.renderer[a],u=i[a];i[a]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}s.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new Ls(this.defaults);for(const o in r.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=r.tokenizer[a],u=i[a];i[a]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}s.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Rs;for(const o in r.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,l=r.hooks[a],u=i[a];Rs.passThroughHooks.has(o)?i[a]=c=>{if(this.defaults.async)return Promise.resolve(l.call(i,c)).then(d=>u.call(i,d));const f=l.call(i,c);return u.call(i,f)}:i[a]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}s.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,o=r.walkTokens;s.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),i&&(l=l.concat(i.call(this,a))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return qe.lex(t,n??this.defaults)}parser(t,n){return Qe.parse(t,n??this.defaults)}parseMarkdown(t){return(r,s)=>{const i={...s},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.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?qe.lex:qe.lexInline,u=o.hooks?o.hooks.provideParser():t?Qe.parse:Qe.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 s="<p>An error occurred:</p><pre>"+yt(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}}const kn=new Fk;function ue(e,t){return kn.parse(e,t)}ue.options=ue.setOptions=function(e){return kn.setOptions(e),ue.defaults=kn.defaults,Wu(ue.defaults),ue},ue.getDefaults=To,ue.defaults=wn,ue.use=function(...e){return kn.use(...e),ue.defaults=kn.defaults,Wu(ue.defaults),ue},ue.walkTokens=function(e,t){return kn.walkTokens(e,t)},ue.parseInline=kn.parseInline,ue.Parser=Qe,ue.parser=Qe.parse,ue.Renderer=Ps,ue.TextRenderer=Lo,ue.Lexer=qe,ue.lexer=qe.lex,ue.Tokenizer=Ls,ue.Hooks=Rs,ue.parse=ue,ue.options,ue.setOptions,ue.use,ue.walkTokens,ue.parseInline,Qe.parse,qe.lex;const jk=["href"],Uk=["innerHTML"],Wk={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},Hk=["href"],zk=ut({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=gt(),r=jn();function s(o){return ue(o).replace(/<a/g,'<a target="_blank"')}function i(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?(B(),J(Ee,{key:0},[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(B(),J("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"},"@"+be(i(o.comment.parentId)),9,jk)):Ne("",!0),ae("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(o.comment.content)},null,8,Uk)],64)):(B(),J("p",Wk,[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(B(),J("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"},"@"+be(i(o.comment.parentId)),9,Hk)):Ne("",!0),an(be(o.comment.content),1)]))}});function Kk(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 s=t>>r*8&255;n+=("00"+s.toString(16)).slice(-2)}return n}const Vk={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},Bk={class:"ac-avatar"},Gk={key:0,class:"w-6 h-6"},Zk=["alt","src"],Yk={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},Xk=["data-tip"],Jk=["href"],qk=["datetime","title"],Qk=ut({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=gt(),i=rt(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(Aw,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(B(),J("div",Vk,[ae("div",Bk,[a.comment.user?.avatar?(B(),J("div",Gk,[ae("img",{alt:i.value,src:a.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,Zk)])):(B(),J("div",{key:1,style:Dr({"background-color":H(Kk)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[ae("span",Yk,be(i.value.substring(0,1)),1)],4))]),an(" "+be(i.value)+" ",1),a.comment.isAdmin?(B(),J("div",{key:0,"data-tip":H(s)("admin"),class:"ac-tooltip text-success"},[ke(H(Gw),{class:"block",size:18})],8,Xk)):Ne("",!0),ae("a",{href:o(a.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[ae("time",{datetime:a.comment.createdAt.toISOString(),title:H(ju)(a.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},be(H(ju)(a.comment.createdAt)),9,qk)],8,Jk),a.isEditable?(B(),J("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"))},be(H(s)("edit")),1)):Ne("",!0)]))}}),ev=["id"],tv={class:"flex justify-between items-center font-sans"},nv={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},rv=ut({...{name:"CommentItem"},props:{comment:{},isFirst:{type:Boolean},isFirstLevel:{type:Boolean},isLast:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=gt(),r=jn(),s=ko();let i;const o=te(Date.now()),a=te(!1),l=te(!1),u=rt(()=>t.comment.userId===s.user?.sub&&o.value-t.comment.createdAt.getTime()<36e5);return qn(()=>{u.value&&(i=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(i)},1e3))}),Sa(()=>{clearInterval(i)}),(c,f)=>{const d=gd("comment-item",!0);return B(),J("div",{id:"awcm-"+c.comment.id,class:zn([[{"animated flash":c.comment.isNew},c.isFirstLevel?"mb-4":c.isFirst?"-mt-4":"mt-1"],"comment-item target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=m=>H(r).updateComment(c.comment.id,{isNew:!1}))},[ae("div",{class:zn(["pt-2 px-4 text-base bg-base-200 dark:bg-gray-900",[{"rounded-lg":c.isFirstLevel,"rounded-b-lg":c.isLast,"rounded-t-lg shadow-outline-md":c.isFirst},c.comment.children?.length?"pb-6":"pb-3"]])},[ae("header",tv,[ke(Qk,{comment:c.comment,"is-editable":u.value,"is-editing":a.value,onEdit:f[0]||(f[0]=m=>a.value=!a.value)},null,8,["comment","is-editable","is-editing"]),ke(sk,{comment:c.comment,onReply:f[1]||(f[1]=m=>l.value=!l.value)},null,8,["comment"])]),ke(zk,{"ancestor-id":c.ancestorId,comment:c.comment},null,8,["ancestor-id","comment"]),c.comment.status===H(ws).Pending?(B(),J("p",nv,be(H(n)("approve_hint")),1)):Ne("",!0)],2),a.value?(B(),Wt(Ss,{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]=m=>a.value=!1),onUpdate:f[3]||(f[3]=m=>H(r).updateComment(c.comment.id,{content:m}))},null,8,["content","current-id","status"])):Ne("",!0),l.value&&c.isFirstLevel?(B(),Wt(Ss,{key:1,"ancestor-id":c.ancestorId,"parent-id":Number(c.comment.id),class:"mt-2 ms-7","no-version":"",onClose:f[4]||(f[4]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Ne("",!0),c.comment.children?.length?(B(!0),J(Ee,{key:2},Ea(c.comment.children,(m,k)=>(B(),Wt(d,{key:m.id,"ancestor-id":c.ancestorId,comment:m,"is-first":k===0,"is-first-level":!1,"is-last":k===c.comment.children.length-1,class:"ms-7"},null,8,["ancestor-id","comment","is-first","is-last"]))),128)):Ne("",!0),l.value&&!c.isFirstLevel?(B(),Wt(Ss,{key:3,"ancestor-id":c.ancestorId,"parent-id":c.comment.id,class:"mt-2 ms-7","no-version":"",onClose:f[5]||(f[5]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Ne("",!0)],42,ev)}}}),sv={key:0,class:"comments-wrapper"},iv=["disabled"],ov={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},av={key:1,class:"py-8 text-center"},lv=ut({...{name:"CommentSections"},setup(e){const{t}=gt(),n=jn();function r(){n.start+=20,n.loadComments()}return qn(()=>{n.isLoaded||n.loadComments()}),(s,i)=>H(n).isLoaded?(B(),J("div",sv,[(B(!0),J(Ee,null,Ea(Object.values(H(n).comments).reverse(),o=>(B(),Wt(rv,{key:o.id,"ancestor-id":o.id,comment:o,"parent-id":o.parentId,"is-first-level":""},null,8,["ancestor-id","comment","parent-id"]))),128)),H(n).hasMore?(B(),J("button",{key:0,disabled:H(n).loadingMore,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},[H(n).loadingMore?(B(),J("span",ov)):Ne("",!0),an(" "+be(H(t)("load_more")),1)],8,iv)):Ne("",!0)])):(B(),J("div",av,i[0]||(i[0]=[ae("span",{class:"ac-loading ac-loading-spinner text-base-content"},null,-1)])))}}),cv={class:"awesome-comment"},uv={key:0,class:"ac-alert ac-alert-error mb-4"},fv={class:"flex justify-between items-center py-2"},dv={class:"text-lg font-bold text-base-content my-0"},hv={key:0,class:"ac-loading ac-loading-spinner"},pv={key:1,class:"ac-dropdown ac-dropdown-end"},mv={key:0,class:"ac-avatar flex",tabindex:"0"},gv={class:"block w-6 h-6 rounded-full"},_v=["alt","src"],bv={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},yv={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},wv={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},kv={class:"text-base-content"},vv=["disabled"],Tv=["disabled"],Sv=ut({__name:"App",setup(e){const t=jn(),{t:n}=gt(),r=ko(),s=rt(()=>{const a=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const l=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(l),a});function i(){r.login()}function o(){r.logout({openUrl:!1})}return(a,l)=>(B(),J("div",cv,[H(t).message?(B(),J("div",uv,[ae("p",null,be(H(t).message),1)])):Ne("",!0),ae("header",fv,[ae("h2",dv,be(H(n)("discussion"))+" ("+be(s.value)+") ",1),H(r).isLoading?(B(),J("span",hv)):(B(),J("div",pv,[H(r).isAuthenticated&&H(r).user?(B(),J(Ee,{key:0},[H(r).user.picture?(B(),J("label",mv,[ae("span",gv,[ae("img",{alt:H(r).user.name||H(r).user.email,src:H(r).user.picture,class:"w-full h-full block"},null,8,_v)])])):(B(),J("label",bv,be(H(r).user.email),1)),ae("ul",yv,[H(r).user.picture?(B(),J("li",wv,[ae("span",kv,be(H(r).user.email),1)])):Ne("",!0),ae("li",null,[ae("button",{disabled:H(r).isLoading,class:"border-0 bg-base-100",type:"button",onClick:o},be(H(n)("logout")),9,vv)])])],64)):(B(),J("button",{key:1,disabled:H(r).isLoading,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",onClick:i},be(H(n)("login")),9,Tv))]))]),ke(Ss),ke(lv)]))}}),rf=[];let Po=0,Ro=null;function Iv({domain:e,clientId:t,locale:n=navigator.language}){const r=Mh(Sv),s=Uh(),i=Ro||e&&t&&Hl({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=og({legacy:!1,locale:n,fallbackLocale:"en",messages:{...xw(Du,"cn"),"zh-CN":Du.cn}});return i&&r.use(i),r.use(s),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",locale:"",awesomeAuth:void 0,init(e,{postId:t,apiUrl:n,domain:r,clientId:s,awesomeAuth:i,locale:o=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain||"",s??=this.clientId,i??=this.awesomeAuth;const a=Iv({domain:r,clientId:s,locale:o});a.provide("ApiBaseUrl",n),a.provide("postId",t),a.provide("Auth0Domain",r),a.provide("comments",rf),a.provide("total",Po),a.provide("awesomeAuth",i),a.mount(e)},async preload({postId:e,apiUrl:t,domain:n,clientId:r,awesomeAuth:s}){if(this.postId=e||"",this.apiUrl=t||"",this.domain=n||"",this.clientId=r||"",n&&r&&(Ro=Hl({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}})),!Ro&&!s)throw new Error("You need at least 1 Auth provider.");this.awesomeAuth=s;const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const o=await i.json();if(o.data){rf.push(...o.data),Po=o.meta?.total||o.data.length;const a=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Po});document.body.dispatchEvent(a)}}}});
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>${yt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const s=this.parser.parseInline(r),i=tf(t);if(i===null)return s;t=i;let o='<a href="'+t+'"';return n&&(o+=' title="'+yt(n)+'"'),o+=">"+s+"</a>",o}image({href:t,title:n,text:r}){const s=tf(t);if(s===null)return yt(r);t=s;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${yt(n)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:yt(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 Qe{options;renderer;textRenderer;constructor(t){this.options=t||wn,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 Po}static parse(t,n){return new Qe(n).parse(t)}static parseInline(t,n){return new Qe(n).parseInline(t)}parse(t,n=!0){let r="";for(let s=0;s<t.length;s++){const i=t[s];if(this.options.extensions?.renderers?.[i.type]){const a=i,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=i;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(;s+1<t.length&&t[s+1].type==="text";)a=t[++s],l+=`
139
+ `+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):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=this.renderer){let r="";for(let s=0;s<t.length;s++){const i=t[s];if(this.options.extensions?.renderers?.[i.type]){const a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=a||"";continue}}const o=i;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||wn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?qe.lex:qe.lexInline}provideParser(){return this.block?Qe.parse:Qe.parseInline}}class Fk{defaults=So();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Qe;Renderer=Ps;TextRenderer=Po;Lexer=qe;Tokenizer=Ls;Hooks=Rs;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(const s of t)switch(r=r.concat(n.call(this,s)),s.type){case"table":{const i=s;for(const o of i.header)r=r.concat(this.walkTokens(o.tokens,n));for(const o of i.rows)for(const a of o)r=r.concat(this.walkTokens(a.tokens,n));break}case"list":{const i=s;r=r.concat(this.walkTokens(i.items,n));break}default:{const i=s;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(o=>{const a=i[o].flat(1/0);r=r.concat(this.walkTokens(a,n))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=n.renderers[i.name];o?n.renderers[i.name]=function(...a){let l=i.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[i.level];o?o.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),s.extensions=n),r.renderer){const i=this.defaults.renderer||new Ps(this.defaults);for(const o in r.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,l=r.renderer[a],u=i[a];i[a]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}s.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new Ls(this.defaults);for(const o in r.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=r.tokenizer[a],u=i[a];i[a]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}s.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Rs;for(const o in r.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,l=r.hooks[a],u=i[a];Rs.passThroughHooks.has(o)?i[a]=c=>{if(this.defaults.async)return Promise.resolve(l.call(i,c)).then(d=>u.call(i,d));const f=l.call(i,c);return u.call(i,f)}:i[a]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}s.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,o=r.walkTokens;s.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),i&&(l=l.concat(i.call(this,a))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return qe.lex(t,n??this.defaults)}parser(t,n){return Qe.parse(t,n??this.defaults)}parseMarkdown(t){return(r,s)=>{const i={...s},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.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?qe.lex:qe.lexInline,u=o.hooks?o.hooks.provideParser():t?Qe.parse:Qe.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 s="<p>An error occurred:</p><pre>"+yt(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}}const kn=new Fk;function ue(e,t){return kn.parse(e,t)}ue.options=ue.setOptions=function(e){return kn.setOptions(e),ue.defaults=kn.defaults,Hu(ue.defaults),ue},ue.getDefaults=So,ue.defaults=wn,ue.use=function(...e){return kn.use(...e),ue.defaults=kn.defaults,Hu(ue.defaults),ue},ue.walkTokens=function(e,t){return kn.walkTokens(e,t)},ue.parseInline=kn.parseInline,ue.Parser=Qe,ue.parser=Qe.parse,ue.Renderer=Ps,ue.TextRenderer=Po,ue.Lexer=qe,ue.lexer=qe.lex,ue.Tokenizer=Ls,ue.Hooks=Rs,ue.parse=ue,ue.options,ue.setOptions,ue.use,ue.walkTokens,ue.parseInline,Qe.parse,qe.lex;const jk=["href"],Uk=["innerHTML"],Wk={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},Hk=["href"],zk=ut({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=gt(),r=jn();function s(o){return ue(o).replace(/<a/g,'<a target="_blank"')}function i(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?(B(),J(Ee,{key:0},[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(B(),J("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"},"@"+be(i(o.comment.parentId)),9,jk)):Ne("",!0),ae("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(o.comment.content)},null,8,Uk)],64)):(B(),J("p",Wk,[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(B(),J("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"},"@"+be(i(o.comment.parentId)),9,Hk)):Ne("",!0),an(be(o.comment.content),1)]))}});function Kk(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 s=t>>r*8&255;n+=("00"+s.toString(16)).slice(-2)}return n}const Vk={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},Bk={class:"ac-avatar"},Gk={key:0,class:"w-6 h-6"},Zk=["alt","src"],Yk={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},Xk=["data-tip"],Jk=["href"],qk=["datetime","title"],Qk=ut({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=gt(),i=rt(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(Aw,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(B(),J("div",Vk,[ae("div",Bk,[a.comment.user?.avatar?(B(),J("div",Gk,[ae("img",{alt:i.value,src:a.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,Zk)])):(B(),J("div",{key:1,style:Dr({"background-color":H(Kk)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[ae("span",Yk,be(i.value.substring(0,1)),1)],4))]),an(" "+be(i.value)+" ",1),a.comment.isAdmin?(B(),J("div",{key:0,"data-tip":H(s)("admin"),class:"ac-tooltip text-success"},[ke(H(Gw),{class:"block",size:18})],8,Xk)):Ne("",!0),ae("a",{href:o(a.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[ae("time",{datetime:a.comment.createdAt.toISOString(),title:H(Uu)(a.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},be(H(Uu)(a.comment.createdAt)),9,qk)],8,Jk),a.isEditable?(B(),J("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"))},be(H(s)("edit")),1)):Ne("",!0)]))}}),ev=["id"],tv={class:"flex justify-between items-center font-sans"},nv={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},rv=ut({...{name:"CommentItem"},props:{comment:{},isFirst:{type:Boolean},isFirstLevel:{type:Boolean},isLast:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=gt(),r=jn(),s=vo();let i;const o=te(Date.now()),a=te(!1),l=te(!1),u=rt(()=>t.comment.userId===s.user?.sub&&o.value-t.comment.createdAt.getTime()<36e5);return qn(()=>{u.value&&(i=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(i)},1e3))}),Ia(()=>{clearInterval(i)}),(c,f)=>{const d=_d("comment-item",!0);return B(),J("div",{id:"awcm-"+c.comment.id,class:zn([[{"animated flash":c.comment.isNew},c.isFirstLevel?"mb-4":c.isFirst?"-mt-4":"mt-1"],"comment-item target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=m=>H(r).updateComment(c.comment.id,{isNew:!1}))},[ae("div",{class:zn(["pt-2 px-4 text-base bg-base-200 dark:bg-gray-900",[{"rounded-lg":c.isFirstLevel,"rounded-b-lg":c.isLast,"rounded-t-lg shadow-outline-md":c.isFirst},c.comment.children?.length?"pb-6":"pb-3"]])},[ae("header",tv,[ke(Qk,{comment:c.comment,"is-editable":u.value,"is-editing":a.value,onEdit:f[0]||(f[0]=m=>a.value=!a.value)},null,8,["comment","is-editable","is-editing"]),ke(sk,{comment:c.comment,onReply:f[1]||(f[1]=m=>l.value=!l.value)},null,8,["comment"])]),ke(zk,{"ancestor-id":c.ancestorId,comment:c.comment},null,8,["ancestor-id","comment"]),c.comment.status===H(ws).Pending?(B(),J("p",nv,be(H(n)("approve_hint")),1)):Ne("",!0)],2),a.value?(B(),Wt(Ss,{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]=m=>a.value=!1),onUpdate:f[3]||(f[3]=m=>H(r).updateComment(c.comment.id,{content:m}))},null,8,["content","current-id","status"])):Ne("",!0),l.value&&c.isFirstLevel?(B(),Wt(Ss,{key:1,"ancestor-id":c.ancestorId,"parent-id":Number(c.comment.id),class:"mt-2 ms-7","no-version":"",onClose:f[4]||(f[4]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Ne("",!0),c.comment.children?.length?(B(!0),J(Ee,{key:2},xa(c.comment.children,(m,k)=>(B(),Wt(d,{key:m.id,"ancestor-id":c.ancestorId,comment:m,"is-first":k===0,"is-first-level":!1,"is-last":k===c.comment.children.length-1,class:"ms-7"},null,8,["ancestor-id","comment","is-first","is-last"]))),128)):Ne("",!0),l.value&&!c.isFirstLevel?(B(),Wt(Ss,{key:3,"ancestor-id":c.ancestorId,"parent-id":c.comment.id,class:"mt-2 ms-7","no-version":"",onClose:f[5]||(f[5]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Ne("",!0)],42,ev)}}}),sv={key:0,class:"comments-wrapper"},iv=["disabled"],ov={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},av={key:1,class:"py-8 text-center"},lv=ut({...{name:"CommentSections"},setup(e){const{t}=gt(),n=jn();function r(){n.start+=20,n.loadComments()}return qn(()=>{n.isLoaded||n.loadComments()}),(s,i)=>H(n).isLoaded?(B(),J("div",sv,[(B(!0),J(Ee,null,xa(Object.values(H(n).comments).reverse(),o=>(B(),Wt(rv,{key:o.id,"ancestor-id":o.id,comment:o,"parent-id":o.parentId,"is-first-level":""},null,8,["ancestor-id","comment","parent-id"]))),128)),H(n).hasMore?(B(),J("button",{key:0,disabled:H(n).loadingMore,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},[H(n).loadingMore?(B(),J("span",ov)):Ne("",!0),an(" "+be(H(t)("load_more")),1)],8,iv)):Ne("",!0)])):(B(),J("div",av,i[0]||(i[0]=[ae("span",{class:"ac-loading ac-loading-spinner text-base-content"},null,-1)])))}}),cv={class:"awesome-comment"},uv={key:0,class:"ac-alert ac-alert-error mb-4"},fv={class:"flex justify-between items-center py-2"},dv={class:"text-lg font-bold text-base-content my-0"},hv={key:0,class:"ac-loading ac-loading-spinner"},pv={key:1,class:"ac-dropdown ac-dropdown-end"},mv={key:0,class:"ac-avatar flex",tabindex:"0"},gv={class:"block w-6 h-6 rounded-full"},_v=["alt","src"],bv={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},yv={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},wv={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},kv={class:"text-base-content"},vv=["disabled"],Tv=["disabled"],Sv=ut({__name:"App",setup(e){const t=jn(),{t:n}=gt(),r=vo(),s=rt(()=>{const a=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const l=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(l),a});function i(){r.login()}function o(){r.logout({openUrl:!1})}return(a,l)=>(B(),J("div",cv,[H(t).message?(B(),J("div",uv,[ae("p",null,be(H(t).message),1)])):Ne("",!0),ae("header",fv,[ae("h2",dv,be(H(n)("discussion"))+" ("+be(s.value)+") ",1),H(r).isLoading?(B(),J("span",hv)):(B(),J("div",pv,[H(r).isAuthenticated&&H(r).user?(B(),J(Ee,{key:0},[H(r).user.picture?(B(),J("label",mv,[ae("span",gv,[ae("img",{alt:H(r).user.name||H(r).user.email,src:H(r).user.picture,class:"w-full h-full block"},null,8,_v)])])):(B(),J("label",bv,be(H(r).user.email),1)),ae("ul",yv,[H(r).user.picture?(B(),J("li",wv,[ae("span",kv,be(H(r).user.email),1)])):Ne("",!0),ae("li",null,[ae("button",{disabled:H(r).isLoading,class:"border-0 bg-base-100",type:"button",onClick:o},be(H(n)("logout")),9,vv)])])],64)):(B(),J("button",{key:1,disabled:H(r).isLoading,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",onClick:i},be(H(n)("login")),9,Tv))]))]),ke(Ss),ke(lv)]))}}),sf=[];let Ro=0,No=null;function Iv({domain:e,clientId:t,locale:n=navigator.language}){const r=Mh(Sv),s=Uh(),i=No||e&&t&&zl({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=og({legacy:!1,locale:n,fallbackLocale:"en",messages:{...xw(Mu,"cn"),"zh-CN":Mu.cn}});return i&&r.use(i),r.use(s),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",locale:"",awesomeAuth:void 0,init(e,{postId:t,apiUrl:n,domain:r,clientId:s,awesomeAuth:i,locale:o=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain||"",s??=this.clientId,i??=this.awesomeAuth;const a=Iv({domain:r,clientId:s,locale:o});a.provide("ApiBaseUrl",n),a.provide("postId",t),a.provide("Auth0Domain",r),a.provide("comments",sf),a.provide("total",Ro),a.provide("awesomeAuth",i),a.mount(e)},async preload({postId:e,apiUrl:t,domain:n,clientId:r,awesomeAuth:s}){if(this.postId=e||"",this.apiUrl=t||"",this.domain=n||"",this.clientId=r||"",n&&r&&(No=zl({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}})),!No&&!s)throw new Error("You need at least 1 Auth provider.");this.awesomeAuth=s;const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const o=await i.json();if(o.data){sf.push(...o.data),Ro=o.meta?.total||o.data.length;const a=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Ro});document.body.dispatchEvent(a)}}}});