@roudanio/awesome-comment 0.5.4 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +1,26 @@
1
- var AwesomeComment=function(){"use strict";function Lr(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const ce={},zt=[],Ge=()=>{},sl=()=>!1,ol=/^on[^a-z]/,$n=e=>ol.test(e),Or=e=>e.startsWith("onUpdate:"),we=Object.assign,Nr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},il=Object.prototype.hasOwnProperty,q=(e,t)=>il.call(e,t),K=Array.isArray,Zt=e=>jn(e)==="[object Map]",Zs=e=>jn(e)==="[object Set]",Y=e=>typeof e=="function",_e=e=>typeof e=="string",Cr=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",Js=e=>de(e)&&Y(e.then)&&Y(e.catch),qs=Object.prototype.toString,jn=e=>qs.call(e),al=e=>jn(e).slice(8,-1),Qs=e=>jn(e)==="[object Object]",Pr=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wn=Lr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ll=/-(\w)/g,et=Hn(e=>e.replace(ll,(t,n)=>n?n.toUpperCase():"")),cl=/\B([A-Z])/g,Pt=Hn(e=>e.replace(cl,"-$1").toLowerCase()),Kn=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Sr=Hn(e=>e?`on${Kn(e)}`:""),hn=(e,t)=>!Object.is(e,t),Vn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Yn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ar=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let eo;const Rr=()=>eo||(eo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xn(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=_e(r)?ml(r):Xn(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(_e(e))return e;if(de(e))return e}}const ul=/;(?![^(]*\))/g,fl=/:([^]+)/,dl=/\/\*[^]*?\*\//g;function ml(e){const t={};return e.replace(dl,"").split(ul).forEach(n=>{if(n){const r=n.split(fl);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Bn(e){let t="";if(_e(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const r=Bn(e[n]);r&&(t+=r+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const hl=Lr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function to(e){return!!e||e===""}const ge=e=>_e(e)?e:e==null?"":K(e)||de(e)&&(e.toString===qs||!Y(e.toString))?JSON.stringify(e,no,2):String(e),no=(e,t)=>t&&t.__v_isRef?no(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Zs(t)?{[`Set(${t.size})`]:[...t.values()]}:de(t)&&!K(t)&&!Qs(t)?String(t):t;let $e;class ro{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$e,!t&&$e&&(this.index=($e.scopes||($e.scopes=[])).push(this)-1)}get active(){return this._active}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 o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Fr(e){return new ro(e)}function pl(e,t=$e){t&&t.active&&t.effects.push(e)}function so(){return $e}function _l(e){$e&&$e.cleanups.push(e)}const xr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},oo=e=>(e.w&_t)>0,io=e=>(e.n&_t)>0,gl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=_t},bl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];oo(o)&&!io(o)?o.delete(e):t[n++]=o,o.w&=~_t,o.n&=~_t}t.length=n}},Gn=new WeakMap;let pn=0,_t=1;const Dr=30;let ze;const St=Symbol(""),Mr=Symbol("");class Ur{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,pl(this,r)}run(){if(!this.active)return this.fn();let t=ze,n=gt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ze,ze=this,gt=!0,_t=1<<++pn,pn<=Dr?gl(this):ao(this),this.fn()}finally{pn<=Dr&&bl(this),_t=1<<--pn,ze=this.parent,gt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ze===this?this.deferStop=!0:this.active&&(ao(this),this.onStop&&this.onStop(),this.active=!1)}}function ao(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let gt=!0;const lo=[];function Jt(){lo.push(gt),gt=!1}function qt(){const e=lo.pop();gt=e===void 0?!0:e}function Ae(e,t,n){if(gt&&ze){let r=Gn.get(e);r||Gn.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=xr()),co(o)}}function co(e,t){let n=!1;pn<=Dr?io(e)||(e.n|=_t,n=!oo(e)):n=!e.has(ze),n&&(e.add(ze),ze.deps.push(e))}function ft(e,t,n,r,o,s){const i=Gn.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&K(e)){const l=Number(r);i.forEach((f,d)=>{(d==="length"||d>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":K(e)?Pr(n)&&a.push(i.get("length")):(a.push(i.get(St)),Zt(e)&&a.push(i.get(Mr)));break;case"delete":K(e)||(a.push(i.get(St)),Zt(e)&&a.push(i.get(Mr)));break;case"set":Zt(e)&&a.push(i.get(St));break}if(a.length===1)a[0]&&$r(a[0]);else{const l=[];for(const f of a)f&&l.push(...f);$r(xr(l))}}function $r(e,t){const n=K(e)?e:[...e];for(const r of n)r.computed&&uo(r);for(const r of n)r.computed||uo(r)}function uo(e,t){(e!==ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function yl(e,t){var n;return(n=Gn.get(e))==null?void 0:n.get(t)}const vl=Lr("__proto__,__v_isRef,__isVue"),fo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Cr)),El=jr(),wl=jr(!1,!0),Il=jr(!0),mo=kl();function kl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Q(this);for(let s=0,i=this.length;s<i;s++)Ae(r,"get",s+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(Q)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Jt();const r=Q(this)[t].apply(this,n);return qt(),r}}),e}function Tl(e){const t=Q(this);return Ae(t,"has",e),t.hasOwnProperty(e)}function jr(e=!1,t=!1){return function(r,o,s){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&s===(e?t?Wl:wo:t?Eo:vo).get(r))return r;const i=K(r);if(!e){if(i&&q(mo,o))return Reflect.get(mo,o,s);if(o==="hasOwnProperty")return Tl}const a=Reflect.get(r,o,s);return(Cr(o)?fo.has(o):vl(o))||(e||Ae(r,"get",o),t)?a:me(a)?i&&Pr(o)?a:a.value:de(a)?e?Io(a):tr(a):a}}const Ll=ho(),Ol=ho(!0);function ho(e=!1){return function(n,r,o,s){let i=n[r];if(Qt(i)&&me(i)&&!me(o))return!1;if(!e&&(!nr(o)&&!Qt(o)&&(i=Q(i),o=Q(o)),!K(n)&&me(i)&&!me(o)))return i.value=o,!0;const a=K(n)&&Pr(r)?Number(r)<n.length:q(n,r),l=Reflect.set(n,r,o,s);return n===Q(s)&&(a?hn(o,i)&&ft(n,"set",r,o):ft(n,"add",r,o)),l}}function Nl(e,t){const n=q(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&ft(e,"delete",t,void 0),r}function Cl(e,t){const n=Reflect.has(e,t);return(!Cr(t)||!fo.has(t))&&Ae(e,"has",t),n}function Pl(e){return Ae(e,"iterate",K(e)?"length":St),Reflect.ownKeys(e)}const po={get:El,set:Ll,deleteProperty:Nl,has:Cl,ownKeys:Pl},Sl={get:Il,set(e,t){return!0},deleteProperty(e,t){return!0}},Al=we({},po,{get:wl,set:Ol}),Wr=e=>e,zn=e=>Reflect.getPrototypeOf(e);function Zn(e,t,n=!1,r=!1){e=e.__v_raw;const o=Q(e),s=Q(t);n||(t!==s&&Ae(o,"get",t),Ae(o,"get",s));const{has:i}=zn(o),a=r?Wr:n?Vr:_n;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function Jn(e,t=!1){const n=this.__v_raw,r=Q(n),o=Q(e);return t||(e!==o&&Ae(r,"has",e),Ae(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function qn(e,t=!1){return e=e.__v_raw,!t&&Ae(Q(e),"iterate",St),Reflect.get(e,"size",e)}function _o(e){e=Q(e);const t=Q(this);return zn(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function go(e,t){t=Q(t);const n=Q(this),{has:r,get:o}=zn(n);let s=r.call(n,e);s||(e=Q(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?hn(t,i)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function bo(e){const t=Q(this),{has:n,get:r}=zn(t);let o=n.call(t,e);o||(e=Q(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&ft(t,"delete",e,void 0),s}function yo(){const e=Q(this),t=e.size!==0,n=e.clear();return t&&ft(e,"clear",void 0,void 0),n}function Qn(e,t){return function(r,o){const s=this,i=s.__v_raw,a=Q(i),l=t?Wr:e?Vr:_n;return!e&&Ae(a,"iterate",St),i.forEach((f,d)=>r.call(o,l(f),l(d),s))}}function er(e,t,n){return function(...r){const o=this.__v_raw,s=Q(o),i=Zt(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,f=o[e](...r),d=n?Wr:t?Vr:_n;return!t&&Ae(s,"iterate",l?Mr:St),{next(){const{value:m,done:h}=f.next();return h?{value:m,done:h}:{value:a?[d(m[0]),d(m[1])]:d(m),done:h}},[Symbol.iterator](){return this}}}}function bt(e){return function(...t){return e==="delete"?!1:this}}function Rl(){const e={get(s){return Zn(this,s)},get size(){return qn(this)},has:Jn,add:_o,set:go,delete:bo,clear:yo,forEach:Qn(!1,!1)},t={get(s){return Zn(this,s,!1,!0)},get size(){return qn(this)},has:Jn,add:_o,set:go,delete:bo,clear:yo,forEach:Qn(!1,!0)},n={get(s){return Zn(this,s,!0)},get size(){return qn(this,!0)},has(s){return Jn.call(this,s,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:Qn(!0,!1)},r={get(s){return Zn(this,s,!0,!0)},get size(){return qn(this,!0)},has(s){return Jn.call(this,s,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:Qn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=er(s,!1,!1),n[s]=er(s,!0,!1),t[s]=er(s,!1,!0),r[s]=er(s,!0,!0)}),[e,n,t,r]}const[Fl,xl,Dl,Ml]=Rl();function Hr(e,t){const n=t?e?Ml:Dl:e?xl:Fl;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(q(n,o)&&o in r?n:r,o,s)}const Ul={get:Hr(!1,!1)},$l={get:Hr(!1,!0)},jl={get:Hr(!0,!1)},vo=new WeakMap,Eo=new WeakMap,wo=new WeakMap,Wl=new WeakMap;function Hl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kl(e){return e.__v_skip||!Object.isExtensible(e)?0:Hl(al(e))}function tr(e){return Qt(e)?e:Kr(e,!1,po,Ul,vo)}function Vl(e){return Kr(e,!1,Al,$l,Eo)}function Io(e){return Kr(e,!0,Sl,jl,wo)}function Kr(e,t,n,r,o){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=Kl(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function yt(e){return Qt(e)?yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function nr(e){return!!(e&&e.__v_isShallow)}function ko(e){return yt(e)||Qt(e)}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function rr(e){return Yn(e,"__v_skip",!0),e}const _n=e=>de(e)?tr(e):e,Vr=e=>de(e)?Io(e):e;function To(e){gt&&ze&&(e=Q(e),co(e.dep||(e.dep=xr())))}function Lo(e,t){e=Q(e);const n=e.dep;n&&$r(n)}function me(e){return!!(e&&e.__v_isRef===!0)}function J(e){return Oo(e,!1)}function Yl(e){return Oo(e,!0)}function Oo(e,t){return me(e)?e:new Xl(e,t)}class Xl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Q(t),this._value=n?t:_n(t)}get value(){return To(this),this._value}set value(t){const n=this.__v_isShallow||nr(t)||Qt(t);t=n?t:Q(t),hn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:_n(t),Lo(this))}}function X(e){return me(e)?e.value:e}const Bl={get:(e,t,n)=>X(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return me(o)&&!me(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function No(e){return yt(e)?e:new Proxy(e,Bl)}function Gl(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=Zl(e,n);return t}class zl{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return yl(Q(this._object),this._key)}}function Zl(e,t,n){const r=e[t];return me(r)?r:new zl(e,t,n)}class Jl{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ur(t,()=>{this._dirty||(this._dirty=!0,Lo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Q(this);return To(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ql(e,t,n=!1){let r,o;const s=Y(e);return s?(r=e,o=Ge):(r=e.get,o=e.set),new Jl(r,o,s||!o,n)}function Jm(e,...t){}function vt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){sr(s,t,n)}return o}function Ze(e,t,n,r){if(Y(e)){const s=vt(e,t,n,r);return s&&Js(s)&&s.catch(i=>{sr(i,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(Ze(e[s],t,n,r));return o}function sr(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=n;for(;s;){const f=s.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){vt(l,null,10,[e,i,a]);return}}Ql(e,n,o,r)}function Ql(e,t,n,r=!0){console.error(e)}let gn=!1,Yr=!1;const ke=[];let tt=0;const en=[];let dt=null,At=0;const Co=Promise.resolve();let Xr=null;function Po(e){const t=Xr||Co;return e?t.then(this?e.bind(this):e):t}function ec(e){let t=tt+1,n=ke.length;for(;t<n;){const r=t+n>>>1;bn(ke[r])<e?t=r+1:n=r}return t}function Br(e){(!ke.length||!ke.includes(e,gn&&e.allowRecurse?tt+1:tt))&&(e.id==null?ke.push(e):ke.splice(ec(e.id),0,e),So())}function So(){!gn&&!Yr&&(Yr=!0,Xr=Co.then(Fo))}function tc(e){const t=ke.indexOf(e);t>tt&&ke.splice(t,1)}function nc(e){K(e)?en.push(...e):(!dt||!dt.includes(e,e.allowRecurse?At+1:At))&&en.push(e),So()}function Ao(e,t=gn?tt+1:0){for(;t<ke.length;t++){const n=ke[t];n&&n.pre&&(ke.splice(t,1),t--,n())}}function Ro(e){if(en.length){const t=[...new Set(en)];if(en.length=0,dt){dt.push(...t);return}for(dt=t,dt.sort((n,r)=>bn(n)-bn(r)),At=0;At<dt.length;At++)dt[At]();dt=null,At=0}}const bn=e=>e.id==null?1/0:e.id,rc=(e,t)=>{const n=bn(e)-bn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fo(e){Yr=!1,gn=!0,ke.sort(rc);const t=Ge;try{for(tt=0;tt<ke.length;tt++){const n=ke[tt];n&&n.active!==!1&&vt(n,null,14)}}finally{tt=0,ke.length=0,Ro(),gn=!1,Xr=null,(ke.length||en.length)&&Fo()}}function sc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ce;let o=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in r){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:m,trim:h}=r[d]||ce;h&&(o=n.map(b=>_e(b)?b.trim():b)),m&&(o=n.map(Ar))}let a,l=r[a=Sr(t)]||r[a=Sr(et(t))];!l&&s&&(l=r[a=Sr(Pt(t))]),l&&Ze(l,e,6,o);const f=r[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ze(f,e,6,o)}}function xo(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!Y(e)){const l=f=>{const d=xo(f,t,!0);d&&(a=!0,we(i,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(de(e)&&r.set(e,null),null):(K(s)?s.forEach(l=>i[l]=null):we(i,s),de(e)&&r.set(e,i),i)}function or(e,t){return!e||!$n(t)?!1:(t=t.slice(2).replace(/Once$/,""),q(e,t[0].toLowerCase()+t.slice(1))||q(e,Pt(t))||q(e,t))}let Re=null,Do=null;function ir(e){const t=Re;return Re=e,Do=e&&e.type.__scopeId||null,t}function oc(e,t=Re,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&li(-1);const s=ir(t);let i;try{i=e(...o)}finally{ir(s),r._d&&li(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function qm(){}function Gr(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:a,attrs:l,emit:f,render:d,renderCache:m,data:h,setupState:b,ctx:w,inheritAttrs:k}=e;let L,_;const y=ir(e);try{if(n.shapeFlag&4){const I=o||r;L=nt(d.call(I,I,m,s,b,h,w)),_=l}else{const I=t;L=nt(I.length>1?I(s,{attrs:l,slots:a,emit:f}):I(s,null)),_=t.props?l:ic(l)}}catch(I){In.length=0,sr(I,e,1),L=Te(Ut)}let N=L;if(_&&k!==!1){const I=Object.keys(_),{shapeFlag:P}=N;I.length&&P&7&&(i&&I.some(Or)&&(_=ac(_,i)),N=tn(N,_))}return n.dirs&&(N=tn(N),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),L=N,ir(y),L}const ic=e=>{let t;for(const n in e)(n==="class"||n==="style"||$n(n))&&((t||(t={}))[n]=e[n]);return t},ac=(e,t)=>{const n={};for(const r in e)(!Or(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lc(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,f=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Mo(r,i,f):!!i;if(l&8){const d=t.dynamicProps;for(let m=0;m<d.length;m++){const h=d[m];if(i[h]!==r[h]&&!or(f,h))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Mo(r,i,f):!0:!!i;return!1}function Mo(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!or(n,s))return!0}return!1}function cc({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const uc=e=>e.__isSuspense;function fc(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):nc(e)}const ar={};function Rt(e,t,n){return Uo(e,t,n)}function Uo(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:i}=ce){var a;const l=so()===((a=be)==null?void 0:a.scope)?be:null;let f,d=!1,m=!1;if(me(e)?(f=()=>e.value,d=nr(e)):yt(e)?(f=()=>e,r=!0):K(e)?(m=!0,d=e.some(I=>yt(I)||nr(I)),f=()=>e.map(I=>{if(me(I))return I.value;if(yt(I))return Ft(I);if(Y(I))return vt(I,l,2)})):Y(e)?t?f=()=>vt(e,l,2):f=()=>{if(!(l&&l.isUnmounted))return h&&h(),Ze(e,l,3,[b])}:f=Ge,t&&r){const I=f;f=()=>Ft(I())}let h,b=I=>{h=y.onStop=()=>{vt(I,l,4)}},w;if(Nn)if(b=Ge,t?n&&Ze(t,l,3,[f(),m?[]:void 0,b]):f(),o==="sync"){const I=iu();w=I.__watcherHandles||(I.__watcherHandles=[])}else return Ge;let k=m?new Array(e.length).fill(ar):ar;const L=()=>{if(y.active)if(t){const I=y.run();(r||d||(m?I.some((P,C)=>hn(P,k[C])):hn(I,k)))&&(h&&h(),Ze(t,l,3,[I,k===ar?void 0:m&&k[0]===ar?[]:k,b]),k=I)}else y.run()};L.allowRecurse=!!t;let _;o==="sync"?_=L:o==="post"?_=()=>Fe(L,l&&l.suspense):(L.pre=!0,l&&(L.id=l.uid),_=()=>Br(L));const y=new Ur(f,_);t?n?L():k=y.run():o==="post"?Fe(y.run.bind(y),l&&l.suspense):y.run();const N=()=>{y.stop(),l&&l.scope&&Nr(l.scope.effects,y)};return w&&w.push(N),N}function dc(e,t,n){const r=this.proxy,o=_e(e)?e.includes(".")?$o(r,e):()=>r[e]:e.bind(r,r);let s;Y(t)?s=t:(s=t.handler,n=t);const i=be;rn(this);const a=Uo(o,s.bind(r),n);return i?rn(i):$t(),a}function $o(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function Ft(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),me(e))Ft(e.value,t);else if(K(e))for(let n=0;n<e.length;n++)Ft(e[n],t);else if(Zs(e)||Zt(e))e.forEach(n=>{Ft(n,t)});else if(Qs(e))for(const n in e)Ft(e[n],t);return e}function mc(e,t){const n=Re;if(n===null)return e;const r=hr(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,l,f=ce]=t[s];i&&(Y(i)&&(i={mounted:i,updated:i}),i.deep&&Ft(a),o.push({dir:i,instance:r,value:a,oldValue:void 0,arg:l,modifiers:f}))}return e}function xt(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(Jt(),Ze(l,n,8,[e.el,a,e,t]),qt())}}function Dt(e,t){return Y(e)?(()=>we({name:e.name},t,{setup:e}))():e}const lr=e=>!!e.type.__asyncLoader,jo=e=>e.type.__isKeepAlive;function hc(e,t){Wo(e,"a",t)}function pc(e,t){Wo(e,"da",t)}function Wo(e,t,n=be){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(cr(t,r,n),n){let o=n.parent;for(;o&&o.parent;)jo(o.parent.vnode)&&_c(r,t,n,o),o=o.parent}}function _c(e,t,n,r){const o=cr(t,e,r,!0);Zr(()=>{Nr(r[t],o)},n)}function cr(e,t,n=be,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Jt(),rn(n);const a=Ze(t,n,e,i);return $t(),qt(),a});return r?o.unshift(s):o.push(s),s}}const mt=e=>(t,n=be)=>(!Nn||e==="sp")&&cr(e,(...r)=>t(...r),n),Ho=mt("bm"),zr=mt("m"),gc=mt("bu"),bc=mt("u"),yc=mt("bum"),Zr=mt("um"),vc=mt("sp"),Ec=mt("rtg"),wc=mt("rtc");function Ic(e,t=be){cr("ec",e,t)}const Ko="components";function kc(e,t){return Lc(Ko,e,!0,t)||e}const Tc=Symbol.for("v-ndc");function Lc(e,t,n=!0,r=!1){const o=Re||be;if(o){const s=o.type;if(e===Ko){const a=ru(s,!1);if(a&&(a===t||a===et(t)||a===Kn(et(t))))return s}const i=Vo(o[e]||s[e],t)||Vo(o.appContext[e],t);return!i&&r?s:i}}function Vo(e,t){return e&&(e[t]||e[et(t)]||e[Kn(et(t))])}function Yo(e,t,n,r){let o;const s=n&&n[r];if(K(e)||_e(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,s&&s[i])}else if(de(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const f=i[a];o[a]=t(e[f],f,a,s&&s[a])}}else o=[];return n&&(n[r]=o),o}const Jr=e=>e?di(e)?hr(e)||e.proxy:Jr(e.parent):null,yn=we(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Jr(e.parent),$root:e=>Jr(e.root),$emit:e=>e.emit,$options:e=>es(e),$forceUpdate:e=>e.f||(e.f=()=>Br(e.update)),$nextTick:e=>e.n||(e.n=Po.bind(e.proxy)),$watch:e=>dc.bind(e)}),qr=(e,t)=>e!==ce&&!e.__isScriptSetup&&q(e,t),Oc={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const b=i[t];if(b!==void 0)switch(b){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(qr(r,t))return i[t]=1,r[t];if(o!==ce&&q(o,t))return i[t]=2,o[t];if((f=e.propsOptions[0])&&q(f,t))return i[t]=3,s[t];if(n!==ce&&q(n,t))return i[t]=4,n[t];Qr&&(i[t]=0)}}const d=yn[t];let m,h;if(d)return t==="$attrs"&&Ae(e,"get",t),d(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==ce&&q(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,q(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return qr(o,t)?(o[t]=n,!0):r!==ce&&q(r,t)?(r[t]=n,!0):q(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:o,propsOptions:s}},i){let a;return!!n[i]||e!==ce&&q(e,i)||qr(t,i)||(a=s[0])&&q(a,i)||q(r,i)||q(yn,i)||q(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Xo(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Qr=!0;function Nc(e){const t=es(e),n=e.proxy,r=e.ctx;Qr=!1,t.beforeCreate&&Bo(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:f,created:d,beforeMount:m,mounted:h,beforeUpdate:b,updated:w,activated:k,deactivated:L,beforeDestroy:_,beforeUnmount:y,destroyed:N,unmounted:I,render:P,renderTracked:C,renderTriggered:M,errorCaptured:x,serverPrefetch:$,expose:Z,inheritAttrs:ae,components:ie,directives:Ee,filters:Xe}=t;if(f&&Cc(f,r,null),i)for(const oe in i){const z=i[oe];Y(z)&&(r[oe]=z.bind(n))}if(o){const oe=o.call(n,n);de(oe)&&(e.data=tr(oe))}if(Qr=!0,s)for(const oe in s){const z=s[oe],Pe=Y(z)?z.bind(n,n):Y(z.get)?z.get.bind(n,n):Ge,at=!Y(z)&&Y(z.set)?z.set.bind(n):Ge,He=We({get:Pe,set:at});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>He.value,set:Oe=>He.value=Oe})}if(a)for(const oe in a)Go(a[oe],r,n,oe);if(l){const oe=Y(l)?l.call(n):l;Reflect.ownKeys(oe).forEach(z=>{xc(z,oe[z])})}d&&Bo(d,e,"c");function B(oe,z){K(z)?z.forEach(Pe=>oe(Pe.bind(n))):z&&oe(z.bind(n))}if(B(Ho,m),B(zr,h),B(gc,b),B(bc,w),B(hc,k),B(pc,L),B(Ic,x),B(wc,C),B(Ec,M),B(yc,y),B(Zr,I),B(vc,$),K(Z))if(Z.length){const oe=e.exposed||(e.exposed={});Z.forEach(z=>{Object.defineProperty(oe,z,{get:()=>n[z],set:Pe=>n[z]=Pe})})}else e.exposed||(e.exposed={});P&&e.render===Ge&&(e.render=P),ae!=null&&(e.inheritAttrs=ae),ie&&(e.components=ie),Ee&&(e.directives=Ee)}function Cc(e,t,n=Ge){K(e)&&(e=ts(e));for(const r in e){const o=e[r];let s;de(o)?"default"in o?s=Ye(o.from||r,o.default,!0):s=Ye(o.from||r):s=Ye(o),me(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function Bo(e,t,n){Ze(K(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Go(e,t,n,r){const o=r.includes(".")?$o(n,r):()=>n[r];if(_e(e)){const s=t[e];Y(s)&&Rt(o,s)}else if(Y(e))Rt(o,e.bind(n));else if(de(e))if(K(e))e.forEach(s=>Go(s,t,n,r));else{const s=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(s)&&Rt(o,s,e)}}function es(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(f=>ur(l,f,i,!0)),ur(l,t,i)),de(t)&&s.set(t,l),l}function ur(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&ur(e,s,n,!0),o&&o.forEach(i=>ur(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Pc[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Pc={data:zo,props:Zo,emits:Zo,methods:vn,computed:vn,beforeCreate:Ne,created:Ne,beforeMount:Ne,mounted:Ne,beforeUpdate:Ne,updated:Ne,beforeDestroy:Ne,beforeUnmount:Ne,destroyed:Ne,unmounted:Ne,activated:Ne,deactivated:Ne,errorCaptured:Ne,serverPrefetch:Ne,components:vn,directives:vn,watch:Ac,provide:zo,inject:Sc};function zo(e,t){return t?e?function(){return we(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Sc(e,t){return vn(ts(e),ts(t))}function ts(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ne(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?we(Object.create(null),e,t):t}function Zo(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:we(Object.create(null),Xo(e),Xo(t??{})):t}function Ac(e,t){if(!e)return t;if(!t)return e;const n=we(Object.create(null),e);for(const r in t)n[r]=Ne(e[r],t[r]);return n}function Jo(){return{app:null,config:{isNativeTag:sl,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 Rc=0;function Fc(e,t){return function(r,o=null){Y(r)||(r=we({},r)),o!=null&&!de(o)&&(o=null);const s=Jo(),i=new Set;let a=!1;const l=s.app={_uid:Rc++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:au,get config(){return s.config},set config(f){},use(f,...d){return i.has(f)||(f&&Y(f.install)?(i.add(f),f.install(l,...d)):Y(f)&&(i.add(f),f(l,...d))),l},mixin(f){return s.mixins.includes(f)||s.mixins.push(f),l},component(f,d){return d?(s.components[f]=d,l):s.components[f]},directive(f,d){return d?(s.directives[f]=d,l):s.directives[f]},mount(f,d,m){if(!a){const h=Te(r,o);return h.appContext=s,d&&t?t(h,f):e(h,f,m),a=!0,l._container=f,f.__vue_app__=l,hr(h.component)||h.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(f,d){return s.provides[f]=d,l},runWithContext(f){En=l;try{return f()}finally{En=null}}};return l}}let En=null;function xc(e,t){if(be){let n=be.provides;const r=be.parent&&be.parent.provides;r===n&&(n=be.provides=Object.create(r)),n[e]=t}}function Ye(e,t,n=!1){const r=be||Re;if(r||En){const o=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:En._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Y(t)?t.call(r&&r.proxy):t}}function Dc(){return!!(be||Re||En)}function Mc(e,t,n,r=!1){const o={},s={};Yn(s,fr,1),e.propsDefaults=Object.create(null),qo(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:Vl(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Uc(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Q(o),[l]=e.propsOptions;let f=!1;if((r||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let m=0;m<d.length;m++){let h=d[m];if(or(e.emitsOptions,h))continue;const b=t[h];if(l)if(q(s,h))b!==s[h]&&(s[h]=b,f=!0);else{const w=et(h);o[w]=ns(l,a,w,b,e,!1)}else b!==s[h]&&(s[h]=b,f=!0)}}}else{qo(e,t,o,s)&&(f=!0);let d;for(const m in a)(!t||!q(t,m)&&((d=Pt(m))===m||!q(t,d)))&&(l?n&&(n[m]!==void 0||n[d]!==void 0)&&(o[m]=ns(l,a,m,void 0,e,!0)):delete o[m]);if(s!==a)for(const m in s)(!t||!q(t,m))&&(delete s[m],f=!0)}f&&ft(e,"set","$attrs")}function qo(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Wn(l))continue;const f=t[l];let d;o&&q(o,d=et(l))?!s||!s.includes(d)?n[d]=f:(a||(a={}))[d]=f:or(e.emitsOptions,l)||(!(l in r)||f!==r[l])&&(r[l]=f,i=!0)}if(s){const l=Q(n),f=a||ce;for(let d=0;d<s.length;d++){const m=s[d];n[m]=ns(o,l,m,f[m],e,!q(f,m))}}return i}function ns(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=q(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Y(l)){const{propsDefaults:f}=o;n in f?r=f[n]:(rn(o),r=f[n]=l.call(null,t),$t())}else r=l}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===Pt(n))&&(r=!0))}return r}function Qo(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!Y(e)){const d=m=>{l=!0;const[h,b]=Qo(m,t,!0);we(i,h),b&&a.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!l)return de(e)&&r.set(e,zt),zt;if(K(s))for(let d=0;d<s.length;d++){const m=et(s[d]);ei(m)&&(i[m]=ce)}else if(s)for(const d in s){const m=et(d);if(ei(m)){const h=s[d],b=i[m]=K(h)||Y(h)?{type:h}:we({},h);if(b){const w=ri(Boolean,b.type),k=ri(String,b.type);b[0]=w>-1,b[1]=k<0||w<k,(w>-1||q(b,"default"))&&a.push(m)}}}const f=[i,a];return de(e)&&r.set(e,f),f}function ei(e){return e[0]!=="$"}function ti(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ni(e,t){return ti(e)===ti(t)}function ri(e,t){return K(t)?t.findIndex(n=>ni(n,e)):Y(t)&&ni(t,e)?0:-1}const si=e=>e[0]==="_"||e==="$stable",rs=e=>K(e)?e.map(nt):[nt(e)],$c=(e,t,n)=>{if(t._n)return t;const r=oc((...o)=>rs(t(...o)),n);return r._c=!1,r},oi=(e,t,n)=>{const r=e._ctx;for(const o in e){if(si(o))continue;const s=e[o];if(Y(s))t[o]=$c(o,s,r);else if(s!=null){const i=rs(s);t[o]=()=>i}}},ii=(e,t)=>{const n=rs(t);e.slots.default=()=>n},jc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Q(t),Yn(t,"_",n)):oi(t,e.slots={})}else e.slots={},t&&ii(e,t);Yn(e.slots,fr,1)},Wc=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=ce;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(we(o,t),!n&&a===1&&delete o._):(s=!t.$stable,oi(t,o)),i=t}else t&&(ii(e,t),i={default:1});if(s)for(const a in o)!si(a)&&!(a in i)&&delete o[a]};function ss(e,t,n,r,o=!1){if(K(e)){e.forEach((h,b)=>ss(h,t&&(K(t)?t[b]:t),n,r,o));return}if(lr(r)&&!o)return;const s=r.shapeFlag&4?hr(r.component)||r.component.proxy:r.el,i=o?null:s,{i:a,r:l}=e,f=t&&t.r,d=a.refs===ce?a.refs={}:a.refs,m=a.setupState;if(f!=null&&f!==l&&(_e(f)?(d[f]=null,q(m,f)&&(m[f]=null)):me(f)&&(f.value=null)),Y(l))vt(l,a,12,[i,d]);else{const h=_e(l),b=me(l);if(h||b){const w=()=>{if(e.f){const k=h?q(m,l)?m[l]:d[l]:l.value;o?K(k)&&Nr(k,s):K(k)?k.includes(s)||k.push(s):h?(d[l]=[s],q(m,l)&&(m[l]=d[l])):(l.value=[s],e.k&&(d[e.k]=l.value))}else h?(d[l]=i,q(m,l)&&(m[l]=i)):b&&(l.value=i,e.k&&(d[e.k]=i))};i?(w.id=-1,Fe(w,n)):w()}}}const Fe=fc;function Hc(e){return Kc(e)}function Kc(e,t){const n=Rr();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:f,setElementText:d,parentNode:m,nextSibling:h,setScopeId:b=Ge,insertStaticContent:w}=e,k=(g,c,u,p=null,v=null,O=null,S=!1,R=null,F=!!c.dynamicChildren)=>{if(g===c)return;g&&!Ln(g,c)&&(p=lt(g),Oe(g,v,O,!0),g=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:A,ref:U,shapeFlag:E}=c;switch(A){case wn:L(g,c,u,p);break;case Ut:_(g,c,u,p);break;case os:g==null&&y(c,u,p,S);break;case xe:ie(g,c,u,p,v,O,S,R,F);break;default:E&1?P(g,c,u,p,v,O,S,R,F):E&6?Ee(g,c,u,p,v,O,S,R,F):(E&64||E&128)&&A.process(g,c,u,p,v,O,S,R,F,Ue)}U!=null&&v&&ss(U,g&&g.ref,O,c||g,!c)},L=(g,c,u,p)=>{if(g==null)r(c.el=a(c.children),u,p);else{const v=c.el=g.el;c.children!==g.children&&f(v,c.children)}},_=(g,c,u,p)=>{g==null?r(c.el=l(c.children||""),u,p):c.el=g.el},y=(g,c,u,p)=>{[g.el,g.anchor]=w(g.children,c,u,p,g.el,g.anchor)},N=({el:g,anchor:c},u,p)=>{let v;for(;g&&g!==c;)v=h(g),r(g,u,p),g=v;r(c,u,p)},I=({el:g,anchor:c})=>{let u;for(;g&&g!==c;)u=h(g),o(g),g=u;o(c)},P=(g,c,u,p,v,O,S,R,F)=>{S=S||c.type==="svg",g==null?C(c,u,p,v,O,S,R,F):$(g,c,v,O,S,R,F)},C=(g,c,u,p,v,O,S,R)=>{let F,A;const{type:U,props:E,shapeFlag:T,transition:j,dirs:W}=g;if(F=g.el=i(g.type,O,E&&E.is,E),T&8?d(F,g.children):T&16&&x(g.children,F,null,p,v,O&&U!=="foreignObject",S,R),W&&xt(g,null,p,"created"),M(F,g,g.scopeId,S,p),E){for(const ee in E)ee!=="value"&&!Wn(ee)&&s(F,ee,null,E[ee],O,g.children,p,v,Se);"value"in E&&s(F,"value",null,E.value),(A=E.onVnodeBeforeMount)&&rt(A,p,g)}W&&xt(g,null,p,"beforeMount");const ne=(!v||v&&!v.pendingBranch)&&j&&!j.persisted;ne&&j.beforeEnter(F),r(F,c,u),((A=E&&E.onVnodeMounted)||ne||W)&&Fe(()=>{A&&rt(A,p,g),ne&&j.enter(F),W&&xt(g,null,p,"mounted")},v)},M=(g,c,u,p,v)=>{if(u&&b(g,u),p)for(let O=0;O<p.length;O++)b(g,p[O]);if(v){let O=v.subTree;if(c===O){const S=v.vnode;M(g,S,S.scopeId,S.slotScopeIds,v.parent)}}},x=(g,c,u,p,v,O,S,R,F=0)=>{for(let A=F;A<g.length;A++){const U=g[A]=R?Et(g[A]):nt(g[A]);k(null,U,c,u,p,v,O,S,R)}},$=(g,c,u,p,v,O,S)=>{const R=c.el=g.el;let{patchFlag:F,dynamicChildren:A,dirs:U}=c;F|=g.patchFlag&16;const E=g.props||ce,T=c.props||ce;let j;u&&Mt(u,!1),(j=T.onVnodeBeforeUpdate)&&rt(j,u,c,g),U&&xt(c,g,u,"beforeUpdate"),u&&Mt(u,!0);const W=v&&c.type!=="foreignObject";if(A?Z(g.dynamicChildren,A,R,u,p,W,O):S||z(g,c,R,null,u,p,W,O,!1),F>0){if(F&16)ae(R,c,E,T,u,p,v);else if(F&2&&E.class!==T.class&&s(R,"class",null,T.class,v),F&4&&s(R,"style",E.style,T.style,v),F&8){const ne=c.dynamicProps;for(let ee=0;ee<ne.length;ee++){const le=ne[ee],Ke=E[le],Gt=T[le];(Gt!==Ke||le==="value")&&s(R,le,Ke,Gt,v,g.children,u,p,Se)}}F&1&&g.children!==c.children&&d(R,c.children)}else!S&&A==null&&ae(R,c,E,T,u,p,v);((j=T.onVnodeUpdated)||U)&&Fe(()=>{j&&rt(j,u,c,g),U&&xt(c,g,u,"updated")},p)},Z=(g,c,u,p,v,O,S)=>{for(let R=0;R<c.length;R++){const F=g[R],A=c[R],U=F.el&&(F.type===xe||!Ln(F,A)||F.shapeFlag&70)?m(F.el):u;k(F,A,U,null,p,v,O,S,!0)}},ae=(g,c,u,p,v,O,S)=>{if(u!==p){if(u!==ce)for(const R in u)!Wn(R)&&!(R in p)&&s(g,R,u[R],null,S,c.children,v,O,Se);for(const R in p){if(Wn(R))continue;const F=p[R],A=u[R];F!==A&&R!=="value"&&s(g,R,A,F,S,c.children,v,O,Se)}"value"in p&&s(g,"value",u.value,p.value)}},ie=(g,c,u,p,v,O,S,R,F)=>{const A=c.el=g?g.el:a(""),U=c.anchor=g?g.anchor:a("");let{patchFlag:E,dynamicChildren:T,slotScopeIds:j}=c;j&&(R=R?R.concat(j):j),g==null?(r(A,u,p),r(U,u,p),x(c.children,u,U,v,O,S,R,F)):E>0&&E&64&&T&&g.dynamicChildren?(Z(g.dynamicChildren,T,u,v,O,S,R),(c.key!=null||v&&c===v.subTree)&&ai(g,c,!0)):z(g,c,u,U,v,O,S,R,F)},Ee=(g,c,u,p,v,O,S,R,F)=>{c.slotScopeIds=R,g==null?c.shapeFlag&512?v.ctx.activate(c,u,p,S,F):Xe(c,u,p,v,O,S,F):Me(g,c,F)},Xe=(g,c,u,p,v,O,S)=>{const R=g.component=qc(g,p,v);if(jo(g)&&(R.ctx.renderer=Ue),Qc(R),R.asyncDep){if(v&&v.registerDep(R,B),!g.el){const F=R.subTree=Te(Ut);_(null,F,c,u)}return}B(R,g,c,u,v,O,S)},Me=(g,c,u)=>{const p=c.component=g.component;if(lc(g,c,u))if(p.asyncDep&&!p.asyncResolved){oe(p,c,u);return}else p.next=c,tc(p.update),p.update();else c.el=g.el,p.vnode=c},B=(g,c,u,p,v,O,S)=>{const R=()=>{if(g.isMounted){let{next:U,bu:E,u:T,parent:j,vnode:W}=g,ne=U,ee;Mt(g,!1),U?(U.el=W.el,oe(g,U,S)):U=W,E&&Vn(E),(ee=U.props&&U.props.onVnodeBeforeUpdate)&&rt(ee,j,U,W),Mt(g,!0);const le=Gr(g),Ke=g.subTree;g.subTree=le,k(Ke,le,m(Ke.el),lt(Ke),g,v,O),U.el=le.el,ne===null&&cc(g,le.el),T&&Fe(T,v),(ee=U.props&&U.props.onVnodeUpdated)&&Fe(()=>rt(ee,j,U,W),v)}else{let U;const{el:E,props:T}=c,{bm:j,m:W,parent:ne}=g,ee=lr(c);if(Mt(g,!1),j&&Vn(j),!ee&&(U=T&&T.onVnodeBeforeMount)&&rt(U,ne,c),Mt(g,!0),E&&Qe){const le=()=>{g.subTree=Gr(g),Qe(E,g.subTree,g,v,null)};ee?c.type.__asyncLoader().then(()=>!g.isUnmounted&&le()):le()}else{const le=g.subTree=Gr(g);k(null,le,u,p,g,v,O),c.el=le.el}if(W&&Fe(W,v),!ee&&(U=T&&T.onVnodeMounted)){const le=c;Fe(()=>rt(U,ne,le),v)}(c.shapeFlag&256||ne&&lr(ne.vnode)&&ne.vnode.shapeFlag&256)&&g.a&&Fe(g.a,v),g.isMounted=!0,c=u=p=null}},F=g.effect=new Ur(R,()=>Br(A),g.scope),A=g.update=()=>F.run();A.id=g.uid,Mt(g,!0),A()},oe=(g,c,u)=>{c.component=g;const p=g.vnode.props;g.vnode=c,g.next=null,Uc(g,c.props,p,u),Wc(g,c.children,u),Jt(),Ao(),qt()},z=(g,c,u,p,v,O,S,R,F=!1)=>{const A=g&&g.children,U=g?g.shapeFlag:0,E=c.children,{patchFlag:T,shapeFlag:j}=c;if(T>0){if(T&128){at(A,E,u,p,v,O,S,R,F);return}else if(T&256){Pe(A,E,u,p,v,O,S,R,F);return}}j&8?(U&16&&Se(A,v,O),E!==A&&d(u,E)):U&16?j&16?at(A,E,u,p,v,O,S,R,F):Se(A,v,O,!0):(U&8&&d(u,""),j&16&&x(E,u,p,v,O,S,R,F))},Pe=(g,c,u,p,v,O,S,R,F)=>{g=g||zt,c=c||zt;const A=g.length,U=c.length,E=Math.min(A,U);let T;for(T=0;T<E;T++){const j=c[T]=F?Et(c[T]):nt(c[T]);k(g[T],j,u,null,v,O,S,R,F)}A>U?Se(g,v,O,!0,!1,E):x(c,u,p,v,O,S,R,F,E)},at=(g,c,u,p,v,O,S,R,F)=>{let A=0;const U=c.length;let E=g.length-1,T=U-1;for(;A<=E&&A<=T;){const j=g[A],W=c[A]=F?Et(c[A]):nt(c[A]);if(Ln(j,W))k(j,W,u,null,v,O,S,R,F);else break;A++}for(;A<=E&&A<=T;){const j=g[E],W=c[T]=F?Et(c[T]):nt(c[T]);if(Ln(j,W))k(j,W,u,null,v,O,S,R,F);else break;E--,T--}if(A>E){if(A<=T){const j=T+1,W=j<U?c[j].el:p;for(;A<=T;)k(null,c[A]=F?Et(c[A]):nt(c[A]),u,W,v,O,S,R,F),A++}}else if(A>T)for(;A<=E;)Oe(g[A],v,O,!0),A++;else{const j=A,W=A,ne=new Map;for(A=W;A<=T;A++){const Ve=c[A]=F?Et(c[A]):nt(c[A]);Ve.key!=null&&ne.set(Ve.key,A)}let ee,le=0;const Ke=T-W+1;let Gt=!1,tl=0;const Un=new Array(Ke);for(A=0;A<Ke;A++)Un[A]=0;for(A=j;A<=E;A++){const Ve=g[A];if(le>=Ke){Oe(Ve,v,O,!0);continue}let ut;if(Ve.key!=null)ut=ne.get(Ve.key);else for(ee=W;ee<=T;ee++)if(Un[ee-W]===0&&Ln(Ve,c[ee])){ut=ee;break}ut===void 0?Oe(Ve,v,O,!0):(Un[ut-W]=A+1,ut>=tl?tl=ut:Gt=!0,k(Ve,c[ut],u,null,v,O,S,R,F),le++)}const nl=Gt?Vc(Un):zt;for(ee=nl.length-1,A=Ke-1;A>=0;A--){const Ve=W+A,ut=c[Ve],rl=Ve+1<U?c[Ve+1].el:p;Un[A]===0?k(null,ut,u,rl,v,O,S,R,F):Gt&&(ee<0||A!==nl[ee]?He(ut,u,rl,2):ee--)}}},He=(g,c,u,p,v=null)=>{const{el:O,type:S,transition:R,children:F,shapeFlag:A}=g;if(A&6){He(g.component.subTree,c,u,p);return}if(A&128){g.suspense.move(c,u,p);return}if(A&64){S.move(g,c,u,Ue);return}if(S===xe){r(O,c,u);for(let E=0;E<F.length;E++)He(F[E],c,u,p);r(g.anchor,c,u);return}if(S===os){N(g,c,u);return}if(p!==2&&A&1&&R)if(p===0)R.beforeEnter(O),r(O,c,u),Fe(()=>R.enter(O),v);else{const{leave:E,delayLeave:T,afterLeave:j}=R,W=()=>r(O,c,u),ne=()=>{E(O,()=>{W(),j&&j()})};T?T(O,W,ne):ne()}else r(O,c,u)},Oe=(g,c,u,p=!1,v=!1)=>{const{type:O,props:S,ref:R,children:F,dynamicChildren:A,shapeFlag:U,patchFlag:E,dirs:T}=g;if(R!=null&&ss(R,null,u,g,!0),U&256){c.ctx.deactivate(g);return}const j=U&1&&T,W=!lr(g);let ne;if(W&&(ne=S&&S.onVnodeBeforeUnmount)&&rt(ne,c,g),U&6)Bt(g.component,u,p);else{if(U&128){g.suspense.unmount(u,p);return}j&&xt(g,null,c,"beforeUnmount"),U&64?g.type.remove(g,c,u,v,Ue,p):A&&(O!==xe||E>0&&E&64)?Se(A,c,u,!1,!0):(O===xe&&E&384||!v&&U&16)&&Se(F,c,u),p&&Ct(g)}(W&&(ne=S&&S.onVnodeUnmounted)||j)&&Fe(()=>{ne&&rt(ne,c,g),j&&xt(g,null,c,"unmounted")},u)},Ct=g=>{const{type:c,el:u,anchor:p,transition:v}=g;if(c===xe){Xt(u,p);return}if(c===os){I(g);return}const O=()=>{o(u),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(g.shapeFlag&1&&v&&!v.persisted){const{leave:S,delayLeave:R}=v,F=()=>S(u,O);R?R(g.el,O,F):F()}else O()},Xt=(g,c)=>{let u;for(;g!==c;)u=h(g),o(g),g=u;o(c)},Bt=(g,c,u)=>{const{bum:p,scope:v,update:O,subTree:S,um:R}=g;p&&Vn(p),v.stop(),O&&(O.active=!1,Oe(S,g,c,u)),R&&Fe(R,c),Fe(()=>{g.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},Se=(g,c,u,p=!1,v=!1,O=0)=>{for(let S=O;S<g.length;S++)Oe(g[S],c,u,p,v)},lt=g=>g.shapeFlag&6?lt(g.component.subTree):g.shapeFlag&128?g.suspense.next():h(g.anchor||g.el),ct=(g,c,u)=>{g==null?c._vnode&&Oe(c._vnode,null,null,!0):k(c._vnode||null,g,c,null,null,null,u),Ao(),Ro(),c._vnode=g},Ue={p:k,um:Oe,m:He,r:Ct,mt:Xe,mc:x,pc:z,pbc:Z,n:lt,o:e};let Be,Qe;return t&&([Be,Qe]=t(Ue)),{render:ct,hydrate:Be,createApp:Fc(ct,Be)}}function Mt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ai(e,t,n=!1){const r=e.children,o=t.children;if(K(r)&&K(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Et(o[s]),a.el=i.el),n||ai(i,a)),a.type===wn&&(a.el=i.el)}}function Vc(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const f=e[r];if(f!==0){if(o=n[n.length-1],e[o]<f){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<f?s=a+1:i=a;f<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Yc=e=>e.__isTeleport,xe=Symbol.for("v-fgt"),wn=Symbol.for("v-txt"),Ut=Symbol.for("v-cmt"),os=Symbol.for("v-stc"),In=[];let Je=null;function te(e=!1){In.push(Je=e?null:[])}function Xc(){In.pop(),Je=In[In.length-1]||null}let kn=1;function li(e){kn+=e}function ci(e){return e.dynamicChildren=kn>0?Je||zt:null,Xc(),kn>0&&Je&&Je.push(e),e}function ue(e,t,n,r,o,s){return ci(re(e,t,n,r,o,s,!0))}function Tn(e,t,n,r,o){return ci(Te(e,t,n,r,o,!0))}function is(e){return e?e.__v_isVNode===!0:!1}function Ln(e,t){return e.type===t.type&&e.key===t.key}const fr="__vInternal",ui=({key:e})=>e??null,dr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||me(e)||Y(e)?{i:Re,r:e,k:t,f:!!n}:e:null);function re(e,t=null,n=null,r=0,o=null,s=e===xe?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ui(t),ref:t&&dr(t),scopeId:Do,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Re};return a?(as(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16),kn>0&&!i&&Je&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Je.push(l),l}const Te=Bc;function Bc(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Tc)&&(e=Ut),is(e)){const a=tn(e,t,!0);return n&&as(a,n),kn>0&&!s&&Je&&(a.shapeFlag&6?Je[Je.indexOf(e)]=a:Je.push(a)),a.patchFlag|=-2,a}if(su(e)&&(e=e.__vccOpts),t){t=Gc(t);let{class:a,style:l}=t;a&&!_e(a)&&(t.class=Bn(a)),de(l)&&(ko(l)&&!K(l)&&(l=we({},l)),t.style=Xn(l))}const i=_e(e)?1:uc(e)?128:Yc(e)?64:de(e)?4:Y(e)?2:0;return re(e,t,n,r,o,i,s,!0)}function Gc(e){return e?ko(e)||fr in e?we({},e):e:null}function tn(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:i}=e,a=t?zc(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ui(a),ref:t&&t.ref?n&&o?K(o)?o.concat(dr(t)):[o,dr(t)]:dr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,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}}function mr(e=" ",t=0){return Te(wn,null,e,t)}function je(e="",t=!1){return t?(te(),Tn(Ut,null,e)):Te(Ut,null,e)}function nt(e){return e==null||typeof e=="boolean"?Te(Ut):K(e)?Te(xe,null,e.slice()):typeof e=="object"?Et(e):Te(wn,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tn(e)}function as(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),as(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(fr in t)?t._ctx=Re:o===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),r&64?(n=16,t=[mr(t)]):n=8);e.children=t,e.shapeFlag|=n}function zc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Bn([t.class,r.class]));else if(o==="style")t.style=Xn([t.style,r.style]);else if($n(o)){const s=t[o],i=r[o];i&&s!==i&&!(K(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function rt(e,t,n,r=null){Ze(e,t,7,[n,r])}const Zc=Jo();let Jc=0;function qc(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||Zc,s={uid:Jc++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new ro(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qo(r,o),emitsOptions:xo(r,o),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:r.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy: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=sc.bind(null,s),e.ce&&e.ce(s),s}let be=null;const On=()=>be||Re;let ls,nn,fi="__VUE_INSTANCE_SETTERS__";(nn=Rr()[fi])||(nn=Rr()[fi]=[]),nn.push(e=>be=e),ls=e=>{nn.length>1?nn.forEach(t=>t(e)):nn[0](e)};const rn=e=>{ls(e),e.scope.on()},$t=()=>{be&&be.scope.off(),ls(null)};function di(e){return e.vnode.shapeFlag&4}let Nn=!1;function Qc(e,t=!1){Nn=t;const{props:n,children:r}=e.vnode,o=di(e);Mc(e,n,o,t),jc(e,r);const s=o?eu(e,t):void 0;return Nn=!1,s}function eu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rr(new Proxy(e.ctx,Oc));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?nu(e):null;rn(e),Jt();const s=vt(r,e,0,[e.props,o]);if(qt(),$t(),Js(s)){if(s.then($t,$t),t)return s.then(i=>{mi(e,i,t)}).catch(i=>{sr(i,e,0)});e.asyncDep=s}else mi(e,s,t)}else pi(e,t)}function mi(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=No(t)),pi(e,n)}let hi;function pi(e,t,n){const r=e.type;if(!e.render){if(!t&&hi&&!r.render){const o=r.template||es(e).template;if(o){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,f=we(we({isCustomElement:s,delimiters:a},i),l);r.render=hi(o,f)}}e.render=r.render||Ge}rn(e),Jt(),Nc(e),qt(),$t()}function tu(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function nu(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return tu(e)},slots:e.slots,emit:e.emit,expose:t}}function hr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(No(rr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yn)return yn[n](e)},has(t,n){return n in t||n in yn}}))}function ru(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function su(e){return Y(e)&&"__vccOpts"in e}const We=(e,t)=>ql(e,t,Nn);function _i(e,t,n){const r=arguments.length;return r===2?de(t)&&!K(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 ou=Symbol.for("v-scx"),iu=()=>Ye(ou),au="3.3.4",lu="http://www.w3.org/2000/svg",jt=typeof document<"u"?document:null,gi=jt&&jt.createElement("template"),cu={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 o=t?jt.createElementNS(lu,e):jt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>jt.createTextNode(e),createComment:e=>jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{gi.innerHTML=r?`<svg>${e}</svg>`:e;const a=gi.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function uu(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function fu(e,t,n){const r=e.style,o=_e(n);if(n&&!o){if(t&&!_e(t))for(const s in t)n[s]==null&&cs(r,s,"");for(const s in n)cs(r,s,n[s])}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const bi=/\s*!important$/;function cs(e,t,n){if(K(n))n.forEach(r=>cs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=du(e,t);bi.test(n)?e.setProperty(Pt(r),n.replace(bi,""),"important"):e[r]=n}}const yi=["Webkit","Moz","ms"],us={};function du(e,t){const n=us[t];if(n)return n;let r=et(t);if(r!=="filter"&&r in e)return us[t]=r;r=Kn(r);for(let o=0;o<yi.length;o++){const s=yi[o]+r;if(s in e)return us[t]=s}return t}const vi="http://www.w3.org/1999/xlink";function mu(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(vi,t.slice(6,t.length)):e.setAttributeNS(vi,t,n);else{const s=hl(t);n==null||s&&!to(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function hu(e,t,n,r,o,s,i){if(t==="innerHTML"||t==="textContent"){r&&i(r,o,s),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const f=a==="OPTION"?e.getAttribute("value"):e.value,d=n??"";f!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=to(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function sn(e,t,n,r){e.addEventListener(t,n,r)}function pu(e,t,n,r){e.removeEventListener(t,n,r)}function _u(e,t,n,r,o=null){const s=e._vei||(e._vei={}),i=s[t];if(r&&i)i.value=r;else{const[a,l]=gu(t);if(r){const f=s[t]=vu(r,o);sn(e,a,f,l)}else i&&(pu(e,a,i,l),s[t]=void 0)}}const Ei=/(?:Once|Passive|Capture)$/;function gu(e){let t;if(Ei.test(e)){t={};let r;for(;r=e.match(Ei);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let fs=0;const bu=Promise.resolve(),yu=()=>fs||(bu.then(()=>fs=0),fs=Date.now());function vu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ze(Eu(r,n.value),t,5,[r])};return n.value=e,n.attached=yu(),n}function Eu(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const wi=/^on[a-z]/,wu=(e,t,n,r,o=!1,s,i,a,l)=>{t==="class"?uu(e,r,o):t==="style"?fu(e,n,r):$n(t)?Or(t)||_u(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Iu(e,t,r,o))?hu(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),mu(e,t,r,o))};function Iu(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&wi.test(t)&&Y(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||wi.test(t)&&_e(n)?!1:t in e}const Ii=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>Vn(t,n):t};function ku(e){e.target.composing=!0}function ki(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Tu={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Ii(o);const s=r||o.props&&o.props.type==="number";sn(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Ar(a)),e._assign(a)}),n&&sn(e,"change",()=>{e.value=e.value.trim()}),t||(sn(e,"compositionstart",ku),sn(e,"compositionend",ki),sn(e,"change",ki))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=Ii(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&Ar(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Lu=["ctrl","shift","alt","meta"],Ou={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)=>Lu.some(n=>e[`${n}Key`]&&!t.includes(n))},Nu=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const s=Ou[t[o]];if(s&&s(n,t))return}return e(n,...r)},Cu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ti=(e,t)=>n=>{if(!("key"in n))return;const r=Pt(n.key);if(t.some(o=>o===r||Cu[o]===r))return e(n)},Pu=we({patchProp:wu},cu);let Li;function Su(){return Li||(Li=Hc(Pu))}const Au=(...e)=>{const t=Su().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Ru(r);if(!o)return;const s=t._component;!Y(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Ru(e){return _e(e)?document.querySelector(e):e}var Fu=!1;/*!
2
- * pinia v2.1.6
1
+ var AwesomeComment=function(){"use strict";function Cs(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o<s.length;o++)n[s[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const le={},zt=[],ze=()=>{},ol=()=>!1,il=/^on[^a-z]/,Wn=e=>il.test(e),Ps=e=>e.startsWith("onUpdate:"),ke=Object.assign,Ss=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},al=Object.prototype.hasOwnProperty,Q=(e,t)=>al.call(e,t),V=Array.isArray,Zt=e=>Hn(e)==="[object Map]",Jr=e=>Hn(e)==="[object Set]",X=e=>typeof e=="function",ge=e=>typeof e=="string",Kn=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",qr=e=>(de(e)||X(e))&&X(e.then)&&X(e.catch),Qr=Object.prototype.toString,Hn=e=>Qr.call(e),ll=e=>Hn(e).slice(8,-1),eo=e=>Hn(e)==="[object Object]",As=e=>ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=Cs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,tt=Yn(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),ul=/\B([A-Z])/g,At=Yn(e=>e.replace(ul,"-$1").toLowerCase()),Xn=Yn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rs=Yn(e=>e?`on${Xn(e)}`:""),Rt=(e,t)=>!Object.is(e,t),Bn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Gn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},xs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let to;const Fs=()=>to||(to=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zn(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=ge(s)?hl(s):zn(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(ge(e)||de(e))return e}const fl=/;(?![^(]*\))/g,dl=/:([^]+)/,ml=/\/\*[^]*?\*\//g;function hl(e){const t={};return e.replace(ml,"").split(fl).forEach(n=>{if(n){const s=n.split(dl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Zn(e){let t="";if(ge(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=Zn(e[n]);s&&(t+=s+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const pl=Cs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function no(e){return!!e||e===""}const be=e=>ge(e)?e:e==null?"":V(e)||de(e)&&(e.toString===Qr||!X(e.toString))?JSON.stringify(e,so,2):String(e),so=(e,t)=>t&&t.__v_isRef?so(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:Jr(t)?{[`Set(${t.size})`]:[...t.values()]}:de(t)&&!V(t)&&!eo(t)?String(t):t;let je;class ro{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}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,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Ms(e){return new ro(e)}function _l(e,t=je){t&&t.active&&t.effects.push(e)}function oo(){return je}function gl(e){je&&je.cleanups.push(e)}const Ds=e=>{const t=new Set(e);return t.w=0,t.n=0,t},io=e=>(e.w&_t)>0,ao=e=>(e.n&_t)>0,bl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=_t},yl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];io(o)&&!ao(o)?o.delete(e):t[n++]=o,o.w&=~_t,o.n&=~_t}t.length=n}},Jn=new WeakMap;let _n=0,_t=1;const Us=30;let Ze;const xt=Symbol(""),$s=Symbol("");class js{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,_l(this,s)}run(){if(!this.active)return this.fn();let t=Ze,n=gt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ze,Ze=this,gt=!0,_t=1<<++_n,_n<=Us?bl(this):lo(this),this.fn()}finally{_n<=Us&&yl(this),_t=1<<--_n,Ze=this.parent,gt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ze===this?this.deferStop=!0:this.active&&(lo(this),this.onStop&&this.onStop(),this.active=!1)}}function lo(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let gt=!0;const co=[];function Jt(){co.push(gt),gt=!1}function qt(){const e=co.pop();gt=e===void 0?!0:e}function Re(e,t,n){if(gt&&Ze){let s=Jn.get(e);s||Jn.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Ds()),uo(o)}}function uo(e,t){let n=!1;_n<=Us?ao(e)||(e.n|=_t,n=!io(e)):n=!e.has(Ze),n&&(e.add(Ze),Ze.deps.push(e))}function ft(e,t,n,s,o,r){const i=Jn.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&V(e)){const l=Number(s);i.forEach((f,d)=>{(d==="length"||!Kn(d)&&d>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":V(e)?As(n)&&a.push(i.get("length")):(a.push(i.get(xt)),Zt(e)&&a.push(i.get($s)));break;case"delete":V(e)||(a.push(i.get(xt)),Zt(e)&&a.push(i.get($s)));break;case"set":Zt(e)&&a.push(i.get(xt));break}if(a.length===1)a[0]&&Ws(a[0]);else{const l=[];for(const f of a)f&&l.push(...f);Ws(Ds(l))}}function Ws(e,t){const n=V(e)?e:[...e];for(const s of n)s.computed&&fo(s);for(const s of n)s.computed||fo(s)}function fo(e,t){(e!==Ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function vl(e,t){var n;return(n=Jn.get(e))==null?void 0:n.get(t)}const El=Cs("__proto__,__v_isRef,__isVue"),mo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Kn)),ho=wl();function wl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ee(this);for(let r=0,i=this.length;r<i;r++)Re(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(ee)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Jt();const s=ee(this)[t].apply(this,n);return qt(),s}}),e}function Il(e){const t=ee(this);return Re(t,"has",e),t.hasOwnProperty(e)}class po{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const o=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw"&&s===(o?r?Ml:Io:r?wo:Eo).get(t))return t;const i=V(t);if(!o){if(i&&Q(ho,n))return Reflect.get(ho,n,s);if(n==="hasOwnProperty")return Il}const a=Reflect.get(t,n,s);return(Kn(n)?mo.has(n):El(n))||(o||Re(t,"get",n),r)?a:he(a)?i&&As(n)?a:a.value:de(a)?o?ko(a):rs(a):a}}class _o extends po{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(Qt(r)&&he(r)&&!he(s))return!1;if(!this._shallow&&(!os(s)&&!Qt(s)&&(r=ee(r),s=ee(s)),!V(t)&&he(r)&&!he(s)))return r.value=s,!0;const i=V(t)&&As(n)?Number(n)<t.length:Q(t,n),a=Reflect.set(t,n,s,o);return t===ee(o)&&(i?Rt(s,r)&&ft(t,"set",n,s):ft(t,"add",n,s)),a}deleteProperty(t,n){const s=Q(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&ft(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!Kn(n)||!mo.has(n))&&Re(t,"has",n),s}ownKeys(t){return Re(t,"iterate",V(t)?"length":xt),Reflect.ownKeys(t)}}class kl extends po{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Tl=new _o,Ll=new kl,Ol=new _o(!0),Ks=e=>e,qn=e=>Reflect.getPrototypeOf(e);function Qn(e,t,n=!1,s=!1){e=e.__v_raw;const o=ee(e),r=ee(t);n||(Rt(t,r)&&Re(o,"get",t),Re(o,"get",r));const{has:i}=qn(o),a=s?Ks:n?Ys:gn;if(i.call(o,t))return a(e.get(t));if(i.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function es(e,t=!1){const n=this.__v_raw,s=ee(n),o=ee(e);return t||(Rt(e,o)&&Re(s,"has",e),Re(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function ts(e,t=!1){return e=e.__v_raw,!t&&Re(ee(e),"iterate",xt),Reflect.get(e,"size",e)}function go(e){e=ee(e);const t=ee(this);return qn(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function bo(e,t){t=ee(t);const n=ee(this),{has:s,get:o}=qn(n);let r=s.call(n,e);r||(e=ee(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Rt(t,i)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function yo(e){const t=ee(this),{has:n,get:s}=qn(t);let o=n.call(t,e);o||(e=ee(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&ft(t,"delete",e,void 0),r}function vo(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&ft(e,"clear",void 0,void 0),n}function ns(e,t){return function(s,o){const r=this,i=r.__v_raw,a=ee(i),l=t?Ks:e?Ys:gn;return!e&&Re(a,"iterate",xt),i.forEach((f,d)=>s.call(o,l(f),l(d),r))}}function ss(e,t,n){return function(...s){const o=this.__v_raw,r=ee(o),i=Zt(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,f=o[e](...s),d=n?Ks:t?Ys:gn;return!t&&Re(r,"iterate",l?$s:xt),{next(){const{value:m,done:h}=f.next();return h?{value:m,done:h}:{value:a?[d(m[0]),d(m[1])]:d(m),done:h}},[Symbol.iterator](){return this}}}}function bt(e){return function(...t){return e==="delete"?!1:this}}function Nl(){const e={get(r){return Qn(this,r)},get size(){return ts(this)},has:es,add:go,set:bo,delete:yo,clear:vo,forEach:ns(!1,!1)},t={get(r){return Qn(this,r,!1,!0)},get size(){return ts(this)},has:es,add:go,set:bo,delete:yo,clear:vo,forEach:ns(!1,!0)},n={get(r){return Qn(this,r,!0)},get size(){return ts(this,!0)},has(r){return es.call(this,r,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:ns(!0,!1)},s={get(r){return Qn(this,r,!0,!0)},get size(){return ts(this,!0)},has(r){return es.call(this,r,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:ns(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ss(r,!1,!1),n[r]=ss(r,!0,!1),t[r]=ss(r,!1,!0),s[r]=ss(r,!0,!0)}),[e,n,t,s]}const[Cl,Pl,Sl,Al]=Nl();function Hs(e,t){const n=t?e?Al:Sl:e?Pl:Cl;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Q(n,o)&&o in s?n:s,o,r)}const Rl={get:Hs(!1,!1)},xl={get:Hs(!1,!0)},Fl={get:Hs(!0,!1)},Eo=new WeakMap,wo=new WeakMap,Io=new WeakMap,Ml=new WeakMap;function Dl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ul(e){return e.__v_skip||!Object.isExtensible(e)?0:Dl(ll(e))}function rs(e){return Qt(e)?e:Vs(e,!1,Tl,Rl,Eo)}function $l(e){return Vs(e,!1,Ol,xl,wo)}function ko(e){return Vs(e,!0,Ll,Fl,Io)}function Vs(e,t,n,s,o){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Ul(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function yt(e){return Qt(e)?yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function os(e){return!!(e&&e.__v_isShallow)}function To(e){return yt(e)||Qt(e)}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function is(e){return Gn(e,"__v_skip",!0),e}const gn=e=>de(e)?rs(e):e,Ys=e=>de(e)?ko(e):e;function Lo(e){gt&&Ze&&(e=ee(e),uo(e.dep||(e.dep=Ds())))}function Oo(e,t){e=ee(e);const n=e.dep;n&&Ws(n)}function he(e){return!!(e&&e.__v_isRef===!0)}function q(e){return No(e,!1)}function jl(e){return No(e,!0)}function No(e,t){return he(e)?e:new Wl(e,t)}class Wl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:gn(t)}get value(){return Lo(this),this._value}set value(t){const n=this.__v_isShallow||os(t)||Qt(t);t=n?t:ee(t),Rt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:gn(t),Oo(this))}}function B(e){return he(e)?e.value:e}const Kl={get:(e,t,n)=>B(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return he(o)&&!he(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Co(e){return yt(e)?e:new Proxy(e,Kl)}function Hl(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=Yl(e,n);return t}class Vl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return vl(ee(this._object),this._key)}}function Yl(e,t,n){const s=e[t];return he(s)?s:new Vl(e,t,n)}class Xl{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new js(t,()=>{this._dirty||(this._dirty=!0,Oo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=ee(this);return Lo(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Bl(e,t,n=!1){let s,o;const r=X(e);return r?(s=e,o=ze):(s=e.get,o=e.set),new Xl(s,o,r||!o,n)}function Jm(e,...t){}function vt(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){as(r,t,n)}return o}function Je(e,t,n,s){if(X(e)){const r=vt(e,t,n,s);return r&&qr(r)&&r.catch(i=>{as(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Je(e[r],t,n,s));return o}function as(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=n;for(;r;){const f=r.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){vt(l,null,10,[e,i,a]);return}}Gl(e,n,o,s)}function Gl(e,t,n,s=!0){console.error(e)}let bn=!1,Xs=!1;const Le=[];let nt=0;const en=[];let dt=null,Ft=0;const Po=Promise.resolve();let Bs=null;function So(e){const t=Bs||Po;return e?t.then(this?e.bind(this):e):t}function zl(e){let t=nt+1,n=Le.length;for(;t<n;){const s=t+n>>>1,o=Le[s],r=yn(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function Gs(e){(!Le.length||!Le.includes(e,bn&&e.allowRecurse?nt+1:nt))&&(e.id==null?Le.push(e):Le.splice(zl(e.id),0,e),Ao())}function Ao(){!bn&&!Xs&&(Xs=!0,Bs=Po.then(Fo))}function Zl(e){const t=Le.indexOf(e);t>nt&&Le.splice(t,1)}function Jl(e){V(e)?en.push(...e):(!dt||!dt.includes(e,e.allowRecurse?Ft+1:Ft))&&en.push(e),Ao()}function Ro(e,t=bn?nt+1:0){for(;t<Le.length;t++){const n=Le[t];n&&n.pre&&(Le.splice(t,1),t--,n())}}function xo(e){if(en.length){const t=[...new Set(en)];if(en.length=0,dt){dt.push(...t);return}for(dt=t,dt.sort((n,s)=>yn(n)-yn(s)),Ft=0;Ft<dt.length;Ft++)dt[Ft]();dt=null,Ft=0}}const yn=e=>e.id==null?1/0:e.id,ql=(e,t)=>{const n=yn(e)-yn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fo(e){Xs=!1,bn=!0,Le.sort(ql);const t=ze;try{for(nt=0;nt<Le.length;nt++){const n=Le[nt];n&&n.active!==!1&&vt(n,null,14)}}finally{nt=0,Le.length=0,xo(),bn=!1,Bs=null,(Le.length||en.length)&&Fo()}}function Ql(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||le;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:m,trim:h}=s[d]||le;h&&(o=n.map(b=>ge(b)?b.trim():b)),m&&(o=n.map(xs))}let a,l=s[a=Rs(t)]||s[a=Rs(tt(t))];!l&&r&&(l=s[a=Rs(At(t))]),l&&Je(l,e,6,o);const f=s[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Je(f,e,6,o)}}function Mo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!X(e)){const l=f=>{const d=Mo(f,t,!0);d&&(a=!0,ke(i,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(de(e)&&s.set(e,null),null):(V(r)?r.forEach(l=>i[l]=null):ke(i,r),de(e)&&s.set(e,i),i)}function ls(e,t){return!e||!Wn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,At(t))||Q(e,t))}let xe=null,Do=null;function cs(e){const t=xe;return xe=e,Do=e&&e.type.__scopeId||null,t}function ec(e,t=xe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&ci(-1);const r=cs(t);let i;try{i=e(...o)}finally{cs(r),s._d&&ci(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function qm(){}function zs(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:f,render:d,renderCache:m,data:h,setupState:b,ctx:I,inheritAttrs:k}=e;let O,g;const y=cs(e);try{if(n.shapeFlag&4){const w=o||s;O=st(d.call(w,w,m,r,b,h,I)),g=l}else{const w=t;O=st(w.length>1?w(r,{attrs:l,slots:a,emit:f}):w(r,null)),g=t.props?l:tc(l)}}catch(w){kn.length=0,as(w,e,1),O=Oe(Wt)}let L=O;if(g&&k!==!1){const w=Object.keys(g),{shapeFlag:P}=L;w.length&&P&7&&(i&&w.some(Ps)&&(g=nc(g,i)),L=tn(L,g))}return n.dirs&&(L=tn(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),O=L,cs(y),O}const tc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wn(n))&&((t||(t={}))[n]=e[n]);return t},nc=(e,t)=>{const n={};for(const s in e)(!Ps(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function sc(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Uo(s,i,f):!!i;if(l&8){const d=t.dynamicProps;for(let m=0;m<d.length;m++){const h=d[m];if(i[h]!==s[h]&&!ls(f,h))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?Uo(s,i,f):!0:!!i;return!1}function Uo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!ls(n,r))return!0}return!1}function rc({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const oc=e=>e.__isSuspense;function ic(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Jl(e)}const us={};function Mt(e,t,n){return $o(e,t,n)}function $o(e,t,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=le){var a;const l=oo()===((a=ye)==null?void 0:a.scope)?ye:null;let f,d=!1,m=!1;if(he(e)?(f=()=>e.value,d=os(e)):yt(e)?(f=()=>e,s=!0):V(e)?(m=!0,d=e.some(w=>yt(w)||os(w)),f=()=>e.map(w=>{if(he(w))return w.value;if(yt(w))return Dt(w);if(X(w))return vt(w,l,2)})):X(e)?t?f=()=>vt(e,l,2):f=()=>{if(!(l&&l.isUnmounted))return h&&h(),Je(e,l,3,[b])}:f=ze,t&&s){const w=f;f=()=>Dt(w())}let h,b=w=>{h=y.onStop=()=>{vt(w,l,4)}},I;if(Cn)if(b=ze,t?n&&Je(t,l,3,[f(),m?[]:void 0,b]):f(),o==="sync"){const w=nu();I=w.__watcherHandles||(w.__watcherHandles=[])}else return ze;let k=m?new Array(e.length).fill(us):us;const O=()=>{if(y.active)if(t){const w=y.run();(s||d||(m?w.some((P,F)=>Rt(P,k[F])):Rt(w,k)))&&(h&&h(),Je(t,l,3,[w,k===us?void 0:m&&k[0]===us?[]:k,b]),k=w)}else y.run()};O.allowRecurse=!!t;let g;o==="sync"?g=O:o==="post"?g=()=>Fe(O,l&&l.suspense):(O.pre=!0,l&&(O.id=l.uid),g=()=>Gs(O));const y=new js(f,g);t?n?O():k=y.run():o==="post"?Fe(y.run.bind(y),l&&l.suspense):y.run();const L=()=>{y.stop(),l&&l.scope&&Ss(l.scope.effects,y)};return I&&I.push(L),L}function ac(e,t,n){const s=this.proxy,o=ge(e)?e.includes(".")?jo(s,e):()=>s[e]:e.bind(s,s);let r;X(t)?r=t:(r=t.handler,n=t);const i=ye;sn(this);const a=$o(o,r.bind(s),n);return i?sn(i):Kt(),a}function jo(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Dt(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),he(e))Dt(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)Dt(e[n],t);else if(Jr(e)||Zt(e))e.forEach(n=>{Dt(n,t)});else if(eo(e))for(const n in e)Dt(e[n],t);return e}function lc(e,t){const n=xe;if(n===null)return e;const s=gs(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,l,f=le]=t[r];i&&(X(i)&&(i={mounted:i,updated:i}),i.deep&&Dt(a),o.push({dir:i,instance:s,value:a,oldValue:void 0,arg:l,modifiers:f}))}return e}function Ut(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(Jt(),Je(l,n,8,[e.el,a,e,t]),qt())}}/*! #__NO_SIDE_EFFECTS__ */function $t(e,t){return X(e)?(()=>ke({name:e.name},t,{setup:e}))():e}const fs=e=>!!e.type.__asyncLoader,Wo=e=>e.type.__isKeepAlive;function cc(e,t){Ko(e,"a",t)}function uc(e,t){Ko(e,"da",t)}function Ko(e,t,n=ye){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ds(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Wo(o.parent.vnode)&&fc(s,t,n,o),o=o.parent}}function fc(e,t,n,s){const o=ds(t,e,s,!0);Js(()=>{Ss(s[t],o)},n)}function ds(e,t,n=ye,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Jt(),sn(n);const a=Je(t,n,e,i);return Kt(),qt(),a});return s?o.unshift(r):o.push(r),r}}const mt=e=>(t,n=ye)=>(!Cn||e==="sp")&&ds(e,(...s)=>t(...s),n),Ho=mt("bm"),Zs=mt("m"),dc=mt("bu"),mc=mt("u"),hc=mt("bum"),Js=mt("um"),pc=mt("sp"),_c=mt("rtg"),gc=mt("rtc");function bc(e,t=ye){ds("ec",e,t)}const Vo="components";function yc(e,t){return Ec(Vo,e,!0,t)||e}const vc=Symbol.for("v-ndc");function Ec(e,t,n=!0,s=!1){const o=xe||ye;if(o){const r=o.type;if(e===Vo){const a=Qc(r,!1);if(a&&(a===t||a===tt(t)||a===Xn(tt(t))))return r}const i=Yo(o[e]||r[e],t)||Yo(o.appContext[e],t);return!i&&s?r:i}}function Yo(e,t){return e&&(e[t]||e[tt(t)]||e[Xn(tt(t))])}function Xo(e,t,n,s){let o;const r=n&&n[s];if(V(e)||ge(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(de(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const f=i[a];o[a]=t(e[f],f,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}const qs=e=>e?mi(e)?gs(e)||e.proxy:qs(e.parent):null,vn=ke(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=>qs(e.parent),$root:e=>qs(e.root),$emit:e=>e.emit,$options:e=>tr(e),$forceUpdate:e=>e.f||(e.f=()=>Gs(e.update)),$nextTick:e=>e.n||(e.n=So.bind(e.proxy)),$watch:e=>ac.bind(e)}),Qs=(e,t)=>e!==le&&!e.__isScriptSetup&&Q(e,t),wc={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const b=i[t];if(b!==void 0)switch(b){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Qs(s,t))return i[t]=1,s[t];if(o!==le&&Q(o,t))return i[t]=2,o[t];if((f=e.propsOptions[0])&&Q(f,t))return i[t]=3,r[t];if(n!==le&&Q(n,t))return i[t]=4,n[t];er&&(i[t]=0)}}const d=vn[t];let m,h;if(d)return t==="$attrs"&&Re(e,"get",t),d(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==le&&Q(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,Q(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Qs(o,t)?(o[t]=n,!0):s!==le&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||e!==le&&Q(e,i)||Qs(t,i)||(a=r[0])&&Q(a,i)||Q(s,i)||Q(vn,i)||Q(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bo(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let er=!0;function Ic(e){const t=tr(e),n=e.proxy,s=e.ctx;er=!1,t.beforeCreate&&Go(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:f,created:d,beforeMount:m,mounted:h,beforeUpdate:b,updated:I,activated:k,deactivated:O,beforeDestroy:g,beforeUnmount:y,destroyed:L,unmounted:w,render:P,renderTracked:F,renderTriggered:C,errorCaptured:D,serverPrefetch:$,expose:Z,inheritAttrs:ae,components:ie,directives:we,filters:Be}=t;if(f&&kc(f,s,null),i)for(const oe in i){const te=i[oe];X(te)&&(s[oe]=te.bind(n))}if(o){const oe=o.call(n,n);de(oe)&&(e.data=rs(oe))}if(er=!0,r)for(const oe in r){const te=r[oe],_e=X(te)?te.bind(n,n):X(te.get)?te.get.bind(n,n):ze,Qe=!X(te)&&X(te.set)?te.set.bind(n):ze,He=Ke({get:_e,set:Qe});Object.defineProperty(s,oe,{enumerable:!0,configurable:!0,get:()=>He.value,set:Ce=>He.value=Ce})}if(a)for(const oe in a)zo(a[oe],s,n,oe);if(l){const oe=X(l)?l.call(n):l;Reflect.ownKeys(oe).forEach(te=>{Pc(te,oe[te])})}d&&Go(d,e,"c");function G(oe,te){V(te)?te.forEach(_e=>oe(_e.bind(n))):te&&oe(te.bind(n))}if(G(Ho,m),G(Zs,h),G(dc,b),G(mc,I),G(cc,k),G(uc,O),G(bc,D),G(gc,F),G(_c,C),G(hc,y),G(Js,w),G(pc,$),V(Z))if(Z.length){const oe=e.exposed||(e.exposed={});Z.forEach(te=>{Object.defineProperty(oe,te,{get:()=>n[te],set:_e=>n[te]=_e})})}else e.exposed||(e.exposed={});P&&e.render===ze&&(e.render=P),ae!=null&&(e.inheritAttrs=ae),ie&&(e.components=ie),we&&(e.directives=we)}function kc(e,t,n=ze){V(e)&&(e=nr(e));for(const s in e){const o=e[s];let r;de(o)?"default"in o?r=Ye(o.from||s,o.default,!0):r=Ye(o.from||s):r=Ye(o),he(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Go(e,t,n){Je(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function zo(e,t,n,s){const o=s.includes(".")?jo(n,s):()=>n[s];if(ge(e)){const r=t[e];X(r)&&Mt(o,r)}else if(X(e))Mt(o,e.bind(n));else if(de(e))if(V(e))e.forEach(r=>zo(r,t,n,s));else{const r=X(e.handler)?e.handler.bind(n):t[e.handler];X(r)&&Mt(o,r,e)}}function tr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(f=>ms(l,f,i,!0)),ms(l,t,i)),de(t)&&r.set(t,l),l}function ms(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&ms(e,r,n,!0),o&&o.forEach(i=>ms(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Tc[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Tc={data:Zo,props:Jo,emits:Jo,methods:En,computed:En,beforeCreate:Pe,created:Pe,beforeMount:Pe,mounted:Pe,beforeUpdate:Pe,updated:Pe,beforeDestroy:Pe,beforeUnmount:Pe,destroyed:Pe,unmounted:Pe,activated:Pe,deactivated:Pe,errorCaptured:Pe,serverPrefetch:Pe,components:En,directives:En,watch:Oc,provide:Zo,inject:Lc};function Zo(e,t){return t?e?function(){return ke(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Lc(e,t){return En(nr(e),nr(t))}function nr(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Pe(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?ke(Object.create(null),e,t):t}function Jo(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:ke(Object.create(null),Bo(e),Bo(t??{})):t}function Oc(e,t){if(!e)return t;if(!t)return e;const n=ke(Object.create(null),e);for(const s in t)n[s]=Pe(e[s],t[s]);return n}function qo(){return{app:null,config:{isNativeTag:ol,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 Nc=0;function Cc(e,t){return function(s,o=null){X(s)||(s=ke({},s)),o!=null&&!de(o)&&(o=null);const r=qo(),i=new WeakSet;let a=!1;const l=r.app={_uid:Nc++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:su,get config(){return r.config},set config(f){},use(f,...d){return i.has(f)||(f&&X(f.install)?(i.add(f),f.install(l,...d)):X(f)&&(i.add(f),f(l,...d))),l},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),l},component(f,d){return d?(r.components[f]=d,l):r.components[f]},directive(f,d){return d?(r.directives[f]=d,l):r.directives[f]},mount(f,d,m){if(!a){const h=Oe(s,o);return h.appContext=r,d&&t?t(h,f):e(h,f,m),a=!0,l._container=f,f.__vue_app__=l,gs(h.component)||h.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(f,d){return r.provides[f]=d,l},runWithContext(f){wn=l;try{return f()}finally{wn=null}}};return l}}let wn=null;function Pc(e,t){if(ye){let n=ye.provides;const s=ye.parent&&ye.parent.provides;s===n&&(n=ye.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=ye||xe;if(s||wn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:wn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&X(t)?t.call(s&&s.proxy):t}}function Sc(){return!!(ye||xe||wn)}function Ac(e,t,n,s=!1){const o={},r={};Gn(r,hs,1),e.propsDefaults=Object.create(null),Qo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:$l(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Rc(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=ee(o),[l]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let m=0;m<d.length;m++){let h=d[m];if(ls(e.emitsOptions,h))continue;const b=t[h];if(l)if(Q(r,h))b!==r[h]&&(r[h]=b,f=!0);else{const I=tt(h);o[I]=sr(l,a,I,b,e,!1)}else b!==r[h]&&(r[h]=b,f=!0)}}}else{Qo(e,t,o,r)&&(f=!0);let d;for(const m in a)(!t||!Q(t,m)&&((d=At(m))===m||!Q(t,d)))&&(l?n&&(n[m]!==void 0||n[d]!==void 0)&&(o[m]=sr(l,a,m,void 0,e,!0)):delete o[m]);if(r!==a)for(const m in r)(!t||!Q(t,m))&&(delete r[m],f=!0)}f&&ft(e,"set","$attrs")}function Qo(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Vn(l))continue;const f=t[l];let d;o&&Q(o,d=tt(l))?!r||!r.includes(d)?n[d]=f:(a||(a={}))[d]=f:ls(e.emitsOptions,l)||(!(l in s)||f!==s[l])&&(s[l]=f,i=!0)}if(r){const l=ee(n),f=a||le;for(let d=0;d<r.length;d++){const m=r[d];n[m]=sr(o,l,m,f[m],e,!Q(f,m))}}return i}function sr(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=Q(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&X(l)){const{propsDefaults:f}=o;n in f?s=f[n]:(sn(o),s=f[n]=l.call(null,t),Kt())}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===At(n))&&(s=!0))}return s}function ei(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!X(e)){const d=m=>{l=!0;const[h,b]=ei(m,t,!0);ke(i,h),b&&a.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!l)return de(e)&&s.set(e,zt),zt;if(V(r))for(let d=0;d<r.length;d++){const m=tt(r[d]);ti(m)&&(i[m]=le)}else if(r)for(const d in r){const m=tt(d);if(ti(m)){const h=r[d],b=i[m]=V(h)||X(h)?{type:h}:ke({},h);if(b){const I=ri(Boolean,b.type),k=ri(String,b.type);b[0]=I>-1,b[1]=k<0||I<k,(I>-1||Q(b,"default"))&&a.push(m)}}}const f=[i,a];return de(e)&&s.set(e,f),f}function ti(e){return e[0]!=="$"}function ni(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function si(e,t){return ni(e)===ni(t)}function ri(e,t){return V(t)?t.findIndex(n=>si(n,e)):X(t)&&si(t,e)?0:-1}const oi=e=>e[0]==="_"||e==="$stable",rr=e=>V(e)?e.map(st):[st(e)],xc=(e,t,n)=>{if(t._n)return t;const s=ec((...o)=>rr(t(...o)),n);return s._c=!1,s},ii=(e,t,n)=>{const s=e._ctx;for(const o in e){if(oi(o))continue;const r=e[o];if(X(r))t[o]=xc(o,r,s);else if(r!=null){const i=rr(r);t[o]=()=>i}}},ai=(e,t)=>{const n=rr(t);e.slots.default=()=>n},Fc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ee(t),Gn(t,"_",n)):ii(t,e.slots={})}else e.slots={},t&&ai(e,t);Gn(e.slots,hs,1)},Mc=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=le;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(ke(o,t),!n&&a===1&&delete o._):(r=!t.$stable,ii(t,o)),i=t}else t&&(ai(e,t),i={default:1});if(r)for(const a in o)!oi(a)&&i[a]==null&&delete o[a]};function or(e,t,n,s,o=!1){if(V(e)){e.forEach((h,b)=>or(h,t&&(V(t)?t[b]:t),n,s,o));return}if(fs(s)&&!o)return;const r=s.shapeFlag&4?gs(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,f=t&&t.r,d=a.refs===le?a.refs={}:a.refs,m=a.setupState;if(f!=null&&f!==l&&(ge(f)?(d[f]=null,Q(m,f)&&(m[f]=null)):he(f)&&(f.value=null)),X(l))vt(l,a,12,[i,d]);else{const h=ge(l),b=he(l);if(h||b){const I=()=>{if(e.f){const k=h?Q(m,l)?m[l]:d[l]:l.value;o?V(k)&&Ss(k,r):V(k)?k.includes(r)||k.push(r):h?(d[l]=[r],Q(m,l)&&(m[l]=d[l])):(l.value=[r],e.k&&(d[e.k]=l.value))}else h?(d[l]=i,Q(m,l)&&(m[l]=i)):b&&(l.value=i,e.k&&(d[e.k]=i))};i?(I.id=-1,Fe(I,n)):I()}}}const Fe=ic;function Dc(e){return Uc(e)}function Uc(e,t){const n=Fs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:f,setElementText:d,parentNode:m,nextSibling:h,setScopeId:b=ze,insertStaticContent:I}=e,k=(_,c,u,p=null,v=null,N=null,S=!1,R=null,x=!!c.dynamicChildren)=>{if(_===c)return;_&&!On(_,c)&&(p=lt(_),Ce(_,v,N,!0),_=null),c.patchFlag===-2&&(x=!1,c.dynamicChildren=null);const{type:A,ref:W,shapeFlag:M}=c;switch(A){case In:O(_,c,u,p);break;case Wt:g(_,c,u,p);break;case ir:_==null&&y(c,u,p,S);break;case Me:ie(_,c,u,p,v,N,S,R,x);break;default:M&1?P(_,c,u,p,v,N,S,R,x):M&6?we(_,c,u,p,v,N,S,R,x):(M&64||M&128)&&A.process(_,c,u,p,v,N,S,R,x,$e)}W!=null&&v&&or(W,_&&_.ref,N,c||_,!c)},O=(_,c,u,p)=>{if(_==null)s(c.el=a(c.children),u,p);else{const v=c.el=_.el;c.children!==_.children&&f(v,c.children)}},g=(_,c,u,p)=>{_==null?s(c.el=l(c.children||""),u,p):c.el=_.el},y=(_,c,u,p)=>{[_.el,_.anchor]=I(_.children,c,u,p,_.el,_.anchor)},L=({el:_,anchor:c},u,p)=>{let v;for(;_&&_!==c;)v=h(_),s(_,u,p),_=v;s(c,u,p)},w=({el:_,anchor:c})=>{let u;for(;_&&_!==c;)u=h(_),o(_),_=u;o(c)},P=(_,c,u,p,v,N,S,R,x)=>{S=S||c.type==="svg",_==null?F(c,u,p,v,N,S,R,x):$(_,c,v,N,S,R,x)},F=(_,c,u,p,v,N,S,R)=>{let x,A;const{type:W,props:M,shapeFlag:E,transition:T,dirs:j}=_;if(x=_.el=i(_.type,N,M&&M.is,M),E&8?d(x,_.children):E&16&&D(_.children,x,null,p,v,N&&W!=="foreignObject",S,R),j&&Ut(_,null,p,"created"),C(x,_,_.scopeId,S,p),M){for(const J in M)J!=="value"&&!Vn(J)&&r(x,J,null,M[J],N,_.children,p,v,Ae);"value"in M&&r(x,"value",null,M.value),(A=M.onVnodeBeforeMount)&&rt(A,p,_)}j&&Ut(_,null,p,"beforeMount");const H=$c(v,T);H&&T.beforeEnter(x),s(x,c,u),((A=M&&M.onVnodeMounted)||H||j)&&Fe(()=>{A&&rt(A,p,_),H&&T.enter(x),j&&Ut(_,null,p,"mounted")},v)},C=(_,c,u,p,v)=>{if(u&&b(_,u),p)for(let N=0;N<p.length;N++)b(_,p[N]);if(v){let N=v.subTree;if(c===N){const S=v.vnode;C(_,S,S.scopeId,S.slotScopeIds,v.parent)}}},D=(_,c,u,p,v,N,S,R,x=0)=>{for(let A=x;A<_.length;A++){const W=_[A]=R?Et(_[A]):st(_[A]);k(null,W,c,u,p,v,N,S,R)}},$=(_,c,u,p,v,N,S)=>{const R=c.el=_.el;let{patchFlag:x,dynamicChildren:A,dirs:W}=c;x|=_.patchFlag&16;const M=_.props||le,E=c.props||le;let T;u&&jt(u,!1),(T=E.onVnodeBeforeUpdate)&&rt(T,u,c,_),W&&Ut(c,_,u,"beforeUpdate"),u&&jt(u,!0);const j=v&&c.type!=="foreignObject";if(A?Z(_.dynamicChildren,A,R,u,p,j,N):S||te(_,c,R,null,u,p,j,N,!1),x>0){if(x&16)ae(R,c,M,E,u,p,v);else if(x&2&&M.class!==E.class&&r(R,"class",null,E.class,v),x&4&&r(R,"style",M.style,E.style,v),x&8){const H=c.dynamicProps;for(let J=0;J<H.length;J++){const fe=H[J],Ie=M[fe],St=E[fe];(St!==Ie||fe==="value")&&r(R,fe,Ie,St,v,_.children,u,p,Ae)}}x&1&&_.children!==c.children&&d(R,c.children)}else!S&&A==null&&ae(R,c,M,E,u,p,v);((T=E.onVnodeUpdated)||W)&&Fe(()=>{T&&rt(T,u,c,_),W&&Ut(c,_,u,"updated")},p)},Z=(_,c,u,p,v,N,S)=>{for(let R=0;R<c.length;R++){const x=_[R],A=c[R],W=x.el&&(x.type===Me||!On(x,A)||x.shapeFlag&70)?m(x.el):u;k(x,A,W,null,p,v,N,S,!0)}},ae=(_,c,u,p,v,N,S)=>{if(u!==p){if(u!==le)for(const R in u)!Vn(R)&&!(R in p)&&r(_,R,u[R],null,S,c.children,v,N,Ae);for(const R in p){if(Vn(R))continue;const x=p[R],A=u[R];x!==A&&R!=="value"&&r(_,R,A,x,S,c.children,v,N,Ae)}"value"in p&&r(_,"value",u.value,p.value)}},ie=(_,c,u,p,v,N,S,R,x)=>{const A=c.el=_?_.el:a(""),W=c.anchor=_?_.anchor:a("");let{patchFlag:M,dynamicChildren:E,slotScopeIds:T}=c;T&&(R=R?R.concat(T):T),_==null?(s(A,u,p),s(W,u,p),D(c.children,u,W,v,N,S,R,x)):M>0&&M&64&&E&&_.dynamicChildren?(Z(_.dynamicChildren,E,u,v,N,S,R),(c.key!=null||v&&c===v.subTree)&&li(_,c,!0)):te(_,c,u,W,v,N,S,R,x)},we=(_,c,u,p,v,N,S,R,x)=>{c.slotScopeIds=R,_==null?c.shapeFlag&512?v.ctx.activate(c,u,p,S,x):Be(c,u,p,v,N,S,x):Ue(_,c,x)},Be=(_,c,u,p,v,N,S)=>{const R=_.component=Gc(_,p,v);if(Wo(_)&&(R.ctx.renderer=$e),zc(R),R.asyncDep){if(v&&v.registerDep(R,G),!_.el){const x=R.subTree=Oe(Wt);g(null,x,c,u)}return}G(R,_,c,u,v,N,S)},Ue=(_,c,u)=>{const p=c.component=_.component;if(sc(_,c,u))if(p.asyncDep&&!p.asyncResolved){oe(p,c,u);return}else p.next=c,Zl(p.update),p.update();else c.el=_.el,p.vnode=c},G=(_,c,u,p,v,N,S)=>{const R=()=>{if(_.isMounted){let{next:W,bu:M,u:E,parent:T,vnode:j}=_,H=W,J;jt(_,!1),W?(W.el=j.el,oe(_,W,S)):W=j,M&&Bn(M),(J=W.props&&W.props.onVnodeBeforeUpdate)&&rt(J,T,W,j),jt(_,!0);const fe=zs(_),Ie=_.subTree;_.subTree=fe,k(Ie,fe,m(Ie.el),lt(Ie),_,v,N),W.el=fe.el,H===null&&rc(_,fe.el),E&&Fe(E,v),(J=W.props&&W.props.onVnodeUpdated)&&Fe(()=>rt(J,T,W,j),v)}else{let W;const{el:M,props:E}=c,{bm:T,m:j,parent:H}=_,J=fs(c);if(jt(_,!1),T&&Bn(T),!J&&(W=E&&E.onVnodeBeforeMount)&&rt(W,H,c),jt(_,!0),M&&et){const fe=()=>{_.subTree=zs(_),et(M,_.subTree,_,v,null)};J?c.type.__asyncLoader().then(()=>!_.isUnmounted&&fe()):fe()}else{const fe=_.subTree=zs(_);k(null,fe,u,p,_,v,N),c.el=fe.el}if(j&&Fe(j,v),!J&&(W=E&&E.onVnodeMounted)){const fe=c;Fe(()=>rt(W,H,fe),v)}(c.shapeFlag&256||H&&fs(H.vnode)&&H.vnode.shapeFlag&256)&&_.a&&Fe(_.a,v),_.isMounted=!0,c=u=p=null}},x=_.effect=new js(R,()=>Gs(A),_.scope),A=_.update=()=>x.run();A.id=_.uid,jt(_,!0),A()},oe=(_,c,u)=>{c.component=_;const p=_.vnode.props;_.vnode=c,_.next=null,Rc(_,c.props,p,u),Mc(_,c.children,u),Jt(),Ro(),qt()},te=(_,c,u,p,v,N,S,R,x=!1)=>{const A=_&&_.children,W=_?_.shapeFlag:0,M=c.children,{patchFlag:E,shapeFlag:T}=c;if(E>0){if(E&128){Qe(A,M,u,p,v,N,S,R,x);return}else if(E&256){_e(A,M,u,p,v,N,S,R,x);return}}T&8?(W&16&&Ae(A,v,N),M!==A&&d(u,M)):W&16?T&16?Qe(A,M,u,p,v,N,S,R,x):Ae(A,v,N,!0):(W&8&&d(u,""),T&16&&D(M,u,p,v,N,S,R,x))},_e=(_,c,u,p,v,N,S,R,x)=>{_=_||zt,c=c||zt;const A=_.length,W=c.length,M=Math.min(A,W);let E;for(E=0;E<M;E++){const T=c[E]=x?Et(c[E]):st(c[E]);k(_[E],T,u,null,v,N,S,R,x)}A>W?Ae(_,v,N,!0,!1,M):D(c,u,p,v,N,S,R,x,M)},Qe=(_,c,u,p,v,N,S,R,x)=>{let A=0;const W=c.length;let M=_.length-1,E=W-1;for(;A<=M&&A<=E;){const T=_[A],j=c[A]=x?Et(c[A]):st(c[A]);if(On(T,j))k(T,j,u,null,v,N,S,R,x);else break;A++}for(;A<=M&&A<=E;){const T=_[M],j=c[E]=x?Et(c[E]):st(c[E]);if(On(T,j))k(T,j,u,null,v,N,S,R,x);else break;M--,E--}if(A>M){if(A<=E){const T=E+1,j=T<W?c[T].el:p;for(;A<=E;)k(null,c[A]=x?Et(c[A]):st(c[A]),u,j,v,N,S,R,x),A++}}else if(A>E)for(;A<=M;)Ce(_[A],v,N,!0),A++;else{const T=A,j=A,H=new Map;for(A=j;A<=E;A++){const Ve=c[A]=x?Et(c[A]):st(c[A]);Ve.key!=null&&H.set(Ve.key,A)}let J,fe=0;const Ie=E-j+1;let St=!1,Zr=0;const jn=new Array(Ie);for(A=0;A<Ie;A++)jn[A]=0;for(A=T;A<=M;A++){const Ve=_[A];if(fe>=Ie){Ce(Ve,v,N,!0);continue}let ut;if(Ve.key!=null)ut=H.get(Ve.key);else for(J=j;J<=E;J++)if(jn[J-j]===0&&On(Ve,c[J])){ut=J;break}ut===void 0?Ce(Ve,v,N,!0):(jn[ut-j]=A+1,ut>=Zr?Zr=ut:St=!0,k(Ve,c[ut],u,null,v,N,S,R,x),fe++)}const sl=St?jc(jn):zt;for(J=sl.length-1,A=Ie-1;A>=0;A--){const Ve=j+A,ut=c[Ve],rl=Ve+1<W?c[Ve+1].el:p;jn[A]===0?k(null,ut,u,rl,v,N,S,R,x):St&&(J<0||A!==sl[J]?He(ut,u,rl,2):J--)}}},He=(_,c,u,p,v=null)=>{const{el:N,type:S,transition:R,children:x,shapeFlag:A}=_;if(A&6){He(_.component.subTree,c,u,p);return}if(A&128){_.suspense.move(c,u,p);return}if(A&64){S.move(_,c,u,$e);return}if(S===Me){s(N,c,u);for(let M=0;M<x.length;M++)He(x[M],c,u,p);s(_.anchor,c,u);return}if(S===ir){L(_,c,u);return}if(p!==2&&A&1&&R)if(p===0)R.beforeEnter(N),s(N,c,u),Fe(()=>R.enter(N),v);else{const{leave:M,delayLeave:E,afterLeave:T}=R,j=()=>s(N,c,u),H=()=>{M(N,()=>{j(),T&&T()})};E?E(N,j,H):H()}else s(N,c,u)},Ce=(_,c,u,p=!1,v=!1)=>{const{type:N,props:S,ref:R,children:x,dynamicChildren:A,shapeFlag:W,patchFlag:M,dirs:E}=_;if(R!=null&&or(R,null,u,_,!0),W&256){c.ctx.deactivate(_);return}const T=W&1&&E,j=!fs(_);let H;if(j&&(H=S&&S.onVnodeBeforeUnmount)&&rt(H,c,_),W&6)pn(_.component,u,p);else{if(W&128){_.suspense.unmount(u,p);return}T&&Ut(_,null,c,"beforeUnmount"),W&64?_.type.remove(_,c,u,v,$e,p):A&&(N!==Me||M>0&&M&64)?Ae(A,c,u,!1,!0):(N===Me&&M&384||!v&&W&16)&&Ae(x,c,u),p&&Ct(_)}(j&&(H=S&&S.onVnodeUnmounted)||T)&&Fe(()=>{H&&rt(H,c,_),T&&Ut(_,null,c,"unmounted")},u)},Ct=_=>{const{type:c,el:u,anchor:p,transition:v}=_;if(c===Me){Pt(u,p);return}if(c===ir){w(_);return}const N=()=>{o(u),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(_.shapeFlag&1&&v&&!v.persisted){const{leave:S,delayLeave:R}=v,x=()=>S(u,N);R?R(_.el,N,x):x()}else N()},Pt=(_,c)=>{let u;for(;_!==c;)u=h(_),o(_),_=u;o(c)},pn=(_,c,u)=>{const{bum:p,scope:v,update:N,subTree:S,um:R}=_;p&&Bn(p),v.stop(),N&&(N.active=!1,Ce(S,_,c,u)),R&&Fe(R,c),Fe(()=>{_.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},Ae=(_,c,u,p=!1,v=!1,N=0)=>{for(let S=N;S<_.length;S++)Ce(_[S],c,u,p,v)},lt=_=>_.shapeFlag&6?lt(_.component.subTree):_.shapeFlag&128?_.suspense.next():h(_.anchor||_.el),ct=(_,c,u)=>{_==null?c._vnode&&Ce(c._vnode,null,null,!0):k(c._vnode||null,_,c,null,null,null,u),Ro(),xo(),c._vnode=_},$e={p:k,um:Ce,m:He,r:Ct,mt:Be,mc:D,pc:te,pbc:Z,n:lt,o:e};let Ge,et;return t&&([Ge,et]=t($e)),{render:ct,hydrate:Ge,createApp:Cc(ct,Ge)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $c(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function li(e,t,n=!1){const s=e.children,o=t.children;if(V(s)&&V(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Et(o[r]),a.el=i.el),n||li(i,a)),a.type===In&&(a.el=i.el)}}function jc(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const f=e[s];if(f!==0){if(o=n[n.length-1],e[o]<f){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<f?r=a+1:i=a;f<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const Wc=e=>e.__isTeleport,Me=Symbol.for("v-fgt"),In=Symbol.for("v-txt"),Wt=Symbol.for("v-cmt"),ir=Symbol.for("v-stc"),kn=[];let qe=null;function ne(e=!1){kn.push(qe=e?null:[])}function Kc(){kn.pop(),qe=kn[kn.length-1]||null}let Tn=1;function ci(e){Tn+=e}function ui(e){return e.dynamicChildren=Tn>0?qe||zt:null,Kc(),Tn>0&&qe&&qe.push(e),e}function ce(e,t,n,s,o,r){return ui(se(e,t,n,s,o,r,!0))}function Ln(e,t,n,s,o){return ui(Oe(e,t,n,s,o,!0))}function ar(e){return e?e.__v_isVNode===!0:!1}function On(e,t){return e.type===t.type&&e.key===t.key}const hs="__vInternal",fi=({key:e})=>e??null,ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ge(e)||he(e)||X(e)?{i:xe,r:e,k:t,f:!!n}:e:null);function se(e,t=null,n=null,s=0,o=null,r=e===Me?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fi(t),ref:t&&ps(t),scopeId:Do,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:xe};return a?(lr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ge(n)?8:16),Tn>0&&!i&&qe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&qe.push(l),l}const Oe=Hc;function Hc(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===vc)&&(e=Wt),ar(e)){const a=tn(e,t,!0);return n&&lr(a,n),Tn>0&&!r&&qe&&(a.shapeFlag&6?qe[qe.indexOf(e)]=a:qe.push(a)),a.patchFlag|=-2,a}if(eu(e)&&(e=e.__vccOpts),t){t=Vc(t);let{class:a,style:l}=t;a&&!ge(a)&&(t.class=Zn(a)),de(l)&&(To(l)&&!V(l)&&(l=ke({},l)),t.style=zn(l))}const i=ge(e)?1:oc(e)?128:Wc(e)?64:de(e)?4:X(e)?2:0;return se(e,t,n,s,o,i,r,!0)}function Vc(e){return e?To(e)||hs in e?ke({},e):e:null}function tn(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Yc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&fi(a),ref:t&&t.ref?n&&o?V(o)?o.concat(ps(t)):[o,ps(t)]:ps(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,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}}function _s(e=" ",t=0){return Oe(In,null,e,t)}function We(e="",t=!1){return t?(ne(),Ln(Wt,null,e)):Oe(Wt,null,e)}function st(e){return e==null||typeof e=="boolean"?Oe(Wt):V(e)?Oe(Me,null,e.slice()):typeof e=="object"?Et(e):Oe(In,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tn(e)}function lr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),lr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(hs in t)?t._ctx=xe:o===3&&xe&&(xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:xe},n=32):(t=String(t),s&64?(n=16,t=[_s(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Zn([t.class,s.class]));else if(o==="style")t.style=zn([t.style,s.style]);else if(Wn(o)){const r=t[o],i=s[o];i&&r!==i&&!(V(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function rt(e,t,n,s=null){Je(e,t,7,[n,s])}const Xc=qo();let Bc=0;function Gc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Xc,r={uid:Bc++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new ro(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ei(s,o),emitsOptions:Mo(s,o),emit:null,emitted:null,propsDefaults:le,inheritAttrs:s.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,attrsProxy:null,slotsProxy: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 r.ctx={_:r},r.root=t?t.root:r,r.emit=Ql.bind(null,r),e.ce&&e.ce(r),r}let ye=null;const Nn=()=>ye||xe;let cr,nn,di="__VUE_INSTANCE_SETTERS__";(nn=Fs()[di])||(nn=Fs()[di]=[]),nn.push(e=>ye=e),cr=e=>{nn.length>1?nn.forEach(t=>t(e)):nn[0](e)};const sn=e=>{cr(e),e.scope.on()},Kt=()=>{ye&&ye.scope.off(),cr(null)};function mi(e){return e.vnode.shapeFlag&4}let Cn=!1;function zc(e,t=!1){Cn=t;const{props:n,children:s}=e.vnode,o=mi(e);Ac(e,n,o,t),Fc(e,s);const r=o?Zc(e,t):void 0;return Cn=!1,r}function Zc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=is(new Proxy(e.ctx,wc));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?qc(e):null;sn(e),Jt();const r=vt(s,e,0,[e.props,o]);if(qt(),Kt(),qr(r)){if(r.then(Kt,Kt),t)return r.then(i=>{hi(e,i,t)}).catch(i=>{as(i,e,0)});e.asyncDep=r}else hi(e,r,t)}else _i(e,t)}function hi(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Co(t)),_i(e,n)}let pi;function _i(e,t,n){const s=e.type;if(!e.render){if(!t&&pi&&!s.render){const o=s.template||tr(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,f=ke(ke({isCustomElement:r,delimiters:a},i),l);s.render=pi(o,f)}}e.render=s.render||ze}{sn(e),Jt();try{Ic(e)}finally{qt(),Kt()}}}function Jc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function qc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Jc(e)},slots:e.slots,emit:e.emit,expose:t}}function gs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Co(is(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}function Qc(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function eu(e){return X(e)&&"__vccOpts"in e}const Ke=(e,t)=>Bl(e,t,Cn);function gi(e,t,n){const s=arguments.length;return s===2?de(t)&&!V(t)?ar(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ar(n)&&(n=[n]),Oe(e,t,n))}const tu=Symbol.for("v-scx"),nu=()=>Ye(tu),su="3.3.7",ru="http://www.w3.org/2000/svg",Ht=typeof document<"u"?document:null,bi=Ht&&Ht.createElement("template"),ou={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t?Ht.createElementNS(ru,e):Ht.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Ht.createTextNode(e),createComment:e=>Ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{bi.innerHTML=s?`<svg>${e}</svg>`:e;const a=bi.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},iu=Symbol("_vtc");function au(e,t,n){const s=e[iu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const lu=Symbol("_vod");function cu(e,t,n){const s=e.style,o=ge(n);if(n&&!o){if(t&&!ge(t))for(const r in t)n[r]==null&&ur(s,r,"");for(const r in n)ur(s,r,n[r])}else{const r=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),lu in e&&(s.display=r)}}const yi=/\s*!important$/;function ur(e,t,n){if(V(n))n.forEach(s=>ur(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=uu(e,t);yi.test(n)?e.setProperty(At(s),n.replace(yi,""),"important"):e[s]=n}}const vi=["Webkit","Moz","ms"],fr={};function uu(e,t){const n=fr[t];if(n)return n;let s=tt(t);if(s!=="filter"&&s in e)return fr[t]=s;s=Xn(s);for(let o=0;o<vi.length;o++){const r=vi[o]+s;if(r in e)return fr[t]=r}return t}const Ei="http://www.w3.org/1999/xlink";function fu(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ei,t.slice(6,t.length)):e.setAttributeNS(Ei,t,n);else{const r=pl(t);n==null||r&&!no(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function du(e,t,n,s,o,r,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,o,r),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const f=a==="OPTION"?e.getAttribute("value"):e.value,d=n??"";f!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=no(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function rn(e,t,n,s){e.addEventListener(t,n,s)}function mu(e,t,n,s){e.removeEventListener(t,n,s)}const wi=Symbol("_vei");function hu(e,t,n,s,o=null){const r=e[wi]||(e[wi]={}),i=r[t];if(s&&i)i.value=s;else{const[a,l]=pu(t);if(s){const f=r[t]=bu(s,o);rn(e,a,f,l)}else i&&(mu(e,a,i,l),r[t]=void 0)}}const Ii=/(?:Once|Passive|Capture)$/;function pu(e){let t;if(Ii.test(e)){t={};let s;for(;s=e.match(Ii);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let dr=0;const _u=Promise.resolve(),gu=()=>dr||(_u.then(()=>dr=0),dr=Date.now());function bu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Je(yu(s,n.value),t,5,[s])};return n.value=e,n.attached=gu(),n}function yu(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const ki=/^on[a-z]/,vu=(e,t,n,s,o=!1,r,i,a,l)=>{t==="class"?au(e,s,o):t==="style"?cu(e,n,s):Wn(t)?Ps(t)||hu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Eu(e,t,s,o))?du(e,t,s,r,i,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),fu(e,t,s,o))};function Eu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&ki.test(t)&&X(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ki.test(t)&&ge(n)?!1:t in e}const Ti=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Bn(t,n):t};function wu(e){e.target.composing=!0}function Li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const mr=Symbol("_assign"),Iu={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[mr]=Ti(o);const r=s||o.props&&o.props.type==="number";rn(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=xs(a)),e[mr](a)}),n&&rn(e,"change",()=>{e.value=e.value.trim()}),t||(rn(e,"compositionstart",wu),rn(e,"compositionend",Li),rn(e,"change",Li))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},r){if(e[mr]=Ti(r),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(o||e.type==="number")&&xs(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},ku=["ctrl","shift","alt","meta"],Tu={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)=>ku.some(n=>e[`${n}Key`]&&!t.includes(n))},Lu=(e,t)=>(n,...s)=>{for(let o=0;o<t.length;o++){const r=Tu[t[o]];if(r&&r(n,t))return}return e(n,...s)},Ou={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Oi=(e,t)=>n=>{if(!("key"in n))return;const s=At(n.key);if(t.some(o=>o===s||Ou[o]===s))return e(n)},Nu=ke({patchProp:vu},ou);let Ni;function Cu(){return Ni||(Ni=Dc(Nu))}const Pu=(...e)=>{const t=Cu().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Su(s);if(!o)return;const r=t._component;!X(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Su(e){return ge(e)?document.querySelector(e):e}var Au=!1;/*!
2
+ * pinia v2.1.7
3
3
  * (c) 2023 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let Oi;const pr=e=>Oi=e,Ni=Symbol();function ds(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Cn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Cn||(Cn={}));function xu(){const e=Fr(!0),t=e.run(()=>J({}));let n=[],r=[];const o=rr({install(s){pr(o),o._a=s,s.provide(Ni,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!Fu?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Ci=()=>{};function Pi(e,t,n,r=Ci){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&so()&&_l(o),o}function on(e,...t){e.slice().forEach(n=>{n(...t)})}const Du=e=>e();function ms(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],o=e[n];ds(o)&&ds(r)&&e.hasOwnProperty(n)&&!me(r)&&!yt(r)?e[n]=ms(o,r):e[n]=r}return e}const Mu=Symbol();function Uu(e){return!ds(e)||!e.hasOwnProperty(Mu)}const{assign:wt}=Object;function $u(e){return!!(me(e)&&e.effect)}function ju(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=o?o():{});const d=Gl(n.state.value[e]);return wt(d,s,Object.keys(i||{}).reduce((m,h)=>(m[h]=rr(We(()=>{pr(n);const b=n._s.get(e);return i[h].call(b,b)})),m),{}))}return l=Si(e,f,t,n,r,!0),l}function Si(e,t,n={},r,o,s){let i;const a=wt({actions:{}},n),l={deep:!0};let f,d,m=[],h=[],b;const w=r.state.value[e];!s&&!w&&(r.state.value[e]={}),J({});let k;function L(x){let $;f=d=!1,typeof x=="function"?(x(r.state.value[e]),$={type:Cn.patchFunction,storeId:e,events:b}):(ms(r.state.value[e],x),$={type:Cn.patchObject,payload:x,storeId:e,events:b});const Z=k=Symbol();Po().then(()=>{k===Z&&(f=!0)}),d=!0,on(m,$,r.state.value[e])}const _=s?function(){const{state:$}=n,Z=$?$():{};this.$patch(ae=>{wt(ae,Z)})}:Ci;function y(){i.stop(),m=[],h=[],r._s.delete(e)}function N(x,$){return function(){pr(r);const Z=Array.from(arguments),ae=[],ie=[];function Ee(B){ae.push(B)}function Xe(B){ie.push(B)}on(h,{args:Z,name:x,store:P,after:Ee,onError:Xe});let Me;try{Me=$.apply(this&&this.$id===e?this:P,Z)}catch(B){throw on(ie,B),B}return Me instanceof Promise?Me.then(B=>(on(ae,B),B)).catch(B=>(on(ie,B),Promise.reject(B))):(on(ae,Me),Me)}}const I={_p:r,$id:e,$onAction:Pi.bind(null,h),$patch:L,$reset:_,$subscribe(x,$={}){const Z=Pi(m,x,$.detached,()=>ae()),ae=i.run(()=>Rt(()=>r.state.value[e],ie=>{($.flush==="sync"?d:f)&&x({storeId:e,type:Cn.direct,events:b},ie)},wt({},l,$)));return Z},$dispose:y},P=tr(I);r._s.set(e,P);const C=r._a&&r._a.runWithContext||Du,M=r._e.run(()=>(i=Fr(),C(()=>i.run(t))));for(const x in M){const $=M[x];if(me($)&&!$u($)||yt($))s||(w&&Uu($)&&(me($)?$.value=w[x]:ms($,w[x])),r.state.value[e][x]=$);else if(typeof $=="function"){const Z=N(x,$);M[x]=Z,a.actions[x]=$}}return wt(P,M),wt(Q(P),M),Object.defineProperty(P,"$state",{get:()=>r.state.value[e],set:x=>{L($=>{wt($,x)})}}),r._p.forEach(x=>{wt(P,i.run(()=>x({store:P,app:r._a,pinia:r,options:a})))}),w&&s&&n.hydrate&&n.hydrate(P.$state,w),f=!0,d=!0,P}function Wu(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const f=Dc();return a=a||(f?Ye(Ni,null):null),a&&pr(a),a=Oi,a._s.has(r)||(s?Si(r,t,o,a):ju(r,o,a)),a._s.get(r)}return i.$id=r,i}const Ai=Symbol("$auth0");function st(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var an=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ps(e,t){return e(t={exports:{}},t.exports),t.exports}var Wt=ps(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var o=this;this.locked=new Map,this.addToLocked=function(s,i){var a=o.locked.get(s);a===void 0?i===void 0?o.locked.set(s,[]):o.locked.set(s,[i]):i!==void 0&&(a.unshift(i),o.locked.set(s,a))},this.isLocked=function(s){return o.locked.has(s)},this.lock=function(s){return new Promise(function(i,a){o.isLocked(s)?o.addToLocked(s,i):(o.addToLocked(s),i())})},this.unlock=function(s){var i=o.locked.get(s);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(s,i),a!==void 0&&setTimeout(a,0)}else o.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()}});hs(Wt);var Hu=hs(ps(function(e,t){var n=an&&an.__awaiter||function(l,f,d,m){return new(d||(d=Promise))(function(h,b){function w(_){try{L(m.next(_))}catch(y){b(y)}}function k(_){try{L(m.throw(_))}catch(y){b(y)}}function L(_){_.done?h(_.value):new d(function(y){y(_.value)}).then(w,k)}L((m=m.apply(l,f||[])).next())})},r=an&&an.__generator||function(l,f){var d,m,h,b,w={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return b={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function k(L){return function(_){return function(y){if(d)throw new TypeError("Generator is already executing.");for(;w;)try{if(d=1,m&&(h=2&y[0]?m.return:y[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,y[1])).done)return h;switch(m=0,h&&(y=[2&y[0],h.value]),y[0]){case 0:case 1:h=y;break;case 4:return w.label++,{value:y[1],done:!1};case 5:w.label++,m=y[1],y=[0];continue;case 7:y=w.ops.pop(),w.trys.pop();continue;default:if(!((h=(h=w.trys).length>0&&h[h.length-1])||y[0]!==6&&y[0]!==2)){w=0;continue}if(y[0]===3&&(!h||y[1]>h[0]&&y[1]<h[3])){w.label=y[1];break}if(y[0]===6&&w.label<h[1]){w.label=h[1],h=y;break}if(h&&w.label<h[2]){w.label=h[2],w.ops.push(y);break}h[2]&&w.ops.pop(),w.trys.pop();continue}y=f.call(l,w)}catch(N){y=[6,N],m=0}finally{d=h=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([L,_])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function s(l){return new Promise(function(f){return setTimeout(f,l)})}function i(l){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",m=0;m<l;m++)d+=f[Math.floor(Math.random()*f.length)];return d}var a=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+i(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),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var m,h,b,w,k,L;return r(this,function(_){switch(_.label){case 0:m=Date.now()+i(4),h=Date.now()+d,b=o+"-"+f,w=window.localStorage,_.label=1;case 1:return Date.now()<h?[4,s(30)]:[3,8];case 2:return _.sent(),w.getItem(b)!==null?[3,5]:(k=this.id+"-"+f+"-"+m,[4,s(Math.floor(25*Math.random()))]);case 3:return _.sent(),w.setItem(b,JSON.stringify({id:this.id,iat:m,timeoutKey:k,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,s(30)];case 4:return _.sent(),(L=w.getItem(b))!==null&&(L=JSON.parse(L)).id===this.id&&L.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(b,m),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(h)];case 6:_.sent(),_.label=7;case 7:return m=Date.now()+i(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,function(){var m=this;return r(this,function(h){return setTimeout(function(){return n(m,void 0,void 0,function(){var b,w;return r(this,function(k){switch(k.label){case 0:return[4,Wt.default().lock(d)];case 1:return k.sent(),this.acquiredIatSet.has(d)?(b=window.localStorage,(w=b.getItem(f))===null?(Wt.default().unlock(d),[2]):((w=JSON.parse(w)).timeRefreshed=Date.now(),b.setItem(f,JSON.stringify(w)),Wt.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(Wt.default().unlock(d),[2])}})})},1e3),[2]})})},l.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 h=!1,b=Date.now(),w=!1;function k(){if(w||(window.removeEventListener("storage",k),l.removeFromWaiting(k),clearTimeout(L),w=!0),!h){h=!0;var _=50-(Date.now()-b);_>0?setTimeout(m,_):m()}}window.addEventListener("storage",k),l.addToWaiting(k);var L=setTimeout(k,Math.max(0,f-Date.now()))})];case 1:return d.sent(),[2]}})})},l.addToWaiting=function(f){this.removeFromWaiting(f),l.waiters!==void 0&&l.waiters.push(f)},l.removeFromWaiting=function(f){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(d){return d!==f}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(f){return f()})},l.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()]}})})},l.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var d,m,h;return r(this,function(b){switch(b.label){case 0:return d=window.localStorage,m=o+"-"+f,(h=d.getItem(m))===null?[2]:(h=JSON.parse(h)).id!==this.id?[3,2]:[4,Wt.default().lock(h.iat)];case 1:b.sent(),this.acquiredIatSet.delete(h.iat),d.removeItem(m),Wt.default().unlock(h.iat),l.notifyWaiters(),b.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var f=Date.now()-5e3,d=window.localStorage,m=Object.keys(d),h=!1,b=0;b<m.length;b++){var w=m[b];if(w.includes(o)){var k=d.getItem(w);k!==null&&((k=JSON.parse(k)).timeRefreshed===void 0&&k.timeAcquired<f||k.timeRefreshed!==void 0&&k.timeRefreshed<f)&&(d.removeItem(w),h=!0)}}h&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=a}));const Ku={timeoutInSeconds:60},Ri={name:"auth0-spa-js",version:"2.1.2"},Fi=()=>Date.now();class Le extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Le.prototype)}static fromPayload({error:t,error_description:n}){return new Le(t,n)}}class _s extends Le{constructor(t,n,r,o=null){super(t,n),this.state=r,this.appState=o,Object.setPrototypeOf(this,_s.prototype)}}class Pn extends Le{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Pn.prototype)}}class gs extends Pn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,gs.prototype)}}class bs extends Le{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,bs.prototype)}}class ys extends Le{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,ys.prototype)}}class _r extends Le{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${xi(t,["default"])}', scope: '${xi(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,_r.prototype)}}function xi(e,t=[]){return e&&!t.includes(e)?e:""}const gr=()=>window.crypto,vs=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(gr().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Di=e=>btoa(e),Es=e=>{var{clientId:t}=e,n=st(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(o=>r[o]!==void 0).reduce((o,s)=>Object.assign(Object.assign({},o),{[s]:r[s]}),{}))(Object.assign({client_id:t},n))).toString()},Mi=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Vu=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Yu=async(e,t,n,r,o,s,i=1e4)=>o?(async(a,l,f,d,m,h,b)=>{return w={auth:{audience:l,scope:f},timeout:m,fetchUrl:a,fetchOptions:d,useFormData:b},k=h,new Promise(function(L,_){const y=new MessageChannel;y.port1.onmessage=function(N){N.data.error?_(new Error(N.data.error)):L(N.data),y.port1.close()},k.postMessage(w,[y.port2])});var w,k})(e,t,n,r,i,o,s):(async(a,l,f)=>{const d=new AbortController;let m;return l.signal=d.signal,Promise.race([Vu(a,l),new Promise((h,b)=>{m=setTimeout(()=>{d.abort(),b(new Error("Timeout when executing 'fetch'"))},f)})]).finally(()=>{clearTimeout(m)})})(e,r,i);async function Xu(e,t){var{baseUrl:n,timeout:r,audience:o,scope:s,auth0Client:i,useFormData:a}=e,l=st(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const f=a?Es(l):JSON.stringify(l);return await async function(d,m,h,b,w,k,L){let _,y=null;for(let x=0;x<3;x++)try{_=await Yu(d,h,b,w,k,L,m),y=null;break}catch($){y=$}if(y)throw y;const N=_.json,{error:I,error_description:P}=N,C=st(N,["error","error_description"]),{ok:M}=_;if(!M){const x=P||`HTTP error. Unable to fetch ${d}`;throw I==="mfa_required"?new ys(I,x,C.mfa_token):I==="missing_refresh_token"?new _r(h,b):new Le(I||"request_error",x)}return C}(`${n}/oauth/token`,r,o||"default",s,{method:"POST",body:f,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||Ri))}},t,a)}const br=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ot{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,o,s]=t.split("::");return new ot({clientId:r,scope:s,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:o}=t;return new ot({scope:n,audience:r,clientId:o})}}class Bu{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 Ui{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 Gu{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Fi}async setIdToken(t,n,r){var o;const s=this.getIdTokenCacheKey(t);await this.cache.set(s,{id_token:n,decodedToken:r}),await((o=this.keyManifest)===null||o===void 0?void 0:o.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 o=await this.cache.get(t.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const s=await this.nowProvider(),i=Math.floor(s/1e3);return o.expiresAt-n<i?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):o.body}async set(t){var n;const r=new ot({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),o),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(o=>!t||o.includes(t)).reduce(async(o,s)=>{await o,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 ot({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var o;const s=ot.fromKey(r),i=new Set(s.scope&&s.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=s.scope&&a.reduce((f,d)=>f&&i.has(d),!0);return s.prefix==="@@auth0spajs@@"&&s.clientId===t.clientId&&s.audience===t.audience&&l})[0]}}class zu{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 Sn=e=>typeof e=="number",Zu=["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 Ht=ps(function(e,t){var n=an&&an.__assign||function(){return n=Object.assign||function(l){for(var f,d=1,m=arguments.length;d<m;d++)for(var h in f=arguments[d])Object.prototype.hasOwnProperty.call(f,h)&&(l[h]=f[h]);return l},n.apply(this,arguments)};function r(l,f){if(!f)return"";var d="; "+l;return f===!0?d:d+"="+f}function o(l,f,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(f).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(m){if(typeof m.expires=="number"){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*m.expires),m.expires=h}return r("Expires",m.expires?m.expires.toUTCString():"")+r("Domain",m.domain)+r("Path",m.path)+r("Secure",m.secure)+r("SameSite",m.sameSite)}(d)}function s(l){for(var f={},d=l?l.split("; "):[],m=/(%[\dA-F]{2})+/gi,h=0;h<d.length;h++){var b=d[h].split("="),w=b.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{f[b[0].replace(m,decodeURIComponent)]=w.replace(m,decodeURIComponent)}catch{}}return f}function i(){return s(document.cookie)}function a(l,f,d){document.cookie=o(l,f,n({path:"/"},d))}t.__esModule=!0,t.encode=o,t.parse=s,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,f){a(l,"",n(n({},f),{expires:-1}))}});hs(Ht),Ht.encode,Ht.parse,Ht.getAll;var Ju=Ht.get,$i=Ht.set,ji=Ht.remove;const ln={get(e){const t=Ju(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),$i(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),ji(e,n)}},qu={get:e=>ln.get(e)||ln.get(`_legacy_${e}`),save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),$i(`_legacy_${e}`,JSON.stringify(t),r),ln.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),ji(e,n),ln.remove(e,t),ln.remove(`_legacy_${e}`,t)}},Qu={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 ws,ef=function(e){return ws=ws||function(t,n,r){var o=n===void 0?null:n,s=function(f,d){var m=atob(f);if(d){for(var h=new Uint8Array(m.length),b=0,w=m.length;b<w;++b)h[b]=m.charCodeAt(b);return String.fromCharCode.apply(null,new Uint16Array(h.buffer))}return m}(t,r!==void 0&&r),i=s.indexOf(`
6
- `,10)+1,a=s.substring(i)+(o?"//# sourceMappingURL="+o:""),l=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(l)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",null,!1),new Worker(ws,e)};const Is={};class tf{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 nf={memory:()=>new Ui().enclosedCache,localstorage:()=>new Bu},Wi=e=>nf[e],Hi=e=>{const{openUrl:t,onRedirect:n}=e,r=st(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},ks=new Hu;class rf{constructor(t){let n,r;if(this.userCache=new Ui().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await ks.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(!gr())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(gr().subtle===void 0)throw new Error(`
5
+ */let Ci;const bs=e=>Ci=e,Pi=Symbol();function hr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Pn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Pn||(Pn={}));function Ru(){const e=Ms(!0),t=e.run(()=>q({}));let n=[],s=[];const o=is({install(r){bs(o),o._a=r,r.provide(Pi,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!Au?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Si=()=>{};function Ai(e,t,n,s=Si){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&oo()&&gl(o),o}function on(e,...t){e.slice().forEach(n=>{n(...t)})}const xu=e=>e();function pr(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];hr(o)&&hr(s)&&e.hasOwnProperty(n)&&!he(s)&&!yt(s)?e[n]=pr(o,s):e[n]=s}return e}const Fu=Symbol();function Mu(e){return!hr(e)||!e.hasOwnProperty(Fu)}const{assign:wt}=Object;function Du(e){return!!(he(e)&&e.effect)}function Uu(e,t,n,s){const{state:o,actions:r,getters:i}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=o?o():{});const d=Hl(n.state.value[e]);return wt(d,r,Object.keys(i||{}).reduce((m,h)=>(m[h]=is(Ke(()=>{bs(n);const b=n._s.get(e);return i[h].call(b,b)})),m),{}))}return l=Ri(e,f,t,n,s,!0),l}function Ri(e,t,n={},s,o,r){let i;const a=wt({actions:{}},n),l={deep:!0};let f,d,m=[],h=[],b;const I=s.state.value[e];!r&&!I&&(s.state.value[e]={}),q({});let k;function O(D){let $;f=d=!1,typeof D=="function"?(D(s.state.value[e]),$={type:Pn.patchFunction,storeId:e,events:b}):(pr(s.state.value[e],D),$={type:Pn.patchObject,payload:D,storeId:e,events:b});const Z=k=Symbol();So().then(()=>{k===Z&&(f=!0)}),d=!0,on(m,$,s.state.value[e])}const g=r?function(){const{state:$}=n,Z=$?$():{};this.$patch(ae=>{wt(ae,Z)})}:Si;function y(){i.stop(),m=[],h=[],s._s.delete(e)}function L(D,$){return function(){bs(s);const Z=Array.from(arguments),ae=[],ie=[];function we(G){ae.push(G)}function Be(G){ie.push(G)}on(h,{args:Z,name:D,store:P,after:we,onError:Be});let Ue;try{Ue=$.apply(this&&this.$id===e?this:P,Z)}catch(G){throw on(ie,G),G}return Ue instanceof Promise?Ue.then(G=>(on(ae,G),G)).catch(G=>(on(ie,G),Promise.reject(G))):(on(ae,Ue),Ue)}}const w={_p:s,$id:e,$onAction:Ai.bind(null,h),$patch:O,$reset:g,$subscribe(D,$={}){const Z=Ai(m,D,$.detached,()=>ae()),ae=i.run(()=>Mt(()=>s.state.value[e],ie=>{($.flush==="sync"?d:f)&&D({storeId:e,type:Pn.direct,events:b},ie)},wt({},l,$)));return Z},$dispose:y},P=rs(w);s._s.set(e,P);const C=(s._a&&s._a.runWithContext||xu)(()=>s._e.run(()=>(i=Ms()).run(t)));for(const D in C){const $=C[D];if(he($)&&!Du($)||yt($))r||(I&&Mu($)&&(he($)?$.value=I[D]:pr($,I[D])),s.state.value[e][D]=$);else if(typeof $=="function"){const Z=L(D,$);C[D]=Z,a.actions[D]=$}}return wt(P,C),wt(ee(P),C),Object.defineProperty(P,"$state",{get:()=>s.state.value[e],set:D=>{O($=>{wt($,D)})}}),s._p.forEach(D=>{wt(P,i.run(()=>D({store:P,app:s._a,pinia:s,options:a})))}),I&&r&&n.hydrate&&n.hydrate(P.$state,I),f=!0,d=!0,P}function $u(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(a,l){const f=Sc();return a=a||(f?Ye(Pi,null):null),a&&bs(a),a=Ci,a._s.has(s)||(r?Ri(s,t,o,a):Uu(s,o,a)),a._s.get(s)}return i.$id=s,i}const xi=Symbol("$auth0");function ot(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]])}return n}var an=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gr(e,t){return e(t={exports:{}},t.exports),t.exports}var Vt=gr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(r,i){var a=o.locked.get(r);a===void 0?i===void 0?o.locked.set(r,[]):o.locked.set(r,[i]):i!==void 0&&(a.unshift(i),o.locked.set(r,a))},this.isLocked=function(r){return o.locked.has(r)},this.lock=function(r){return new Promise(function(i,a){o.isLocked(r)?o.addToLocked(r,i):(o.addToLocked(r),i())})},this.unlock=function(r){var i=o.locked.get(r);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(r,i),a!==void 0&&setTimeout(a,0)}else o.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});_r(Vt);var ju=_r(gr(function(e,t){var n=an&&an.__awaiter||function(l,f,d,m){return new(d||(d=Promise))(function(h,b){function I(g){try{O(m.next(g))}catch(y){b(y)}}function k(g){try{O(m.throw(g))}catch(y){b(y)}}function O(g){g.done?h(g.value):new d(function(y){y(g.value)}).then(I,k)}O((m=m.apply(l,f||[])).next())})},s=an&&an.__generator||function(l,f){var d,m,h,b,I={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return b={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function k(O){return function(g){return function(y){if(d)throw new TypeError("Generator is already executing.");for(;I;)try{if(d=1,m&&(h=2&y[0]?m.return:y[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,y[1])).done)return h;switch(m=0,h&&(y=[2&y[0],h.value]),y[0]){case 0:case 1:h=y;break;case 4:return I.label++,{value:y[1],done:!1};case 5:I.label++,m=y[1],y=[0];continue;case 7:y=I.ops.pop(),I.trys.pop();continue;default:if(!((h=(h=I.trys).length>0&&h[h.length-1])||y[0]!==6&&y[0]!==2)){I=0;continue}if(y[0]===3&&(!h||y[1]>h[0]&&y[1]<h[3])){I.label=y[1];break}if(y[0]===6&&I.label<h[1]){I.label=h[1],h=y;break}if(h&&I.label<h[2]){I.label=h[2],I.ops.push(y);break}h[2]&&I.ops.pop(),I.trys.pop();continue}y=f.call(l,I)}catch(L){y=[6,L],m=0}finally{d=h=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([O,g])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function r(l){return new Promise(function(f){return setTimeout(f,l)})}function i(l){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",m=0;m<l;m++)d+=f[Math.floor(Math.random()*f.length)];return d}var a=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+i(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),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var m,h,b,I,k,O;return s(this,function(g){switch(g.label){case 0:m=Date.now()+i(4),h=Date.now()+d,b=o+"-"+f,I=window.localStorage,g.label=1;case 1:return Date.now()<h?[4,r(30)]:[3,8];case 2:return g.sent(),I.getItem(b)!==null?[3,5]:(k=this.id+"-"+f+"-"+m,[4,r(Math.floor(25*Math.random()))]);case 3:return g.sent(),I.setItem(b,JSON.stringify({id:this.id,iat:m,timeoutKey:k,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,r(30)];case 4:return g.sent(),(O=I.getItem(b))!==null&&(O=JSON.parse(O)).id===this.id&&O.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(b,m),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(h)];case 6:g.sent(),g.label=7;case 7:return m=Date.now()+i(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,function(){var m=this;return s(this,function(h){return setTimeout(function(){return n(m,void 0,void 0,function(){var b,I;return s(this,function(k){switch(k.label){case 0:return[4,Vt.default().lock(d)];case 1:return k.sent(),this.acquiredIatSet.has(d)?(b=window.localStorage,(I=b.getItem(f))===null?(Vt.default().unlock(d),[2]):((I=JSON.parse(I)).timeRefreshed=Date.now(),b.setItem(f,JSON.stringify(I)),Vt.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(Vt.default().unlock(d),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,new Promise(function(m){var h=!1,b=Date.now(),I=!1;function k(){if(I||(window.removeEventListener("storage",k),l.removeFromWaiting(k),clearTimeout(O),I=!0),!h){h=!0;var g=50-(Date.now()-b);g>0?setTimeout(m,g):m()}}window.addEventListener("storage",k),l.addToWaiting(k);var O=setTimeout(k,Math.max(0,f-Date.now()))})];case 1:return d.sent(),[2]}})})},l.addToWaiting=function(f){this.removeFromWaiting(f),l.waiters!==void 0&&l.waiters.push(f)},l.removeFromWaiting=function(f){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(d){return d!==f}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(f){return f()})},l.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}})})},l.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var d,m,h;return s(this,function(b){switch(b.label){case 0:return d=window.localStorage,m=o+"-"+f,(h=d.getItem(m))===null?[2]:(h=JSON.parse(h)).id!==this.id?[3,2]:[4,Vt.default().lock(h.iat)];case 1:b.sent(),this.acquiredIatSet.delete(h.iat),d.removeItem(m),Vt.default().unlock(h.iat),l.notifyWaiters(),b.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var f=Date.now()-5e3,d=window.localStorage,m=Object.keys(d),h=!1,b=0;b<m.length;b++){var I=m[b];if(I.includes(o)){var k=d.getItem(I);k!==null&&((k=JSON.parse(k)).timeRefreshed===void 0&&k.timeAcquired<f||k.timeRefreshed!==void 0&&k.timeRefreshed<f)&&(d.removeItem(I),h=!0)}}h&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=a}));const Wu={timeoutInSeconds:60},Fi={name:"auth0-spa-js",version:"2.1.2"},Mi=()=>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 br extends Ne{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,br.prototype)}}class Sn extends Ne{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Sn.prototype)}}class yr extends Sn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,yr.prototype)}}class vr extends Ne{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,vr.prototype)}}class Er extends Ne{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,Er.prototype)}}class ys extends Ne{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Di(t,["default"])}', scope: '${Di(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,ys.prototype)}}function Di(e,t=[]){return e&&!t.includes(e)?e:""}const vs=()=>window.crypto,wr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(vs().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Ui=e=>btoa(e),Ir=e=>{var{clientId:t}=e,n=ot(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,r)=>Object.assign(Object.assign({},o),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},$i=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Ku=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Hu=async(e,t,n,s,o,r,i=1e4)=>o?(async(a,l,f,d,m,h,b)=>{return I={auth:{audience:l,scope:f},timeout:m,fetchUrl:a,fetchOptions:d,useFormData:b},k=h,new Promise(function(O,g){const y=new MessageChannel;y.port1.onmessage=function(L){L.data.error?g(new Error(L.data.error)):O(L.data),y.port1.close()},k.postMessage(I,[y.port2])});var I,k})(e,t,n,s,i,o,r):(async(a,l,f)=>{const d=new AbortController;let m;return l.signal=d.signal,Promise.race([Ku(a,l),new Promise((h,b)=>{m=setTimeout(()=>{d.abort(),b(new Error("Timeout when executing 'fetch'"))},f)})]).finally(()=>{clearTimeout(m)})})(e,s,i);async function Vu(e,t){var{baseUrl:n,timeout:s,audience:o,scope:r,auth0Client:i,useFormData:a}=e,l=ot(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const f=a?Ir(l):JSON.stringify(l);return await async function(d,m,h,b,I,k,O){let g,y=null;for(let D=0;D<3;D++)try{g=await Hu(d,h,b,I,k,O,m),y=null;break}catch($){y=$}if(y)throw y;const L=g.json,{error:w,error_description:P}=L,F=ot(L,["error","error_description"]),{ok:C}=g;if(!C){const D=P||`HTTP error. Unable to fetch ${d}`;throw w==="mfa_required"?new Er(w,D,F.mfa_token):w==="missing_refresh_token"?new ys(h,b):new Ne(w||"request_error",D)}return F}(`${n}/oauth/token`,s,o||"default",r,{method:"POST",body:f,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||Fi))}},t,a)}const Es=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class it{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,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,s,o,r]=t.split("::");return new it({clientId:s,scope:r,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new it({scope:n,audience:s,clientId:o})}}class Yu{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 ji{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class Xu{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||Mi}async setIdToken(t,n,s){var o;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let o=await this.cache.get(t.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const r=await this.nowProvider(),i=Math.floor(r/1e3);return o.expiresAt-n<i?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):o.body}async set(t){var n;const s=new it({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(o=>!t||o.includes(t)).reduce(async(o,r)=>{await o,await this.cache.remove(r)},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 it({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const r=it.fromKey(s),i=new Set(r.scope&&r.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=r.scope&&a.reduce((f,d)=>f&&i.has(d),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class Bu{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,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 An=e=>typeof e=="number",Gu=["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 Yt=gr(function(e,t){var n=an&&an.__assign||function(){return n=Object.assign||function(l){for(var f,d=1,m=arguments.length;d<m;d++)for(var h in f=arguments[d])Object.prototype.hasOwnProperty.call(f,h)&&(l[h]=f[h]);return l},n.apply(this,arguments)};function s(l,f){if(!f)return"";var d="; "+l;return f===!0?d:d+"="+f}function o(l,f,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(f).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(m){if(typeof m.expires=="number"){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*m.expires),m.expires=h}return s("Expires",m.expires?m.expires.toUTCString():"")+s("Domain",m.domain)+s("Path",m.path)+s("Secure",m.secure)+s("SameSite",m.sameSite)}(d)}function r(l){for(var f={},d=l?l.split("; "):[],m=/(%[\dA-F]{2})+/gi,h=0;h<d.length;h++){var b=d[h].split("="),I=b.slice(1).join("=");I.charAt(0)==='"'&&(I=I.slice(1,-1));try{f[b[0].replace(m,decodeURIComponent)]=I.replace(m,decodeURIComponent)}catch{}}return f}function i(){return r(document.cookie)}function a(l,f,d){document.cookie=o(l,f,n({path:"/"},d))}t.__esModule=!0,t.encode=o,t.parse=r,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,f){a(l,"",n(n({},f),{expires:-1}))}});_r(Yt),Yt.encode,Yt.parse,Yt.getAll;var zu=Yt.get,Wi=Yt.set,Ki=Yt.remove;const ln={get(e){const t=zu(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Wi(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ki(e,n)}},Zu={get:e=>ln.get(e)||ln.get(`_legacy_${e}`),save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Wi(`_legacy_${e}`,JSON.stringify(t),s),ln.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ki(e,n),ln.remove(e,t),ln.remove(`_legacy_${e}`,t)}},Ju={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 kr,qu=function(e){return kr=kr||function(t,n,s){var o=n===void 0?null:n,r=function(f,d){var m=atob(f);if(d){for(var h=new Uint8Array(m.length),b=0,I=m.length;b<I;++b)h[b]=m.charCodeAt(b);return String.fromCharCode.apply(null,new Uint16Array(h.buffer))}return m}(t,s!==void 0&&s),i=r.indexOf(`
6
+ `,10)+1,a=r.substring(i)+(o?"//# sourceMappingURL="+o:""),l=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(l)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",null,!1),new Worker(kr,e)};const Tr={};class Qu{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const s=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);s.add(t),await this.cache.set(this.manifestKey,{keys:[...s]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const s=new Set(n.keys);return s.delete(t),s.size>0?await this.cache.set(this.manifestKey,{keys:[...s]}):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 ef={memory:()=>new ji().enclosedCache,localstorage:()=>new Yu},Hi=e=>ef[e],Vi=e=>{const{openUrl:t,onRedirect:n}=e,s=ot(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Lr=new ju;class tf{constructor(t){let n,s;if(this.userCache=new ji().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Lr.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(!vs())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(vs().subtle===void 0)throw new Error(`
7
7
  auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
8
- `)})(),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",!Wi(n))throw new Error(`Invalid cache location "${n}"`);r=Wi(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?ln:qu,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:Qu;var s;this.scope=br("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new zu(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Fi,this.cacheManager=new Gu(r,r.allKeys?void 0:new tf(r,this.options.clientId),this.nowProvider),this.domainUrl=(s=this.options.domain,/^https?:\/\//.test(s)?s:`https://${s}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new ef)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ri)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Es(t)}`)}async _verifyIdToken(t,n,r){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(m=>{const h=m.split("."),[b,w,k]=h;if(h.length!==3||!b||!w||!k)throw new Error("ID token could not be decoded");const L=JSON.parse(Mi(w)),_={__raw:m},y={};return Object.keys(L).forEach(N=>{_[N]=L[N],Zu.includes(N)||(y[N]=L[N])}),{encoded:{header:b,payload:w,signature:k},header:JSON.parse(Mi(b)),claims:_,user:y}})(i.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!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.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(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.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!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!Sn(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||!Sn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Sn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=i.leeway||60,f=new Date(i.now||Date.now()),d=new Date(0);if(d.setUTCSeconds(a.claims.exp+l),f>d)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${f}) is after expiration time (${d})`);if(a.claims.nbf!=null&&Sn(a.claims.nbf)){const m=new Date(0);if(m.setUTCSeconds(a.claims.nbf-l),f<m)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${f}) is before ${m}`)}if(a.claims.auth_time!=null&&Sn(a.claims.auth_time)){const m=new Date(0);if(m.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),f>m)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 (${f}) is after last auth at ${m}`)}if(i.organization){const m=i.organization.trim();if(m.startsWith("org_")){const h=m;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(h!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${h}", found "${a.claims.org_id}"`)}else{const h=m.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(h!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${h}", 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:o});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 o=Di(vs()),s=Di(vs()),i=vs(),a=(d=>{const m=new Uint8Array(d);return(h=>{const b={"+":"-","/":"_","=":""};return h.replace(/[+/=]/g,w=>b[w])})(window.btoa(String.fromCharCode(...Array.from(m))))})(await(async d=>await gr().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(i)),l=((d,m,h,b,w,k,L,_)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),h),{scope:br(m,h.scope),response_type:"code",response_mode:_||"query",state:b,nonce:w,redirect_uri:L||d.authorizationParams.redirect_uri,code_challenge:k,code_challenge_method:"S256"}))(this.options,this.scope,t,o,s,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),f=this._authorizeUrl(l);return{nonce:s,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:f}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${f},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 o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const s=await(a=>new Promise((l,f)=>{let d;const m=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(m),clearTimeout(h),window.removeEventListener("message",d,!1),f(new bs(a.popup)))},1e3),h=setTimeout(()=>{clearInterval(m),f(new gs(a.popup)),window.removeEventListener("message",d,!1)},1e3*(a.timeoutInSeconds||60));d=function(b){if(b.data&&b.data.type==="authorization_response"){if(clearTimeout(h),clearInterval(m),window.removeEventListener("message",d,!1),a.popup.close(),b.data.response.error)return f(Le.fromPayload(b.data.response));l(b.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==s.state)throw new Le("state_mismatch","Invalid state");const i=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:s.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}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=Hi(t),{openUrl:o,fragment:s,appState:i}=r,a=st(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:d}=f,m=st(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},m),{appState:i}),l&&{organization:l}));const h=s?`${d}#${s}`:d;o?await o(h):window.location.assign(h)}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:o,error:s,error_description:i}=(m=>{m.indexOf("#")>-1&&(m=m.substring(0,m.indexOf("#")));const h=new URLSearchParams(m);return{state:h.get("state"),code:h.get("code")||void 0,error:h.get("error")||void 0,error_description:h.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Le("missing_transaction","Invalid state");if(this.transactionManager.remove(),s)throw new _s(s,i||s,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Le("state_mismatch","Invalid state");const l=a.organization,f=a.nonce,d=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:o},d?{redirect_uri:d}:{}),{nonceIn:f,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:br(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((s,i)=>{let a=Is[i];return a||(a=s().finally(()=>{delete Is[i],a=null}),Is[i]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=st(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,s=3)=>{for(let i=0;i<s;i++)if(await o())return!0;return!1})(()=>ks.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Pn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:s,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:s,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await ks.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:br(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Ku),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new ot({scope:o.authorizationParams.scope,audience:o.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,o=st(n,["federated"]),s=r?"&federated":"";return this._url(`/v2/logout?${Es(Object.assign({clientId:t.clientId},o))}`)+s}async logout(t={}){const n=Hi(t),{openUrl:r}=n,o=st(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(o);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:o,state:s,nonce:i,code_verifier:a,redirect_uri:l,scope:f,audience:d}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Le("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const m=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,h=await((w,k,L=60)=>new Promise((_,y)=>{const N=window.document.createElement("iframe");N.setAttribute("width","0"),N.setAttribute("height","0"),N.style.display="none";const I=()=>{window.document.body.contains(N)&&(window.document.body.removeChild(N),window.removeEventListener("message",P,!1))};let P;const C=setTimeout(()=>{y(new Pn),I()},1e3*L);P=function(M){if(M.origin!=k||!M.data||M.data.type!=="authorization_response")return;const x=M.source;x&&x.close(),M.data.response.error?y(Le.fromPayload(M.data.response)):_(M.data.response),clearTimeout(C),window.removeEventListener("message",P,!1),setTimeout(I,2e3)},window.addEventListener("message",P,!1),window.document.body.appendChild(N),N.setAttribute("src",w)}))(o,this.domainUrl,m);if(s!==h.state)throw new Le("state_mismatch","Invalid state");const b=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:h.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:n.organization});return Object.assign(Object.assign({},b),{scope:f,oauthTokenScope:b.scope,audience:d})}catch(m){throw m.error==="login_required"&&this.logout({openUrl:!1}),m}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ot({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 _r(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=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}),o&&{timeout:o}));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,o=st(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(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ot({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 o=await this.cacheManager.get(new ot({scope:t,audience:n,clientId:r}),60);if(o&&o.access_token){const{access_token:s,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:s},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:r,organization:o}=n||{},s=await Xu(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(s.id_token,r,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},s),{decodedToken:i,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(o||i.claims.org_id),Object.assign(Object.assign({},s),{decodedToken:i})}}function An(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 Kt=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},sf={isLoading:J(!1),isAuthenticated:J(!1),user:J(void 0),idTokenClaims:J(void 0),error:J(null),loginWithPopup:Kt,loginWithRedirect:Kt,getAccessTokenSilently:Kt,getAccessTokenWithPopup:Kt,logout:Kt,checkSession:Kt,handleRedirectCallback:Kt},of=J(sf);class af{constructor(t,n){var r,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=J(!0),this.isAuthenticated=J(!1),this.user=J({}),this.idTokenClaims=J(),this.error=J(null),r=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter(s=>!o.includes(s)).forEach(s=>r[s]=r[s].bind(r))}install(t){this._client=new rf(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(Ai,this),of.value=this}async loginWithRedirect(t){return An(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return An(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 An(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return An(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,o;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 i=await this.handleRedirectCallback(),a=i?.appState,l=(r=a?.target)!==null&&r!==void 0?r:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.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(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return r}}function Ki(e,t){return An(e),new af(e,t)}function Vi(){return Ye(Ai)}/*!
9
- * shared v9.5.0
8
+ `)})(),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)s=t.cache;else{if(n=t.cacheLocation||"memory",!Hi(n))throw new Error(`Invalid cache location "${n}"`);s=Hi(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?ln:Zu,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:Ju;var r;this.scope=Es("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Bu(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Mi,this.cacheManager=new Xu(s,s.allKeys?void 0:new Qu(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new qu)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Fi)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Ir(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(m=>{const h=m.split("."),[b,I,k]=h;if(h.length!==3||!b||!I||!k)throw new Error("ID token could not be decoded");const O=JSON.parse($i(I)),g={__raw:m},y={};return Object.keys(O).forEach(L=>{g[L]=O[L],Gu.includes(L)||(y[L]=O[L])}),{encoded:{header:b,payload:I,signature:k},header:JSON.parse($i(b)),claims:g,user:y}})(i.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!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.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(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.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!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!An(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||!An(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!An(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=i.leeway||60,f=new Date(i.now||Date.now()),d=new Date(0);if(d.setUTCSeconds(a.claims.exp+l),f>d)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${f}) is after expiration time (${d})`);if(a.claims.nbf!=null&&An(a.claims.nbf)){const m=new Date(0);if(m.setUTCSeconds(a.claims.nbf-l),f<m)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${f}) is before ${m}`)}if(a.claims.auth_time!=null&&An(a.claims.auth_time)){const m=new Date(0);if(m.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),f>m)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 (${f}) is after last auth at ${m}`)}if(i.organization){const m=i.organization.trim();if(m.startsWith("org_")){const h=m;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(h!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${h}", found "${a.claims.org_id}"`)}else{const h=m.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(h!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${h}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:o});var r}_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,s){const o=Ui(wr()),r=Ui(wr()),i=wr(),a=(d=>{const m=new Uint8Array(d);return(h=>{const b={"+":"-","/":"_","=":""};return h.replace(/[+/=]/g,I=>b[I])})(window.btoa(String.fromCharCode(...Array.from(m))))})(await(async d=>await vs().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(i)),l=((d,m,h,b,I,k,O,g)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),h),{scope:Es(m,h.scope),response_type:"code",response_mode:g||"query",state:b,nonce:I,redirect_uri:O||d.authorizationParams.redirect_uri,code_challenge:k,code_challenge_method:"S256"}))(this.options,this.scope,t,o,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),f=this._authorizeUrl(l);return{nonce:r,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:f}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${f},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 o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const r=await(a=>new Promise((l,f)=>{let d;const m=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(m),clearTimeout(h),window.removeEventListener("message",d,!1),f(new vr(a.popup)))},1e3),h=setTimeout(()=>{clearInterval(m),f(new yr(a.popup)),window.removeEventListener("message",d,!1)},1e3*(a.timeoutInSeconds||60));d=function(b){if(b.data&&b.data.type==="authorization_response"){if(clearTimeout(h),clearInterval(m),window.removeEventListener("message",d,!1),a.popup.close(),b.data.response.error)return f(Ne.fromPayload(b.data.response));l(b.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==r.state)throw new Ne("state_mismatch","Invalid state");const i=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}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 s=Vi(t),{openUrl:o,fragment:r,appState:i}=s,a=ot(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:d}=f,m=ot(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},m),{appState:i}),l&&{organization:l}));const h=r?`${d}#${r}`:d;o?await o(h):window.location.assign(h)}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:s,code:o,error:r,error_description:i}=(m=>{m.indexOf("#")>-1&&(m=m.substring(0,m.indexOf("#")));const h=new URLSearchParams(m);return{state:h.get("state"),code:h.get("code")||void 0,error:h.get("error")||void 0,error_description:h.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ne("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new br(r,i||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ne("state_mismatch","Invalid state");const l=a.organization,f=a.nonce,d=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:o},d?{redirect_uri:d}:{}),{nonceIn:f,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 s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Es(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((r,i)=>{let a=Tr[i];return a||(a=r().finally(()=>{delete Tr[i],a=null}),Tr[i]=a),a})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=ot(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,r=3)=>{for(let i=0;i<r;i++)if(await o())return!0;return!1})(()=>Lr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Sn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:r,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await Lr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Es(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Wu),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new it({scope:o.authorizationParams.scope,audience:o.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:s}=n,o=ot(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Ir(Object.assign({clientId:t.clientId},o))}`)+r}async logout(t={}){const n=Vi(t),{openUrl:s}=n,o=ot(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 r=this._buildLogoutUrl(o);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:o,state:r,nonce:i,code_verifier:a,redirect_uri:l,scope:f,audience:d}=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 m=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,h=await((I,k,O=60)=>new Promise((g,y)=>{const L=window.document.createElement("iframe");L.setAttribute("width","0"),L.setAttribute("height","0"),L.style.display="none";const w=()=>{window.document.body.contains(L)&&(window.document.body.removeChild(L),window.removeEventListener("message",P,!1))};let P;const F=setTimeout(()=>{y(new Sn),w()},1e3*O);P=function(C){if(C.origin!=k||!C.data||C.data.type!=="authorization_response")return;const D=C.source;D&&D.close(),C.data.response.error?y(Ne.fromPayload(C.data.response)):g(C.data.response),clearTimeout(F),window.removeEventListener("message",P,!1),setTimeout(w,2e3)},window.addEventListener("message",P,!1),window.document.body.appendChild(L),L.setAttribute("src",I)}))(o,this.domainUrl,m);if(r!==h.state)throw new Ne("state_mismatch","Invalid state");const b=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:h.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:n.organization});return Object.assign(Object.assign({},b),{scope:f,oauthTokenScope:b.scope,audience:d})}catch(m){throw m.error==="login_required"&&this.logout({openUrl:!1}),m}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new it({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 ys(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),o&&{timeout:o}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=ot(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new it({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const o=await this.cacheManager.get(new it({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:r,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},r=await Vu(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(r.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:i,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||i.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:i})}}function Rn(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 Xt=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},nf={isLoading:q(!1),isAuthenticated:q(!1),user:q(void 0),idTokenClaims:q(void 0),error:q(null),loginWithPopup:Xt,loginWithRedirect:Xt,getAccessTokenSilently:Xt,getAccessTokenWithPopup:Xt,logout:Xt,checkSession:Xt,handleRedirectCallback:Xt},sf=q(nf);class rf{constructor(t,n){var s,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=q(!0),this.isAuthenticated=q(!1),this.user=q({}),this.idTokenClaims=q(),this.error=q(null),s=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!o.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new tf(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(xi,this),sf.value=this}async loginWithRedirect(t){return Rn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Rn(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 Rn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Rn(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,s,o;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const i=await this.handleRedirectCallback(),a=i?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.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 s;try{s=await t(),this.error.value=null}catch(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return s}}function Yi(e,t){return Rn(e),new rf(e,t)}function Xi(){return Ye(xi)}/*!
9
+ * shared v9.6.5
10
10
  * (c) 2023 kazuya kawaguchi
11
11
  * Released under the MIT License.
12
- */const Ts=typeof window<"u",It=(e,t=!1)=>t?Symbol.for(e):Symbol(e),lf=(e,t,n)=>cf({l:e,k:t,s:n}),cf=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ye=e=>typeof e=="number"&&isFinite(e),uf=e=>Gi(e)==="[object Date]",kt=e=>Gi(e)==="[object RegExp]",yr=e=>V(e)&&Object.keys(e).length===0,Ie=Object.assign;let Yi;const ht=()=>Yi||(Yi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xi(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const ff=Object.prototype.hasOwnProperty;function Ls(e,t){return ff.call(e,t)}const fe=Array.isArray,he=e=>typeof e=="function",D=e=>typeof e=="string",G=e=>typeof e=="boolean",se=e=>e!==null&&typeof e=="object",Bi=Object.prototype.toString,Gi=e=>Bi.call(e),V=e=>{if(!se(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},df=e=>e==null?"":fe(e)||V(e)&&e.toString===Bi?JSON.stringify(e,null,2):String(e);function mf(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}function Os(e){let t=e;return()=>++t}function hf(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}/*!
13
- * message-compiler v9.5.0
12
+ */const Or=typeof window<"u",It=(e,t=!1)=>t?Symbol.for(e):Symbol(e),of=(e,t,n)=>af({l:e,k:t,s:n}),af=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ve=e=>typeof e=="number"&&isFinite(e),lf=e=>Zi(e)==="[object Date]",kt=e=>Zi(e)==="[object RegExp]",ws=e=>Y(e)&&Object.keys(e).length===0,Te=Object.assign;let Bi;const ht=()=>Bi||(Bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gi(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const cf=Object.prototype.hasOwnProperty;function xn(e,t){return cf.call(e,t)}const ue=Array.isArray,me=e=>typeof e=="function",U=e=>typeof e=="string",z=e=>typeof e=="boolean",re=e=>e!==null&&typeof e=="object",zi=Object.prototype.toString,Zi=e=>zi.call(e),Y=e=>{if(!re(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},uf=e=>e==null?"":ue(e)||Y(e)&&e.toString===zi?JSON.stringify(e,null,2):String(e);function ff(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function Nr(e){let t=e;return()=>++t}function df(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}/*!
13
+ * message-compiler v9.6.5
14
14
  * (c) 2023 kazuya kawaguchi
15
15
  * Released under the MIT License.
16
- */function pf(e,t,n){return{line:e,column:t,offset:n}}function Ns(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const _f=/\{([0-9a-zA-Z]+)\}/g;function gf(e,...t){return t.length===1&&bf(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(_f,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const zi=Object.assign,Zi=e=>typeof e=="string",bf=e=>e!==null&&typeof e=="object";function Ji(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}const H={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},yf={[H.EXPECTED_TOKEN]:"Expected token: '{0}'",[H.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[H.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[H.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[H.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[H.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[H.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[H.EMPTY_PLACEHOLDER]:"Empty placeholder",[H.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[H.INVALID_LINKED_FORMAT]:"Invalid linked format",[H.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[H.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[H.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[H.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[H.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[H.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function cn(e,t,n={}){const{domain:r,messages:o,args:s}=n,i=gf((o||yf)[e]||"",...s||[]),a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}function vf(e){throw e}const pt=" ",Ef="\r",Ce=`
17
- `,wf=String.fromCharCode(8232),If=String.fromCharCode(8233);function kf(e){const t=e;let n=0,r=1,o=1,s=0;const i=M=>t[M]===Ef&&t[M+1]===Ce,a=M=>t[M]===Ce,l=M=>t[M]===If,f=M=>t[M]===wf,d=M=>i(M)||a(M)||l(M)||f(M),m=()=>n,h=()=>r,b=()=>o,w=()=>s,k=M=>i(M)||l(M)||f(M)?Ce:t[M],L=()=>k(n),_=()=>k(n+s);function y(){return s=0,d(n)&&(r++,o=0),i(n)&&n++,n++,o++,t[n]}function N(){return i(n+s)&&s++,s++,t[n+s]}function I(){n=0,r=1,o=1,s=0}function P(M=0){s=M}function C(){const M=n+s;for(;M!==n;)y();s=0}return{index:m,line:h,column:b,peekOffset:w,charAt:k,currentChar:L,currentPeek:_,next:y,peek:N,reset:I,resetPeek:P,skipToPeek:C}}const Tt=void 0,Tf=".",qi="'",Lf="tokenizer";function Of(e,t={}){const n=t.location!==!1,r=kf(e),o=()=>r.index(),s=()=>pf(r.line(),r.column(),r.index()),i=s(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},f=()=>l,{onError:d}=t;function m(c,u,p,...v){const O=f();if(u.column+=p,u.offset+=p,d){const S=n?Ns(O.startLoc,u):null,R=cn(c,S,{domain:Lf,args:v});d(R)}}function h(c,u,p){c.endLoc=s(),c.currentType=u;const v={type:u};return n&&(v.loc=Ns(c.startLoc,c.endLoc)),p!=null&&(v.value=p),v}const b=c=>h(c,14);function w(c,u){return c.currentChar()===u?(c.next(),u):(m(H.EXPECTED_TOKEN,s(),0,u),"")}function k(c){let u="";for(;c.currentPeek()===pt||c.currentPeek()===Ce;)u+=c.currentPeek(),c.peek();return u}function L(c){const u=k(c);return c.skipToPeek(),u}function _(c){if(c===Tt)return!1;const u=c.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function y(c){if(c===Tt)return!1;const u=c.charCodeAt(0);return u>=48&&u<=57}function N(c,u){const{currentType:p}=u;if(p!==2)return!1;k(c);const v=_(c.currentPeek());return c.resetPeek(),v}function I(c,u){const{currentType:p}=u;if(p!==2)return!1;k(c);const v=c.currentPeek()==="-"?c.peek():c.currentPeek(),O=y(v);return c.resetPeek(),O}function P(c,u){const{currentType:p}=u;if(p!==2)return!1;k(c);const v=c.currentPeek()===qi;return c.resetPeek(),v}function C(c,u){const{currentType:p}=u;if(p!==8)return!1;k(c);const v=c.currentPeek()===".";return c.resetPeek(),v}function M(c,u){const{currentType:p}=u;if(p!==9)return!1;k(c);const v=_(c.currentPeek());return c.resetPeek(),v}function x(c,u){const{currentType:p}=u;if(!(p===8||p===12))return!1;k(c);const v=c.currentPeek()===":";return c.resetPeek(),v}function $(c,u){const{currentType:p}=u;if(p!==10)return!1;const v=()=>{const S=c.currentPeek();return S==="{"?_(c.peek()):S==="@"||S==="%"||S==="|"||S===":"||S==="."||S===pt||!S?!1:S===Ce?(c.peek(),v()):_(S)},O=v();return c.resetPeek(),O}function Z(c){k(c);const u=c.currentPeek()==="|";return c.resetPeek(),u}function ae(c){const u=k(c),p=c.currentPeek()==="%"&&c.peek()==="{";return c.resetPeek(),{isModulo:p,hasSpace:u.length>0}}function ie(c,u=!0){const p=(O=!1,S="",R=!1)=>{const F=c.currentPeek();return F==="{"?S==="%"?!1:O:F==="@"||!F?S==="%"?!0:O:F==="%"?(c.peek(),p(O,"%",!0)):F==="|"?S==="%"||R?!0:!(S===pt||S===Ce):F===pt?(c.peek(),p(!0,pt,R)):F===Ce?(c.peek(),p(!0,Ce,R)):!0},v=p();return u&&c.resetPeek(),v}function Ee(c,u){const p=c.currentChar();return p===Tt?Tt:u(p)?(c.next(),p):null}function Xe(c){return Ee(c,p=>{const v=p.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36})}function Me(c){return Ee(c,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57})}function B(c){return Ee(c,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102})}function oe(c){let u="",p="";for(;u=Me(c);)p+=u;return p}function z(c){L(c);const u=c.currentChar();return u!=="%"&&m(H.EXPECTED_TOKEN,s(),0,u),c.next(),"%"}function Pe(c){let u="";for(;;){const p=c.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(ie(c))u+=p,c.next();else break;else if(p===pt||p===Ce)if(ie(c))u+=p,c.next();else{if(Z(c))break;u+=p,c.next()}else u+=p,c.next()}return u}function at(c){L(c);let u="",p="";for(;u=Xe(c);)p+=u;return c.currentChar()===Tt&&m(H.UNTERMINATED_CLOSING_BRACE,s(),0),p}function He(c){L(c);let u="";return c.currentChar()==="-"?(c.next(),u+=`-${oe(c)}`):u+=oe(c),c.currentChar()===Tt&&m(H.UNTERMINATED_CLOSING_BRACE,s(),0),u}function Oe(c){L(c),w(c,"'");let u="",p="";const v=S=>S!==qi&&S!==Ce;for(;u=Ee(c,v);)u==="\\"?p+=Ct(c):p+=u;const O=c.currentChar();return O===Ce||O===Tt?(m(H.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),O===Ce&&(c.next(),w(c,"'")),p):(w(c,"'"),p)}function Ct(c){const u=c.currentChar();switch(u){case"\\":case"'":return c.next(),`\\${u}`;case"u":return Xt(c,u,4);case"U":return Xt(c,u,6);default:return m(H.UNKNOWN_ESCAPE_SEQUENCE,s(),0,u),""}}function Xt(c,u,p){w(c,u);let v="";for(let O=0;O<p;O++){const S=B(c);if(!S){m(H.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${u}${v}${c.currentChar()}`);break}v+=S}return`\\${u}${v}`}function Bt(c){L(c);let u="",p="";const v=O=>O!=="{"&&O!=="}"&&O!==pt&&O!==Ce;for(;u=Ee(c,v);)p+=u;return p}function Se(c){let u="",p="";for(;u=Xe(c);)p+=u;return p}function lt(c){const u=(p=!1,v)=>{const O=c.currentChar();return O==="{"||O==="%"||O==="@"||O==="|"||O==="("||O===")"||!O||O===pt?v:O===Ce||O===Tf?(v+=O,c.next(),u(p,v)):(v+=O,c.next(),u(!0,v))};return u(!1,"")}function ct(c){L(c);const u=w(c,"|");return L(c),u}function Ue(c,u){let p=null;switch(c.currentChar()){case"{":return u.braceNest>=1&&m(H.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),c.next(),p=h(u,2,"{"),L(c),u.braceNest++,p;case"}":return u.braceNest>0&&u.currentType===2&&m(H.EMPTY_PLACEHOLDER,s(),0),c.next(),p=h(u,3,"}"),u.braceNest--,u.braceNest>0&&L(c),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),p;case"@":return u.braceNest>0&&m(H.UNTERMINATED_CLOSING_BRACE,s(),0),p=Be(c,u)||b(u),u.braceNest=0,p;default:let O=!0,S=!0,R=!0;if(Z(c))return u.braceNest>0&&m(H.UNTERMINATED_CLOSING_BRACE,s(),0),p=h(u,1,ct(c)),u.braceNest=0,u.inLinked=!1,p;if(u.braceNest>0&&(u.currentType===5||u.currentType===6||u.currentType===7))return m(H.UNTERMINATED_CLOSING_BRACE,s(),0),u.braceNest=0,Qe(c,u);if(O=N(c,u))return p=h(u,5,at(c)),L(c),p;if(S=I(c,u))return p=h(u,6,He(c)),L(c),p;if(R=P(c,u))return p=h(u,7,Oe(c)),L(c),p;if(!O&&!S&&!R)return p=h(u,13,Bt(c)),m(H.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,p.value),L(c),p;break}return p}function Be(c,u){const{currentType:p}=u;let v=null;const O=c.currentChar();switch((p===8||p===9||p===12||p===10)&&(O===Ce||O===pt)&&m(H.INVALID_LINKED_FORMAT,s(),0),O){case"@":return c.next(),v=h(u,8,"@"),u.inLinked=!0,v;case".":return L(c),c.next(),h(u,9,".");case":":return L(c),c.next(),h(u,10,":");default:return Z(c)?(v=h(u,1,ct(c)),u.braceNest=0,u.inLinked=!1,v):C(c,u)||x(c,u)?(L(c),Be(c,u)):M(c,u)?(L(c),h(u,12,Se(c))):$(c,u)?(L(c),O==="{"?Ue(c,u)||v:h(u,11,lt(c))):(p===8&&m(H.INVALID_LINKED_FORMAT,s(),0),u.braceNest=0,u.inLinked=!1,Qe(c,u))}}function Qe(c,u){let p={type:14};if(u.braceNest>0)return Ue(c,u)||b(u);if(u.inLinked)return Be(c,u)||b(u);switch(c.currentChar()){case"{":return Ue(c,u)||b(u);case"}":return m(H.UNBALANCED_CLOSING_BRACE,s(),0),c.next(),h(u,3,"}");case"@":return Be(c,u)||b(u);default:if(Z(c))return p=h(u,1,ct(c)),u.braceNest=0,u.inLinked=!1,p;const{isModulo:O,hasSpace:S}=ae(c);if(O)return S?h(u,0,Pe(c)):h(u,4,z(c));if(ie(c))return h(u,0,Pe(c));break}return p}function g(){const{currentType:c,offset:u,startLoc:p,endLoc:v}=l;return l.lastType=c,l.lastOffset=u,l.lastStartLoc=p,l.lastEndLoc=v,l.offset=o(),l.startLoc=s(),r.currentChar()===Tt?h(l,14):Qe(r,l)}return{nextToken:g,currentOffset:o,currentPosition:s,context:f}}const Nf="parser",Cf=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Pf(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 Sf(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,y,N,I,...P){const C=_.currentPosition();if(C.offset+=I,C.column+=I,n){const M=t?Ns(N,C):null,x=cn(y,M,{domain:Nf,args:P});n(x)}}function o(_,y,N){const I={type:_};return t&&(I.start=y,I.end=y,I.loc={start:N,end:N}),I}function s(_,y,N,I){I&&(_.type=I),t&&(_.end=y,_.loc&&(_.loc.end=N))}function i(_,y){const N=_.context(),I=o(3,N.offset,N.startLoc);return I.value=y,s(I,_.currentOffset(),_.currentPosition()),I}function a(_,y){const N=_.context(),{lastOffset:I,lastStartLoc:P}=N,C=o(5,I,P);return C.index=parseInt(y,10),_.nextToken(),s(C,_.currentOffset(),_.currentPosition()),C}function l(_,y){const N=_.context(),{lastOffset:I,lastStartLoc:P}=N,C=o(4,I,P);return C.key=y,_.nextToken(),s(C,_.currentOffset(),_.currentPosition()),C}function f(_,y){const N=_.context(),{lastOffset:I,lastStartLoc:P}=N,C=o(9,I,P);return C.value=y.replace(Cf,Pf),_.nextToken(),s(C,_.currentOffset(),_.currentPosition()),C}function d(_){const y=_.nextToken(),N=_.context(),{lastOffset:I,lastStartLoc:P}=N,C=o(8,I,P);return y.type!==12?(r(_,H.UNEXPECTED_EMPTY_LINKED_MODIFIER,N.lastStartLoc,0),C.value="",s(C,I,P),{nextConsumeToken:y,node:C}):(y.value==null&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,it(y)),C.value=y.value||"",s(C,_.currentOffset(),_.currentPosition()),{node:C})}function m(_,y){const N=_.context(),I=o(7,N.offset,N.startLoc);return I.value=y,s(I,_.currentOffset(),_.currentPosition()),I}function h(_){const y=_.context(),N=o(6,y.offset,y.startLoc);let I=_.nextToken();if(I.type===9){const P=d(_);N.modifier=P.node,I=P.nextConsumeToken||_.nextToken()}switch(I.type!==10&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,it(I)),I=_.nextToken(),I.type===2&&(I=_.nextToken()),I.type){case 11:I.value==null&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,it(I)),N.key=m(_,I.value||"");break;case 5:I.value==null&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,it(I)),N.key=l(_,I.value||"");break;case 6:I.value==null&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,it(I)),N.key=a(_,I.value||"");break;case 7:I.value==null&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,it(I)),N.key=f(_,I.value||"");break;default:r(_,H.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const P=_.context(),C=o(7,P.offset,P.startLoc);return C.value="",s(C,P.offset,P.startLoc),N.key=C,s(N,P.offset,P.startLoc),{nextConsumeToken:I,node:N}}return s(N,_.currentOffset(),_.currentPosition()),{node:N}}function b(_){const y=_.context(),N=y.currentType===1?_.currentOffset():y.offset,I=y.currentType===1?y.endLoc:y.startLoc,P=o(2,N,I);P.items=[];let C=null;do{const $=C||_.nextToken();switch(C=null,$.type){case 0:$.value==null&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,it($)),P.items.push(i(_,$.value||""));break;case 6:$.value==null&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,it($)),P.items.push(a(_,$.value||""));break;case 5:$.value==null&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,it($)),P.items.push(l(_,$.value||""));break;case 7:$.value==null&&r(_,H.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,it($)),P.items.push(f(_,$.value||""));break;case 8:const Z=h(_);P.items.push(Z.node),C=Z.nextConsumeToken||null;break}}while(y.currentType!==14&&y.currentType!==1);const M=y.currentType===1?y.lastOffset:_.currentOffset(),x=y.currentType===1?y.lastEndLoc:_.currentPosition();return s(P,M,x),P}function w(_,y,N,I){const P=_.context();let C=I.items.length===0;const M=o(1,y,N);M.cases=[],M.cases.push(I);do{const x=b(_);C||(C=x.items.length===0),M.cases.push(x)}while(P.currentType!==14);return C&&r(_,H.MUST_HAVE_MESSAGES_IN_PLURAL,N,0),s(M,_.currentOffset(),_.currentPosition()),M}function k(_){const y=_.context(),{offset:N,startLoc:I}=y,P=b(_);return y.currentType===14?P:w(_,N,I,P)}function L(_){const y=Of(_,zi({},e)),N=y.context(),I=o(0,N.offset,N.startLoc);return t&&I.loc&&(I.loc.source=_),I.body=k(y),e.onCacheKey&&(I.cacheKey=e.onCacheKey(_)),N.currentType!==14&&r(y,H.UNEXPECTED_LEXICAL_ANALYSIS,N.lastStartLoc,0,_[N.offset]||""),s(I,y.currentOffset(),y.currentPosition()),I}return{parse:L}}function it(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 Af(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Qi(e,t){for(let n=0;n<e.length;n++)Cs(e[n],t)}function Cs(e,t){switch(e.type){case 1:Qi(e.cases,t),t.helper("plural");break;case 2:Qi(e.items,t);break;case 6:Cs(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 Rf(e,t={}){const n=Af(e);n.helper("normalize"),e.body&&Cs(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Ff(e){const t=e.body;return t.type===2?ea(t):t.cases.forEach(n=>ea(n)),e}function ea(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=Ji(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 xf="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 n=e,r=n.cases;for(let d=0;d<r.length;d++)un(r[d]);n.c=r,delete n.cases;break;case 2:const o=e,s=o.items;for(let d=0;d<s.length;d++)un(s[d]);o.i=s,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const i=e;i.value&&(i.v=i.value,delete i.value);break;case 6:const a=e;un(a.key),a.k=a.key,delete a.key,a.modifier&&(un(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const f=e;f.k=f.key,delete f.key;break;default:throw cn(H.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:xf,args:[e.type]})}delete e.type}const Df="parser";function Mf(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:s}=t,i=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:s,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function f(L,_){a.code+=L}function d(L,_=!0){const y=_?o:"";f(s?y+" ".repeat(L):y)}function m(L=!0){const _=++a.indentLevel;L&&d(_)}function h(L=!0){const _=--a.indentLevel;L&&d(_)}function b(){d(a.indentLevel)}return{context:l,push:f,indent:m,deindent:h,newline:b,helper:L=>`_${L}`,needIndent:()=>a.needIndent}}function Uf(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),fn(e,t.key),t.modifier?(e.push(", "),fn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function $f(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let s=0;s<o&&(fn(e,t.items[s]),s!==o-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function jf(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let s=0;s<o&&(fn(e,t.cases[s]),s!==o-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Wf(e,t){t.body?fn(e,t.body):e.push("null")}function fn(e,t){const{helper:n}=e;switch(t.type){case 0:Wf(e,t);break;case 1:jf(e,t);break;case 2:$f(e,t);break;case 6:Uf(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 cn(H.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Df,args:[t.type]})}}const Hf=(e,t={})=>{const n=Zi(t.mode)?t.mode:"normal",r=Zi(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
18
- `,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Mf(e,{mode:n,filename:r,sourceMap:o,breakLineCode:s,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${Ji(a.map(m=>`${m}: _${m}`),", ")} } = ctx`),l.newline()),l.push("return "),fn(l,e),l.deindent(i),l.push("}"),delete e.helpers;const{code:f,map:d}=l.context();return{ast:e,code:f,map:d?d.toJSON():void 0}};function Kf(e,t={}){const n=zi({},t),r=!!n.jit,o=!!n.minify,s=n.optimize==null?!0:n.optimize,a=Sf(n).parse(e);return r?(s&&Ff(a),o&&un(a),{ast:a,code:""}):(Rf(a,n),Hf(a,n))}/*!
19
- * core-base v9.5.0
16
+ */function mf(e,t,n){return{line:e,column:t,offset:n}}function Cr(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const hf=/\{([0-9a-zA-Z]+)\}/g;function pf(e,...t){return t.length===1&&_f(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(hf,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const Ji=Object.assign,qi=e=>typeof e=="string",_f=e=>e!==null&&typeof e=="object";function Qi(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}const K={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},gf={[K.EXPECTED_TOKEN]:"Expected token: '{0}'",[K.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[K.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[K.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[K.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[K.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[K.EMPTY_PLACEHOLDER]:"Empty placeholder",[K.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[K.INVALID_LINKED_FORMAT]:"Invalid linked format",[K.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[K.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[K.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[K.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[K.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[K.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function cn(e,t,n={}){const{domain:s,messages:o,args:r}=n,i=pf((o||gf)[e]||"",...r||[]),a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function bf(e){throw e}const pt=" ",yf="\r",Se=`
17
+ `,vf=String.fromCharCode(8232),Ef=String.fromCharCode(8233);function wf(e){const t=e;let n=0,s=1,o=1,r=0;const i=C=>t[C]===yf&&t[C+1]===Se,a=C=>t[C]===Se,l=C=>t[C]===Ef,f=C=>t[C]===vf,d=C=>i(C)||a(C)||l(C)||f(C),m=()=>n,h=()=>s,b=()=>o,I=()=>r,k=C=>i(C)||l(C)||f(C)?Se:t[C],O=()=>k(n),g=()=>k(n+r);function y(){return r=0,d(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function L(){return i(n+r)&&r++,r++,t[n+r]}function w(){n=0,s=1,o=1,r=0}function P(C=0){r=C}function F(){const C=n+r;for(;C!==n;)y();r=0}return{index:m,line:h,column:b,peekOffset:I,charAt:k,currentChar:O,currentPeek:g,next:y,peek:L,reset:w,resetPeek:P,skipToPeek:F}}const Tt=void 0,If=".",ea="'",kf="tokenizer";function Tf(e,t={}){const n=t.location!==!1,s=wf(e),o=()=>s.index(),r=()=>mf(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},f=()=>l,{onError:d}=t;function m(c,u,p,...v){const N=f();if(u.column+=p,u.offset+=p,d){const S=n?Cr(N.startLoc,u):null,R=cn(c,S,{domain:kf,args:v});d(R)}}function h(c,u,p){c.endLoc=r(),c.currentType=u;const v={type:u};return n&&(v.loc=Cr(c.startLoc,c.endLoc)),p!=null&&(v.value=p),v}const b=c=>h(c,14);function I(c,u){return c.currentChar()===u?(c.next(),u):(m(K.EXPECTED_TOKEN,r(),0,u),"")}function k(c){let u="";for(;c.currentPeek()===pt||c.currentPeek()===Se;)u+=c.currentPeek(),c.peek();return u}function O(c){const u=k(c);return c.skipToPeek(),u}function g(c){if(c===Tt)return!1;const u=c.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function y(c){if(c===Tt)return!1;const u=c.charCodeAt(0);return u>=48&&u<=57}function L(c,u){const{currentType:p}=u;if(p!==2)return!1;k(c);const v=g(c.currentPeek());return c.resetPeek(),v}function w(c,u){const{currentType:p}=u;if(p!==2)return!1;k(c);const v=c.currentPeek()==="-"?c.peek():c.currentPeek(),N=y(v);return c.resetPeek(),N}function P(c,u){const{currentType:p}=u;if(p!==2)return!1;k(c);const v=c.currentPeek()===ea;return c.resetPeek(),v}function F(c,u){const{currentType:p}=u;if(p!==8)return!1;k(c);const v=c.currentPeek()===".";return c.resetPeek(),v}function C(c,u){const{currentType:p}=u;if(p!==9)return!1;k(c);const v=g(c.currentPeek());return c.resetPeek(),v}function D(c,u){const{currentType:p}=u;if(!(p===8||p===12))return!1;k(c);const v=c.currentPeek()===":";return c.resetPeek(),v}function $(c,u){const{currentType:p}=u;if(p!==10)return!1;const v=()=>{const S=c.currentPeek();return S==="{"?g(c.peek()):S==="@"||S==="%"||S==="|"||S===":"||S==="."||S===pt||!S?!1:S===Se?(c.peek(),v()):g(S)},N=v();return c.resetPeek(),N}function Z(c){k(c);const u=c.currentPeek()==="|";return c.resetPeek(),u}function ae(c){const u=k(c),p=c.currentPeek()==="%"&&c.peek()==="{";return c.resetPeek(),{isModulo:p,hasSpace:u.length>0}}function ie(c,u=!0){const p=(N=!1,S="",R=!1)=>{const x=c.currentPeek();return x==="{"?S==="%"?!1:N:x==="@"||!x?S==="%"?!0:N:x==="%"?(c.peek(),p(N,"%",!0)):x==="|"?S==="%"||R?!0:!(S===pt||S===Se):x===pt?(c.peek(),p(!0,pt,R)):x===Se?(c.peek(),p(!0,Se,R)):!0},v=p();return u&&c.resetPeek(),v}function we(c,u){const p=c.currentChar();return p===Tt?Tt:u(p)?(c.next(),p):null}function Be(c){return we(c,p=>{const v=p.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36})}function Ue(c){return we(c,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57})}function G(c){return we(c,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102})}function oe(c){let u="",p="";for(;u=Ue(c);)p+=u;return p}function te(c){O(c);const u=c.currentChar();return u!=="%"&&m(K.EXPECTED_TOKEN,r(),0,u),c.next(),"%"}function _e(c){let u="";for(;;){const p=c.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(ie(c))u+=p,c.next();else break;else if(p===pt||p===Se)if(ie(c))u+=p,c.next();else{if(Z(c))break;u+=p,c.next()}else u+=p,c.next()}return u}function Qe(c){O(c);let u="",p="";for(;u=Be(c);)p+=u;return c.currentChar()===Tt&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),p}function He(c){O(c);let u="";return c.currentChar()==="-"?(c.next(),u+=`-${oe(c)}`):u+=oe(c),c.currentChar()===Tt&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),u}function Ce(c){O(c),I(c,"'");let u="",p="";const v=S=>S!==ea&&S!==Se;for(;u=we(c,v);)u==="\\"?p+=Ct(c):p+=u;const N=c.currentChar();return N===Se||N===Tt?(m(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),N===Se&&(c.next(),I(c,"'")),p):(I(c,"'"),p)}function Ct(c){const u=c.currentChar();switch(u){case"\\":case"'":return c.next(),`\\${u}`;case"u":return Pt(c,u,4);case"U":return Pt(c,u,6);default:return m(K.UNKNOWN_ESCAPE_SEQUENCE,r(),0,u),""}}function Pt(c,u,p){I(c,u);let v="";for(let N=0;N<p;N++){const S=G(c);if(!S){m(K.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${u}${v}${c.currentChar()}`);break}v+=S}return`\\${u}${v}`}function pn(c){O(c);let u="",p="";const v=N=>N!=="{"&&N!=="}"&&N!==pt&&N!==Se;for(;u=we(c,v);)p+=u;return p}function Ae(c){let u="",p="";for(;u=Be(c);)p+=u;return p}function lt(c){const u=(p=!1,v)=>{const N=c.currentChar();return N==="{"||N==="%"||N==="@"||N==="|"||N==="("||N===")"||!N||N===pt?v:N===Se||N===If?(v+=N,c.next(),u(p,v)):(v+=N,c.next(),u(!0,v))};return u(!1,"")}function ct(c){O(c);const u=I(c,"|");return O(c),u}function $e(c,u){let p=null;switch(c.currentChar()){case"{":return u.braceNest>=1&&m(K.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),c.next(),p=h(u,2,"{"),O(c),u.braceNest++,p;case"}":return u.braceNest>0&&u.currentType===2&&m(K.EMPTY_PLACEHOLDER,r(),0),c.next(),p=h(u,3,"}"),u.braceNest--,u.braceNest>0&&O(c),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),p;case"@":return u.braceNest>0&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),p=Ge(c,u)||b(u),u.braceNest=0,p;default:let N=!0,S=!0,R=!0;if(Z(c))return u.braceNest>0&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),p=h(u,1,ct(c)),u.braceNest=0,u.inLinked=!1,p;if(u.braceNest>0&&(u.currentType===5||u.currentType===6||u.currentType===7))return m(K.UNTERMINATED_CLOSING_BRACE,r(),0),u.braceNest=0,et(c,u);if(N=L(c,u))return p=h(u,5,Qe(c)),O(c),p;if(S=w(c,u))return p=h(u,6,He(c)),O(c),p;if(R=P(c,u))return p=h(u,7,Ce(c)),O(c),p;if(!N&&!S&&!R)return p=h(u,13,pn(c)),m(K.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),O(c),p;break}return p}function Ge(c,u){const{currentType:p}=u;let v=null;const N=c.currentChar();switch((p===8||p===9||p===12||p===10)&&(N===Se||N===pt)&&m(K.INVALID_LINKED_FORMAT,r(),0),N){case"@":return c.next(),v=h(u,8,"@"),u.inLinked=!0,v;case".":return O(c),c.next(),h(u,9,".");case":":return O(c),c.next(),h(u,10,":");default:return Z(c)?(v=h(u,1,ct(c)),u.braceNest=0,u.inLinked=!1,v):F(c,u)||D(c,u)?(O(c),Ge(c,u)):C(c,u)?(O(c),h(u,12,Ae(c))):$(c,u)?(O(c),N==="{"?$e(c,u)||v:h(u,11,lt(c))):(p===8&&m(K.INVALID_LINKED_FORMAT,r(),0),u.braceNest=0,u.inLinked=!1,et(c,u))}}function et(c,u){let p={type:14};if(u.braceNest>0)return $e(c,u)||b(u);if(u.inLinked)return Ge(c,u)||b(u);switch(c.currentChar()){case"{":return $e(c,u)||b(u);case"}":return m(K.UNBALANCED_CLOSING_BRACE,r(),0),c.next(),h(u,3,"}");case"@":return Ge(c,u)||b(u);default:if(Z(c))return p=h(u,1,ct(c)),u.braceNest=0,u.inLinked=!1,p;const{isModulo:N,hasSpace:S}=ae(c);if(N)return S?h(u,0,_e(c)):h(u,4,te(c));if(ie(c))return h(u,0,_e(c));break}return p}function _(){const{currentType:c,offset:u,startLoc:p,endLoc:v}=l;return l.lastType=c,l.lastOffset=u,l.lastStartLoc=p,l.lastEndLoc=v,l.offset=o(),l.startLoc=r(),s.currentChar()===Tt?h(l,14):et(s,l)}return{nextToken:_,currentOffset:o,currentPosition:r,context:f}}const Lf="parser",Of=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Nf(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Cf(e={}){const t=e.location!==!1,{onError:n}=e;function s(g,y,L,w,...P){const F=g.currentPosition();if(F.offset+=w,F.column+=w,n){const C=t?Cr(L,F):null,D=cn(y,C,{domain:Lf,args:P});n(D)}}function o(g,y,L){const w={type:g};return t&&(w.start=y,w.end=y,w.loc={start:L,end:L}),w}function r(g,y,L,w){w&&(g.type=w),t&&(g.end=y,g.loc&&(g.loc.end=L))}function i(g,y){const L=g.context(),w=o(3,L.offset,L.startLoc);return w.value=y,r(w,g.currentOffset(),g.currentPosition()),w}function a(g,y){const L=g.context(),{lastOffset:w,lastStartLoc:P}=L,F=o(5,w,P);return F.index=parseInt(y,10),g.nextToken(),r(F,g.currentOffset(),g.currentPosition()),F}function l(g,y){const L=g.context(),{lastOffset:w,lastStartLoc:P}=L,F=o(4,w,P);return F.key=y,g.nextToken(),r(F,g.currentOffset(),g.currentPosition()),F}function f(g,y){const L=g.context(),{lastOffset:w,lastStartLoc:P}=L,F=o(9,w,P);return F.value=y.replace(Of,Nf),g.nextToken(),r(F,g.currentOffset(),g.currentPosition()),F}function d(g){const y=g.nextToken(),L=g.context(),{lastOffset:w,lastStartLoc:P}=L,F=o(8,w,P);return y.type!==12?(s(g,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),F.value="",r(F,w,P),{nextConsumeToken:y,node:F}):(y.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,at(y)),F.value=y.value||"",r(F,g.currentOffset(),g.currentPosition()),{node:F})}function m(g,y){const L=g.context(),w=o(7,L.offset,L.startLoc);return w.value=y,r(w,g.currentOffset(),g.currentPosition()),w}function h(g){const y=g.context(),L=o(6,y.offset,y.startLoc);let w=g.nextToken();if(w.type===9){const P=d(g);L.modifier=P.node,w=P.nextConsumeToken||g.nextToken()}switch(w.type!==10&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),w=g.nextToken(),w.type===2&&(w=g.nextToken()),w.type){case 11:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),L.key=m(g,w.value||"");break;case 5:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),L.key=l(g,w.value||"");break;case 6:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),L.key=a(g,w.value||"");break;case 7:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),L.key=f(g,w.value||"");break;default:s(g,K.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const P=g.context(),F=o(7,P.offset,P.startLoc);return F.value="",r(F,P.offset,P.startLoc),L.key=F,r(L,P.offset,P.startLoc),{nextConsumeToken:w,node:L}}return r(L,g.currentOffset(),g.currentPosition()),{node:L}}function b(g){const y=g.context(),L=y.currentType===1?g.currentOffset():y.offset,w=y.currentType===1?y.endLoc:y.startLoc,P=o(2,L,w);P.items=[];let F=null;do{const $=F||g.nextToken();switch(F=null,$.type){case 0:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at($)),P.items.push(i(g,$.value||""));break;case 6:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at($)),P.items.push(a(g,$.value||""));break;case 5:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at($)),P.items.push(l(g,$.value||""));break;case 7:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at($)),P.items.push(f(g,$.value||""));break;case 8:const Z=h(g);P.items.push(Z.node),F=Z.nextConsumeToken||null;break}}while(y.currentType!==14&&y.currentType!==1);const C=y.currentType===1?y.lastOffset:g.currentOffset(),D=y.currentType===1?y.lastEndLoc:g.currentPosition();return r(P,C,D),P}function I(g,y,L,w){const P=g.context();let F=w.items.length===0;const C=o(1,y,L);C.cases=[],C.cases.push(w);do{const D=b(g);F||(F=D.items.length===0),C.cases.push(D)}while(P.currentType!==14);return F&&s(g,K.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),r(C,g.currentOffset(),g.currentPosition()),C}function k(g){const y=g.context(),{offset:L,startLoc:w}=y,P=b(g);return y.currentType===14?P:I(g,L,w,P)}function O(g){const y=Tf(g,Ji({},e)),L=y.context(),w=o(0,L.offset,L.startLoc);return t&&w.loc&&(w.loc.source=g),w.body=k(y),e.onCacheKey&&(w.cacheKey=e.onCacheKey(g)),L.currentType!==14&&s(y,K.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,g[L.offset]||""),r(w,y.currentOffset(),y.currentPosition()),w}return{parse:O}}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 Pf(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function ta(e,t){for(let n=0;n<e.length;n++)Pr(e[n],t)}function Pr(e,t){switch(e.type){case 1:ta(e.cases,t),t.helper("plural");break;case 2:ta(e.items,t);break;case 6:Pr(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 Sf(e,t={}){const n=Pf(e);n.helper("normalize"),e.body&&Pr(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Af(e){const t=e.body;return t.type===2?na(t):t.cases.forEach(n=>na(n)),e}function na(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 s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Qi(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const Rf="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 n=e,s=n.cases;for(let d=0;d<s.length;d++)un(s[d]);n.c=s,delete n.cases;break;case 2:const o=e,r=o.items;for(let d=0;d<r.length;d++)un(r[d]);o.i=r,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const i=e;i.value&&(i.v=i.value,delete i.value);break;case 6:const a=e;un(a.key),a.k=a.key,delete a.key,a.modifier&&(un(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const f=e;f.k=f.key,delete f.key;break;default:throw cn(K.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Rf,args:[e.type]})}delete e.type}const xf="parser";function Ff(e,t){const{sourceMap:n,filename:s,breakLineCode:o,needIndent:r}=t,i=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function f(O,g){a.code+=O}function d(O,g=!0){const y=g?o:"";f(r?y+" ".repeat(O):y)}function m(O=!0){const g=++a.indentLevel;O&&d(g)}function h(O=!0){const g=--a.indentLevel;O&&d(g)}function b(){d(a.indentLevel)}return{context:l,push:f,indent:m,deindent:h,newline:b,helper:O=>`_${O}`,needIndent:()=>a.needIndent}}function Mf(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),fn(e,t.key),t.modifier?(e.push(", "),fn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Df(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(fn(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Uf(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(fn(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function $f(e,t){t.body?fn(e,t.body):e.push("null")}function fn(e,t){const{helper:n}=e;switch(t.type){case 0:$f(e,t);break;case 1:Uf(e,t);break;case 2:Df(e,t);break;case 6:Mf(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 cn(K.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:xf,args:[t.type]})}}const jf=(e,t={})=>{const n=qi(t.mode)?t.mode:"normal",s=qi(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
18
+ `,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Ff(e,{mode:n,filename:s,sourceMap:o,breakLineCode:r,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${Qi(a.map(m=>`${m}: _${m}`),", ")} } = ctx`),l.newline()),l.push("return "),fn(l,e),l.deindent(i),l.push("}"),delete e.helpers;const{code:f,map:d}=l.context();return{ast:e,code:f,map:d?d.toJSON():void 0}};function Wf(e,t={}){const n=Ji({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Cf(n).parse(e);return s?(r&&Af(a),o&&un(a),{ast:a,code:""}):(Sf(a,n),jf(a,n))}/*!
19
+ * core-base v9.6.5
20
20
  * (c) 2023 kazuya kawaguchi
21
21
  * Released under the MIT License.
22
- */function Vf(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Lt=[];Lt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Lt[1]={w:[1],".":[2],"[":[4],o:[7]},Lt[2]={w:[2],i:[3,0],0:[3,0]},Lt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Lt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Lt[5]={"'":[4,0],o:8,l:[5,0]},Lt[6]={'"':[4,0],o:8,l:[6,0]};const Yf=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Xf(e){return Yf.test(e)}function Bf(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 Gf(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 zf(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Xf(t)?Bf(t):"*"+t}function Zf(e){const t=[];let n=-1,r=0,o=0,s,i,a,l,f,d,m;const h=[];h[0]=()=>{i===void 0?i=a:i+=a},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,i===void 0||(i=zf(i),i===!1))return!1;h[1]()}};function b(){const w=e[n+1];if(r===5&&w==="'"||r===6&&w==='"')return n++,a="\\"+w,h[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&b())){if(l=Gf(s),m=Lt[r],f=m[l]||m.l||8,f===8||(r=f[0],f[1]!==void 0&&(d=h[f[1]],d&&(a=s,d()===!1))))return;if(r===7)return t}}const ta=new Map;function Jf(e,t){return se(e)?e[t]:null}function qf(e,t){if(!se(e))return null;let n=ta.get(t);if(n||(n=Zf(t),n&&ta.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s<r;){const i=o[n[s]];if(i===void 0)return null;o=i,s++}return o}const Qf=e=>e,ed=e=>"",td="text",nd=e=>e.length===0?"":mf(e),rd=df;function na(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function sd(e){const t=ye(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ye(e.named.count)||ye(e.named.n))?ye(e.named.count)?e.named.count:ye(e.named.n)?e.named.n:t:t}function od(e,t){t.count||(t.count=e),t.n||(t.n=e)}function id(e={}){const t=e.locale,n=sd(e),r=se(e.pluralRules)&&D(t)&&he(e.pluralRules[t])?e.pluralRules[t]:na,o=se(e.pluralRules)&&D(t)&&he(e.pluralRules[t])?na:void 0,s=_=>_[r(n,_.length,o)],i=e.list||[],a=_=>i[_],l=e.named||{};ye(e.pluralIndex)&&od(n,l);const f=_=>l[_];function d(_){const y=he(e.messages)?e.messages(_):se(e.messages)?e.messages[_]:!1;return y||(e.parent?e.parent.message(_):ed)}const m=_=>e.modifiers?e.modifiers[_]:Qf,h=V(e.processor)&&he(e.processor.normalize)?e.processor.normalize:nd,b=V(e.processor)&&he(e.processor.interpolate)?e.processor.interpolate:rd,w=V(e.processor)&&D(e.processor.type)?e.processor.type:td,L={list:a,named:f,plural:s,linked:(_,...y)=>{const[N,I]=y;let P="text",C="";y.length===1?se(N)?(C=N.modifier||C,P=N.type||P):D(N)&&(C=N||C):y.length===2&&(D(N)&&(C=N||C),D(I)&&(P=I||P));const M=d(_)(L),x=P==="vnode"&&fe(M)&&C?M[0]:M;return C?m(C)(x,P):x},message:d,type:w,interpolate:b,normalize:h,values:Ie({},i,l)};return L}let Rn=null;function ad(e){Rn=e}function ld(e,t,n){Rn&&Rn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const cd=ud("function:translate");function ud(e){return t=>Rn&&Rn.emit(e,t)}const fd={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function Ps(e,t){return t.locale!=null?ra(t.locale):ra(e.locale)}let Ss;function ra(e){return D(e)?e:Ss!=null&&e.resolvedOnce?Ss:Ss=e()}function dd(e,t,n){return[...new Set([n,...fe(t)?t:se(t)?Object.keys(t):D(t)?[t]:[n]])]}function sa(e,t,n){const r=D(n)?n:dn,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let i=[n];for(;fe(i);)i=oa(s,i,t);const a=fe(t)||!V(t)?t:t.default?t.default:null;i=D(a)?[a]:a,fe(i)&&oa(s,i,!1),o.__localeChainCache.set(r,s)}return s}function oa(e,t,n){let r=!0;for(let o=0;o<t.length&&G(r);o++){const s=t[o];D(s)&&(r=md(e,t[o],n))}return r}function md(e,t,n){let r;const o=t.split("-");do{const s=o.join("-");r=hd(e,s,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function hd(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(fe(n)||V(n))&&n[o]&&(r=n[o])}return r}const pd="9.5.0",vr=-1,dn="en-US",ia="",aa=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _d(){return{upper:(e,t)=>t==="text"&&D(e)?e.toUpperCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&D(e)?e.toLowerCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&D(e)?aa(e):t==="vnode"&&se(e)&&"__v_isVNode"in e?aa(e.children):e}}let la;function ca(e){la=e}let ua;function gd(e){ua=e}let fa;function bd(e){fa=e}let da=null;const ma=e=>{da=e},yd=()=>da;let ha=null;const pa=e=>{ha=e},vd=()=>ha;let _a=0;function Ed(e={}){const t=he(e.onWarn)?e.onWarn:hf,n=D(e.version)?e.version:pd,r=D(e.locale)||he(e.locale)?e.locale:dn,o=he(r)?dn:r,s=fe(e.fallbackLocale)||V(e.fallbackLocale)||D(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=V(e.messages)?e.messages:{[o]:{}},a=V(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=V(e.numberFormats)?e.numberFormats:{[o]:{}},f=Ie({},e.modifiers||{},_d()),d=e.pluralRules||{},m=he(e.missing)?e.missing:null,h=G(e.missingWarn)||kt(e.missingWarn)?e.missingWarn:!0,b=G(e.fallbackWarn)||kt(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,k=!!e.unresolving,L=he(e.postTranslation)?e.postTranslation:null,_=V(e.processor)?e.processor:null,y=G(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter,I=he(e.messageCompiler)?e.messageCompiler:la,P=he(e.messageResolver)?e.messageResolver:ua||Jf,C=he(e.localeFallbacker)?e.localeFallbacker:fa||dd,M=se(e.fallbackContext)?e.fallbackContext:void 0,x=e,$=se(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,Z=se(x.__numberFormatters)?x.__numberFormatters:new Map,ae=se(x.__meta)?x.__meta:{};_a++;const ie={version:n,cid:_a,locale:r,fallbackLocale:s,messages:i,modifiers:f,pluralRules:d,missing:m,missingWarn:h,fallbackWarn:b,fallbackFormat:w,unresolving:k,postTranslation:L,processor:_,warnHtmlMessage:y,escapeParameter:N,messageCompiler:I,messageResolver:P,localeFallbacker:C,fallbackContext:M,onWarn:t,__meta:ae};return ie.datetimeFormats=a,ie.numberFormats=l,ie.__datetimeFormatters=$,ie.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&ld(ie,n,ae),ie}function As(e,t,n,r,o){const{missing:s,onWarn:i}=e;if(s!==null){const a=s(e,n,t,o);return D(a)?a:t}else return t}function Fn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Rs(e){return n=>wd(n,e)}function wd(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,o=r.c||r.cases;return e.plural(o.reduce((s,i)=>[...s,ga(e,i)],[]))}else return ga(e,n)}function ga(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((o,s)=>[...o,Fs(e,s)],[]);return e.normalize(r)}}function Fs(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const o=t;return o.v||o.value;case 4:const s=t;return e.interpolate(e.named(s.k||s.key));case 5:const i=t;return e.interpolate(e.list(i.i!=null?i.i:i.index));case 6:const a=t,l=a.m||a.modifier;return e.linked(Fs(e,a.k||a.key),l?Fs(e,l):void 0,e.type);case 7:const f=t;return f.v||f.value;case 8:const d=t;return d.v||d.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ba=H.__EXTEND_POINT__,Er=Os(ba),Ot={INVALID_ARGUMENT:ba,INVALID_DATE_ARGUMENT:Er(),INVALID_ISO_DATE_ARGUMENT:Er(),NOT_SUPPORT_NON_STRING_MESSAGE:Er(),__EXTEND_POINT__:Er()};function Vt(e){return cn(e,null,void 0)}const ya=e=>e;let mn=Object.create(null);const xn=e=>se(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function va(e,t={}){let n=!1;const r=t.onError||vf;return t.onError=o=>{n=!0,r(o)},{...Kf(e,t),detectError:n}}const Id=(e,t)=>{if(!D(e))throw Vt(Ot.NOT_SUPPORT_NON_STRING_MESSAGE);{G(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||ya)(e),o=mn[r];if(o)return o;const{code:s,detectError:i}=va(e,t),a=new Function(`return ${s}`)();return i?a:mn[r]=a}};function kd(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&D(e)){G(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||ya)(e),o=mn[r];if(o)return o;const{ast:s,detectError:i}=va(e,{...t,location:!1,jit:!0}),a=Rs(s);return i?a:mn[r]=a}else{const n=e.cacheKey;if(n){const r=mn[n];return r||(mn[n]=Rs(e))}else return Rs(e)}}const Ea=()=>"",qe=e=>he(e);function wa(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:a}=e,[l,f]=xs(...t),d=G(f.missingWarn)?f.missingWarn:e.missingWarn,m=G(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,h=G(f.escapeParameter)?f.escapeParameter:e.escapeParameter,b=!!f.resolvedMessage,w=D(f.default)||G(f.default)?G(f.default)?s?l:()=>l:f.default:n?s?l:()=>l:"",k=n||w!=="",L=Ps(e,f);h&&Td(f);let[_,y,N]=b?[l,L,a[L]||{}]:Ia(e,l,L,i,m,d),I=_,P=l;if(!b&&!(D(I)||xn(I)||qe(I))&&k&&(I=w,P=I),!b&&(!(D(I)||xn(I)||qe(I))||!D(y)))return o?vr:l;let C=!1;const M=()=>{C=!0},x=qe(I)?I:ka(e,l,y,I,P,M);if(C)return I;const $=Nd(e,y,N,f),Z=id($),ae=Ld(e,x,Z),ie=r?r(ae,l):ae;if(__INTLIFY_PROD_DEVTOOLS__){const Ee={timestamp:Date.now(),key:D(l)?l:qe(I)?I.key:"",locale:y||(qe(I)?I.locale:""),format:D(I)?I:qe(I)?I.source:"",message:ie};Ee.meta=Ie({},e.__meta,yd()||{}),cd(Ee)}return ie}function Td(e){fe(e.list)?e.list=e.list.map(t=>D(t)?Xi(t):t):se(e.named)&&Object.keys(e.named).forEach(t=>{D(e.named[t])&&(e.named[t]=Xi(e.named[t]))})}function Ia(e,t,n,r,o,s){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:f}=e,d=f(e,r,n);let m={},h,b=null;const w="translate";for(let k=0;k<d.length&&(h=d[k],m=i[h]||{},(b=l(m,t))===null&&(b=m[t]),!(D(b)||xn(b)||qe(b)));k++){const L=As(e,t,h,s,w);L!==t&&(b=L)}return[b,h,m]}function ka(e,t,n,r,o,s){const{messageCompiler:i,warnHtmlMessage:a}=e;if(qe(r)){const f=r;return f.locale=f.locale||n,f.key=f.key||t,f}if(i==null){const f=()=>r;return f.locale=n,f.key=t,f}const l=i(r,Od(e,n,o,r,a,s));return l.locale=n,l.key=t,l.source=r,l}function Ld(e,t,n){return t(n)}function xs(...e){const[t,n,r]=e,o={};if(!D(t)&&!ye(t)&&!qe(t)&&!xn(t))throw Vt(Ot.INVALID_ARGUMENT);const s=ye(t)?String(t):(qe(t),t);return ye(n)?o.plural=n:D(n)?o.default=n:V(n)&&!yr(n)?o.named=n:fe(n)&&(o.list=n),ye(r)?o.plural=r:D(r)?o.default=r:V(r)&&Ie(o,r),[s,o]}function Od(e,t,n,r,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>lf(t,n,i)}}function Nd(e,t,n,r){const{modifiers:o,pluralRules:s,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:f,fallbackContext:d}=e,h={locale:t,modifiers:o,pluralRules:s,messages:b=>{let w=i(n,b);if(w==null&&d){const[,,k]=Ia(d,b,t,a,l,f);w=i(k,b)}if(D(w)||xn(w)){let k=!1;const _=ka(e,b,t,w,b,()=>{k=!0});return k?Ea:_}else return qe(w)?w:Ea}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),ye(r.plural)&&(h.pluralIndex=r.plural),h}function Ta(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,f,d,m]=Ds(...t),h=G(d.missingWarn)?d.missingWarn:e.missingWarn;G(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const b=!!d.part,w=Ps(e,d),k=i(e,o,w);if(!D(l)||l==="")return new Intl.DateTimeFormat(w,m).format(f);let L={},_,y=null;const N="datetime format";for(let C=0;C<k.length&&(_=k[C],L=n[_]||{},y=L[l],!V(y));C++)As(e,l,_,h,N);if(!V(y)||!D(_))return r?vr:l;let I=`${_}__${l}`;yr(m)||(I=`${I}__${JSON.stringify(m)}`);let P=a.get(I);return P||(P=new Intl.DateTimeFormat(_,Ie({},y,m)),a.set(I,P)),b?P.formatToParts(f):P.format(f)}const La=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ds(...e){const[t,n,r,o]=e,s={};let i={},a;if(D(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Vt(Ot.INVALID_ISO_DATE_ARGUMENT);const f=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(f);try{a.toISOString()}catch{throw Vt(Ot.INVALID_ISO_DATE_ARGUMENT)}}else if(uf(t)){if(isNaN(t.getTime()))throw Vt(Ot.INVALID_DATE_ARGUMENT);a=t}else if(ye(t))a=t;else throw Vt(Ot.INVALID_ARGUMENT);return D(n)?s.key=n:V(n)&&Object.keys(n).forEach(l=>{La.includes(l)?i[l]=n[l]:s[l]=n[l]}),D(r)?s.locale=r:V(r)&&(i=r),V(o)&&(i=o),[s.key||"",a,s,i]}function Oa(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Na(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,f,d,m]=Ms(...t),h=G(d.missingWarn)?d.missingWarn:e.missingWarn;G(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const b=!!d.part,w=Ps(e,d),k=i(e,o,w);if(!D(l)||l==="")return new Intl.NumberFormat(w,m).format(f);let L={},_,y=null;const N="number format";for(let C=0;C<k.length&&(_=k[C],L=n[_]||{},y=L[l],!V(y));C++)As(e,l,_,h,N);if(!V(y)||!D(_))return r?vr:l;let I=`${_}__${l}`;yr(m)||(I=`${I}__${JSON.stringify(m)}`);let P=a.get(I);return P||(P=new Intl.NumberFormat(_,Ie({},y,m)),a.set(I,P)),b?P.formatToParts(f):P.format(f)}const Ca=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ms(...e){const[t,n,r,o]=e,s={};let i={};if(!ye(t))throw Vt(Ot.INVALID_ARGUMENT);const a=t;return D(n)?s.key=n:V(n)&&Object.keys(n).forEach(l=>{Ca.includes(l)?i[l]=n[l]:s[l]=n[l]}),D(r)?s.locale=r:V(r)&&(i=r),V(o)&&(i=o),[s.key||"",a,s,i]}function Pa(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}Vf();/*!
23
- * vue-i18n v9.5.0
22
+ */function Kf(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Lt=[];Lt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Lt[1]={w:[1],".":[2],"[":[4],o:[7]},Lt[2]={w:[2],i:[3,0],0:[3,0]},Lt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Lt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Lt[5]={"'":[4,0],o:8,l:[5,0]},Lt[6]={'"':[4,0],o:8,l:[6,0]};const Hf=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Vf(e){return Hf.test(e)}function Yf(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 Xf(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 Bf(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Vf(t)?Yf(t):"*"+t}function Gf(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,f,d,m;const h=[];h[0]=()=>{i===void 0?i=a:i+=a},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,s=4,h[0]();else{if(o=0,i===void 0||(i=Bf(i),i===!1))return!1;h[1]()}};function b(){const I=e[n+1];if(s===5&&I==="'"||s===6&&I==='"')return n++,a="\\"+I,h[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&b())){if(l=Xf(r),m=Lt[s],f=m[l]||m.l||8,f===8||(s=f[0],f[1]!==void 0&&(d=h[f[1]],d&&(a=r,d()===!1))))return;if(s===7)return t}}const sa=new Map;function zf(e,t){return re(e)?e[t]:null}function Zf(e,t){if(!re(e))return null;let n=sa.get(t);if(n||(n=Gf(t),n&&sa.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0||me(o))return null;o=i,r++}return o}const Jf=e=>e,qf=e=>"",Qf="text",ed=e=>e.length===0?"":ff(e),td=uf;function ra(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function nd(e){const t=ve(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ve(e.named.count)||ve(e.named.n))?ve(e.named.count)?e.named.count:ve(e.named.n)?e.named.n:t:t}function sd(e,t){t.count||(t.count=e),t.n||(t.n=e)}function rd(e={}){const t=e.locale,n=nd(e),s=re(e.pluralRules)&&U(t)&&me(e.pluralRules[t])?e.pluralRules[t]:ra,o=re(e.pluralRules)&&U(t)&&me(e.pluralRules[t])?ra:void 0,r=g=>g[s(n,g.length,o)],i=e.list||[],a=g=>i[g],l=e.named||{};ve(e.pluralIndex)&&sd(n,l);const f=g=>l[g];function d(g){const y=me(e.messages)?e.messages(g):re(e.messages)?e.messages[g]:!1;return y||(e.parent?e.parent.message(g):qf)}const m=g=>e.modifiers?e.modifiers[g]:Jf,h=Y(e.processor)&&me(e.processor.normalize)?e.processor.normalize:ed,b=Y(e.processor)&&me(e.processor.interpolate)?e.processor.interpolate:td,I=Y(e.processor)&&U(e.processor.type)?e.processor.type:Qf,O={list:a,named:f,plural:r,linked:(g,...y)=>{const[L,w]=y;let P="text",F="";y.length===1?re(L)?(F=L.modifier||F,P=L.type||P):U(L)&&(F=L||F):y.length===2&&(U(L)&&(F=L||F),U(w)&&(P=w||P));const C=d(g)(O),D=P==="vnode"&&ue(C)&&F?C[0]:C;return F?m(F)(D,P):D},message:d,type:I,interpolate:b,normalize:h,values:Te({},i,l)};return O}let Fn=null;function od(e){Fn=e}function id(e,t,n){Fn&&Fn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ad=ld("function:translate");function ld(e){return t=>Fn&&Fn.emit(e,t)}const cd={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function Sr(e,t){return t.locale!=null?oa(t.locale):oa(e.locale)}let Ar;function oa(e){return U(e)?e:Ar!=null&&e.resolvedOnce?Ar:Ar=e()}function ud(e,t,n){return[...new Set([n,...ue(t)?t:re(t)?Object.keys(t):U(t)?[t]:[n]])]}function ia(e,t,n){const s=U(n)?n:dn,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;ue(i);)i=aa(r,i,t);const a=ue(t)||!Y(t)?t:t.default?t.default:null;i=U(a)?[a]:a,ue(i)&&aa(r,i,!1),o.__localeChainCache.set(s,r)}return r}function aa(e,t,n){let s=!0;for(let o=0;o<t.length&&z(s);o++){const r=t[o];U(r)&&(s=fd(e,t[o],n))}return s}function fd(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=dd(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function dd(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(ue(n)||Y(n))&&n[o]&&(s=n[o])}return s}const md="9.6.5",Is=-1,dn="en-US",la="",ca=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function hd(){return{upper:(e,t)=>t==="text"&&U(e)?e.toUpperCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&U(e)?e.toLowerCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&U(e)?ca(e):t==="vnode"&&re(e)&&"__v_isVNode"in e?ca(e.children):e}}let ua;function fa(e){ua=e}let da;function pd(e){da=e}let ma;function _d(e){ma=e}let ha=null;const gd=e=>{ha=e},bd=()=>ha;let pa=null;const _a=e=>{pa=e},yd=()=>pa;let ga=0;function vd(e={}){const t=me(e.onWarn)?e.onWarn:df,n=U(e.version)?e.version:md,s=U(e.locale)||me(e.locale)?e.locale:dn,o=me(s)?dn:s,r=ue(e.fallbackLocale)||Y(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Y(e.messages)?e.messages:{[o]:{}},a=Y(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Y(e.numberFormats)?e.numberFormats:{[o]:{}},f=Te({},e.modifiers||{},hd()),d=e.pluralRules||{},m=me(e.missing)?e.missing:null,h=z(e.missingWarn)||kt(e.missingWarn)?e.missingWarn:!0,b=z(e.fallbackWarn)||kt(e.fallbackWarn)?e.fallbackWarn:!0,I=!!e.fallbackFormat,k=!!e.unresolving,O=me(e.postTranslation)?e.postTranslation:null,g=Y(e.processor)?e.processor:null,y=z(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter,w=me(e.messageCompiler)?e.messageCompiler:ua,P=me(e.messageResolver)?e.messageResolver:da||zf,F=me(e.localeFallbacker)?e.localeFallbacker:ma||ud,C=re(e.fallbackContext)?e.fallbackContext:void 0,D=e,$=re(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,Z=re(D.__numberFormatters)?D.__numberFormatters:new Map,ae=re(D.__meta)?D.__meta:{};ga++;const ie={version:n,cid:ga,locale:s,fallbackLocale:r,messages:i,modifiers:f,pluralRules:d,missing:m,missingWarn:h,fallbackWarn:b,fallbackFormat:I,unresolving:k,postTranslation:O,processor:g,warnHtmlMessage:y,escapeParameter:L,messageCompiler:w,messageResolver:P,localeFallbacker:F,fallbackContext:C,onWarn:t,__meta:ae};return ie.datetimeFormats=a,ie.numberFormats=l,ie.__datetimeFormatters=$,ie.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&id(ie,n,ae),ie}function Rr(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return U(a)?a:t}else return t}function Mn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function xr(e){return n=>Ed(n,e)}function Ed(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return e.plural(o.reduce((r,i)=>[...r,ba(e,i)],[]))}else return ba(e,n)}function ba(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((o,r)=>[...o,Fr(e,r)],[]);return e.normalize(s)}}function Fr(e,t){const n=t.t||t.type;switch(n){case 3:const s=t;return s.v||s.value;case 9:const o=t;return o.v||o.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const i=t;return e.interpolate(e.list(i.i!=null?i.i:i.index));case 6:const a=t,l=a.m||a.modifier;return e.linked(Fr(e,a.k||a.key),l?Fr(e,l):void 0,e.type);case 7:const f=t;return f.v||f.value;case 8:const d=t;return d.v||d.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ya=K.__EXTEND_POINT__,ks=Nr(ya),Ot={INVALID_ARGUMENT:ya,INVALID_DATE_ARGUMENT:ks(),INVALID_ISO_DATE_ARGUMENT:ks(),NOT_SUPPORT_NON_STRING_MESSAGE:ks(),__EXTEND_POINT__:ks()};function Bt(e){return cn(e,null,void 0)}const va=e=>e;let mn=Object.create(null);const hn=e=>re(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Ea(e,t={}){let n=!1;const s=t.onError||bf;return t.onError=o=>{n=!0,s(o)},{...Wf(e,t),detectError:n}}const wd=(e,t)=>{if(!U(e))throw Bt(Ot.NOT_SUPPORT_NON_STRING_MESSAGE);{z(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||va)(e),o=mn[s];if(o)return o;const{code:r,detectError:i}=Ea(e,t),a=new Function(`return ${r}`)();return i?a:mn[s]=a}};function Id(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&U(e)){z(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||va)(e),o=mn[s];if(o)return o;const{ast:r,detectError:i}=Ea(e,{...t,location:!1,jit:!0}),a=xr(r);return i?a:mn[s]=a}else{const n=e.cacheKey;if(n){const s=mn[n];return s||(mn[n]=xr(e))}else return xr(e)}}const wa=()=>"",Xe=e=>me(e);function Ia(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,f]=Mr(...t),d=z(f.missingWarn)?f.missingWarn:e.missingWarn,m=z(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,h=z(f.escapeParameter)?f.escapeParameter:e.escapeParameter,b=!!f.resolvedMessage,I=U(f.default)||z(f.default)?z(f.default)?r?l:()=>l:f.default:n?r?l:()=>l:"",k=n||I!=="",O=Sr(e,f);h&&kd(f);let[g,y,L]=b?[l,O,a[O]||{}]:ka(e,l,O,i,m,d),w=g,P=l;if(!b&&!(U(w)||hn(w)||Xe(w))&&k&&(w=I,P=w),!b&&(!(U(w)||hn(w)||Xe(w))||!U(y)))return o?Is:l;let F=!1;const C=()=>{F=!0},D=Xe(w)?w:Ta(e,l,y,w,P,C);if(F)return w;const $=Od(e,y,L,f),Z=rd($),ae=Td(e,D,Z),ie=s?s(ae,l):ae;if(__INTLIFY_PROD_DEVTOOLS__){const we={timestamp:Date.now(),key:U(l)?l:Xe(w)?w.key:"",locale:y||(Xe(w)?w.locale:""),format:U(w)?w:Xe(w)?w.source:"",message:ie};we.meta=Te({},e.__meta,bd()||{}),ad(we)}return ie}function kd(e){ue(e.list)?e.list=e.list.map(t=>U(t)?Gi(t):t):re(e.named)&&Object.keys(e.named).forEach(t=>{U(e.named[t])&&(e.named[t]=Gi(e.named[t]))})}function ka(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:f}=e,d=f(e,s,n);let m={},h,b=null;const I="translate";for(let k=0;k<d.length&&(h=d[k],m=i[h]||{},(b=l(m,t))===null&&(b=m[t]),!(U(b)||hn(b)||Xe(b)));k++){const O=Rr(e,t,h,r,I);O!==t&&(b=O)}return[b,h,m]}function Ta(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Xe(s)){const f=s;return f.locale=f.locale||n,f.key=f.key||t,f}if(i==null){const f=()=>s;return f.locale=n,f.key=t,f}const l=i(s,Ld(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Td(e,t,n){return t(n)}function Mr(...e){const[t,n,s]=e,o={};if(!U(t)&&!ve(t)&&!Xe(t)&&!hn(t))throw Bt(Ot.INVALID_ARGUMENT);const r=ve(t)?String(t):(Xe(t),t);return ve(n)?o.plural=n:U(n)?o.default=n:Y(n)&&!ws(n)?o.named=n:ue(n)&&(o.list=n),ve(s)?o.plural=s:U(s)?o.default=s:Y(s)&&Te(o,s),[r,o]}function Ld(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>of(t,n,i)}}function Od(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:f,fallbackContext:d}=e,h={locale:t,modifiers:o,pluralRules:r,messages:b=>{let I=i(n,b);if(I==null&&d){const[,,k]=ka(d,b,t,a,l,f);I=i(k,b)}if(U(I)||hn(I)){let k=!1;const g=Ta(e,b,t,I,b,()=>{k=!0});return k?wa:g}else return Xe(I)?I:wa}};return e.processor&&(h.processor=e.processor),s.list&&(h.list=s.list),s.named&&(h.named=s.named),ve(s.plural)&&(h.pluralIndex=s.plural),h}function La(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,f,d,m]=Dr(...t),h=z(d.missingWarn)?d.missingWarn:e.missingWarn;z(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const b=!!d.part,I=Sr(e,d),k=i(e,o,I);if(!U(l)||l==="")return new Intl.DateTimeFormat(I,m).format(f);let O={},g,y=null;const L="datetime format";for(let F=0;F<k.length&&(g=k[F],O=n[g]||{},y=O[l],!Y(y));F++)Rr(e,l,g,h,L);if(!Y(y)||!U(g))return s?Is:l;let w=`${g}__${l}`;ws(m)||(w=`${w}__${JSON.stringify(m)}`);let P=a.get(w);return P||(P=new Intl.DateTimeFormat(g,Te({},y,m)),a.set(w,P)),b?P.formatToParts(f):P.format(f)}const Oa=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Dr(...e){const[t,n,s,o]=e,r={};let i={},a;if(U(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Bt(Ot.INVALID_ISO_DATE_ARGUMENT);const f=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(f);try{a.toISOString()}catch{throw Bt(Ot.INVALID_ISO_DATE_ARGUMENT)}}else if(lf(t)){if(isNaN(t.getTime()))throw Bt(Ot.INVALID_DATE_ARGUMENT);a=t}else if(ve(t))a=t;else throw Bt(Ot.INVALID_ARGUMENT);return U(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{Oa.includes(l)?i[l]=n[l]:r[l]=n[l]}),U(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function Na(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function Ca(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,f,d,m]=Ur(...t),h=z(d.missingWarn)?d.missingWarn:e.missingWarn;z(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const b=!!d.part,I=Sr(e,d),k=i(e,o,I);if(!U(l)||l==="")return new Intl.NumberFormat(I,m).format(f);let O={},g,y=null;const L="number format";for(let F=0;F<k.length&&(g=k[F],O=n[g]||{},y=O[l],!Y(y));F++)Rr(e,l,g,h,L);if(!Y(y)||!U(g))return s?Is:l;let w=`${g}__${l}`;ws(m)||(w=`${w}__${JSON.stringify(m)}`);let P=a.get(w);return P||(P=new Intl.NumberFormat(g,Te({},y,m)),a.set(w,P)),b?P.formatToParts(f):P.format(f)}const Pa=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ur(...e){const[t,n,s,o]=e,r={};let i={};if(!ve(t))throw Bt(Ot.INVALID_ARGUMENT);const a=t;return U(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{Pa.includes(l)?i[l]=n[l]:r[l]=n[l]}),U(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function Sa(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}Kf();/*!
23
+ * vue-i18n v9.6.5
24
24
  * (c) 2023 kazuya kawaguchi
25
25
  * Released under the MIT License.
26
- */const Cd="9.5.0";function Pd(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ht().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ht().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1)}const Sa=fd.__EXTEND_POINT__,Nt=Os(Sa);Nt(),Nt(),Nt(),Nt(),Nt(),Nt(),Nt(),Nt();const Aa=Ot.__EXTEND_POINT__,De=Os(Aa),pe={UNEXPECTED_RETURN_TYPE:Aa,INVALID_ARGUMENT:De(),MUST_BE_CALL_SETUP_TOP:De(),NOT_INSTALLED:De(),NOT_AVAILABLE_IN_LEGACY_MODE:De(),REQUIRED_VALUE:De(),INVALID_VALUE:De(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:De(),NOT_INSTALLED_WITH_PROVIDE:De(),UNEXPECTED_ERROR:De(),NOT_COMPATIBLE_LEGACY_VUE_I18N:De(),BRIDGE_SUPPORT_VUE_2_ONLY:De(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:De(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:De(),__EXTEND_POINT__:De()};function ve(e,...t){return cn(e,null,void 0)}const Us=It("__translateVNode"),$s=It("__datetimeParts"),js=It("__numberParts"),Ra=It("__setPluralRules"),Fa=It("__injectWithOption"),Ws=It("__dispose");function Hs(e){if(!se(e))return e;for(const t in e)if(Ls(e,t))if(!t.includes("."))se(e[t])&&Hs(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,s=!1;for(let i=0;i<r;i++){if(n[i]in o||(o[n[i]]={}),!se(o[n[i]])){s=!0;break}o=o[n[i]]}s||(o[n[r]]=e[t],delete e[t]),se(o[n[r]])&&Hs(o[n[r]])}return e}function wr(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:s}=t,i=V(n)?n:fe(r)?{}:{[e]:{}};if(fe(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:f}=a;l?(i[l]=i[l]||{},Dn(f,i[l])):Dn(f,i)}else D(a)&&Dn(JSON.parse(a),i)}),o==null&&s)for(const a in i)Ls(i,a)&&Hs(i[a]);return i}const Ir=e=>!se(e)||fe(e);function Dn(e,t){if(Ir(e)||Ir(t))throw ve(pe.INVALID_VALUE);for(const n in e)Ls(e,n)&&(Ir(e[n])||Ir(t[n])?t[n]=e[n]:Dn(e[n],t[n]))}function xa(e){return e.type}function Da(e,t,n){let r=se(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=wr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(se(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(se(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Ma(e){return Te(wn,null,e,0)}const Ua="__INTLIFY_META__";let $a=0;function ja(e){return(t,n,r,o)=>e(n,r,On()||void 0,o)}const Sd=()=>{const e=On();let t=null;return e&&(t=xa(e)[Ua])?{[Ua]:t}:null};function Ks(e={},t){const{__root:n,__injectWithOption:r}=e,o=n===void 0;let s=G(e.inheritLocale)?e.inheritLocale:!0;const i=J(n&&s?n.locale.value:D(e.locale)?e.locale:dn),a=J(n&&s?n.fallbackLocale.value:D(e.fallbackLocale)||fe(e.fallbackLocale)||V(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),l=J(wr(i.value,e)),f=J(V(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),d=J(V(e.numberFormats)?e.numberFormats:{[i.value]:{}});let m=n?n.missingWarn:G(e.missingWarn)||kt(e.missingWarn)?e.missingWarn:!0,h=n?n.fallbackWarn:G(e.fallbackWarn)||kt(e.fallbackWarn)?e.fallbackWarn:!0,b=n?n.fallbackRoot:G(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,k=he(e.missing)?e.missing:null,L=he(e.missing)?ja(e.missing):null,_=he(e.postTranslation)?e.postTranslation:null,y=n?n.warnHtmlMessage:G(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const I=n?n.modifiers:V(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,C;C=(()=>{o&&pa(null);const E={version:Cd,locale:i.value,fallbackLocale:a.value,messages:l.value,modifiers:I,pluralRules:P,missing:L===null?void 0:L,missingWarn:m,fallbackWarn:h,fallbackFormat:w,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:y,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};E.datetimeFormats=f.value,E.numberFormats=d.value,E.__datetimeFormatters=V(C)?C.__datetimeFormatters:void 0,E.__numberFormatters=V(C)?C.__numberFormatters:void 0;const T=Ed(E);return o&&pa(T),T})(),Fn(C,i.value,a.value);function x(){return[i.value,a.value,l.value,f.value,d.value]}const $=We({get:()=>i.value,set:E=>{i.value=E,C.locale=i.value}}),Z=We({get:()=>a.value,set:E=>{a.value=E,C.fallbackLocale=a.value,Fn(C,i.value,E)}}),ae=We(()=>l.value),ie=We(()=>f.value),Ee=We(()=>d.value);function Xe(){return he(_)?_:null}function Me(E){_=E,C.postTranslation=E}function B(){return k}function oe(E){E!==null&&(L=ja(E)),k=E,C.missing=L}const z=(E,T,j,W,ne,ee)=>{x();let le;try{__INTLIFY_PROD_DEVTOOLS__&&ma(Sd()),o||(C.fallbackContext=n?vd():void 0),le=E(C)}finally{__INTLIFY_PROD_DEVTOOLS__&&ma(null),o||(C.fallbackContext=void 0)}if(ye(le)&&le===vr){const[Ke,Gt]=T();return n&&b?W(n):ne(Ke)}else{if(ee(le))return le;throw ve(pe.UNEXPECTED_RETURN_TYPE)}};function Pe(...E){return z(T=>Reflect.apply(wa,null,[T,...E]),()=>xs(...E),"translate",T=>Reflect.apply(T.t,T,[...E]),T=>T,T=>D(T))}function at(...E){const[T,j,W]=E;if(W&&!se(W))throw ve(pe.INVALID_ARGUMENT);return Pe(T,j,Ie({resolvedMessage:!0},W||{}))}function He(...E){return z(T=>Reflect.apply(Ta,null,[T,...E]),()=>Ds(...E),"datetime format",T=>Reflect.apply(T.d,T,[...E]),()=>ia,T=>D(T))}function Oe(...E){return z(T=>Reflect.apply(Na,null,[T,...E]),()=>Ms(...E),"number format",T=>Reflect.apply(T.n,T,[...E]),()=>ia,T=>D(T))}function Ct(E){return E.map(T=>D(T)||ye(T)||G(T)?Ma(String(T)):T)}const Bt={normalize:Ct,interpolate:E=>E,type:"vnode"};function Se(...E){return z(T=>{let j;const W=T;try{W.processor=Bt,j=Reflect.apply(wa,null,[W,...E])}finally{W.processor=null}return j},()=>xs(...E),"translate",T=>T[Us](...E),T=>[Ma(T)],T=>fe(T))}function lt(...E){return z(T=>Reflect.apply(Na,null,[T,...E]),()=>Ms(...E),"number format",T=>T[js](...E),()=>[],T=>D(T)||fe(T))}function ct(...E){return z(T=>Reflect.apply(Ta,null,[T,...E]),()=>Ds(...E),"datetime format",T=>T[$s](...E),()=>[],T=>D(T)||fe(T))}function Ue(E){P=E,C.pluralRules=P}function Be(E,T){if(!E)return!1;const j=D(T)?T:i.value,W=c(j);return C.messageResolver(W,E)!==null}function Qe(E){let T=null;const j=sa(C,a.value,i.value);for(let W=0;W<j.length;W++){const ne=l.value[j[W]]||{},ee=C.messageResolver(ne,E);if(ee!=null){T=ee;break}}return T}function g(E){const T=Qe(E);return T??(n?n.tm(E)||{}:{})}function c(E){return l.value[E]||{}}function u(E,T){l.value[E]=T,C.messages=l.value}function p(E,T){l.value[E]=l.value[E]||{},Dn(T,l.value[E]),C.messages=l.value}function v(E){return f.value[E]||{}}function O(E,T){f.value[E]=T,C.datetimeFormats=f.value,Oa(C,E,T)}function S(E,T){f.value[E]=Ie(f.value[E]||{},T),C.datetimeFormats=f.value,Oa(C,E,T)}function R(E){return d.value[E]||{}}function F(E,T){d.value[E]=T,C.numberFormats=d.value,Pa(C,E,T)}function A(E,T){d.value[E]=Ie(d.value[E]||{},T),C.numberFormats=d.value,Pa(C,E,T)}$a++,n&&Ts&&(Rt(n.locale,E=>{s&&(i.value=E,C.locale=E,Fn(C,i.value,a.value))}),Rt(n.fallbackLocale,E=>{s&&(a.value=E,C.fallbackLocale=E,Fn(C,i.value,a.value))}));const U={id:$a,locale:$,fallbackLocale:Z,get inheritLocale(){return s},set inheritLocale(E){s=E,E&&n&&(i.value=n.locale.value,a.value=n.fallbackLocale.value,Fn(C,i.value,a.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:ae,get modifiers(){return I},get pluralRules(){return P||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(E){m=E,C.missingWarn=m},get fallbackWarn(){return h},set fallbackWarn(E){h=E,C.fallbackWarn=h},get fallbackRoot(){return b},set fallbackRoot(E){b=E},get fallbackFormat(){return w},set fallbackFormat(E){w=E,C.fallbackFormat=w},get warnHtmlMessage(){return y},set warnHtmlMessage(E){y=E,C.warnHtmlMessage=E},get escapeParameter(){return N},set escapeParameter(E){N=E,C.escapeParameter=E},t:Pe,getLocaleMessage:c,setLocaleMessage:u,mergeLocaleMessage:p,getPostTranslationHandler:Xe,setPostTranslationHandler:Me,getMissingHandler:B,setMissingHandler:oe,[Ra]:Ue};return U.datetimeFormats=ie,U.numberFormats=Ee,U.rt=at,U.te=Be,U.tm=g,U.d=He,U.n=Oe,U.getDateTimeFormat=v,U.setDateTimeFormat=O,U.mergeDateTimeFormat=S,U.getNumberFormat=R,U.setNumberFormat=F,U.mergeNumberFormat=A,U[Fa]=r,U[Us]=Se,U[$s]=ct,U[js]=lt,U}function Ad(e){const t=D(e.locale)?e.locale:dn,n=D(e.fallbackLocale)||fe(e.fallbackLocale)||V(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=he(e.missing)?e.missing:void 0,o=G(e.silentTranslationWarn)||kt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=G(e.silentFallbackWarn)||kt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=G(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=V(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,d=he(e.postTranslation)?e.postTranslation:void 0,m=D(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,b=G(e.sync)?e.sync:!0;let w=e.messages;if(V(e.sharedMessages)){const P=e.sharedMessages;w=Object.keys(P).reduce((M,x)=>{const $=M[x]||(M[x]={});return Ie($,P[x]),M},w||{})}const{__i18n:k,__root:L,__injectWithOption:_}=e,y=e.datetimeFormats,N=e.numberFormats,I=e.flatJson;return{locale:t,fallbackLocale:n,messages:w,flatJson:I,datetimeFormats:y,numberFormats:N,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:f,postTranslation:d,warnHtmlMessage:m,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:b,__i18n:k,__root:L,__injectWithOption:_}}function Vs(e={},t){{const n=Ks(Ad(e)),{__extender:r}=e,o={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 G(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=G(s)?!s:s},get silentFallbackWarn(){return G(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=G(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[i,a,l]=s,f={};let d=null,m=null;if(!D(i))throw ve(pe.INVALID_ARGUMENT);const h=i;return D(a)?f.locale=a:fe(a)?d=a:V(a)&&(m=a),fe(l)?d=l:V(l)&&(m=l),Reflect.apply(n.t,n,[h,d||m||{},f])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[i,a,l]=s,f={plural:1};let d=null,m=null;if(!D(i))throw ve(pe.INVALID_ARGUMENT);const h=i;return D(a)?f.locale=a:ye(a)?f.plural=a:fe(a)?d=a:V(a)&&(m=a),D(l)?f.locale=l:fe(l)?d=l:V(l)&&(m=l),Reflect.apply(n.t,n,[h,d||m||{},f])},te(s,i){return n.te(s,i)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,i){n.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){n.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,i){n.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){n.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,i){n.setNumberFormat(s,i)},mergeNumberFormat(s,i){n.mergeNumberFormat(s,i)},getChoiceIndex(s,i){return-1}};return o.__extender=r,o}}const Ys={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Rd({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===xe?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},{})}function Wa(e){return xe}const Ha=Dt({name:"i18n-t",props:Ie({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ye(e)||!isNaN(e)}},Ys),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||Yt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(m=>m!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=D(e.plural)?+e.plural:e.plural);const a=Rd(t,s),l=o[Us](e.keypath,a,i),f=Ie({},r),d=D(e.tag)||se(e.tag)?e.tag:Wa();return _i(d,f,l)}}});function Fd(e){return fe(e)&&!D(e[0])}function Ka(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),D(e.format)?i.key=e.format:se(e.format)&&(D(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((h,b)=>n.includes(b)?Ie({},h,{[b]:e.format[b]}):h,{}));const l=r(e.value,i,a);let f=[i.key];fe(l)?f=l.map((h,b)=>{const w=o[h.type],k=w?w({[h.type]:h.value,index:b,parts:l}):[h.value];return Fd(k)&&(k[0].key=`${h.type}-${b}`),k}):D(l)&&(f=[l]);const d=Ie({},s),m=D(e.tag)||se(e.tag)?e.tag:Wa();return _i(m,d,f)}}const Va=Dt({name:"i18n-n",props:Ie({value:{type:Number,required:!0},format:{type:[String,Object]}},Ys),setup(e,t){const n=e.i18n||Yt({useScope:"parent",__useComponent:!0});return Ka(e,t,Ca,(...r)=>n[js](...r))}}),Ya=Dt({name:"i18n-d",props:Ie({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ys),setup(e,t){const n=e.i18n||Yt({useScope:"parent",__useComponent:!0});return Ka(e,t,La,(...r)=>n[$s](...r))}});function xd(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 Dd(e){const t=i=>{const{instance:a,modifiers:l,value:f}=i;if(!a||!a.$)throw ve(pe.UNEXPECTED_ERROR);const d=xd(e,a.$),m=Xa(f);return[Reflect.apply(d.t,d,[...Ba(m)]),d]};return{created:(i,a)=>{const[l,f]=t(a);Ts&&e.global===f&&(i.__i18nWatcher=Rt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=f,i.textContent=l},unmounted:i=>{Ts&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,f=Xa(a);i.textContent=Reflect.apply(l.t,l,[...Ba(f)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Xa(e){if(D(e))return{path:e};if(V(e)){if(!("path"in e))throw ve(pe.REQUIRED_VALUE,"path");return e}else throw ve(pe.INVALID_VALUE)}function Ba(e){const{path:t,locale:n,args:r,choice:o,plural:s}=e,i={},a=r||{};return D(n)&&(i.locale=n),ye(o)&&(i.plural=o),ye(s)&&(i.plural=s),[t,a,i]}function Md(e,t,...n){const r=V(n[0])?n[0]:{},o=!!r.useI18nComponentName;(G(r.globalInstall)?r.globalInstall:!0)&&([o?"i18n":Ha.name,"I18nT"].forEach(i=>e.component(i,Ha)),[Va.name,"I18nN"].forEach(i=>e.component(i,Va)),[Ya.name,"I18nD"].forEach(i=>e.component(i,Ya))),e.directive("t",Dd(t))}function Ud(e,t,n){return{beforeCreate(){const r=On();if(!r)throw ve(pe.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=t,this===this.$root)this.$i18n=Ga(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Vs(s);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Ga(e,o);else{this.$i18n=Vs({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&Da(t,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,i)=>this.$i18n.te(s,i),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=On();if(!r)throw ve(pe.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Ga(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[Ra](t.pluralizationRules||e.pluralizationRules);const n=wr(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 $d=It("global-vue-i18n");function jd(e={},t){const n=__VUE_I18N_LEGACY_API__&&G(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=G(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[i,a]=Wd(e,n),l=It("");function f(h){return s.get(h)||null}function d(h,b){s.set(h,b)}function m(h){s.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(b,...w){if(b.__VUE_I18N_SYMBOL__=l,b.provide(b.__VUE_I18N_SYMBOL__,h),V(w[0])){const _=w[0];h.__composerExtend=_.__composerExtend,h.__vueI18nExtend=_.__vueI18nExtend}let k=null;!n&&r&&(k=Zd(b,h.global)),__VUE_I18N_FULL_INSTALL__&&Md(b,h,...w),__VUE_I18N_LEGACY_API__&&n&&b.mixin(Ud(a,a.__composer,h));const L=b.unmount;b.unmount=()=>{k&&k(),h.dispose(),L()}},get global(){return a},dispose(){i.stop()},__instances:s,__getInstance:f,__setInstance:d,__deleteInstance:m};return h}}function Yt(e={}){const t=On();if(t==null)throw ve(pe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ve(pe.NOT_INSTALLED);const n=Hd(t),r=Vd(n),o=xa(t),s=Kd(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ve(pe.NOT_AVAILABLE_IN_LEGACY_MODE);return Gd(t,s,r,e)}if(s==="global")return Da(r,e,o),r;if(s==="parent"){let l=Yd(n,t,e.__useComponent);return l==null&&(l=r),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Ie({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),a=Ks(l),i.__composerExtend&&(a[Ws]=i.__composerExtend(a)),Bd(i,t,a),i.__setInstance(t,a)}return a}function Wd(e,t,n){const r=Fr();{const o=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Vs(e)):r.run(()=>Ks(e));if(o==null)throw ve(pe.UNEXPECTED_ERROR);return[r,o]}}function Hd(e){{const t=Ye(e.isCE?$d:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ve(e.isCE?pe.NOT_INSTALLED_WITH_PROVIDE:pe.UNEXPECTED_ERROR);return t}}function Kd(e,t){return yr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Vd(e){return e.mode==="composition"?e.global:e.global.__composer}function Yd(e,t,n=!1){let r=null;const o=t.root;let s=Xd(t,n);for(;s!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(s);a!=null&&(r=a.__composer,n&&r&&!r[Fa]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function Xd(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Bd(e,t,n){zr(()=>{},t),Zr(()=>{const r=n;e.__deleteInstance(t);const o=r[Ws];o&&(o(),delete r[Ws])},t)}function Gd(e,t,n,r={}){const o=t==="local",s=Yl(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ve(pe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=G(r.inheritLocale)?r.inheritLocale:!D(r.locale),a=J(!o||i?n.locale.value:D(r.locale)?r.locale:dn),l=J(!o||i?n.fallbackLocale.value:D(r.fallbackLocale)||fe(r.fallbackLocale)||V(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),f=J(wr(a.value,r)),d=J(V(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),m=J(V(r.numberFormats)?r.numberFormats:{[a.value]:{}}),h=o?n.missingWarn:G(r.missingWarn)||kt(r.missingWarn)?r.missingWarn:!0,b=o?n.fallbackWarn:G(r.fallbackWarn)||kt(r.fallbackWarn)?r.fallbackWarn:!0,w=o?n.fallbackRoot:G(r.fallbackRoot)?r.fallbackRoot:!0,k=!!r.fallbackFormat,L=he(r.missing)?r.missing:null,_=he(r.postTranslation)?r.postTranslation:null,y=o?n.warnHtmlMessage:G(r.warnHtmlMessage)?r.warnHtmlMessage:!0,N=!!r.escapeParameter,I=o?n.modifiers:V(r.modifiers)?r.modifiers:{},P=r.pluralRules||o&&n.pluralRules;function C(){return[a.value,l.value,f.value,d.value,m.value]}const M=We({get:()=>s.value?s.value.locale.value:a.value,set:u=>{s.value&&(s.value.locale.value=u),a.value=u}}),x=We({get:()=>s.value?s.value.fallbackLocale.value:l.value,set:u=>{s.value&&(s.value.fallbackLocale.value=u),l.value=u}}),$=We(()=>s.value?s.value.messages.value:f.value),Z=We(()=>d.value),ae=We(()=>m.value);function ie(){return s.value?s.value.getPostTranslationHandler():_}function Ee(u){s.value&&s.value.setPostTranslationHandler(u)}function Xe(){return s.value?s.value.getMissingHandler():L}function Me(u){s.value&&s.value.setMissingHandler(u)}function B(u){return C(),u()}function oe(...u){return s.value?B(()=>Reflect.apply(s.value.t,null,[...u])):B(()=>"")}function z(...u){return s.value?Reflect.apply(s.value.rt,null,[...u]):""}function Pe(...u){return s.value?B(()=>Reflect.apply(s.value.d,null,[...u])):B(()=>"")}function at(...u){return s.value?B(()=>Reflect.apply(s.value.n,null,[...u])):B(()=>"")}function He(u){return s.value?s.value.tm(u):{}}function Oe(u,p){return s.value?s.value.te(u,p):!1}function Ct(u){return s.value?s.value.getLocaleMessage(u):{}}function Xt(u,p){s.value&&(s.value.setLocaleMessage(u,p),f.value[u]=p)}function Bt(u,p){s.value&&s.value.mergeLocaleMessage(u,p)}function Se(u){return s.value?s.value.getDateTimeFormat(u):{}}function lt(u,p){s.value&&(s.value.setDateTimeFormat(u,p),d.value[u]=p)}function ct(u,p){s.value&&s.value.mergeDateTimeFormat(u,p)}function Ue(u){return s.value?s.value.getNumberFormat(u):{}}function Be(u,p){s.value&&(s.value.setNumberFormat(u,p),m.value[u]=p)}function Qe(u,p){s.value&&s.value.mergeNumberFormat(u,p)}const g={get id(){return s.value?s.value.id:-1},locale:M,fallbackLocale:x,messages:$,datetimeFormats:Z,numberFormats:ae,get inheritLocale(){return s.value?s.value.inheritLocale:i},set inheritLocale(u){s.value&&(s.value.inheritLocale=u)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(f.value)},get modifiers(){return s.value?s.value.modifiers:I},get pluralRules(){return s.value?s.value.pluralRules:P},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:h},set missingWarn(u){s.value&&(s.value.missingWarn=u)},get fallbackWarn(){return s.value?s.value.fallbackWarn:b},set fallbackWarn(u){s.value&&(s.value.missingWarn=u)},get fallbackRoot(){return s.value?s.value.fallbackRoot:w},set fallbackRoot(u){s.value&&(s.value.fallbackRoot=u)},get fallbackFormat(){return s.value?s.value.fallbackFormat:k},set fallbackFormat(u){s.value&&(s.value.fallbackFormat=u)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:y},set warnHtmlMessage(u){s.value&&(s.value.warnHtmlMessage=u)},get escapeParameter(){return s.value?s.value.escapeParameter:N},set escapeParameter(u){s.value&&(s.value.escapeParameter=u)},t:oe,getPostTranslationHandler:ie,setPostTranslationHandler:Ee,getMissingHandler:Xe,setMissingHandler:Me,rt:z,d:Pe,n:at,tm:He,te:Oe,getLocaleMessage:Ct,setLocaleMessage:Xt,mergeLocaleMessage:Bt,getDateTimeFormat:Se,setDateTimeFormat:lt,mergeDateTimeFormat:ct,getNumberFormat:Ue,setNumberFormat:Be,mergeNumberFormat:Qe};function c(u){u.locale.value=a.value,u.fallbackLocale.value=l.value,Object.keys(f.value).forEach(p=>{u.mergeLocaleMessage(p,f.value[p])}),Object.keys(d.value).forEach(p=>{u.mergeDateTimeFormat(p,d.value[p])}),Object.keys(m.value).forEach(p=>{u.mergeNumberFormat(p,m.value[p])}),u.escapeParameter=N,u.fallbackFormat=k,u.fallbackRoot=w,u.fallbackWarn=b,u.missingWarn=h,u.warnHtmlMessage=y}return Ho(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ve(pe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=s.value=e.proxy.$i18n.__composer;t==="global"?(a.value=u.locale.value,l.value=u.fallbackLocale.value,f.value=u.messages.value,d.value=u.datetimeFormats.value,m.value=u.numberFormats.value):o&&c(u)}),g}const zd=["locale","fallbackLocale","availableLocales"],za=["t","rt","d","n","tm","te"];function Zd(e,t){const n=Object.create(null);return zd.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw ve(pe.UNEXPECTED_ERROR);const i=me(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,za.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw ve(pe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,za.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Pd(),__INTLIFY_JIT_COMPILATION__?ca(kd):ca(Id),gd(qf),bd(sa),__INTLIFY_PROD_DEVTOOLS__){const e=ht();e.__INTLIFY__=!0,ad(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Jd={en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"comments normally got approved within 24 hours",discussion:"Discussion",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",your_comment:"Your comment"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},cn:{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内获得批准",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}},oh="",ih="",ah="",lh="";var Xs=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e))(Xs||{});function Za(e){const{created_at:t,parent_id:n,ancestor_id:r,...o}=e;return{...o,parentId:n,ancestorId:r,status:Number(e.status),createdAt:new Date(t)}}const kr=Wu("store",()=>{const e=Ye("postId"),t=Ye("comments"),n=J(!!t?.length),r=J(0),o=J(""),s=J(d(t||[])),i=J(0),a=Ye("ApiBaseUrl"),l=J(!1),f=J(!1);function d(b){const w={},k=[];return b.forEach(L=>{!L.ancestor_id||Number(L.ancestor_id)===0?w[L.id]=Za(L):k.push(L)}),k.forEach(L=>{if(L.ancestor_id in w){const _=w[L.ancestor_id];_.children=[..._.children||[],Za(L)]}}),w}async function m(){o.value="",l.value=!0;const b=new URLSearchParams;b.append("postId",e),b.append("start",r.value.toString());const w=await fetch(`${a}/api/comments?${b}`);if(!w.ok){o.value="Load comments failed. "+w.statusText,n.value=!0,l.value=!1;return}const k=await w.json();if(k.code!==0){o.value="Load comments failed. "+k.message,n.value=!0,l.value=!1;return}const L=d(k.data||[]);Object.assign(s.value,L);const _=k.data?.length||0;return f.value=Object.values(L).length>=20,i.value+=_,n.value=!0,l.value=!1,k}function h(b,w,k,L=Xs.Pending,_,y){const{sub:N="",name:I="",picture:P="",email:C="",nickname:M=""}=k,x={id:b,postId:e,content:w,createdAt:new Date,user:{avatar:P,email:C,name:M||I},userId:N,status:L,isNew:!0};if(_||y){x.ancestorId=_,x.parentId=y;const $=s.value[_];if(_===y)$.children||($.children=[]),$.children.unshift(x);else{const Z=$.children.findIndex(ae=>Number(ae.id)===y);$.children.splice(Z+1,0,x)}}else x.ancestorId=0,x.parentId=0,s.value={[b]:x,...s.value};i.value++}return{isLoaded:n,message:o,postId:e,comments:s,total:i,start:r,hasMore:f,loadingMore:l,loadComments:m,addComment:h}}),qd=["onSubmit"],Qd={class:"ac-form-control border border-neutral bg-base-200 rounded-lg"},em={class:"sr-only",for:"ac-comment"},tm=["placeholder","onKeydown"],nm={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},rm={key:0,class:"text-xs text-neutral-400/40"},sm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},om=["disabled"],im={key:0,class:"ac-loading ac-loading-spinner"},Bs=Dt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},parentId:{},ancestorId:{}},emits:["close"],setup(e,{emit:t}){const n=e,r=Vi(),o=kr(),{t:s}=Yt(),i=Ye("ApiBaseUrl"),a=Ye("Auth0Domain"),l="0.5.4",f=J(),d=J(!1),m=J(""),h=J("");async function b(_){if(!r.user.value)return w();if(!_.target.matches(":invalid")){d.value=!0,h.value="";try{const y=await r.getAccessTokenSilently(),N=await fetch(i+"/api/comment",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${y}`},body:JSON.stringify({comment:m.value,postId:o.postId,domain:a,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0})}),I=await N.json();if(!N.ok||I.message){h.value="Failed to post comment: "+(I.message||"Unknown"),d.value=!1;return}const{id:P,status:C}=I.data;n.ancestorId||n.parentId?o.addComment(P,m.value,r.user.value,n.ancestorId,n.parentId,C):o.addComment(P,m.value,r.user.value,C),m.value=""}catch(y){h.value=y.message||String(y)}d.value=!1,t("close")}}function w(){r.loginWithPopup()}function k(_){const y=navigator.userAgent.match(/Macintosh/);(y&&_.metaKey||!y&&_.ctrlKey)&&b(_)}function L(){t("close")}return zr(()=>{f.value?.focus()}),(_,y)=>(te(),ue("form",{class:"mb-6",onSubmit:Nu(b,["prevent"])},[re("div",Qd,[re("label",em,ge(X(s)("your_comment")),1),mc(re("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:f,rows:"3",placeholder:X(s)("placeholder"),required:"",onKeydown:[Ti(k,["enter"]),Ti(L,["esc"])],"onUpdate:modelValue":y[0]||(y[0]=N=>m.value=N)},null,40,tm),[[Tu,m.value]]),re("div",nm,[_.noVersion?je("",!0):(te(),ue("div",rm,"v"+ge(X(l)),1)),h.value?(te(),ue("div",sm,ge(h.value),1)):je("",!0),re("button",{class:"ac-btn ac-btn-primary ac-btn-sm ml-auto",disabled:d.value},[d.value?(te(),ue("span",im)):je("",!0),mr(ge(_.parentId?X(s)("post_reply"):X(s)("post_comment")),1)],8,om)])])],40,qd))}});var am={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function Ja(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function Mn(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Gs(e,t){var n,r,o,s,i,a=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,l=[],f="",d=t||{},m=0;function h(w){var k=am[w[1]||""],L=l[l.length-1]==w;return k?k[1]?(L?l.pop():l.push(w),k[0|L]):k[0]:w}function b(){for(var w="";l.length;)w+=h(l[l.length-1]);return w}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(w,k,L){return d[k.toLowerCase()]=L,""}).replace(/^\n+|\n+$/g,"");o=a.exec(e);)r=e.substring(m,o.index),m=a.lastIndex,n=o[0],r.match(/[^\\](\\\\)*\\$/)||((i=o[3]||o[4])?n='<pre class="code '+(o[4]?"poetry":o[2].toLowerCase())+'"><code'+(o[2]?' class="language-'+o[2].toLowerCase()+'"':"")+">"+Ja(Mn(i).replace(/^\n+|\n+$/g,""))+"</code></pre>":(i=o[6])?(i.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),s=Gs(Ja(o[5].replace(/^\s*[>*+.-]/gm,""))),i==">"?i="blockquote":(i=i.match(/\./)?"ol":"ul",s=s.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+i+">"+s+"</"+i+">"):o[8]?n='<img src="'+Mn(o[8])+'" alt="'+Mn(o[7])+'">':o[10]?(f=f.replace("<a>",'<a href="'+Mn(o[11]||d[r.toLowerCase()])+'">'),n=b()+"</a>"):o[9]?n="<a>":o[12]||o[14]?n="<"+(i="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+Gs(o[12]||o[15],d)+"</"+i+">":o[16]?n="<code>"+Mn(o[16])+"</code>":(o[17]||o[1])&&(n=h(o[17]||"--"))),f+=r,f+=n;return(f+e.substring(m)+b()).replace(/^\n+|\n+$/g,"")}function lm(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 o=t>>r*8&255;n+=("00"+o.toString(16)).slice(-2)}return n}function Tr(e){return e<10?`0${e}`:`${e}`}function qa(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${Tr(n)}-${Tr(r)}`}function Qa(e){const t=new Date,n=qa(e);if(qa(t)===n){const r=e.getHours(),o=e.getMinutes();return`${Tr(r)}:${Tr(o)}`}return n}const cm=["id"],um={class:"p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900"},fm={class:"flex justify-between items-center font-sans mb-2"},dm={class:"flex items-center text-sm text-base-content dark:text-white"},mm={class:"ac-avatar mr-2"},hm={key:0,class:"w-6 h-6"},pm=["src","alt"],_m={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},gm=["data-tip"],bm=[re("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],ym=["href"],vm=["datetime","title"],Em=["href"],wm=["title","aria-label"],Im=[re("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],km=["innerHTML"],Tm={key:0,class:"italic mt-4 text-gray-500 mb-0 text-sm dark:text-gray-400"},Lm=Dt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=Yt(),r=kr();function o(i){return`${location.origin}${location.pathname}#awcm-${i}`}function s(i){return t.ancestorId&&r.comments[t.ancestorId]?.children?.find(f=>Number(f.id)===Number(i))?.user?.name||""}return(i,a)=>{const l=kc("comment-item",!0);return te(),ue("div",{class:Bn(["comment-item rounded-lg my-4",{"animated flash":i.comment.isNew}]),id:"awcm-"+i.comment.id,onAnimationend:a[2]||(a[2]=f=>i.comment.isNew=!1)},[re("article",um,[re("header",fm,[re("div",dm,[re("div",mm,[i.comment.user.avatar?(te(),ue("div",hm,[re("img",{class:"rounded-full max-w-full max-h-full",src:i.comment.user.avatar,alt:i.comment.user.name},null,8,pm)])):(te(),ue("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:Xn({"background-color":X(lm)(i.comment.user.name||X(n)("anonymous"))})},[re("span",_m,ge((i.comment.user.name||X(n)("anonymous")).substring(0,1)),1)],4))]),mr(ge(i.comment.user.name),1),i.comment.isAdmin?(te(),ue("div",{key:0,class:"ac-tooltip ml-2","data-tip":X(n)("admin")},bm,8,gm)):je("",!0),re("a",{class:"ml-4 no-underline hover:underline",href:o(i.comment.id)},[re("time",{class:"text-xs text-gray-600 dark:text-gray-400",pubdate:"",datetime:i.comment.createdAt,title:X(Qa)(i.comment.createdAt)},ge(X(Qa)(i.comment.createdAt)),9,vm)],8,ym),!i.isFirstLevel&&i.comment.parent_id!==i.comment.ancestor_id?(te(),ue("a",{key:1,class:"text-xs link link-hover ml-4",href:"#awcm-"+i.comment.parent_id},ge(X(n)("reply_to"))+" "+ge(s(i.comment.parent_id))+"(#"+ge(i.comment.parent_id)+")",9,Em)):je("",!0)]),re("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0",type:"button",title:X(n)("reply"),"aria-label":X(n)("reply"),onClick:a[0]||(a[0]=f=>i.comment.isReplying=!i.comment.isReplying)},Im,8,wm)]),re("p",{class:"text-gray-500 dark:text-gray-400",innerHTML:X(Gs)(i.comment.content)},null,8,km),i.comment.status===X(Xs).Pending?(te(),ue("p",Tm,ge(X(n)("approve_hint")),1)):je("",!0)]),i.comment.isReplying&&i.isFirstLevel?(te(),Tn(Bs,{key:0,class:"mt-3 ml-12","no-version":"","ancestor-id":Number(i.ancestorId),"parent-id":Number(i.comment.id),onClose:a[1]||(a[1]=f=>i.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):je("",!0),i.comment.children?.length?(te(!0),ue(xe,{key:1},Yo(i.comment.children,f=>(te(),Tn(l,{class:"ml-12",key:f.id,comment:f,"ancestor-id":Number(i.ancestorId),"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):je("",!0),i.comment.isReplying&&!i.isFirstLevel?(te(),Tn(Bs,{key:2,class:"mt-3 ml-12","ancestor-id":Number(i.ancestorId),"parent-id":Number(i.comment.id)},null,8,["ancestor-id","parent-id"])):je("",!0)],42,cm)}}}),Om={key:0,class:"comments-wrapper"},Nm=["disabled"],Cm={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Pm={key:1,class:"pt-8 text-center"},Sm=[re("span",{class:"ac-loading ac-loading-spinner"},null,-1)],Am=Dt({...{name:"CommentSections"},setup(e){const{t}=Yt(),n=kr();n.loadComments();function r(){n.start+=20,n.loadComments()}return(o,s)=>X(n).isLoaded?(te(),ue("div",Om,[(te(!0),ue(xe,null,Yo(Object.values(X(n).comments).reverse(),i=>(te(),Tn(Lm,{key:i.id,comment:i,"parent-id":i.parentId,"ancestor-id":i.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),X(n).hasMore?(te(),ue("button",{key:0,class:"ac-btn ac-btn-neutral ac-btn-sm ac-btn-block",type:"button",onClick:r,disabled:X(n).loadingMore},[X(n).loadingMore?(te(),ue("span",Cm)):je("",!0),mr(ge(X(t)("load_more")),1)],8,Nm)):je("",!0)])):(te(),ue("div",Pm,Sm))}}),Rm={class:"awesome-comment"},Fm={key:0,class:"ac-alert ac-alert-error mb-4"},xm={class:"flex justify-between items-center py-2"},Dm={class:"text-lg font-bold text-base-content my-0"},Mm={key:0,class:"ac-loading ac-loading-spinner"},Um={key:1,class:"ac-dropdown ac-dropdown-end"},$m={key:0,class:"ac-avatar flex",tabindex:"0"},jm={class:"w-6 h-6 rounded-full"},Wm=["alt","src"],Hm={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Km={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Vm={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Ym={class:"text-base-content"},Xm=["disabled"],Bm=["disabled"],Gm=Dt({__name:"App",setup(e){const t=kr(),{t:n}=Yt(),{isAuthenticated:r,isLoading:o,user:s,loginWithPopup:i,logout:a}=Vi(),l=We(()=>{const m=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const h=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(h),m});function f(){i()}function d(){a({openUrl:!1})}return(m,h)=>(te(),ue("div",Rm,[X(t).message?(te(),ue("div",Fm,[re("p",null,ge(X(t).message),1)])):je("",!0),re("header",xm,[re("h2",Dm,ge(X(n)("discussion"))+" ("+ge(l.value)+")",1),X(o)?(te(),ue("span",Mm)):(te(),ue("div",Um,[X(r)&&X(s)?(te(),ue(xe,{key:0},[X(s).picture?(te(),ue("label",$m,[re("div",jm,[re("img",{class:"w-full h-full block",alt:X(s).name||X(s).email,src:X(s).picture},null,8,Wm)])])):(te(),ue("label",Hm,ge(X(s).email),1)),re("ul",Km,[X(s).picture?(te(),ue("li",Vm,[re("span",Ym,ge(X(s).email),1)])):je("",!0),re("li",null,[re("button",{class:"border-0 bg-base-100",type:"button",disabled:X(o),onClick:d},ge(X(n)("logout")),9,Xm)])])],64)):(te(),ue("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:X(o),onClick:f},ge(X(n)("login")),9,Bm))]))]),Te(Bs),Te(Am)]))}}),zs=[];let el=null;function zm(e,t,n=navigator.language){const r=Au(Gm),o=xu(),s=el||Ki({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),i=jd({legacy:!1,locale:n,fallbackLocale:"en",messages:Jd});return r.use(s),r.use(o),r.use(i),r}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:r,clientId:o,locale:s=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain,o??=this.clientId;const i=zm(r,o,s);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",r),i.provide("comments",zs),i.mount(e)},async preload(e,t,n,r){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=r,el=Ki({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}});const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const s=await o.json();if(s.data){zs.push(...s.data);const i=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:zs.length});document.body.dispatchEvent(i)}}}}();
26
+ */const Nd="9.6.5";function Cd(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ht().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ht().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1)}const Aa=cd.__EXTEND_POINT__,Nt=Nr(Aa);Nt(),Nt(),Nt(),Nt(),Nt(),Nt(),Nt(),Nt();const Ra=Ot.__EXTEND_POINT__,De=Nr(Ra),pe={UNEXPECTED_RETURN_TYPE:Ra,INVALID_ARGUMENT:De(),MUST_BE_CALL_SETUP_TOP:De(),NOT_INSTALLED:De(),NOT_AVAILABLE_IN_LEGACY_MODE:De(),REQUIRED_VALUE:De(),INVALID_VALUE:De(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:De(),NOT_INSTALLED_WITH_PROVIDE:De(),UNEXPECTED_ERROR:De(),NOT_COMPATIBLE_LEGACY_VUE_I18N:De(),BRIDGE_SUPPORT_VUE_2_ONLY:De(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:De(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:De(),__EXTEND_POINT__:De()};function Ee(e,...t){return cn(e,null,void 0)}const $r=It("__translateVNode"),jr=It("__datetimeParts"),Wr=It("__numberParts"),xa=It("__setPluralRules"),Fa=It("__injectWithOption"),Kr=It("__dispose");function Dn(e){if(!re(e))return e;for(const t in e)if(xn(e,t))if(!t.includes("."))re(e[t])&&Dn(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]in o||(o[n[i]]={}),!re(o[n[i]])){r=!0;break}o=o[n[i]]}r||(o[n[s]]=e[t],delete e[t]),re(o[n[s]])&&Dn(o[n[s]])}return e}function Ts(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=Y(n)?n:ue(s)?{}:{[e]:{}};if(ue(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:f}=a;l?(i[l]=i[l]||{},Un(f,i[l])):Un(f,i)}else U(a)&&Un(JSON.parse(a),i)}),o==null&&r)for(const a in i)xn(i,a)&&Dn(i[a]);return i}const Ls=e=>!re(e)||ue(e);function Un(e,t){if(Ls(e)||Ls(t))throw Ee(pe.INVALID_VALUE);for(const n in e)xn(e,n)&&(Ls(e[n])||Ls(t[n])?t[n]=e[n]:Un(e[n],t[n]))}function Ma(e){return e.type}function Da(e,t,n){let s=re(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Ts(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(re(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(re(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Ua(e){return Oe(In,null,e,0)}const $a="__INTLIFY_META__",ja=()=>[],Pd=()=>!1;let Wa=0;function Ka(e){return(t,n,s,o)=>e(n,s,Nn()||void 0,o)}const Sd=()=>{const e=Nn();let t=null;return e&&(t=Ma(e)[$a])?{[$a]:t}:null};function Hr(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson;let i=z(e.inheritLocale)?e.inheritLocale:!0;const a=q(n&&i?n.locale.value:U(e.locale)?e.locale:dn),l=q(n&&i?n.fallbackLocale.value:U(e.fallbackLocale)||ue(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),f=q(Ts(a.value,e)),d=q(Y(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),m=q(Y(e.numberFormats)?e.numberFormats:{[a.value]:{}});let h=n?n.missingWarn:z(e.missingWarn)||kt(e.missingWarn)?e.missingWarn:!0,b=n?n.fallbackWarn:z(e.fallbackWarn)||kt(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:z(e.fallbackRoot)?e.fallbackRoot:!0,k=!!e.fallbackFormat,O=me(e.missing)?e.missing:null,g=me(e.missing)?Ka(e.missing):null,y=me(e.postTranslation)?e.postTranslation:null,L=n?n.warnHtmlMessage:z(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const P=n?n.modifiers:Y(e.modifiers)?e.modifiers:{};let F=e.pluralRules||n&&n.pluralRules,C;C=(()=>{o&&_a(null);const E={version:Nd,locale:a.value,fallbackLocale:l.value,messages:f.value,modifiers:P,pluralRules:F,missing:g===null?void 0:g,missingWarn:h,fallbackWarn:b,fallbackFormat:k,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:L,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};E.datetimeFormats=d.value,E.numberFormats=m.value,E.__datetimeFormatters=Y(C)?C.__datetimeFormatters:void 0,E.__numberFormatters=Y(C)?C.__numberFormatters:void 0;const T=vd(E);return o&&_a(T),T})(),Mn(C,a.value,l.value);function $(){return[a.value,l.value,f.value,d.value,m.value]}const Z=Ke({get:()=>a.value,set:E=>{a.value=E,C.locale=a.value}}),ae=Ke({get:()=>l.value,set:E=>{l.value=E,C.fallbackLocale=l.value,Mn(C,a.value,E)}}),ie=Ke(()=>f.value),we=Ke(()=>d.value),Be=Ke(()=>m.value);function Ue(){return me(y)?y:null}function G(E){y=E,C.postTranslation=E}function oe(){return O}function te(E){E!==null&&(g=Ka(E)),O=E,C.missing=g}const _e=(E,T,j,H,J,fe)=>{$();let Ie;try{__INTLIFY_PROD_DEVTOOLS__,o||(C.fallbackContext=n?yd():void 0),Ie=E(C)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(C.fallbackContext=void 0)}if(j!=="translate exists"&&ve(Ie)&&Ie===Is||j==="translate exists"&&!Ie){const[St,Zr]=T();return n&&I?H(n):J(St)}else{if(fe(Ie))return Ie;throw Ee(pe.UNEXPECTED_RETURN_TYPE)}};function Qe(...E){return _e(T=>Reflect.apply(Ia,null,[T,...E]),()=>Mr(...E),"translate",T=>Reflect.apply(T.t,T,[...E]),T=>T,T=>U(T))}function He(...E){const[T,j,H]=E;if(H&&!re(H))throw Ee(pe.INVALID_ARGUMENT);return Qe(T,j,Te({resolvedMessage:!0},H||{}))}function Ce(...E){return _e(T=>Reflect.apply(La,null,[T,...E]),()=>Dr(...E),"datetime format",T=>Reflect.apply(T.d,T,[...E]),()=>la,T=>U(T))}function Ct(...E){return _e(T=>Reflect.apply(Ca,null,[T,...E]),()=>Ur(...E),"number format",T=>Reflect.apply(T.n,T,[...E]),()=>la,T=>U(T))}function Pt(E){return E.map(T=>U(T)||ve(T)||z(T)?Ua(String(T)):T)}const Ae={normalize:Pt,interpolate:E=>E,type:"vnode"};function lt(...E){return _e(T=>{let j;const H=T;try{H.processor=Ae,j=Reflect.apply(Ia,null,[H,...E])}finally{H.processor=null}return j},()=>Mr(...E),"translate",T=>T[$r](...E),T=>[Ua(T)],T=>ue(T))}function ct(...E){return _e(T=>Reflect.apply(Ca,null,[T,...E]),()=>Ur(...E),"number format",T=>T[Wr](...E),ja,T=>U(T)||ue(T))}function $e(...E){return _e(T=>Reflect.apply(La,null,[T,...E]),()=>Dr(...E),"datetime format",T=>T[jr](...E),ja,T=>U(T)||ue(T))}function Ge(E){F=E,C.pluralRules=F}function et(E,T){return _e(()=>{if(!E)return!1;const j=U(T)?T:a.value,H=u(j),J=C.messageResolver(H,E);return hn(J)||Xe(J)||U(J)},()=>[E],"translate exists",j=>Reflect.apply(j.te,j,[E,T]),Pd,j=>z(j))}function _(E){let T=null;const j=ia(C,l.value,a.value);for(let H=0;H<j.length;H++){const J=f.value[j[H]]||{},fe=C.messageResolver(J,E);if(fe!=null){T=fe;break}}return T}function c(E){const T=_(E);return T??(n?n.tm(E)||{}:{})}function u(E){return f.value[E]||{}}function p(E,T){if(r){const j={[E]:T};for(const H in j)xn(j,H)&&Dn(j[H]);T=j[E]}f.value[E]=T,C.messages=f.value}function v(E,T){f.value[E]=f.value[E]||{};const j={[E]:T};for(const H in j)xn(j,H)&&Dn(j[H]);T=j[E],Un(T,f.value[E]),C.messages=f.value}function N(E){return d.value[E]||{}}function S(E,T){d.value[E]=T,C.datetimeFormats=d.value,Na(C,E,T)}function R(E,T){d.value[E]=Te(d.value[E]||{},T),C.datetimeFormats=d.value,Na(C,E,T)}function x(E){return m.value[E]||{}}function A(E,T){m.value[E]=T,C.numberFormats=m.value,Sa(C,E,T)}function W(E,T){m.value[E]=Te(m.value[E]||{},T),C.numberFormats=m.value,Sa(C,E,T)}Wa++,n&&Or&&(Mt(n.locale,E=>{i&&(a.value=E,C.locale=E,Mn(C,a.value,l.value))}),Mt(n.fallbackLocale,E=>{i&&(l.value=E,C.fallbackLocale=E,Mn(C,a.value,l.value))}));const M={id:Wa,locale:Z,fallbackLocale:ae,get inheritLocale(){return i},set inheritLocale(E){i=E,E&&n&&(a.value=n.locale.value,l.value=n.fallbackLocale.value,Mn(C,a.value,l.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:ie,get modifiers(){return P},get pluralRules(){return F||{}},get isGlobal(){return o},get missingWarn(){return h},set missingWarn(E){h=E,C.missingWarn=h},get fallbackWarn(){return b},set fallbackWarn(E){b=E,C.fallbackWarn=b},get fallbackRoot(){return I},set fallbackRoot(E){I=E},get fallbackFormat(){return k},set fallbackFormat(E){k=E,C.fallbackFormat=k},get warnHtmlMessage(){return L},set warnHtmlMessage(E){L=E,C.warnHtmlMessage=E},get escapeParameter(){return w},set escapeParameter(E){w=E,C.escapeParameter=E},t:Qe,getLocaleMessage:u,setLocaleMessage:p,mergeLocaleMessage:v,getPostTranslationHandler:Ue,setPostTranslationHandler:G,getMissingHandler:oe,setMissingHandler:te,[xa]:Ge};return M.datetimeFormats=we,M.numberFormats=Be,M.rt=He,M.te=et,M.tm=c,M.d=Ce,M.n=Ct,M.getDateTimeFormat=N,M.setDateTimeFormat=S,M.mergeDateTimeFormat=R,M.getNumberFormat=x,M.setNumberFormat=A,M.mergeNumberFormat=W,M[Fa]=s,M[$r]=lt,M[jr]=$e,M[Wr]=ct,M}function Ad(e){const t=U(e.locale)?e.locale:dn,n=U(e.fallbackLocale)||ue(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=me(e.missing)?e.missing:void 0,o=z(e.silentTranslationWarn)||kt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=z(e.silentFallbackWarn)||kt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=z(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=Y(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,d=me(e.postTranslation)?e.postTranslation:void 0,m=U(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,b=z(e.sync)?e.sync:!0;let I=e.messages;if(Y(e.sharedMessages)){const P=e.sharedMessages;I=Object.keys(P).reduce((C,D)=>{const $=C[D]||(C[D]={});return Te($,P[D]),C},I||{})}const{__i18n:k,__root:O,__injectWithOption:g}=e,y=e.datetimeFormats,L=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:n,messages:I,flatJson:w,datetimeFormats:y,numberFormats:L,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:f,postTranslation:d,warnHtmlMessage:m,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:b,__i18n:k,__root:O,__injectWithOption:g}}function Vr(e={},t){{const n=Hr(Ad(e)),{__extender:s}=e,o={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},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(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return z(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=z(r)?!r:r},get silentFallbackWarn(){return z(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=z(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,a,l]=r,f={};let d=null,m=null;if(!U(i))throw Ee(pe.INVALID_ARGUMENT);const h=i;return U(a)?f.locale=a:ue(a)?d=a:Y(a)&&(m=a),ue(l)?d=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[h,d||m||{},f])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,a,l]=r,f={plural:1};let d=null,m=null;if(!U(i))throw Ee(pe.INVALID_ARGUMENT);const h=i;return U(a)?f.locale=a:ve(a)?f.plural=a:ue(a)?d=a:Y(a)&&(m=a),U(l)?f.locale=l:ue(l)?d=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[h,d||m||{},f])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1}};return o.__extender=s,o}}const Yr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Rd({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Me?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function Ha(e){return Me}const Va=$t({name:"i18n-t",props:Te({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ve(e)||!isNaN(e)}},Yr),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(m=>m!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=U(e.plural)?+e.plural:e.plural);const a=Rd(t,r),l=o[$r](e.keypath,a,i),f=Te({},s),d=U(e.tag)||re(e.tag)?e.tag:Ha();return gi(d,f,l)}}});function xd(e){return ue(e)&&!U(e[0])}function Ya(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),U(e.format)?i.key=e.format:re(e.format)&&(U(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((h,b)=>n.includes(b)?Te({},h,{[b]:e.format[b]}):h,{}));const l=s(e.value,i,a);let f=[i.key];ue(l)?f=l.map((h,b)=>{const I=o[h.type],k=I?I({[h.type]:h.value,index:b,parts:l}):[h.value];return xd(k)&&(k[0].key=`${h.type}-${b}`),k}):U(l)&&(f=[l]);const d=Te({},r),m=U(e.tag)||re(e.tag)?e.tag:Ha();return gi(m,d,f)}}const Xa=$t({name:"i18n-n",props:Te({value:{type:Number,required:!0},format:{type:[String,Object]}},Yr),setup(e,t){const n=e.i18n||Gt({useScope:"parent",__useComponent:!0});return Ya(e,t,Pa,(...s)=>n[Wr](...s))}}),Ba=$t({name:"i18n-d",props:Te({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Yr),setup(e,t){const n=e.i18n||Gt({useScope:"parent",__useComponent:!0});return Ya(e,t,Oa,(...s)=>n[jr](...s))}});function Fd(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Md(e){const t=i=>{const{instance:a,modifiers:l,value:f}=i;if(!a||!a.$)throw Ee(pe.UNEXPECTED_ERROR);const d=Fd(e,a.$),m=Ga(f);return[Reflect.apply(d.t,d,[...za(m)]),d]};return{created:(i,a)=>{const[l,f]=t(a);Or&&e.global===f&&(i.__i18nWatcher=Mt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=f,i.textContent=l},unmounted:i=>{Or&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,f=Ga(a);i.textContent=Reflect.apply(l.t,l,[...za(f)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Ga(e){if(U(e))return{path:e};if(Y(e)){if(!("path"in e))throw Ee(pe.REQUIRED_VALUE,"path");return e}else throw Ee(pe.INVALID_VALUE)}function za(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return U(n)&&(i.locale=n),ve(o)&&(i.plural=o),ve(r)&&(i.plural=r),[t,a,i]}function Dd(e,t,...n){const s=Y(n[0])?n[0]:{},o=!!s.useI18nComponentName;(z(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Va.name,"I18nT"].forEach(i=>e.component(i,Va)),[Xa.name,"I18nN"].forEach(i=>e.component(i,Xa)),[Ba.name,"I18nD"].forEach(i=>e.component(i,Ba))),e.directive("t",Md(t))}function Ud(e,t,n){return{beforeCreate(){const s=Nn();if(!s)throw Ee(pe.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Za(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Vr(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Za(e,o);else{this.$i18n=Vr({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&Da(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Nn();if(!s)throw Ee(pe.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Za(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[xa](t.pluralizationRules||e.pluralizationRules);const n=Ts(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const $d=It("global-vue-i18n");function jd(e={},t){const n=__VUE_I18N_LEGACY_API__&&z(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=z(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[i,a]=Wd(e,n),l=It("");function f(h){return r.get(h)||null}function d(h,b){r.set(h,b)}function m(h){r.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(b,...I){if(b.__VUE_I18N_SYMBOL__=l,b.provide(b.__VUE_I18N_SYMBOL__,h),Y(I[0])){const g=I[0];h.__composerExtend=g.__composerExtend,h.__vueI18nExtend=g.__vueI18nExtend}let k=null;!n&&s&&(k=Zd(b,h.global)),__VUE_I18N_FULL_INSTALL__&&Dd(b,h,...I),__VUE_I18N_LEGACY_API__&&n&&b.mixin(Ud(a,a.__composer,h));const O=b.unmount;b.unmount=()=>{k&&k(),h.dispose(),O()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:f,__setInstance:d,__deleteInstance:m};return h}}function Gt(e={}){const t=Nn();if(t==null)throw Ee(pe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ee(pe.NOT_INSTALLED);const n=Kd(t),s=Vd(n),o=Ma(t),r=Hd(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Ee(pe.NOT_AVAILABLE_IN_LEGACY_MODE);return Gd(t,r,s,e)}if(r==="global")return Da(s,e,o),s;if(r==="parent"){let l=Yd(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Te({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=Hr(l),i.__composerExtend&&(a[Kr]=i.__composerExtend(a)),Bd(i,t,a),i.__setInstance(t,a)}return a}function Wd(e,t,n){const s=Ms();{const o=__VUE_I18N_LEGACY_API__&&t?s.run(()=>Vr(e)):s.run(()=>Hr(e));if(o==null)throw Ee(pe.UNEXPECTED_ERROR);return[s,o]}}function Kd(e){{const t=Ye(e.isCE?$d:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ee(e.isCE?pe.NOT_INSTALLED_WITH_PROVIDE:pe.UNEXPECTED_ERROR);return t}}function Hd(e,t){return ws(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Vd(e){return e.mode==="composition"?e.global:e.global.__composer}function Yd(e,t,n=!1){let s=null;const o=t.root;let r=Xd(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[Fa]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Xd(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Bd(e,t,n){Zs(()=>{},t),Js(()=>{const s=n;e.__deleteInstance(t);const o=s[Kr];o&&(o(),delete s[Kr])},t)}function Gd(e,t,n,s={}){const o=t==="local",r=jl(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Ee(pe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=z(s.inheritLocale)?s.inheritLocale:!U(s.locale),a=q(!o||i?n.locale.value:U(s.locale)?s.locale:dn),l=q(!o||i?n.fallbackLocale.value:U(s.fallbackLocale)||ue(s.fallbackLocale)||Y(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),f=q(Ts(a.value,s)),d=q(Y(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),m=q(Y(s.numberFormats)?s.numberFormats:{[a.value]:{}}),h=o?n.missingWarn:z(s.missingWarn)||kt(s.missingWarn)?s.missingWarn:!0,b=o?n.fallbackWarn:z(s.fallbackWarn)||kt(s.fallbackWarn)?s.fallbackWarn:!0,I=o?n.fallbackRoot:z(s.fallbackRoot)?s.fallbackRoot:!0,k=!!s.fallbackFormat,O=me(s.missing)?s.missing:null,g=me(s.postTranslation)?s.postTranslation:null,y=o?n.warnHtmlMessage:z(s.warnHtmlMessage)?s.warnHtmlMessage:!0,L=!!s.escapeParameter,w=o?n.modifiers:Y(s.modifiers)?s.modifiers:{},P=s.pluralRules||o&&n.pluralRules;function F(){return[a.value,l.value,f.value,d.value,m.value]}const C=Ke({get:()=>r.value?r.value.locale.value:a.value,set:u=>{r.value&&(r.value.locale.value=u),a.value=u}}),D=Ke({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:u=>{r.value&&(r.value.fallbackLocale.value=u),l.value=u}}),$=Ke(()=>r.value?r.value.messages.value:f.value),Z=Ke(()=>d.value),ae=Ke(()=>m.value);function ie(){return r.value?r.value.getPostTranslationHandler():g}function we(u){r.value&&r.value.setPostTranslationHandler(u)}function Be(){return r.value?r.value.getMissingHandler():O}function Ue(u){r.value&&r.value.setMissingHandler(u)}function G(u){return F(),u()}function oe(...u){return r.value?G(()=>Reflect.apply(r.value.t,null,[...u])):G(()=>"")}function te(...u){return r.value?Reflect.apply(r.value.rt,null,[...u]):""}function _e(...u){return r.value?G(()=>Reflect.apply(r.value.d,null,[...u])):G(()=>"")}function Qe(...u){return r.value?G(()=>Reflect.apply(r.value.n,null,[...u])):G(()=>"")}function He(u){return r.value?r.value.tm(u):{}}function Ce(u,p){return r.value?r.value.te(u,p):!1}function Ct(u){return r.value?r.value.getLocaleMessage(u):{}}function Pt(u,p){r.value&&(r.value.setLocaleMessage(u,p),f.value[u]=p)}function pn(u,p){r.value&&r.value.mergeLocaleMessage(u,p)}function Ae(u){return r.value?r.value.getDateTimeFormat(u):{}}function lt(u,p){r.value&&(r.value.setDateTimeFormat(u,p),d.value[u]=p)}function ct(u,p){r.value&&r.value.mergeDateTimeFormat(u,p)}function $e(u){return r.value?r.value.getNumberFormat(u):{}}function Ge(u,p){r.value&&(r.value.setNumberFormat(u,p),m.value[u]=p)}function et(u,p){r.value&&r.value.mergeNumberFormat(u,p)}const _={get id(){return r.value?r.value.id:-1},locale:C,fallbackLocale:D,messages:$,datetimeFormats:Z,numberFormats:ae,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(u){r.value&&(r.value.inheritLocale=u)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(f.value)},get modifiers(){return r.value?r.value.modifiers:w},get pluralRules(){return r.value?r.value.pluralRules:P},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:h},set missingWarn(u){r.value&&(r.value.missingWarn=u)},get fallbackWarn(){return r.value?r.value.fallbackWarn:b},set fallbackWarn(u){r.value&&(r.value.missingWarn=u)},get fallbackRoot(){return r.value?r.value.fallbackRoot:I},set fallbackRoot(u){r.value&&(r.value.fallbackRoot=u)},get fallbackFormat(){return r.value?r.value.fallbackFormat:k},set fallbackFormat(u){r.value&&(r.value.fallbackFormat=u)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:y},set warnHtmlMessage(u){r.value&&(r.value.warnHtmlMessage=u)},get escapeParameter(){return r.value?r.value.escapeParameter:L},set escapeParameter(u){r.value&&(r.value.escapeParameter=u)},t:oe,getPostTranslationHandler:ie,setPostTranslationHandler:we,getMissingHandler:Be,setMissingHandler:Ue,rt:te,d:_e,n:Qe,tm:He,te:Ce,getLocaleMessage:Ct,setLocaleMessage:Pt,mergeLocaleMessage:pn,getDateTimeFormat:Ae,setDateTimeFormat:lt,mergeDateTimeFormat:ct,getNumberFormat:$e,setNumberFormat:Ge,mergeNumberFormat:et};function c(u){u.locale.value=a.value,u.fallbackLocale.value=l.value,Object.keys(f.value).forEach(p=>{u.mergeLocaleMessage(p,f.value[p])}),Object.keys(d.value).forEach(p=>{u.mergeDateTimeFormat(p,d.value[p])}),Object.keys(m.value).forEach(p=>{u.mergeNumberFormat(p,m.value[p])}),u.escapeParameter=L,u.fallbackFormat=k,u.fallbackRoot=I,u.fallbackWarn=b,u.missingWarn=h,u.warnHtmlMessage=y}return Ho(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Ee(pe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=u.locale.value,l.value=u.fallbackLocale.value,f.value=u.messages.value,d.value=u.datetimeFormats.value,m.value=u.numberFormats.value):o&&c(u)}),_}const zd=["locale","fallbackLocale","availableLocales"],Ja=["t","rt","d","n","tm","te"];function Zd(e,t){const n=Object.create(null);return zd.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw Ee(pe.UNEXPECTED_ERROR);const i=he(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Ja.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw Ee(pe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Ja.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Cd(),__INTLIFY_JIT_COMPILATION__?fa(Id):fa(wd),pd(Zf),_d(ia),__INTLIFY_PROD_DEVTOOLS__){const e=ht();e.__INTLIFY__=!0,od(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Jd={en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"comments normally got approved within 24 hours",discussion:"Discussion",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",your_comment:"Your comment"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",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",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",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",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",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",your_comment:"Seu comentário"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内获得批准",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}},ch="",uh="",fh="",dh="";var Xr=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e))(Xr||{});function qa(e){const{created_at:t,parent_id:n,ancestor_id:s,...o}=e;return{...o,parentId:n,ancestorId:s,status:Number(e.status),createdAt:new Date(t)}}const Os=$u("store",()=>{const e=Ye("postId"),t=Ye("comments"),n=q(!!t?.length),s=q(0),o=q(""),r=q(d(t||[])),i=q(0),a=Ye("ApiBaseUrl"),l=q(!1),f=q(!1);function d(b){const I={},k=[];return b.forEach(O=>{!O.ancestor_id||Number(O.ancestor_id)===0?I[O.id]=qa(O):k.push(O)}),k.forEach(O=>{if(O.ancestor_id in I){const g=I[O.ancestor_id];g.children=[...g.children||[],qa(O)]}}),I}async function m(){o.value="",l.value=!0;const b=new URLSearchParams;b.append("postId",e),b.append("start",s.value.toString());const I=await fetch(`${a}/api/comments?${b}`);if(!I.ok){o.value="Load comments failed. "+I.statusText,n.value=!0,l.value=!1;return}const k=await I.json();if(k.code!==0){o.value="Load comments failed. "+k.message,n.value=!0,l.value=!1;return}const O=d(k.data||[]);Object.assign(r.value,O);const g=k.data?.length||0;return f.value=Object.values(O).length>=20,i.value+=g,n.value=!0,l.value=!1,k}function h(b,I,k,O=Xr.Pending,g,y){const{sub:L="",name:w="",picture:P="",email:F="",nickname:C=""}=k,D={id:b,postId:e,content:I,createdAt:new Date,user:{avatar:P,email:F,name:C||w},userId:L,status:O,isNew:!0};if(g||y){D.ancestorId=g,D.parentId=y;const $=r.value[g];if($.children||($.children=[]),g===y)$.children.unshift(D);else{const Z=$.children.findIndex(ae=>Number(ae.id)===y);$.children.splice(Z+1,0,D)}}else D.ancestorId=0,D.parentId=0,r.value={[b]:D,...r.value};i.value++}return{isLoaded:n,message:o,postId:e,comments:r,total:i,start:s,hasMore:f,loadingMore:l,loadComments:m,addComment:h}}),qd=["onSubmit"],Qd={class:"ac-form-control border border-neutral bg-base-200 rounded-lg"},em={class:"sr-only",for:"ac-comment"},tm=["placeholder","onKeydown"],nm={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},sm={key:0,class:"text-xs text-neutral-400/40"},rm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},om=["disabled"],im={key:0,class:"ac-loading ac-loading-spinner"},Br=$t({...{name:"CommentForm"},props:{noVersion:{type:Boolean},parentId:{},ancestorId:{}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,o=Xi(),r=Os(),{t:i}=Gt(),a=Ye("ApiBaseUrl"),l=Ye("Auth0Domain"),f="0.5.6",d=q(),m=q(!1),h=q(""),b=q("");async function I(y){if(!o.user.value)return k();if(!y.target.matches(":invalid")){m.value=!0,b.value="";try{const L=await o.getAccessTokenSilently(),w=await fetch(a+"/api/comment",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${L}`},body:JSON.stringify({comment:h.value,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0})}),P=await w.json();if(!w.ok||P.message){b.value="Failed to post comment: "+(P.message||"Unknown"),m.value=!1;return}const{id:F,status:C}=P.data;n.ancestorId||n.parentId?r.addComment(F,h.value,o.user.value,n.ancestorId,n.parentId,C):r.addComment(F,h.value,o.user.value,C),h.value="",s("close")}catch(L){b.value=L.message||String(L)}m.value=!1}}function k(){o.loginWithPopup()}function O(y){const L=navigator.userAgent.match(/Macintosh/);(L&&y.metaKey||!L&&y.ctrlKey)&&I(y)}function g(){s("close")}return Zs(()=>{d.value?.focus()}),(y,L)=>(ne(),ce("form",{class:"mb-6",onSubmit:Lu(I,["prevent"])},[se("div",Qd,[se("label",em,be(B(i)("your_comment")),1),lc(se("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:d,rows:"3",placeholder:B(i)("placeholder"),required:"",onKeydown:[Oi(O,["enter"]),Oi(g,["esc"])],"onUpdate:modelValue":L[0]||(L[0]=w=>h.value=w)},null,40,tm),[[Iu,h.value]]),se("div",nm,[y.noVersion?We("",!0):(ne(),ce("div",sm,"v"+be(B(f)),1)),b.value?(ne(),ce("div",rm,be(b.value),1)):We("",!0),se("button",{class:"ac-btn ac-btn-primary ac-btn-sm ml-auto",disabled:m.value},[m.value?(ne(),ce("span",im)):We("",!0),_s(be(y.parentId?B(i)("post_reply"):B(i)("post_comment")),1)],8,om)])])],40,qd))}});var am={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function Qa(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function $n(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Gr(e,t){var n,s,o,r,i,a=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,l=[],f="",d=t||{},m=0;function h(I){var k=am[I[1]||""],O=l[l.length-1]==I;return k?k[1]?(O?l.pop():l.push(I),k[0|O]):k[0]:I}function b(){for(var I="";l.length;)I+=h(l[l.length-1]);return I}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(I,k,O){return d[k.toLowerCase()]=O,""}).replace(/^\n+|\n+$/g,"");o=a.exec(e);)s=e.substring(m,o.index),m=a.lastIndex,n=o[0],s.match(/[^\\](\\\\)*\\$/)||((i=o[3]||o[4])?n='<pre class="code '+(o[4]?"poetry":o[2].toLowerCase())+'"><code'+(o[2]?' class="language-'+o[2].toLowerCase()+'"':"")+">"+Qa($n(i).replace(/^\n+|\n+$/g,""))+"</code></pre>":(i=o[6])?(i.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),r=Gr(Qa(o[5].replace(/^\s*[>*+.-]/gm,""))),i==">"?i="blockquote":(i=i.match(/\./)?"ol":"ul",r=r.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+i+">"+r+"</"+i+">"):o[8]?n='<img src="'+$n(o[8])+'" alt="'+$n(o[7])+'">':o[10]?(f=f.replace("<a>",'<a href="'+$n(o[11]||d[s.toLowerCase()])+'">'),n=b()+"</a>"):o[9]?n="<a>":o[12]||o[14]?n="<"+(i="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+Gr(o[12]||o[15],d)+"</"+i+">":o[16]?n="<code>"+$n(o[16])+"</code>":(o[17]||o[1])&&(n=h(o[17]||"--"))),f+=s,f+=n;return(f+e.substring(m)+b()).replace(/^\n+|\n+$/g,"")}function lm(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const o=t>>s*8&255;n+=("00"+o.toString(16)).slice(-2)}return n}function Ns(e){return e<10?`0${e}`:`${e}`}function el(e){const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Ns(n)}-${Ns(s)}`}function tl(e){const t=new Date,n=el(e);if(el(t)===n){const s=e.getHours(),o=e.getMinutes();return`${Ns(s)}:${Ns(o)}`}return n}const cm=["id"],um={class:"p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900"},fm={class:"flex justify-between items-center font-sans mb-2"},dm={class:"flex items-center text-sm text-base-content dark:text-white"},mm={class:"ac-avatar mr-2"},hm={key:0,class:"w-6 h-6"},pm=["src","alt"],_m={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},gm=["data-tip"],bm=[se("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],ym=["href"],vm=["datetime","title"],Em=["href"],wm=["title","aria-label"],Im=[se("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],km=["innerHTML"],Tm={key:0,class:"italic mt-4 text-gray-500 mb-0 text-sm dark:text-gray-400"},Lm=$t({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const{t}=Gt(),n=Os(),s=e;function o(i){return`${location.origin}${location.pathname}#awcm-${i}`}function r(i){return s.ancestorId&&n.comments[s.ancestorId]?.children?.find(f=>Number(f.id)===Number(i))?.user?.name||""}return(i,a)=>{const l=yc("comment-item",!0);return ne(),ce("div",{class:Zn(["comment-item rounded-lg my-4",{"animated flash":i.comment.isNew}]),id:"awcm-"+i.comment.id,onAnimationend:a[2]||(a[2]=f=>i.comment.isNew=!1)},[se("article",um,[se("header",fm,[se("div",dm,[se("div",mm,[i.comment.user.avatar?(ne(),ce("div",hm,[se("img",{class:"rounded-full max-w-full max-h-full",src:i.comment.user.avatar,alt:i.comment.user.name},null,8,pm)])):(ne(),ce("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:zn({"background-color":B(lm)(i.comment.user.name||B(t)("anonymous"))})},[se("span",_m,be((i.comment.user.name||B(t)("anonymous")).substring(0,1)),1)],4))]),_s(be(i.comment.user.name),1),i.comment.isAdmin?(ne(),ce("div",{key:0,class:"ac-tooltip ml-2","data-tip":B(t)("admin")},bm,8,gm)):We("",!0),se("a",{class:"ml-4 no-underline hover:underline",href:o(i.comment.id)},[se("time",{class:"text-xs text-gray-600 dark:text-gray-400",pubdate:"",datetime:i.comment.createdAt,title:B(tl)(i.comment.createdAt)},be(B(tl)(i.comment.createdAt)),9,vm)],8,ym),!i.isFirstLevel&&i.comment.parent_id!==i.comment.ancestor_id?(ne(),ce("a",{key:1,class:"text-xs link link-hover ml-4",href:"#awcm-"+i.comment.parent_id},be(B(t)("reply_to"))+" "+be(r(i.comment.parent_id))+"(#"+be(i.comment.parent_id)+")",9,Em)):We("",!0)]),se("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0",type:"button",title:B(t)("reply"),"aria-label":B(t)("reply"),onClick:a[0]||(a[0]=f=>i.comment.isReplying=!i.comment.isReplying)},Im,8,wm)]),se("p",{class:"text-gray-500 dark:text-gray-400",innerHTML:B(Gr)(i.comment.content)},null,8,km),i.comment.status===B(Xr).Pending?(ne(),ce("p",Tm,be(B(t)("approve_hint")),1)):We("",!0)]),i.comment.isReplying&&i.isFirstLevel?(ne(),Ln(Br,{key:0,class:"mt-3 ml-12","no-version":"","ancestor-id":Number(i.ancestorId),"parent-id":Number(i.comment.id),onClose:a[1]||(a[1]=f=>i.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):We("",!0),i.comment.children?.length?(ne(!0),ce(Me,{key:1},Xo(i.comment.children,f=>(ne(),Ln(l,{class:"ml-12",key:f.id,comment:f,"ancestor-id":Number(i.ancestorId),"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):We("",!0),i.comment.isReplying&&!i.isFirstLevel?(ne(),Ln(Br,{key:2,class:"mt-3 ml-12","ancestor-id":Number(i.ancestorId),"parent-id":Number(i.comment.id)},null,8,["ancestor-id","parent-id"])):We("",!0)],42,cm)}}}),Om={key:0,class:"comments-wrapper"},Nm=["disabled"],Cm={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Pm={key:1,class:"pt-8 text-center"},Sm=[se("span",{class:"ac-loading ac-loading-spinner"},null,-1)],Am=$t({...{name:"CommentSections"},setup(e){const{t}=Gt(),n=Os();n.loadComments();function s(){n.start+=20,n.loadComments()}return(o,r)=>B(n).isLoaded?(ne(),ce("div",Om,[(ne(!0),ce(Me,null,Xo(Object.values(B(n).comments).reverse(),i=>(ne(),Ln(Lm,{key:i.id,comment:i,"parent-id":i.parentId,"ancestor-id":i.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),B(n).hasMore?(ne(),ce("button",{key:0,class:"ac-btn ac-btn-neutral ac-btn-sm ac-btn-block",type:"button",onClick:s,disabled:B(n).loadingMore},[B(n).loadingMore?(ne(),ce("span",Cm)):We("",!0),_s(be(B(t)("load_more")),1)],8,Nm)):We("",!0)])):(ne(),ce("div",Pm,Sm))}}),Rm={class:"awesome-comment"},xm={key:0,class:"ac-alert ac-alert-error mb-4"},Fm={class:"flex justify-between items-center py-2"},Mm={class:"text-lg font-bold text-base-content my-0"},Dm={key:0,class:"ac-loading ac-loading-spinner"},Um={key:1,class:"ac-dropdown ac-dropdown-end"},$m={key:0,class:"ac-avatar flex",tabindex:"0"},jm={class:"w-6 h-6 rounded-full"},Wm=["alt","src"],Km={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Hm={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Vm={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Ym={class:"text-base-content"},Xm=["disabled"],Bm=["disabled"],Gm=$t({__name:"App",setup(e){const t=Os(),{t:n}=Gt(),{isAuthenticated:s,isLoading:o,user:r,loginWithPopup:i,logout:a}=Xi(),l=Ke(()=>{const m=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const h=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(h),m});function f(){i()}function d(){a({openUrl:!1})}return(m,h)=>(ne(),ce("div",Rm,[B(t).message?(ne(),ce("div",xm,[se("p",null,be(B(t).message),1)])):We("",!0),se("header",Fm,[se("h2",Mm,be(B(n)("discussion"))+" ("+be(l.value)+")",1),B(o)?(ne(),ce("span",Dm)):(ne(),ce("div",Um,[B(s)&&B(r)?(ne(),ce(Me,{key:0},[B(r).picture?(ne(),ce("label",$m,[se("div",jm,[se("img",{class:"w-full h-full block",alt:B(r).name||B(r).email,src:B(r).picture},null,8,Wm)])])):(ne(),ce("label",Km,be(B(r).email),1)),se("ul",Hm,[B(r).picture?(ne(),ce("li",Vm,[se("span",Ym,be(B(r).email),1)])):We("",!0),se("li",null,[se("button",{class:"border-0 bg-base-100",type:"button",disabled:B(o),onClick:d},be(B(n)("logout")),9,Xm)])])],64)):(ne(),ce("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:B(o),onClick:f},be(B(n)("login")),9,Bm))]))]),Oe(Br),Oe(Am)]))}}),zr=[];let nl=null;function zm(e,t,n=navigator.language){const s=Pu(Gm),o=Ru(),r=nl||Yi({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),i=jd({legacy:!1,locale:n,fallbackLocale:"en",messages:Jd});return s.use(r),s.use(o),s.use(i),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:o,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=zm(s,o,r);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",zr),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,nl=Yi({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await o.json();if(r.data){zr.push(...r.data);const i=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:zr.length});document.body.dispatchEvent(i)}}}}();