@roudanio/awesome-comment 0.8.1 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/awesome-comment.iife.js +81 -81
- package/dist/awesome-comment.js +5430 -5748
- package/dist/awesome-comment.umd.js +82 -82
- package/dist/style.css +1 -1
- package/package.json +14 -13
|
@@ -1,140 +1,140 @@
|
|
|
1
1
|
var AwesomeComment=function(){"use strict";/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
6
|
-
* @vue/reactivity v3.5.
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function As(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},_n=[],it=()=>{},qu=()=>!1,Er=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ls=e=>e.startsWith("onUpdate:"),Ee=Object.assign,Ps=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qu=Object.prototype.hasOwnProperty,se=(e,t)=>Qu.call(e,t),z=Array.isArray,bn=e=>xr(e)==="[object Map]",Co=e=>xr(e)==="[object Set]",K=e=>typeof e=="function",ve=e=>typeof e=="string",Nt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Ao=e=>(ge(e)||K(e))&&K(e.then)&&K(e.catch),Lo=Object.prototype.toString,xr=e=>Lo.call(e),ef=e=>xr(e).slice(8,-1),Po=e=>xr(e)==="[object Object]",Rs=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fn=As(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Sr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tf=/-(\w)/g,Ye=Sr(e=>e.replace(tf,(t,n)=>n?n.toUpperCase():"")),nf=/\B([A-Z])/g,$t=Sr(e=>e.replace(nf,"-$1").toLowerCase()),Or=Sr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ns=Sr(e=>e?`on${Or(e)}`:""),Mt=(e,t)=>!Object.is(e,t),Cr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ro=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},$s=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let No;const Ar=()=>No||(No=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Lr(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ve(r)?af(r):Lr(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(ve(e)||ge(e))return e}const rf=/;(?![^(]*\))/g,sf=/:([^]+)/,of=/\/\*[^]*?\*\//g;function af(e){const t={};return e.replace(of,"").split(rf).forEach(n=>{if(n){const r=n.split(sf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Pr(e){let t="";if(ve(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const r=Pr(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const lf=As("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function $o(e){return!!e||e===""}const Mo=e=>!!(e&&e.__v_isRef===!0),_e=e=>ve(e)?e:e==null?"":z(e)||ge(e)&&(e.toString===Lo||!K(e.toString))?Mo(e)?_e(e.value):JSON.stringify(e,Do,2):String(e),Do=(e,t)=>Mo(t)?Do(e,t.value):bn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Ms(r,i)+" =>"]=s,n),{})}:Co(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ms(n))}:Nt(t)?Ms(t):ge(t)&&!z(t)&&!Po(t)?String(t):t,Ms=(e,t="")=>{var n;return Nt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.12
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let je;class zo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Gs(e){return new zo(e)}function Vo(){return je}function Pf(e,t=!1){je&&je.cleanups.push(e)}let he;const Ys=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,je&&je.active&&je.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ys.has(this)&&(Ys.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,Qo(this),Xo(this);const t=he,n=ot;he=this,ot=!0;try{return this.fn()}finally{Zo(this),he=t,ot=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)qs(t);this.deps=this.depsTail=void 0,Qo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ys.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Js(this)&&this.run()}get dirty(){return Js(this)}}let Go=0,Jn,qn;function Yo(e,t=!1){if(e.flags|=8,t){e.next=qn,qn=e;return}e.next=Jn,Jn=e}function Xs(){Go++}function Zs(){if(--Go>0)return;if(qn){let t=qn;for(qn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Jn;){let t=Jn;for(Jn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Xo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zo(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),qs(r),Rf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Js(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===Qn))return;e.globalVersion=Qn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Js(e)){e.flags&=-3;return}const n=he,r=ot;he=e,ot=!0;try{Xo(e);const i=e.fn(e._value);(t.version===0||Wt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{he=n,ot=r,Zo(e),e.flags&=-3}}function qs(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r),!n.subs&&n.computed){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)qs(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Rf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ot=!0;const qo=[];function It(){qo.push(ot),ot=!1}function St(){const e=qo.pop();ot=e===void 0?!0:e}function Qo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let Qn=0;class $f{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Qs{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(!he||!ot||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new $f(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.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=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=r)}return n}trigger(t){this.version++,Qn++,this.notify(t)}notify(t){Xs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Zs()}}}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 jr=new WeakMap,sn=Symbol(""),ei=Symbol(""),er=Symbol("");function $e(e,t,n){if(ot&&he){let r=jr.get(e);r||jr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Qs),i.map=r,i.key=n),i.track()}}function Ot(e,t,n,r,i,s){const o=jr.get(e);if(!o){Qn++;return}const a=l=>{l&&l.trigger()};if(Xs(),t==="clear")o.forEach(a);else{const l=G(e),u=l&&Ks(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===er||!jt(d)&&d>=c)&&a(f)})}else switch(n!==void 0&&a(o.get(n)),u&&a(o.get(er)),t){case"add":l?u&&a(o.get("length")):(a(o.get(sn)),Ln(e)&&a(o.get(ei)));break;case"delete":l||(a(o.get(sn)),Ln(e)&&a(o.get(ei)));break;case"set":Ln(e)&&a(o.get(sn));break}}Zs()}function Mf(e,t){const n=jr.get(e);return n&&n.get(t)}function An(e){const t=ne(e);return t===e?t:($e(t,"iterate",er),tt(e)?t:t.map(Me))}function Ur(e){return $e(e=ne(e),"iterate",er),e}const Df={__proto__:null,[Symbol.iterator](){return ti(this,Symbol.iterator,Me)},concat(...e){return An(this).concat(...e.map(t=>G(t)?An(t):t))},entries(){return ti(this,"entries",e=>(e[1]=Me(e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,n=>n.map(Me),arguments)},find(e,t){return xt(this,"find",e,t,Me,arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,Me,arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ni(this,"includes",e)},indexOf(...e){return ni(this,"indexOf",e)},join(e){return An(this).join(e)},lastIndexOf(...e){return ni(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return tr(this,"pop")},push(...e){return tr(this,"push",e)},reduce(e,...t){return ta(this,"reduce",e,t)},reduceRight(e,...t){return ta(this,"reduceRight",e,t)},shift(){return tr(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return tr(this,"splice",e)},toReversed(){return An(this).toReversed()},toSorted(e){return An(this).toSorted(e)},toSpliced(...e){return An(this).toSpliced(...e)},unshift(...e){return tr(this,"unshift",e)},values(){return ti(this,"values",Me)}};function ti(e,t,n){const r=Ur(e),i=r[t]();return r!==e&&!tt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const Ff=Array.prototype;function xt(e,t,n,r,i,s){const o=Ur(e),a=o!==e&&!tt(e),l=o[t];if(l!==Ff[t]){const f=l.apply(e,s);return a?Me(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Me(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(o,u,r);return a&&i?i(c):c}function ta(e,t,n,r){const i=Ur(e);let s=n;return i!==e&&(tt(e)?n.length>3&&(s=function(o,a,l){return n.call(this,o,a,l,e)}):s=function(o,a,l){return n.call(this,o,Me(a),l,e)}),i[t](s,...r)}function ni(e,t,n){const r=ne(e);$e(r,"iterate",er);const i=r[t](...n);return(i===-1||i===!1)&&si(n[0])?(n[0]=ne(n[0]),r[t](...n)):i}function tr(e,t,n=[]){It(),Xs();const r=ne(e)[t].apply(e,n);return Zs(),St(),r}const jf=Us("__proto__,__v_isRef,__isVue"),na=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt));function Uf(e){jt(e)||(e=String(e));const t=ne(this);return $e(t,"has",e),t.hasOwnProperty(e)}class ra{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?ha:da:s?fa:ua).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=G(t);if(!i){let l;if(o&&(l=Df[n]))return l;if(n==="hasOwnProperty")return Uf}const a=Reflect.get(t,n,ve(t)?t:r);return(jt(n)?na.has(n):jf(n))||(i||$e(t,"get",n),s)?a:ve(a)?o&&Ks(n)?a:a.value:be(a)?i?pa(a):Yr(a):a}}class sa extends ra{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const l=on(s);if(!tt(r)&&!on(r)&&(s=ne(s),r=ne(r)),!G(t)&&ve(s)&&!ve(r))return l?!1:(s.value=r,!0)}const o=G(t)&&Ks(n)?Number(n)<t.length:ae(t,n),a=Reflect.set(t,n,r,ve(t)?t:i);return t===ne(i)&&(o?Wt(r,s)&&Ot(t,"set",n,r):Ot(t,"add",n,r)),a}deleteProperty(t,n){const r=ae(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Ot(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!jt(n)||!na.has(n))&&$e(t,"has",n),r}ownKeys(t){return $e(t,"iterate",G(t)?"length":sn),Reflect.ownKeys(t)}}class ia extends ra{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Wf=new sa,Hf=new ia,Kf=new sa(!0),zf=new ia(!0),ri=e=>e,Wr=e=>Reflect.getPrototypeOf(e);function Hr(e,t,n=!1,r=!1){e=e.__v_raw;const i=ne(e),s=ne(t);n||(Wt(t,s)&&$e(i,"get",t),$e(i,"get",s));const{has:o}=Wr(i),a=r?ri:n?oi:Me;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function Kr(e,t=!1){const n=this.__v_raw,r=ne(n),i=ne(e);return t||(Wt(e,i)&&$e(r,"has",e),$e(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function zr(e,t=!1){return e=e.__v_raw,!t&&$e(ne(e),"iterate",sn),Reflect.get(e,"size",e)}function oa(e,t=!1){!t&&!tt(e)&&!on(e)&&(e=ne(e));const n=ne(this);return Wr(n).has.call(n,e)||(n.add(e),Ot(n,"add",e,e)),this}function aa(e,t,n=!1){!n&&!tt(t)&&!on(t)&&(t=ne(t));const r=ne(this),{has:i,get:s}=Wr(r);let o=i.call(r,e);o||(e=ne(e),o=i.call(r,e));const a=s.call(r,e);return r.set(e,t),o?Wt(t,a)&&Ot(r,"set",e,t):Ot(r,"add",e,t),this}function la(e){const t=ne(this),{has:n,get:r}=Wr(t);let i=n.call(t,e);i||(e=ne(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&Ot(t,"delete",e,void 0),s}function ca(){const e=ne(this),t=e.size!==0,n=e.clear();return t&&Ot(e,"clear",void 0,void 0),n}function Vr(e,t){return function(r,i){const s=this,o=s.__v_raw,a=ne(o),l=t?ri:e?oi:Me;return!e&&$e(a,"iterate",sn),o.forEach((u,c)=>r.call(i,l(u),l(c),s))}}function Br(e,t,n){return function(...r){const i=this.__v_raw,s=ne(i),o=Ln(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...r),c=n?ri:t?oi:Me;return!t&&$e(s,"iterate",l?ei:sn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Ht(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Vf(){const e={get(s){return Hr(this,s)},get size(){return zr(this)},has:Kr,add:oa,set:aa,delete:la,clear:ca,forEach:Vr(!1,!1)},t={get(s){return Hr(this,s,!1,!0)},get size(){return zr(this)},has:Kr,add(s){return oa.call(this,s,!0)},set(s,o){return aa.call(this,s,o,!0)},delete:la,clear:ca,forEach:Vr(!1,!0)},n={get(s){return Hr(this,s,!0)},get size(){return zr(this,!0)},has(s){return Kr.call(this,s,!0)},add:Ht("add"),set:Ht("set"),delete:Ht("delete"),clear:Ht("clear"),forEach:Vr(!0,!1)},r={get(s){return Hr(this,s,!0,!0)},get size(){return zr(this,!0)},has(s){return Kr.call(this,s,!0)},add:Ht("add"),set:Ht("set"),delete:Ht("delete"),clear:Ht("clear"),forEach:Vr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Br(s,!1,!1),n[s]=Br(s,!0,!1),t[s]=Br(s,!1,!0),r[s]=Br(s,!0,!0)}),[e,n,t,r]}const[Bf,Gf,Yf,Xf]=Vf();function Gr(e,t){const n=t?e?Xf:Yf:e?Gf:Bf;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ae(n,i)&&i in r?n:r,i,s)}const Zf={get:Gr(!1,!1)},Jf={get:Gr(!1,!0)},qf={get:Gr(!0,!1)},Qf={get:Gr(!0,!0)},ua=new WeakMap,fa=new WeakMap,da=new WeakMap,ha=new WeakMap;function ed(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function td(e){return e.__v_skip||!Object.isExtensible(e)?0:ed(If(e))}function Yr(e){return on(e)?e:Xr(e,!1,Wf,Zf,ua)}function nd(e){return Xr(e,!1,Kf,Jf,fa)}function pa(e){return Xr(e,!0,Hf,qf,da)}function Nw(e){return Xr(e,!0,zf,Qf,ha)}function Xr(e,t,n,r,i){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=td(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function Kt(e){return on(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function on(e){return!!(e&&e.__v_isReadonly)}function tt(e){return!!(e&&e.__v_isShallow)}function si(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function ii(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&Fo(e,"__v_skip",!0),e}const Me=e=>be(e)?Yr(e):e,oi=e=>be(e)?pa(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function re(e){return ga(e,!1)}function ma(e){return ga(e,!0)}function ga(e,t){return ve(e)?e:new rd(e,t)}class rd{constructor(t,n){this.dep=new Qs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:Me(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||tt(t)||on(t);t=r?t:ne(t),Wt(t,n)&&(this._rawValue=t,this._value=r?t:Me(t),this.dep.trigger())}}function V(e){return ve(e)?e.value:e}const sd={get:(e,t,n)=>t==="__v_raw"?e:V(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ve(i)&&!ve(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function _a(e){return Kt(e)?e:new Proxy(e,sd)}function id(e){const t=G(e)?new Array(e.length):{};for(const n in e)t[n]=ad(e,n);return t}class od{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Mf(ne(this._object),this._key)}}function ad(e,t,n){const r=e[t];return ve(r)?r:new od(e,t,n)}class ld{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Qs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return Yo(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 cd(e,t,n=!1){let r,i;return Z(e)?r=e:(r=e.get,i=e.set),new ld(r,i,n)}const Zr={},Jr=new WeakMap;let an;function ud(e,t=!1,n=an){if(n){let r=Jr.get(n);r||Jr.set(n,r=[]),r.push(e)}}function fd(e,t,n=fe){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=n,u=g=>i?g:tt(g)||i===!1||i===0?Ct(g,1):Ct(g);let c,f,d,_,v=!1,S=!1;if(ve(e)?(f=()=>e.value,v=tt(e)):Kt(e)?(f=()=>u(e),v=!0):G(e)?(S=!0,v=e.some(g=>Kt(g)||tt(g)),f=()=>e.map(g=>{if(ve(g))return g.value;if(Kt(g))return u(g);if(Z(g))return l?l(g,2):g()})):Z(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){It();try{d()}finally{St()}}const g=an;an=c;try{return l?l(e,3,[_]):e(_)}finally{an=g}}:f=ut,t&&i){const g=f,O=i===!0?1/0:i;f=()=>Ct(g(),O)}const T=Vo(),E=()=>{c.stop(),T&&Hs(T.effects,c)};if(s&&t){const g=t;t=(...O)=>{g(...O),E()}}let L=S?new Array(e.length).fill(Zr):Zr;const y=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const O=c.run();if(i||v||(S?O.some((C,A)=>Wt(C,L[A])):Wt(O,L))){d&&d();const C=an;an=c;try{const A=[O,L===Zr?void 0:S&&L[0]===Zr?[]:L,_];l?l(t,3,A):t(...A),L=O}finally{an=C}}}else c.run()};return a&&a(y),c=new Bo(f),c.scheduler=o?()=>o(y,!1):y,_=g=>ud(g,!1,c),d=c.onStop=()=>{const g=Jr.get(c);if(g){if(l)l(g,4);else for(const O of g)O();Jr.delete(c)}},t?r?y(!0):L=c.run():o?o(y.bind(null,!0),!0):c.run(),E.pause=c.pause.bind(c),E.resume=c.resume.bind(c),E.stop=E,E}function Ct(e,t=1/0,n){if(t<=0||!be(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ve(e))Ct(e.value,t,n);else if(G(e))for(let r=0;r<e.length;r++)Ct(e[r],t,n);else if(Ro(e)||Ln(e))e.forEach(r=>{Ct(r,t,n)});else if(Do(e)){for(const r in e)Ct(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ct(e[r],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.
|
|
9
|
+
**/let $e;class jo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$e,!t&&$e&&(this.index=($e.scopes||($e.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=$e;try{return $e=this,t()}finally{$e=n}}}on(){$e=this}off(){$e=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Ds(e){return new jo(e)}function Fo(){return $e}function cf(e,t=!1){$e&&$e.cleanups.push(e)}let fe;const js=new WeakSet;class Uo{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,$e&&$e.active&&$e.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,js.has(this)&&(js.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ho(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Go(this),zo(this);const t=fe,n=nt;fe=this,nt=!0;try{return this.fn()}finally{Ko(this),fe=t,nt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Hs(t);this.deps=this.depsTail=void 0,Go(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?js.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ws(this)&&this.run()}get dirty(){return Ws(this)}}let Wo=0,Un,Wn;function Ho(e,t=!1){if(e.flags|=8,t){e.next=Wn,Wn=e;return}e.next=Un,Un=e}function Fs(){Wo++}function Us(){if(--Wo>0)return;if(Wn){let t=Wn;for(Wn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Un;){let t=Un;for(Un=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function zo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ko(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Hs(r),uf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ws(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Hn))return;e.globalVersion=Hn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Ws(e)){e.flags&=-3;return}const n=fe,r=nt;fe=e,nt=!0;try{zo(e);const s=e.fn(e._value);(t.version===0||Mt(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{fe=n,nt=r,Ko(e),e.flags&=-3}}function Hs(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)Hs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function uf(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 Bo=[];function yt(){Bo.push(nt),nt=!1}function vt(){const e=Bo.pop();nt=e===void 0?!0:e}function Go(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let Hn=0;class ff{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(!fe||!nt||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new ff(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,Zo(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=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,Hn++,this.notify(t)}notify(t){Fs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Us()}}}function Zo(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)Zo(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Rr=new WeakMap,Yt=Symbol(""),Ks=Symbol(""),zn=Symbol("");function Le(e,t,n){if(nt&&fe){let r=Rr.get(e);r||Rr.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 wt(e,t,n,r,s,i){const o=Rr.get(e);if(!o){Hn++;return}const a=l=>{l&&l.trigger()};if(Fs(),t==="clear")o.forEach(a);else{const l=z(e),u=l&&Rs(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===zn||!Nt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(zn)),t){case"add":l?u&&a(o.get("length")):(a(o.get(Yt)),bn(e)&&a(o.get(Ks)));break;case"delete":l||(a(o.get(Yt)),bn(e)&&a(o.get(Ks)));break;case"set":bn(e)&&a(o.get(Yt));break}}Us()}function df(e,t){const n=Rr.get(e);return n&&n.get(t)}function yn(e){const t=q(e);return t===e?t:(Le(t,"iterate",zn),Xe(e)?t:t.map(Pe))}function Nr(e){return Le(e=q(e),"iterate",zn),e}const hf={__proto__:null,[Symbol.iterator](){return Vs(this,Symbol.iterator,Pe)},concat(...e){return yn(this).concat(...e.map(t=>z(t)?yn(t):t))},entries(){return Vs(this,"entries",e=>(e[1]=Pe(e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,n=>n.map(Pe),arguments)},find(e,t){return kt(this,"find",e,t,Pe,arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,Pe,arguments)},findLastIndex(e,t){return kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Bs(this,"includes",e)},indexOf(...e){return Bs(this,"indexOf",e)},join(e){return yn(this).join(e)},lastIndexOf(...e){return Bs(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return Kn(this,"pop")},push(...e){return Kn(this,"push",e)},reduce(e,...t){return Yo(this,"reduce",e,t)},reduceRight(e,...t){return Yo(this,"reduceRight",e,t)},shift(){return Kn(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return Kn(this,"splice",e)},toReversed(){return yn(this).toReversed()},toSorted(e){return yn(this).toSorted(e)},toSpliced(...e){return yn(this).toSpliced(...e)},unshift(...e){return Kn(this,"unshift",e)},values(){return Vs(this,"values",Pe)}};function Vs(e,t,n){const r=Nr(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 pf=Array.prototype;function kt(e,t,n,r,s,i){const o=Nr(e),a=o!==e&&!Xe(e),l=o[t];if(l!==pf[t]){const f=l.apply(e,i);return a?Pe(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Pe(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 Yo(e,t,n,r){const s=Nr(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,Pe(a),l,e)}),s[t](i,...r)}function Bs(e,t,n){const r=q(e);Le(r,"iterate",zn);const s=r[t](...n);return(s===-1||s===!1)&&Zs(n[0])?(n[0]=q(n[0]),r[t](...n)):s}function Kn(e,t,n=[]){yt(),Fs();const r=q(e)[t].apply(e,n);return Us(),vt(),r}const mf=As("__proto__,__v_isRef,__isVue"),Xo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nt));function gf(e){Nt(e)||(e=String(e));const t=q(this);return Le(t,"has",e),t.hasOwnProperty(e)}class Jo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){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?ra:na:i?ta:ea).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=z(t);if(!s){let l;if(o&&(l=hf[n]))return l;if(n==="hasOwnProperty")return gf}const a=Reflect.get(t,n,be(t)?t:r);return(Nt(n)?Xo.has(n):mf(n))||(s||Le(t,"get",n),i)?a:be(a)?o&&Rs(n)?a:a.value:ge(a)?s?sa(a):jr(a):a}}class qo extends Jo{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=Xt(i);if(!Xe(r)&&!Xt(r)&&(i=q(i),r=q(r)),!z(t)&&be(i)&&!be(r))return l?!1:(i.value=r,!0)}const o=z(t)&&Rs(n)?Number(n)<t.length:se(t,n),a=Reflect.set(t,n,r,be(t)?t:s);return t===q(s)&&(o?Mt(r,i)&&wt(t,"set",n,r):wt(t,"add",n,r)),a}deleteProperty(t,n){const r=se(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&wt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Nt(n)||!Xo.has(n))&&Le(t,"has",n),r}ownKeys(t){return Le(t,"iterate",z(t)?"length":Yt),Reflect.ownKeys(t)}}class Qo extends Jo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const _f=new qo,bf=new Qo,yf=new qo(!0),vf=new Qo(!0),Gs=e=>e,$r=e=>Reflect.getPrototypeOf(e);function wf(e,t,n){return function(...r){const s=this.__v_raw,i=q(s),o=bn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Gs:t?Xs:Pe;return!t&&Le(i,"iterate",l?Ks:Yt),{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 Mr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function kf(e,t){const n={get(s){const i=this.__v_raw,o=q(i),a=q(s);e||(Mt(s,a)&&Le(o,"get",s),Le(o,"get",a));const{has:l}=$r(o),u=t?Gs:e?Xs:Pe;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&&Le(q(s),"iterate",Yt),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=q(i),a=q(s);return e||(Mt(s,a)&&Le(o,"has",s),Le(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=q(a),u=t?Gs:e?Xs:Pe;return!e&&Le(l,"iterate",Yt),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Ee(n,e?{add:Mr("add"),set:Mr("set"),delete:Mr("delete"),clear:Mr("clear")}:{add(s){!t&&!Xe(s)&&!Xt(s)&&(s=q(s));const i=q(this);return $r(i).has.call(i,s)||(i.add(s),wt(i,"add",s,s)),this},set(s,i){!t&&!Xe(i)&&!Xt(i)&&(i=q(i));const o=q(this),{has:a,get:l}=$r(o);let u=a.call(o,s);u||(s=q(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Mt(i,c)&&wt(o,"set",s,i):wt(o,"add",s,i),this},delete(s){const i=q(this),{has:o,get:a}=$r(i);let l=o.call(i,s);l||(s=q(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&wt(i,"delete",s,void 0),u},clear(){const s=q(this),i=s.size!==0,o=s.clear();return i&&wt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=wf(s,e,t)}),n}function Dr(e,t){const n=kf(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(se(n,s)&&s in r?n:r,s,i)}const Tf={get:Dr(!1,!1)},If={get:Dr(!1,!0)},Ef={get:Dr(!0,!1)},xf={get:Dr(!0,!0)},ea=new WeakMap,ta=new WeakMap,na=new WeakMap,ra=new WeakMap;function Sf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Of(e){return e.__v_skip||!Object.isExtensible(e)?0:Sf(ef(e))}function jr(e){return Xt(e)?e:Fr(e,!1,_f,Tf,ea)}function Cf(e){return Fr(e,!1,yf,If,ta)}function sa(e){return Fr(e,!0,bf,Ef,na)}function ow(e){return Fr(e,!0,vf,xf,ra)}function Fr(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Of(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Dt(e){return Xt(e)?Dt(e.__v_raw):!!(e&&e.__v_isReactive)}function Xt(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function Zs(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Ys(e){return!se(e,"__v_skip")&&Object.isExtensible(e)&&Ro(e,"__v_skip",!0),e}const Pe=e=>ge(e)?jr(e):e,Xs=e=>ge(e)?sa(e):e;function be(e){return e?e.__v_isRef===!0:!1}function te(e){return ia(e,!1)}function Af(e){return ia(e,!0)}function ia(e,t){return be(e)?e:new Lf(e,t)}class Lf{constructor(t,n){this.dep=new zs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:q(t),this._value=n?t:Pe(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)||Xt(t);t=r?t:q(t),Mt(t,n)&&(this._rawValue=t,this._value=r?t:Pe(t),this.dep.trigger())}}function H(e){return be(e)?e.value:e}const Pf={get:(e,t,n)=>t==="__v_raw"?e:H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return be(s)&&!be(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function oa(e){return Dt(e)?e:new Proxy(e,Pf)}function Rf(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=$f(e,n);return t}class Nf{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 df(q(this._object),this._key)}}function $f(e,t,n){const r=e[t];return be(r)?r:new Nf(e,t,n)}class Mf{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=Hn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return Ho(this,!0),!0}get value(){const t=this.dep.track();return Vo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Df(e,t,n=!1){let r,s;return K(e)?r=e:(r=e.get,s=e.set),new Mf(r,s,n)}const Ur={},Wr=new WeakMap;let Jt;function jf(e,t=!1,n=Jt){if(n){let r=Wr.get(n);r||Wr.set(n,r=[]),r.push(e)}}function Ff(e,t,n=ue){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=_=>s?_:Xe(_)||s===!1||s===0?Tt(_,1):Tt(_);let c,f,d,m,y=!1,T=!1;if(be(e)?(f=()=>e.value,y=Xe(e)):Dt(e)?(f=()=>u(e),y=!0):z(e)?(T=!0,y=e.some(_=>Dt(_)||Xe(_)),f=()=>e.map(_=>{if(be(_))return _.value;if(Dt(_))return u(_);if(K(_))return l?l(_,2):_()})):K(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){yt();try{d()}finally{vt()}}const _=Jt;Jt=c;try{return l?l(e,3,[m]):e(m)}finally{Jt=_}}:f=it,t&&s){const _=f,C=s===!0?1/0:s;f=()=>Tt(_(),C)}const E=Fo(),g=()=>{c.stop(),E&&Ps(E.effects,c)};if(i&&t){const _=t;t=(...C)=>{_(...C),g()}}let v=T?new Array(e.length).fill(Ur):Ur;const x=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const C=c.run();if(s||y||(T?C.some(($,L)=>Mt($,v[L])):Mt(C,v))){d&&d();const $=Jt;Jt=c;try{const L=[C,v===Ur?void 0:T&&v[0]===Ur?[]:v,m];l?l(t,3,L):t(...L),v=C}finally{Jt=$}}}else c.run()};return a&&a(x),c=new Uo(f),c.scheduler=o?()=>o(x,!1):x,m=_=>jf(_,!1,c),d=c.onStop=()=>{const _=Wr.get(c);if(_){if(l)l(_,4);else for(const C of _)C();Wr.delete(c)}},t?r?x(!0):v=c.run():o?o(x.bind(null,!0),!0):c.run(),g.pause=c.pause.bind(c),g.resume=c.resume.bind(c),g.stop=g,g}function Tt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,be(e))Tt(e.value,t,n);else if(z(e))for(let r=0;r<e.length;r++)Tt(e[r],t,n);else if(Co(e)||bn(e))e.forEach(r=>{Tt(r,t,n)});else if(Po(e)){for(const r in e)Tt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Tt(e[r],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.12
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const
|
|
14
|
-
`),
|
|
15
|
-
`,...
|
|
16
|
-
`],...pd(n))}),t}function pd({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${dl(e.component,e.type,r)}`,s=">"+n;return e.props?[i,...md(e.props),s]:[i+s]}function md(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...ba(r,e[r]))}),n.length>3&&t.push(" ..."),t}function ba(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ve(t)?(t=ba(e,ne(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ne(t),n?t:[`${e}=`,t])}function Nn(e,t,n,r){try{return r?e(...r):e()}catch(i){qr(i,t,n)}}function ft(e,t,n,r){if(Z(e)){const i=Nn(e,t,n,r);return i&&$o(i)&&i.catch(s=>{qr(s,t,n)}),i}if(G(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ft(e[s],t,n,r));return i}}function qr(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||fe;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(s){It(),Nn(s,null,10,[e,l,u]),St();return}}gd(e,n,i,r,o)}function gd(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Ue=[];let dt=-1;const Pn=[];let zt=null,Rn=0;const ya=Promise.resolve();let Qr=null;function va(e){const t=Qr||ya;return e?t.then(this?e.bind(this):e):t}function _d(e){let t=dt+1,n=Ue.length;for(;t<n;){const r=t+n>>>1,i=Ue[r],s=rr(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function li(e){if(!(e.flags&1)){const t=rr(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=rr(n)?Ue.push(e):Ue.splice(_d(t),0,e),e.flags|=1,wa()}}function wa(){Qr||(Qr=ya.then(Ea))}function bd(e){G(e)?Pn.push(...e):zt&&e.id===-1?zt.splice(Rn+1,0,e):e.flags&1||(Pn.push(e),e.flags|=1),wa()}function ka(e,t,n=dt+1){for(;n<Ue.length;n++){const r=Ue[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ue.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ta(e){if(Pn.length){const t=[...new Set(Pn)].sort((n,r)=>rr(n)-rr(r));if(Pn.length=0,zt){zt.push(...t);return}for(zt=t,Rn=0;Rn<zt.length;Rn++){const n=zt[Rn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}zt=null,Rn=0}}const rr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ea(e){try{for(dt=0;dt<Ue.length;dt++){const t=Ue[dt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Nn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;dt<Ue.length;dt++){const t=Ue[dt];t&&(t.flags&=-2)}dt=-1,Ue.length=0,Ta(),Qr=null,(Ue.length||Pn.length)&&Ea()}}let We=null,Ia=null;function es(e){const t=We;return We=e,Ia=e&&e.type.__scopeId||null,t}function yd(e,t=We,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&rl(-1);const s=es(t);let o;try{o=e(...i)}finally{es(s),r._d&&rl(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function vd(e,t){if(We===null)return e;const n=cs(We),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,a,l=fe]=t[i];s&&(Z(s)&&(s={mounted:s,updated:s}),s.deep&&Ct(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function ln(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];s&&(a.oldValue=s[o].value);let l=a.dir[r];l&&(It(),ft(l,n,8,[e.el,a,e,t]),St())}}const wd=Symbol("_vte"),kd=e=>e.__isTeleport;function ci(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ci(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function ht(e,t){return Z(e)?Pe({name:e.name},t,{setup:e}):e}function Sa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ui(e,t,n,r,i=!1){if(G(e)){e.forEach((v,S)=>ui(v,t&&(G(t)?t[S]:t),n,r,i));return}if(sr(r)&&!i)return;const s=r.shapeFlag&4?cs(r.component):r.el,o=i?null:s,{i:a,r:l}=e,u=t&&t.r,c=a.refs===fe?a.refs={}:a.refs,f=a.setupState,d=ne(f),_=f===fe?()=>!1:v=>ae(d,v);if(u!=null&&u!==l&&(ke(u)?(c[u]=null,_(u)&&(f[u]=null)):ve(u)&&(u.value=null)),Z(l))Nn(l,a,12,[o,c]);else{const v=ke(l),S=ve(l);if(v||S){const T=()=>{if(e.f){const E=v?_(l)?f[l]:c[l]:l.value;i?G(E)&&Hs(E,s):G(E)?E.includes(s)||E.push(s):v?(c[l]=[s],_(l)&&(f[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else v?(c[l]=o,_(l)&&(f[l]=o)):S&&(l.value=o,e.k&&(c[e.k]=o))};o?(T.id=-1,Ye(T,n)):T()}}}const sr=e=>!!e.type.__asyncLoader,Oa=e=>e.type.__isKeepAlive;function Td(e,t){xa(e,"a",t)}function Ed(e,t){xa(e,"da",t)}function xa(e,t,n=Ce){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ts(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Oa(i.parent.vnode)&&Id(r,t,n,i),i=i.parent}}function Id(e,t,n,r){const i=ts(t,e,r,!0);fi(()=>{Hs(r[t],i)},n)}function ts(e,t,n=Ce,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{It();const a=dr(n),l=ft(t,n,e,o);return a(),St(),l});return r?i.unshift(s):i.push(s),s}}const Lt=e=>(t,n=Ce)=>{(!ls||e==="sp")&&ts(e,(...r)=>t(...r),n)},Ca=Lt("bm"),ns=Lt("m"),Sd=Lt("bu"),Od=Lt("u"),La=Lt("bum"),fi=Lt("um"),xd=Lt("sp"),Cd=Lt("rtg"),Ld=Lt("rtc");function Ad(e,t=Ce){ts("ec",e,t)}const Nd="components";function Pd(e,t){return $d(Nd,e,!0,t)||e}const Rd=Symbol.for("v-ndc");function $d(e,t,n=!0,r=!1){const i=We||Ce;if(i){const s=i.type;{const a=fl(s,!1);if(a&&(a===t||a===et(t)||a===$r(et(t))))return s}const o=Aa(i[e]||s[e],t)||Aa(i.appContext[e],t);return!o&&r?s:o}}function Aa(e,t){return e&&(e[t]||e[et(t)]||e[$r(et(t))])}function Na(e,t,n,r){let i;const s=n,o=G(e);if(o||ke(e)){const a=o&&Kt(e);let l=!1;a&&(l=!tt(e),e=Ur(e)),i=new Array(e.length);for(let u=0,c=e.length;u<c;u++)i[u]=t(l?Me(e[u]):e[u],u,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,s)}else if(be(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=t(e[c],c,l,s)}}else i=[];return i}const di=e=>e?al(e)?cs(e):di(e.parent):null,ir=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>di(e.parent),$root:e=>di(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mi(e),$forceUpdate:e=>e.f||(e.f=()=>{li(e.update)}),$nextTick:e=>e.n||(e.n=va.bind(e.proxy)),$watch:e=>sh.bind(e)}),hi=(e,t)=>e!==fe&&!e.__isScriptSetup&&ae(e,t),Md={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const _=o[t];if(_!==void 0)switch(_){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(hi(r,t))return o[t]=1,r[t];if(i!==fe&&ae(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&ae(u,t))return o[t]=3,s[t];if(n!==fe&&ae(n,t))return o[t]=4,n[t];pi&&(o[t]=0)}}const c=ir[t];let f,d;if(c)return t==="$attrs"&&$e(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==fe&&ae(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,ae(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return hi(i,t)?(i[t]=n,!0):r!==fe&&ae(r,t)?(r[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==fe&&ae(e,o)||hi(t,o)||(a=s[0])&&ae(a,o)||ae(r,o)||ae(ir,o)||ae(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Pa(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let pi=!0;function Dd(e){const t=mi(e),n=e.proxy,r=e.ctx;pi=!1,t.beforeCreate&&Ra(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:_,updated:v,activated:S,deactivated:T,beforeDestroy:E,beforeUnmount:L,destroyed:y,unmounted:g,render:O,renderTracked:C,renderTriggered:A,errorCaptured:N,serverPrefetch:P,expose:Y,inheritAttrs:te,components:z,directives:de,filters:Je}=t;if(u&&Fd(u,r,null),o)for(const q in o){const oe=o[q];Z(oe)&&(r[q]=oe.bind(n))}if(i){const q=i.call(n,n);be(q)&&(e.data=Yr(q))}if(pi=!0,s)for(const q in s){const oe=s[q],qe=Z(oe)?oe.bind(n,n):Z(oe.get)?oe.get.bind(n,n):ut,Tt=!Z(oe)&&Z(oe.set)?oe.set.bind(n):ut,Oe=Ke({get:qe,set:Tt});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:Ae=>Oe.value=Ae})}if(a)for(const q in a)$a(a[q],r,n,q);if(l){const q=Z(l)?l.call(n):l;Reflect.ownKeys(q).forEach(oe=>{zd(oe,q[oe])})}c&&Ra(c,e,"c");function ie(q,oe){G(oe)?oe.forEach(qe=>q(qe.bind(n))):oe&&q(oe.bind(n))}if(ie(Ca,f),ie(ns,d),ie(Sd,_),ie(Od,v),ie(Td,S),ie(Ed,T),ie(Ad,N),ie(Ld,C),ie(Cd,A),ie(La,L),ie(fi,g),ie(xd,P),G(Y))if(Y.length){const q=e.exposed||(e.exposed={});Y.forEach(oe=>{Object.defineProperty(q,oe,{get:()=>n[oe],set:qe=>n[oe]=qe})})}else e.exposed||(e.exposed={});O&&e.render===ut&&(e.render=O),te!=null&&(e.inheritAttrs=te),z&&(e.components=z),de&&(e.directives=de),P&&Sa(e)}function Fd(e,t,n=ut){G(e)&&(e=gi(e));for(const r in e){const i=e[r];let s;be(i)?"default"in i?s=Be(i.from||r,i.default,!0):s=Be(i.from||r):s=Be(i),ve(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function Ra(e,t,n){ft(G(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function $a(e,t,n,r){let i=r.includes(".")?Qa(n,r):()=>n[r];if(ke(e)){const s=t[e];Z(s)&&fn(i,s)}else if(Z(e))fn(i,e.bind(n));else if(be(e))if(G(e))e.forEach(s=>$a(s,t,n,r));else{const s=Z(e.handler)?e.handler.bind(n):t[e.handler];Z(s)&&fn(i,s,e)}}function mi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>rs(l,u,o,!0)),rs(l,t,o)),be(t)&&s.set(t,l),l}function rs(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&rs(e,s,n,!0),i&&i.forEach(o=>rs(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=jd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const jd={data:Ma,props:Da,emits:Da,methods:or,computed:or,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:or,directives:or,watch:Wd,provide:Ma,inject:Ud};function Ma(e,t){return t?e?function(){return Pe(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function Ud(e,t){return or(gi(e),gi(t))}function gi(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function He(e,t){return e?[...new Set([].concat(e,t))]:t}function or(e,t){return e?Pe(Object.create(null),e,t):t}function Da(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Pe(Object.create(null),Pa(e),Pa(t??{})):t}function Wd(e,t){if(!e)return t;if(!t)return e;const n=Pe(Object.create(null),e);for(const r in t)n[r]=He(e[r],t[r]);return n}function Fa(){return{app:null,config:{isNativeTag:Tf,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Hd=0;function Kd(e,t){return function(r,i=null){Z(r)||(r=Pe({},r)),i!=null&&!be(i)&&(i=null);const s=Fa(),o=new WeakSet,a=[];let l=!1;const u=s.app={_uid:Hd++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Sh,get config(){return s.config},set config(c){},use(c,...f){return o.has(c)||(c&&Z(c.install)?(o.add(c),c.install(u,...f)):Z(c)&&(o.add(c),c(u,...f))),u},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,f){return f?(s.components[c]=f,u):s.components[c]},directive(c,f){return f?(s.directives[c]=f,u):s.directives[c]},mount(c,f,d){if(!l){const _=u._ceVNode||Te(r,i);return _.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(_,c):e(_,c,d),l=!0,u._container=c,c.__vue_app__=u,cs(_.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ft(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return s.provides[c]=f,u},runWithContext(c){const f=cn;cn=u;try{return c()}finally{cn=f}}};return u}}let cn=null;function zd(e,t){if(Ce){let n=Ce.provides;const r=Ce.parent&&Ce.parent.provides;r===n&&(n=Ce.provides=Object.create(r)),n[e]=t}}function Be(e,t,n=!1){const r=Ce||We;if(r||cn){const i=cn?cn._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Z(t)?t.call(r&&r.proxy):t}}function Vd(){return!!(Ce||We||cn)}const ja={},Ua=()=>Object.create(ja),Wa=e=>Object.getPrototypeOf(e)===ja;function Bd(e,t,n,r=!1){const i={},s=Ua();e.propsDefaults=Object.create(null),Ha(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:nd(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Gd(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=ne(i),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(ss(e.emitsOptions,d))continue;const _=t[d];if(l)if(ae(s,d))_!==s[d]&&(s[d]=_,u=!0);else{const v=et(d);i[v]=_i(l,a,v,_,e,!1)}else _!==s[d]&&(s[d]=_,u=!0)}}}else{Ha(e,t,i,s)&&(u=!0);let c;for(const f in a)(!t||!ae(t,f)&&((c=Ut(f))===f||!ae(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=_i(l,a,f,void 0,e,!0)):delete i[f]);if(s!==a)for(const f in s)(!t||!ae(t,f))&&(delete s[f],u=!0)}u&&Ot(e.attrs,"set","")}function Ha(e,t,n,r){const[i,s]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Zn(l))continue;const u=t[l];let c;i&&ae(i,c=et(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:ss(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(s){const l=ne(n),u=a||fe;for(let c=0;c<s.length;c++){const f=s[c];n[f]=_i(i,l,f,u[f],e,!ae(u,f))}}return o}function _i(e,t,n,r,i,s){const o=e[n];if(o!=null){const a=ae(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Z(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=dr(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}o[0]&&(s&&!a?r=!1:o[1]&&(r===""||r===Ut(n))&&(r=!0))}return r}const Yd=new WeakMap;function Ka(e,t,n=!1){const r=n?Yd:t.propsCache,i=r.get(e);if(i)return i;const s=e.props,o={},a=[];let l=!1;if(!Z(e)){const c=f=>{l=!0;const[d,_]=Ka(f,t,!0);Pe(o,d),_&&a.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return be(e)&&r.set(e,Cn),Cn;if(G(s))for(let c=0;c<s.length;c++){const f=et(s[c]);za(f)&&(o[f]=fe)}else if(s)for(const c in s){const f=et(c);if(za(f)){const d=s[c],_=o[f]=G(d)||Z(d)?{type:d}:Pe({},d),v=_.type;let S=!1,T=!0;if(G(v))for(let E=0;E<v.length;++E){const L=v[E],y=Z(L)&&L.name;if(y==="Boolean"){S=!0;break}else y==="String"&&(T=!1)}else S=Z(v)&&v.name==="Boolean";_[0]=S,_[1]=T,(S||ae(_,"default"))&&a.push(f)}}const u=[o,a];return be(e)&&r.set(e,u),u}function za(e){return e[0]!=="$"&&!Zn(e)}const Va=e=>e[0]==="_"||e==="$stable",bi=e=>G(e)?e.map(pt):[pt(e)],Xd=(e,t,n)=>{if(t._n)return t;const r=yd((...i)=>bi(t(...i)),n);return r._c=!1,r},Ba=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Va(i))continue;const s=e[i];if(Z(s))t[i]=Xd(i,s,r);else if(s!=null){const o=bi(s);t[i]=()=>o}}},Ga=(e,t)=>{const n=bi(t);e.slots.default=()=>n},Ya=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Zd=(e,t,n)=>{const r=e.slots=Ua();if(e.vnode.shapeFlag&32){const i=t._;i?(Ya(r,t,n),n&&Fo(r,"_",i,!0)):Ba(t,r)}else t&&Ga(e,t)},Jd=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=fe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:Ya(i,t,n):(s=!t.$stable,Ba(t,i)),o=t}else t&&(Ga(e,t),o={default:1});if(s)for(const a in i)!Va(a)&&o[a]==null&&delete i[a]},Ye=fh;function qd(e){return Qd(e)}function Qd(e,t){const n=Uo();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:_=ut,insertStaticContent:v}=e,S=(b,m,I,F=null,R=null,M=null,U=void 0,h=null,p=!!m.dynamicChildren)=>{if(b===m)return;b&&!ur(b,m)&&(F=Dt(b),Ae(b,R,M,!0),b=null),m.patchFlag===-2&&(p=!1,m.dynamicChildren=null);const{type:w,ref:$,shapeFlag:j}=m;switch(w){case ar:T(b,m,I,F);break;case dn:E(b,m,I,F);break;case wi:b==null&&L(m,I,F,U);break;case xe:z(b,m,I,F,R,M,U,h,p);break;default:j&1?O(b,m,I,F,R,M,U,h,p):j&6?de(b,m,I,F,R,M,U,h,p):(j&64||j&128)&&w.process(b,m,I,F,R,M,U,h,p,it)}$!=null&&R&&ui($,b&&b.ref,M,m||b,!m)},T=(b,m,I,F)=>{if(b==null)r(m.el=a(m.children),I,F);else{const R=m.el=b.el;m.children!==b.children&&u(R,m.children)}},E=(b,m,I,F)=>{b==null?r(m.el=l(m.children||""),I,F):m.el=b.el},L=(b,m,I,F)=>{[b.el,b.anchor]=v(b.children,m,I,F,b.el,b.anchor)},y=({el:b,anchor:m},I,F)=>{let R;for(;b&&b!==m;)R=d(b),r(b,I,F),b=R;r(m,I,F)},g=({el:b,anchor:m})=>{let I;for(;b&&b!==m;)I=d(b),i(b),b=I;i(m)},O=(b,m,I,F,R,M,U,h,p)=>{m.type==="svg"?U="svg":m.type==="math"&&(U="mathml"),b==null?C(m,I,F,R,M,U,h,p):P(b,m,R,M,U,h,p)},C=(b,m,I,F,R,M,U,h)=>{let p,w;const{props:$,shapeFlag:j,transition:D,dirs:k}=b;if(p=b.el=o(b.type,M,$&&$.is,$),j&8?c(p,b.children):j&16&&N(b.children,p,null,F,R,yi(b,M),U,h),k&&ln(b,null,F,"created"),A(p,b,b.scopeId,U,F),$){for(const H in $)H!=="value"&&!Zn(H)&&s(p,H,null,$[H],M,F);"value"in $&&s(p,"value",null,$.value,M),(w=$.onVnodeBeforeMount)&&mt(w,F,b)}k&&ln(b,null,F,"beforeMount");const x=eh(R,D);x&&D.beforeEnter(p),r(p,m,I),((w=$&&$.onVnodeMounted)||x||k)&&Ye(()=>{w&&mt(w,F,b),x&&D.enter(p),k&&ln(b,null,F,"mounted")},R)},A=(b,m,I,F,R)=>{if(I&&_(b,I),F)for(let M=0;M<F.length;M++)_(b,F[M]);if(R){let M=R.subTree;if(m===M||nl(M.type)&&(M.ssContent===m||M.ssFallback===m)){const U=R.vnode;A(b,U,U.scopeId,U.slotScopeIds,R.parent)}}},N=(b,m,I,F,R,M,U,h,p=0)=>{for(let w=p;w<b.length;w++){const $=b[w]=h?Bt(b[w]):pt(b[w]);S(null,$,m,I,F,R,M,U,h)}},P=(b,m,I,F,R,M,U)=>{const h=m.el=b.el;let{patchFlag:p,dynamicChildren:w,dirs:$}=m;p|=b.patchFlag&16;const j=b.props||fe,D=m.props||fe;let k;if(I&&un(I,!1),(k=D.onVnodeBeforeUpdate)&&mt(k,I,m,b),$&&ln(m,b,I,"beforeUpdate"),I&&un(I,!0),(j.innerHTML&&D.innerHTML==null||j.textContent&&D.textContent==null)&&c(h,""),w?Y(b.dynamicChildren,w,h,I,F,yi(m,R),M):U||oe(b,m,h,null,I,F,yi(m,R),M,!1),p>0){if(p&16)te(h,j,D,I,R);else if(p&2&&j.class!==D.class&&s(h,"class",null,D.class,R),p&4&&s(h,"style",j.style,D.style,R),p&8){const x=m.dynamicProps;for(let H=0;H<x.length;H++){const K=x[H],we=j[K],Ee=D[K];(Ee!==we||K==="value")&&s(h,K,we,Ee,R,I)}}p&1&&b.children!==m.children&&c(h,m.children)}else!U&&w==null&&te(h,j,D,I,R);((k=D.onVnodeUpdated)||$)&&Ye(()=>{k&&mt(k,I,m,b),$&&ln(m,b,I,"updated")},F)},Y=(b,m,I,F,R,M,U)=>{for(let h=0;h<m.length;h++){const p=b[h],w=m[h],$=p.el&&(p.type===xe||!ur(p,w)||p.shapeFlag&70)?f(p.el):I;S(p,w,$,null,F,R,M,U,!0)}},te=(b,m,I,F,R)=>{if(m!==I){if(m!==fe)for(const M in m)!Zn(M)&&!(M in I)&&s(b,M,m[M],null,R,F);for(const M in I){if(Zn(M))continue;const U=I[M],h=m[M];U!==h&&M!=="value"&&s(b,M,h,U,R,F)}"value"in I&&s(b,"value",m.value,I.value,R)}},z=(b,m,I,F,R,M,U,h,p)=>{const w=m.el=b?b.el:a(""),$=m.anchor=b?b.anchor:a("");let{patchFlag:j,dynamicChildren:D,slotScopeIds:k}=m;k&&(h=h?h.concat(k):k),b==null?(r(w,I,F),r($,I,F),N(m.children||[],I,$,R,M,U,h,p)):j>0&&j&64&&D&&b.dynamicChildren?(Y(b.dynamicChildren,D,I,R,M,U,h),(m.key!=null||R&&m===R.subTree)&&Xa(b,m,!0)):oe(b,m,I,$,R,M,U,h,p)},de=(b,m,I,F,R,M,U,h,p)=>{m.slotScopeIds=h,b==null?m.shapeFlag&512?R.ctx.activate(m,I,F,U,p):Je(m,I,F,R,M,U,p):kt(b,m,p)},Je=(b,m,I,F,R,M,U)=>{const h=b.component=bh(b,F,R);if(Oa(b)&&(h.ctx.renderer=it),yh(h,!1,U),h.asyncDep){if(R&&R.registerDep(h,ie,U),!b.el){const p=h.subTree=Te(dn);E(null,p,m,I)}}else ie(h,b,m,I,R,M,U)},kt=(b,m,I)=>{const F=m.component=b.component;if(ch(b,m,I))if(F.asyncDep&&!F.asyncResolved){q(F,m,I);return}else F.next=m,F.update();else m.el=b.el,F.vnode=m},ie=(b,m,I,F,R,M,U)=>{const h=()=>{if(b.isMounted){let{next:j,bu:D,u:k,parent:x,vnode:H}=b;{const Ve=Za(b);if(Ve){j&&(j.el=H.el,q(b,j,U)),Ve.asyncDep.then(()=>{b.isUnmounted||h()});return}}let K=j,we;un(b,!1),j?(j.el=H.el,q(b,j,U)):j=H,D&&Mr(D),(we=j.props&&j.props.onVnodeBeforeUpdate)&&mt(we,x,j,H),un(b,!0);const Ee=vi(b),Ne=b.subTree;b.subTree=Ee,S(Ne,Ee,f(Ne.el),Dt(Ne),b,R,M),j.el=Ee.el,K===null&&uh(b,Ee.el),k&&Ye(k,R),(we=j.props&&j.props.onVnodeUpdated)&&Ye(()=>mt(we,x,j,H),R)}else{let j;const{el:D,props:k}=m,{bm:x,m:H,parent:K,root:we,type:Ee}=b,Ne=sr(m);if(un(b,!1),x&&Mr(x),!Ne&&(j=k&&k.onVnodeBeforeMount)&&mt(j,K,m),un(b,!0),D&&rn){const Ve=()=>{b.subTree=vi(b),rn(D,b.subTree,b,R,null)};Ne&&Ee.__asyncHydrate?Ee.__asyncHydrate(D,b,Ve):Ve()}else{we.ce&&we.ce._injectChildStyle(Ee);const Ve=b.subTree=vi(b);S(null,Ve,I,F,b,R,M),m.el=Ve.el}if(H&&Ye(H,R),!Ne&&(j=k&&k.onVnodeMounted)){const Ve=m;Ye(()=>mt(j,K,Ve),R)}(m.shapeFlag&256||K&&sr(K.vnode)&&K.vnode.shapeFlag&256)&&b.a&&Ye(b.a,R),b.isMounted=!0,m=I=F=null}};b.scope.on();const p=b.effect=new Bo(h);b.scope.off();const w=b.update=p.run.bind(p),$=b.job=p.runIfDirty.bind(p);$.i=b,$.id=b.uid,p.scheduler=()=>li($),un(b,!0),w()},q=(b,m,I)=>{m.component=b;const F=b.vnode.props;b.vnode=m,b.next=null,Gd(b,m.props,F,I),Jd(b,m.children,I),It(),ka(b),St()},oe=(b,m,I,F,R,M,U,h,p=!1)=>{const w=b&&b.children,$=b?b.shapeFlag:0,j=m.children,{patchFlag:D,shapeFlag:k}=m;if(D>0){if(D&128){Tt(w,j,I,F,R,M,U,h,p);return}else if(D&256){qe(w,j,I,F,R,M,U,h,p);return}}k&8?($&16&&ct(w,R,M),j!==w&&c(I,j)):$&16?k&16?Tt(w,j,I,F,R,M,U,h,p):ct(w,R,M,!0):($&8&&c(I,""),k&16&&N(j,I,F,R,M,U,h,p))},qe=(b,m,I,F,R,M,U,h,p)=>{b=b||Cn,m=m||Cn;const w=b.length,$=m.length,j=Math.min(w,$);let D;for(D=0;D<j;D++){const k=m[D]=p?Bt(m[D]):pt(m[D]);S(b[D],k,I,null,R,M,U,h,p)}w>$?ct(b,R,M,!0,!1,j):N(m,I,F,R,M,U,h,p,j)},Tt=(b,m,I,F,R,M,U,h,p)=>{let w=0;const $=m.length;let j=b.length-1,D=$-1;for(;w<=j&&w<=D;){const k=b[w],x=m[w]=p?Bt(m[w]):pt(m[w]);if(ur(k,x))S(k,x,I,null,R,M,U,h,p);else break;w++}for(;w<=j&&w<=D;){const k=b[j],x=m[D]=p?Bt(m[D]):pt(m[D]);if(ur(k,x))S(k,x,I,null,R,M,U,h,p);else break;j--,D--}if(w>j){if(w<=D){const k=D+1,x=k<$?m[k].el:F;for(;w<=D;)S(null,m[w]=p?Bt(m[w]):pt(m[w]),I,x,R,M,U,h,p),w++}}else if(w>D)for(;w<=j;)Ae(b[w],R,M,!0),w++;else{const k=w,x=w,H=new Map;for(w=x;w<=D;w++){const Qe=m[w]=p?Bt(m[w]):pt(m[w]);Qe.key!=null&&H.set(Qe.key,w)}let K,we=0;const Ee=D-x+1;let Ne=!1,Ve=0;const Xn=new Array(Ee);for(w=0;w<Ee;w++)Xn[w]=0;for(w=k;w<=j;w++){const Qe=b[w];if(we>=Ee){Ae(Qe,R,M,!0);continue}let Et;if(Qe.key!=null)Et=H.get(Qe.key);else for(K=x;K<=D;K++)if(Xn[K-x]===0&&ur(Qe,m[K])){Et=K;break}Et===void 0?Ae(Qe,R,M,!0):(Xn[Et-x]=w+1,Et>=Ve?Ve=Et:Ne=!0,S(Qe,m[Et],I,null,R,M,U,h,p),we++)}const wf=Ne?th(Xn):Cn;for(K=wf.length-1,w=Ee-1;w>=0;w--){const Qe=x+w,Et=m[Qe],kf=Qe+1<$?m[Qe+1].el:F;Xn[w]===0?S(null,Et,I,kf,R,M,U,h,p):Ne&&(K<0||w!==wf[K]?Oe(Et,I,kf,2):K--)}}},Oe=(b,m,I,F,R=null)=>{const{el:M,type:U,transition:h,children:p,shapeFlag:w}=b;if(w&6){Oe(b.component.subTree,m,I,F);return}if(w&128){b.suspense.move(m,I,F);return}if(w&64){U.move(b,m,I,it);return}if(U===xe){r(M,m,I);for(let j=0;j<p.length;j++)Oe(p[j],m,I,F);r(b.anchor,m,I);return}if(U===wi){y(b,m,I);return}if(F!==2&&w&1&&h)if(F===0)h.beforeEnter(M),r(M,m,I),Ye(()=>h.enter(M),R);else{const{leave:j,delayLeave:D,afterLeave:k}=h,x=()=>r(M,m,I),H=()=>{j(M,()=>{x(),k&&k()})};D?D(M,x,H):H()}else r(M,m,I)},Ae=(b,m,I,F=!1,R=!1)=>{const{type:M,props:U,ref:h,children:p,dynamicChildren:w,shapeFlag:$,patchFlag:j,dirs:D,cacheIndex:k}=b;if(j===-2&&(R=!1),h!=null&&ui(h,null,I,b,!0),k!=null&&(m.renderCache[k]=void 0),$&256){m.ctx.deactivate(b);return}const x=$&1&&D,H=!sr(b);let K;if(H&&(K=U&&U.onVnodeBeforeUnmount)&&mt(K,m,b),$&6)xn(b.component,I,F);else{if($&128){b.suspense.unmount(I,F);return}x&&ln(b,null,m,"beforeUnmount"),$&64?b.type.remove(b,m,I,it,F):w&&!w.hasOnce&&(M!==xe||j>0&&j&64)?ct(w,m,I,!1,!0):(M===xe&&j&384||!R&&$&16)&&ct(p,m,I),F&&Qt(b)}(H&&(K=U&&U.onVnodeUnmounted)||x)&&Ye(()=>{K&&mt(K,m,b),x&&ln(b,null,m,"unmounted")},I)},Qt=b=>{const{type:m,el:I,anchor:F,transition:R}=b;if(m===xe){en(I,F);return}if(m===wi){g(b);return}const M=()=>{i(I),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:U,delayLeave:h}=R,p=()=>U(I,M);h?h(b.el,M,p):p()}else M()},en=(b,m)=>{let I;for(;b!==m;)I=d(b),i(b),b=I;i(m)},xn=(b,m,I)=>{const{bum:F,scope:R,job:M,subTree:U,um:h,m:p,a:w}=b;Ja(p),Ja(w),F&&Mr(F),R.stop(),M&&(M.flags|=8,Ae(U,b,m,I)),h&&Ye(h,m),Ye(()=>{b.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},ct=(b,m,I,F=!1,R=!1,M=0)=>{for(let U=M;U<b.length;U++)Ae(b[U],m,I,F,R)},Dt=b=>{if(b.shapeFlag&6)return Dt(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const m=d(b.anchor||b.el),I=m&&m[wd];return I?d(I):m};let Ft=!1;const tn=(b,m,I)=>{b==null?m._vnode&&Ae(m._vnode,null,null,!0):S(m._vnode||null,b,m,null,null,null,I),m._vnode=b,Ft||(Ft=!0,ka(),Ta(),Ft=!1)},it={p:S,um:Ae,m:Oe,r:Qt,mt:Je,mc:N,pc:oe,pbc:Y,n:Dt,o:e};let nn,rn;return{render:tn,hydrate:nn,createApp:Kd(tn,nn)}}function yi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function un({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function eh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xa(e,t,n=!1){const r=e.children,i=t.children;if(G(r)&&G(i))for(let s=0;s<r.length;s++){const o=r[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Bt(i[s]),a.el=o.el),!n&&a.patchFlag!==-2&&Xa(o,a)),a.type===ar&&(a.el=o.el)}}function th(e){const t=e.slice(),n=[0];let r,i,s,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(s=0,o=n.length-1;s<o;)a=s+o>>1,e[n[a]]<u?s=a+1:o=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function Za(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Za(t)}function Ja(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const nh=Symbol.for("v-scx"),rh=()=>Be(nh);function fn(e,t,n){return qa(e,t,n)}function qa(e,t,n=fe){const{immediate:r,deep:i,flush:s,once:o}=n,a=Pe({},n);let l;if(ls)if(s==="sync"){const d=rh();l=d.__watcherHandles||(d.__watcherHandles=[])}else if(!t||r)a.once=!0;else{const d=()=>{};return d.stop=ut,d.resume=ut,d.pause=ut,d}const u=Ce;a.call=(d,_,v)=>ft(d,u,_,v);let c=!1;s==="post"?a.scheduler=d=>{Ye(d,u&&u.suspense)}:s!=="sync"&&(c=!0,a.scheduler=(d,_)=>{_?d():li(d)}),a.augmentJob=d=>{t&&(d.flags|=4),c&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const f=fd(e,t,a);return l&&l.push(f),f}function sh(e,t,n){const r=this.proxy,i=ke(e)?e.includes(".")?Qa(r,e):()=>r[e]:e.bind(r,r);let s;Z(t)?s=t:(s=t.handler,n=t);const o=dr(this),a=qa(i,s.bind(r),n);return o(),a}function Qa(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const ih=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${et(t)}Modifiers`]||e[`${Ut(t)}Modifiers`];function oh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||fe;let i=n;const s=t.startsWith("update:"),o=s&&ih(r,t.slice(7));o&&(o.trim&&(i=n.map(c=>ke(c)?c.trim():c)),o.number&&(i=n.map(Vs)));let a,l=r[a=zs(t)]||r[a=zs(et(t))];!l&&s&&(l=r[a=zs(Ut(t))]),l&&ft(l,e,6,i);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ft(u,e,6,i)}}function el(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!Z(e)){const l=u=>{const c=el(u,t,!0);c&&(a=!0,Pe(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(be(e)&&r.set(e,null),null):(G(s)?s.forEach(l=>o[l]=null):Pe(o,s),be(e)&&r.set(e,o),o)}function ss(e,t){return!e||!Nr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ut(t))||ae(e,t))}function Rw(){}function vi(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:_,ctx:v,inheritAttrs:S}=e,T=es(e);let E,L;try{if(n.shapeFlag&4){const g=i||r,O=g;E=pt(u.call(O,g,c,f,_,d,v)),L=a}else{const g=t;E=pt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),L=t.props?a:ah(a)}}catch(g){lr.length=0,qr(g,e,1),E=Te(dn)}let y=E;if(L&&S!==!1){const g=Object.keys(L),{shapeFlag:O}=y;g.length&&O&7&&(s&&g.some(Ws)&&(L=lh(L,s)),y=$n(y,L,!1,!0))}return n.dirs&&(y=$n(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&ci(y,n.transition),E=y,es(T),E}const ah=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nr(n))&&((t||(t={}))[n]=e[n]);return t},lh=(e,t)=>{const n={};for(const r in e)(!Ws(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ch(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?tl(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!ss(u,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?tl(r,o,u):!0:!!o;return!1}function tl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!ss(n,s))return!0}return!1}function uh({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const nl=e=>e.__isSuspense;function fh(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):bd(e)}const xe=Symbol.for("v-fgt"),ar=Symbol.for("v-txt"),dn=Symbol.for("v-cmt"),wi=Symbol.for("v-stc"),lr=[];let Xe=null;function J(e=!1){lr.push(Xe=e?null:[])}function dh(){lr.pop(),Xe=lr[lr.length-1]||null}let cr=1;function rl(e){cr+=e,e<0&&Xe&&(Xe.hasOnce=!0)}function sl(e){return e.dynamicChildren=cr>0?Xe||Cn:null,dh(),cr>0&&Xe&&Xe.push(e),e}function ee(e,t,n,r,i,s){return sl(le(e,t,n,r,i,s,!0))}function Vt(e,t,n,r,i){return sl(Te(e,t,n,r,i,!0))}function is(e){return e?e.__v_isVNode===!0:!1}function ur(e,t){return e.type===t.type&&e.key===t.key}const il=({key:e})=>e??null,os=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||ve(e)||Z(e)?{i:We,r:e,k:t,f:!!n}:e:null);function le(e,t=null,n=null,r=0,i=null,s=e===xe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&il(t),ref:t&&os(t),scopeId:Ia,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:We};return a?(ki(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),cr>0&&!o&&Xe&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Xe.push(l),l}const Te=hh;function hh(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Rd)&&(e=dn),is(e)){const a=$n(e,t,!0);return n&&ki(a,n),cr>0&&!s&&Xe&&(a.shapeFlag&6?Xe[Xe.indexOf(e)]=a:Xe.push(a)),a.patchFlag=-2,a}if(Ih(e)&&(e=e.__vccOpts),t){t=ph(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=Fr(a)),be(l)&&(si(l)&&!G(l)&&(l=Pe({},l)),t.style=Dr(l))}const o=ke(e)?1:nl(e)?128:kd(e)?64:be(e)?4:Z(e)?2:0;return le(e,t,n,r,i,o,s,!0)}function ph(e){return e?si(e)||Wa(e)?Pe({},e):e:null}function $n(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=e,u=t?mh(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&il(u),ref:t&&t.ref?n&&s?G(s)?s.concat(os(t)):[s,os(t)]:os(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$n(e.ssContent),ssFallback:e.ssFallback&&$n(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ci(c,l.clone(c)),c}function hn(e=" ",t=0){return Te(ar,null,e,t)}function De(e="",t=!1){return t?(J(),Vt(dn,null,e)):Te(dn,null,e)}function pt(e){return e==null||typeof e=="boolean"?Te(dn):G(e)?Te(xe,null,e.slice()):is(e)?Bt(e):Te(ar,null,String(e))}function Bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$n(e)}function ki(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),ki(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Wa(t)?t._ctx=We:i===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Z(t)?(t={default:t,_ctx:We},n=32):(t=String(t),r&64?(n=16,t=[hn(t)]):n=8);e.children=t,e.shapeFlag|=n}function mh(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Fr([t.class,r.class]));else if(i==="style")t.style=Dr([t.style,r.style]);else if(Nr(i)){const s=t[i],o=r[i];o&&s!==o&&!(G(s)&&s.includes(o))&&(t[i]=s?[].concat(s,o):o)}else i!==""&&(t[i]=r[i])}return t}function mt(e,t,n,r=null){ft(e,t,7,[n,r])}const gh=Fa();let _h=0;function bh(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||gh,s={uid:_h++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new zo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ka(r,i),emitsOptions:el(r,i),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:r.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=oh.bind(null,s),e.ce&&e.ce(s),s}let Ce=null;const fr=()=>Ce||We;let as,Ti;{const e=Uo(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};as=t("__VUE_INSTANCE_SETTERS__",n=>Ce=n),Ti=t("__VUE_SSR_SETTERS__",n=>ls=n)}const dr=e=>{const t=Ce;return as(e),e.scope.on(),()=>{e.scope.off(),as(t)}},ol=()=>{Ce&&Ce.scope.off(),as(null)};function al(e){return e.vnode.shapeFlag&4}let ls=!1;function yh(e,t=!1,n=!1){t&&Ti(t);const{props:r,children:i}=e.vnode,s=al(e);Bd(e,r,s,t),Zd(e,i,n);const o=s?vh(e,t):void 0;return t&&Ti(!1),o}function vh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Md);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?kh(e):null,s=dr(e);It();const o=Nn(r,e,0,[e.props,i]);if(St(),s(),$o(o)){if(sr(e)||Sa(e),o.then(ol,ol),t)return o.then(a=>{ll(e,a,t)}).catch(a=>{qr(a,e,0)});e.asyncDep=o}else ll(e,o,t)}else ul(e,t)}function ll(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=_a(t)),ul(e,n)}let cl;function ul(e,t,n){const r=e.type;if(!e.render){if(!t&&cl&&!r.render){const i=r.template||mi(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Pe(Pe({isCustomElement:s,delimiters:a},o),l);r.render=cl(i,u)}}e.render=r.render||ut}{const i=dr(e);It();try{Dd(e)}finally{St(),i()}}}const wh={get(e,t){return $e(e,"get",""),e[t]}};function kh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wh),slots:e.slots,emit:e.emit,expose:t}}function cs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_a(ii(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ir)return ir[n](e)},has(t,n){return n in t||n in ir}})):e.proxy}const Th=/(?:^|[-_])(\w)/g,Eh=e=>e.replace(Th,t=>t.toUpperCase()).replace(/[-_]/g,"");function fl(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function dl(e,t,n=!1){let r=fl(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=s=>{for(const o in s)if(s[o]===t)return o};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?Eh(r):n?"App":"Anonymous"}function Ih(e){return Z(e)&&"__vccOpts"in e}const Ke=(e,t)=>cd(e,t,ls);function hr(e,t,n){const r=arguments.length;return r===2?be(t)&&!G(t)?is(t)?Te(e,null,[t]):Te(e,t):Te(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&is(n)&&(n=[n]),Te(e,t,n))}const Sh="3.5.11";/**
|
|
17
|
-
* @vue/runtime-dom v3.5.
|
|
13
|
+
**/const Vn=[];let Js=!1;function aw(e,...t){if(Js)return;Js=!0,yt();const n=Vn.length?Vn[Vn.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=Uf();if(r)vn(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 <${el(n,i.type)}>`).join(`
|
|
14
|
+
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
|
|
15
|
+
`,...Wf(s)),console.warn(...i)}vt(),Js=!1}function Uf(){let e=Vn[Vn.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 Wf(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
16
|
+
`],...Hf(n))}),t}function Hf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${el(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...zf(e.props),i]:[s+i]}function zf(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...aa(r,e[r]))}),n.length>3&&t.push(" ..."),t}function aa(e,t,n){return ve(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:be(t)?(t=aa(e,q(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):K(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=q(t),n?t:[`${e}=`,t])}function vn(e,t,n,r){try{return r?e(...r):e()}catch(s){Hr(s,t,n)}}function ot(e,t,n,r){if(K(e)){const s=vn(e,t,n,r);return s&&Ao(s)&&s.catch(i=>{Hr(i,t,n)}),s}if(z(e)){const s=[];for(let i=0;i<e.length;i++)s.push(ot(e[i],t,n,r));return s}}function Hr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||ue;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){yt(),vn(i,null,10,[e,l,u]),vt();return}}Kf(e,n,s,r,o)}function Kf(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Me=[];let at=-1;const wn=[];let jt=null,kn=0;const la=Promise.resolve();let zr=null;function ca(e){const t=zr||la;return e?t.then(this?e.bind(this):e):t}function Vf(e){let t=at+1,n=Me.length;for(;t<n;){const r=t+n>>>1,s=Me[r],i=Bn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function qs(e){if(!(e.flags&1)){const t=Bn(e),n=Me[Me.length-1];!n||!(e.flags&2)&&t>=Bn(n)?Me.push(e):Me.splice(Vf(t),0,e),e.flags|=1,ua()}}function ua(){zr||(zr=la.then(ha))}function Bf(e){z(e)?wn.push(...e):jt&&e.id===-1?jt.splice(kn+1,0,e):e.flags&1||(wn.push(e),e.flags|=1),ua()}function fa(e,t,n=at+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 da(e){if(wn.length){const t=[...new Set(wn)].sort((n,r)=>Bn(n)-Bn(r));if(wn.length=0,jt){jt.push(...t);return}for(jt=t,kn=0;kn<jt.length;kn++){const n=jt[kn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}jt=null,kn=0}}const Bn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ha(e){try{for(at=0;at<Me.length;at++){const t=Me[at];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),vn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;at<Me.length;at++){const t=Me[at];t&&(t.flags&=-2)}at=-1,Me.length=0,da(),zr=null,(Me.length||wn.length)&&ha()}}let De=null,pa=null;function Kr(e){const t=De;return De=e,pa=e&&e.type.__scopeId||null,t}function Gf(e,t=De,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Va(-1);const i=Kr(t);let o;try{o=e(...s)}finally{Kr(i),r._d&&Va(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Zf(e,t){if(De===null)return e;const n=qr(De),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=ue]=t[s];i&&(K(i)&&(i={mounted:i,updated:i}),i.deep&&Tt(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function qt(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&&(yt(),ot(l,n,8,[e.el,a,e,t]),vt())}}const Yf=Symbol("_vte"),Xf=e=>e.__isTeleport;function Qs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qs(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 lt(e,t){return K(e)?Ee({name:e.name},t,{setup:e}):e}function ma(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ei(e,t,n,r,s=!1){if(z(e)){e.forEach((y,T)=>ei(y,t&&(z(t)?t[T]:t),n,r,s));return}if(Gn(r)&&!s)return;const i=r.shapeFlag&4?qr(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===ue?a.refs={}:a.refs,f=a.setupState,d=q(f),m=f===ue?()=>!1:y=>se(d,y);if(u!=null&&u!==l&&(ve(u)?(c[u]=null,m(u)&&(f[u]=null)):be(u)&&(u.value=null)),K(l))vn(l,a,12,[o,c]);else{const y=ve(l),T=be(l);if(y||T){const E=()=>{if(e.f){const g=y?m(l)?f[l]:c[l]:l.value;s?z(g)&&Ps(g,i):z(g)?g.includes(i)||g.push(i):y?(c[l]=[i],m(l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else y?(c[l]=o,m(l)&&(f[l]=o)):T&&(l.value=o,e.k&&(c[e.k]=o))};o?(E.id=-1,Ke(E,n)):E()}}}Ar().requestIdleCallback,Ar().cancelIdleCallback;const Gn=e=>!!e.type.__asyncLoader,ga=e=>e.type.__isKeepAlive;function Jf(e,t){_a(e,"a",t)}function qf(e,t){_a(e,"da",t)}function _a(e,t,n=Se){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Vr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)ga(s.parent.vnode)&&Qf(r,t,n,s),s=s.parent}}function Qf(e,t,n,r){const s=Vr(t,e,r,!0);ti(()=>{Ps(r[t],s)},n)}function Vr(e,t,n=Se,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{yt();const a=tr(n),l=ot(t,n,e,o);return a(),vt(),l});return r?s.unshift(i):s.push(i),i}}const It=e=>(t,n=Se)=>{(!nr||e==="sp")&&Vr(e,(...r)=>t(...r),n)},ed=It("bm"),Br=It("m"),td=It("bu"),nd=It("u"),ba=It("bum"),ti=It("um"),rd=It("sp"),sd=It("rtg"),id=It("rtc");function od(e,t=Se){Vr("ec",e,t)}const ad="components";function ld(e,t){return ud(ad,e,!0,t)||e}const cd=Symbol.for("v-ndc");function ud(e,t,n=!0,r=!1){const s=De||Se;if(s){const i=s.type;{const a=Qa(i,!1);if(a&&(a===t||a===Ye(t)||a===Or(Ye(t))))return i}const o=ya(s[e]||i[e],t)||ya(s.appContext[e],t);return!o&&r?i:o}}function ya(e,t){return e&&(e[t]||e[Ye(t)]||e[Or(Ye(t))])}function va(e,t,n,r){let s;const i=n,o=z(e);if(o||ve(e)){const a=o&&Dt(e);let l=!1;a&&(l=!Xe(e),e=Nr(e)),s=new Array(e.length);for(let u=0,c=e.length;u<c;u++)s[u]=t(l?Pe(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(ge(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 ni=e=>e?Ya(e)?qr(e):ni(e.parent):null,Zn=Ee(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=>ni(e.parent),$root:e=>ni(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ii(e),$forceUpdate:e=>e.f||(e.f=()=>{qs(e.update)}),$nextTick:e=>e.n||(e.n=ca.bind(e.proxy)),$watch:e=>Rd.bind(e)}),ri=(e,t)=>e!==ue&&!e.__isScriptSetup&&se(e,t),fd={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(ri(r,t))return o[t]=1,r[t];if(s!==ue&&se(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&se(u,t))return o[t]=3,i[t];if(n!==ue&&se(n,t))return o[t]=4,n[t];si&&(o[t]=0)}}const c=Zn[t];let f,d;if(c)return t==="$attrs"&&Le(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==ue&&se(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,se(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ri(s,t)?(s[t]=n,!0):r!==ue&&se(r,t)?(r[t]=n,!0):se(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!==ue&&se(e,o)||ri(t,o)||(a=i[0])&&se(a,o)||se(r,o)||se(Zn,o)||se(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wa(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let si=!0;function dd(e){const t=ii(e),n=e.proxy,r=e.ctx;si=!1,t.beforeCreate&&ka(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:y,activated:T,deactivated:E,beforeDestroy:g,beforeUnmount:v,destroyed:x,unmounted:_,render:C,renderTracked:$,renderTriggered:L,errorCaptured:D,serverPrefetch:U,expose:Z,inheritAttrs:X,components:J,directives:Ce,filters:st}=t;if(u&&hd(u,r,null),o)for(const B in o){const ie=o[B];K(ie)&&(r[B]=ie.bind(n))}if(s){const B=s.call(n,n);ge(B)&&(e.data=jr(B))}if(si=!0,i)for(const B in i){const ie=i[B],Ae=K(ie)?ie.bind(n,n):K(ie.get)?ie.get.bind(n,n):it,Lt=!K(ie)&&K(ie.set)?ie.set.bind(n):it,et=rt({get:Ae,set:Lt});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>et.value,set:ze=>et.value=ze})}if(a)for(const B in a)Ta(a[B],r,n,B);if(l){const B=K(l)?l.call(n):l;Reflect.ownKeys(B).forEach(ie=>{yd(ie,B[ie])})}c&&ka(c,e,"c");function me(B,ie){z(ie)?ie.forEach(Ae=>B(Ae.bind(n))):ie&&B(ie.bind(n))}if(me(ed,f),me(Br,d),me(td,m),me(nd,y),me(Jf,T),me(qf,E),me(od,D),me(id,$),me(sd,L),me(ba,v),me(ti,_),me(rd,U),z(Z))if(Z.length){const B=e.exposed||(e.exposed={});Z.forEach(ie=>{Object.defineProperty(B,ie,{get:()=>n[ie],set:Ae=>n[ie]=Ae})})}else e.exposed||(e.exposed={});C&&e.render===it&&(e.render=C),X!=null&&(e.inheritAttrs=X),J&&(e.components=J),Ce&&(e.directives=Ce),U&&ma(e)}function hd(e,t,n=it){z(e)&&(e=oi(e));for(const r in e){const s=e[r];let i;ge(s)?"default"in s?i=Fe(s.from||r,s.default,!0):i=Fe(s.from||r):i=Fe(s),be(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function ka(e,t,n){ot(z(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ta(e,t,n,r){let s=r.includes(".")?Wa(n,r):()=>n[r];if(ve(e)){const i=t[e];K(i)&&ct(s,i)}else if(K(e))ct(s,e.bind(n));else if(ge(e))if(z(e))e.forEach(i=>Ta(i,t,n,r));else{const i=K(e.handler)?e.handler.bind(n):t[e.handler];K(i)&&ct(s,i,e)}}function ii(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=>Gr(l,u,o,!0)),Gr(l,t,o)),ge(t)&&i.set(t,l),l}function Gr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Gr(e,i,n,!0),s&&s.forEach(o=>Gr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=pd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const pd={data:Ia,props:Ea,emits:Ea,methods:Yn,computed:Yn,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:Yn,directives:Yn,watch:gd,provide:Ia,inject:md};function Ia(e,t){return t?e?function(){return Ee(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function md(e,t){return Yn(oi(e),oi(t))}function oi(e){if(z(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 Yn(e,t){return e?Ee(Object.create(null),e,t):t}function Ea(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ee(Object.create(null),wa(e),wa(t??{})):t}function gd(e,t){if(!e)return t;if(!t)return e;const n=Ee(Object.create(null),e);for(const r in t)n[r]=je(e[r],t[r]);return n}function xa(){return{app:null,config:{isNativeTag:qu,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 _d=0;function bd(e,t){return function(r,s=null){K(r)||(r=Ee({},r)),s!=null&&!ge(s)&&(s=null);const i=xa(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:_d++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:th,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&K(c.install)?(o.add(c),c.install(u,...f)):K(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||we(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(m,c):e(m,c,d),l=!0,u._container=c,c.__vue_app__=u,qr(m.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ot(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=Qt;Qt=u;try{return c()}finally{Qt=f}}};return u}}let Qt=null;function yd(e,t){if(Se){let n=Se.provides;const r=Se.parent&&Se.parent.provides;r===n&&(n=Se.provides=Object.create(r)),n[e]=t}}function Fe(e,t,n=!1){const r=Se||De;if(r||Qt){const s=Qt?Qt._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&&K(t)?t.call(r&&r.proxy):t}}function vd(){return!!(Se||De||Qt)}const Sa={},Oa=()=>Object.create(Sa),Ca=e=>Object.getPrototypeOf(e)===Sa;function wd(e,t,n,r=!1){const s={},i=Oa();e.propsDefaults=Object.create(null),Aa(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Cf(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function kd(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=q(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(Zr(e.emitsOptions,d))continue;const m=t[d];if(l)if(se(i,d))m!==i[d]&&(i[d]=m,u=!0);else{const y=Ye(d);s[y]=ai(l,a,y,m,e,!1)}else m!==i[d]&&(i[d]=m,u=!0)}}}else{Aa(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!se(t,f)&&((c=$t(f))===f||!se(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=ai(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!se(t,f))&&(delete i[f],u=!0)}u&&wt(e.attrs,"set","")}function Aa(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Fn(l))continue;const u=t[l];let c;s&&se(s,c=Ye(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:Zr(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=q(n),u=a||ue;for(let c=0;c<i.length;c++){const f=i[c];n[f]=ai(s,l,f,u[f],e,!se(u,f))}}return o}function ai(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=se(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&K(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=tr(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===$t(n))&&(r=!0))}return r}const Td=new WeakMap;function La(e,t,n=!1){const r=n?Td:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!K(e)){const c=f=>{l=!0;const[d,m]=La(f,t,!0);Ee(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 ge(e)&&r.set(e,_n),_n;if(z(i))for(let c=0;c<i.length;c++){const f=Ye(i[c]);Pa(f)&&(o[f]=ue)}else if(i)for(const c in i){const f=Ye(c);if(Pa(f)){const d=i[c],m=o[f]=z(d)||K(d)?{type:d}:Ee({},d),y=m.type;let T=!1,E=!0;if(z(y))for(let g=0;g<y.length;++g){const v=y[g],x=K(v)&&v.name;if(x==="Boolean"){T=!0;break}else x==="String"&&(E=!1)}else T=K(y)&&y.name==="Boolean";m[0]=T,m[1]=E,(T||se(m,"default"))&&a.push(f)}}const u=[o,a];return ge(e)&&r.set(e,u),u}function Pa(e){return e[0]!=="$"&&!Fn(e)}const Ra=e=>e[0]==="_"||e==="$stable",li=e=>z(e)?e.map(ut):[ut(e)],Id=(e,t,n)=>{if(t._n)return t;const r=Gf((...s)=>li(t(...s)),n);return r._c=!1,r},Na=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ra(s))continue;const i=e[s];if(K(i))t[s]=Id(s,i,r);else if(i!=null){const o=li(i);t[s]=()=>o}}},$a=(e,t)=>{const n=li(t);e.slots.default=()=>n},Ma=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Ed=(e,t,n)=>{const r=e.slots=Oa();if(e.vnode.shapeFlag&32){const s=t._;s?(Ma(r,t,n),n&&Ro(r,"_",s,!0)):Na(t,r)}else t&&$a(e,t)},xd=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=ue;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ma(s,t,n):(i=!t.$stable,Na(t,s)),o=t}else t&&($a(e,t),o={default:1});if(i)for(const a in s)!Ra(a)&&o[a]==null&&delete s[a]},Ke=Ud;function Sd(e){return Od(e)}function Od(e,t){const n=Ar();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=it,insertStaticContent:y}=e,T=(b,w,A,N=null,R=null,h=null,p=void 0,I=null,O=!!w.dynamicChildren)=>{if(b===w)return;b&&!Qn(b,w)&&(N=Gt(b),ze(b,R,h,!0),b=null),w.patchFlag===-2&&(O=!1,w.dynamicChildren=null);const{type:P,ref:M,shapeFlag:k}=w;switch(P){case Xn:E(b,w,A,N);break;case tn:g(b,w,A,N);break;case fi:b==null&&v(w,A,N,p);break;case xe:J(b,w,A,N,R,h,p,I,O);break;default:k&1?C(b,w,A,N,R,h,p,I,O):k&6?Ce(b,w,A,N,R,h,p,I,O):(k&64||k&128)&&P.process(b,w,A,N,R,h,p,I,O,Rt)}M!=null&&R&&ei(M,b&&b.ref,h,w||b,!w)},E=(b,w,A,N)=>{if(b==null)r(w.el=a(w.children),A,N);else{const R=w.el=b.el;w.children!==b.children&&u(R,w.children)}},g=(b,w,A,N)=>{b==null?r(w.el=l(w.children||""),A,N):w.el=b.el},v=(b,w,A,N)=>{[b.el,b.anchor]=y(b.children,w,A,N,b.el,b.anchor)},x=({el:b,anchor:w},A,N)=>{let R;for(;b&&b!==w;)R=d(b),r(b,A,N),b=R;r(w,A,N)},_=({el:b,anchor:w})=>{let A;for(;b&&b!==w;)A=d(b),s(b),b=A;s(w)},C=(b,w,A,N,R,h,p,I,O)=>{w.type==="svg"?p="svg":w.type==="math"&&(p="mathml"),b==null?$(w,A,N,R,h,p,I,O):U(b,w,R,h,p,I,O)},$=(b,w,A,N,R,h,p,I)=>{let O,P;const{props:M,shapeFlag:k,transition:S,dirs:j}=b;if(O=b.el=o(b.type,h,M&&M.is,M),k&8?c(O,b.children):k&16&&D(b.children,O,null,N,R,ci(b,h),p,I),j&&qt(b,null,N,"created"),L(O,b,b.scopeId,p,N),M){for(const Q in M)Q!=="value"&&!Fn(Q)&&i(O,Q,null,M[Q],h,N);"value"in M&&i(O,"value",null,M.value,h),(P=M.onVnodeBeforeMount)&&ft(P,N,b)}j&&qt(b,null,N,"beforeMount");const W=Cd(R,S);W&&S.beforeEnter(O),r(O,w,A),((P=M&&M.onVnodeMounted)||W||j)&&Ke(()=>{P&&ft(P,N,b),W&&S.enter(O),j&&qt(b,null,N,"mounted")},R)},L=(b,w,A,N,R)=>{if(A&&m(b,A),N)for(let h=0;h<N.length;h++)m(b,N[h]);if(R){let h=R.subTree;if(w===h||Ka(h.type)&&(h.ssContent===w||h.ssFallback===w)){const p=R.vnode;L(b,p,p.scopeId,p.slotScopeIds,R.parent)}}},D=(b,w,A,N,R,h,p,I,O=0)=>{for(let P=O;P<b.length;P++){const M=b[P]=I?Ut(b[P]):ut(b[P]);T(null,M,w,A,N,R,h,p,I)}},U=(b,w,A,N,R,h,p)=>{const I=w.el=b.el;let{patchFlag:O,dynamicChildren:P,dirs:M}=w;O|=b.patchFlag&16;const k=b.props||ue,S=w.props||ue;let j;if(A&&en(A,!1),(j=S.onVnodeBeforeUpdate)&&ft(j,A,w,b),M&&qt(w,b,A,"beforeUpdate"),A&&en(A,!0),(k.innerHTML&&S.innerHTML==null||k.textContent&&S.textContent==null)&&c(I,""),P?Z(b.dynamicChildren,P,I,A,N,ci(w,R),h):p||ie(b,w,I,null,A,N,ci(w,R),h,!1),O>0){if(O&16)X(I,k,S,A,R);else if(O&2&&k.class!==S.class&&i(I,"class",null,S.class,R),O&4&&i(I,"style",k.style,S.style,R),O&8){const W=w.dynamicProps;for(let Q=0;Q<W.length;Q++){const ee=W[Q],ke=k[ee],Oe=S[ee];(Oe!==ke||ee==="value")&&i(I,ee,ke,Oe,R,A)}}O&1&&b.children!==w.children&&c(I,w.children)}else!p&&P==null&&X(I,k,S,A,R);((j=S.onVnodeUpdated)||M)&&Ke(()=>{j&&ft(j,A,w,b),M&&qt(w,b,A,"updated")},N)},Z=(b,w,A,N,R,h,p)=>{for(let I=0;I<w.length;I++){const O=b[I],P=w[I],M=O.el&&(O.type===xe||!Qn(O,P)||O.shapeFlag&70)?f(O.el):A;T(O,P,M,null,N,R,h,p,!0)}},X=(b,w,A,N,R)=>{if(w!==A){if(w!==ue)for(const h in w)!Fn(h)&&!(h in A)&&i(b,h,w[h],null,R,N);for(const h in A){if(Fn(h))continue;const p=A[h],I=w[h];p!==I&&h!=="value"&&i(b,h,I,p,R,N)}"value"in A&&i(b,"value",w.value,A.value,R)}},J=(b,w,A,N,R,h,p,I,O)=>{const P=w.el=b?b.el:a(""),M=w.anchor=b?b.anchor:a("");let{patchFlag:k,dynamicChildren:S,slotScopeIds:j}=w;j&&(I=I?I.concat(j):j),b==null?(r(P,A,N),r(M,A,N),D(w.children||[],A,M,R,h,p,I,O)):k>0&&k&64&&S&&b.dynamicChildren?(Z(b.dynamicChildren,S,A,R,h,p,I),(w.key!=null||R&&w===R.subTree)&&Da(b,w,!0)):ie(b,w,A,M,R,h,p,I,O)},Ce=(b,w,A,N,R,h,p,I,O)=>{w.slotScopeIds=I,b==null?w.shapeFlag&512?R.ctx.activate(w,A,N,p,O):st(w,A,N,R,h,p,O):Bt(b,w,O)},st=(b,w,A,N,R,h,p)=>{const I=b.component=Gd(b,N,R);if(ga(b)&&(I.ctx.renderer=Rt),Zd(I,!1,p),I.asyncDep){if(R&&R.registerDep(I,me,p),!b.el){const O=I.subTree=we(tn);g(null,O,w,A)}}else me(I,b,w,A,R,h,p)},Bt=(b,w,A)=>{const N=w.component=b.component;if(jd(b,w,A))if(N.asyncDep&&!N.asyncResolved){B(N,w,A);return}else N.next=w,N.update();else w.el=b.el,N.vnode=w},me=(b,w,A,N,R,h,p)=>{const I=()=>{if(b.isMounted){let{next:k,bu:S,u:j,parent:W,vnode:Q}=b;{const Ge=ja(b);if(Ge){k&&(k.el=Q.el,B(b,k,p)),Ge.asyncDep.then(()=>{b.isUnmounted||I()});return}}let ee=k,ke;en(b,!1),k?(k.el=Q.el,B(b,k,p)):k=Q,S&&Cr(S),(ke=k.props&&k.props.onVnodeBeforeUpdate)&&ft(ke,W,k,Q),en(b,!0);const Oe=ui(b),tt=b.subTree;b.subTree=Oe,T(tt,Oe,f(tt.el),Gt(tt),b,R,h),k.el=Oe.el,ee===null&&Fd(b,Oe.el),j&&Ke(j,R),(ke=k.props&&k.props.onVnodeUpdated)&&Ke(()=>ft(ke,W,k,Q),R)}else{let k;const{el:S,props:j}=w,{bm:W,m:Q,parent:ee,root:ke,type:Oe}=b,tt=Gn(w);if(en(b,!1),W&&Cr(W),!tt&&(k=j&&j.onVnodeBeforeMount)&&ft(k,ee,w),en(b,!0),S&&jn){const Ge=()=>{b.subTree=ui(b),jn(S,b.subTree,b,R,null)};tt&&Oe.__asyncHydrate?Oe.__asyncHydrate(S,b,Ge):Ge()}else{ke.ce&&ke.ce._injectChildStyle(Oe);const Ge=b.subTree=ui(b);T(null,Ge,A,N,b,R,h),w.el=Ge.el}if(Q&&Ke(Q,R),!tt&&(k=j&&j.onVnodeMounted)){const Ge=w;Ke(()=>ft(k,ee,Ge),R)}(w.shapeFlag&256||ee&&Gn(ee.vnode)&&ee.vnode.shapeFlag&256)&&b.a&&Ke(b.a,R),b.isMounted=!0,w=A=N=null}};b.scope.on();const O=b.effect=new Uo(I);b.scope.off();const P=b.update=O.run.bind(O),M=b.job=O.runIfDirty.bind(O);M.i=b,M.id=b.uid,O.scheduler=()=>qs(M),en(b,!0),P()},B=(b,w,A)=>{w.component=b;const N=b.vnode.props;b.vnode=w,b.next=null,kd(b,w.props,N,A),xd(b,w.children,A),yt(),fa(b),vt()},ie=(b,w,A,N,R,h,p,I,O=!1)=>{const P=b&&b.children,M=b?b.shapeFlag:0,k=w.children,{patchFlag:S,shapeFlag:j}=w;if(S>0){if(S&128){Lt(P,k,A,N,R,h,p,I,O);return}else if(S&256){Ae(P,k,A,N,R,h,p,I,O);return}}j&8?(M&16&&Pt(P,R,h),k!==P&&c(A,k)):M&16?j&16?Lt(P,k,A,N,R,h,p,I,O):Pt(P,R,h,!0):(M&8&&c(A,""),j&16&&D(k,A,N,R,h,p,I,O))},Ae=(b,w,A,N,R,h,p,I,O)=>{b=b||_n,w=w||_n;const P=b.length,M=w.length,k=Math.min(P,M);let S;for(S=0;S<k;S++){const j=w[S]=O?Ut(w[S]):ut(w[S]);T(b[S],j,A,null,R,h,p,I,O)}P>M?Pt(b,R,h,!0,!1,k):D(w,A,N,R,h,p,I,O,k)},Lt=(b,w,A,N,R,h,p,I,O)=>{let P=0;const M=w.length;let k=b.length-1,S=M-1;for(;P<=k&&P<=S;){const j=b[P],W=w[P]=O?Ut(w[P]):ut(w[P]);if(Qn(j,W))T(j,W,A,null,R,h,p,I,O);else break;P++}for(;P<=k&&P<=S;){const j=b[k],W=w[S]=O?Ut(w[S]):ut(w[S]);if(Qn(j,W))T(j,W,A,null,R,h,p,I,O);else break;k--,S--}if(P>k){if(P<=S){const j=S+1,W=j<M?w[j].el:N;for(;P<=S;)T(null,w[P]=O?Ut(w[P]):ut(w[P]),A,W,R,h,p,I,O),P++}}else if(P>S)for(;P<=k;)ze(b[P],R,h,!0),P++;else{const j=P,W=P,Q=new Map;for(P=W;P<=S;P++){const Ze=w[P]=O?Ut(w[P]):ut(w[P]);Ze.key!=null&&Q.set(Ze.key,P)}let ee,ke=0;const Oe=S-W+1;let tt=!1,Ge=0;const Ir=new Array(Oe);for(P=0;P<Oe;P++)Ir[P]=0;for(P=j;P<=k;P++){const Ze=b[P];if(ke>=Oe){ze(Ze,R,h,!0);continue}let bt;if(Ze.key!=null)bt=Q.get(Ze.key);else for(ee=W;ee<=S;ee++)if(Ir[ee-W]===0&&Qn(Ze,w[ee])){bt=ee;break}bt===void 0?ze(Ze,R,h,!0):(Ir[bt-W]=P+1,bt>=Ge?Ge=bt:tt=!0,T(Ze,w[bt],A,null,R,h,p,I,O),ke++)}const Xu=tt?Ad(Ir):_n;for(ee=Xu.length-1,P=Oe-1;P>=0;P--){const Ze=W+P,bt=w[Ze],Ju=Ze+1<M?w[Ze+1].el:N;Ir[P]===0?T(null,bt,A,Ju,R,h,p,I,O):tt&&(ee<0||P!==Xu[ee]?et(bt,A,Ju,2):ee--)}}},et=(b,w,A,N,R=null)=>{const{el:h,type:p,transition:I,children:O,shapeFlag:P}=b;if(P&6){et(b.component.subTree,w,A,N);return}if(P&128){b.suspense.move(w,A,N);return}if(P&64){p.move(b,w,A,Rt);return}if(p===xe){r(h,w,A);for(let k=0;k<O.length;k++)et(O[k],w,A,N);r(b.anchor,w,A);return}if(p===fi){x(b,w,A);return}if(N!==2&&P&1&&I)if(N===0)I.beforeEnter(h),r(h,w,A),Ke(()=>I.enter(h),R);else{const{leave:k,delayLeave:S,afterLeave:j}=I,W=()=>r(h,w,A),Q=()=>{k(h,()=>{W(),j&&j()})};S?S(h,W,Q):Q()}else r(h,w,A)},ze=(b,w,A,N=!1,R=!1)=>{const{type:h,props:p,ref:I,children:O,dynamicChildren:P,shapeFlag:M,patchFlag:k,dirs:S,cacheIndex:j}=b;if(k===-2&&(R=!1),I!=null&&ei(I,null,A,b,!0),j!=null&&(w.renderCache[j]=void 0),M&256){w.ctx.deactivate(b);return}const W=M&1&&S,Q=!Gn(b);let ee;if(Q&&(ee=p&&p.onVnodeBeforeUnmount)&&ft(ee,w,b),M&6)Cs(b.component,A,N);else{if(M&128){b.suspense.unmount(A,N);return}W&&qt(b,null,w,"beforeUnmount"),M&64?b.type.remove(b,w,A,Rt,N):P&&!P.hasOnce&&(h!==xe||k>0&&k&64)?Pt(P,w,A,!1,!0):(h===xe&&k&384||!R&&M&16)&&Pt(O,w,A),N&&$n(b)}(Q&&(ee=p&&p.onVnodeUnmounted)||W)&&Ke(()=>{ee&&ft(ee,w,b),W&&qt(b,null,w,"unmounted")},A)},$n=b=>{const{type:w,el:A,anchor:N,transition:R}=b;if(w===xe){Tr(A,N);return}if(w===fi){_(b);return}const h=()=>{s(A),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:p,delayLeave:I}=R,O=()=>p(A,h);I?I(b.el,h,O):O()}else h()},Tr=(b,w)=>{let A;for(;b!==w;)A=d(b),s(b),b=A;s(w)},Cs=(b,w,A)=>{const{bum:N,scope:R,job:h,subTree:p,um:I,m:O,a:P}=b;Fa(O),Fa(P),N&&Cr(N),R.stop(),h&&(h.flags|=8,ze(p,b,w,A)),I&&Ke(I,w),Ke(()=>{b.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve())},Pt=(b,w,A,N=!1,R=!1,h=0)=>{for(let p=h;p<b.length;p++)ze(b[p],w,A,N,R)},Gt=b=>{if(b.shapeFlag&6)return Gt(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const w=d(b.anchor||b.el),A=w&&w[Yf];return A?d(A):w};let Zt=!1;const Mn=(b,w,A)=>{b==null?w._vnode&&ze(w._vnode,null,null,!0):T(w._vnode||null,b,w,null,null,null,A),w._vnode=b,Zt||(Zt=!0,fa(),da(),Zt=!1)},Rt={p:T,um:ze,m:et,r:$n,mt:st,mc:D,pc:ie,pbc:Z,n:Gt,o:e};let Dn,jn;return{render:Mn,hydrate:Dn,createApp:bd(Mn,Dn)}}function ci({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 en({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Cd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Da(e,t,n=!1){const r=e.children,s=t.children;if(z(r)&&z(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]=Ut(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Da(o,a)),a.type===Xn&&(a.el=o.el)}}function Ad(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 ja(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ja(t)}function Fa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ld=Symbol.for("v-scx"),Pd=()=>Fe(Ld);function ct(e,t,n){return Ua(e,t,n)}function Ua(e,t,n=ue){const{immediate:r,deep:s,flush:i,once:o}=n,a=Ee({},n),l=t&&r||!t&&i!=="post";let u;if(nr){if(i==="sync"){const m=Pd();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=it,m.resume=it,m.pause=it,m}}const c=Se;a.call=(m,y,T)=>ot(m,c,y,T);let f=!1;i==="post"?a.scheduler=m=>{Ke(m,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(m,y)=>{y?m():qs(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const d=Ff(e,t,a);return nr&&(u?u.push(d):l&&d()),d}function Rd(e,t,n){const r=this.proxy,s=ve(e)?e.includes(".")?Wa(r,e):()=>r[e]:e.bind(r,r);let i;K(t)?i=t:(i=t.handler,n=t);const o=tr(this),a=Ua(s,i.bind(r),n);return o(),a}function Wa(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 Nd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function $d(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let s=n;const i=t.startsWith("update:"),o=i&&Nd(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>ve(c)?c.trim():c)),o.number&&(s=n.map($s)));let a,l=r[a=Ns(t)]||r[a=Ns(Ye(t))];!l&&i&&(l=r[a=Ns($t(t))]),l&&ot(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,ot(u,e,6,s)}}function Ha(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(!K(e)){const l=u=>{const c=Ha(u,t,!0);c&&(a=!0,Ee(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ge(e)&&r.set(e,null),null):(z(i)?i.forEach(l=>o[l]=null):Ee(o,i),ge(e)&&r.set(e,o),o)}function Zr(e,t){return!e||!Er(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,$t(t))||se(e,t))}function lw(){}function ui(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:y,inheritAttrs:T}=e,E=Kr(e);let g,v;try{if(n.shapeFlag&4){const _=s||r,C=_;g=ut(u.call(C,_,c,f,m,d,y)),v=a}else{const _=t;g=ut(_.length>1?_(f,{attrs:a,slots:o,emit:l}):_(f,null)),v=t.props?a:Md(a)}}catch(_){Jn.length=0,Hr(_,e,1),g=we(tn)}let x=g;if(v&&T!==!1){const _=Object.keys(v),{shapeFlag:C}=x;_.length&&C&7&&(i&&_.some(Ls)&&(v=Dd(v,i)),x=Tn(x,v,!1,!0))}return n.dirs&&(x=Tn(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&Qs(x,n.transition),g=x,Kr(E),g}const Md=e=>{let t;for(const n in e)(n==="class"||n==="style"||Er(n))&&((t||(t={}))[n]=e[n]);return t},Dd=(e,t)=>{const n={};for(const r in e)(!Ls(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function jd(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?za(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]&&!Zr(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?za(r,o,u):!0:!!o;return!1}function za(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]&&!Zr(n,i))return!0}return!1}function Fd({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 Ka=e=>e.__isSuspense;function Ud(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Bf(e)}const xe=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),tn=Symbol.for("v-cmt"),fi=Symbol.for("v-stc"),Jn=[];let Ve=null;function V(e=!1){Jn.push(Ve=e?null:[])}function Wd(){Jn.pop(),Ve=Jn[Jn.length-1]||null}let qn=1;function Va(e){qn+=e,e<0&&Ve&&(Ve.hasOnce=!0)}function Ba(e){return e.dynamicChildren=qn>0?Ve||_n:null,Wd(),qn>0&&Ve&&Ve.push(e),e}function Y(e,t,n,r,s,i){return Ba(oe(e,t,n,r,s,i,!0))}function Ft(e,t,n,r,s){return Ba(we(e,t,n,r,s,!0))}function Yr(e){return e?e.__v_isVNode===!0:!1}function Qn(e,t){return e.type===t.type&&e.key===t.key}const Ga=({key:e})=>e??null,Xr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||be(e)||K(e)?{i:De,r:e,k:t,f:!!n}:e:null);function oe(e,t=null,n=null,r=0,s=null,i=e===xe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ga(t),ref:t&&Xr(t),scopeId:pa,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:De};return a?(di(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=ve(n)?8:16),qn>0&&!o&&Ve&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ve.push(l),l}const we=Hd;function Hd(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===cd)&&(e=tn),Yr(e)){const a=Tn(e,t,!0);return n&&di(a,n),qn>0&&!i&&Ve&&(a.shapeFlag&6?Ve[Ve.indexOf(e)]=a:Ve.push(a)),a.patchFlag=-2,a}if(eh(e)&&(e=e.__vccOpts),t){t=zd(t);let{class:a,style:l}=t;a&&!ve(a)&&(t.class=Pr(a)),ge(l)&&(Zs(l)&&!z(l)&&(l=Ee({},l)),t.style=Lr(l))}const o=ve(e)?1:Ka(e)?128:Xf(e)?64:ge(e)?4:K(e)?2:0;return oe(e,t,n,r,s,o,i,!0)}function zd(e){return e?Zs(e)||Ca(e)?Ee({},e):e:null}function Tn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?Kd(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ga(u),ref:t&&t.ref?n&&i?z(i)?i.concat(Xr(t)):[i,Xr(t)]:Xr(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!==xe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tn(e.ssContent),ssFallback:e.ssFallback&&Tn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Qs(c,l.clone(c)),c}function nn(e=" ",t=0){return we(Xn,null,e,t)}function Re(e="",t=!1){return t?(V(),Ft(tn,null,e)):we(tn,null,e)}function ut(e){return e==null||typeof e=="boolean"?we(tn):z(e)?we(xe,null,e.slice()):Yr(e)?Ut(e):we(Xn,null,String(e))}function Ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tn(e)}function di(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),di(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ca(t)?t._ctx=De:s===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:De},n=32):(t=String(t),r&64?(n=16,t=[nn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Kd(...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=Pr([t.class,r.class]));else if(s==="style")t.style=Lr([t.style,r.style]);else if(Er(s)){const i=t[s],o=r[s];o&&i!==o&&!(z(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function ft(e,t,n,r=null){ot(e,t,7,[n,r])}const Vd=xa();let Bd=0;function Gd(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Vd,i={uid:Bd++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new jo(!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:La(r,s),emitsOptions:Ha(r,s),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,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=$d.bind(null,i),e.ce&&e.ce(i),i}let Se=null;const er=()=>Se||De;let Jr,hi;{const e=Ar(),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)}};Jr=t("__VUE_INSTANCE_SETTERS__",n=>Se=n),hi=t("__VUE_SSR_SETTERS__",n=>nr=n)}const tr=e=>{const t=Se;return Jr(e),e.scope.on(),()=>{e.scope.off(),Jr(t)}},Za=()=>{Se&&Se.scope.off(),Jr(null)};function Ya(e){return e.vnode.shapeFlag&4}let nr=!1;function Zd(e,t=!1,n=!1){t&&hi(t);const{props:r,children:s}=e.vnode,i=Ya(e);wd(e,r,i,t),Ed(e,s,n);const o=i?Yd(e,t):void 0;return t&&hi(!1),o}function Yd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,fd);const{setup:r}=n;if(r){yt();const s=e.setupContext=r.length>1?Jd(e):null,i=tr(e),o=vn(r,e,0,[e.props,s]),a=Ao(o);if(vt(),i(),(a||e.sp)&&!Gn(e)&&ma(e),a){if(o.then(Za,Za),t)return o.then(l=>{Xa(e,l,t)}).catch(l=>{Hr(l,e,0)});e.asyncDep=o}else Xa(e,o,t)}else qa(e,t)}function Xa(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=oa(t)),qa(e,n)}let Ja;function qa(e,t,n){const r=e.type;if(!e.render){if(!t&&Ja&&!r.render){const s=r.template||ii(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Ee(Ee({isCustomElement:i,delimiters:a},o),l);r.render=Ja(s,u)}}e.render=r.render||it}{const s=tr(e);yt();try{dd(e)}finally{vt(),s()}}}const Xd={get(e,t){return Le(e,"get",""),e[t]}};function Jd(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Xd),slots:e.slots,emit:e.emit,expose:t}}function qr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(oa(Ys(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zn)return Zn[n](e)},has(t,n){return n in t||n in Zn}})):e.proxy}const qd=/(?:^|[-_])(\w)/g,Qd=e=>e.replace(qd,t=>t.toUpperCase()).replace(/[-_]/g,"");function Qa(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function el(e,t,n=!1){let r=Qa(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?Qd(r):n?"App":"Anonymous"}function eh(e){return K(e)&&"__vccOpts"in e}const rt=(e,t)=>Df(e,t,nr);function rr(e,t,n){const r=arguments.length;return r===2?ge(t)&&!z(t)?Yr(t)?we(e,null,[t]):we(e,t):we(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Yr(n)&&(n=[n]),we(e,t,n))}const th="3.5.12";/**
|
|
17
|
+
* @vue/runtime-dom v3.5.12
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/let
|
|
21
|
-
* pinia v2.2.
|
|
20
|
+
**/let pi;const tl=typeof window<"u"&&window.trustedTypes;if(tl)try{pi=tl.createPolicy("vue",{createHTML:e=>e})}catch{}const nl=pi?e=>pi.createHTML(e):e=>e,nh="http://www.w3.org/2000/svg",rh="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,rl=Et&&Et.createElement("template"),sh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Et.createElementNS(nh,e):t==="mathml"?Et.createElementNS(rh,e):n?Et.createElement(e,{is:n}):Et.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.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{rl.innerHTML=nl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=rl.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]}},ih=Symbol("_vtc");function oh(e,t,n){const r=e[ih];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sl=Symbol("_vod"),ah=Symbol("_vsh"),lh=Symbol(""),ch=/(^|;)\s*display\s*:/;function uh(e,t,n){const r=e.style,s=ve(n);let i=!1;if(n&&!s){if(t)if(ve(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Qr(r,a,"")}else for(const o in t)n[o]==null&&Qr(r,o,"");for(const o in n)o==="display"&&(i=!0),Qr(r,o,n[o])}else if(s){if(t!==n){const o=r[lh];o&&(n+=";"+o),r.cssText=n,i=ch.test(n)}}else t&&e.removeAttribute("style");sl in e&&(e[sl]=i?r.display:"",e[ah]&&(r.display="none"))}const il=/\s*!important$/;function Qr(e,t,n){if(z(n))n.forEach(r=>Qr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=fh(e,t);il.test(n)?e.setProperty($t(r),n.replace(il,""),"important"):e[r]=n}}const ol=["Webkit","Moz","ms"],mi={};function fh(e,t){const n=mi[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return mi[t]=r;r=Or(r);for(let s=0;s<ol.length;s++){const i=ol[s]+r;if(i in e)return mi[t]=i}return t}const al="http://www.w3.org/1999/xlink";function ll(e,t,n,r,s,i=lf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(al,t.slice(6,t.length)):e.setAttributeNS(al,t,n):n==null||i&&!$o(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Nt(n)?String(n):n)}function cl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?nl(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=$o(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 In(e,t,n,r){e.addEventListener(t,n,r)}function dh(e,t,n,r){e.removeEventListener(t,n,r)}const ul=Symbol("_vei");function hh(e,t,n,r,s=null){const i=e[ul]||(e[ul]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=ph(t);if(r){const u=i[t]=_h(r,s);In(e,a,u,l)}else o&&(dh(e,a,o,l),i[t]=void 0)}}const fl=/(?:Once|Passive|Capture)$/;function ph(e){let t;if(fl.test(e)){t={};let r;for(;r=e.match(fl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$t(e.slice(2)),t]}let gi=0;const mh=Promise.resolve(),gh=()=>gi||(mh.then(()=>gi=0),gi=Date.now());function _h(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ot(bh(r,n.value),t,5,[r])};return n.value=e,n.attached=gh(),n}function bh(e,t){if(z(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 dl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yh=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?oh(e,r,o):t==="style"?uh(e,n,r):Er(t)?Ls(t)||hh(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vh(e,t,r,o))?(cl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ll(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ve(r))?cl(e,Ye(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ll(e,t,r,o))};function vh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&dl(t)&&K(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 dl(t)&&ve(n)?!1:t in e}const hl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?n=>Cr(t,n):t};function wh(e){e.target.composing=!0}function pl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _i=Symbol("_assign"),kh={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[_i]=hl(s);const i=r||s.props&&s.props.type==="number";In(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=$s(a)),e[_i](a)}),n&&In(e,"change",()=>{e.value=e.value.trim()}),t||(In(e,"compositionstart",wh),In(e,"compositionend",pl),In(e,"change",pl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[_i]=hl(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?$s(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))}},Th=["ctrl","shift","alt","meta"],Ih={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)=>Th.some(n=>e[`${n}Key`]&&!t.includes(n))},Eh=(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=Ih[t[o]];if(a&&a(s,t))return}return e(s,...i)})},xh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ml=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=$t(s.key);if(t.some(o=>o===i||xh[o]===i))return e(s)})},Sh=Ee({patchProp:yh},sh);let gl;function Oh(){return gl||(gl=Sd(Sh))}const Ch=(...e)=>{const t=Oh().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Lh(r);if(!s)return;const i=t._component;!K(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Ah(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Ah(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Lh(e){return ve(e)?document.querySelector(e):e}var Ph=!1;/*!
|
|
21
|
+
* pinia v2.2.5
|
|
22
22
|
* (c) 2024 Eduardo San Martin Morote
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/let Cl;const fs=e=>Cl=e,Ll=Symbol();function xi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var pr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(pr||(pr={}));function sp(){const e=Gs(!0),t=e.run(()=>re({}));let n=[],r=[];const i=ii({install(s){fs(i),i._a=s,s.provide(Ll,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!rp?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Al=()=>{};function Nl(e,t,n,r=Al){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Vo()&&Pf(i),i}function Dn(e,...t){e.slice().forEach(n=>{n(...t)})}const ip=e=>e(),Pl=Symbol(),Ci=Symbol();function Li(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];xi(i)&&xi(r)&&e.hasOwnProperty(n)&&!ve(r)&&!Kt(r)?e[n]=Li(i,r):e[n]=r}return e}const op=Symbol();function ap(e){return!xi(e)||!e.hasOwnProperty(op)}const{assign:Gt}=Object;function lp(e){return!!(ve(e)&&e.effect)}function cp(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=i?i():{});const c=id(n.state.value[e]);return Gt(c,s,Object.keys(o||{}).reduce((f,d)=>(f[d]=ii(Ke(()=>{fs(n);const _=n._s.get(e);return o[d].call(_,_)})),f),{}))}return l=Rl(e,u,t,n,r,!0),l}function Rl(e,t,n={},r,i,s){let o;const a=Gt({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],_;const v=r.state.value[e];!s&&!v&&(r.state.value[e]={}),re({});let S;function T(N){let P;u=c=!1,typeof N=="function"?(N(r.state.value[e]),P={type:pr.patchFunction,storeId:e,events:_}):(Li(r.state.value[e],N),P={type:pr.patchObject,payload:N,storeId:e,events:_});const Y=S=Symbol();va().then(()=>{S===Y&&(u=!0)}),c=!0,Dn(f,P,r.state.value[e])}const E=s?function(){const{state:P}=n,Y=P?P():{};this.$patch(te=>{Gt(te,Y)})}:Al;function L(){o.stop(),f=[],d=[],r._s.delete(e)}const y=(N,P="")=>{if(Pl in N)return N[Ci]=P,N;const Y=function(){fs(r);const te=Array.from(arguments),z=[],de=[];function Je(q){z.push(q)}function kt(q){de.push(q)}Dn(d,{args:te,name:Y[Ci],store:O,after:Je,onError:kt});let ie;try{ie=N.apply(this&&this.$id===e?this:O,te)}catch(q){throw Dn(de,q),q}return ie instanceof Promise?ie.then(q=>(Dn(z,q),q)).catch(q=>(Dn(de,q),Promise.reject(q))):(Dn(z,ie),ie)};return Y[Pl]=!0,Y[Ci]=P,Y},g={_p:r,$id:e,$onAction:Nl.bind(null,d),$patch:T,$reset:E,$subscribe(N,P={}){const Y=Nl(f,N,P.detached,()=>te()),te=o.run(()=>fn(()=>r.state.value[e],z=>{(P.flush==="sync"?c:u)&&N({storeId:e,type:pr.direct,events:_},z)},Gt({},l,P)));return Y},$dispose:L},O=Yr(g);r._s.set(e,O);const A=(r._a&&r._a.runWithContext||ip)(()=>r._e.run(()=>(o=Gs()).run(()=>t({action:y}))));for(const N in A){const P=A[N];if(ve(P)&&!lp(P)||Kt(P))s||(v&&ap(P)&&(ve(P)?P.value=v[N]:Li(P,v[N])),r.state.value[e][N]=P);else if(typeof P=="function"){const Y=y(P,N);A[N]=Y,a.actions[N]=P}}return Gt(O,A),Gt(ne(O),A),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:N=>{T(P=>{Gt(P,N)})}}),r._p.forEach(N=>{Gt(O,o.run(()=>N({store:O,app:r._a,pinia:r,options:a})))}),v&&s&&n.hydrate&&n.hydrate(O.$state,v),u=!0,c=!0,O}function up(e,t,n){let r,i;const s=typeof t=="function";r=e,i=s?n:t;function o(a,l){const u=Vd();return a=a||(u?Be(Ll,null):null),a&&fs(a),a=Cl,a._s.has(r)||(s?Rl(r,t,i,a):cp(r,i,a)),a._s.get(r)}return o.$id=r,o}const $l=Symbol("$auth0");function gt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}typeof SuppressedError=="function"&&SuppressedError;var pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ni(e,t){return e(t={exports:{}},t.exports),t.exports}var mn=Ni(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var i=this;this.locked=new Map,this.addToLocked=function(s,o){var a=i.locked.get(s);a===void 0?o===void 0?i.locked.set(s,[]):i.locked.set(s,[o]):o!==void 0&&(a.unshift(o),i.locked.set(s,a))},this.isLocked=function(s){return i.locked.has(s)},this.lock=function(s){return new Promise(function(o,a){i.isLocked(s)?i.addToLocked(s,o):(i.addToLocked(s),o())})},this.unlock=function(s){var o=i.locked.get(s);if(o!==void 0&&o.length!==0){var a=o.pop();i.locked.set(s,o),a!==void 0&&setTimeout(a,0)}else i.locked.delete(s)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});Ai(mn);var fp=Ai(Ni(function(e,t){var n=pn&&pn.__awaiter||function(c,f,d,_){return new(d||(d=Promise))(function(v,S){function T(y){try{L(_.next(y))}catch(g){S(g)}}function E(y){try{L(_.throw(y))}catch(g){S(g)}}function L(y){y.done?v(y.value):new d(function(g){g(y.value)}).then(T,E)}L((_=_.apply(c,f||[])).next())})},r=pn&&pn.__generator||function(c,f){var d,_,v,S,T={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return S={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function E(L){return function(y){return function(g){if(d)throw new TypeError("Generator is already executing.");for(;T;)try{if(d=1,_&&(v=2&g[0]?_.return:g[0]?_.throw||((v=_.return)&&v.call(_),0):_.next)&&!(v=v.call(_,g[1])).done)return v;switch(_=0,v&&(g=[2&g[0],v.value]),g[0]){case 0:case 1:v=g;break;case 4:return T.label++,{value:g[1],done:!1};case 5:T.label++,_=g[1],g=[0];continue;case 7:g=T.ops.pop(),T.trys.pop();continue;default:if(!((v=(v=T.trys).length>0&&v[v.length-1])||g[0]!==6&&g[0]!==2)){T=0;continue}if(g[0]===3&&(!v||g[1]>v[0]&&g[1]<v[3])){T.label=g[1];break}if(g[0]===6&&T.label<v[1]){T.label=v[1],v=g;break}if(v&&T.label<v[2]){T.label=v[2],T.ops.push(g);break}v[2]&&T.ops.pop(),T.trys.pop();continue}g=f.call(c,T)}catch(O){g=[6,O],_=0}finally{d=v=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([L,y])}}},i=pn;Object.defineProperty(t,"__esModule",{value:!0});var s="browser-tabs-lock-key",o={key:function(c){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},getItem:function(c){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},clear:function(){return n(i,void 0,void 0,function(){return r(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(i,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},setItem:function(c,f){return n(i,void 0,void 0,function(){return r(this,function(d){throw new Error("Unsupported")})})},keySync:function(c){return window.localStorage.key(c)},getItemSync:function(c){return window.localStorage.getItem(c)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(c){return window.localStorage.removeItem(c)},setItemSync:function(c,f){return window.localStorage.setItem(c,f)}};function a(c){return new Promise(function(f){return setTimeout(f,c)})}function l(c){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",_=0;_<c;_++)d+=f[Math.floor(Math.random()*f.length)];return d}var u=function(){function c(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=f,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var _,v,S,T,E,L,y;return r(this,function(g){switch(g.label){case 0:_=Date.now()+l(4),v=Date.now()+d,S=s+"-"+f,T=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<v?[4,a(30)]:[3,8];case 2:return g.sent(),T.getItemSync(S)!==null?[3,5]:(E=this.id+"-"+f+"-"+_,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),T.setItemSync(S,JSON.stringify({id:this.id,iat:_,timeoutKey:E,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(L=T.getItemSync(S))!==null&&(y=JSON.parse(L)).id===this.id&&y.iat===_?(this.acquiredIatSet.add(_),this.refreshLockWhileAcquired(S,_),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(v)];case 6:g.sent(),g.label=7;case 7:return _=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,function(){var _=this;return r(this,function(v){return setTimeout(function(){return n(_,void 0,void 0,function(){var S,T,E;return r(this,function(L){switch(L.label){case 0:return[4,mn.default().lock(d)];case 1:return L.sent(),this.acquiredIatSet.has(d)?(S=this.storageHandler===void 0?o:this.storageHandler,(T=S.getItemSync(f))===null?(mn.default().unlock(d),[2]):((E=JSON.parse(T)).timeRefreshed=Date.now(),S.setItemSync(f,JSON.stringify(E)),mn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(mn.default().unlock(d),[2])}})})},1e3),[2]})})},c.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,new Promise(function(_){var v=!1,S=Date.now(),T=!1;function E(){if(T||(window.removeEventListener("storage",E),c.removeFromWaiting(E),clearTimeout(L),T=!0),!v){v=!0;var y=50-(Date.now()-S);y>0?setTimeout(_,y):_(null)}}window.addEventListener("storage",E),c.addToWaiting(E);var L=setTimeout(E,Math.max(0,f-Date.now()))})];case 1:return d.sent(),[2]}})})},c.addToWaiting=function(f){this.removeFromWaiting(f),c.waiters!==void 0&&c.waiters.push(f)},c.removeFromWaiting=function(f){c.waiters!==void 0&&(c.waiters=c.waiters.filter(function(d){return d!==f}))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach(function(f){return f()})},c.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}})})},c.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var d,_,v,S;return r(this,function(T){switch(T.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,_=s+"-"+f,(v=d.getItemSync(_))===null?[2]:(S=JSON.parse(v)).id!==this.id?[3,2]:[4,mn.default().lock(S.iat)];case 1:T.sent(),this.acquiredIatSet.delete(S.iat),d.removeItemSync(_),mn.default().unlock(S.iat),c.notifyWaiters(),T.label=2;case 2:return[2]}})})},c.lockCorrector=function(f){for(var d=Date.now()-5e3,_=f,v=[],S=0;;){var T=_.keySync(S);if(T===null)break;v.push(T),S++}for(var E=!1,L=0;L<v.length;L++){var y=v[L];if(y.includes(s)){var g=_.getItemSync(y);if(g!==null){var O=JSON.parse(g);(O.timeRefreshed===void 0&&O.timeAcquired<d||O.timeRefreshed!==void 0&&O.timeRefreshed<d)&&(_.removeItemSync(y),E=!0)}}}E&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=u}));const dp={timeoutInSeconds:60},Ml={name:"auth0-spa-js",version:"2.1.3"},Dl=()=>Date.now();class Fe extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Fe.prototype)}static fromPayload({error:t,error_description:n}){return new Fe(t,n)}}class Pi extends Fe{constructor(t,n,r,i=null){super(t,n),this.state=r,this.appState=i,Object.setPrototypeOf(this,Pi.prototype)}}class mr extends Fe{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,mr.prototype)}}class Ri extends mr{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Ri.prototype)}}class $i extends Fe{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,$i.prototype)}}class Mi extends Fe{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Mi.prototype)}}class ds extends Fe{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Fl(t,["default"])}', scope: '${Fl(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,ds.prototype)}}function Fl(e,t=[]){return e&&!t.includes(e)?e:""}const hs=()=>window.crypto,Di=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(hs().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},jl=e=>btoa(e),Fi=e=>{var{clientId:t}=e,n=gt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(i=>r[i]!==void 0).reduce((i,s)=>Object.assign(Object.assign({},i),{[s]:r[s]}),{}))(Object.assign({client_id:t},n))).toString()},Ul=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),hp=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},pp=async(e,t,n,r,i,s,o=1e4)=>i?(async(a,l,u,c,f,d,_)=>{return v={auth:{audience:l,scope:u},timeout:f,fetchUrl:a,fetchOptions:c,useFormData:_},S=d,new Promise(function(T,E){const L=new MessageChannel;L.port1.onmessage=function(y){y.data.error?E(new Error(y.data.error)):T(y.data),L.port1.close()},S.postMessage(v,[L.port2])});var v,S})(e,t,n,r,o,i,s):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([hp(a,l),new Promise((d,_)=>{f=setTimeout(()=>{c.abort(),_(new Error("Timeout when executing 'fetch'"))},u)})]).finally(()=>{clearTimeout(f)})})(e,r,o);async function mp(e,t){var{baseUrl:n,timeout:r,audience:i,scope:s,auth0Client:o,useFormData:a}=e,l=gt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?Fi(l):JSON.stringify(l);return await async function(c,f,d,_,v,S,T){let E,L=null;for(let N=0;N<3;N++)try{E=await pp(c,d,_,v,S,T,f),L=null;break}catch(P){L=P}if(L)throw L;const y=E.json,{error:g,error_description:O}=y,C=gt(y,["error","error_description"]),{ok:A}=E;if(!A){const N=O||`HTTP error. Unable to fetch ${c}`;throw g==="mfa_required"?new Mi(g,N,C.mfa_token):g==="missing_refresh_token"?new ds(d,_):new Fe(g||"request_error",N)}return C}(`${n}/oauth/token`,r,i||"default",s,{method:"POST",body:u,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Ml))}},t,a)}const ps=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class _t{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,i,s]=t.split("::");return new _t({clientId:r,scope:s,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:i}=t;return new _t({scope:n,audience:r,clientId:i})}}class gp{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class Wl{constructor(){this.enclosedCache=function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class _p{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Dl}async setIdToken(t,n,r){var i;const s=this.getIdTokenCacheKey(t);await this.cache.set(s,{id_token:n,decodedToken:r}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(s))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var r;let i=await this.cache.get(t.toKey());if(!i){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(i=await this.cache.get(l))}if(!i)return;const s=await this.nowProvider(),o=Math.floor(s/1e3);return i.expiresAt-n<o?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):i.body}async set(t){var n;const r=new _t({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter(i=>!t||i.includes(t)).reduce(async(i,s)=>{await i,await this.cache.remove(s)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new _t({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var i;const s=_t.fromKey(r),o=new Set(s.scope&&s.scope.split(" ")),a=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=s.scope&&a.reduce((u,c)=>u&&o.has(c),!0);return s.prefix==="@@auth0spajs@@"&&s.clientId===t.clientId&&s.audience===t.audience&&l})[0]}}class bp{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const gr=e=>typeof e=="number",yp=["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 gn=Ni(function(e,t){var n=pn&&pn.__assign||function(){return n=Object.assign||function(l){for(var u,c=1,f=arguments.length;c<f;c++)for(var d in u=arguments[c])Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var c="; "+l;return u===!0?c:c+"="+u}function i(l,u,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(f){if(typeof f.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*f.expires),f.expires=d}return r("Expires",f.expires?f.expires.toUTCString():"")+r("Domain",f.domain)+r("Path",f.path)+r("Secure",f.secure)+r("SameSite",f.sameSite)}(c)}function s(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<c.length;d++){var _=c[d].split("="),v=_.slice(1).join("=");v.charAt(0)==='"'&&(v=v.slice(1,-1));try{u[_[0].replace(f,decodeURIComponent)]=v.replace(f,decodeURIComponent)}catch{}}return u}function o(){return s(document.cookie)}function a(l,u,c){document.cookie=i(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=i,t.parse=s,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}});Ai(gn),gn.encode,gn.parse,gn.getAll;var vp=gn.get,Hl=gn.set,Kl=gn.remove;const Fn={get(e){const t=vp(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Hl(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Kl(e,n)}},wp={get:e=>Fn.get(e)||Fn.get(`_legacy_${e}`),save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Hl(`_legacy_${e}`,JSON.stringify(t),r),Fn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Kl(e,n),Fn.remove(e,t),Fn.remove(`_legacy_${e}`,t)}},kp={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 ji,Tp=function(e){return ji=ji||function(t,n,r){var i=function(l,u){var c=atob(l);return c}(t),s=i.indexOf(`
|
|
25
|
-
`,10)+1,o=
|
|
24
|
+
*/let _l;const es=e=>_l=e,bl=Symbol();function bi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var sr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(sr||(sr={}));function Rh(){const e=Ds(!0),t=e.run(()=>te({}));let n=[],r=[];const s=Ys({install(i){es(s),s._a=i,i.provide(bl,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Ph?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const yl=()=>{};function vl(e,t,n,r=yl){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Fo()&&cf(s),s}function En(e,...t){e.slice().forEach(n=>{n(...t)})}const Nh=e=>e(),wl=Symbol(),yi=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];bi(s)&&bi(r)&&e.hasOwnProperty(n)&&!be(r)&&!Dt(r)?e[n]=vi(s,r):e[n]=r}return e}const $h=Symbol();function Mh(e){return!bi(e)||!e.hasOwnProperty($h)}const{assign:Wt}=Object;function Dh(e){return!!(be(e)&&e.effect)}function jh(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=Rf(n.state.value[e]);return Wt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=Ys(rt(()=>{es(n);const m=n._s.get(e);return o[d].call(m,m)})),f),{}))}return l=kl(e,u,t,n,r,!0),l}function kl(e,t,n={},r,s,i){let o;const a=Wt({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],m;const y=r.state.value[e];!i&&!y&&(r.state.value[e]={}),te({});let T;function E(D){let U;u=c=!1,typeof D=="function"?(D(r.state.value[e]),U={type:sr.patchFunction,storeId:e,events:m}):(vi(r.state.value[e],D),U={type:sr.patchObject,payload:D,storeId:e,events:m});const Z=T=Symbol();ca().then(()=>{T===Z&&(u=!0)}),c=!0,En(f,U,r.state.value[e])}const g=i?function(){const{state:U}=n,Z=U?U():{};this.$patch(X=>{Wt(X,Z)})}:yl;function v(){o.stop(),f=[],d=[],r._s.delete(e)}const x=(D,U="")=>{if(wl in D)return D[yi]=U,D;const Z=function(){es(r);const X=Array.from(arguments),J=[],Ce=[];function st(B){J.push(B)}function Bt(B){Ce.push(B)}En(d,{args:X,name:Z[yi],store:C,after:st,onError:Bt});let me;try{me=D.apply(this&&this.$id===e?this:C,X)}catch(B){throw En(Ce,B),B}return me instanceof Promise?me.then(B=>(En(J,B),B)).catch(B=>(En(Ce,B),Promise.reject(B))):(En(J,me),me)};return Z[wl]=!0,Z[yi]=U,Z},_={_p:r,$id:e,$onAction:vl.bind(null,d),$patch:E,$reset:g,$subscribe(D,U={}){const Z=vl(f,D,U.detached,()=>X()),X=o.run(()=>ct(()=>r.state.value[e],J=>{(U.flush==="sync"?c:u)&&D({storeId:e,type:sr.direct,events:m},J)},Wt({},l,U)));return Z},$dispose:v},C=jr(_);r._s.set(e,C);const L=(r._a&&r._a.runWithContext||Nh)(()=>r._e.run(()=>(o=Ds()).run(()=>t({action:x}))));for(const D in L){const U=L[D];if(be(U)&&!Dh(U)||Dt(U))i||(y&&Mh(U)&&(be(U)?U.value=y[D]:vi(U,y[D])),r.state.value[e][D]=U);else if(typeof U=="function"){const Z=x(U,D);L[D]=Z,a.actions[D]=U}}return Wt(C,L),Wt(q(C),L),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:D=>{E(U=>{Wt(U,D)})}}),r._p.forEach(D=>{Wt(C,o.run(()=>D({store:C,app:r._a,pinia:r,options:a})))}),y&&i&&n.hydrate&&n.hydrate(C.$state,y),u=!0,c=!0,C}/*! #__NO_SIDE_EFFECTS__ */function Tl(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=vd();return a=a||(u?Fe(bl,null):null),a&&es(a),a=_l,a._s.has(r)||(i?kl(r,t,s,a):jh(r,s,a)),a._s.get(r)}return o.$id=r,o}const Il=Symbol("$auth0");function dt(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 rn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ki(e,t){return e(t={exports:{}},t.exports),t.exports}var sn=ki(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()}});wi(sn);var Fh=wi(ki(function(e,t){var n=rn&&rn.__awaiter||function(c,f,d,m){return new(d||(d=Promise))(function(y,T){function E(x){try{v(m.next(x))}catch(_){T(_)}}function g(x){try{v(m.throw(x))}catch(_){T(_)}}function v(x){x.done?y(x.value):new d(function(_){_(x.value)}).then(E,g)}v((m=m.apply(c,f||[])).next())})},r=rn&&rn.__generator||function(c,f){var d,m,y,T,E={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return T={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function g(v){return function(x){return function(_){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,m&&(y=2&_[0]?m.return:_[0]?m.throw||((y=m.return)&&y.call(m),0):m.next)&&!(y=y.call(m,_[1])).done)return y;switch(m=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return E.label++,{value:_[1],done:!1};case 5:E.label++,m=_[1],_=[0];continue;case 7:_=E.ops.pop(),E.trys.pop();continue;default:if(!((y=(y=E.trys).length>0&&y[y.length-1])||_[0]!==6&&_[0]!==2)){E=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){E.label=_[1];break}if(_[0]===6&&E.label<y[1]){E.label=y[1],y=_;break}if(y&&E.label<y[2]){E.label=y[2],E.ops.push(_);break}y[2]&&E.ops.pop(),E.trys.pop();continue}_=f.call(c,E)}catch(C){_=[6,C],m=0}finally{d=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([v,x])}}},s=rn;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,y,T,E,g,v,x;return r(this,function(_){switch(_.label){case 0:m=Date.now()+l(4),y=Date.now()+d,T=i+"-"+f,E=this.storageHandler===void 0?o:this.storageHandler,_.label=1;case 1:return Date.now()<y?[4,a(30)]:[3,8];case 2:return _.sent(),E.getItemSync(T)!==null?[3,5]:(g=this.id+"-"+f+"-"+m,[4,a(Math.floor(25*Math.random()))]);case 3:return _.sent(),E.setItemSync(T,JSON.stringify({id:this.id,iat:m,timeoutKey:g,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return _.sent(),(v=E.getItemSync(T))!==null&&(x=JSON.parse(v)).id===this.id&&x.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(T,m),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(y)];case 6:_.sent(),_.label=7;case 7:return m=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,function(){var m=this;return r(this,function(y){return setTimeout(function(){return n(m,void 0,void 0,function(){var T,E,g;return r(this,function(v){switch(v.label){case 0:return[4,sn.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(T=this.storageHandler===void 0?o:this.storageHandler,(E=T.getItemSync(f))===null?(sn.default().unlock(d),[2]):((g=JSON.parse(E)).timeRefreshed=Date.now(),T.setItemSync(f,JSON.stringify(g)),sn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(sn.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 y=!1,T=Date.now(),E=!1;function g(){if(E||(window.removeEventListener("storage",g),c.removeFromWaiting(g),clearTimeout(v),E=!0),!y){y=!0;var x=50-(Date.now()-T);x>0?setTimeout(m,x):m(null)}}window.addEventListener("storage",g),c.addToWaiting(g);var v=setTimeout(g,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,y,T;return r(this,function(E){switch(E.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,m=i+"-"+f,(y=d.getItemSync(m))===null?[2]:(T=JSON.parse(y)).id!==this.id?[3,2]:[4,sn.default().lock(T.iat)];case 1:E.sent(),this.acquiredIatSet.delete(T.iat),d.removeItemSync(m),sn.default().unlock(T.iat),c.notifyWaiters(),E.label=2;case 2:return[2]}})})},c.lockCorrector=function(f){for(var d=Date.now()-5e3,m=f,y=[],T=0;;){var E=m.keySync(T);if(E===null)break;y.push(E),T++}for(var g=!1,v=0;v<y.length;v++){var x=y[v];if(x.includes(i)){var _=m.getItemSync(x);if(_!==null){var C=JSON.parse(_);(C.timeRefreshed===void 0&&C.timeAcquired<d||C.timeRefreshed!==void 0&&C.timeRefreshed<d)&&(m.removeItemSync(x),g=!0)}}}g&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=u}));const Uh={timeoutInSeconds:60},El={name:"auth0-spa-js",version:"2.1.3"},xl=()=>Date.now();class Ne extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ne.prototype)}static fromPayload({error:t,error_description:n}){return new Ne(t,n)}}class Ti extends Ne{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Ti.prototype)}}class ir extends Ne{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,ir.prototype)}}class Ii extends ir{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Ii.prototype)}}class Ei extends Ne{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Ei.prototype)}}class xi extends Ne{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,xi.prototype)}}class ts extends Ne{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Sl(t,["default"])}', scope: '${Sl(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,ts.prototype)}}function Sl(e,t=[]){return e&&!t.includes(e)?e:""}const ns=()=>window.crypto,Si=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(ns().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Ol=e=>btoa(e),Oi=e=>{var{clientId:t}=e,n=dt(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()},Cl=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Wh=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Hh=async(e,t,n,r,s,i,o=1e4)=>s?(async(a,l,u,c,f,d,m)=>{return y={auth:{audience:l,scope:u},timeout:f,fetchUrl:a,fetchOptions:c,useFormData:m},T=d,new Promise(function(E,g){const v=new MessageChannel;v.port1.onmessage=function(x){x.data.error?g(new Error(x.data.error)):E(x.data),v.port1.close()},T.postMessage(y,[v.port2])});var y,T})(e,t,n,r,o,s,i):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([Wh(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 zh(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a}=e,l=dt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?Oi(l):JSON.stringify(l);return await async function(c,f,d,m,y,T,E){let g,v=null;for(let D=0;D<3;D++)try{g=await Hh(c,d,m,y,T,E,f),v=null;break}catch(U){v=U}if(v)throw v;const x=g.json,{error:_,error_description:C}=x,$=dt(x,["error","error_description"]),{ok:L}=g;if(!L){const D=C||`HTTP error. Unable to fetch ${c}`;throw _==="mfa_required"?new xi(_,D,$.mfa_token):_==="missing_refresh_token"?new ts(d,m):new Ne(_||"request_error",D)}return $}(`${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||El))}},t,a)}const rs=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ht{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 ht({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new ht({scope:n,audience:r,clientId:s})}}let Kh=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 Al{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 Vh{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||xl}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 ht({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 ht({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var s;const i=ht.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 Bh=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 or=e=>typeof e=="number",Gh=["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 on=ki(function(e,t){var n=rn&&rn.__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("="),y=m.slice(1).join("=");y.charAt(0)==='"'&&(y=y.slice(1,-1));try{u[m[0].replace(f,decodeURIComponent)]=y.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}))}});wi(on),on.encode,on.parse,on.getAll;var Zh=on.get,Ll=on.set,Pl=on.remove;const xn={get(e){const t=Zh(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),Ll(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Pl(e,n)}},Yh={get:e=>xn.get(e)||xn.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),Ll(`_legacy_${e}`,JSON.stringify(t),r),xn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Pl(e,n),xn.remove(e,t),xn.remove(`_legacy_${e}`,t)}},Xh={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 Ci,Jh=function(e){return Ci=Ci||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(Ci,e)};const Ai={};class qh{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 Qh={memory:()=>new Al().enclosedCache,localstorage:()=>new Kh},Rl=e=>Qh[e],Nl=e=>{const{openUrl:t,onRedirect:n}=e,r=dt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},Li=new Fh;class ep{constructor(t){let n,r;if(this.userCache=new Al().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Li.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(!ns())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(ns().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",!zl(n))throw new Error(`Invalid cache location "${n}"`);r=zl(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Fn:wp,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:kp;var s;this.scope=ps("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new bp(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Dl,this.cacheManager=new _p(r,r.allKeys?void 0:new Ep(r,this.options.clientId),this.nowProvider),this.domainUrl=(s=this.options.domain,/^https?:\/\//.test(s)?s:`https://${s}`),this.tokenIssuer=((o,a)=>o?o.startsWith("https://")?o:`https://${o}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new Tp)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ml)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Fi(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(f=>{const d=f.split("."),[_,v,S]=d;if(d.length!==3||!_||!v||!S)throw new Error("ID token could not be decoded");const T=JSON.parse(Ul(v)),E={__raw:f},L={};return Object.keys(T).forEach(y=>{E[y]=T[y],yp.includes(y)||(L[y]=T[y])}),{encoded:{header:_,payload:v,signature:S},header:JSON.parse(Ul(_)),claims:E,user:L}})(o.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==o.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${o.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(o.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==o.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${o.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==o.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but found "${a.claims.aud}"`);if(o.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==o.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${o.nonce}", found "${a.claims.nonce}"`)}if(o.max_age&&!gr(a.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(a.claims.exp==null||!gr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!gr(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,u=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),u>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${u}) is after expiration time (${c})`);if(a.claims.nbf!=null&&gr(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-l),u<f)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${u}) is before ${f}`)}if(a.claims.auth_time!=null&&gr(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),u>f)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${u}) is after last auth at ${f}`)}if(o.organization){const f=o.organization.trim();if(f.startsWith("org_")){const d=f;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_id}"`)}else{const d=f.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:r,leeway:this.options.leeway,max_age:(s=this.options.authorizationParams.max_age,typeof s!="string"?s:parseInt(s,10)||void 0),now:i});var s}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const i=jl(Di()),s=jl(Di()),o=Di(),a=(c=>{const f=new Uint8Array(c);return(d=>{const _={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,v=>_[v])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async c=>await hs().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,d,_,v,S,T,E)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),d),{scope:ps(f,d.scope),response_type:"code",response_mode:E||"query",state:_,nonce:v,redirect_uri:T||c.authorizationParams.redirect_uri,code_challenge:S,code_challenge_method:"S256"}))(this.options,this.scope,t,i,s,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:s,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:u}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const s=await(a=>new Promise((l,u)=>{let c;const f=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(f),clearTimeout(d),window.removeEventListener("message",c,!1),u(new $i(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(f),u(new Ri(a.popup)),window.removeEventListener("message",c,!1)},1e3*(a.timeoutInSeconds||60));c=function(_){if(_.data&&_.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(f),window.removeEventListener("message",c,!1),a.popup.close(),_.data.response.error)return u(Fe.fromPayload(_.data.response));l(_.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==s.state)throw new Fe("state_mismatch","Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:s.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organization:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=Vl(t),{openUrl:i,fragment:s,appState:o}=r,a=gt(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=u,f=gt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o}),l&&{organization:l}));const d=s?`${c}#${s}`:c;i?await i(d):window.location.assign(d)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:i,error:s,error_description:o}=(f=>{f.indexOf("#")>-1&&(f=f.substring(0,f.indexOf("#")));const d=new URLSearchParams(f);return{state:d.get("state"),code:d.get("code")||void 0,error:d.get("error")||void 0,error_description:d.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Fe("missing_transaction","Invalid state");if(this.transactionManager.remove(),s)throw new Pi(s,o||s,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Fe("state_mismatch","Invalid state");const l=a.organization,u=a.nonce,c=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:i},c?{redirect_uri:c}:{}),{nonceIn:u,organization:l}),{appState:a.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:ps(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((s,o)=>{let a=Ui[o];return a||(a=s().finally(()=>{delete Ui[o],a=null}),Ui[o]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=gt(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,s=3)=>{for(let o=0;o<s;o++)if(await i())return!0;return!1})(()=>Wi.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new mr;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:s,access_token:o,oauthTokenScope:a,expires_in:l}=i;return Object.assign(Object.assign({id_token:s,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Wi.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:ps(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},dp),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new _t({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,i=gt(n,["federated"]),s=r?"&federated":"";return this._url(`/v2/logout?${Fi(Object.assign({clientId:t.clientId},i))}`)+s}async logout(t={}){const n=Vl(t),{openUrl:r}=n,i=gt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const s=this._buildLogoutUrl(i);r?await r(s):r!==!1&&window.location.assign(s)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:i,state:s,nonce:o,code_verifier:a,redirect_uri:l,scope:u,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Fe("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,d=await((v,S,T=60)=>new Promise((E,L)=>{const y=window.document.createElement("iframe");y.setAttribute("width","0"),y.setAttribute("height","0"),y.style.display="none";const g=()=>{window.document.body.contains(y)&&(window.document.body.removeChild(y),window.removeEventListener("message",O,!1))};let O;const C=setTimeout(()=>{L(new mr),g()},1e3*T);O=function(A){if(A.origin!=S||!A.data||A.data.type!=="authorization_response")return;const N=A.source;N&&N.close(),A.data.response.error?L(Fe.fromPayload(A.data.response)):E(A.data.response),clearTimeout(C),window.removeEventListener("message",O,!1),setTimeout(g,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(y),y.setAttribute("src",v)}))(i,this.domainUrl,f);if(s!==d.state)throw new Fe("state_mismatch","Invalid state");const _=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:d.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},_),{scope:u,oauthTokenScope:_.scope,audience:c})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new _t({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new ds(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const s=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),i&&{timeout:i}));return Object.assign(Object.assign({},s),{scope:t.authorizationParams.scope,oauthTokenScope:s.scope,audience:t.authorizationParams.audience||"default"})}catch(s){if((s.message.indexOf("Missing Refresh Token")>-1||s.message&&s.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw s}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,i=gt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new _t({clientId:this.options.clientId,audience:t,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:r}){const i=await this.cacheManager.get(new _t({scope:t,audience:n,clientId:r}),60);if(i&&i.access_token){const{access_token:s,oauthTokenScope:o,expires_in:a}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:s},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:r,organization:i}=n||{},s=await mp(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(s.id_token,r,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},s),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),s.scope?{oauthTokenScope:s.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(i||o.claims.org_id),Object.assign(Object.assign({},s),{decodedToken:o})}}function _r(e){e?.redirect_uri&&(console.warn("Using `redirect_uri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirect_uri,delete e.redirect_uri)}const _n=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},Op={isLoading:re(!1),isAuthenticated:re(!1),user:re(void 0),idTokenClaims:re(void 0),error:re(null),loginWithPopup:_n,loginWithRedirect:_n,getAccessTokenSilently:_n,getAccessTokenWithPopup:_n,logout:_n,checkSession:_n,handleRedirectCallback:_n},xp=re(Op);class Cp{constructor(t,n){var r,i;this.clientOptions=t,this.pluginOptions=n,this.isLoading=re(!0),this.isAuthenticated=re(!1),this.user=re({}),this.idTokenClaims=re(),this.error=re(null),r=this,i=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter(s=>!i.includes(s)).forEach(s=>r[s]=r[s].bind(r))}install(t){this._client=new Sp(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide($l,this),xp.value=this}async loginWithRedirect(t){return _r(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return _r(t),this.__proxy(()=>this._client.loginWithPopup(t,n))}async logout(t){return t?.openUrl||t?.openUrl===!1?this.__proxy(()=>this._client.logout(t)):this._client.logout(t)}async getAccessTokenSilently(t={}){return _r(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return _r(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,r,i;const s=window.location.search;try{if((s.includes("code=")||s.includes("error="))&&s.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(r=a?.target)!==null&&r!==void 0?r:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((i=this.pluginOptions)===null||i===void 0?void 0:i.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let r;try{r=await t(),this.error.value=null}catch(i){throw this.error.value=i,i}finally{n&&await this.__refreshState()}return r}}function Bl(e,t){return _r(e),new Cp(e,t)}function Hi(){return Be($l)}/*!
|
|
28
|
-
* shared
|
|
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",!Rl(n))throw new Error(`Invalid cache location "${n}"`);r=Rl(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?xn:Yh,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:Xh;var i;this.scope=rs("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Bh(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||xl,this.cacheManager=new Vh(r,r.allKeys?void 0:new qh(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 Jh)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||El)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Oi(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,y,T]=d;if(d.length!==3||!m||!y||!T)throw new Error("ID token could not be decoded");const E=JSON.parse(Cl(y)),g={__raw:f},v={};return Object.keys(E).forEach(x=>{g[x]=E[x],Gh.includes(x)||(v[x]=E[x])}),{encoded:{header:m,payload:y,signature:T},header:JSON.parse(Cl(m)),claims:g,user:v}})(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&&!or(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||!or(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!or(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&&or(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&&or(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=Ol(Si()),i=Ol(Si()),o=Si(),a=(c=>{const f=new Uint8Array(c);return(d=>{const m={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,y=>m[y])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async c=>await ns().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,d,m,y,T,E,g)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),d),{scope:rs(f,d.scope),response_type:"code",response_mode:g||"query",state:m,nonce:y,redirect_uri:E||c.authorizationParams.redirect_uri,code_challenge:T,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 Ei(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(f),u(new Ii(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(Ne.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 Ne("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=Nl(t),{openUrl:s,fragment:i,appState:o}=r,a=dt(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=dt(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 Ne("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new Ti(i,o||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Ne("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:rs(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),s=await((i,o)=>{let a=Ai[o];return a||(a=i().finally(()=>{delete Ai[o],a=null}),Ai[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=dt(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})(()=>Li.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new ir;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 Li.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:rs(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Uh),n),await this.loginWithPopup(s,n),(await this.cacheManager.get(new ht({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=dt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Oi(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){const n=Nl(t),{openUrl:r}=n,s=dt(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 Ne("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((y,T,E=60)=>new Promise((g,v)=>{const x=window.document.createElement("iframe");x.setAttribute("width","0"),x.setAttribute("height","0"),x.style.display="none";const _=()=>{window.document.body.contains(x)&&(window.document.body.removeChild(x),window.removeEventListener("message",C,!1))};let C;const $=setTimeout(()=>{v(new ir),_()},1e3*E);C=function(L){if(L.origin!=T||!L.data||L.data.type!=="authorization_response")return;const D=L.source;D&&D.close(),L.data.response.error?v(Ne.fromPayload(L.data.response)):g(L.data.response),clearTimeout($),window.removeEventListener("message",C,!1),setTimeout(_,2e3)},window.addEventListener("message",C,!1),window.document.body.appendChild(x),x.setAttribute("src",y)}))(s,this.domainUrl,f);if(i!==d.state)throw new Ne("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 ht({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 ts(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=dt(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 ht({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 ht({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 zh(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 ar(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 an=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},tp={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:an,loginWithRedirect:an,getAccessTokenSilently:an,getAccessTokenWithPopup:an,logout:an,checkSession:an,handleRedirectCallback:an},np=te(tp);class rp{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 ep(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(Il,this),np.value=this}async loginWithRedirect(t){return ar(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return ar(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 ar(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return ar(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 $l(e,t){return ar(e),new rp(e,t)}function sp(){return Fe(Il)}/*!
|
|
28
|
+
* shared v10.0.4
|
|
29
29
|
* (c) 2024 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
|
-
*/const
|
|
32
|
-
* message-compiler
|
|
31
|
+
*/const ss=typeof window<"u",Ht=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ip=(e,t,n)=>op({l:e,k:t,s:n}),op=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Te=e=>typeof e=="number"&&isFinite(e),ap=e=>Pi(e)==="[object Date]",Sn=e=>Pi(e)==="[object RegExp]",is=e=>G(e)&&Object.keys(e).length===0,Ie=Object.assign;let Ml;const ln=()=>Ml||(Ml=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dl(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const lp=Object.prototype.hasOwnProperty;function os(e,t){return lp.call(e,t)}const ye=Array.isArray,he=e=>typeof e=="function",F=e=>typeof e=="string",ne=e=>typeof e=="boolean",re=e=>e!==null&&typeof e=="object",cp=e=>re(e)&&he(e.then)&&he(e.catch),jl=Object.prototype.toString,Pi=e=>jl.call(e),G=e=>Pi(e)==="[object Object]",up=e=>e==null?"":ye(e)||G(e)&&e.toString===jl?JSON.stringify(e,null,2):String(e);function Ri(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function fp(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const as=e=>!re(e)||ye(e);function ls(e,t){if(as(e)||as(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=>{re(r[i])&&!re(s[i])&&(s[i]=Array.isArray(r[i])?[]:{}),as(s[i])||as(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]})})}}/*!
|
|
32
|
+
* message-compiler v10.0.4
|
|
33
33
|
* (c) 2024 kazuya kawaguchi
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/function
|
|
36
|
-
`,Bp="\u2028",Gp="\u2029";function Yp(e){const t=e;let n=0,r=1,i=1,s=0;const o=A=>t[A]===Vp&&t[A+1]===ze,a=A=>t[A]===ze,l=A=>t[A]===Gp,u=A=>t[A]===Bp,c=A=>o(A)||a(A)||l(A)||u(A),f=()=>n,d=()=>r,_=()=>i,v=()=>s,S=A=>o(A)||l(A)||u(A)?ze:t[A],T=()=>S(n),E=()=>S(n+s);function L(){return s=0,c(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+s)&&s++,s++,t[n+s]}function g(){n=0,r=1,i=1,s=0}function O(A=0){s=A}function C(){const A=n+s;for(;A!==n;)L();s=0}return{index:f,line:d,column:_,peekOffset:v,charAt:S,currentChar:T,currentPeek:E,next:L,peek:y,reset:g,resetPeek:O,skipToPeek:C}}const Zt=void 0,Xp=".",tc="'",Zp="tokenizer";function Jp(e,t={}){const n=t.location!==!1,r=Yp(e),i=()=>r.index(),s=()=>Fp(r.line(),r.column(),r.index()),o=s(),a=i(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(h,p,w,...$){const j=u();if(p.column+=w,p.offset+=w,c){const D=n?ws(j.startLoc,p):null,k=jn(h,D,{domain:Zp,args:$});c(k)}}function d(h,p,w){h.endLoc=s(),h.currentType=p;const $={type:p};return n&&($.loc=ws(h.startLoc,h.endLoc)),w!=null&&($.value=w),$}const _=h=>d(h,14);function v(h,p){return h.currentChar()===p?(h.next(),p):(f(B.EXPECTED_TOKEN,s(),0,p),"")}function S(h){let p="";for(;h.currentPeek()===Pt||h.currentPeek()===ze;)p+=h.currentPeek(),h.peek();return p}function T(h){const p=S(h);return h.skipToPeek(),p}function E(h){if(h===Zt)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function L(h){if(h===Zt)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function y(h,p){const{currentType:w}=p;if(w!==2)return!1;S(h);const $=E(h.currentPeek());return h.resetPeek(),$}function g(h,p){const{currentType:w}=p;if(w!==2)return!1;S(h);const $=h.currentPeek()==="-"?h.peek():h.currentPeek(),j=L($);return h.resetPeek(),j}function O(h,p){const{currentType:w}=p;if(w!==2)return!1;S(h);const $=h.currentPeek()===tc;return h.resetPeek(),$}function C(h,p){const{currentType:w}=p;if(w!==8)return!1;S(h);const $=h.currentPeek()===".";return h.resetPeek(),$}function A(h,p){const{currentType:w}=p;if(w!==9)return!1;S(h);const $=E(h.currentPeek());return h.resetPeek(),$}function N(h,p){const{currentType:w}=p;if(!(w===8||w===12))return!1;S(h);const $=h.currentPeek()===":";return h.resetPeek(),$}function P(h,p){const{currentType:w}=p;if(w!==10)return!1;const $=()=>{const D=h.currentPeek();return D==="{"?E(h.peek()):D==="@"||D==="%"||D==="|"||D===":"||D==="."||D===Pt||!D?!1:D===ze?(h.peek(),$()):z(h,!1)},j=$();return h.resetPeek(),j}function Y(h){S(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function te(h){const p=S(h),w=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:w,hasSpace:p.length>0}}function z(h,p=!0){const w=(j=!1,D="",k=!1)=>{const x=h.currentPeek();return x==="{"?D==="%"?!1:j:x==="@"||!x?D==="%"?!0:j:x==="%"?(h.peek(),w(j,"%",!0)):x==="|"?D==="%"||k?!0:!(D===Pt||D===ze):x===Pt?(h.peek(),w(!0,Pt,k)):x===ze?(h.peek(),w(!0,ze,k)):!0},$=w();return p&&h.resetPeek(),$}function de(h,p){const w=h.currentChar();return w===Zt?Zt:p(w)?(h.next(),w):null}function Je(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function kt(h){return de(h,Je)}function ie(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36||p===45}function q(h){return de(h,ie)}function oe(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function qe(h){return de(h,oe)}function Tt(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Oe(h){return de(h,Tt)}function Ae(h){let p="",w="";for(;p=qe(h);)w+=p;return w}function Qt(h){T(h);const p=h.currentChar();return p!=="%"&&f(B.EXPECTED_TOKEN,s(),0,p),h.next(),"%"}function en(h){let p="";for(;;){const w=h.currentChar();if(w==="{"||w==="}"||w==="@"||w==="|"||!w)break;if(w==="%")if(z(h))p+=w,h.next();else break;else if(w===Pt||w===ze)if(z(h))p+=w,h.next();else{if(Y(h))break;p+=w,h.next()}else p+=w,h.next()}return p}function xn(h){T(h);let p="",w="";for(;p=q(h);)w+=p;return h.currentChar()===Zt&&f(B.UNTERMINATED_CLOSING_BRACE,s(),0),w}function ct(h){T(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${Ae(h)}`):p+=Ae(h),h.currentChar()===Zt&&f(B.UNTERMINATED_CLOSING_BRACE,s(),0),p}function Dt(h){return h!==tc&&h!==ze}function Ft(h){T(h),v(h,"'");let p="",w="";for(;p=de(h,Dt);)p==="\\"?w+=tn(h):w+=p;const $=h.currentChar();return $===ze||$===Zt?(f(B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),$===ze&&(h.next(),v(h,"'")),w):(v(h,"'"),w)}function tn(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return it(h,p,4);case"U":return it(h,p,6);default:return f(B.UNKNOWN_ESCAPE_SEQUENCE,s(),0,p),""}}function it(h,p,w){v(h,p);let $="";for(let j=0;j<w;j++){const D=Oe(h);if(!D){f(B.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${p}${$}${h.currentChar()}`);break}$+=D}return`\\${p}${$}`}function nn(h){return h!=="{"&&h!=="}"&&h!==Pt&&h!==ze}function rn(h){T(h);let p="",w="";for(;p=de(h,nn);)w+=p;return w}function b(h){let p="",w="";for(;p=kt(h);)w+=p;return w}function m(h){const p=w=>{const $=h.currentChar();return $==="{"||$==="%"||$==="@"||$==="|"||$==="("||$===")"||!$||$===Pt?w:(w+=$,h.next(),p(w))};return p("")}function I(h){T(h);const p=v(h,"|");return T(h),p}function F(h,p){let w=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(B.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),h.next(),w=d(p,2,"{"),T(h),p.braceNest++,w;case"}":return p.braceNest>0&&p.currentType===2&&f(B.EMPTY_PLACEHOLDER,s(),0),h.next(),w=d(p,3,"}"),p.braceNest--,p.braceNest>0&&T(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),w;case"@":return p.braceNest>0&&f(B.UNTERMINATED_CLOSING_BRACE,s(),0),w=R(h,p)||_(p),p.braceNest=0,w;default:{let j=!0,D=!0,k=!0;if(Y(h))return p.braceNest>0&&f(B.UNTERMINATED_CLOSING_BRACE,s(),0),w=d(p,1,I(h)),p.braceNest=0,p.inLinked=!1,w;if(p.braceNest>0&&(p.currentType===5||p.currentType===6||p.currentType===7))return f(B.UNTERMINATED_CLOSING_BRACE,s(),0),p.braceNest=0,M(h,p);if(j=y(h,p))return w=d(p,5,xn(h)),T(h),w;if(D=g(h,p))return w=d(p,6,ct(h)),T(h),w;if(k=O(h,p))return w=d(p,7,Ft(h)),T(h),w;if(!j&&!D&&!k)return w=d(p,13,rn(h)),f(B.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,w.value),T(h),w;break}}return w}function R(h,p){const{currentType:w}=p;let $=null;const j=h.currentChar();switch((w===8||w===9||w===12||w===10)&&(j===ze||j===Pt)&&f(B.INVALID_LINKED_FORMAT,s(),0),j){case"@":return h.next(),$=d(p,8,"@"),p.inLinked=!0,$;case".":return T(h),h.next(),d(p,9,".");case":":return T(h),h.next(),d(p,10,":");default:return Y(h)?($=d(p,1,I(h)),p.braceNest=0,p.inLinked=!1,$):C(h,p)||N(h,p)?(T(h),R(h,p)):A(h,p)?(T(h),d(p,12,b(h))):P(h,p)?(T(h),j==="{"?F(h,p)||$:d(p,11,m(h))):(w===8&&f(B.INVALID_LINKED_FORMAT,s(),0),p.braceNest=0,p.inLinked=!1,M(h,p))}}function M(h,p){let w={type:14};if(p.braceNest>0)return F(h,p)||_(p);if(p.inLinked)return R(h,p)||_(p);switch(h.currentChar()){case"{":return F(h,p)||_(p);case"}":return f(B.UNBALANCED_CLOSING_BRACE,s(),0),h.next(),d(p,3,"}");case"@":return R(h,p)||_(p);default:{if(Y(h))return w=d(p,1,I(h)),p.braceNest=0,p.inLinked=!1,w;const{isModulo:j,hasSpace:D}=te(h);if(j)return D?d(p,0,en(h)):d(p,4,Qt(h));if(z(h))return d(p,0,en(h));break}}return w}function U(){const{currentType:h,offset:p,startLoc:w,endLoc:$}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=w,l.lastEndLoc=$,l.offset=i(),l.startLoc=s(),r.currentChar()===Zt?d(l,14):M(r,l)}return{nextToken:U,currentOffset:i,currentPosition:s,context:u}}const qp="parser",Qp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function em(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 tm(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function i(y,g,O,C,...A){const N=y.currentPosition();if(N.offset+=C,N.column+=C,n){const P=t?ws(O,N):null,Y=jn(g,P,{domain:qp,args:A});n(Y)}}function s(y,g,O,C,...A){const N=y.currentPosition();if(N.offset+=C,N.column+=C,r){const P=t?ws(O,N):null;r(Hp(g,P,A))}}function o(y,g,O){const C={type:y};return t&&(C.start=g,C.end=g,C.loc={start:O,end:O}),C}function a(y,g,O,C){t&&(y.end=g,y.loc&&(y.loc.end=O))}function l(y,g){const O=y.context(),C=o(3,O.offset,O.startLoc);return C.value=g,a(C,y.currentOffset(),y.currentPosition()),C}function u(y,g){const O=y.context(),{lastOffset:C,lastStartLoc:A}=O,N=o(5,C,A);return N.index=parseInt(g,10),y.nextToken(),a(N,y.currentOffset(),y.currentPosition()),N}function c(y,g,O){const C=y.context(),{lastOffset:A,lastStartLoc:N}=C,P=o(4,A,N);return P.key=g,O===!0&&(P.modulo=!0),y.nextToken(),a(P,y.currentOffset(),y.currentPosition()),P}function f(y,g){const O=y.context(),{lastOffset:C,lastStartLoc:A}=O,N=o(9,C,A);return N.value=g.replace(Qp,em),y.nextToken(),a(N,y.currentOffset(),y.currentPosition()),N}function d(y){const g=y.nextToken(),O=y.context(),{lastOffset:C,lastStartLoc:A}=O,N=o(8,C,A);return g.type!==12?(i(y,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.lastStartLoc,0),N.value="",a(N,C,A),{nextConsumeToken:g,node:N}):(g.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,at(g)),N.value=g.value||"",a(N,y.currentOffset(),y.currentPosition()),{node:N})}function _(y,g){const O=y.context(),C=o(7,O.offset,O.startLoc);return C.value=g,a(C,y.currentOffset(),y.currentPosition()),C}function v(y){const g=y.context(),O=o(6,g.offset,g.startLoc);let C=y.nextToken();if(C.type===9){const A=d(y);O.modifier=A.node,C=A.nextConsumeToken||y.nextToken()}switch(C.type!==10&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),C=y.nextToken(),C.type===2&&(C=y.nextToken()),C.type){case 11:C.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),O.key=_(y,C.value||"");break;case 5:C.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),O.key=c(y,C.value||"");break;case 6:C.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),O.key=u(y,C.value||"");break;case 7:C.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(C)),O.key=f(y,C.value||"");break;default:{i(y,B.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const A=y.context(),N=o(7,A.offset,A.startLoc);return N.value="",a(N,A.offset,A.startLoc),O.key=N,a(O,A.offset,A.startLoc),{nextConsumeToken:C,node:O}}}return a(O,y.currentOffset(),y.currentPosition()),{node:O}}function S(y){const g=y.context(),O=g.currentType===1?y.currentOffset():g.offset,C=g.currentType===1?g.endLoc:g.startLoc,A=o(2,O,C);A.items=[];let N=null,P=null;do{const z=N||y.nextToken();switch(N=null,z.type){case 0:z.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(z)),A.items.push(l(y,z.value||""));break;case 6:z.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(z)),A.items.push(u(y,z.value||""));break;case 4:P=!0;break;case 5:z.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(z)),A.items.push(c(y,z.value||"",!!P)),P&&(s(y,Ki.USE_MODULO_SYNTAX,g.lastStartLoc,0,at(z)),P=null);break;case 7:z.value==null&&i(y,B.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,at(z)),A.items.push(f(y,z.value||""));break;case 8:{const de=v(y);A.items.push(de.node),N=de.nextConsumeToken||null;break}}}while(g.currentType!==14&&g.currentType!==1);const Y=g.currentType===1?g.lastOffset:y.currentOffset(),te=g.currentType===1?g.lastEndLoc:y.currentPosition();return a(A,Y,te),A}function T(y,g,O,C){const A=y.context();let N=C.items.length===0;const P=o(1,g,O);P.cases=[],P.cases.push(C);do{const Y=S(y);N||(N=Y.items.length===0),P.cases.push(Y)}while(A.currentType!==14);return N&&i(y,B.MUST_HAVE_MESSAGES_IN_PLURAL,O,0),a(P,y.currentOffset(),y.currentPosition()),P}function E(y){const g=y.context(),{offset:O,startLoc:C}=g,A=S(y);return g.currentType===14?A:T(y,O,C,A)}function L(y){const g=Jp(y,ql({},e)),O=g.context(),C=o(0,O.offset,O.startLoc);return t&&C.loc&&(C.loc.source=y),C.body=E(g),e.onCacheKey&&(C.cacheKey=e.onCacheKey(y)),O.currentType!==14&&i(g,B.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,y[O.offset]||""),a(C,g.currentOffset(),g.currentPosition()),C}return{parse:L}}function at(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function nm(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function nc(e,t){for(let n=0;n<e.length;n++)zi(e[n],t)}function zi(e,t){switch(e.type){case 1:nc(e.cases,t),t.helper("plural");break;case 2:nc(e.items,t);break;case 6:{zi(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function rm(e,t={}){const n=nm(e);n.helper("normalize"),e.body&&zi(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function sm(e){const t=e.body;return t.type===2?rc(t):t.cases.forEach(n=>rc(n)),e}function rc(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=ec(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const im="minifier";function Un(e){switch(e.t=e.type,e.type){case 0:{const t=e;Un(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++)Un(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++)Un(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;Un(t.key),t.k=t.key,delete t.key,t.modifier&&(Un(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw jn(B.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:im,args:[e.type]})}delete e.type}const om="parser";function am(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:s}=t,o=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:s,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function u(T,E){a.code+=T}function c(T,E=!0){const L=E?i:"";u(s?L+" ".repeat(T):L)}function f(T=!0){const E=++a.indentLevel;T&&c(E)}function d(T=!0){const E=--a.indentLevel;T&&c(E)}function _(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:_,helper:T=>`_${T}`,needIndent:()=>a.needIndent}}function lm(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Wn(e,t.key),t.modifier?(e.push(", "),Wn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function cm(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s<i&&(Wn(e,t.items[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function um(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s<i&&(Wn(e,t.cases[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function fm(e,t){t.body?Wn(e,t.body):e.push("null")}function Wn(e,t){const{helper:n}=e;switch(t.type){case 0:fm(e,t);break;case 1:um(e,t);break;case 2:cm(e,t);break;case 6:lm(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw jn(B.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:om,args:[t.type]})}}const dm=(e,t={})=>{const n=Ql(t.mode)?t.mode:"normal",r=Ql(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
37
|
-
`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=
|
|
38
|
-
* core-base
|
|
35
|
+
*/function dp(e,t,n){return{line:e,column:t,offset:n}}function Ni(e,t,n){return{start:e,end:t}}const ae={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},hp=17;function cs(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 pp(e){throw e}const xt=" ",mp="\r",Ue=`
|
|
36
|
+
`,gp="\u2028",_p="\u2029";function bp(e){const t=e;let n=0,r=1,s=1,i=0;const o=L=>t[L]===mp&&t[L+1]===Ue,a=L=>t[L]===Ue,l=L=>t[L]===_p,u=L=>t[L]===gp,c=L=>o(L)||a(L)||l(L)||u(L),f=()=>n,d=()=>r,m=()=>s,y=()=>i,T=L=>o(L)||l(L)||u(L)?Ue:t[L],E=()=>T(n),g=()=>T(n+i);function v(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function x(){return o(n+i)&&i++,i++,t[n+i]}function _(){n=0,r=1,s=1,i=0}function C(L=0){i=L}function $(){const L=n+i;for(;L!==n;)v();i=0}return{index:f,line:d,column:m,peekOffset:y,charAt:T,currentChar:E,currentPeek:g,next:v,peek:x,reset:_,resetPeek:C,skipToPeek:$}}const zt=void 0,yp=".",Fl="'",vp="tokenizer";function wp(e,t={}){const n=t.location!==!1,r=bp(e),s=()=>r.index(),i=()=>dp(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,I,...O){const P=u();if(p.column+=I,p.offset+=I,c){const M=n?Ni(P.startLoc,p):null,k=cs(h,M,{domain:vp,args:O});c(k)}}function d(h,p,I){h.endLoc=i(),h.currentType=p;const O={type:p};return n&&(O.loc=Ni(h.startLoc,h.endLoc)),I!=null&&(O.value=I),O}const m=h=>d(h,13);function y(h,p){return h.currentChar()===p?(h.next(),p):(f(ae.EXPECTED_TOKEN,i(),0,p),"")}function T(h){let p="";for(;h.currentPeek()===xt||h.currentPeek()===Ue;)p+=h.currentPeek(),h.peek();return p}function E(h){const p=T(h);return h.skipToPeek(),p}function g(h){if(h===zt)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function v(h){if(h===zt)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function x(h,p){const{currentType:I}=p;if(I!==2)return!1;T(h);const O=g(h.currentPeek());return h.resetPeek(),O}function _(h,p){const{currentType:I}=p;if(I!==2)return!1;T(h);const O=h.currentPeek()==="-"?h.peek():h.currentPeek(),P=v(O);return h.resetPeek(),P}function C(h,p){const{currentType:I}=p;if(I!==2)return!1;T(h);const O=h.currentPeek()===Fl;return h.resetPeek(),O}function $(h,p){const{currentType:I}=p;if(I!==7)return!1;T(h);const O=h.currentPeek()===".";return h.resetPeek(),O}function L(h,p){const{currentType:I}=p;if(I!==8)return!1;T(h);const O=g(h.currentPeek());return h.resetPeek(),O}function D(h,p){const{currentType:I}=p;if(!(I===7||I===11))return!1;T(h);const O=h.currentPeek()===":";return h.resetPeek(),O}function U(h,p){const{currentType:I}=p;if(I!==9)return!1;const O=()=>{const M=h.currentPeek();return M==="{"?g(h.peek()):M==="@"||M==="|"||M===":"||M==="."||M===xt||!M?!1:M===Ue?(h.peek(),O()):X(h,!1)},P=O();return h.resetPeek(),P}function Z(h){T(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function X(h,p=!0){const I=(P=!1,M="")=>{const k=h.currentPeek();return k==="{"||k==="@"||!k?P:k==="|"?!(M===xt||M===Ue):k===xt?(h.peek(),I(!0,xt)):k===Ue?(h.peek(),I(!0,Ue)):!0},O=I();return p&&h.resetPeek(),O}function J(h,p){const I=h.currentChar();return I===zt?zt:p(I)?(h.next(),I):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 st(h){return J(h,Ce)}function Bt(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 me(h){return J(h,Bt)}function B(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function ie(h){return J(h,B)}function Ae(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Lt(h){return J(h,Ae)}function et(h){let p="",I="";for(;p=ie(h);)I+=p;return I}function ze(h){let p="";for(;;){const I=h.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I===xt||I===Ue)if(X(h))p+=I,h.next();else{if(Z(h))break;p+=I,h.next()}else p+=I,h.next()}return p}function $n(h){E(h);let p="",I="";for(;p=me(h);)I+=p;return h.currentChar()===zt&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),I}function Tr(h){E(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${et(h)}`):p+=et(h),h.currentChar()===zt&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),p}function Cs(h){return h!==Fl&&h!==Ue}function Pt(h){E(h),y(h,"'");let p="",I="";for(;p=J(h,Cs);)p==="\\"?I+=Gt(h):I+=p;const O=h.currentChar();return O===Ue||O===zt?(f(ae.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),O===Ue&&(h.next(),y(h,"'")),I):(y(h,"'"),I)}function Gt(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return Zt(h,p,4);case"U":return Zt(h,p,6);default:return f(ae.UNKNOWN_ESCAPE_SEQUENCE,i(),0,p),""}}function Zt(h,p,I){y(h,p);let O="";for(let P=0;P<I;P++){const M=Lt(h);if(!M){f(ae.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${p}${O}${h.currentChar()}`);break}O+=M}return`\\${p}${O}`}function Mn(h){return h!=="{"&&h!=="}"&&h!==xt&&h!==Ue}function Rt(h){E(h);let p="",I="";for(;p=J(h,Mn);)I+=p;return I}function Dn(h){let p="",I="";for(;p=st(h);)I+=p;return I}function jn(h){const p=I=>{const O=h.currentChar();return O==="{"||O==="@"||O==="|"||O==="("||O===")"||!O||O===xt?I:(I+=O,h.next(),p(I))};return p("")}function b(h){E(h);const p=y(h,"|");return E(h),p}function w(h,p){let I=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(ae.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),h.next(),I=d(p,2,"{"),E(h),p.braceNest++,I;case"}":return p.braceNest>0&&p.currentType===2&&f(ae.EMPTY_PLACEHOLDER,i(),0),h.next(),I=d(p,3,"}"),p.braceNest--,p.braceNest>0&&E(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),I;case"@":return p.braceNest>0&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),I=A(h,p)||m(p),p.braceNest=0,I;default:{let P=!0,M=!0,k=!0;if(Z(h))return p.braceNest>0&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),I=d(p,1,b(h)),p.braceNest=0,p.inLinked=!1,I;if(p.braceNest>0&&(p.currentType===4||p.currentType===5||p.currentType===6))return f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),p.braceNest=0,N(h,p);if(P=x(h,p))return I=d(p,4,$n(h)),E(h),I;if(M=_(h,p))return I=d(p,5,Tr(h)),E(h),I;if(k=C(h,p))return I=d(p,6,Pt(h)),E(h),I;if(!P&&!M&&!k)return I=d(p,12,Rt(h)),f(ae.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,I.value),E(h),I;break}}return I}function A(h,p){const{currentType:I}=p;let O=null;const P=h.currentChar();switch((I===7||I===8||I===11||I===9)&&(P===Ue||P===xt)&&f(ae.INVALID_LINKED_FORMAT,i(),0),P){case"@":return h.next(),O=d(p,7,"@"),p.inLinked=!0,O;case".":return E(h),h.next(),d(p,8,".");case":":return E(h),h.next(),d(p,9,":");default:return Z(h)?(O=d(p,1,b(h)),p.braceNest=0,p.inLinked=!1,O):$(h,p)||D(h,p)?(E(h),A(h,p)):L(h,p)?(E(h),d(p,11,Dn(h))):U(h,p)?(E(h),P==="{"?w(h,p)||O:d(p,10,jn(h))):(I===7&&f(ae.INVALID_LINKED_FORMAT,i(),0),p.braceNest=0,p.inLinked=!1,N(h,p))}}function N(h,p){let I={type:13};if(p.braceNest>0)return w(h,p)||m(p);if(p.inLinked)return A(h,p)||m(p);switch(h.currentChar()){case"{":return w(h,p)||m(p);case"}":return f(ae.UNBALANCED_CLOSING_BRACE,i(),0),h.next(),d(p,3,"}");case"@":return A(h,p)||m(p);default:{if(Z(h))return I=d(p,1,b(h)),p.braceNest=0,p.inLinked=!1,I;if(X(h))return d(p,0,ze(h));break}}return I}function R(){const{currentType:h,offset:p,startLoc:I,endLoc:O}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=I,l.lastEndLoc=O,l.offset=s(),l.startLoc=i(),r.currentChar()===zt?d(l,13):N(r,l)}return{nextToken:R,currentOffset:s,currentPosition:i,context:u}}const kp="parser",Tp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ip(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 Ep(e={}){const t=e.location!==!1,{onError:n}=e;function r(g,v,x,_,...C){const $=g.currentPosition();if($.offset+=_,$.column+=_,n){const L=t?Ni(x,$):null,D=cs(v,L,{domain:kp,args:C});n(D)}}function s(g,v,x){const _={type:g};return t&&(_.start=v,_.end=v,_.loc={start:x,end:x}),_}function i(g,v,x,_){t&&(g.end=v,g.loc&&(g.loc.end=x))}function o(g,v){const x=g.context(),_=s(3,x.offset,x.startLoc);return _.value=v,i(_,g.currentOffset(),g.currentPosition()),_}function a(g,v){const x=g.context(),{lastOffset:_,lastStartLoc:C}=x,$=s(5,_,C);return $.index=parseInt(v,10),g.nextToken(),i($,g.currentOffset(),g.currentPosition()),$}function l(g,v){const x=g.context(),{lastOffset:_,lastStartLoc:C}=x,$=s(4,_,C);return $.key=v,g.nextToken(),i($,g.currentOffset(),g.currentPosition()),$}function u(g,v){const x=g.context(),{lastOffset:_,lastStartLoc:C}=x,$=s(9,_,C);return $.value=v.replace(Tp,Ip),g.nextToken(),i($,g.currentOffset(),g.currentPosition()),$}function c(g){const v=g.nextToken(),x=g.context(),{lastOffset:_,lastStartLoc:C}=x,$=s(8,_,C);return v.type!==11?(r(g,ae.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),$.value="",i($,_,C),{nextConsumeToken:v,node:$}):(v.value==null&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,pt(v)),$.value=v.value||"",i($,g.currentOffset(),g.currentPosition()),{node:$})}function f(g,v){const x=g.context(),_=s(7,x.offset,x.startLoc);return _.value=v,i(_,g.currentOffset(),g.currentPosition()),_}function d(g){const v=g.context(),x=s(6,v.offset,v.startLoc);let _=g.nextToken();if(_.type===8){const C=c(g);x.modifier=C.node,_=C.nextConsumeToken||g.nextToken()}switch(_.type!==9&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),_=g.nextToken(),_.type===2&&(_=g.nextToken()),_.type){case 10:_.value==null&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),x.key=f(g,_.value||"");break;case 4:_.value==null&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),x.key=l(g,_.value||"");break;case 5:_.value==null&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),x.key=a(g,_.value||"");break;case 6:_.value==null&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),x.key=u(g,_.value||"");break;default:{r(g,ae.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const C=g.context(),$=s(7,C.offset,C.startLoc);return $.value="",i($,C.offset,C.startLoc),x.key=$,i(x,C.offset,C.startLoc),{nextConsumeToken:_,node:x}}}return i(x,g.currentOffset(),g.currentPosition()),{node:x}}function m(g){const v=g.context(),x=v.currentType===1?g.currentOffset():v.offset,_=v.currentType===1?v.endLoc:v.startLoc,C=s(2,x,_);C.items=[];let $=null;do{const U=$||g.nextToken();switch($=null,U.type){case 0:U.value==null&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(U)),C.items.push(o(g,U.value||""));break;case 5:U.value==null&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(U)),C.items.push(a(g,U.value||""));break;case 4:U.value==null&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(U)),C.items.push(l(g,U.value||""));break;case 6:U.value==null&&r(g,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(U)),C.items.push(u(g,U.value||""));break;case 7:{const Z=d(g);C.items.push(Z.node),$=Z.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const L=v.currentType===1?v.lastOffset:g.currentOffset(),D=v.currentType===1?v.lastEndLoc:g.currentPosition();return i(C,L,D),C}function y(g,v,x,_){const C=g.context();let $=_.items.length===0;const L=s(1,v,x);L.cases=[],L.cases.push(_);do{const D=m(g);$||($=D.items.length===0),L.cases.push(D)}while(C.currentType!==13);return $&&r(g,ae.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),i(L,g.currentOffset(),g.currentPosition()),L}function T(g){const v=g.context(),{offset:x,startLoc:_}=v,C=m(g);return v.currentType===13?C:y(g,x,_,C)}function E(g){const v=wp(g,Ie({},e)),x=v.context(),_=s(0,x.offset,x.startLoc);return t&&_.loc&&(_.loc.source=g),_.body=T(v),e.onCacheKey&&(_.cacheKey=e.onCacheKey(g)),x.currentType!==13&&r(v,ae.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,g[x.offset]||""),i(_,v.currentOffset(),v.currentPosition()),_}return{parse:E}}function pt(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 xp(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Ul(e,t){for(let n=0;n<e.length;n++)$i(e[n],t)}function $i(e,t){switch(e.type){case 1:Ul(e.cases,t),t.helper("plural");break;case 2:Ul(e.items,t);break;case 6:{$i(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 Sp(e,t={}){const n=xp(e);n.helper("normalize"),e.body&&$i(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Op(e){const t=e.body;return t.type===2?Wl(t):t.cases.forEach(n=>Wl(n)),e}function Wl(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=Ri(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 On(e){switch(e.t=e.type,e.type){case 0:{const t=e;On(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++)On(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++)On(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;On(t.key),t.k=t.key,delete t.key,t.modifier&&(On(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 Cp(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,g){a.code+=E}function c(E,g=!0){const v=g?s:"";u(i?v+" ".repeat(E):v)}function f(E=!0){const g=++a.indentLevel;E&&c(g)}function d(E=!0){const g=--a.indentLevel;E&&c(g)}function m(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:m,helper:E=>`_${E}`,needIndent:()=>a.needIndent}}function Ap(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Cn(e,t.key),t.modifier?(e.push(", "),Cn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Lp(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&&(Cn(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function Pp(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&&(Cn(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function Rp(e,t){t.body?Cn(e,t.body):e.push("null")}function Cn(e,t){const{helper:n}=e;switch(t.type){case 0:Rp(e,t);break;case 1:Pp(e,t);break;case 2:Lp(e,t);break;case 6:Ap(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 Np=(e,t={})=>{const n=F(t.mode)?t.mode:"normal",r=F(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=Cp(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 { ${Ri(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Cn(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 $p(e,t={}){const n=Ie({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=Ep(n).parse(e);return r?(i&&Op(a),s&&On(a),{ast:a,code:""}):(Sp(a,n),Np(a,n))}/*!
|
|
38
|
+
* core-base v10.0.4
|
|
39
39
|
* (c) 2024 kazuya kawaguchi
|
|
40
40
|
* Released under the MIT License.
|
|
41
|
-
*/function pm(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Nt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Nt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Nt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Jt=[];Jt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Jt[1]={w:[1],".":[2],"[":[4],o:[7]},Jt[2]={w:[2],i:[3,0],0:[3,0]},Jt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Jt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Jt[5]={"'":[4,0],o:8,l:[5,0]},Jt[6]={'"':[4,0],o:8,l:[6,0]};const mm=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function gm(e){return mm.test(e)}function _m(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 bm(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 ym(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:gm(t)?_m(t):"*"+t}function vm(e){const t=[];let n=-1,r=0,i=0,s,o,a,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=a:o+=a},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),i++},d[3]=()=>{if(i>0)i--,r=4,d[0]();else{if(i=0,o===void 0||(o=ym(o),o===!1))return!1;d[1]()}};function _(){const v=e[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,a="\\"+v,d[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&_())){if(l=bm(s),f=Jt[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(a=s,c()===!1))))return;if(r===7)return t}}const sc=new Map;function wm(e,t){return se(e)?e[t]:null}function km(e,t){if(!se(e))return null;let n=sc.get(t);if(n||(n=vm(t),n&&sc.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s<r;){const o=i[n[s]];if(o===void 0||pe(i))return null;i=o,s++}return i}const Tm=e=>e,Em=e=>"",Im="text",Sm=e=>e.length===0?"":Mp(e),Om=$p;function ic(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function xm(e){const t=Ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ie(e.named.count)||Ie(e.named.n))?Ie(e.named.count)?e.named.count:Ie(e.named.n)?e.named.n:t:t}function Cm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Lm(e={}){const t=e.locale,n=xm(e),r=se(e.pluralRules)&&W(t)&&pe(e.pluralRules[t])?e.pluralRules[t]:ic,i=se(e.pluralRules)&&W(t)&&pe(e.pluralRules[t])?ic:void 0,s=E=>E[r(n,E.length,i)],o=e.list||[],a=E=>o[E],l=e.named||{};Ie(e.pluralIndex)&&Cm(n,l);const u=E=>l[E];function c(E){const L=pe(e.messages)?e.messages(E):se(e.messages)?e.messages[E]:!1;return L||(e.parent?e.parent.message(E):Em)}const f=E=>e.modifiers?e.modifiers[E]:Tm,d=X(e.processor)&&pe(e.processor.normalize)?e.processor.normalize:Sm,_=X(e.processor)&&pe(e.processor.interpolate)?e.processor.interpolate:Om,v=X(e.processor)&&W(e.processor.type)?e.processor.type:Im,T={list:a,named:u,plural:s,linked:(E,...L)=>{const[y,g]=L;let O="text",C="";L.length===1?se(y)?(C=y.modifier||C,O=y.type||O):W(y)&&(C=y||C):L.length===2&&(W(y)&&(C=y||C),W(g)&&(O=g||O));const A=c(E)(T),N=O==="vnode"&&ge(A)&&C?A[0]:A;return C?f(C)(N,O):N},message:c,type:v,interpolate:_,normalize:d,values:Re({},o,l)};return T}let br=null;function Am(e){br=e}function Nm(e,t,n){br&&br.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Pm=Rm("function:translate");function Rm(e){return t=>br&&br.emit(e,t)}const oc=Ki.__EXTEND_POINT__,bn=bs(oc),$m={NOT_FOUND_KEY:oc,FALLBACK_TO_TRANSLATE:bn(),CANNOT_FORMAT_NUMBER:bn(),FALLBACK_TO_NUMBER_FORMAT:bn(),CANNOT_FORMAT_DATE:bn(),FALLBACK_TO_DATE_FORMAT:bn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:bn(),__EXTEND_POINT__:bn()},ac=B.__EXTEND_POINT__,yn=bs(ac),lt={INVALID_ARGUMENT:ac,INVALID_DATE_ARGUMENT:yn(),INVALID_ISO_DATE_ARGUMENT:yn(),NOT_SUPPORT_NON_STRING_MESSAGE:yn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:yn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:yn(),NOT_SUPPORT_LOCALE_TYPE:yn(),__EXTEND_POINT__:yn()};function bt(e){return jn(e,null,void 0)}function Vi(e,t){return t.locale!=null?lc(t.locale):lc(e.locale)}let Bi;function lc(e){if(W(e))return e;if(pe(e)){if(e.resolvedOnce&&Bi!=null)return Bi;if(e.constructor.name==="Function"){const t=e();if(Rp(t))throw bt(lt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Bi=t}else throw bt(lt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw bt(lt.NOT_SUPPORT_LOCALE_TYPE)}function Mm(e,t,n){return[...new Set([n,...ge(t)?t:se(t)?Object.keys(t):W(t)?[t]:[n]])]}function cc(e,t,n){const r=W(n)?n:Hn,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;ge(o);)o=uc(s,o,t);const a=ge(t)||!X(t)?t:t.default?t.default:null;o=W(a)?[a]:a,ge(o)&&uc(s,o,!1),i.__localeChainCache.set(r,s)}return s}function uc(e,t,n){let r=!0;for(let i=0;i<t.length&&Q(r);i++){const s=t[i];W(s)&&(r=Dm(e,t[i],n))}return r}function Dm(e,t,n){let r;const i=t.split("-");do{const s=i.join("-");r=Fm(e,s,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Fm(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(ge(n)||X(n))&&n[i]&&(r=n[i])}return r}const jm="9.14.1",ks=-1,Hn="en-US",fc="",dc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Um(){return{upper:(e,t)=>t==="text"&&W(e)?e.toUpperCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&W(e)?e.toLowerCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&W(e)?dc(e):t==="vnode"&&se(e)&&"__v_isVNode"in e?dc(e.children):e}}let hc;function pc(e){hc=e}let mc;function Wm(e){mc=e}let gc;function Hm(e){gc=e}let _c=null;const Km=e=>{_c=e},zm=()=>_c;let bc=null;const yc=e=>{bc=e},Vm=()=>bc;let vc=0;function Bm(e={}){const t=pe(e.onWarn)?e.onWarn:Dp,n=W(e.version)?e.version:jm,r=W(e.locale)||pe(e.locale)?e.locale:Hn,i=pe(r)?Hn:r,s=ge(e.fallbackLocale)||X(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=X(e.messages)?e.messages:{[i]:{}},a=X(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=X(e.numberFormats)?e.numberFormats:{[i]:{}},u=Re({},e.modifiers||{},Um()),c=e.pluralRules||{},f=pe(e.missing)?e.missing:null,d=Q(e.missingWarn)||Xt(e.missingWarn)?e.missingWarn:!0,_=Q(e.fallbackWarn)||Xt(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,S=!!e.unresolving,T=pe(e.postTranslation)?e.postTranslation:null,E=X(e.processor)?e.processor:null,L=Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,g=pe(e.messageCompiler)?e.messageCompiler:hc,O=pe(e.messageResolver)?e.messageResolver:mc||wm,C=pe(e.localeFallbacker)?e.localeFallbacker:gc||Mm,A=se(e.fallbackContext)?e.fallbackContext:void 0,N=e,P=se(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,Y=se(N.__numberFormatters)?N.__numberFormatters:new Map,te=se(N.__meta)?N.__meta:{};vc++;const z={version:n,cid:vc,locale:r,fallbackLocale:s,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:_,fallbackFormat:v,unresolving:S,postTranslation:T,processor:E,warnHtmlMessage:L,escapeParameter:y,messageCompiler:g,messageResolver:O,localeFallbacker:C,fallbackContext:A,onWarn:t,__meta:te};return z.datetimeFormats=a,z.numberFormats=l,z.__datetimeFormatters=P,z.__numberFormatters=Y,__INTLIFY_PROD_DEVTOOLS__&&Nm(z,n,te),z}function Gi(e,t,n,r,i){const{missing:s,onWarn:o}=e;if(s!==null){const a=s(e,n,t,i);return W(a)?a:t}else return t}function yr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Gm(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Ym(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Gm(e,t[r]))return!0;return!1}function Yi(e){return n=>Xm(n,e)}function Xm(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,i=r.c||r.cases;return e.plural(i.reduce((s,o)=>[...s,wc(e,o)],[]))}else return wc(e,n)}function wc(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((i,s)=>[...i,Xi(e,s)],[]);return e.normalize(r)}}function Xi(e,t){const n=t.t||t.type;switch(n){case 3:{const r=t;return r.v||r.value}case 9:{const r=t;return r.v||r.value}case 4:{const r=t;return e.interpolate(e.named(r.k||r.key))}case 5:{const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index))}case 6:{const r=t,i=r.m||r.modifier;return e.linked(Xi(e,r.k||r.key),i?Xi(e,i):void 0,e.type)}case 7:{const r=t;return r.v||r.value}case 8:{const r=t;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const kc=e=>e;let Kn=Object.create(null);const zn=e=>se(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Tc(e,t={}){let n=!1;const r=t.onError||zp;return t.onError=i=>{n=!0,r(i)},{...hm(e,t),detectError:n}}const Zm=(e,t)=>{if(!W(e))throw bt(lt.NOT_SUPPORT_NON_STRING_MESSAGE);{Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||kc)(e),i=Kn[r];if(i)return i;const{code:s,detectError:o}=Tc(e,t),a=new Function(`return ${s}`)();return o?a:Kn[r]=a}};function Jm(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||kc)(e),i=Kn[r];if(i)return i;const{ast:s,detectError:o}=Tc(e,{...t,location:!1,jit:!0}),a=Yi(s);return o?a:Kn[r]=a}else{const n=e.cacheKey;if(n){const r=Kn[n];return r||(Kn[n]=Yi(e))}else return Yi(e)}}const Ec=()=>"",nt=e=>pe(e);function Ic(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:o,messages:a}=e,[l,u]=Zi(...t),c=Q(u.missingWarn)?u.missingWarn:e.missingWarn,f=Q(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=Q(u.escapeParameter)?u.escapeParameter:e.escapeParameter,_=!!u.resolvedMessage,v=W(u.default)||Q(u.default)?Q(u.default)?s?l:()=>l:u.default:n?s?l:()=>l:"",S=n||v!=="",T=Vi(e,u);d&&qm(u);let[E,L,y]=_?[l,T,a[T]||{}]:Sc(e,l,T,o,f,c),g=E,O=l;if(!_&&!(W(g)||zn(g)||nt(g))&&S&&(g=v,O=g),!_&&(!(W(g)||zn(g)||nt(g))||!W(L)))return i?ks:l;let C=!1;const A=()=>{C=!0},N=nt(g)?g:Oc(e,l,L,g,O,A);if(C)return g;const P=tg(e,L,y,u),Y=Lm(P),te=Qm(e,N,Y),z=r?r(te,l):te;if(__INTLIFY_PROD_DEVTOOLS__){const de={timestamp:Date.now(),key:W(l)?l:nt(g)?g.key:"",locale:L||(nt(g)?g.locale:""),format:W(g)?g:nt(g)?g.source:"",message:z};de.meta=Re({},e.__meta,zm()||{}),Pm(de)}return z}function qm(e){ge(e.list)?e.list=e.list.map(t=>W(t)?Yl(t):t):se(e.named)&&Object.keys(e.named).forEach(t=>{W(e.named[t])&&(e.named[t]=Yl(e.named[t]))})}function Sc(e,t,n,r,i,s){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f={},d,_=null;const v="translate";for(let S=0;S<c.length&&(d=c[S],f=o[d]||{},(_=l(f,t))===null&&(_=f[t]),!(W(_)||zn(_)||nt(_)));S++)if(!Ym(d,c)){const T=Gi(e,t,d,s,v);T!==t&&(_=T)}return[_,d,f]}function Oc(e,t,n,r,i,s){const{messageCompiler:o,warnHtmlMessage:a}=e;if(nt(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,eg(e,n,i,r,a,s));return l.locale=n,l.key=t,l.source=r,l}function Qm(e,t,n){return t(n)}function Zi(...e){const[t,n,r]=e,i={};if(!W(t)&&!Ie(t)&&!nt(t)&&!zn(t))throw bt(lt.INVALID_ARGUMENT);const s=Ie(t)?String(t):(nt(t),t);return Ie(n)?i.plural=n:W(n)?i.default=n:X(n)&&!gs(n)?i.named=n:ge(n)&&(i.list=n),Ie(r)?i.plural=r:W(r)?i.default=r:X(r)&&Re(i,r),[s,i]}function eg(e,t,n,r,i,s){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw s&&s(o),o},onCacheKey:o=>Lp(t,n,o)}}function tg(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:i,pluralRules:s,messages:_=>{let v=o(n,_);if(v==null&&c){const[,,S]=Sc(c,_,t,a,l,u);v=o(S,_)}if(W(v)||zn(v)){let S=!1;const E=Oc(e,_,t,v,_,()=>{S=!0});return S?Ec:E}else return nt(v)?v:Ec}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ie(r.plural)&&(d.pluralIndex=r.plural),d}function xc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=Ji(...t),d=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const _=!!c.part,v=Vi(e,c),S=o(e,i,v);if(!W(l)||l==="")return new Intl.DateTimeFormat(v,f).format(u);let T={},E,L=null;const y="datetime format";for(let C=0;C<S.length&&(E=S[C],T=n[E]||{},L=T[l],!X(L));C++)Gi(e,l,E,d,y);if(!X(L)||!W(E))return r?ks:l;let g=`${E}__${l}`;gs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.DateTimeFormat(E,Re({},L,f)),a.set(g,O)),_?O.formatToParts(u):O.format(u)}const Cc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ji(...e){const[t,n,r,i]=e,s={};let o={},a;if(W(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw bt(lt.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(u);try{a.toISOString()}catch{throw bt(lt.INVALID_ISO_DATE_ARGUMENT)}}else if(Np(t)){if(isNaN(t.getTime()))throw bt(lt.INVALID_DATE_ARGUMENT);a=t}else if(Ie(t))a=t;else throw bt(lt.INVALID_ARGUMENT);return W(n)?s.key=n:X(n)&&Object.keys(n).forEach(l=>{Cc.includes(l)?o[l]=n[l]:s[l]=n[l]}),W(r)?s.locale=r:X(r)&&(o=r),X(i)&&(o=i),[s.key||"",a,s,o]}function Lc(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Ac(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=qi(...t),d=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const _=!!c.part,v=Vi(e,c),S=o(e,i,v);if(!W(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let T={},E,L=null;const y="number format";for(let C=0;C<S.length&&(E=S[C],T=n[E]||{},L=T[l],!X(L));C++)Gi(e,l,E,d,y);if(!X(L)||!W(E))return r?ks:l;let g=`${E}__${l}`;gs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.NumberFormat(E,Re({},L,f)),a.set(g,O)),_?O.formatToParts(u):O.format(u)}const Nc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function qi(...e){const[t,n,r,i]=e,s={};let o={};if(!Ie(t))throw bt(lt.INVALID_ARGUMENT);const a=t;return W(n)?s.key=n:X(n)&&Object.keys(n).forEach(l=>{Nc.includes(l)?o[l]=n[l]:s[l]=n[l]}),W(r)?s.locale=r:X(r)&&(o=r),X(i)&&(o=i),[s.key||"",a,s,o]}function Pc(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}pm();/*!
|
|
42
|
-
* vue-i18n
|
|
41
|
+
*/function Mp(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ln().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ln().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Mi(e){return n=>Dp(n,e)}function Dp(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,s=r.c||r.cases;return e.plural(s.reduce((i,o)=>[...i,Hl(e,o)],[]))}else return Hl(e,n)}function Hl(e,t){const n=t.s||t.static;if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((s,i)=>[...s,Di(e,i)],[]);return e.normalize(r)}}function Di(e,t){const n=t.t||t.type;switch(n){case 3:{const r=t;return r.v||r.value}case 9:{const r=t;return r.v||r.value}case 4:{const r=t;return e.interpolate(e.named(r.k||r.key))}case 5:{const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index))}case 6:{const r=t,s=r.m||r.modifier;return e.linked(Di(e,r.k||r.key),s?Di(e,s):void 0,e.type)}case 7:{const r=t;return r.v||r.value}case 8:{const r=t;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const jp=e=>e;let us=Object.create(null);const An=e=>re(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Fp(e,t={}){let n=!1;const r=t.onError||pp;return t.onError=s=>{n=!0,r(s)},{...$p(e,t),detectError:n}}function Up(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&F(e)){ne(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||jp)(e),s=us[r];if(s)return s;const{ast:i,detectError:o}=Fp(e,{...t,location:!1,jit:!0}),a=Mi(i);return o?a:us[r]=a}else{const n=e.cacheKey;if(n){const r=us[n];return r||(us[n]=Mi(e))}else return Mi(e)}}let lr=null;function Wp(e){lr=e}function Hp(e,t,n){lr&&lr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const zp=Kp("function:translate");function Kp(e){return t=>lr&&lr.emit(e,t)}const St={INVALID_ARGUMENT:hp,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},Vp=24;function Ot(e){return cs(e,null,void 0)}function ji(e,t){return t.locale!=null?zl(t.locale):zl(e.locale)}let Fi;function zl(e){if(F(e))return e;if(he(e)){if(e.resolvedOnce&&Fi!=null)return Fi;if(e.constructor.name==="Function"){const t=e();if(cp(t))throw Ot(St.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Fi=t}else throw Ot(St.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ot(St.NOT_SUPPORT_LOCALE_TYPE)}function Bp(e,t,n){return[...new Set([n,...ye(t)?t:re(t)?Object.keys(t):F(t)?[t]:[n]])]}function Kl(e,t,n){const r=F(n)?n:cr,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ye(o);)o=Vl(i,o,t);const a=ye(t)||!G(t)?t:t.default?t.default:null;o=F(a)?[a]:a,ye(o)&&Vl(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Vl(e,t,n){let r=!0;for(let s=0;s<t.length&&ne(r);s++){const i=t[s];F(i)&&(r=Gp(e,t[s],n))}return r}function Gp(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=Zp(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function Zp(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),(ye(n)||G(n))&&n[s]&&(r=n[s])}return r}const Kt=[];Kt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Kt[1]={w:[1],".":[2],"[":[4],o:[7]},Kt[2]={w:[2],i:[3,0],0:[3,0]},Kt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Kt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Kt[5]={"'":[4,0],o:8,l:[5,0]},Kt[6]={'"':[4,0],o:8,l:[6,0]};const Yp=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Xp(e){return Yp.test(e)}function Jp(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 qp(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 Qp(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Xp(t)?Jp(t):"*"+t}function em(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=Qp(o),o===!1))return!1;d[1]()}};function m(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,a="\\"+y,d[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&m())){if(l=qp(i),f=Kt[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 Bl=new Map;function tm(e,t){return re(e)?e[t]:null}function nm(e,t){if(!re(e))return null;let n=Bl.get(t);if(n||(n=em(t),n&&Bl.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||he(s))return null;s=o,i++}return s}const rm="10.0.4",fs=-1,cr="en-US",Gl="",Zl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sm(){return{upper:(e,t)=>t==="text"&&F(e)?e.toUpperCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&F(e)?e.toLowerCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&F(e)?Zl(e):t==="vnode"&&re(e)&&"__v_isVNode"in e?Zl(e.children):e}}let Yl;function im(e){Yl=e}let Xl;function om(e){Xl=e}let Jl;function am(e){Jl=e}let ql=null;const lm=e=>{ql=e},cm=()=>ql;let Ql=null;const ec=e=>{Ql=e},um=()=>Ql;let tc=0;function fm(e={}){const t=he(e.onWarn)?e.onWarn:fp,n=F(e.version)?e.version:rm,r=F(e.locale)||he(e.locale)?e.locale:cr,s=he(r)?cr:r,i=ye(e.fallbackLocale)||G(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=G(e.messages)?e.messages:{[s]:{}},a=G(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},l=G(e.numberFormats)?e.numberFormats:{[s]:{}},u=Ie({},e.modifiers||{},sm()),c=e.pluralRules||{},f=he(e.missing)?e.missing:null,d=ne(e.missingWarn)||Sn(e.missingWarn)?e.missingWarn:!0,m=ne(e.fallbackWarn)||Sn(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,T=!!e.unresolving,E=he(e.postTranslation)?e.postTranslation:null,g=G(e.processor)?e.processor:null,v=ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter,_=he(e.messageCompiler)?e.messageCompiler:Yl,C=he(e.messageResolver)?e.messageResolver:Xl||tm,$=he(e.localeFallbacker)?e.localeFallbacker:Jl||Bp,L=re(e.fallbackContext)?e.fallbackContext:void 0,D=e,U=re(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,Z=re(D.__numberFormatters)?D.__numberFormatters:new Map,X=re(D.__meta)?D.__meta:{};tc++;const J={version:n,cid:tc,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:m,fallbackFormat:y,unresolving:T,postTranslation:E,processor:g,warnHtmlMessage:v,escapeParameter:x,messageCompiler:_,messageResolver:C,localeFallbacker:$,fallbackContext:L,onWarn:t,__meta:X};return J.datetimeFormats=a,J.numberFormats=l,J.__datetimeFormatters=U,J.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&Hp(J,n,X),J}function Ui(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return F(a)?a:t}else return t}function ur(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function dm(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function hm(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(dm(e,t[r]))return!0;return!1}function nc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=Wi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,y=ji(e,c),T=o(e,s,y);if(!F(l)||l==="")return new Intl.DateTimeFormat(y,f).format(u);let E={},g,v=null;const x="datetime format";for(let $=0;$<T.length&&(g=T[$],E=n[g]||{},v=E[l],!G(v));$++)Ui(e,l,g,d,x);if(!G(v)||!F(g))return r?fs:l;let _=`${g}__${l}`;is(f)||(_=`${_}__${JSON.stringify(f)}`);let C=a.get(_);return C||(C=new Intl.DateTimeFormat(g,Ie({},v,f)),a.set(_,C)),m?C.formatToParts(u):C.format(u)}const rc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Wi(...e){const[t,n,r,s]=e,i={};let o={},a;if(F(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ot(St.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 Ot(St.INVALID_ISO_DATE_ARGUMENT)}}else if(ap(t)){if(isNaN(t.getTime()))throw Ot(St.INVALID_DATE_ARGUMENT);a=t}else if(Te(t))a=t;else throw Ot(St.INVALID_ARGUMENT);return F(n)?i.key=n:G(n)&&Object.keys(n).forEach(l=>{rc.includes(l)?o[l]=n[l]:i[l]=n[l]}),F(r)?i.locale=r:G(r)&&(o=r),G(s)&&(o=s),[i.key||"",a,i,o]}function sc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function ic(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=Hi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,y=ji(e,c),T=o(e,s,y);if(!F(l)||l==="")return new Intl.NumberFormat(y,f).format(u);let E={},g,v=null;const x="number format";for(let $=0;$<T.length&&(g=T[$],E=n[g]||{},v=E[l],!G(v));$++)Ui(e,l,g,d,x);if(!G(v)||!F(g))return r?fs:l;let _=`${g}__${l}`;is(f)||(_=`${_}__${JSON.stringify(f)}`);let C=a.get(_);return C||(C=new Intl.NumberFormat(g,Ie({},v,f)),a.set(_,C)),m?C.formatToParts(u):C.format(u)}const oc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Hi(...e){const[t,n,r,s]=e,i={};let o={};if(!Te(t))throw Ot(St.INVALID_ARGUMENT);const a=t;return F(n)?i.key=n:G(n)&&Object.keys(n).forEach(l=>{oc.includes(l)?o[l]=n[l]:i[l]=n[l]}),F(r)?i.locale=r:G(r)&&(o=r),G(s)&&(o=s),[i.key||"",a,i,o]}function ac(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const pm=e=>e,mm=e=>"",gm="text",_m=e=>e.length===0?"":Ri(e),bm=up;function lc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ym(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 vm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function wm(e={}){const t=e.locale,n=ym(e),r=re(e.pluralRules)&&F(t)&&he(e.pluralRules[t])?e.pluralRules[t]:lc,s=re(e.pluralRules)&&F(t)&&he(e.pluralRules[t])?lc:void 0,i=g=>g[r(n,g.length,s)],o=e.list||[],a=g=>o[g],l=e.named||{};Te(e.pluralIndex)&&vm(n,l);const u=g=>l[g];function c(g,v){const x=he(e.messages)?e.messages(g,!!v):re(e.messages)?e.messages[g]:!1;return x||(e.parent?e.parent.message(g):mm)}const f=g=>e.modifiers?e.modifiers[g]:pm,d=G(e.processor)&&he(e.processor.normalize)?e.processor.normalize:_m,m=G(e.processor)&&he(e.processor.interpolate)?e.processor.interpolate:bm,y=G(e.processor)&&F(e.processor.type)?e.processor.type:gm,E={list:a,named:u,plural:i,linked:(g,...v)=>{const[x,_]=v;let C="text",$="";v.length===1?re(x)?($=x.modifier||$,C=x.type||C):F(x)&&($=x||$):v.length===2&&(F(x)&&($=x||$),F(_)&&(C=_||C));const L=c(g,!0)(E),D=C==="vnode"&&ye(L)&&$?L[0]:L;return $?f($)(D,C):D},message:c,type:y,interpolate:m,normalize:d,values:Ie({},o,l)};return E}const cc=()=>"",Je=e=>he(e);function uc(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,y=F(u.default)||ne(u.default)?ne(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,T=n||y!=null&&(F(y)||he(y)),E=ji(e,u);d&&km(u);let[g,v,x]=m?[l,E,a[E]||{}]:fc(e,l,E,o,f,c),_=g,C=l;if(!m&&!(F(_)||An(_)||Je(_))&&T&&(_=y,C=_),!m&&(!(F(_)||An(_)||Je(_))||!F(v)))return s?fs:l;let $=!1;const L=()=>{$=!0},D=Je(_)?_:dc(e,l,v,_,C,L);if($)return _;const U=Em(e,v,x,u),Z=wm(U),X=Tm(e,D,Z),J=r?r(X,l):X;if(__INTLIFY_PROD_DEVTOOLS__){const Ce={timestamp:Date.now(),key:F(l)?l:Je(_)?_.key:"",locale:v||(Je(_)?_.locale:""),format:F(_)?_:Je(_)?_.source:"",message:J};Ce.meta=Ie({},e.__meta,cm()||{}),zp(Ce)}return J}function km(e){ye(e.list)?e.list=e.list.map(t=>F(t)?Dl(t):t):re(e.named)&&Object.keys(e.named).forEach(t=>{F(e.named[t])&&(e.named[t]=Dl(e.named[t]))})}function fc(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f={},d,m=null;const y="translate";for(let T=0;T<c.length&&(d=c[T],f=o[d]||{},(m=l(f,t))===null&&(m=f[t]),!(F(m)||An(m)||Je(m)));T++)if(!hm(d,c)){const E=Ui(e,t,d,i,y);E!==t&&(m=E)}return[m,d,f]}function dc(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,Im(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function Tm(e,t,n){return t(n)}function zi(...e){const[t,n,r]=e,s={};if(!F(t)&&!Te(t)&&!Je(t)&&!An(t))throw Ot(St.INVALID_ARGUMENT);const i=Te(t)?String(t):(Je(t),t);return Te(n)?s.plural=n:F(n)?s.default=n:G(n)&&!is(n)?s.named=n:ye(n)&&(s.list=n),Te(r)?s.plural=r:F(r)?s.default=r:G(r)&&Ie(s,r),[i,s]}function Im(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>ip(t,n,o)}}function Em(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,y)=>{let T=o(n,m);if(T==null&&(c||y)){const[,,E]=fc(c||e,m,t,a,l,u);T=o(E,m)}if(F(T)||An(T)){let E=!1;const v=dc(e,m,t,T,m,()=>{E=!0});return E?cc:v}else return Je(T)?T:cc}};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}Mp();/*!
|
|
42
|
+
* vue-i18n v10.0.4
|
|
43
43
|
* (c) 2024 kazuya kawaguchi
|
|
44
44
|
* Released under the MIT License.
|
|
45
|
-
*/const ng="9.14.1";function rg(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Nt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Nt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Nt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Nt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Nt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Rc=$m.__EXTEND_POINT__,Rt=bs(Rc);Rt(),Rt(),Rt(),Rt(),Rt(),Rt(),Rt(),Rt(),Rt();const $c=lt.__EXTEND_POINT__,Ge=bs($c),Se={UNEXPECTED_RETURN_TYPE:$c,INVALID_ARGUMENT:Ge(),MUST_BE_CALL_SETUP_TOP:Ge(),NOT_INSTALLED:Ge(),NOT_AVAILABLE_IN_LEGACY_MODE:Ge(),REQUIRED_VALUE:Ge(),INVALID_VALUE:Ge(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ge(),NOT_INSTALLED_WITH_PROVIDE:Ge(),UNEXPECTED_ERROR:Ge(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ge(),BRIDGE_SUPPORT_VUE_2_ONLY:Ge(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ge(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ge(),__EXTEND_POINT__:Ge()};function Le(e,...t){return jn(e,null,void 0)}const Qi=Yt("__translateVNode"),eo=Yt("__datetimeParts"),to=Yt("__numberParts"),Mc=Yt("__setPluralRules"),Dc=Yt("__injectWithOption"),no=Yt("__dispose");function vr(e){if(!se(e))return e;for(const t in e)if(_s(e,t))if(!t.includes("."))se(e[t])&&vr(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let o=0;o<r;o++){if(n[o]in i||(i[n[o]]={}),!se(i[n[o]])){s=!0;break}i=i[n[o]]}s||(i[n[r]]=e[t],delete e[t]),se(i[n[r]])&&vr(i[n[r]])}return e}function Ts(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:s}=t,o=X(n)?n:ge(r)?{}:{[e]:{}};if(ge(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||{},vs(u,o[l])):vs(u,o)}else W(a)&&vs(JSON.parse(a),o)}),i==null&&s)for(const a in o)_s(o,a)&&vr(o[a]);return o}function Fc(e){return e.type}function jc(e,t,n){let r=se(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ts(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(se(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(se(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Uc(e){return Te(ar,null,e,0)}const Wc="__INTLIFY_META__",Hc=()=>[],sg=()=>!1;let Kc=0;function zc(e){return(t,n,r,i)=>e(n,r,fr()||void 0,i)}const ig=()=>{const e=fr();let t=null;return e&&(t=Fc(e)[Wc])?{[Wc]:t}:null};function ro(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,s=e.flatJson,o=ms?re:ma,a=!!e.translateExistCompatible;let l=Q(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&l?n.locale.value:W(e.locale)?e.locale:Hn),c=o(n&&l?n.fallbackLocale.value:W(e.fallbackLocale)||ge(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),f=o(Ts(u.value,e)),d=o(X(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),_=o(X(e.numberFormats)?e.numberFormats:{[u.value]:{}});let v=n?n.missingWarn:Q(e.missingWarn)||Xt(e.missingWarn)?e.missingWarn:!0,S=n?n.fallbackWarn:Q(e.fallbackWarn)||Xt(e.fallbackWarn)?e.fallbackWarn:!0,T=n?n.fallbackRoot:Q(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,L=pe(e.missing)?e.missing:null,y=pe(e.missing)?zc(e.missing):null,g=pe(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter;const A=n?n.modifiers:X(e.modifiers)?e.modifiers:{};let N=e.pluralRules||n&&n.pluralRules,P;P=(()=>{i&&yc(null);const k={version:ng,locale:u.value,fallbackLocale:c.value,messages:f.value,modifiers:A,pluralRules:N,missing:y===null?void 0:y,missingWarn:v,fallbackWarn:S,fallbackFormat:E,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:O,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};k.datetimeFormats=d.value,k.numberFormats=_.value,k.__datetimeFormatters=X(P)?P.__datetimeFormatters:void 0,k.__numberFormatters=X(P)?P.__numberFormatters:void 0;const x=Bm(k);return i&&yc(x),x})(),yr(P,u.value,c.value);function te(){return[u.value,c.value,f.value,d.value,_.value]}const z=Ke({get:()=>u.value,set:k=>{u.value=k,P.locale=u.value}}),de=Ke({get:()=>c.value,set:k=>{c.value=k,P.fallbackLocale=c.value,yr(P,u.value,k)}}),Je=Ke(()=>f.value),kt=Ke(()=>d.value),ie=Ke(()=>_.value);function q(){return pe(g)?g:null}function oe(k){g=k,P.postTranslation=k}function qe(){return L}function Tt(k){k!==null&&(y=zc(k)),L=k,P.missing=y}const Oe=(k,x,H,K,we,Ee)=>{te();let Ne;try{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=n?Vm():void 0),Ne=k(P)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=void 0)}if(H!=="translate exists"&&Ie(Ne)&&Ne===ks||H==="translate exists"&&!Ne){const[Ve,Xn]=x();return n&&T?K(n):we(Ve)}else{if(Ee(Ne))return Ne;throw Le(Se.UNEXPECTED_RETURN_TYPE)}};function Ae(...k){return Oe(x=>Reflect.apply(Ic,null,[x,...k]),()=>Zi(...k),"translate",x=>Reflect.apply(x.t,x,[...k]),x=>x,x=>W(x))}function Qt(...k){const[x,H,K]=k;if(K&&!se(K))throw Le(Se.INVALID_ARGUMENT);return Ae(x,H,Re({resolvedMessage:!0},K||{}))}function en(...k){return Oe(x=>Reflect.apply(xc,null,[x,...k]),()=>Ji(...k),"datetime format",x=>Reflect.apply(x.d,x,[...k]),()=>fc,x=>W(x))}function xn(...k){return Oe(x=>Reflect.apply(Ac,null,[x,...k]),()=>qi(...k),"number format",x=>Reflect.apply(x.n,x,[...k]),()=>fc,x=>W(x))}function ct(k){return k.map(x=>W(x)||Ie(x)||Q(x)?Uc(String(x)):x)}const Ft={normalize:ct,interpolate:k=>k,type:"vnode"};function tn(...k){return Oe(x=>{let H;const K=x;try{K.processor=Ft,H=Reflect.apply(Ic,null,[K,...k])}finally{K.processor=null}return H},()=>Zi(...k),"translate",x=>x[Qi](...k),x=>[Uc(x)],x=>ge(x))}function it(...k){return Oe(x=>Reflect.apply(Ac,null,[x,...k]),()=>qi(...k),"number format",x=>x[to](...k),Hc,x=>W(x)||ge(x))}function nn(...k){return Oe(x=>Reflect.apply(xc,null,[x,...k]),()=>Ji(...k),"datetime format",x=>x[eo](...k),Hc,x=>W(x)||ge(x))}function rn(k){N=k,P.pluralRules=N}function b(k,x){return Oe(()=>{if(!k)return!1;const H=W(x)?x:u.value,K=F(H),we=P.messageResolver(K,k);return a?we!=null:zn(we)||nt(we)||W(we)},()=>[k],"translate exists",H=>Reflect.apply(H.te,H,[k,x]),sg,H=>Q(H))}function m(k){let x=null;const H=cc(P,c.value,u.value);for(let K=0;K<H.length;K++){const we=f.value[H[K]]||{},Ee=P.messageResolver(we,k);if(Ee!=null){x=Ee;break}}return x}function I(k){const x=m(k);return x??(n?n.tm(k)||{}:{})}function F(k){return f.value[k]||{}}function R(k,x){if(s){const H={[k]:x};for(const K in H)_s(H,K)&&vr(H[K]);x=H[k]}f.value[k]=x,P.messages=f.value}function M(k,x){f.value[k]=f.value[k]||{};const H={[k]:x};if(s)for(const K in H)_s(H,K)&&vr(H[K]);x=H[k],vs(x,f.value[k]),P.messages=f.value}function U(k){return d.value[k]||{}}function h(k,x){d.value[k]=x,P.datetimeFormats=d.value,Lc(P,k,x)}function p(k,x){d.value[k]=Re(d.value[k]||{},x),P.datetimeFormats=d.value,Lc(P,k,x)}function w(k){return _.value[k]||{}}function $(k,x){_.value[k]=x,P.numberFormats=_.value,Pc(P,k,x)}function j(k,x){_.value[k]=Re(_.value[k]||{},x),P.numberFormats=_.value,Pc(P,k,x)}Kc++,n&&ms&&(fn(n.locale,k=>{l&&(u.value=k,P.locale=k,yr(P,u.value,c.value))}),fn(n.fallbackLocale,k=>{l&&(c.value=k,P.fallbackLocale=k,yr(P,u.value,c.value))}));const D={id:Kc,locale:z,fallbackLocale:de,get inheritLocale(){return l},set inheritLocale(k){l=k,k&&n&&(u.value=n.locale.value,c.value=n.fallbackLocale.value,yr(P,u.value,c.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:Je,get modifiers(){return A},get pluralRules(){return N||{}},get isGlobal(){return i},get missingWarn(){return v},set missingWarn(k){v=k,P.missingWarn=v},get fallbackWarn(){return S},set fallbackWarn(k){S=k,P.fallbackWarn=S},get fallbackRoot(){return T},set fallbackRoot(k){T=k},get fallbackFormat(){return E},set fallbackFormat(k){E=k,P.fallbackFormat=E},get warnHtmlMessage(){return O},set warnHtmlMessage(k){O=k,P.warnHtmlMessage=k},get escapeParameter(){return C},set escapeParameter(k){C=k,P.escapeParameter=k},t:Ae,getLocaleMessage:F,setLocaleMessage:R,mergeLocaleMessage:M,getPostTranslationHandler:q,setPostTranslationHandler:oe,getMissingHandler:qe,setMissingHandler:Tt,[Mc]:rn};return D.datetimeFormats=kt,D.numberFormats=ie,D.rt=Qt,D.te=b,D.tm=I,D.d=en,D.n=xn,D.getDateTimeFormat=U,D.setDateTimeFormat=h,D.mergeDateTimeFormat=p,D.getNumberFormat=w,D.setNumberFormat=$,D.mergeNumberFormat=j,D[Dc]=r,D[Qi]=tn,D[eo]=nn,D[to]=it,D}function og(e){const t=W(e.locale)?e.locale:Hn,n=W(e.fallbackLocale)||ge(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=pe(e.missing)?e.missing:void 0,i=Q(e.silentTranslationWarn)||Xt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Q(e.silentFallbackWarn)||Xt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=X(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=pe(e.postTranslation)?e.postTranslation:void 0,f=W(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,_=Q(e.sync)?e.sync:!0;let v=e.messages;if(X(e.sharedMessages)){const C=e.sharedMessages;v=Object.keys(C).reduce((N,P)=>{const Y=N[P]||(N[P]={});return Re(Y,C[P]),N},v||{})}const{__i18n:S,__root:T,__injectWithOption:E}=e,L=e.datetimeFormats,y=e.numberFormats,g=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:v,flatJson:g,datetimeFormats:L,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:_,translateExistCompatible:O,__i18n:S,__root:T,__injectWithOption:E}}function so(e={},t){{const n=ro(og(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(s){},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return Q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=Q(s)?!s:s},get silentFallbackWarn(){return Q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=Q(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(s){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[o,a,l]=s,u={};let c=null,f=null;if(!W(o))throw Le(Se.INVALID_ARGUMENT);const d=o;return W(a)?u.locale=a:ge(a)?c=a:X(a)&&(f=a),ge(l)?c=l:X(l)&&(f=l),Reflect.apply(n.t,n,[d,c||f||{},u])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[o,a,l]=s,u={plural:1};let c=null,f=null;if(!W(o))throw Le(Se.INVALID_ARGUMENT);const d=o;return W(a)?u.locale=a:Ie(a)?u.plural=a:ge(a)?c=a:X(a)&&(f=a),W(l)?u.locale=l:ge(l)?c=l:X(l)&&(f=l),Reflect.apply(n.t,n,[d,c||f||{},u])},te(s,o){return n.te(s,o)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,o){n.setLocaleMessage(s,o)},mergeLocaleMessage(s,o){n.mergeLocaleMessage(s,o)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,o){n.setDateTimeFormat(s,o)},mergeDateTimeFormat(s,o){n.mergeDateTimeFormat(s,o)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,o){n.setNumberFormat(s,o)},mergeNumberFormat(s,o){n.mergeNumberFormat(s,o)},getChoiceIndex(s,o){return-1}};return i.__extender=r,i}}const io={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ag({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===xe?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},{})}function Vc(e){return xe}const Bc=ht({name:"i18n-t",props:Re({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie(e)||!isNaN(e)}},io),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||yt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=W(e.plural)?+e.plural:e.plural);const a=ag(t,s),l=i[Qi](e.keypath,a,o),u=Re({},r),c=W(e.tag)||se(e.tag)?e.tag:Vc();return hr(c,u,l)}}});function lg(e){return ge(e)&&!W(e[0])}function Gc(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),W(e.format)?o.key=e.format:se(e.format)&&(W(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,_)=>n.includes(_)?Re({},d,{[_]:e.format[_]}):d,{}));const l=r(e.value,o,a);let u=[o.key];ge(l)?u=l.map((d,_)=>{const v=i[d.type],S=v?v({[d.type]:d.value,index:_,parts:l}):[d.value];return lg(S)&&(S[0].key=`${d.type}-${_}`),S}):W(l)&&(u=[l]);const c=Re({},s),f=W(e.tag)||se(e.tag)?e.tag:Vc();return hr(f,c,u)}}const Yc=ht({name:"i18n-n",props:Re({value:{type:Number,required:!0},format:{type:[String,Object]}},io),setup(e,t){const n=e.i18n||yt({useScope:e.scope,__useComponent:!0});return Gc(e,t,Nc,(...r)=>n[to](...r))}}),Xc=ht({name:"i18n-d",props:Re({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},io),setup(e,t){const n=e.i18n||yt({useScope:e.scope,__useComponent:!0});return Gc(e,t,Cc,(...r)=>n[eo](...r))}});function cg(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 ug(e){const t=o=>{const{instance:a,modifiers:l,value:u}=o;if(!a||!a.$)throw Le(Se.UNEXPECTED_ERROR);const c=cg(e,a.$),f=Zc(u);return[Reflect.apply(c.t,c,[...Jc(f)]),c]};return{created:(o,a)=>{const[l,u]=t(a);ms&&e.global===u&&(o.__i18nWatcher=fn(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{ms&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,u=Zc(a);o.textContent=Reflect.apply(l.t,l,[...Jc(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function Zc(e){if(W(e))return{path:e};if(X(e)){if(!("path"in e))throw Le(Se.REQUIRED_VALUE,"path");return e}else throw Le(Se.INVALID_VALUE)}function Jc(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,o={},a=r||{};return W(n)&&(o.locale=n),Ie(i)&&(o.plural=i),Ie(s)&&(o.plural=s),[t,a,o]}function fg(e,t,...n){const r=X(n[0])?n[0]:{},i=!!r.useI18nComponentName;(Q(r.globalInstall)?r.globalInstall:!0)&&([i?"i18n":Bc.name,"I18nT"].forEach(o=>e.component(o,Bc)),[Yc.name,"I18nN"].forEach(o=>e.component(o,Yc)),[Xc.name,"I18nD"].forEach(o=>e.component(o,Xc))),e.directive("t",ug(t))}function dg(e,t,n){return{beforeCreate(){const r=fr();if(!r)throw Le(Se.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;if(i.__i18n&&(s.__i18n=i.__i18n),s.__root=t,this===this.$root)this.$i18n=qc(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=so(s);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=qc(e,i);else{this.$i18n=so({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&jc(t,i,i),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,o)=>this.$i18n.te(s,o),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=fr();if(!r)throw Le(Se.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function qc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Mc](t.pluralizationRules||e.pluralizationRules);const n=Ts(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 hg=Yt("global-vue-i18n");function pg(e={},t){const n=__VUE_I18N_LEGACY_API__&&Q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Q(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[o,a]=mg(e,n),l=Yt("");function u(d){return s.get(d)||null}function c(d,_){s.set(d,_)}function f(d){s.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(_,...v){if(_.__VUE_I18N_SYMBOL__=l,_.provide(_.__VUE_I18N_SYMBOL__,d),X(v[0])){const E=v[0];d.__composerExtend=E.__composerExtend,d.__vueI18nExtend=E.__vueI18nExtend}let S=null;!n&&r&&(S=Eg(_,d.global)),__VUE_I18N_FULL_INSTALL__&&fg(_,d,...v),__VUE_I18N_LEGACY_API__&&n&&_.mixin(dg(a,a.__composer,d));const T=_.unmount;_.unmount=()=>{S&&S(),d.dispose(),T()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:u,__setInstance:c,__deleteInstance:f};return d}}function yt(e={}){const t=fr();if(t==null)throw Le(Se.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Le(Se.NOT_INSTALLED);const n=gg(t),r=bg(n),i=Fc(t),s=_g(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Le(Se.NOT_AVAILABLE_IN_LEGACY_MODE);return kg(t,s,r,e)}if(s==="global")return jc(r,e,i),r;if(s==="parent"){let l=yg(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Re({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),a=ro(l),o.__composerExtend&&(a[no]=o.__composerExtend(a)),wg(o,t,a),o.__setInstance(t,a)}return a}function mg(e,t,n){const r=Gs();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>so(e)):r.run(()=>ro(e));if(i==null)throw Le(Se.UNEXPECTED_ERROR);return[r,i]}}function gg(e){{const t=Be(e.isCE?hg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Le(e.isCE?Se.NOT_INSTALLED_WITH_PROVIDE:Se.UNEXPECTED_ERROR);return t}}function _g(e,t){return gs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function bg(e){return e.mode==="composition"?e.global:e.global.__composer}function yg(e,t,n=!1){let r=null;const i=t.root;let s=vg(t,n);for(;s!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(s);a!=null&&(r=a.__composer,n&&r&&!r[Dc]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function vg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function wg(e,t,n){ns(()=>{},t),fi(()=>{const r=n;e.__deleteInstance(t);const i=r[no];i&&(i(),delete r[no])},t)}function kg(e,t,n,r={}){const i=t==="local",s=ma(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Le(Se.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Q(r.inheritLocale)?r.inheritLocale:!W(r.locale),a=re(!i||o?n.locale.value:W(r.locale)?r.locale:Hn),l=re(!i||o?n.fallbackLocale.value:W(r.fallbackLocale)||ge(r.fallbackLocale)||X(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),u=re(Ts(a.value,r)),c=re(X(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=re(X(r.numberFormats)?r.numberFormats:{[a.value]:{}}),d=i?n.missingWarn:Q(r.missingWarn)||Xt(r.missingWarn)?r.missingWarn:!0,_=i?n.fallbackWarn:Q(r.fallbackWarn)||Xt(r.fallbackWarn)?r.fallbackWarn:!0,v=i?n.fallbackRoot:Q(r.fallbackRoot)?r.fallbackRoot:!0,S=!!r.fallbackFormat,T=pe(r.missing)?r.missing:null,E=pe(r.postTranslation)?r.postTranslation:null,L=i?n.warnHtmlMessage:Q(r.warnHtmlMessage)?r.warnHtmlMessage:!0,y=!!r.escapeParameter,g=i?n.modifiers:X(r.modifiers)?r.modifiers:{},O=r.pluralRules||i&&n.pluralRules;function C(){return[a.value,l.value,u.value,c.value,f.value]}const A=Ke({get:()=>s.value?s.value.locale.value:a.value,set:m=>{s.value&&(s.value.locale.value=m),a.value=m}}),N=Ke({get:()=>s.value?s.value.fallbackLocale.value:l.value,set:m=>{s.value&&(s.value.fallbackLocale.value=m),l.value=m}}),P=Ke(()=>s.value?s.value.messages.value:u.value),Y=Ke(()=>c.value),te=Ke(()=>f.value);function z(){return s.value?s.value.getPostTranslationHandler():E}function de(m){s.value&&s.value.setPostTranslationHandler(m)}function Je(){return s.value?s.value.getMissingHandler():T}function kt(m){s.value&&s.value.setMissingHandler(m)}function ie(m){return C(),m()}function q(...m){return s.value?ie(()=>Reflect.apply(s.value.t,null,[...m])):ie(()=>"")}function oe(...m){return s.value?Reflect.apply(s.value.rt,null,[...m]):""}function qe(...m){return s.value?ie(()=>Reflect.apply(s.value.d,null,[...m])):ie(()=>"")}function Tt(...m){return s.value?ie(()=>Reflect.apply(s.value.n,null,[...m])):ie(()=>"")}function Oe(m){return s.value?s.value.tm(m):{}}function Ae(m,I){return s.value?s.value.te(m,I):!1}function Qt(m){return s.value?s.value.getLocaleMessage(m):{}}function en(m,I){s.value&&(s.value.setLocaleMessage(m,I),u.value[m]=I)}function xn(m,I){s.value&&s.value.mergeLocaleMessage(m,I)}function ct(m){return s.value?s.value.getDateTimeFormat(m):{}}function Dt(m,I){s.value&&(s.value.setDateTimeFormat(m,I),c.value[m]=I)}function Ft(m,I){s.value&&s.value.mergeDateTimeFormat(m,I)}function tn(m){return s.value?s.value.getNumberFormat(m):{}}function it(m,I){s.value&&(s.value.setNumberFormat(m,I),f.value[m]=I)}function nn(m,I){s.value&&s.value.mergeNumberFormat(m,I)}const rn={get id(){return s.value?s.value.id:-1},locale:A,fallbackLocale:N,messages:P,datetimeFormats:Y,numberFormats:te,get inheritLocale(){return s.value?s.value.inheritLocale:o},set inheritLocale(m){s.value&&(s.value.inheritLocale=m)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(u.value)},get modifiers(){return s.value?s.value.modifiers:g},get pluralRules(){return s.value?s.value.pluralRules:O},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:d},set missingWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackWarn(){return s.value?s.value.fallbackWarn:_},set fallbackWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackRoot(){return s.value?s.value.fallbackRoot:v},set fallbackRoot(m){s.value&&(s.value.fallbackRoot=m)},get fallbackFormat(){return s.value?s.value.fallbackFormat:S},set fallbackFormat(m){s.value&&(s.value.fallbackFormat=m)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:L},set warnHtmlMessage(m){s.value&&(s.value.warnHtmlMessage=m)},get escapeParameter(){return s.value?s.value.escapeParameter:y},set escapeParameter(m){s.value&&(s.value.escapeParameter=m)},t:q,getPostTranslationHandler:z,setPostTranslationHandler:de,getMissingHandler:Je,setMissingHandler:kt,rt:oe,d:qe,n:Tt,tm:Oe,te:Ae,getLocaleMessage:Qt,setLocaleMessage:en,mergeLocaleMessage:xn,getDateTimeFormat:ct,setDateTimeFormat:Dt,mergeDateTimeFormat:Ft,getNumberFormat:tn,setNumberFormat:it,mergeNumberFormat:nn};function b(m){m.locale.value=a.value,m.fallbackLocale.value=l.value,Object.keys(u.value).forEach(I=>{m.mergeLocaleMessage(I,u.value[I])}),Object.keys(c.value).forEach(I=>{m.mergeDateTimeFormat(I,c.value[I])}),Object.keys(f.value).forEach(I=>{m.mergeNumberFormat(I,f.value[I])}),m.escapeParameter=y,m.fallbackFormat=S,m.fallbackRoot=v,m.fallbackWarn=_,m.missingWarn=d,m.warnHtmlMessage=L}return Ca(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Le(Se.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const m=s.value=e.proxy.$i18n.__composer;t==="global"?(a.value=m.locale.value,l.value=m.fallbackLocale.value,u.value=m.messages.value,c.value=m.datetimeFormats.value,f.value=m.numberFormats.value):i&&b(m)}),rn}const Tg=["locale","fallbackLocale","availableLocales"],Qc=["t","rt","d","n","tm","te"];function Eg(e,t){const n=Object.create(null);return Tg.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw Le(Se.UNEXPECTED_ERROR);const o=ve(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,Qc.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw Le(Se.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,Qc.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(rg(),__INTLIFY_JIT_COMPILATION__?pc(Jm):pc(Zm),Wm(km),Hm(cc),__INTLIFY_PROD_DEVTOOLS__){const e=Nt();e.__INTLIFY__=!0,Am(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function eu(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Ig(){this.__data__=[],this.size=0}function tu(e,t){return e===t||e!==e&&t!==t}function Es(e,t){for(var n=e.length;n--;)if(tu(e[n][0],t))return n;return-1}var Sg=Array.prototype,Og=Sg.splice;function xg(e){var t=this.__data__,n=Es(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Og.call(t,n,1),--this.size,!0}function Cg(e){var t=this.__data__,n=Es(t,e);return n<0?void 0:t[n][1]}function Lg(e){return Es(this.__data__,e)>-1}function Ag(e,t){var n=this.__data__,r=Es(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function $t(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$t.prototype.clear=Ig,$t.prototype.delete=xg,$t.prototype.get=Cg,$t.prototype.has=Lg,$t.prototype.set=Ag;function Ng(){this.__data__=new $t,this.size=0}function Pg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Rg(e){return this.__data__.get(e)}function $g(e){return this.__data__.has(e)}var nu=typeof global=="object"&&global&&global.Object===Object&&global,Mg=typeof self=="object"&&self&&self.Object===Object&&self,vt=nu||Mg||Function("return this")(),wt=vt.Symbol,ru=Object.prototype,Dg=ru.hasOwnProperty,Fg=ru.toString,wr=wt?wt.toStringTag:void 0;function jg(e){var t=Dg.call(e,wr),n=e[wr];try{e[wr]=void 0;var r=!0}catch{}var i=Fg.call(e);return r&&(t?e[wr]=n:delete e[wr]),i}var Ug=Object.prototype,Wg=Ug.toString;function Hg(e){return Wg.call(e)}var Kg="[object Null]",zg="[object Undefined]",su=wt?wt.toStringTag:void 0;function vn(e){return e==null?e===void 0?zg:Kg:su&&su in Object(e)?jg(e):Hg(e)}function kr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vg="[object AsyncFunction]",Bg="[object Function]",Gg="[object GeneratorFunction]",Yg="[object Proxy]";function iu(e){if(!kr(e))return!1;var t=vn(e);return t==Bg||t==Gg||t==Vg||t==Yg}var oo=vt["__core-js_shared__"],ou=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Xg(e){return!!ou&&ou in e}var Zg=Function.prototype,Jg=Zg.toString;function wn(e){if(e!=null){try{return Jg.call(e)}catch{}try{return e+""}catch{}}return""}var qg=/[\\^$.*+?()[\]{}|]/g,Qg=/^\[object .+?Constructor\]$/,e_=Function.prototype,t_=Object.prototype,n_=e_.toString,r_=t_.hasOwnProperty,s_=RegExp("^"+n_.call(r_).replace(qg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function i_(e){if(!kr(e)||Xg(e))return!1;var t=iu(e)?s_:Qg;return t.test(wn(e))}function o_(e,t){return e?.[t]}function kn(e,t){var n=o_(e,t);return i_(n)?n:void 0}var Tr=kn(vt,"Map"),Er=kn(Object,"create");function a_(){this.__data__=Er?Er(null):{},this.size=0}function l_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var c_="__lodash_hash_undefined__",u_=Object.prototype,f_=u_.hasOwnProperty;function d_(e){var t=this.__data__;if(Er){var n=t[e];return n===c_?void 0:n}return f_.call(t,e)?t[e]:void 0}var h_=Object.prototype,p_=h_.hasOwnProperty;function m_(e){var t=this.__data__;return Er?t[e]!==void 0:p_.call(t,e)}var g_="__lodash_hash_undefined__";function __(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Er&&t===void 0?g_:t,this}function Tn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tn.prototype.clear=a_,Tn.prototype.delete=l_,Tn.prototype.get=d_,Tn.prototype.has=m_,Tn.prototype.set=__;function b_(){this.size=0,this.__data__={hash:new Tn,map:new(Tr||$t),string:new Tn}}function y_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Is(e,t){var n=e.__data__;return y_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function v_(e){var t=Is(this,e).delete(e);return this.size-=t?1:0,t}function w_(e){return Is(this,e).get(e)}function k_(e){return Is(this,e).has(e)}function T_(e,t){var n=Is(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function qt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qt.prototype.clear=b_,qt.prototype.delete=v_,qt.prototype.get=w_,qt.prototype.has=k_,qt.prototype.set=T_;var E_=200;function I_(e,t){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!Tr||r.length<E_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qt(r)}return n.set(e,t),this.size=n.size,this}function Vn(e){var t=this.__data__=new $t(e);this.size=t.size}Vn.prototype.clear=Ng,Vn.prototype.delete=Pg,Vn.prototype.get=Rg,Vn.prototype.has=$g,Vn.prototype.set=I_;function S_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Ss=function(){try{var e=kn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function au(e,t,n){t=="__proto__"&&Ss?Ss(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var O_=Object.prototype,x_=O_.hasOwnProperty;function lu(e,t,n){var r=e[t];(!(x_.call(e,t)&&tu(r,n))||n===void 0&&!(t in e))&&au(e,t,n)}function Ir(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),i?au(n,a,l):lu(n,a,l)}return n}function C_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function En(e){return e!=null&&typeof e=="object"}var L_="[object Arguments]";function cu(e){return En(e)&&vn(e)==L_}var uu=Object.prototype,A_=uu.hasOwnProperty,N_=uu.propertyIsEnumerable,fu=cu(function(){return arguments}())?cu:function(e){return En(e)&&A_.call(e,"callee")&&!N_.call(e,"callee")},In=Array.isArray;function P_(){return!1}var du=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hu=du&&typeof module=="object"&&module&&!module.nodeType&&module,R_=hu&&hu.exports===du,pu=R_?vt.Buffer:void 0,$_=pu?pu.isBuffer:void 0,mu=$_||P_,M_=9007199254740991,D_=/^(?:0|[1-9]\d*)$/;function F_(e,t){var n=typeof e;return t=t??M_,!!t&&(n=="number"||n!="symbol"&&D_.test(e))&&e>-1&&e%1==0&&e<t}var j_=9007199254740991;function gu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j_}var U_="[object Arguments]",W_="[object Array]",H_="[object Boolean]",K_="[object Date]",z_="[object Error]",V_="[object Function]",B_="[object Map]",G_="[object Number]",Y_="[object Object]",X_="[object RegExp]",Z_="[object Set]",J_="[object String]",q_="[object WeakMap]",Q_="[object ArrayBuffer]",eb="[object DataView]",tb="[object Float32Array]",nb="[object Float64Array]",rb="[object Int8Array]",sb="[object Int16Array]",ib="[object Int32Array]",ob="[object Uint8Array]",ab="[object Uint8ClampedArray]",lb="[object Uint16Array]",cb="[object Uint32Array]",_e={};_e[tb]=_e[nb]=_e[rb]=_e[sb]=_e[ib]=_e[ob]=_e[ab]=_e[lb]=_e[cb]=!0,_e[U_]=_e[W_]=_e[Q_]=_e[H_]=_e[eb]=_e[K_]=_e[z_]=_e[V_]=_e[B_]=_e[G_]=_e[Y_]=_e[X_]=_e[Z_]=_e[J_]=_e[q_]=!1;function ub(e){return En(e)&&gu(e.length)&&!!_e[vn(e)]}function ao(e){return function(t){return e(t)}}var _u=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sr=_u&&typeof module=="object"&&module&&!module.nodeType&&module,fb=Sr&&Sr.exports===_u,lo=fb&&nu.process,Bn=function(){try{var e=Sr&&Sr.require&&Sr.require("util").types;return e||lo&&lo.binding&&lo.binding("util")}catch{}}(),bu=Bn&&Bn.isTypedArray,db=bu?ao(bu):ub,hb=Object.prototype,pb=hb.hasOwnProperty;function yu(e,t){var n=In(e),r=!n&&fu(e),i=!n&&!r&&mu(e),s=!n&&!r&&!i&&db(e),o=n||r||i||s,a=o?C_(e.length,String):[],l=a.length;for(var u in e)(t||pb.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||F_(u,l)))&&a.push(u);return a}var mb=Object.prototype;function co(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mb;return e===n}function vu(e,t){return function(n){return e(t(n))}}var gb=vu(Object.keys,Object),_b=Object.prototype,bb=_b.hasOwnProperty;function yb(e){if(!co(e))return gb(e);var t=[];for(var n in Object(e))bb.call(e,n)&&n!="constructor"&&t.push(n);return t}function wu(e){return e!=null&&gu(e.length)&&!iu(e)}function uo(e){return wu(e)?yu(e):yb(e)}function vb(e,t){return e&&Ir(t,uo(t),e)}function wb(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var kb=Object.prototype,Tb=kb.hasOwnProperty;function Eb(e){if(!kr(e))return wb(e);var t=co(e),n=[];for(var r in e)r=="constructor"&&(t||!Tb.call(e,r))||n.push(r);return n}function fo(e){return wu(e)?yu(e,!0):Eb(e)}function Ib(e,t){return e&&Ir(t,fo(t),e)}var ku=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tu=ku&&typeof module=="object"&&module&&!module.nodeType&&module,Sb=Tu&&Tu.exports===ku,Eu=Sb?vt.Buffer:void 0,Iu=Eu?Eu.allocUnsafe:void 0;function Ob(e,t){if(t)return e.slice();var n=e.length,r=Iu?Iu(n):new e.constructor(n);return e.copy(r),r}function xb(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Cb(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function Su(){return[]}var Lb=Object.prototype,Ab=Lb.propertyIsEnumerable,Ou=Object.getOwnPropertySymbols,ho=Ou?function(e){return e==null?[]:(e=Object(e),Cb(Ou(e),function(t){return Ab.call(e,t)}))}:Su;function Nb(e,t){return Ir(e,ho(e),t)}function po(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var mo=vu(Object.getPrototypeOf,Object),Pb=Object.getOwnPropertySymbols,xu=Pb?function(e){for(var t=[];e;)po(t,ho(e)),e=mo(e);return t}:Su;function Rb(e,t){return Ir(e,xu(e),t)}function Cu(e,t,n){var r=t(e);return In(e)?r:po(r,n(e))}function $b(e){return Cu(e,uo,ho)}function Lu(e){return Cu(e,fo,xu)}var go=kn(vt,"DataView"),_o=kn(vt,"Promise"),bo=kn(vt,"Set"),yo=kn(vt,"WeakMap"),Au="[object Map]",Mb="[object Object]",Nu="[object Promise]",Pu="[object Set]",Ru="[object WeakMap]",$u="[object DataView]",Db=wn(go),Fb=wn(Tr),jb=wn(_o),Ub=wn(bo),Wb=wn(yo),Mt=vn;(go&&Mt(new go(new ArrayBuffer(1)))!=$u||Tr&&Mt(new Tr)!=Au||_o&&Mt(_o.resolve())!=Nu||bo&&Mt(new bo)!=Pu||yo&&Mt(new yo)!=Ru)&&(Mt=function(e){var t=vn(e),n=t==Mb?e.constructor:void 0,r=n?wn(n):"";if(r)switch(r){case Db:return $u;case Fb:return Au;case jb:return Nu;case Ub:return Pu;case Wb:return Ru}return t});var Hb=Object.prototype,Kb=Hb.hasOwnProperty;function zb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Kb.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Mu=vt.Uint8Array;function vo(e){var t=new e.constructor(e.byteLength);return new Mu(t).set(new Mu(e)),t}function Vb(e,t){var n=t?vo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Bb=/\w*$/;function Gb(e){var t=new e.constructor(e.source,Bb.exec(e));return t.lastIndex=e.lastIndex,t}var Du=wt?wt.prototype:void 0,Fu=Du?Du.valueOf:void 0;function Yb(e){return Fu?Object(Fu.call(e)):{}}function Xb(e,t){var n=t?vo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Zb="[object Boolean]",Jb="[object Date]",qb="[object Map]",Qb="[object Number]",ey="[object RegExp]",ty="[object Set]",ny="[object String]",ry="[object Symbol]",sy="[object ArrayBuffer]",iy="[object DataView]",oy="[object Float32Array]",ay="[object Float64Array]",ly="[object Int8Array]",cy="[object Int16Array]",uy="[object Int32Array]",fy="[object Uint8Array]",dy="[object Uint8ClampedArray]",hy="[object Uint16Array]",py="[object Uint32Array]";function my(e,t,n){var r=e.constructor;switch(t){case sy:return vo(e);case Zb:case Jb:return new r(+e);case iy:return Vb(e,n);case oy:case ay:case ly:case cy:case uy:case fy:case dy:case hy:case py:return Xb(e,n);case qb:return new r;case Qb:case ny:return new r(e);case ey:return Gb(e);case ty:return new r;case ry:return Yb(e)}}var ju=Object.create,gy=function(){function e(){}return function(t){if(!kr(t))return{};if(ju)return ju(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function _y(e){return typeof e.constructor=="function"&&!co(e)?gy(mo(e)):{}}var by="[object Map]";function yy(e){return En(e)&&Mt(e)==by}var Uu=Bn&&Bn.isMap,vy=Uu?ao(Uu):yy,wy="[object Set]";function ky(e){return En(e)&&Mt(e)==wy}var Wu=Bn&&Bn.isSet,Ty=Wu?ao(Wu):ky,Ey=1,Iy=2,Sy=4,Hu="[object Arguments]",Oy="[object Array]",xy="[object Boolean]",Cy="[object Date]",Ly="[object Error]",Ku="[object Function]",Ay="[object GeneratorFunction]",Ny="[object Map]",Py="[object Number]",zu="[object Object]",Ry="[object RegExp]",$y="[object Set]",My="[object String]",Dy="[object Symbol]",Fy="[object WeakMap]",jy="[object ArrayBuffer]",Uy="[object DataView]",Wy="[object Float32Array]",Hy="[object Float64Array]",Ky="[object Int8Array]",zy="[object Int16Array]",Vy="[object Int32Array]",By="[object Uint8Array]",Gy="[object Uint8ClampedArray]",Yy="[object Uint16Array]",Xy="[object Uint32Array]",me={};me[Hu]=me[Oy]=me[jy]=me[Uy]=me[xy]=me[Cy]=me[Wy]=me[Hy]=me[Ky]=me[zy]=me[Vy]=me[Ny]=me[Py]=me[zu]=me[Ry]=me[$y]=me[My]=me[Dy]=me[By]=me[Gy]=me[Yy]=me[Xy]=!0,me[Ly]=me[Ku]=me[Fy]=!1;function Os(e,t,n,r,i,s){var o,a=t&Ey,l=t&Iy,u=t&Sy;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!kr(e))return e;var c=In(e);if(c){if(o=zb(e),!a)return xb(e,o)}else{var f=Mt(e),d=f==Ku||f==Ay;if(mu(e))return Ob(e,a);if(f==zu||f==Hu||d&&!i){if(o=l||d?{}:_y(e),!a)return l?Rb(e,Ib(o,e)):Nb(e,vb(o,e))}else{if(!me[f])return i?e:{};o=my(e,f,a)}}s||(s=new Vn);var _=s.get(e);if(_)return _;s.set(e,o),Ty(e)?e.forEach(function(T){o.add(Os(T,t,n,T,e,s))}):vy(e)&&e.forEach(function(T,E){o.set(E,Os(T,t,n,E,e,s))});var v=u?l?Lu:$b:l?fo:uo,S=c?void 0:v(e);return S_(S||e,function(T,E){S&&(E=T,T=e[E]),lu(o,E,Os(T,t,n,E,e,s))}),o}var Zy="[object Symbol]";function wo(e){return typeof e=="symbol"||En(e)&&vn(e)==Zy}var Jy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qy=/^\w*$/;function Qy(e,t){if(In(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wo(e)?!0:qy.test(e)||!Jy.test(e)||t!=null&&e in Object(t)}var ev="Expected a function";function ko(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ev);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(ko.Cache||qt),n}ko.Cache=qt;var tv=500;function nv(e){var t=ko(e,function(r){return n.size===tv&&n.clear(),r}),n=t.cache;return t}var rv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sv=/\\(\\)?/g,iv=nv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rv,function(n,r,i,s){t.push(i?s.replace(sv,"$1"):r||n)}),t}),ov=1/0,Vu=wt?wt.prototype:void 0,Bu=Vu?Vu.toString:void 0;function Gu(e){if(typeof e=="string")return e;if(In(e))return eu(e,Gu)+"";if(wo(e))return Bu?Bu.call(e):"";var t=e+"";return t=="0"&&1/e==-ov?"-0":t}function av(e){return e==null?"":Gu(e)}function To(e,t){return In(e)?e:Qy(e,t)?[e]:iv(av(e))}function lv(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var cv=1/0;function Yu(e){if(typeof e=="string"||wo(e))return e;var t=e+"";return t=="0"&&1/e==-cv?"-0":t}function uv(e,t){t=To(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Yu(t[n++])];return n&&n==r?e:void 0}function fv(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function dv(e,t){return t.length<2?e:uv(e,fv(t,0,-1))}function hv(e,t){return t=To(t,e),e=dv(e,t),e==null||delete e[Yu(lv(t))]}var pv="[object Object]",mv=Function.prototype,gv=Object.prototype,Xu=mv.toString,_v=gv.hasOwnProperty,bv=Xu.call(Object);function yv(e){if(!En(e)||vn(e)!=pv)return!1;var t=mo(e);if(t===null)return!0;var n=_v.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Xu.call(n)==bv}function vv(e){return yv(e)?void 0:e}var Zu=wt?wt.isConcatSpreadable:void 0;function wv(e){return In(e)||fu(e)||!!(Zu&&e&&e[Zu])}function kv(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=wv),i||(i=[]);++s<o;){var a=e[s];n(a)?po(i,a):i[i.length]=a}return i}function Tv(e){var t=e==null?0:e.length;return t?kv(e):[]}function Ev(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ju=Math.max;function Iv(e,t,n){return t=Ju(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=Ju(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),Ev(e,this,a)}}function Sv(e){return function(){return e}}function Ov(e){return e}var xv=Ss?function(e,t){return Ss(e,"toString",{configurable:!0,enumerable:!1,value:Sv(t),writable:!0})}:Ov,Cv=800,Lv=16,Av=Date.now;function Nv(e){var t=0,n=0;return function(){var r=Av(),i=Lv-(r-n);if(n=r,i>0){if(++t>=Cv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Pv=Nv(xv);function Rv(e){return Pv(Iv(e,void 0,Tv),e+"")}var $v=1,Mv=2,Dv=4,Fv=Rv(function(e,t){var n={};if(e==null)return n;var r=!1;t=eu(t,function(s){return s=To(s,e),r||(r=s.length>1),s}),Ir(e,Lu(e),n),r&&(n=Os(n,$v|Mv|Dv,vv));for(var i=t.length;i--;)hv(n,t[i]);return n});const qu={de:{admin:"Admin",anonymous:"Anonym",approve_hint:"Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)",discussion:"Diskussion",edit:"Bearbeiten",load_more:"Mehr laden",login:"Anmelden",logout:"Abmelden",placeholder:"Schreiben Sie ein Kommentar...",post_comment:"Kommentar absenden",post_reply:"Antwort absenden",reply:"Antwort",reply_to:"Antwort auf",save_editing:"Speichern",ui_texts:["Seien Sie der Erste, der die Diskussion beginnt!","Beteiligen Sie sich an der Konversation (#)","Laden...","Kommentare laden"],your_comment:"Dein Kommentar"},en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",edit:"Edit",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",save_editing:"Save",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",edit:"Editar",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",save_editing:"Guardar",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},fr:{admin:"Admin",anonymous:"Anonyme",approve_hint:"Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)",discussion:"Discussion",edit:"Modifier",load_more:"Charger plus",login:"CONNEXION",logout:"Déconnexion",placeholder:"Écrivez un commentaire...",post_comment:"POSTER UN COMMENTAIRE",post_reply:"POSTER UNE RÉPONSE",reply:"Répondre",reply_to:"répondre à",save_editing:"Enregistrer",ui_texts:["Soyez le premier à lancer la discussion !","Rejoignez la conversation (#)","Chargement...","Charger les commentaires"],your_comment:"Votre commentaire"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",edit:"Edit",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",save_editing:"Simpan",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",edit:"Modifica",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",save_editing:"Salva",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",edit:"編集",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",save_editing:"保存",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",edit:"편집",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",save_editing:"저장",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",edit:"Editar",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",save_editing:"Salvar",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",edit:"แก้ไข",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",save_editing:"บันทึก",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",edit:"修改",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",save_editing:"保存",your_comment:"您的評論"},cn:{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",edit:"编辑",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",save_editing:"保存",your_comment:"您的评论"}};function jv(){return!!navigator.userAgent.match(/Macintosh/)}function Uv(e,t){return(jv()?e.metaKey:e.ctrlKey)&&e.key===t}var xs=(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))(xs||{});const Wv=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function Cs(e){return e<10?`0${e}`:`${e}`}function Qu(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function ef(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${Cs(n)}-${Cs(r)}`}function tf(e){e instanceof Date||(e=Qu(e));const t=new Date,n=ef(e);if(ef(t)===n){const r=e.getHours(),i=e.getMinutes();return`${Cs(r)}:${Cs(i)}`}return n}function Hv(e){const{id:t,created_at:n,parent_id:r,ancestor_id:i,post_id:s,user_id:o,...a}=e;return{...a,id:Number(t),userId:o,parentId:Number(r),postId:s,ancestorId:Number(i),status:Number(e.status),createdAt:Qu(n)}}const Eo="awesome-comment-comments",nf=localStorage.getItem(Eo),Gn=nf?JSON.parse(nf):{},Yn=up("store",()=>{const e=Be("postId"),t=Be("comments"),n=Be("total"),r=re(!!t?.length),i=re(0),s=re(""),o=re([]),a=re(n||0),l=Be("ApiBaseUrl"),u=re(!1),c=re(!1);function f(T){const E={},L=[];T.forEach(g=>{v(Number(g.id));const O=Hv(g);!g.ancestor_id||Number(g.ancestor_id)===0?E[g.id]=O:L.push(O)});const y=Gn[e];y&&(y.createdAt=new Date(y.createdAt),!y.ancestorId||Number(y.ancestorId)===0?E[y.id]=y:L.push(y)),L.forEach(g=>{if(g.ancestorId in E){const O=E[g.ancestorId];O.children=[g,...O.children||[]]}});for(const g in E){const O=E[g];O.children&&(O.children=O.children.sort((C,A)=>C.id-A.id))}return E}async function d(T=!1){if(u.value)return;s.value="",u.value=!0;let E;if(T&&t?.length)E=f(t);else{const L=new URLSearchParams;L.append("postId",e),L.append("start",i.value.toString());const y=await fetch(`${l}/api/comments?${L}`);if(!y.ok){s.value="Load comments failed. "+y.statusText,r.value=!0,u.value=!1;return}const g=await y.json();if(g.code!==0){s.value="Load comments failed. "+g.message,r.value=!0,u.value=!1;return}E=f(g.data||[]),a.value=g.meta?.total||g.data?.length||0}c.value=Object.keys(E).length>20,c.value&&delete E[Object.keys(E)[0]],Object.assign(o.value,E),r.value=!0,u.value=!1}function _(T,E,L,y=xs.Pending,g,O){const{sub:C="",name:A="",picture:N="",email:P="",nickname:Y=""}=L,te={id:T,postId:e,content:E,createdAt:new Date,user:{avatar:N,email:P,name:Y||A},userId:C,status:y,isNew:!0};if(g||O){te.ancestorId=g,te.parentId=O;const z=o.value[g];if(z.children||(z.children=[]),g===O)z.children.unshift(te);else{const de=z.children.findIndex(Je=>Number(Je.id)===O);z.children.splice(de+1,0,te)}}else te.ancestorId=0,te.parentId=0,o.value={[T]:te,...o.value};a.value++,y!==xs.Approved&&(Gn[e]=te,localStorage.setItem(Eo,JSON.stringify(Gn)))}function v(T){Gn[e]?.id===T&&(delete Gn[e],localStorage.setItem(Eo,JSON.stringify(Gn)))}function S(T,E){const L=o.value[T];L&&Object.assign(L,E)}return{isLoaded:r,message:s,postId:e,comments:o,total:a,start:i,hasMore:c,loadingMore:u,loadComments:d,addComment:_,updateComment:S}}),Kv={class:"ac-form-control bg-base-200 rounded-lg"},zv={class:"sr-only",for:"ac-comment"},Vv=["placeholder"],Bv={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Gv={key:0,class:"text-xs text-neutral-400/40"},Yv={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},Xv=["disabled"],Zv={key:0,class:"ac-loading ac-loading-spinner"},Ls=ht({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,i=Hi(),s=Yn(),{t:o}=yt(),a=Be("ApiBaseUrl"),l=Be("Auth0Domain"),u="0.8.1",c=re(),f=re(!1),d=re(n.content||""),_=re("");async function v(L){if(!i.user.value)return S();if(L.target.matches(":invalid"))return;const y=d.value.trim();if(!y)return;f.value=!0,_.value="";let g=a+"/api/comment",O="POST";n.currentId&&(g+="/"+n.currentId,O="PATCH");try{const C=await i.getAccessTokenSilently(),A=await fetch(g,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${C}`},body:JSON.stringify({comment:y,postId:s.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status,window:`${window.innerWidth}x${window.innerHeight} / ${screen.width,screen.height}`})}),N=await A.json();if(!A.ok||N.message){_.value="Failed to post comment: "+(N.message||"Unknown"),f.value=!1;return}const{id:P,status:Y}=N.data;n.ancestorId||n.parentId?s.addComment(P,y,i.user.value,Y,n.ancestorId,n.parentId):n.currentId?r("update",y):s.addComment(P,y,i.user.value,Y),d.value="",r("close")}catch(C){_.value=C.message||String(C)}f.value=!1}function S(){i.loginWithPopup()}function T(L){Uv(L,"Enter")&&v(L)}function E(){r("close")}return ns(()=>{c.value?.focus()}),(L,y)=>(J(),ee("form",{class:"mb-6",onSubmit:Zh(v,["prevent"])},[le("div",Kv,[le("label",zv,ye(V(o)("your_comment")),1),vd(le("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:V(o)("placeholder"),required:"",onKeydown:[Ol(T,["enter"]),Ol(E,["esc"])],"onUpdate:modelValue":y[0]||(y[0]=g=>d.value=g)},null,40,Vv),[[Gh,d.value]]),le("div",Bv,[L.noVersion?De("",!0):(J(),ee("div",Gv,"v"+ye(V(u)),1)),_.value?(J(),ee("div",Yv,ye(_.value),1)):De("",!0),le("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:f.value},[f.value?(J(),ee("span",Zv)):De("",!0),L.currentId?(J(),ee(xe,{key:1},[hn(ye(V(o)("save_editing")),1)],64)):L.parentId?(J(),ee(xe,{key:2},[hn(ye(V(o)("post_reply")),1)],64)):(J(),ee(xe,{key:3},[hn(ye(V(o)("post_comment")),1)],64))],8,Xv)])])],32))}});/**
|
|
46
|
-
* @license lucide-vue-next v0.
|
|
45
|
+
*/const xm="10.0.4";function Sm(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ln().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ln().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ln().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ln().__INTLIFY_PROD_DEVTOOLS__=!1)}const We={UNEXPECTED_RETURN_TYPE:Vp,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 He(e,...t){return cs(e,null,void 0)}const Ki=Ht("__translateVNode"),Vi=Ht("__datetimeParts"),Bi=Ht("__numberParts"),hc=Ht("__setPluralRules"),pc=Ht("__injectWithOption"),Gi=Ht("__dispose");function fr(e){if(!re(e))return e;for(const t in e)if(os(e,t))if(!t.includes("."))re(e[t])&&fr(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]]={}),!re(s[n[o]])){i=!0;break}s=s[n[o]]}i||(s[n[r]]=e[t],delete e[t]),re(s[n[r]])&&fr(s[n[r]])}return e}function Zi(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=G(n)?n:ye(r)?{}:{[e]:{}};if(ye(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||{},ls(u,o[l])):ls(u,o)}else F(a)&&ls(JSON.parse(a),o)}),s==null&&i)for(const a in o)os(o,a)&&fr(o[a]);return o}function mc(e){return e.type}function gc(e,t,n){let r=re(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Zi(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(re(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(re(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function _c(e){return we(Xn,null,e,0)}const bc="__INTLIFY_META__",yc=()=>[],Om=()=>!1;let vc=0;function wc(e){return(t,n,r,s)=>e(n,r,er()||void 0,s)}const Cm=()=>{const e=er();let t=null;return e&&(t=mc(e)[bc])?{[bc]:t}:null};function Yi(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=ss?te:Af;let o=ne(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:F(e.locale)?e.locale:cr),l=i(t&&o?t.fallbackLocale.value:F(e.fallbackLocale)||ye(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(Zi(a.value,e)),c=i(G(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(G(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:ne(e.missingWarn)||Sn(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ne(e.fallbackWarn)||Sn(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:ne(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,E=he(e.missing)?e.missing:null,g=he(e.missing)?wc(e.missing):null,v=he(e.postTranslation)?e.postTranslation:null,x=t?t.warnHtmlMessage:ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const C=t?t.modifiers:G(e.modifiers)?e.modifiers:{};let $=e.pluralRules||t&&t.pluralRules,L;L=(()=>{r&&ec(null);const k={version:xm,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:$,missing:g===null?void 0:g,missingWarn:d,fallbackWarn:m,fallbackFormat:T,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:x,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};k.datetimeFormats=c.value,k.numberFormats=f.value,k.__datetimeFormatters=G(L)?L.__datetimeFormatters:void 0,k.__numberFormatters=G(L)?L.__numberFormatters:void 0;const S=fm(k);return r&&ec(S),S})(),ur(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:k=>{a.value=k,L.locale=a.value}}),X=rt({get:()=>l.value,set:k=>{l.value=k,L.fallbackLocale=l.value,ur(L,a.value,k)}}),J=rt(()=>u.value),Ce=rt(()=>c.value),st=rt(()=>f.value);function Bt(){return he(v)?v:null}function me(k){v=k,L.postTranslation=k}function B(){return E}function ie(k){k!==null&&(g=wc(k)),E=k,L.missing=g}const Ae=(k,S,j,W,Q,ee)=>{U();let ke;try{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=t?um():void 0),ke=k(L)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=void 0)}if(j!=="translate exists"&&Te(ke)&&ke===fs||j==="translate exists"&&!ke){const[Oe,tt]=S();return t&&y?W(t):Q(Oe)}else{if(ee(ke))return ke;throw He(We.UNEXPECTED_RETURN_TYPE)}};function Lt(...k){return Ae(S=>Reflect.apply(uc,null,[S,...k]),()=>zi(...k),"translate",S=>Reflect.apply(S.t,S,[...k]),S=>S,S=>F(S))}function et(...k){const[S,j,W]=k;if(W&&!re(W))throw He(We.INVALID_ARGUMENT);return Lt(S,j,Ie({resolvedMessage:!0},W||{}))}function ze(...k){return Ae(S=>Reflect.apply(nc,null,[S,...k]),()=>Wi(...k),"datetime format",S=>Reflect.apply(S.d,S,[...k]),()=>Gl,S=>F(S))}function $n(...k){return Ae(S=>Reflect.apply(ic,null,[S,...k]),()=>Hi(...k),"number format",S=>Reflect.apply(S.n,S,[...k]),()=>Gl,S=>F(S))}function Tr(k){return k.map(S=>F(S)||Te(S)||ne(S)?_c(String(S)):S)}const Pt={normalize:Tr,interpolate:k=>k,type:"vnode"};function Gt(...k){return Ae(S=>{let j;const W=S;try{W.processor=Pt,j=Reflect.apply(uc,null,[W,...k])}finally{W.processor=null}return j},()=>zi(...k),"translate",S=>S[Ki](...k),S=>[_c(S)],S=>ye(S))}function Zt(...k){return Ae(S=>Reflect.apply(ic,null,[S,...k]),()=>Hi(...k),"number format",S=>S[Bi](...k),yc,S=>F(S)||ye(S))}function Mn(...k){return Ae(S=>Reflect.apply(nc,null,[S,...k]),()=>Wi(...k),"datetime format",S=>S[Vi](...k),yc,S=>F(S)||ye(S))}function Rt(k){$=k,L.pluralRules=$}function Dn(k,S){return Ae(()=>{if(!k)return!1;const j=F(S)?S:a.value,W=w(j),Q=L.messageResolver(W,k);return An(Q)||Je(Q)||F(Q)},()=>[k],"translate exists",j=>Reflect.apply(j.te,j,[k,S]),Om,j=>ne(j))}function jn(k){let S=null;const j=Kl(L,l.value,a.value);for(let W=0;W<j.length;W++){const Q=u.value[j[W]]||{},ee=L.messageResolver(Q,k);if(ee!=null){S=ee;break}}return S}function b(k){const S=jn(k);return S??(t?t.tm(k)||{}:{})}function w(k){return u.value[k]||{}}function A(k,S){if(s){const j={[k]:S};for(const W in j)os(j,W)&&fr(j[W]);S=j[k]}u.value[k]=S,L.messages=u.value}function N(k,S){u.value[k]=u.value[k]||{};const j={[k]:S};if(s)for(const W in j)os(j,W)&&fr(j[W]);S=j[k],ls(S,u.value[k]),L.messages=u.value}function R(k){return c.value[k]||{}}function h(k,S){c.value[k]=S,L.datetimeFormats=c.value,sc(L,k,S)}function p(k,S){c.value[k]=Ie(c.value[k]||{},S),L.datetimeFormats=c.value,sc(L,k,S)}function I(k){return f.value[k]||{}}function O(k,S){f.value[k]=S,L.numberFormats=f.value,ac(L,k,S)}function P(k,S){f.value[k]=Ie(f.value[k]||{},S),L.numberFormats=f.value,ac(L,k,S)}vc++,t&&ss&&(ct(t.locale,k=>{o&&(a.value=k,L.locale=k,ur(L,a.value,l.value))}),ct(t.fallbackLocale,k=>{o&&(l.value=k,L.fallbackLocale=k,ur(L,a.value,l.value))}));const M={id:vc,locale:Z,fallbackLocale:X,get inheritLocale(){return o},set inheritLocale(k){o=k,k&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,ur(L,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:J,get modifiers(){return C},get pluralRules(){return $||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(k){d=k,L.missingWarn=d},get fallbackWarn(){return m},set fallbackWarn(k){m=k,L.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(k){y=k},get fallbackFormat(){return T},set fallbackFormat(k){T=k,L.fallbackFormat=T},get warnHtmlMessage(){return x},set warnHtmlMessage(k){x=k,L.warnHtmlMessage=k},get escapeParameter(){return _},set escapeParameter(k){_=k,L.escapeParameter=k},t:Lt,getLocaleMessage:w,setLocaleMessage:A,mergeLocaleMessage:N,getPostTranslationHandler:Bt,setPostTranslationHandler:me,getMissingHandler:B,setMissingHandler:ie,[hc]:Rt};return M.datetimeFormats=Ce,M.numberFormats=st,M.rt=et,M.te=Dn,M.tm=b,M.d=ze,M.n=$n,M.getDateTimeFormat=R,M.setDateTimeFormat=h,M.mergeDateTimeFormat=p,M.getNumberFormat=I,M.setNumberFormat=O,M.mergeNumberFormat=P,M[pc]=n,M[Ki]=Gt,M[Vi]=Mn,M[Bi]=Zt,M}function Am(e){const t=F(e.locale)?e.locale:cr,n=F(e.fallbackLocale)||ye(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=he(e.missing)?e.missing:void 0,s=ne(e.silentTranslationWarn)||Sn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ne(e.silentFallbackWarn)||Sn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ne(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=G(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=he(e.postTranslation)?e.postTranslation:void 0,f=F(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,m=ne(e.sync)?e.sync:!0;let y=e.messages;if(G(e.sharedMessages)){const C=e.sharedMessages;y=Object.keys(C).reduce((L,D)=>{const U=L[D]||(L[D]={});return Ie(U,C[D]),L},y||{})}const{__i18n:T,__root:E,__injectWithOption:g}=e,v=e.datetimeFormats,x=e.numberFormats,_=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:_,datetimeFormats:v,numberFormats:x,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:T,__root:E,__injectWithOption:g}}function Xi(e={}){const t=Yi(Am(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])},tc(...s){const[i,o,a]=s,l={plural:1};let u=null,c=null;if(!F(i))throw He(We.INVALID_ARGUMENT);const f=i;return F(o)?l.locale=o:Te(o)?l.plural=o:ye(o)?u=o:G(o)&&(c=o),F(a)?l.locale=a:ye(a)?u=a:G(a)&&(c=a),Reflect.apply(t.t,t,[f,u||c||{},l])},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 Lm(e,t,n){return{beforeCreate(){const r=er();if(!r)throw He(We.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=kc(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=Xi(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=kc(e,s);else{this.$i18n=Xi({__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&&gc(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...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=er();if(!r)throw He(We.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,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 kc(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[hc](t.pluralizationRules||e.pluralizationRules);const n=Zi(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 Ji={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Pm({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===xe?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},{})}function Tc(){return xe}const Ic=lt({name:"i18n-t",props:Ie({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Te(e)||!isNaN(e)}},Ji),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||mt({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=F(e.plural)?+e.plural:e.plural);const a=Pm(t,i),l=s[Ki](e.keypath,a,o),u=Ie({},r),c=F(e.tag)||re(e.tag)?e.tag:Tc();return rr(c,u,l)}}});function Rm(e){return ye(e)&&!F(e[0])}function Ec(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),F(e.format)?o.key=e.format:re(e.format)&&(F(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,m)=>n.includes(m)?Ie({},d,{[m]:e.format[m]}):d,{}));const l=r(e.value,o,a);let u=[o.key];ye(l)?u=l.map((d,m)=>{const y=s[d.type],T=y?y({[d.type]:d.value,index:m,parts:l}):[d.value];return Rm(T)&&(T[0].key=`${d.type}-${m}`),T}):F(l)&&(u=[l]);const c=Ie({},i),f=F(e.tag)||re(e.tag)?e.tag:Tc();return rr(f,c,u)}}const xc=lt({name:"i18n-n",props:Ie({value:{type:Number,required:!0},format:{type:[String,Object]}},Ji),setup(e,t){const n=e.i18n||mt({useScope:e.scope,__useComponent:!0});return Ec(e,t,oc,(...r)=>n[Bi](...r))}}),Sc=lt({name:"i18n-d",props:Ie({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ji),setup(e,t){const n=e.i18n||mt({useScope:e.scope,__useComponent:!0});return Ec(e,t,rc,(...r)=>n[Vi](...r))}});function Nm(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 $m(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw He(We.UNEXPECTED_ERROR);const u=Nm(e,a.$),c=Oc(l);return[Reflect.apply(u.t,u,[...Cc(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);ss&&e.global===u&&(o.__i18nWatcher=ct(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{ss&&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=Oc(a);o.textContent=Reflect.apply(l.t,l,[...Cc(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function Oc(e){if(F(e))return{path:e};if(G(e)){if(!("path"in e))throw He(We.REQUIRED_VALUE,"path");return e}else throw He(We.INVALID_VALUE)}function Cc(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return F(n)&&(o.locale=n),Te(s)&&(o.plural=s),Te(i)&&(o.plural=i),[t,a,o]}function Mm(e,t,...n){const r=G(n[0])?n[0]:{};(ne(r.globalInstall)?r.globalInstall:!0)&&([Ic.name,"I18nT"].forEach(i=>e.component(i,Ic)),[xc.name,"I18nN"].forEach(i=>e.component(i,xc)),[Sc.name,"I18nD"].forEach(i=>e.component(i,Sc))),e.directive("t",$m(t))}const Dm=Ht("global-vue-i18n");function jm(e={},t){const n=__VUE_I18N_LEGACY_API__&&ne(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=ne(e.globalInjection)?e.globalInjection:!0,s=new Map,[i,o]=Fm(e,n),a=Ht("");function l(d){return s.get(d)||null}function u(d,m){s.set(d,m)}function c(d){s.delete(d)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(d,...m){if(d.__VUE_I18N_SYMBOL__=a,d.provide(d.__VUE_I18N_SYMBOL__,f),G(m[0])){const E=m[0];f.__composerExtend=E.__composerExtend,f.__vueI18nExtend=E.__vueI18nExtend}let y=null;!n&&r&&(y=Gm(d,f.global)),__VUE_I18N_FULL_INSTALL__&&Mm(d,f,...m),__VUE_I18N_LEGACY_API__&&n&&d.mixin(Lm(o,o.__composer,f));const T=d.unmount;d.unmount=()=>{y&&y(),f.dispose(),T()}},get global(){return o},dispose(){i.stop()},__instances:s,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function mt(e={}){const t=er();if(t==null)throw He(We.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw He(We.NOT_INSTALLED);const n=Um(t),r=Hm(n),s=mc(t),i=Wm(e,s);if(i==="global")return gc(r,e,s),r;if(i==="parent"){let l=zm(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=Yi(l),o.__composerExtend&&(a[Gi]=o.__composerExtend(a)),Vm(o,t,a),o.__setInstance(t,a)}return a}function Fm(e,t,n){const r=Ds(),s=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Xi(e)):r.run(()=>Yi(e));if(s==null)throw He(We.UNEXPECTED_ERROR);return[r,s]}function Um(e){const t=Fe(e.isCE?Dm:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw He(e.isCE?We.NOT_INSTALLED_WITH_PROVIDE:We.UNEXPECTED_ERROR);return t}function Wm(e,t){return is(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Hm(e){return e.mode==="composition"?e.global:e.global.__composer}function zm(e,t,n=!1){let r=null;const s=t.root;let i=Km(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[pc]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function Km(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Vm(e,t,n){Br(()=>{},t),ti(()=>{const r=n;e.__deleteInstance(t);const s=r[Gi];s&&(s(),delete r[Gi])},t)}const Bm=["locale","fallbackLocale","availableLocales"],Ac=["t","rt","d","n","tm","te"];function Gm(e,t){const n=Object.create(null);return Bm.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw He(We.UNEXPECTED_ERROR);const o=be(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,Ac.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw He(We.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,Ac.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}if(Sm(),im(Up),om(nm),am(Kl),__INTLIFY_PROD_DEVTOOLS__){const e=ln();e.__INTLIFY__=!0,Wp(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Lc(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 Zm(){this.__data__=[],this.size=0}function Pc(e,t){return e===t||e!==e&&t!==t}function ds(e,t){for(var n=e.length;n--;)if(Pc(e[n][0],t))return n;return-1}var Ym=Array.prototype,Xm=Ym.splice;function Jm(e){var t=this.__data__,n=ds(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Xm.call(t,n,1),--this.size,!0}function qm(e){var t=this.__data__,n=ds(t,e);return n<0?void 0:t[n][1]}function Qm(e){return ds(this.__data__,e)>-1}function eg(e,t){var n=this.__data__,r=ds(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ct(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])}}Ct.prototype.clear=Zm,Ct.prototype.delete=Jm,Ct.prototype.get=qm,Ct.prototype.has=Qm,Ct.prototype.set=eg;function tg(){this.__data__=new Ct,this.size=0}function ng(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function rg(e){return this.__data__.get(e)}function sg(e){return this.__data__.has(e)}var Rc=typeof global=="object"&&global&&global.Object===Object&&global,ig=typeof self=="object"&&self&&self.Object===Object&&self,gt=Rc||ig||Function("return this")(),_t=gt.Symbol,Nc=Object.prototype,og=Nc.hasOwnProperty,ag=Nc.toString,dr=_t?_t.toStringTag:void 0;function lg(e){var t=og.call(e,dr),n=e[dr];try{e[dr]=void 0;var r=!0}catch{}var s=ag.call(e);return r&&(t?e[dr]=n:delete e[dr]),s}var cg=Object.prototype,ug=cg.toString;function fg(e){return ug.call(e)}var dg="[object Null]",hg="[object Undefined]",$c=_t?_t.toStringTag:void 0;function cn(e){return e==null?e===void 0?hg:dg:$c&&$c in Object(e)?lg(e):fg(e)}function hr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pg="[object AsyncFunction]",mg="[object Function]",gg="[object GeneratorFunction]",_g="[object Proxy]";function Mc(e){if(!hr(e))return!1;var t=cn(e);return t==mg||t==gg||t==pg||t==_g}var qi=gt["__core-js_shared__"],Dc=function(){var e=/[^.]+$/.exec(qi&&qi.keys&&qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bg(e){return!!Dc&&Dc in e}var yg=Function.prototype,vg=yg.toString;function un(e){if(e!=null){try{return vg.call(e)}catch{}try{return e+""}catch{}}return""}var wg=/[\\^$.*+?()[\]{}|]/g,kg=/^\[object .+?Constructor\]$/,Tg=Function.prototype,Ig=Object.prototype,Eg=Tg.toString,xg=Ig.hasOwnProperty,Sg=RegExp("^"+Eg.call(xg).replace(wg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Og(e){if(!hr(e)||bg(e))return!1;var t=Mc(e)?Sg:kg;return t.test(un(e))}function Cg(e,t){return e?.[t]}function fn(e,t){var n=Cg(e,t);return Og(n)?n:void 0}var pr=fn(gt,"Map"),mr=fn(Object,"create");function Ag(){this.__data__=mr?mr(null):{},this.size=0}function Lg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pg="__lodash_hash_undefined__",Rg=Object.prototype,Ng=Rg.hasOwnProperty;function $g(e){var t=this.__data__;if(mr){var n=t[e];return n===Pg?void 0:n}return Ng.call(t,e)?t[e]:void 0}var Mg=Object.prototype,Dg=Mg.hasOwnProperty;function jg(e){var t=this.__data__;return mr?t[e]!==void 0:Dg.call(t,e)}var Fg="__lodash_hash_undefined__";function Ug(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mr&&t===void 0?Fg:t,this}function dn(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])}}dn.prototype.clear=Ag,dn.prototype.delete=Lg,dn.prototype.get=$g,dn.prototype.has=jg,dn.prototype.set=Ug;function Wg(){this.size=0,this.__data__={hash:new dn,map:new(pr||Ct),string:new dn}}function Hg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hs(e,t){var n=e.__data__;return Hg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function zg(e){var t=hs(this,e).delete(e);return this.size-=t?1:0,t}function Kg(e){return hs(this,e).get(e)}function Vg(e){return hs(this,e).has(e)}function Bg(e,t){var n=hs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Vt(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])}}Vt.prototype.clear=Wg,Vt.prototype.delete=zg,Vt.prototype.get=Kg,Vt.prototype.has=Vg,Vt.prototype.set=Bg;var Gg=200;function Zg(e,t){var n=this.__data__;if(n instanceof Ct){var r=n.__data__;if(!pr||r.length<Gg-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vt(r)}return n.set(e,t),this.size=n.size,this}function Ln(e){var t=this.__data__=new Ct(e);this.size=t.size}Ln.prototype.clear=tg,Ln.prototype.delete=ng,Ln.prototype.get=rg,Ln.prototype.has=sg,Ln.prototype.set=Zg;function Yg(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ps=function(){try{var e=fn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function jc(e,t,n){t=="__proto__"&&ps?ps(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Xg=Object.prototype,Jg=Xg.hasOwnProperty;function Fc(e,t,n){var r=e[t];(!(Jg.call(e,t)&&Pc(r,n))||n===void 0&&!(t in e))&&jc(e,t,n)}function gr(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?jc(n,a,l):Fc(n,a,l)}return n}function qg(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function hn(e){return e!=null&&typeof e=="object"}var Qg="[object Arguments]";function Uc(e){return hn(e)&&cn(e)==Qg}var Wc=Object.prototype,e_=Wc.hasOwnProperty,t_=Wc.propertyIsEnumerable,Hc=Uc(function(){return arguments}())?Uc:function(e){return hn(e)&&e_.call(e,"callee")&&!t_.call(e,"callee")},pn=Array.isArray;function n_(){return!1}var zc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Kc=zc&&typeof module=="object"&&module&&!module.nodeType&&module,r_=Kc&&Kc.exports===zc,Vc=r_?gt.Buffer:void 0,s_=Vc?Vc.isBuffer:void 0,Bc=s_||n_,i_=9007199254740991,o_=/^(?:0|[1-9]\d*)$/;function a_(e,t){var n=typeof e;return t=t??i_,!!t&&(n=="number"||n!="symbol"&&o_.test(e))&&e>-1&&e%1==0&&e<t}var l_=9007199254740991;function Gc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=l_}var c_="[object Arguments]",u_="[object Array]",f_="[object Boolean]",d_="[object Date]",h_="[object Error]",p_="[object Function]",m_="[object Map]",g_="[object Number]",__="[object Object]",b_="[object RegExp]",y_="[object Set]",v_="[object String]",w_="[object WeakMap]",k_="[object ArrayBuffer]",T_="[object DataView]",I_="[object Float32Array]",E_="[object Float64Array]",x_="[object Int8Array]",S_="[object Int16Array]",O_="[object Int32Array]",C_="[object Uint8Array]",A_="[object Uint8ClampedArray]",L_="[object Uint16Array]",P_="[object Uint32Array]",pe={};pe[I_]=pe[E_]=pe[x_]=pe[S_]=pe[O_]=pe[C_]=pe[A_]=pe[L_]=pe[P_]=!0,pe[c_]=pe[u_]=pe[k_]=pe[f_]=pe[T_]=pe[d_]=pe[h_]=pe[p_]=pe[m_]=pe[g_]=pe[__]=pe[b_]=pe[y_]=pe[v_]=pe[w_]=!1;function R_(e){return hn(e)&&Gc(e.length)&&!!pe[cn(e)]}function Qi(e){return function(t){return e(t)}}var Zc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_r=Zc&&typeof module=="object"&&module&&!module.nodeType&&module,N_=_r&&_r.exports===Zc,eo=N_&&Rc.process,Pn=function(){try{var e=_r&&_r.require&&_r.require("util").types;return e||eo&&eo.binding&&eo.binding("util")}catch{}}(),Yc=Pn&&Pn.isTypedArray,$_=Yc?Qi(Yc):R_,M_=Object.prototype,D_=M_.hasOwnProperty;function Xc(e,t){var n=pn(e),r=!n&&Hc(e),s=!n&&!r&&Bc(e),i=!n&&!r&&!s&&$_(e),o=n||r||s||i,a=o?qg(e.length,String):[],l=a.length;for(var u in e)(t||D_.call(e,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||a_(u,l)))&&a.push(u);return a}var j_=Object.prototype;function to(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||j_;return e===n}function Jc(e,t){return function(n){return e(t(n))}}var F_=Jc(Object.keys,Object),U_=Object.prototype,W_=U_.hasOwnProperty;function H_(e){if(!to(e))return F_(e);var t=[];for(var n in Object(e))W_.call(e,n)&&n!="constructor"&&t.push(n);return t}function qc(e){return e!=null&&Gc(e.length)&&!Mc(e)}function no(e){return qc(e)?Xc(e):H_(e)}function z_(e,t){return e&&gr(t,no(t),e)}function K_(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var V_=Object.prototype,B_=V_.hasOwnProperty;function G_(e){if(!hr(e))return K_(e);var t=to(e),n=[];for(var r in e)r=="constructor"&&(t||!B_.call(e,r))||n.push(r);return n}function ro(e){return qc(e)?Xc(e,!0):G_(e)}function Z_(e,t){return e&&gr(t,ro(t),e)}var Qc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,eu=Qc&&typeof module=="object"&&module&&!module.nodeType&&module,Y_=eu&&eu.exports===Qc,tu=Y_?gt.Buffer:void 0,nu=tu?tu.allocUnsafe:void 0;function X_(e,t){if(t)return e.slice();var n=e.length,r=nu?nu(n):new e.constructor(n);return e.copy(r),r}function J_(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function q_(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 ru(){return[]}var Q_=Object.prototype,eb=Q_.propertyIsEnumerable,su=Object.getOwnPropertySymbols,so=su?function(e){return e==null?[]:(e=Object(e),q_(su(e),function(t){return eb.call(e,t)}))}:ru;function tb(e,t){return gr(e,so(e),t)}function io(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var oo=Jc(Object.getPrototypeOf,Object),nb=Object.getOwnPropertySymbols,iu=nb?function(e){for(var t=[];e;)io(t,so(e)),e=oo(e);return t}:ru;function rb(e,t){return gr(e,iu(e),t)}function ou(e,t,n){var r=t(e);return pn(e)?r:io(r,n(e))}function sb(e){return ou(e,no,so)}function au(e){return ou(e,ro,iu)}var ao=fn(gt,"DataView"),lo=fn(gt,"Promise"),co=fn(gt,"Set"),uo=fn(gt,"WeakMap"),lu="[object Map]",ib="[object Object]",cu="[object Promise]",uu="[object Set]",fu="[object WeakMap]",du="[object DataView]",ob=un(ao),ab=un(pr),lb=un(lo),cb=un(co),ub=un(uo),At=cn;(ao&&At(new ao(new ArrayBuffer(1)))!=du||pr&&At(new pr)!=lu||lo&&At(lo.resolve())!=cu||co&&At(new co)!=uu||uo&&At(new uo)!=fu)&&(At=function(e){var t=cn(e),n=t==ib?e.constructor:void 0,r=n?un(n):"";if(r)switch(r){case ob:return du;case ab:return lu;case lb:return cu;case cb:return uu;case ub:return fu}return t});var fb=Object.prototype,db=fb.hasOwnProperty;function hb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&db.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var hu=gt.Uint8Array;function fo(e){var t=new e.constructor(e.byteLength);return new hu(t).set(new hu(e)),t}function pb(e,t){var n=t?fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var mb=/\w*$/;function gb(e){var t=new e.constructor(e.source,mb.exec(e));return t.lastIndex=e.lastIndex,t}var pu=_t?_t.prototype:void 0,mu=pu?pu.valueOf:void 0;function _b(e){return mu?Object(mu.call(e)):{}}function bb(e,t){var n=t?fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var yb="[object Boolean]",vb="[object Date]",wb="[object Map]",kb="[object Number]",Tb="[object RegExp]",Ib="[object Set]",Eb="[object String]",xb="[object Symbol]",Sb="[object ArrayBuffer]",Ob="[object DataView]",Cb="[object Float32Array]",Ab="[object Float64Array]",Lb="[object Int8Array]",Pb="[object Int16Array]",Rb="[object Int32Array]",Nb="[object Uint8Array]",$b="[object Uint8ClampedArray]",Mb="[object Uint16Array]",Db="[object Uint32Array]";function jb(e,t,n){var r=e.constructor;switch(t){case Sb:return fo(e);case yb:case vb:return new r(+e);case Ob:return pb(e,n);case Cb:case Ab:case Lb:case Pb:case Rb:case Nb:case $b:case Mb:case Db:return bb(e,n);case wb:return new r;case kb:case Eb:return new r(e);case Tb:return gb(e);case Ib:return new r;case xb:return _b(e)}}var gu=Object.create,Fb=function(){function e(){}return function(t){if(!hr(t))return{};if(gu)return gu(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ub(e){return typeof e.constructor=="function"&&!to(e)?Fb(oo(e)):{}}var Wb="[object Map]";function Hb(e){return hn(e)&&At(e)==Wb}var _u=Pn&&Pn.isMap,zb=_u?Qi(_u):Hb,Kb="[object Set]";function Vb(e){return hn(e)&&At(e)==Kb}var bu=Pn&&Pn.isSet,Bb=bu?Qi(bu):Vb,Gb=1,Zb=2,Yb=4,yu="[object Arguments]",Xb="[object Array]",Jb="[object Boolean]",qb="[object Date]",Qb="[object Error]",vu="[object Function]",ey="[object GeneratorFunction]",ty="[object Map]",ny="[object Number]",wu="[object Object]",ry="[object RegExp]",sy="[object Set]",iy="[object String]",oy="[object Symbol]",ay="[object WeakMap]",ly="[object ArrayBuffer]",cy="[object DataView]",uy="[object Float32Array]",fy="[object Float64Array]",dy="[object Int8Array]",hy="[object Int16Array]",py="[object Int32Array]",my="[object Uint8Array]",gy="[object Uint8ClampedArray]",_y="[object Uint16Array]",by="[object Uint32Array]",de={};de[yu]=de[Xb]=de[ly]=de[cy]=de[Jb]=de[qb]=de[uy]=de[fy]=de[dy]=de[hy]=de[py]=de[ty]=de[ny]=de[wu]=de[ry]=de[sy]=de[iy]=de[oy]=de[my]=de[gy]=de[_y]=de[by]=!0,de[Qb]=de[vu]=de[ay]=!1;function ms(e,t,n,r,s,i){var o,a=t&Gb,l=t&Zb,u=t&Yb;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!hr(e))return e;var c=pn(e);if(c){if(o=hb(e),!a)return J_(e,o)}else{var f=At(e),d=f==vu||f==ey;if(Bc(e))return X_(e,a);if(f==wu||f==yu||d&&!s){if(o=l||d?{}:Ub(e),!a)return l?rb(e,Z_(o,e)):tb(e,z_(o,e))}else{if(!de[f])return s?e:{};o=jb(e,f,a)}}i||(i=new Ln);var m=i.get(e);if(m)return m;i.set(e,o),Bb(e)?e.forEach(function(E){o.add(ms(E,t,n,E,e,i))}):zb(e)&&e.forEach(function(E,g){o.set(g,ms(E,t,n,g,e,i))});var y=u?l?au:sb:l?ro:no,T=c?void 0:y(e);return Yg(T||e,function(E,g){T&&(g=E,E=e[g]),Fc(o,g,ms(E,t,n,g,e,i))}),o}var yy="[object Symbol]";function ho(e){return typeof e=="symbol"||hn(e)&&cn(e)==yy}var vy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wy=/^\w*$/;function ky(e,t){if(pn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ho(e)?!0:wy.test(e)||!vy.test(e)||t!=null&&e in Object(t)}var Ty="Expected a function";function po(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ty);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(po.Cache||Vt),n}po.Cache=Vt;var Iy=500;function Ey(e){var t=po(e,function(r){return n.size===Iy&&n.clear(),r}),n=t.cache;return t}var xy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sy=/\\(\\)?/g,Oy=Ey(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xy,function(n,r,s,i){t.push(s?i.replace(Sy,"$1"):r||n)}),t}),Cy=1/0,ku=_t?_t.prototype:void 0,Tu=ku?ku.toString:void 0;function Iu(e){if(typeof e=="string")return e;if(pn(e))return Lc(e,Iu)+"";if(ho(e))return Tu?Tu.call(e):"";var t=e+"";return t=="0"&&1/e==-Cy?"-0":t}function Ay(e){return e==null?"":Iu(e)}function mo(e,t){return pn(e)?e:ky(e,t)?[e]:Oy(Ay(e))}function Ly(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Py=1/0;function Eu(e){if(typeof e=="string"||ho(e))return e;var t=e+"";return t=="0"&&1/e==-Py?"-0":t}function Ry(e,t){t=mo(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Eu(t[n++])];return n&&n==r?e:void 0}function Ny(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 $y(e,t){return t.length<2?e:Ry(e,Ny(t,0,-1))}function My(e,t){return t=mo(t,e),e=$y(e,t),e==null||delete e[Eu(Ly(t))]}var Dy="[object Object]",jy=Function.prototype,Fy=Object.prototype,xu=jy.toString,Uy=Fy.hasOwnProperty,Wy=xu.call(Object);function Hy(e){if(!hn(e)||cn(e)!=Dy)return!1;var t=oo(e);if(t===null)return!0;var n=Uy.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&xu.call(n)==Wy}function zy(e){return Hy(e)?void 0:e}var Su=_t?_t.isConcatSpreadable:void 0;function Ky(e){return pn(e)||Hc(e)||!!(Su&&e&&e[Su])}function Vy(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=Ky),s||(s=[]);++i<o;){var a=e[i];n(a)?io(s,a):s[s.length]=a}return s}function By(e){var t=e==null?0:e.length;return t?Vy(e):[]}function Gy(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 Ou=Math.max;function Zy(e,t,n){return t=Ou(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=Ou(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),Gy(e,this,a)}}function Yy(e){return function(){return e}}function Xy(e){return e}var Jy=ps?function(e,t){return ps(e,"toString",{configurable:!0,enumerable:!1,value:Yy(t),writable:!0})}:Xy,qy=800,Qy=16,e0=Date.now;function t0(e){var t=0,n=0;return function(){var r=e0(),s=Qy-(r-n);if(n=r,s>0){if(++t>=qy)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var n0=t0(Jy);function r0(e){return n0(Zy(e,void 0,By),e+"")}var s0=1,i0=2,o0=4,a0=r0(function(e,t){var n={};if(e==null)return n;var r=!1;t=Lc(t,function(i){return i=mo(i,e),r||(r=i.length>1),i}),gr(e,au(e),n),r&&(n=ms(n,s0|i0|o0,zy));for(var s=t.length;s--;)My(n,t[s]);return n});const Cu={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 l0(){return!!navigator.userAgent.match(/Macintosh/)}function c0(e,t){return(l0()?e.metaKey:e.ctrlKey)&&e.key===t}var gs=(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))(gs||{});const u0=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function _s(e){return e<10?`0${e}`:`${e}`}function Au(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function Lu(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${_s(n)}-${_s(r)}`}function Pu(e){e instanceof Date||(e=Au(e));const t=new Date,n=Lu(e);if(Lu(t)===n){const r=e.getHours(),s=e.getMinutes();return`${_s(r)}:${_s(s)}`}return n}function f0(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:Au(n)}}const go="awesome-comment-comments",Ru=localStorage.getItem(go),Rn=Ru?JSON.parse(Ru):{},Nn=Tl("store",()=>{const e=Fe("postId"),t=Fe("comments"),n=Fe("total"),r=te(!!t?.length),s=te(0),i=te(""),o=te([]),a=te(n||0),l=Fe("ApiBaseUrl"),u=te(!1),c=te(!1);function f(E){const g={},v=[];E.forEach(_=>{y(Number(_.id));const C=f0(_);!_.ancestor_id||Number(_.ancestor_id)===0?g[_.id]=C:v.push(C)});const x=Rn[e];x&&(x.createdAt=new Date(x.createdAt),!x.ancestorId||Number(x.ancestorId)===0?g[x.id]=x:v.push(x)),v.forEach(_=>{if(_.ancestorId in g){const C=g[_.ancestorId];C.children=[_,...C.children||[]]}});for(const _ in g){const C=g[_];C.children&&(C.children=C.children.sort(($,L)=>$.id-L.id))}return g}async function d(E=!1){if(u.value)return;i.value="",u.value=!0;let g;if(E&&t?.length)g=f(t);else{const v=new URLSearchParams;v.append("postId",e),v.append("start",s.value.toString());const x=await fetch(`${l}/api/comments?${v}`);if(!x.ok){i.value="Load comments failed. "+x.statusText,r.value=!0,u.value=!1;return}const _=await x.json();if(_.code!==0){i.value="Load comments failed. "+_.message,r.value=!0,u.value=!1;return}g=f(_.data||[]),a.value=_.meta?.total||_.data?.length||0}c.value=Object.keys(g).length>20,c.value&&delete g[Object.keys(g)[0]],Object.assign(o.value,g),r.value=!0,u.value=!1}function m(E,g,v,x=gs.Pending,_,C){const{sub:$="",name:L="",picture:D="",email:U="",nickname:Z=""}=v,X={id:E,postId:e,content:g,createdAt:new Date,user:{avatar:D,email:U,name:Z||L},userId:$,status:x,isNew:!0};if(_||C){X.ancestorId=_,X.parentId=C;const J=o.value[_];if(J.children||(J.children=[]),_===C)J.children.unshift(X);else{const Ce=J.children.findIndex(st=>Number(st.id)===C);J.children.splice(Ce+1,0,X)}}else X.ancestorId=0,X.parentId=0,o.value={[E]:X,...o.value};a.value++,x!==gs.Approved&&(Rn[e]=X,localStorage.setItem(go,JSON.stringify(Rn)))}function y(E){Rn[e]?.id===E&&(delete Rn[e],localStorage.setItem(go,JSON.stringify(Rn)))}function T(E,g){const v=o.value[E];v&&Object.assign(v,g)}return{isLoaded:r,message:i,postId:e,comments:o,total:a,start:s,hasMore:c,loadingMore:u,loadComments:d,addComment:m,updateComment:T}});var d0={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),y=n?n+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],m]:l._events[y].push(m):(l._events[y]=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 y=n?n+l:l;if(!this._events[y])return!1;var T=this._events[y],E=arguments.length,g,v;if(T.fn){switch(T.once&&this.removeListener(l,T.fn,void 0,!0),E){case 1:return T.fn.call(T.context),!0;case 2:return T.fn.call(T.context,u),!0;case 3:return T.fn.call(T.context,u,c),!0;case 4:return T.fn.call(T.context,u,c,f),!0;case 5:return T.fn.call(T.context,u,c,f,d),!0;case 6:return T.fn.call(T.context,u,c,f,d,m),!0}for(v=1,g=new Array(E-1);v<E;v++)g[v-1]=arguments[v];T.fn.apply(T.context,g)}else{var x=T.length,_;for(v=0;v<x;v++)switch(T[v].once&&this.removeListener(l,T[v].fn,void 0,!0),E){case 1:T[v].fn.call(T[v].context);break;case 2:T[v].fn.call(T[v].context,u);break;case 3:T[v].fn.call(T[v].context,u,c);break;case 4:T[v].fn.call(T[v].context,u,c,f);break;default:if(!g)for(_=1,g=new Array(E-1);_<E;_++)g[_-1]=arguments[_];T[v].fn.apply(T[v].context,g)}}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 y=0,T=[],E=m.length;y<E;y++)(m[y].fn!==u||f&&!m[y].once||c&&m[y].context!==c)&&T.push(m[y]);T.length?this._events[d]=T.length===1?T[0]:T: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})(d0);class h0 extends Error{}h0.prototype.name="InvalidTokenError";var p0=typeof global=="object"&&global&&global.Object===Object&&global,m0=typeof self=="object"&&self&&self.Object===Object&&self,g0=p0||m0||Function("return this")(),bs=g0.Symbol;bs&&bs.toStringTag,bs&&bs.toStringTag;var ys=(e=>(e.INIT="init",e.NOT_SIGNED_IN="not-signed-in",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(ys||{});const _o=Tl("auth",()=>{const e=Fe("awesomeAuth"),t=!e&&sp(),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(ys.INIT,c=>{r.value=c,c&&(n.value=!1)}),e.on(ys.VERIFYING,c=>{r.value=c}),e.on(ys.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&&(ct(t.isLoading,c=>{r.value=c},{immediate:!0}),ct(t.isAuthenticated,c=>{n.value=c},{immediate:!0}),ct(t.user,c=>{s.value=c},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,login:l,logout:u}}),_0={class:"ac-form-control bg-base-200 rounded-lg"},b0={class:"sr-only",for:"ac-comment"},y0=["placeholder"],v0={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},w0={key:0,class:"text-xs text-neutral-400/40"},k0={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},T0=["disabled"],I0={key:0,class:"ac-loading ac-loading-spinner"},vs=lt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=_o(),i=Nn(),{t:o}=mt(),a=Fe("ApiBaseUrl"),l=Fe("Auth0Domain"),u="0.9.1",c=te(),f=te(!1),d=te(n.content||""),m=te("");async function y(v){if(!s.user)return T();if(v.target.matches(":invalid"))return;const x=d.value.trim();if(!x)return;f.value=!0,m.value="";let _=a+"/api/comment",C="POST";n.currentId&&(_+="/"+n.currentId,C="PATCH");try{const $=await s.getAccessToken(),L=s.authEndpoint,D=await fetch(_,{method:C,headers:{"Content-Type":"application/json",Authorization:`Bearer ${$}`,"Auth-Endpoint":L},body:JSON.stringify({comment:x,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}`})}),U=await D.json();if(!D.ok||U.message){m.value="Failed to post comment: "+(U.message||"Unknown"),f.value=!1;return}const{id:Z,status:X}=U.data;n.ancestorId||n.parentId?i.addComment(Z,x,s.user,X,n.ancestorId,n.parentId):n.currentId?r("update",x):i.addComment(Z,x,s.user,X),d.value="",r("close")}catch($){m.value=$.message||String($)}f.value=!1}function T(){s.login()}function E(v){c0(v,"Enter")&&y(v)}function g(){r("close")}return Br(()=>{c.value?.focus()}),(v,x)=>(V(),Y("form",{class:"mb-6",onSubmit:Eh(y,["prevent"])},[oe("div",_0,[oe("label",b0,_e(H(o)("your_comment")),1),Zf(oe("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:H(o)("placeholder"),required:"",onKeydown:[ml(E,["enter"]),ml(g,["esc"])],"onUpdate:modelValue":x[0]||(x[0]=_=>d.value=_)},null,40,y0),[[kh,d.value]]),oe("div",v0,[v.noVersion?Re("",!0):(V(),Y("div",w0,"v"+_e(H(u)),1)),m.value?(V(),Y("div",k0,_e(m.value),1)):Re("",!0),oe("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:f.value},[f.value?(V(),Y("span",I0)):Re("",!0),v.currentId?(V(),Y(xe,{key:1},[nn(_e(H(o)("save_editing")),1)],64)):v.parentId?(V(),Y(xe,{key:2},[nn(_e(H(o)("post_reply")),1)],64)):(V(),Y(xe,{key:3},[nn(_e(H(o)("post_comment")),1)],64))],8,T0)])])],32))}});/**
|
|
46
|
+
* @license lucide-vue-next v0.454.0 - ISC
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the ISC license.
|
|
49
49
|
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/const
|
|
51
|
-
* @license lucide-vue-next v0.
|
|
50
|
+
*/const E0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
51
|
+
* @license lucide-vue-next v0.454.0 - ISC
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
54
54
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/var
|
|
56
|
-
* @license lucide-vue-next v0.
|
|
55
|
+
*/var ws={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
56
|
+
* @license lucide-vue-next v0.454.0 - ISC
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the ISC license.
|
|
59
59
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const
|
|
61
|
-
* @license lucide-vue-next v0.
|
|
60
|
+
*/const x0=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:r,iconNode:s,name:i,class:o,...a},{slots:l})=>rr("svg",{...ws,width:e||ws.width,height:e||ws.height,stroke:r||ws.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:["lucide",`lucide-${E0(i??"icon")}`],...a},[...s.map(u=>rr(...u)),...l.default?[l.default()]:[]]);/**
|
|
61
|
+
* @license lucide-vue-next v0.454.0 - ISC
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const
|
|
66
|
-
* @license lucide-vue-next v0.
|
|
65
|
+
*/const ks=(e,t)=>(n,{slots:r})=>rr(x0,{...n,iconNode:t,name:e},r);/**
|
|
66
|
+
* @license lucide-vue-next v0.454.0 - ISC
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the ISC license.
|
|
69
69
|
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const
|
|
71
|
-
* @license lucide-vue-next v0.
|
|
70
|
+
*/const S0=ks("BadgeCheckIcon",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
71
|
+
* @license lucide-vue-next v0.454.0 - ISC
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const
|
|
76
|
-
* @license lucide-vue-next v0.
|
|
75
|
+
*/const O0=ks("ReplyIcon",[["polyline",{points:"9 17 4 12 9 7",key:"hvgpf2"}],["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}]]);/**
|
|
76
|
+
* @license lucide-vue-next v0.454.0 - ISC
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const
|
|
81
|
-
* @license lucide-vue-next v0.
|
|
80
|
+
*/const C0=ks("ThumbsDownIcon",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
|
|
81
|
+
* @license lucide-vue-next v0.454.0 - ISC
|
|
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
|
|
86
|
-
`).map(
|
|
87
|
-
`)}class
|
|
88
|
-
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],
|
|
89
|
-
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=
|
|
85
|
+
*/const A0=ks("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"}]]),L0={class:"flex items-center gap-2"},P0=["aria-label","title","disabled"],R0={key:0,class:"ac-loading ac-loading-spinner"},N0={class:"text-sm text-gray-500 dark:text-gray-400"},$0=["aria-label","title","disabled"],M0={key:0,class:"ac-loading ac-loading-spinner"},D0=["aria-label","title"],bo="awesome-comment-likes",j0=lt({__name:"comment-actions",props:{comment:{}},emits:["reply"],setup(e,{emit:t}){const n=e,r=t,s=Nn(),{t:i}=mt(),o=Fe("ApiBaseUrl"),a=te(0);async function l(u=!0){if(a.value)return;const c=localStorage.getItem(bo);if(c){const m=JSON.parse(c),y=Date.now(),T=m[n.comment.id];if(m[n.comment.id]=y,localStorage.setItem(bo,JSON.stringify(m)),T&&y-T<6e4){s.updateComment(n.comment.id,{like:Math.max((n.comment.like||0)+(u?1:-1),0)});return}}else localStorage.setItem(bo,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)=>(V(),Y("div",L0,[oe("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?(V(),Y("span",R0)):(V(),Ft(H(A0),{key:1,size:16}))],8,P0),oe("span",N0,_e(u.comment.like||0),1),oe("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?(V(),Y("span",M0)):(V(),Ft(H(C0),{key:1,size:16}))],8,$0),oe("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"))},[we(H(O0),{size:16})],8,D0)]))}});function yo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let mn=yo();function Nu(e){mn=e}const $u=/[&<>"']/,F0=new RegExp($u.source,"g"),Mu=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,U0=new RegExp(Mu.source,"g"),W0={"&":"&","<":"<",">":">",'"':""","'":"'"},Du=e=>W0[e];function Be(e,t){if(t){if($u.test(e))return e.replace(F0,Du)}else if(Mu.test(e))return e.replace(U0,Du);return e}const H0=/(^|[^\[])\^/g;function ce(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(H0,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}function ju(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const br={exec:()=>null};function Fu(e,t){const n=e.replace(/\|/g,(i,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(/\\\|/g,"|");return r}function yr(e,t,n){const r=e.length;if(r===0)return"";let s=0;for(;s<r;){const i=e.charAt(r-s-1);if(i===t&&!n)s++;else if(i!==t&&n)s++;else break}return e.slice(0,r-s)}function z0(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 Uu(e,t,n,r){const s=t.href,i=t.title?Be(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:s,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:i,text:Be(o)}}function K0(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
|
|
86
|
+
`).map(s=>{const i=s.match(/^\s+/);if(i===null)return s;const[o]=i;return o.length>=r.length?s.slice(r.length):s}).join(`
|
|
87
|
+
`)}class Ts{options;rules;lexer;constructor(t){this.options=t||mn}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:yr(r,`
|
|
88
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],s=K0(r,n[3]||"");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(/#$/.test(r)){const s=yr(r,"#");(this.options.pedantic||!s||/ $/.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:yr(n[0],`
|
|
89
|
+
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=yr(n[0],`
|
|
90
90
|
`).split(`
|
|
91
|
-
`),
|
|
91
|
+
`),s="",i="";const o=[];for(;r.length>0;){let a=!1;const l=[];let u;for(u=0;u<r.length;u++)if(/^ {0,3}>/.test(r[u]))l.push(r[u]),a=!0;else if(!a)l.push(r[u]);else break;r=r.slice(u);const c=l.join(`
|
|
92
92
|
`),f=c.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
93
|
-
$1`).replace(/^ {0,3}>[ \t]?/gm,"");
|
|
94
|
-
${c}`:c,
|
|
95
|
-
${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,o,!0),this.lexer.state.top=d,r.length===0)break;const
|
|
93
|
+
$1`).replace(/^ {0,3}>[ \t]?/gm,"");s=s?`${s}
|
|
94
|
+
${c}`:c,i=i?`${i}
|
|
95
|
+
${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,o,!0),this.lexer.state.top=d,r.length===0)break;const m=o[o.length-1];if(m?.type==="code")break;if(m?.type==="blockquote"){const y=m,T=y.raw+`
|
|
96
96
|
`+r.join(`
|
|
97
|
-
`),
|
|
97
|
+
`),E=this.blockquote(T);o[o.length-1]=E,s=s.substring(0,s.length-y.raw.length)+E.raw,i=i.substring(0,i.length-y.text.length)+E.text;break}else if(m?.type==="list"){const y=m,T=y.raw+`
|
|
98
98
|
`+r.join(`
|
|
99
|
-
`),
|
|
100
|
-
`);continue}}return{type:"blockquote",raw:
|
|
101
|
-
`,1)[0].replace(/^\t+/,
|
|
102
|
-
`,1)[0],
|
|
103
|
-
`,t=t.substring(d.length+1),l=!0),!l){const
|
|
104
|
-
`,1)[0];let
|
|
105
|
-
`+
|
|
106
|
-
`+d}!
|
|
107
|
-
`,t=t.substring(
|
|
108
|
-
`):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===
|
|
109
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:
|
|
110
|
-
]`).replace("lheading",
|
|
111
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){this.options.pedantic&&(t=t.replace(/\t/g," ").replace(/^ +$/gm,""));let i,
|
|
112
|
-
`:n.push(
|
|
113
|
-
`+
|
|
114
|
-
`+
|
|
115
|
-
`+
|
|
116
|
-
`+
|
|
117
|
-
`+
|
|
118
|
-
`+
|
|
119
|
-
`+
|
|
120
|
-
`+
|
|
121
|
-
`;return
|
|
122
|
-
`:"<pre><code>"+(r?
|
|
99
|
+
`),E=this.list(T);o[o.length-1]=E,s=s.substring(0,s.length-m.raw.length)+E.raw,i=i.substring(0,i.length-y.raw.length)+E.raw,r=T.substring(o[o.length-1].raw.length).split(`
|
|
100
|
+
`);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=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let a=!1;for(;t;){let l=!1,u="",c="";if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let f=n[2].split(`
|
|
101
|
+
`,1)[0].replace(/^\t+/,g=>" ".repeat(3*g.length)),d=t.split(`
|
|
102
|
+
`,1)[0],m=!f.trim(),y=0;if(this.options.pedantic?(y=2,c=f.trimStart()):m?y=n[1].length+1:(y=n[2].search(/[^ ]/),y=y>4?1:y,c=f.slice(y),y+=n[1].length),m&&/^[ \t]*$/.test(d)&&(u+=d+`
|
|
103
|
+
`,t=t.substring(d.length+1),l=!0),!l){const g=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),v=new RegExp(`^ {0,${Math.min(3,y-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),x=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:\`\`\`|~~~)`),_=new RegExp(`^ {0,${Math.min(3,y-1)}}#`),C=new RegExp(`^ {0,${Math.min(3,y-1)}}<[a-z].*>`,"i");for(;t;){const $=t.split(`
|
|
104
|
+
`,1)[0];let L;if(d=$,this.options.pedantic?(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),L=d):L=d.replace(/\t/g," "),x.test(d)||_.test(d)||C.test(d)||g.test(d)||v.test(d))break;if(L.search(/[^ ]/)>=y||!d.trim())c+=`
|
|
105
|
+
`+L.slice(y);else{if(m||f.replace(/\t/g," ").search(/[^ ]/)>=4||x.test(f)||_.test(f)||v.test(f))break;c+=`
|
|
106
|
+
`+d}!m&&!d.trim()&&(m=!0),u+=$+`
|
|
107
|
+
`,t=t.substring($.length+1),f=L.slice(y)}}i.loose||(a?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(u)&&(a=!0));let T=null,E;this.options.gfm&&(T=/^\[[ xX]\] /.exec(c),T&&(E=T[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:u,task:!!T,checked:E,loose:!1,text:c,tokens:[]}),i.raw+=u}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let l=0;l<i.items.length;l++)if(this.lexer.state.top=!1,i.items[l].tokens=this.lexer.blockTokens(i.items[l].text,[]),!i.loose){const u=i.items[l].tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));i.loose=c}if(i.loose)for(let l=0;l<i.items.length;l++)i.items[l].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(/\s+/g," "),s=n[2]?n[2].replace(/^<(.*)>$/,"$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||!/[:|]/.test(n[2]))return;const r=Fu(n[1]),s=n[2].replace(/^\||\| *$/g,"").split("|"),i=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
108
|
+
`):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const a of s)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<r.length;a++)o.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:o.align[a]});for(const a of i)o.rows.push(Fu(a,o.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[u]})));return o}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
|
|
109
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Be(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=yr(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=z0(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=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);o&&(s=o[1],i=o[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(r)?s=s.slice(1):s=s.slice(1,-1)),Uu(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const s=(r[2]||r[1]).replace(/\s+/g," "),i=n[s.toLowerCase()];if(!i){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return Uu(r,i,r[0],this.lexer)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!s||s[3]&&r.match(/[\p{L}\p{N}]/u))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 T=m.slice(1,-1);return{type:"em",raw:m,text:T,tokens:this.lexer.inlineTokens(T)}}const y=m.slice(2,-2);return{type:"strong",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const s=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return s&&i&&(r=r.substring(1,r.length-1)),r=Be(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,s;return n[2]==="@"?(r=Be(n[1]),s="mailto:"+r):(r=Be(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=Be(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=Be(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){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Be(n[0]),{type:"text",raw:n[0],text:r}}}}const V0=/^(?:[ \t]*(?:\n|$))+/,B0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,G0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,vr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Z0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Wu=/(?:[*+-]|\d{1,9}[.)])/,Hu=ce(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Wu).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(),vo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Y0=/^[^\n]+/,wo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,X0=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),J0=ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Wu).getRegex(),Is="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",ko=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,q0=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",ko).replace("tag",Is).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),zu=ce(vo).replace("hr",vr).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",Is).getRegex(),To={blockquote:ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",zu).getRegex(),code:B0,def:X0,fences:G0,heading:Z0,hr:vr,html:q0,lheading:Hu,list:J0,newline:V0,paragraph:zu,table:br,text:Y0},Ku=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vr).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",Is).getRegex(),Q0={...To,table:Ku,paragraph:ce(vo).replace("hr",vr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ku).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",Is).getRegex()},ev={...To,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ko).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:br,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(vo).replace("hr",vr).replace("heading",` *#{1,6} *[^
|
|
110
|
+
]`).replace("lheading",Hu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Vu=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,tv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bu=/^( {2,}|\\)\n(?!\s*$)/,nv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,wr="\\p{P}\\p{S}",rv=ce(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,wr).getRegex(),sv=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,iv=ce(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,wr).getRegex(),ov=ce("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,wr).getRegex(),av=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,wr).getRegex(),lv=ce(/\\([punct])/,"gu").replace(/punct/g,wr).getRegex(),cv=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(),uv=ce(ko).replace("(?:-->|$)","-->").getRegex(),fv=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",uv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Es=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,dv=ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Es).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gu=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Es).replace("ref",wo).getRegex(),Zu=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",wo).getRegex(),hv=ce("reflink|nolink(?!\\()","g").replace("reflink",Gu).replace("nolink",Zu).getRegex(),Io={_backpedal:br,anyPunctuation:lv,autolink:cv,blockSkip:sv,br:Bu,code:tv,del:br,emStrongLDelim:iv,emStrongRDelimAst:ov,emStrongRDelimUnd:av,escape:Vu,link:dv,nolink:Zu,punctuation:rv,reflink:Gu,reflinkSearch:hv,tag:fv,text:nv,url:br},pv={...Io,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Es).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Es).getRegex()},Eo={...Io,escape:ce(Vu).replace("])","~|])").getRegex(),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\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.!#$%&'*+\/=?_`{\|}~-]+@)))/},mv={...Eo,br:ce(Bu).replace("{2,}","*").getRegex(),text:ce(Eo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xs={normal:To,gfm:Q0,pedantic:ev},kr={normal:Io,gfm:Eo,breaks:mv,pedantic:pv};class qe{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||mn,this.options.tokenizer=this.options.tokenizer||new Ts,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:xs.normal,inline:kr.normal};this.options.pedantic?(n.block=xs.pedantic,n.inline=kr.pedantic):this.options.gfm&&(n.block=xs.gfm,this.options.breaks?n.inline=kr.breaks:n.inline=kr.gfm),this.tokenizer.rules=n}static get rules(){return{block:xs,inline:kr}}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(/\r\n|\r/g,`
|
|
111
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){this.options.pedantic&&(t=t.replace(/\t/g," ").replace(/^ +$/gm,""));let s,i,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(s=a.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length),s.raw.length===1&&n.length>0?n[n.length-1].raw+=`
|
|
112
|
+
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
113
|
+
`+s.raw,i.text+=`
|
|
114
|
+
`+s.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
115
|
+
`+s.raw,i.text+=`
|
|
116
|
+
`+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let u;this.options.extensions.startBlock.forEach(c=>{u=c.call({lexer:this},l),typeof u=="number"&&u>=0&&(a=Math.min(a,u))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(s=this.tokenizer.paragraph(o))){i=n[n.length-1],r&&i?.type==="paragraph"?(i.raw+=`
|
|
117
|
+
`+s.raw,i.text+=`
|
|
118
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(s),r=o.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=`
|
|
119
|
+
`+s.raw,i.text+=`
|
|
120
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(s);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,s,i,o=t,a,l,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,o,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const f=t.slice(1);let d;this.options.extensions.startInline.forEach(m=>{d=m.call({lexer:this},f),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(i=t.substring(0,c+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),l=!0,s=n[n.length-1],s&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class Ss{options;parser;constructor(t){this.options=t||mn}space(t){return""}code({text:t,lang:n,escaped:r}){const s=(n||"").match(/^\S*/)?.[0],i=t.replace(/\n$/,"")+`
|
|
121
|
+
`;return s?'<pre><code class="language-'+Be(s)+'">'+(r?i:Be(i,!0))+`</code></pre>
|
|
122
|
+
`:"<pre><code>"+(r?i:Be(i,!0))+`</code></pre>
|
|
123
123
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
124
124
|
${this.parser.parse(t)}</blockquote>
|
|
125
125
|
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
126
126
|
`}hr(t){return`<hr>
|
|
127
|
-
`}list(t){const n=t.ordered,r=t.start;let
|
|
128
|
-
`+
|
|
127
|
+
`}list(t){const n=t.ordered,r=t.start;let s="";for(let a=0;a<t.items.length;a++){const l=t.items[a];s+=this.listitem(l)}const i=n?"ol":"ul",o=n&&r!==1?' start="'+r+'"':"";return"<"+i+o+`>
|
|
128
|
+
`+s+"</"+i+`>
|
|
129
129
|
`}listitem(t){let n="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" "}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
|
|
130
130
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
131
|
-
`}table(t){let n="",r="";for(let
|
|
131
|
+
`}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let s="";for(let i=0;i<t.rows.length;i++){const o=t.rows[i];r="";for(let a=0;a<o.length;a++)r+=this.tablecell(o[a]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
132
132
|
<thead>
|
|
133
133
|
`+n+`</thead>
|
|
134
|
-
`+
|
|
134
|
+
`+s+`</table>
|
|
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>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const
|
|
139
|
-
`+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):r+=l;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let
|
|
140
|
-
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Ze(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const On=new H0;function ce(e,t){return On.parse(e,t)}ce.options=ce.setOptions=function(e){return On.setOptions(e),ce.defaults=On.defaults,rf(ce.defaults),ce},ce.getDefaults=Io,ce.defaults=Sn,ce.use=function(...e){return On.use(...e),ce.defaults=On.defaults,rf(ce.defaults),ce},ce.walkTokens=function(e,t){return On.walkTokens(e,t)},ce.parseInline=On.parseInline,ce.Parser=st,ce.parser=st.parse,ce.Renderer=Fs,ce.TextRenderer=No,ce.Lexer=rt,ce.lexer=rt.lex,ce.Tokenizer=Rs,ce.Hooks=js,ce.parse=ce,ce.options,ce.setOptions,ce.use,ce.walkTokens,ce.parseInline,st.parse,rt.lex;const K0=["href"],z0=["innerHTML"],V0={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},B0=["href"],G0=ht({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=yt(),r=Yn();function i(o){return ce(o).replace(/<a/g,'<a target="_blank"')}function s(o){if(t.ancestorId){const l=r.comments[t.ancestorId]?.children?.find(u=>Number(u.id)===Number(o));return l?.isAdmin?n("admin"):l?.user?.name||l?.user?.email||""}return""}return(o,a)=>o.comment.isAdmin?(J(),ee(xe,{key:0},[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(J(),ee("a",{key:0,href:`#awcm-${o.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+ye(s(o.comment.parentId)),9,K0)):De("",!0),le("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:i(o.comment.content)},null,8,z0)],64)):(J(),ee("p",V0,[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(J(),ee("a",{key:0,href:`#awcm-${o.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+ye(s(o.comment.parentId)),9,B0)):De("",!0),hn(ye(o.comment.content),1)]))}});function Y0(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){const i=t>>r*8&255;n+=("00"+i.toString(16)).slice(-2)}return n}const X0={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},Z0={class:"ac-avatar"},J0={key:0,class:"w-6 h-6"},q0=["alt","src"],Q0={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},ew=["data-tip"],tw=["href"],nw=["datetime","title"],rw=ht({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:i}=yt(),s=Ke(()=>{if(n.comment.isAdmin)return i("admin");let a=n.comment.user?.name||i("anonymous");return a=a.replace(Wv,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(J(),ee("div",X0,[le("div",Z0,[a.comment.user?.avatar?(J(),ee("div",J0,[le("img",{alt:s.value,src:a.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,q0)])):(J(),ee("div",{key:1,style:Dr({"background-color":V(Y0)(s.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[le("span",Q0,ye(s.value.substring(0,1)),1)],4))]),hn(" "+ye(s.value)+" ",1),a.comment.isAdmin?(J(),ee("div",{key:0,"data-tip":V(i)("admin"),class:"ac-tooltip text-success"},[Te(V(Qv),{class:"block",size:18})],8,ew)):De("",!0),le("a",{href:o(a.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[le("time",{datetime:a.comment.createdAt.toISOString(),title:V(tf)(a.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},ye(V(tf)(a.comment.createdAt)),9,nw)],8,tw),a.isEditable?(J(),ee("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs hover:no-underline",type:"button",onClick:l[0]||(l[0]=u=>r("edit"))},ye(V(i)("edit")),1)):De("",!0)]))}}),sw=["id"],iw={class:"pt-2 pb-3 px-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},ow={class:"flex justify-between items-center font-sans"},aw={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},lw=ht({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=yt(),r=Yn(),{user:i}=Hi();let s;const o=re(Date.now()),a=re(!1),l=re(!1),u=Ke(()=>t.comment.userId===i.value?.sub&&o.value-t.comment.createdAt.getTime()<36e5);return ns(()=>{u.value&&(s=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(s)},1e3))}),La(()=>{clearInterval(s)}),(c,f)=>{const d=Pd("comment-item",!0);return J(),ee("div",{id:"awcm-"+c.comment.id,class:Fr([{"animated flash":c.comment.isNew},"comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=_=>V(r).updateComment(c.comment.id,{isNew:!1}))},[le("div",iw,[le("header",ow,[Te(rw,{comment:c.comment,"is-editable":u.value,"is-editing":a.value,onEdit:f[0]||(f[0]=_=>a.value=!a.value)},null,8,["comment","is-editable","is-editing"]),Te(u0,{comment:c.comment,onReply:f[1]||(f[1]=_=>l.value=!l.value)},null,8,["comment"])]),Te(G0,{"ancestor-id":c.ancestorId,comment:c.comment},null,8,["ancestor-id","comment"]),c.comment.status===V(xs).Pending?(J(),ee("p",aw,ye(V(n)("approve_hint")),1)):De("",!0)]),a.value?(J(),Vt(Ls,{key:0,content:c.comment.content,"current-id":c.comment.id,status:c.comment.status,class:"mt-3","no-version":"",onClose:f[2]||(f[2]=_=>a.value=!1),onUpdate:f[3]||(f[3]=_=>V(r).updateComment(c.comment.id,{content:_}))},null,8,["content","current-id","status"])):De("",!0),l.value&&c.isFirstLevel?(J(),Vt(Ls,{key:1,"ancestor-id":c.ancestorId,"parent-id":Number(c.comment.id),class:"mt-3 ms-7","no-version":"",onClose:f[4]||(f[4]=_=>l.value=!1)},null,8,["ancestor-id","parent-id"])):De("",!0),c.comment.children?.length?(J(!0),ee(xe,{key:2},Na(c.comment.children,_=>(J(),Vt(d,{key:_.id,"ancestor-id":c.ancestorId,comment:_,"is-first-level":!1,class:"ms-7 mt-2"},null,8,["ancestor-id","comment"]))),128)):De("",!0),l.value&&!c.isFirstLevel?(J(),Vt(Ls,{key:3,"ancestor-id":c.ancestorId,"parent-id":c.comment.id,class:"mt-3 ms-7","no-version":"",onClose:f[5]||(f[5]=_=>l.value=!1)},null,8,["ancestor-id","parent-id"])):De("",!0)],42,sw)}}}),cw={key:0,class:"comments-wrapper"},uw=["disabled"],fw={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},dw={key:1,class:"pt-8 text-center"},hw=ht({...{name:"CommentSections"},setup(e){const{t}=yt(),n=Yn();n.loadComments(!0);function r(){n.start+=20,n.loadComments()}return(i,s)=>V(n).isLoaded?(J(),ee("div",cw,[(J(!0),ee(xe,null,Na(Object.values(V(n).comments).reverse(),o=>(J(),Vt(lw,{key:o.id,comment:o,"parent-id":o.parentId,"ancestor-id":o.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),V(n).hasMore?(J(),ee("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:r,disabled:V(n).loadingMore},[V(n).loadingMore?(J(),ee("span",fw)):De("",!0),hn(ye(V(t)("load_more")),1)],8,uw)):De("",!0)])):(J(),ee("div",dw,s[0]||(s[0]=[le("span",{class:"ac-loading ac-loading-spinner"},null,-1)])))}}),pw={class:"awesome-comment"},mw={key:0,class:"ac-alert ac-alert-error mb-4"},gw={class:"flex justify-between items-center py-2"},_w={class:"text-lg font-bold text-base-content my-0"},bw={key:0,class:"ac-loading ac-loading-spinner"},yw={key:1,class:"ac-dropdown ac-dropdown-end"},vw={key:0,class:"ac-avatar flex",tabindex:"0"},ww={class:"w-6 h-6 rounded-full"},kw=["alt","src"],Tw={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Ew={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Iw={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Sw={class:"text-base-content"},Ow=["disabled"],xw=["disabled"],Cw=ht({__name:"App",setup(e){const t=Yn(),{t:n}=yt(),{isAuthenticated:r,isLoading:i,user:s,loginWithPopup:o,logout:a}=Hi(),l=Ke(()=>{const f=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const d=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(d),f});function u(){o()}function c(){a({openUrl:!1})}return(f,d)=>(J(),ee("div",pw,[V(t).message?(J(),ee("div",mw,[le("p",null,ye(V(t).message),1)])):De("",!0),le("header",gw,[le("h2",_w,ye(V(n)("discussion"))+" ("+ye(l.value)+")",1),V(i)?(J(),ee("span",bw)):(J(),ee("div",yw,[V(r)&&V(s)?(J(),ee(xe,{key:0},[V(s).picture?(J(),ee("label",vw,[le("div",ww,[le("img",{class:"w-full h-full block",alt:V(s).name||V(s).email,src:V(s).picture},null,8,kw)])])):(J(),ee("label",Tw,ye(V(s).email),1)),le("ul",Ew,[V(s).picture?(J(),ee("li",Iw,[le("span",Sw,ye(V(s).email),1)])):De("",!0),le("li",null,[le("button",{class:"border-0 bg-base-100",type:"button",disabled:V(i),onClick:c},ye(V(n)("logout")),9,Ow)])])],64)):(J(),ee("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:V(i),onClick:u},ye(V(n)("login")),9,xw))]))]),Te(Ls),Te(hw)]))}}),yf=[];let Po=0,vf=null;function Lw(e,t,n=navigator.language){const r=ep(Cw),i=sp(),s=vf||Bl({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=pg({legacy:!1,locale:n,fallbackLocale:"en",messages:{...Fv(qu,"cn"),"zh-CN":qu.cn}});return r.use(s),r.use(i),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:r,clientId:i,locale:s=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain,i??=this.clientId;const o=Lw(r,i,s);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.provide("Auth0Domain",r),o.provide("comments",yf),o.provide("total",Po),o.mount(e)},async preload(e,t,n,r){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=r,vf=Bl({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}});const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const s=await i.json();if(s.data){yf.push(...s.data),Po=s.meta?.total||s.data.length;const o=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Po});document.body.dispatchEvent(o)}}}}();
|
|
138
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const s=this.parser.parseInline(r),i=ju(t);if(i===null)return s;t=i;let o='<a href="'+t+'"';return n&&(o+=' title="'+n+'"'),o+=">"+s+"</a>",o}image({href:t,title:n,text:r}){const s=ju(t);if(s===null)return r;t=s;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${n}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class xo{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||mn,this.options.renderer=this.options.renderer||new Ss,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new xo}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&&this.options.extensions.renderers&&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}]}):r+=l;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let s=0;s<t.length;s++){const i=t[s];if(this.options.extensions&&this.options.extensions.renderers&&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 Os{options;block;constructor(t){this.options=t||mn}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 gv{defaults=yo();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Qe;Renderer=Ss;TextRenderer=xo;Lexer=qe;Tokenizer=Ts;Hooks=Os;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 Ss(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 Ts(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 Os;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];Os.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>"+Be(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}}const gn=new gv;function le(e,t){return gn.parse(e,t)}le.options=le.setOptions=function(e){return gn.setOptions(e),le.defaults=gn.defaults,Nu(le.defaults),le},le.getDefaults=yo,le.defaults=mn,le.use=function(...e){return gn.use(...e),le.defaults=gn.defaults,Nu(le.defaults),le},le.walkTokens=function(e,t){return gn.walkTokens(e,t)},le.parseInline=gn.parseInline,le.Parser=Qe,le.parser=Qe.parse,le.Renderer=Ss,le.TextRenderer=xo,le.Lexer=qe,le.lexer=qe.lex,le.Tokenizer=Ts,le.Hooks=Os,le.parse=le,le.options,le.setOptions,le.use,le.walkTokens,le.parseInline,Qe.parse,qe.lex;const _v=["href"],bv=["innerHTML"],yv={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},vv=["href"],wv=lt({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=mt(),r=Nn();function s(o){return le(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?(V(),Y(xe,{key:0},[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(V(),Y("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"},"@"+_e(i(o.comment.parentId)),9,_v)):Re("",!0),oe("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(o.comment.content)},null,8,bv)],64)):(V(),Y("p",yv,[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(V(),Y("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"},"@"+_e(i(o.comment.parentId)),9,vv)):Re("",!0),nn(_e(o.comment.content),1)]))}});function kv(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 Tv={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},Iv={class:"ac-avatar"},Ev={key:0,class:"w-6 h-6"},xv=["alt","src"],Sv={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},Ov=["data-tip"],Cv=["href"],Av=["datetime","title"],Lv=lt({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=mt(),i=rt(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(u0,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(V(),Y("div",Tv,[oe("div",Iv,[a.comment.user?.avatar?(V(),Y("div",Ev,[oe("img",{alt:i.value,src:a.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,xv)])):(V(),Y("div",{key:1,style:Lr({"background-color":H(kv)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[oe("span",Sv,_e(i.value.substring(0,1)),1)],4))]),nn(" "+_e(i.value)+" ",1),a.comment.isAdmin?(V(),Y("div",{key:0,"data-tip":H(s)("admin"),class:"ac-tooltip text-success"},[we(H(S0),{class:"block",size:18})],8,Ov)):Re("",!0),oe("a",{href:o(a.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[oe("time",{datetime:a.comment.createdAt.toISOString(),title:H(Pu)(a.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},_e(H(Pu)(a.comment.createdAt)),9,Av)],8,Cv),a.isEditable?(V(),Y("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"))},_e(H(s)("edit")),1)):Re("",!0)]))}}),Pv=["id"],Rv={class:"pt-2 pb-3 px-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},Nv={class:"flex justify-between items-center font-sans"},$v={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},Mv=lt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=mt(),r=Nn(),s=_o();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 Br(()=>{u.value&&(i=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(i)},1e3))}),ba(()=>{clearInterval(i)}),(c,f)=>{const d=ld("comment-item",!0);return V(),Y("div",{id:"awcm-"+c.comment.id,class:Pr([{"animated flash":c.comment.isNew},"comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=m=>H(r).updateComment(c.comment.id,{isNew:!1}))},[oe("div",Rv,[oe("header",Nv,[we(Lv,{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"]),we(j0,{comment:c.comment,onReply:f[1]||(f[1]=m=>l.value=!l.value)},null,8,["comment"])]),we(wv,{"ancestor-id":c.ancestorId,comment:c.comment},null,8,["ancestor-id","comment"]),c.comment.status===H(gs).Pending?(V(),Y("p",$v,_e(H(n)("approve_hint")),1)):Re("",!0)]),a.value?(V(),Ft(vs,{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"])):Re("",!0),l.value&&c.isFirstLevel?(V(),Ft(vs,{key:1,"ancestor-id":c.ancestorId,"parent-id":Number(c.comment.id),class:"mt-3 ms-7","no-version":"",onClose:f[4]||(f[4]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Re("",!0),c.comment.children?.length?(V(!0),Y(xe,{key:2},va(c.comment.children,m=>(V(),Ft(d,{key:m.id,"ancestor-id":c.ancestorId,comment:m,"is-first-level":!1,class:"ms-7 mt-2"},null,8,["ancestor-id","comment"]))),128)):Re("",!0),l.value&&!c.isFirstLevel?(V(),Ft(vs,{key:3,"ancestor-id":c.ancestorId,"parent-id":c.comment.id,class:"mt-3 ms-7","no-version":"",onClose:f[5]||(f[5]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Re("",!0)],42,Pv)}}}),Dv={key:0,class:"comments-wrapper"},jv=["disabled"],Fv={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Uv={key:1,class:"pt-8 text-center"},Wv=lt({...{name:"CommentSections"},setup(e){const{t}=mt(),n=Nn();n.loadComments(!0);function r(){n.start+=20,n.loadComments()}return(s,i)=>H(n).isLoaded?(V(),Y("div",Dv,[(V(!0),Y(xe,null,va(Object.values(H(n).comments).reverse(),o=>(V(),Ft(Mv,{key:o.id,comment:o,"parent-id":o.parentId,"ancestor-id":o.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),H(n).hasMore?(V(),Y("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:r,disabled:H(n).loadingMore},[H(n).loadingMore?(V(),Y("span",Fv)):Re("",!0),nn(_e(H(t)("load_more")),1)],8,jv)):Re("",!0)])):(V(),Y("div",Uv,i[0]||(i[0]=[oe("span",{class:"ac-loading ac-loading-spinner"},null,-1)])))}}),Hv={class:"awesome-comment"},zv={key:0,class:"ac-alert ac-alert-error mb-4"},Kv={class:"flex justify-between items-center py-2"},Vv={class:"text-lg font-bold text-base-content my-0"},Bv={key:0,class:"ac-loading ac-loading-spinner"},Gv={key:1,class:"ac-dropdown ac-dropdown-end"},Zv={key:0,class:"ac-avatar flex",tabindex:"0"},Yv={class:"w-6 h-6 rounded-full"},Xv=["alt","src"],Jv={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},qv={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Qv={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},ew={class:"text-base-content"},tw=["disabled"],nw=["disabled"],rw=lt({__name:"App",setup(e){const t=Nn(),{t:n}=mt(),r=_o(),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)=>(V(),Y("div",Hv,[H(t).message?(V(),Y("div",zv,[oe("p",null,_e(H(t).message),1)])):Re("",!0),oe("header",Kv,[oe("h2",Vv,_e(H(n)("discussion"))+" ("+_e(s.value)+")",1),H(r).isLoading?(V(),Y("span",Bv)):(V(),Y("div",Gv,[H(r).isAuthenticated&&H(r).user?(V(),Y(xe,{key:0},[H(r).user.picture?(V(),Y("label",Zv,[oe("div",Yv,[oe("img",{class:"w-full h-full block",alt:H(r).user.name||H(r).user.email,src:H(r).user.picture},null,8,Xv)])])):(V(),Y("label",Jv,_e(H(r).user.email),1)),oe("ul",qv,[H(r).user.picture?(V(),Y("li",Qv,[oe("span",ew,_e(H(r).user.email),1)])):Re("",!0),oe("li",null,[oe("button",{class:"border-0 bg-base-100",type:"button",disabled:H(r).isLoading,onClick:o},_e(H(n)("logout")),9,tw)])])],64)):(V(),Y("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:H(r).isLoading,onClick:i},_e(H(n)("login")),9,nw))]))]),we(vs),we(Wv)]))}}),Yu=[];let So=0,Oo=null;function sw({domain:e,clientId:t,locale:n=navigator.language}){const r=Ch(rw),s=Rh(),i=Oo||e&&t&&$l({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=jm({legacy:!1,locale:n,fallbackLocale:"en",messages:{...a0(Cu,"cn"),"zh-CN":Cu.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=sw({domain:r,clientId:s,locale:o});a.provide("ApiBaseUrl",n),a.provide("postId",t),a.provide("Auth0Domain",r),a.provide("comments",Yu),a.provide("total",So),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&&(Oo=$l({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}})),!Oo&&!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){Yu.push(...o.data),So=o.meta?.total||o.data.length;const a=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:So});document.body.dispatchEvent(a)}}}}();
|