@roudanio/awesome-comment 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/awesome-comment.iife.js +15 -15
- package/dist/awesome-comment.js +9 -5
- package/dist/awesome-comment.umd.js +15 -15
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var AwesomeComment=(function(){"use strict";function Xs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Cn=[],dt=()=>{},Go=()=>!1,Kr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ys=e=>e.startsWith("onUpdate:"),$e=Object.assign,Js=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gf=Object.prototype.hasOwnProperty,le=(e,t)=>Gf.call(e,t),B=Array.isArray,On=e=>Wr(e)==="[object Map]",Zo=e=>Wr(e)==="[object Set]",G=e=>typeof e=="function",Se=e=>typeof e=="string",zt=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Xo=e=>(_e(e)||G(e))&&G(e.then)&&G(e.catch),Yo=Object.prototype.toString,Wr=e=>Yo.call(e),Zf=e=>Wr(e).slice(8,-1),Jo=e=>Wr(e)==="[object Object]",Hr=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yn=Xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Xf=/-\w/g,Qe=zr(e=>e.replace(Xf,t=>t.slice(1).toUpperCase())),Yf=/\B([A-Z])/g,Vt=zr(e=>e.replace(Yf,"-$1").toLowerCase()),Vr=zr(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=zr(e=>e?`on${Vr(e)}`:""),Bt=(e,t)=>!Object.is(e,t),Br=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},qo=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Qs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Qo;const Gr=()=>Qo||(Qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zr(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Se(r)?ed(r):Zr(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(Se(e)||_e(e))return e}const Jf=/;(?![^(]*\))/g,qf=/:([^]+)/,Qf=/\/\*[^]*?\*\//g;function ed(e){const t={};return e.replace(Qf,"").split(Jf).forEach(n=>{if(n){const r=n.split(qf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Jn(e){let t="";if(Se(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const r=Jn(e[n]);r&&(t+=r+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const td=Xs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ea(e){return!!e||e===""}const ta=e=>!!(e&&e.__v_isRef===!0),be=e=>Se(e)?e:e==null?"":B(e)||_e(e)&&(e.toString===Yo||!G(e.toString))?ta(e)?be(e.value):JSON.stringify(e,na,2):String(e),na=(e,t)=>ta(t)?na(e,t.value):On(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[ei(r,i)+" =>"]=s,n),{})}:Zo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ei(n))}:zt(t)?ei(t):_e(t)&&!B(t)&&!Jo(t)?String(t):t,ei=(e,t="")=>{var n;return zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ne;class ra{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){++this._on===1&&(this.prevScope=Ne,Ne=this)}off(){this._on>0&&--this._on===0&&(Ne=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ti(e){return new ra(e)}function sa(){return Ne}function nd(e,t=!1){Ne&&Ne.cleanups.push(e)}let me;const ni=new WeakSet;class ia{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ne&&Ne.active&&Ne.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ni.has(this)&&(ni.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||aa(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,da(this),la(this);const t=me,n=st;me=this,st=!0;try{return this.fn()}finally{ca(this),me=t,st=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)oi(t);this.deps=this.depsTail=void 0,da(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ni.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ii(this)&&this.run()}get dirty(){return ii(this)}}let oa=0,qn,Qn;function aa(e,t=!1){if(e.flags|=8,t){e.next=Qn,Qn=e;return}e.next=qn,qn=e}function ri(){oa++}function si(){if(--oa>0)return;if(Qn){let t=Qn;for(Qn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;qn;){let t=qn;for(qn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function la(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ca(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),oi(r),rd(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function ii(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ua(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ua(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===er)||(e.globalVersion=er,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ii(e))))return;e.flags|=2;const t=e.dep,n=me,r=st;me=e,st=!0;try{la(e);const s=e.fn(e._value);(t.version===0||Bt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{me=n,st=r,ca(e),e.flags&=-3}}function oi(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)oi(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function rd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let st=!0;const fa=[];function ht(){fa.push(st),st=!1}function pt(){const e=fa.pop();st=e===void 0?!0:e}function da(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let er=0;class sd{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ai{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!me||!st||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new sd(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,ha(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=r)}return n}trigger(t){this.version++,er++,this.notify(t)}notify(t){ri();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{si()}}}function ha(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ha(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Xr=new WeakMap,an=Symbol(""),li=Symbol(""),tr=Symbol("");function De(e,t,n){if(st&&me){let r=Xr.get(e);r||Xr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ai),s.map=r,s.key=n),s.track()}}function At(e,t,n,r,s,i){const o=Xr.get(e);if(!o){er++;return}const a=l=>{l&&l.trigger()};if(ri(),t==="clear")o.forEach(a);else{const l=B(e),u=l&&Hr(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===tr||!zt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(tr)),t){case"add":l?u&&a(o.get("length")):(a(o.get(an)),On(e)&&a(o.get(li)));break;case"delete":l||(a(o.get(an)),On(e)&&a(o.get(li)));break;case"set":On(e)&&a(o.get(an));break}}si()}function id(e,t){const n=Xr.get(e);return n&&n.get(t)}function An(e){const t=te(e);return t===e?t:(De(t,"iterate",tr),Be(e)?t:t.map(it))}function Yr(e){return De(e=te(e),"iterate",tr),e}function Gt(e,t){return Rt(e)?Lt(e)?Pn(it(t)):Pn(t):it(t)}const od={__proto__:null,[Symbol.iterator](){return ci(this,Symbol.iterator,e=>Gt(this,e))},concat(...e){return An(this).concat(...e.map(t=>B(t)?An(t):t))},entries(){return ci(this,"entries",e=>(e[1]=Gt(this,e[1]),e))},every(e,t){return Pt(this,"every",e,t,void 0,arguments)},filter(e,t){return Pt(this,"filter",e,t,n=>n.map(r=>Gt(this,r)),arguments)},find(e,t){return Pt(this,"find",e,t,n=>Gt(this,n),arguments)},findIndex(e,t){return Pt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Pt(this,"findLast",e,t,n=>Gt(this,n),arguments)},findLastIndex(e,t){return Pt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Pt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ui(this,"includes",e)},indexOf(...e){return ui(this,"indexOf",e)},join(e){return An(this).join(e)},lastIndexOf(...e){return ui(this,"lastIndexOf",e)},map(e,t){return Pt(this,"map",e,t,void 0,arguments)},pop(){return nr(this,"pop")},push(...e){return nr(this,"push",e)},reduce(e,...t){return pa(this,"reduce",e,t)},reduceRight(e,...t){return pa(this,"reduceRight",e,t)},shift(){return nr(this,"shift")},some(e,t){return Pt(this,"some",e,t,void 0,arguments)},splice(...e){return nr(this,"splice",e)},toReversed(){return An(this).toReversed()},toSorted(e){return An(this).toSorted(e)},toSpliced(...e){return An(this).toSpliced(...e)},unshift(...e){return nr(this,"unshift",e)},values(){return ci(this,"values",e=>Gt(this,e))}};function ci(e,t,n){const r=Yr(e),s=r[t]();return r!==e&&!Be(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const ad=Array.prototype;function Pt(e,t,n,r,s,i){const o=Yr(e),a=o!==e&&!Be(e),l=o[t];if(l!==ad[t]){const f=l.apply(e,i);return a?it(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Gt(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function pa(e,t,n,r){const s=Yr(e);let i=n;return s!==e&&(Be(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,Gt(e,a),l,e)}),s[t](i,...r)}function ui(e,t,n){const r=te(e);De(r,"iterate",tr);const s=r[t](...n);return(s===-1||s===!1)&&ns(n[0])?(n[0]=te(n[0]),r[t](...n)):s}function nr(e,t,n=[]){ht(),ri();const r=te(e)[t].apply(e,n);return si(),pt(),r}const ld=Xs("__proto__,__v_isRef,__isVue"),ma=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt));function cd(e){zt(e)||(e=String(e));const t=te(this);return De(t,"has",e),t.hasOwnProperty(e)}class ga{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?ka:wa:i?va:ya).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=B(t);if(!s){let l;if(o&&(l=od[n]))return l;if(n==="hasOwnProperty")return cd}const a=Reflect.get(t,n,we(t)?t:r);if((zt(n)?ma.has(n):ld(n))||(s||De(t,"get",n),i))return a;if(we(a)){const l=o&&Hr(n)?a:a.value;return s&&_e(l)?di(l):l}return _e(a)?s?di(a):es(a):a}}class _a extends ga{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=B(t)&&Hr(n);if(!this._isShallow){const u=Rt(i);if(!Be(r)&&!Rt(r)&&(i=te(i),r=te(r)),!o&&we(i)&&!we(r))return u||(i.value=r),!0}const a=o?Number(n)<t.length:le(t,n),l=Reflect.set(t,n,r,we(t)?t:s);return t===te(s)&&(a?Bt(r,i)&&At(t,"set",n,r):At(t,"add",n,r)),l}deleteProperty(t,n){const r=le(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&At(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!zt(n)||!ma.has(n))&&De(t,"has",n),r}ownKeys(t){return De(t,"iterate",B(t)?"length":an),Reflect.ownKeys(t)}}class ba extends ga{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ud=new _a,fd=new ba,dd=new _a(!0),hd=new ba(!0),fi=e=>e,Jr=e=>Reflect.getPrototypeOf(e);function pd(e,t,n){return function(...r){const s=this.__v_raw,i=te(s),o=On(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?fi:t?Pn:it;return!t&&De(i,"iterate",l?li:an),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function qr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function md(e,t){const n={get(s){const i=this.__v_raw,o=te(i),a=te(s);e||(Bt(s,a)&&De(o,"get",s),De(o,"get",a));const{has:l}=Jr(o),u=t?fi:e?Pn:it;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&De(te(s),"iterate",an),s.size},has(s){const i=this.__v_raw,o=te(i),a=te(s);return e||(Bt(s,a)&&De(o,"has",s),De(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=te(a),u=t?fi:e?Pn:it;return!e&&De(l,"iterate",an),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return $e(n,e?{add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear")}:{add(s){!t&&!Be(s)&&!Rt(s)&&(s=te(s));const i=te(this);return Jr(i).has.call(i,s)||(i.add(s),At(i,"add",s,s)),this},set(s,i){!t&&!Be(i)&&!Rt(i)&&(i=te(i));const o=te(this),{has:a,get:l}=Jr(o);let u=a.call(o,s);u||(s=te(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Bt(i,c)&&At(o,"set",s,i):At(o,"add",s,i),this},delete(s){const i=te(this),{has:o,get:a}=Jr(i);let l=o.call(i,s);l||(s=te(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&At(i,"delete",s,void 0),u},clear(){const s=te(this),i=s.size!==0,o=s.clear();return i&&At(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=pd(s,e,t)}),n}function Qr(e,t){const n=md(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(le(n,s)&&s in r?n:r,s,i)}const gd={get:Qr(!1,!1)},_d={get:Qr(!1,!0)},bd={get:Qr(!0,!1)},yd={get:Qr(!0,!0)},ya=new WeakMap,va=new WeakMap,wa=new WeakMap,ka=new WeakMap;function vd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wd(e){return e.__v_skip||!Object.isExtensible(e)?0:vd(Zf(e))}function es(e){return Rt(e)?e:ts(e,!1,ud,gd,ya)}function kd(e){return ts(e,!1,dd,_d,va)}function di(e){return ts(e,!0,fd,bd,wa)}function Pk(e){return ts(e,!0,hd,yd,ka)}function ts(e,t,n,r,s){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=wd(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Lt(e){return Rt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function Rt(e){return!!(e&&e.__v_isReadonly)}function Be(e){return!!(e&&e.__v_isShallow)}function ns(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function hi(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&qo(e,"__v_skip",!0),e}const it=e=>_e(e)?es(e):e,Pn=e=>_e(e)?di(e):e;function we(e){return e?e.__v_isRef===!0:!1}function J(e){return xa(e,!1)}function xd(e){return xa(e,!0)}function xa(e,t){return we(e)?e:new Sd(e,t)}class Sd{constructor(t,n){this.dep=new ai,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:it(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Be(t)||Rt(t);t=r?t:te(t),Bt(t,n)&&(this._rawValue=t,this._value=r?t:it(t),this.dep.trigger())}}function W(e){return we(e)?e.value:e}const Td={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return we(s)&&!we(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Sa(e){return Lt(e)?e:new Proxy(e,Td)}function Ed(e){const t=B(e)?new Array(e.length):{};for(const n in e)t[n]=Cd(e,n);return t}class Id{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=te(t);let s=!0,i=t;if(!B(t)||!Hr(String(n)))do s=!ns(i)||Be(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=W(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&we(this._raw[this._key])){const n=this._object[this._key];if(we(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return id(this._raw,this._key)}}function Cd(e,t,n){return new Id(e,t,n)}class Od{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ai(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=er-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return aa(this,!0),!0}get value(){const t=this.dep.track();return ua(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ad(e,t,n=!1){let r,s;return G(e)?r=e:(r=e.get,s=e.set),new Od(r,s,n)}const rs={},ss=new WeakMap;let ln;function Pd(e,t=!1,n=ln){if(n){let r=ss.get(n);r||ss.set(n,r=[]),r.push(e)}}function Ld(e,t,n=he){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=g=>s?g:Be(g)||s===!1||s===0?$t(g,1):$t(g);let c,f,d,h,y=!1,v=!1;if(we(e)?(f=()=>e.value,y=Be(e)):Lt(e)?(f=()=>u(e),y=!0):B(e)?(v=!0,y=e.some(g=>Lt(g)||Be(g)),f=()=>e.map(g=>{if(we(g))return g.value;if(Lt(g))return u(g);if(G(g))return l?l(g,2):g()})):G(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){ht();try{d()}finally{pt()}}const g=ln;ln=c;try{return l?l(e,3,[h]):e(h)}finally{ln=g}}:f=dt,t&&s){const g=f,C=s===!0?1/0:s;f=()=>$t(g(),C)}const E=sa(),_=()=>{c.stop(),E&&E.active&&Js(E.effects,c)};if(i&&t){const g=t;t=(...C)=>{g(...C),_()}}let w=v?new Array(e.length).fill(rs):rs;const T=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const C=c.run();if(s||y||(v?C.some((D,P)=>Bt(D,w[P])):Bt(C,w))){d&&d();const D=ln;ln=c;try{const P=[C,w===rs?void 0:v&&w[0]===rs?[]:w,h];w=C,l?l(t,3,P):t(...P)}finally{ln=D}}}else c.run()};return a&&a(T),c=new ia(f),c.scheduler=o?()=>o(T,!1):T,h=g=>Pd(g,!1,c),d=c.onStop=()=>{const g=ss.get(c);if(g){if(l)l(g,4);else for(const C of g)C();ss.delete(c)}},t?r?T(!0):w=c.run():o?o(T.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function $t(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,we(e))$t(e.value,t,n);else if(B(e))for(let r=0;r<e.length;r++)$t(e[r],t,n);else if(Zo(e)||On(e))e.forEach(r=>{$t(r,t,n)});else if(Jo(e)){for(const r in e)$t(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$t(e[r],t,n)}return e}const rr=[];let pi=!1;function Lk(e,...t){if(pi)return;pi=!0,ht();const n=rr.length?rr[rr.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=Rd();if(r)Ln(r,n,11,[e+t.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${bl(n,i.type)}>`).join(`
|
|
1
|
+
var AwesomeComment=(function(){"use strict";function Xs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Cn=[],dt=()=>{},Go=()=>!1,Kr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ys=e=>e.startsWith("onUpdate:"),$e=Object.assign,Js=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gf=Object.prototype.hasOwnProperty,le=(e,t)=>Gf.call(e,t),B=Array.isArray,On=e=>Wr(e)==="[object Map]",Zo=e=>Wr(e)==="[object Set]",G=e=>typeof e=="function",Se=e=>typeof e=="string",zt=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Xo=e=>(_e(e)||G(e))&&G(e.then)&&G(e.catch),Yo=Object.prototype.toString,Wr=e=>Yo.call(e),Zf=e=>Wr(e).slice(8,-1),Jo=e=>Wr(e)==="[object Object]",Hr=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yn=Xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Xf=/-\w/g,Qe=zr(e=>e.replace(Xf,t=>t.slice(1).toUpperCase())),Yf=/\B([A-Z])/g,Vt=zr(e=>e.replace(Yf,"-$1").toLowerCase()),Vr=zr(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=zr(e=>e?`on${Vr(e)}`:""),Bt=(e,t)=>!Object.is(e,t),Br=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},qo=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Qs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Qo;const Gr=()=>Qo||(Qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zr(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Se(r)?ed(r):Zr(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(Se(e)||_e(e))return e}const Jf=/;(?![^(]*\))/g,qf=/:([^]+)/,Qf=/\/\*[^]*?\*\//g;function ed(e){const t={};return e.replace(Qf,"").split(Jf).forEach(n=>{if(n){const r=n.split(qf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Jn(e){let t="";if(Se(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const r=Jn(e[n]);r&&(t+=r+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const td=Xs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ea(e){return!!e||e===""}const ta=e=>!!(e&&e.__v_isRef===!0),be=e=>Se(e)?e:e==null?"":B(e)||_e(e)&&(e.toString===Yo||!G(e.toString))?ta(e)?be(e.value):JSON.stringify(e,na,2):String(e),na=(e,t)=>ta(t)?na(e,t.value):On(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[ei(r,i)+" =>"]=s,n),{})}:Zo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ei(n))}:zt(t)?ei(t):_e(t)&&!B(t)&&!Jo(t)?String(t):t,ei=(e,t="")=>{var n;return zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ne;class ra{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){++this._on===1&&(this.prevScope=Ne,Ne=this)}off(){this._on>0&&--this._on===0&&(Ne=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ti(e){return new ra(e)}function sa(){return Ne}function nd(e,t=!1){Ne&&Ne.cleanups.push(e)}let me;const ni=new WeakSet;class ia{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ne&&Ne.active&&Ne.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ni.has(this)&&(ni.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||aa(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,da(this),la(this);const t=me,n=st;me=this,st=!0;try{return this.fn()}finally{ca(this),me=t,st=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)oi(t);this.deps=this.depsTail=void 0,da(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ni.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ii(this)&&this.run()}get dirty(){return ii(this)}}let oa=0,qn,Qn;function aa(e,t=!1){if(e.flags|=8,t){e.next=Qn,Qn=e;return}e.next=qn,qn=e}function ri(){oa++}function si(){if(--oa>0)return;if(Qn){let t=Qn;for(Qn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;qn;){let t=qn;for(qn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function la(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ca(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),oi(r),rd(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function ii(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ua(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ua(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===er)||(e.globalVersion=er,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ii(e))))return;e.flags|=2;const t=e.dep,n=me,r=st;me=e,st=!0;try{la(e);const s=e.fn(e._value);(t.version===0||Bt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{me=n,st=r,ca(e),e.flags&=-3}}function oi(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)oi(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function rd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let st=!0;const fa=[];function ht(){fa.push(st),st=!1}function pt(){const e=fa.pop();st=e===void 0?!0:e}function da(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let er=0;class sd{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ai{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!me||!st||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new sd(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,ha(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=r)}return n}trigger(t){this.version++,er++,this.notify(t)}notify(t){ri();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{si()}}}function ha(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ha(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Xr=new WeakMap,an=Symbol(""),li=Symbol(""),tr=Symbol("");function De(e,t,n){if(st&&me){let r=Xr.get(e);r||Xr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ai),s.map=r,s.key=n),s.track()}}function At(e,t,n,r,s,i){const o=Xr.get(e);if(!o){er++;return}const a=l=>{l&&l.trigger()};if(ri(),t==="clear")o.forEach(a);else{const l=B(e),u=l&&Hr(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===tr||!zt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(tr)),t){case"add":l?u&&a(o.get("length")):(a(o.get(an)),On(e)&&a(o.get(li)));break;case"delete":l||(a(o.get(an)),On(e)&&a(o.get(li)));break;case"set":On(e)&&a(o.get(an));break}}si()}function id(e,t){const n=Xr.get(e);return n&&n.get(t)}function An(e){const t=te(e);return t===e?t:(De(t,"iterate",tr),Be(e)?t:t.map(it))}function Yr(e){return De(e=te(e),"iterate",tr),e}function Gt(e,t){return Rt(e)?Lt(e)?Pn(it(t)):Pn(t):it(t)}const od={__proto__:null,[Symbol.iterator](){return ci(this,Symbol.iterator,e=>Gt(this,e))},concat(...e){return An(this).concat(...e.map(t=>B(t)?An(t):t))},entries(){return ci(this,"entries",e=>(e[1]=Gt(this,e[1]),e))},every(e,t){return Pt(this,"every",e,t,void 0,arguments)},filter(e,t){return Pt(this,"filter",e,t,n=>n.map(r=>Gt(this,r)),arguments)},find(e,t){return Pt(this,"find",e,t,n=>Gt(this,n),arguments)},findIndex(e,t){return Pt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Pt(this,"findLast",e,t,n=>Gt(this,n),arguments)},findLastIndex(e,t){return Pt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Pt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ui(this,"includes",e)},indexOf(...e){return ui(this,"indexOf",e)},join(e){return An(this).join(e)},lastIndexOf(...e){return ui(this,"lastIndexOf",e)},map(e,t){return Pt(this,"map",e,t,void 0,arguments)},pop(){return nr(this,"pop")},push(...e){return nr(this,"push",e)},reduce(e,...t){return pa(this,"reduce",e,t)},reduceRight(e,...t){return pa(this,"reduceRight",e,t)},shift(){return nr(this,"shift")},some(e,t){return Pt(this,"some",e,t,void 0,arguments)},splice(...e){return nr(this,"splice",e)},toReversed(){return An(this).toReversed()},toSorted(e){return An(this).toSorted(e)},toSpliced(...e){return An(this).toSpliced(...e)},unshift(...e){return nr(this,"unshift",e)},values(){return ci(this,"values",e=>Gt(this,e))}};function ci(e,t,n){const r=Yr(e),s=r[t]();return r!==e&&!Be(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const ad=Array.prototype;function Pt(e,t,n,r,s,i){const o=Yr(e),a=o!==e&&!Be(e),l=o[t];if(l!==ad[t]){const f=l.apply(e,i);return a?it(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Gt(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function pa(e,t,n,r){const s=Yr(e);let i=n;return s!==e&&(Be(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,Gt(e,a),l,e)}),s[t](i,...r)}function ui(e,t,n){const r=te(e);De(r,"iterate",tr);const s=r[t](...n);return(s===-1||s===!1)&&ns(n[0])?(n[0]=te(n[0]),r[t](...n)):s}function nr(e,t,n=[]){ht(),ri();const r=te(e)[t].apply(e,n);return si(),pt(),r}const ld=Xs("__proto__,__v_isRef,__isVue"),ma=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt));function cd(e){zt(e)||(e=String(e));const t=te(this);return De(t,"has",e),t.hasOwnProperty(e)}class ga{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?ka:va:i?wa:ya).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=B(t);if(!s){let l;if(o&&(l=od[n]))return l;if(n==="hasOwnProperty")return cd}const a=Reflect.get(t,n,ve(t)?t:r);if((zt(n)?ma.has(n):ld(n))||(s||De(t,"get",n),i))return a;if(ve(a)){const l=o&&Hr(n)?a:a.value;return s&&_e(l)?di(l):l}return _e(a)?s?di(a):es(a):a}}class _a extends ga{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=B(t)&&Hr(n);if(!this._isShallow){const u=Rt(i);if(!Be(r)&&!Rt(r)&&(i=te(i),r=te(r)),!o&&ve(i)&&!ve(r))return u||(i.value=r),!0}const a=o?Number(n)<t.length:le(t,n),l=Reflect.set(t,n,r,ve(t)?t:s);return t===te(s)&&(a?Bt(r,i)&&At(t,"set",n,r):At(t,"add",n,r)),l}deleteProperty(t,n){const r=le(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&At(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!zt(n)||!ma.has(n))&&De(t,"has",n),r}ownKeys(t){return De(t,"iterate",B(t)?"length":an),Reflect.ownKeys(t)}}class ba extends ga{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ud=new _a,fd=new ba,dd=new _a(!0),hd=new ba(!0),fi=e=>e,Jr=e=>Reflect.getPrototypeOf(e);function pd(e,t,n){return function(...r){const s=this.__v_raw,i=te(s),o=On(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?fi:t?Pn:it;return!t&&De(i,"iterate",l?li:an),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function qr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function md(e,t){const n={get(s){const i=this.__v_raw,o=te(i),a=te(s);e||(Bt(s,a)&&De(o,"get",s),De(o,"get",a));const{has:l}=Jr(o),u=t?fi:e?Pn:it;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&De(te(s),"iterate",an),s.size},has(s){const i=this.__v_raw,o=te(i),a=te(s);return e||(Bt(s,a)&&De(o,"has",s),De(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=te(a),u=t?fi:e?Pn:it;return!e&&De(l,"iterate",an),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return $e(n,e?{add:qr("add"),set:qr("set"),delete:qr("delete"),clear:qr("clear")}:{add(s){!t&&!Be(s)&&!Rt(s)&&(s=te(s));const i=te(this);return Jr(i).has.call(i,s)||(i.add(s),At(i,"add",s,s)),this},set(s,i){!t&&!Be(i)&&!Rt(i)&&(i=te(i));const o=te(this),{has:a,get:l}=Jr(o);let u=a.call(o,s);u||(s=te(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Bt(i,c)&&At(o,"set",s,i):At(o,"add",s,i),this},delete(s){const i=te(this),{has:o,get:a}=Jr(i);let l=o.call(i,s);l||(s=te(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&At(i,"delete",s,void 0),u},clear(){const s=te(this),i=s.size!==0,o=s.clear();return i&&At(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=pd(s,e,t)}),n}function Qr(e,t){const n=md(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(le(n,s)&&s in r?n:r,s,i)}const gd={get:Qr(!1,!1)},_d={get:Qr(!1,!0)},bd={get:Qr(!0,!1)},yd={get:Qr(!0,!0)},ya=new WeakMap,wa=new WeakMap,va=new WeakMap,ka=new WeakMap;function wd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vd(e){return e.__v_skip||!Object.isExtensible(e)?0:wd(Zf(e))}function es(e){return Rt(e)?e:ts(e,!1,ud,gd,ya)}function kd(e){return ts(e,!1,dd,_d,wa)}function di(e){return ts(e,!0,fd,bd,va)}function Pk(e){return ts(e,!0,hd,yd,ka)}function ts(e,t,n,r,s){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=vd(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Lt(e){return Rt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function Rt(e){return!!(e&&e.__v_isReadonly)}function Be(e){return!!(e&&e.__v_isShallow)}function ns(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function hi(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&qo(e,"__v_skip",!0),e}const it=e=>_e(e)?es(e):e,Pn=e=>_e(e)?di(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function J(e){return xa(e,!1)}function xd(e){return xa(e,!0)}function xa(e,t){return ve(e)?e:new Sd(e,t)}class Sd{constructor(t,n){this.dep=new ai,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:it(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Be(t)||Rt(t);t=r?t:te(t),Bt(t,n)&&(this._rawValue=t,this._value=r?t:it(t),this.dep.trigger())}}function W(e){return ve(e)?e.value:e}const Td={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ve(s)&&!ve(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Sa(e){return Lt(e)?e:new Proxy(e,Td)}function Ed(e){const t=B(e)?new Array(e.length):{};for(const n in e)t[n]=Cd(e,n);return t}class Id{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=te(t);let s=!0,i=t;if(!B(t)||!Hr(String(n)))do s=!ns(i)||Be(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=W(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ve(this._raw[this._key])){const n=this._object[this._key];if(ve(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return id(this._raw,this._key)}}function Cd(e,t,n){return new Id(e,t,n)}class Od{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ai(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=er-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return aa(this,!0),!0}get value(){const t=this.dep.track();return ua(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ad(e,t,n=!1){let r,s;return G(e)?r=e:(r=e.get,s=e.set),new Od(r,s,n)}const rs={},ss=new WeakMap;let ln;function Pd(e,t=!1,n=ln){if(n){let r=ss.get(n);r||ss.set(n,r=[]),r.push(e)}}function Ld(e,t,n=he){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=g=>s?g:Be(g)||s===!1||s===0?$t(g,1):$t(g);let c,f,d,h,y=!1,w=!1;if(ve(e)?(f=()=>e.value,y=Be(e)):Lt(e)?(f=()=>u(e),y=!0):B(e)?(w=!0,y=e.some(g=>Lt(g)||Be(g)),f=()=>e.map(g=>{if(ve(g))return g.value;if(Lt(g))return u(g);if(G(g))return l?l(g,2):g()})):G(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){ht();try{d()}finally{pt()}}const g=ln;ln=c;try{return l?l(e,3,[h]):e(h)}finally{ln=g}}:f=dt,t&&s){const g=f,C=s===!0?1/0:s;f=()=>$t(g(),C)}const E=sa(),_=()=>{c.stop(),E&&E.active&&Js(E.effects,c)};if(i&&t){const g=t;t=(...C)=>{g(...C),_()}}let v=w?new Array(e.length).fill(rs):rs;const T=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const C=c.run();if(s||y||(w?C.some((D,P)=>Bt(D,v[P])):Bt(C,v))){d&&d();const D=ln;ln=c;try{const P=[C,v===rs?void 0:w&&v[0]===rs?[]:v,h];v=C,l?l(t,3,P):t(...P)}finally{ln=D}}}else c.run()};return a&&a(T),c=new ia(f),c.scheduler=o?()=>o(T,!1):T,h=g=>Pd(g,!1,c),d=c.onStop=()=>{const g=ss.get(c);if(g){if(l)l(g,4);else for(const C of g)C();ss.delete(c)}},t?r?T(!0):v=c.run():o?o(T.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function $t(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ve(e))$t(e.value,t,n);else if(B(e))for(let r=0;r<e.length;r++)$t(e[r],t,n);else if(Zo(e)||On(e))e.forEach(r=>{$t(r,t,n)});else if(Jo(e)){for(const r in e)$t(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$t(e[r],t,n)}return e}const rr=[];let pi=!1;function Lk(e,...t){if(pi)return;pi=!0,ht();const n=rr.length?rr[rr.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=Rd();if(r)Ln(r,n,11,[e+t.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${bl(n,i.type)}>`).join(`
|
|
2
2
|
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
|
|
3
3
|
`,...$d(s)),console.warn(...i)}pt(),pi=!1}function Rd(){let e=rr[rr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function $d(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
4
|
-
`],...Nd(n))}),t}function Nd({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${bl(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...Dd(e.props),i]:[s+i]}function Dd(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Ta(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Ta(e,t,n){return Se(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:we(t)?(t=Ta(e,te(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):G(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=te(t),n?t:[`${e}=`,t])}function Ln(e,t,n,r){try{return r?e(...r):e()}catch(s){is(s,t,n)}}function mt(e,t,n,r){if(G(e)){const s=Ln(e,t,n,r);return s&&Xo(s)&&s.catch(i=>{is(i,t,n)}),s}if(B(e)){const s=[];for(let i=0;i<e.length;i++)s.push(mt(e[i],t,n,r));return s}}function is(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||he;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(i){ht(),Ln(i,null,10,[e,l,u]),pt();return}}jd(e,n,s,r,o)}function jd(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ue=[];let gt=-1;const Rn=[];let Zt=null,$n=0;const Ea=Promise.resolve();let os=null;function sr(e){const t=os||Ea;return e?t.then(this?e.bind(this):e):t}function Md(e){let t=gt+1,n=Ue.length;for(;t<n;){const r=t+n>>>1,s=Ue[r],i=ir(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function mi(e){if(!(e.flags&1)){const t=ir(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=ir(n)?Ue.push(e):Ue.splice(Md(t),0,e),e.flags|=1,Ia()}}function Ia(){os||(os=Ea.then(Aa))}function Fd(e){B(e)?Rn.push(...e):Zt&&e.id===-1?Zt.splice($n+1,0,e):e.flags&1||(Rn.push(e),e.flags|=1),Ia()}function Ca(e,t,n=gt+1){for(;n<Ue.length;n++){const r=Ue[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ue.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Oa(e){if(Rn.length){const t=[...new Set(Rn)].sort((n,r)=>ir(n)-ir(r));if(Rn.length=0,Zt){Zt.push(...t);return}for(Zt=t,$n=0;$n<Zt.length;$n++){const n=Zt[$n];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Zt=null,$n=0}}const ir=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Aa(e){try{for(gt=0;gt<Ue.length;gt++){const t=Ue[gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ln(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;gt<Ue.length;gt++){const t=Ue[gt];t&&(t.flags&=-2)}gt=-1,Ue.length=0,Oa(),os=null,(Ue.length||Rn.length)&&Aa()}}let Ge=null,Pa=null;function as(e){const t=Ge;return Ge=e,Pa=e&&e.type.__scopeId||null,t}function Ud(e,t=Ge,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ds(-1);const i=as(t);let o;try{o=e(...s)}finally{as(i),r._d&&ds(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Kd(e,t){if(Ge===null)return e;const n=gs(Ge),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=he]=t[s];i&&(G(i)&&(i={mounted:i,updated:i}),i.deep&&$t(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function cn(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(ht(),mt(l,n,8,[e.el,a,e,t]),pt())}}function Wd(e,t){if(Me){let n=Me.provides;const r=Me.parent&&Me.parent.provides;r===n&&(n=Me.provides=Object.create(r)),n[e]=t}}function je(e,t,n=!1){const r=Ci();if(r||un){let s=un?un._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&G(t)?t.call(r&&r.proxy):t}}function Hd(){return!!(Ci()||un)}const zd=Symbol.for("v-scx"),Vd=()=>je(zd);function Ze(e,t,n){return La(e,t,n)}function La(e,t,n=he){const{immediate:r,deep:s,flush:i,once:o}=n,a=$e({},n),l=t&&r||!t&&i!=="post";let u;if(mr){if(i==="sync"){const h=Vd();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=dt,h.resume=dt,h.pause=dt,h}}const c=Me;a.call=(h,y,v)=>mt(h,c,y,v);let f=!1;i==="post"?a.scheduler=h=>{Xe(h,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(h,y)=>{y?h():mi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Ld(e,t,a);return mr&&(u?u.push(d):l&&d()),d}function Bd(e,t,n){const r=this.proxy,s=Se(e)?e.includes(".")?Ra(r,e):()=>r[e]:e.bind(r,r);let i;G(t)?i=t:(i=t.handler,n=t);const o=pr(this),a=La(s,i.bind(r),n);return o(),a}function Ra(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Gd=Symbol("_vte"),Zd=e=>e.__isTeleport,Xd=Symbol("_leaveCb");function gi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,gi(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function _t(e,t){return G(e)?$e({name:e.name},t,{setup:e}):e}function $a(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ls=new WeakMap;function or(e,t,n,r,s=!1){if(B(e)){e.forEach((y,v)=>or(y,t&&(B(t)?t[v]:t),n,r,s));return}if(ar(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&or(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?gs(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===he?a.refs={}:a.refs,f=a.setupState,d=te(f),h=f===he?Go:y=>le(d,y);if(u!=null&&u!==l){if(Na(t),Se(u))c[u]=null,h(u)&&(f[u]=null);else if(we(u)){u.value=null;const y=t;y.k&&(c[y.k]=null)}}if(G(l))Ln(l,a,12,[o,c]);else{const y=Se(l),v=we(l);if(y||v){const E=()=>{if(e.f){const _=y?h(l)?f[l]:c[l]:l.value;if(s)B(_)&&Js(_,i);else if(B(_))_.includes(i)||_.push(i);else if(y)c[l]=[i],h(l)&&(f[l]=c[l]);else{const w=[i];l.value=w,e.k&&(c[e.k]=w)}}else y?(c[l]=o,h(l)&&(f[l]=o)):v&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const _=()=>{E(),ls.delete(e)};_.id=-1,ls.set(e,_),Xe(_,n)}else Na(e),E()}}}function Na(e){const t=ls.get(e);t&&(t.flags|=8,ls.delete(e))}Gr().requestIdleCallback,Gr().cancelIdleCallback;const ar=e=>!!e.type.__asyncLoader,Da=e=>e.type.__isKeepAlive;function Yd(e,t){ja(e,"a",t)}function Jd(e,t){ja(e,"da",t)}function ja(e,t,n=Me){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(cs(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Da(s.parent.vnode)&&qd(r,t,n,s),s=s.parent}}function qd(e,t,n,r){const s=cs(t,e,r,!0);_i(()=>{Js(r[t],s)},n)}function cs(e,t,n=Me,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ht();const a=pr(n),l=mt(t,n,e,o);return a(),pt(),l});return r?s.unshift(i):s.push(i),i}}const Nt=e=>(t,n=Me)=>{(!mr||e==="sp")&&cs(e,(...r)=>t(...r),n)},Qd=Nt("bm"),Nn=Nt("m"),eh=Nt("bu"),th=Nt("u"),Ma=Nt("bum"),_i=Nt("um"),nh=Nt("sp"),rh=Nt("rtg"),sh=Nt("rtc");function ih(e,t=Me){cs("ec",e,t)}const oh="components";function ah(e,t){return ch(oh,e,!0,t)||e}const lh=Symbol.for("v-ndc");function ch(e,t,n=!0,r=!1){const s=Ge||Me;if(s){const i=s.type;{const a=_l(i,!1);if(a&&(a===t||a===Qe(t)||a===Vr(Qe(t))))return i}const o=Fa(s[e]||i[e],t)||Fa(s.appContext[e],t);return!o&&r?i:o}}function Fa(e,t){return e&&(e[t]||e[Qe(t)]||e[Vr(Qe(t))])}function Ua(e,t,n,r){let s;const i=n,o=B(e);if(o||Se(e)){const a=o&&Lt(e);let l=!1,u=!1;a&&(l=!Be(e),u=Rt(e),e=Yr(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Pn(it(e[c])):it(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(_e(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}const bi=e=>e?pl(e)?gs(e):bi(e.parent):null,lr=$e(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=>bi(e.parent),$root:e=>bi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>za(e),$forceUpdate:e=>e.f||(e.f=()=>{mi(e.update)}),$nextTick:e=>e.n||(e.n=sr.bind(e.proxy)),$watch:e=>Bd.bind(e)}),yi=(e,t)=>e!==he&&!e.__isScriptSetup&&le(e,t),uh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(yi(r,t))return o[t]=1,r[t];if(s!==he&&le(s,t))return o[t]=2,s[t];if(le(i,t))return o[t]=3,i[t];if(n!==he&&le(n,t))return o[t]=4,n[t];vi&&(o[t]=0)}}const u=lr[t];let c,f;if(u)return t==="$attrs"&&De(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==he&&le(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,le(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return yi(s,t)?(s[t]=n,!0):r!==he&&le(r,t)?(r[t]=n,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let l;return!!(n[a]||e!==he&&a[0]!=="$"&&le(e,a)||yi(t,a)||le(i,a)||le(r,a)||le(lr,a)||le(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ka(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let vi=!0;function fh(e){const t=za(e),n=e.proxy,r=e.ctx;vi=!1,t.beforeCreate&&Wa(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:y,activated:v,deactivated:E,beforeDestroy:_,beforeUnmount:w,destroyed:T,unmounted:g,render:C,renderTracked:D,renderTriggered:P,errorCaptured:M,serverPrefetch:U,expose:Y,inheritAttrs:ee,components:Z,directives:ie,filters:pe}=t;if(u&&dh(u,r,null),o)for(const H in o){const ne=o[H];G(ne)&&(r[H]=ne.bind(n))}if(s){const H=s.call(n,n);_e(H)&&(e.data=es(H))}if(vi=!0,i)for(const H in i){const ne=i[H],xe=G(ne)?ne.bind(n,n):G(ne.get)?ne.get.bind(n,n):dt,ut=!G(ne)&&G(ne.set)?ne.set.bind(n):dt,Ve=et({get:xe,set:ut});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:Re=>Ve.value=Re})}if(a)for(const H in a)Ha(a[H],r,n,H);if(l){const H=G(l)?l.call(n):l;Reflect.ownKeys(H).forEach(ne=>{Wd(ne,H[ne])})}c&&Wa(c,e,"c");function ae(H,ne){B(ne)?ne.forEach(xe=>H(xe.bind(n))):ne&&H(ne.bind(n))}if(ae(Qd,f),ae(Nn,d),ae(eh,h),ae(th,y),ae(Yd,v),ae(Jd,E),ae(ih,M),ae(sh,D),ae(rh,P),ae(Ma,w),ae(_i,g),ae(nh,U),B(Y))if(Y.length){const H=e.exposed||(e.exposed={});Y.forEach(ne=>{Object.defineProperty(H,ne,{get:()=>n[ne],set:xe=>n[ne]=xe,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===dt&&(e.render=C),ee!=null&&(e.inheritAttrs=ee),Z&&(e.components=Z),ie&&(e.directives=ie),U&&$a(e)}function dh(e,t,n=dt){B(e)&&(e=wi(e));for(const r in e){const s=e[r];let i;_e(s)?"default"in s?i=je(s.from||r,s.default,!0):i=je(s.from||r):i=je(s),we(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Wa(e,t,n){mt(B(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ha(e,t,n,r){let s=r.includes(".")?Ra(n,r):()=>n[r];if(Se(e)){const i=t[e];G(i)&&Ze(s,i)}else if(G(e))Ze(s,e.bind(n));else if(_e(e))if(B(e))e.forEach(i=>Ha(i,t,n,r));else{const i=G(e.handler)?e.handler.bind(n):t[e.handler];G(i)&&Ze(s,i,e)}}function za(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>us(l,u,o,!0)),us(l,t,o)),_e(t)&&i.set(t,l),l}function us(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&us(e,i,n,!0),s&&s.forEach(o=>us(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=hh[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const hh={data:Va,props:Ba,emits:Ba,methods:cr,computed:cr,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:cr,directives:cr,watch:mh,provide:Va,inject:ph};function Va(e,t){return t?e?function(){return $e(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function ph(e,t){return cr(wi(e),wi(t))}function wi(e){if(B(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ke(e,t){return e?[...new Set([].concat(e,t))]:t}function cr(e,t){return e?$e(Object.create(null),e,t):t}function Ba(e,t){return e?B(e)&&B(t)?[...new Set([...e,...t])]:$e(Object.create(null),Ka(e),Ka(t??{})):t}function mh(e,t){if(!e)return t;if(!t)return e;const n=$e(Object.create(null),e);for(const r in t)n[r]=Ke(e[r],t[r]);return n}function Ga(){return{app:null,config:{isNativeTag:Go,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 gh=0;function _h(e,t){return function(r,s=null){G(r)||(r=$e({},r)),s!=null&&!_e(s)&&(s=null);const i=Ga(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:gh++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Yh,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&G(c.install)?(o.add(c),c.install(u,...f)):G(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||Te(r,s);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,gs(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(mt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=un;un=u;try{return c()}finally{un=f}}};return u}}let un=null;const bh=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Qe(t)}Modifiers`]||e[`${Vt(t)}Modifiers`];function yh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const i=t.startsWith("update:"),o=i&&bh(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>Se(c)?c.trim():c)),o.number&&(s=n.map(Qs)));let a,l=r[a=qs(t)]||r[a=qs(Qe(t))];!l&&i&&(l=r[a=qs(Vt(t))]),l&&mt(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,mt(u,e,6,s)}}const vh=new WeakMap;function Za(e,t,n=!1){const r=n?vh:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!G(e)){const l=u=>{const c=Za(u,t,!0);c&&(a=!0,$e(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(_e(e)&&r.set(e,null),null):(B(i)?i.forEach(l=>o[l]=null):$e(o,i),_e(e)&&r.set(e,o),o)}function fs(e,t){return!e||!Kr(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,Vt(t))||le(e,t))}function Rk(){}function Xa(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:y,inheritAttrs:v}=e,E=as(e);let _,w;try{if(n.shapeFlag&4){const g=s||r,C=g;_=bt(u.call(C,g,c,f,h,d,y)),w=a}else{const g=t;_=bt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),w=t.props?a:wh(a)}}catch(g){fr.length=0,is(g,e,1),_=Te(Xt)}let T=_;if(w&&v!==!1){const g=Object.keys(w),{shapeFlag:C}=T;g.length&&C&7&&(i&&g.some(Ys)&&(w=kh(w,i)),T=Dn(T,w,!1,!0))}return n.dirs&&(T=Dn(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&gi(T,n.transition),_=T,as(E),_}const wh=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kr(n))&&((t||(t={}))[n]=e[n]);return t},kh=(e,t)=>{const n={};for(const r in e)(!Ys(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function xh(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ya(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!fs(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Ya(r,o,u):!0:!!o;return!1}function Ya(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!fs(n,i))return!0}return!1}function Sh({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ja={},qa=()=>Object.create(Ja),Qa=e=>Object.getPrototypeOf(e)===Ja;function Th(e,t,n,r=!1){const s={},i=qa();e.propsDefaults=Object.create(null),el(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:kd(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Eh(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=te(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(fs(e.emitsOptions,d))continue;const h=t[d];if(l)if(le(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const y=Qe(d);s[y]=ki(l,a,y,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{el(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!le(t,f)&&((c=Vt(f))===f||!le(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=ki(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!le(t,f))&&(delete i[f],u=!0)}u&&At(e.attrs,"set","")}function el(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Yn(l))continue;const u=t[l];let c;s&&le(s,c=Qe(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:fs(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=te(n),u=a||he;for(let c=0;c<i.length;c++){const f=i[c];n[f]=ki(s,l,f,u[f],e,!le(u,f))}}return o}function ki(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=le(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&G(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=pr(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===Vt(n))&&(r=!0))}return r}const Ih=new WeakMap;function tl(e,t,n=!1){const r=n?Ih:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!G(e)){const c=f=>{l=!0;const[d,h]=tl(f,t,!0);$e(o,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return _e(e)&&r.set(e,Cn),Cn;if(B(i))for(let c=0;c<i.length;c++){const f=Qe(i[c]);nl(f)&&(o[f]=he)}else if(i)for(const c in i){const f=Qe(c);if(nl(f)){const d=i[c],h=o[f]=B(d)||G(d)?{type:d}:$e({},d),y=h.type;let v=!1,E=!0;if(B(y))for(let _=0;_<y.length;++_){const w=y[_],T=G(w)&&w.name;if(T==="Boolean"){v=!0;break}else T==="String"&&(E=!1)}else v=G(y)&&y.name==="Boolean";h[0]=v,h[1]=E,(v||le(h,"default"))&&a.push(f)}}const u=[o,a];return _e(e)&&r.set(e,u),u}function nl(e){return e[0]!=="$"&&!Yn(e)}const xi=e=>e==="_"||e==="_ctx"||e==="$stable",Si=e=>B(e)?e.map(bt):[bt(e)],Ch=(e,t,n)=>{if(t._n)return t;const r=Ud((...s)=>Si(t(...s)),n);return r._c=!1,r},rl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(xi(s))continue;const i=e[s];if(G(i))t[s]=Ch(s,i,r);else if(i!=null){const o=Si(i);t[s]=()=>o}}},sl=(e,t)=>{const n=Si(t);e.slots.default=()=>n},il=(e,t,n)=>{for(const r in t)(n||!xi(r))&&(e[r]=t[r])},Oh=(e,t,n)=>{const r=e.slots=qa();if(e.vnode.shapeFlag&32){const s=t._;s?(il(r,t,n),n&&qo(r,"_",s,!0)):rl(t,r)}else t&&sl(e,t)},Ah=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=he;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:il(s,t,n):(i=!t.$stable,rl(t,s)),o=t}else t&&(sl(e,t),o={default:1});if(i)for(const a in s)!xi(a)&&o[a]==null&&delete s[a]},Xe=Nh;function Ph(e){return Lh(e)}function Lh(e,t){const n=Gr();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=dt,insertStaticContent:y}=e,v=(b,k,A,$=null,R=null,N=null,p=void 0,m=null,x=!!k.dynamicChildren)=>{if(b===k)return;b&&!hr(b,k)&&($=sn(b),Re(b,R,N,!0),b=null),k.patchFlag===-2&&(x=!1,k.dynamicChildren=null);const{type:I,ref:j,shapeFlag:L}=k;switch(I){case ur:E(b,k,A,$);break;case Xt:_(b,k,A,$);break;case Ei:b==null&&w(k,A,$,p);break;case Ce:Z(b,k,A,$,R,N,p,m,x);break;default:L&1?C(b,k,A,$,R,N,p,m,x):L&6?ie(b,k,A,$,R,N,p,m,x):(L&64||L&128)&&I.process(b,k,A,$,R,N,p,m,x,Ct)}j!=null&&R?or(j,b&&b.ref,N,k||b,!k):j==null&&b&&b.ref!=null&&or(b.ref,null,N,b,!0)},E=(b,k,A,$)=>{if(b==null)r(k.el=a(k.children),A,$);else{const R=k.el=b.el;k.children!==b.children&&u(R,k.children)}},_=(b,k,A,$)=>{b==null?r(k.el=l(k.children||""),A,$):k.el=b.el},w=(b,k,A,$)=>{[b.el,b.anchor]=y(b.children,k,A,$,b.el,b.anchor)},T=({el:b,anchor:k},A,$)=>{let R;for(;b&&b!==k;)R=d(b),r(b,A,$),b=R;r(k,A,$)},g=({el:b,anchor:k})=>{let A;for(;b&&b!==k;)A=d(b),s(b),b=A;s(k)},C=(b,k,A,$,R,N,p,m,x)=>{if(k.type==="svg"?p="svg":k.type==="math"&&(p="mathml"),b==null)D(k,A,$,R,N,p,m,x);else{const I=b.el&&b.el._isVueCE?b.el:null;try{I&&I._beginPatch(),U(b,k,R,N,p,m,x)}finally{I&&I._endPatch()}}},D=(b,k,A,$,R,N,p,m)=>{let x,I;const{props:j,shapeFlag:L,transition:S,dirs:O}=b;if(x=b.el=o(b.type,N,j&&j.is,j),L&8?c(x,b.children):L&16&&M(b.children,x,null,$,R,Ti(b,N),p,m),O&&cn(b,null,$,"created"),P(x,b,b.scopeId,p,$),j){for(const z in j)z!=="value"&&!Yn(z)&&i(x,z,null,j[z],N,$);"value"in j&&i(x,"value",null,j.value,N),(I=j.onVnodeBeforeMount)&&yt(I,$,b)}O&&cn(b,null,$,"beforeMount");const K=Rh(R,S);K&&S.beforeEnter(x),r(x,k,A),((I=j&&j.onVnodeMounted)||K||O)&&Xe(()=>{I&&yt(I,$,b),K&&S.enter(x),O&&cn(b,null,$,"mounted")},R)},P=(b,k,A,$,R)=>{if(A&&h(b,A),$)for(let N=0;N<$.length;N++)h(b,$[N]);if(R){let N=R.subTree;if(k===N||ul(N.type)&&(N.ssContent===k||N.ssFallback===k)){const p=R.vnode;P(b,p,p.scopeId,p.slotScopeIds,R.parent)}}},M=(b,k,A,$,R,N,p,m,x=0)=>{for(let I=x;I<b.length;I++){const j=b[I]=m?Jt(b[I]):bt(b[I]);v(null,j,k,A,$,R,N,p,m)}},U=(b,k,A,$,R,N,p)=>{const m=k.el=b.el;let{patchFlag:x,dynamicChildren:I,dirs:j}=k;x|=b.patchFlag&16;const L=b.props||he,S=k.props||he;let O;if(A&&fn(A,!1),(O=S.onVnodeBeforeUpdate)&&yt(O,A,k,b),j&&cn(k,b,A,"beforeUpdate"),A&&fn(A,!0),(L.innerHTML&&S.innerHTML==null||L.textContent&&S.textContent==null)&&c(m,""),I?Y(b.dynamicChildren,I,m,A,$,Ti(k,R),N):p||ne(b,k,m,null,A,$,Ti(k,R),N,!1),x>0){if(x&16)ee(m,L,S,A,R);else if(x&2&&L.class!==S.class&&i(m,"class",null,S.class,R),x&4&&i(m,"style",L.style,S.style,R),x&8){const K=k.dynamicProps;for(let z=0;z<K.length;z++){const Q=K[z],Pe=L[Q],Ee=S[Q];(Ee!==Pe||Q==="value")&&i(m,Q,Pe,Ee,R,A)}}x&1&&b.children!==k.children&&c(m,k.children)}else!p&&I==null&&ee(m,L,S,A,R);((O=S.onVnodeUpdated)||j)&&Xe(()=>{O&&yt(O,A,k,b),j&&cn(k,b,A,"updated")},$)},Y=(b,k,A,$,R,N,p)=>{for(let m=0;m<k.length;m++){const x=b[m],I=k[m],j=x.el&&(x.type===Ce||!hr(x,I)||x.shapeFlag&198)?f(x.el):A;v(x,I,j,null,$,R,N,p,!0)}},ee=(b,k,A,$,R)=>{if(k!==A){if(k!==he)for(const N in k)!Yn(N)&&!(N in A)&&i(b,N,k[N],null,R,$);for(const N in A){if(Yn(N))continue;const p=A[N],m=k[N];p!==m&&N!=="value"&&i(b,N,m,p,R,$)}"value"in A&&i(b,"value",k.value,A.value,R)}},Z=(b,k,A,$,R,N,p,m,x)=>{const I=k.el=b?b.el:a(""),j=k.anchor=b?b.anchor:a("");let{patchFlag:L,dynamicChildren:S,slotScopeIds:O}=k;O&&(m=m?m.concat(O):O),b==null?(r(I,A,$),r(j,A,$),M(k.children||[],A,j,R,N,p,m,x)):L>0&&L&64&&S&&b.dynamicChildren&&b.dynamicChildren.length===S.length?(Y(b.dynamicChildren,S,A,R,N,p,m),(k.key!=null||R&&k===R.subTree)&&ol(b,k,!0)):ne(b,k,A,j,R,N,p,m,x)},ie=(b,k,A,$,R,N,p,m,x)=>{k.slotScopeIds=m,b==null?k.shapeFlag&512?R.ctx.activate(k,A,$,p,x):pe(k,A,$,R,N,p,x):He(b,k,x)},pe=(b,k,A,$,R,N,p)=>{const m=b.component=Wh(b,$,R);if(Da(b)&&(m.ctx.renderer=Ct),Hh(m,!1,p),m.asyncDep){if(R&&R.registerDep(m,ae,p),!b.el){const x=m.subTree=Te(Xt);_(null,x,k,A),b.placeholder=x.el}}else ae(m,b,k,A,R,N,p)},He=(b,k,A)=>{const $=k.component=b.component;if(xh(b,k,A))if($.asyncDep&&!$.asyncResolved){H($,k,A);return}else $.next=k,$.update();else k.el=b.el,$.vnode=k},ae=(b,k,A,$,R,N,p)=>{const m=()=>{if(b.isMounted){let{next:L,bu:S,u:O,parent:K,vnode:z}=b;{const ft=al(b);if(ft){L&&(L.el=z.el,H(b,L,p)),ft.asyncDep.then(()=>{b.isUnmounted||m()});return}}let Q=L,Pe;fn(b,!1),L?(L.el=z.el,H(b,L,p)):L=z,S&&Br(S),(Pe=L.props&&L.props.onVnodeBeforeUpdate)&&yt(Pe,K,L,z),fn(b,!0);const Ee=Xa(b),rt=b.subTree;b.subTree=Ee,v(rt,Ee,f(rt.el),sn(rt),b,R,N),L.el=Ee.el,Q===null&&Sh(b,Ee.el),O&&Xe(O,R),(Pe=L.props&&L.props.onVnodeUpdated)&&Xe(()=>yt(Pe,K,L,z),R)}else{let L;const{el:S,props:O}=k,{bm:K,m:z,parent:Q,root:Pe,type:Ee}=b,rt=ar(k);fn(b,!1),K&&Br(K),!rt&&(L=O&&O.onVnodeBeforeMount)&&yt(L,Q,k),fn(b,!0);{Pe.ce&&Pe.ce._def.shadowRoot!==!1&&Pe.ce._injectChildStyle(Ee);const ft=b.subTree=Xa(b);v(null,ft,A,$,b,R,N),k.el=ft.el}if(z&&Xe(z,R),!rt&&(L=O&&O.onVnodeMounted)){const ft=k;Xe(()=>yt(L,Q,ft),R)}(k.shapeFlag&256||Q&&ar(Q.vnode)&&Q.vnode.shapeFlag&256)&&b.a&&Xe(b.a,R),b.isMounted=!0,k=A=$=null}};b.scope.on();const x=b.effect=new ia(m);b.scope.off();const I=b.update=x.run.bind(x),j=b.job=x.runIfDirty.bind(x);j.i=b,j.id=b.uid,x.scheduler=()=>mi(j),fn(b,!0),I()},H=(b,k,A)=>{k.component=b;const $=b.vnode.props;b.vnode=k,b.next=null,Eh(b,k.props,$,A),Ah(b,k.children,A),ht(),Ca(b),pt()},ne=(b,k,A,$,R,N,p,m,x=!1)=>{const I=b&&b.children,j=b?b.shapeFlag:0,L=k.children,{patchFlag:S,shapeFlag:O}=k;if(S>0){if(S&128){ut(I,L,A,$,R,N,p,m,x);return}else if(S&256){xe(I,L,A,$,R,N,p,m,x);return}}O&8?(j&16&&nt(I,R,N),L!==I&&c(A,L)):j&16?O&16?ut(I,L,A,$,R,N,p,m,x):nt(I,R,N,!0):(j&8&&c(A,""),O&16&&M(L,A,$,R,N,p,m,x))},xe=(b,k,A,$,R,N,p,m,x)=>{b=b||Cn,k=k||Cn;const I=b.length,j=k.length,L=Math.min(I,j);let S;for(S=0;S<L;S++){const O=k[S]=x?Jt(k[S]):bt(k[S]);v(b[S],O,A,null,R,N,p,m,x)}I>j?nt(b,R,N,!0,!1,L):M(k,A,$,R,N,p,m,x,L)},ut=(b,k,A,$,R,N,p,m,x)=>{let I=0;const j=k.length;let L=b.length-1,S=j-1;for(;I<=L&&I<=S;){const O=b[I],K=k[I]=x?Jt(k[I]):bt(k[I]);if(hr(O,K))v(O,K,A,null,R,N,p,m,x);else break;I++}for(;I<=L&&I<=S;){const O=b[L],K=k[S]=x?Jt(k[S]):bt(k[S]);if(hr(O,K))v(O,K,A,null,R,N,p,m,x);else break;L--,S--}if(I>L){if(I<=S){const O=S+1,K=O<j?k[O].el:$;for(;I<=S;)v(null,k[I]=x?Jt(k[I]):bt(k[I]),A,K,R,N,p,m,x),I++}}else if(I>S)for(;I<=L;)Re(b[I],R,N,!0),I++;else{const O=I,K=I,z=new Map;for(I=K;I<=S;I++){const qe=k[I]=x?Jt(k[I]):bt(k[I]);qe.key!=null&&z.set(qe.key,I)}let Q,Pe=0;const Ee=S-K+1;let rt=!1,ft=0;const Ur=new Array(Ee);for(I=0;I<Ee;I++)Ur[I]=0;for(I=O;I<=L;I++){const qe=b[I];if(Pe>=Ee){Re(qe,R,N,!0);continue}let Ot;if(qe.key!=null)Ot=z.get(qe.key);else for(Q=K;Q<=S;Q++)if(Ur[Q-K]===0&&hr(qe,k[Q])){Ot=Q;break}Ot===void 0?Re(qe,R,N,!0):(Ur[Ot-K]=I+1,Ot>=ft?ft=Ot:rt=!0,v(qe,k[Ot],A,null,R,N,p,m,x),Pe++)}const Nf=rt?$h(Ur):Cn;for(Q=Nf.length-1,I=Ee-1;I>=0;I--){const qe=K+I,Ot=k[qe],Df=k[qe+1],jf=qe+1<j?Df.el||cl(Df):$;Ur[I]===0?v(null,Ot,A,jf,R,N,p,m,x):rt&&(Q<0||I!==Nf[Q]?Ve(Ot,A,jf,2):Q--)}}},Ve=(b,k,A,$,R=null)=>{const{el:N,type:p,transition:m,children:x,shapeFlag:I}=b;if(I&6){Ve(b.component.subTree,k,A,$);return}if(I&128){b.suspense.move(k,A,$);return}if(I&64){p.move(b,k,A,Ct);return}if(p===Ce){r(N,k,A);for(let L=0;L<x.length;L++)Ve(x[L],k,A,$);r(b.anchor,k,A);return}if(p===Ei){T(b,k,A);return}if($!==2&&I&1&&m)if($===0)m.beforeEnter(N),r(N,k,A),Xe(()=>m.enter(N),R);else{const{leave:L,delayLeave:S,afterLeave:O}=m,K=()=>{b.ctx.isUnmounted?s(N):r(N,k,A)},z=()=>{N._isLeaving&&N[Xd](!0),L(N,()=>{K(),O&&O()})};S?S(N,K,z):z()}else r(N,k,A)},Re=(b,k,A,$=!1,R=!1)=>{const{type:N,props:p,ref:m,children:x,dynamicChildren:I,shapeFlag:j,patchFlag:L,dirs:S,cacheIndex:O}=b;if(L===-2&&(R=!1),m!=null&&(ht(),or(m,null,A,b,!0),pt()),O!=null&&(k.renderCache[O]=void 0),j&256){k.ctx.deactivate(b);return}const K=j&1&&S,z=!ar(b);let Q;if(z&&(Q=p&&p.onVnodeBeforeUnmount)&&yt(Q,k,b),j&6)In(b.component,A,$);else{if(j&128){b.suspense.unmount(A,$);return}K&&cn(b,null,k,"beforeUnmount"),j&64?b.type.remove(b,k,A,Ct,$):I&&!I.hasOnce&&(N!==Ce||L>0&&L&64)?nt(I,k,A,!1,!0):(N===Ce&&L&384||!R&&j&16)&&nt(x,k,A),$&&It(b)}(z&&(Q=p&&p.onVnodeUnmounted)||K)&&Xe(()=>{Q&&yt(Q,k,b),K&&cn(b,null,k,"unmounted")},A)},It=b=>{const{type:k,el:A,anchor:$,transition:R}=b;if(k===Ce){rn(A,$);return}if(k===Ei){g(b);return}const N=()=>{s(A),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:p,delayLeave:m}=R,x=()=>p(A,N);m?m(b.el,N,x):x()}else N()},rn=(b,k)=>{let A;for(;b!==k;)A=d(b),s(b),b=A;s(k)},In=(b,k,A)=>{const{bum:$,scope:R,job:N,subTree:p,um:m,m:x,a:I}=b;ll(x),ll(I),$&&Br($),R.stop(),N&&(N.flags|=8,Re(p,b,k,A)),m&&Xe(m,k),Xe(()=>{b.isUnmounted=!0},k)},nt=(b,k,A,$=!1,R=!1,N=0)=>{for(let p=N;p<b.length;p++)Re(b[p],k,A,$,R)},sn=b=>{if(b.shapeFlag&6)return sn(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const k=d(b.anchor||b.el),A=k&&k[Gd];return A?d(A):k};let on=!1;const Xn=(b,k,A)=>{let $;b==null?k._vnode&&(Re(k._vnode,null,null,!0),$=k._vnode.component):v(k._vnode||null,b,k,null,null,null,A),k._vnode=b,on||(on=!0,Ca($),Oa(),on=!1)},Ct={p:v,um:Re,m:Ve,r:It,mt:pe,mc:M,pc:ne,pbc:Y,n:sn,o:e};return{render:Xn,hydrate:void 0,createApp:_h(Xn)}}function Ti({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function fn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ol(e,t,n=!1){const r=e.children,s=t.children;if(B(r)&&B(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Jt(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&ol(o,a)),a.type===ur&&(a.patchFlag!==-1?a.el=o.el:a.__elIndex=i+(e.type===Ce?1:0)),a.type===Xt&&!a.el&&(a.el=o.el)}}function $h(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function al(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:al(t)}function ll(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function cl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?cl(t.subTree):null}const ul=e=>e.__isSuspense;function Nh(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):Fd(e)}const Ce=Symbol.for("v-fgt"),ur=Symbol.for("v-txt"),Xt=Symbol.for("v-cmt"),Ei=Symbol.for("v-stc"),fr=[];let Ye=null;function V(e=!1){fr.push(Ye=e?null:[])}function Dh(){fr.pop(),Ye=fr[fr.length-1]||null}let dr=1;function ds(e,t=!1){dr+=e,e<0&&Ye&&t&&(Ye.hasOnce=!0)}function fl(e){return e.dynamicChildren=dr>0?Ye||Cn:null,Dh(),dr>0&&Ye&&Ye.push(e),e}function X(e,t,n,r,s,i){return fl(ce(e,t,n,r,s,i,!0))}function Yt(e,t,n,r,s){return fl(Te(e,t,n,r,s,!0))}function hs(e){return e?e.__v_isVNode===!0:!1}function hr(e,t){return e.type===t.type&&e.key===t.key}const dl=({key:e})=>e??null,ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||we(e)||G(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function ce(e,t=null,n=null,r=0,s=null,i=e===Ce?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dl(t),ref:t&&ps(t),scopeId:Pa,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ge};return a?(Ii(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Se(n)?8:16),dr>0&&!o&&Ye&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ye.push(l),l}const Te=jh;function jh(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===lh)&&(e=Xt),hs(e)){const a=Dn(e,t,!0);return n&&Ii(a,n),dr>0&&!i&&Ye&&(a.shapeFlag&6?Ye[Ye.indexOf(e)]=a:Ye.push(a)),a.patchFlag=-2,a}if(Xh(e)&&(e=e.__vccOpts),t){t=Mh(t);let{class:a,style:l}=t;a&&!Se(a)&&(t.class=Jn(a)),_e(l)&&(ns(l)&&!B(l)&&(l=$e({},l)),t.style=Zr(l))}const o=Se(e)?1:ul(e)?128:Zd(e)?64:_e(e)?4:G(e)?2:0;return ce(e,t,n,r,s,o,i,!0)}function Mh(e){return e?ns(e)||Qa(e)?$e({},e):e:null}function Dn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?Fh(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&dl(u),ref:t&&t.ref?n&&i?B(i)?i.concat(ps(t)):[i,ps(t)]:ps(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dn(e.ssContent),ssFallback:e.ssFallback&&Dn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&gi(c,l.clone(c)),c}function dn(e=" ",t=0){return Te(ur,null,e,t)}function Le(e="",t=!1){return t?(V(),Yt(Xt,null,e)):Te(Xt,null,e)}function bt(e){return e==null||typeof e=="boolean"?Te(Xt):B(e)?Te(Ce,null,e.slice()):hs(e)?Jt(e):Te(ur,null,String(e))}function Jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Dn(e)}function Ii(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ii(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Qa(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Ge},n=32):(t=String(t),r&64?(n=16,t=[dn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fh(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Jn([t.class,r.class]));else if(s==="style")t.style=Zr([t.style,r.style]);else if(Kr(s)){const i=t[s],o=r[s];o&&i!==o&&!(B(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function yt(e,t,n,r=null){mt(e,t,7,[n,r])}const Uh=Ga();let Kh=0;function Wh(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Uh,i={uid:Kh++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ra(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tl(r,s),emitsOptions:Za(r,s),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=yh.bind(null,i),e.ce&&e.ce(i),i}let Me=null;const Ci=()=>Me||Ge;let ms,Oi;{const e=Gr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};ms=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),Oi=t("__VUE_SSR_SETTERS__",n=>mr=n)}const pr=e=>{const t=Me;return ms(e),e.scope.on(),()=>{e.scope.off(),ms(t)}},hl=()=>{Me&&Me.scope.off(),ms(null)};function pl(e){return e.vnode.shapeFlag&4}let mr=!1;function Hh(e,t=!1,n=!1){t&&Oi(t);const{props:r,children:s}=e.vnode,i=pl(e);Th(e,r,i,t),Oh(e,s,n||t);const o=i?zh(e,t):void 0;return t&&Oi(!1),o}function zh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uh);const{setup:r}=n;if(r){ht();const s=e.setupContext=r.length>1?Bh(e):null,i=pr(e),o=Ln(r,e,0,[e.props,s]),a=Xo(o);if(pt(),i(),(a||e.sp)&&!ar(e)&&$a(e),a){if(o.then(hl,hl),t)return o.then(l=>{ml(e,l)}).catch(l=>{is(l,e,0)});e.asyncDep=o}else ml(e,o)}else gl(e)}function ml(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=Sa(t)),gl(e)}function gl(e,t,n){const r=e.type;e.render||(e.render=r.render||dt);{const s=pr(e);ht();try{fh(e)}finally{pt(),s()}}}const Vh={get(e,t){return De(e,"get",""),e[t]}};function Bh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Vh),slots:e.slots,emit:e.emit,expose:t}}function gs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sa(hi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lr)return lr[n](e)},has(t,n){return n in t||n in lr}})):e.proxy}const Gh=/(?:^|[-_])\w/g,Zh=e=>e.replace(Gh,t=>t.toUpperCase()).replace(/[-_]/g,"");function _l(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function bl(e,t,n=!1){let r=_l(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return r?Zh(r):n?"App":"Anonymous"}function Xh(e){return G(e)&&"__vccOpts"in e}const et=(e,t)=>Ad(e,t,mr);function gr(e,t,n){try{ds(-1);const r=arguments.length;return r===2?_e(t)&&!B(t)?hs(t)?Te(e,null,[t]):Te(e,t):Te(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&hs(n)&&(n=[n]),Te(e,t,n))}finally{ds(1)}}const Yh="3.5.26";let Ai;const yl=typeof window<"u"&&window.trustedTypes;if(yl)try{Ai=yl.createPolicy("vue",{createHTML:e=>e})}catch{}const vl=Ai?e=>Ai.createHTML(e):e=>e,Jh="http://www.w3.org/2000/svg",qh="http://www.w3.org/1998/Math/MathML",Dt=typeof document<"u"?document:null,wl=Dt&&Dt.createElement("template"),Qh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Dt.createElementNS(Jh,e):t==="mathml"?Dt.createElementNS(qh,e):n?Dt.createElement(e,{is:n}):Dt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{wl.innerHTML=vl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=wl.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ep=Symbol("_vtc");function tp(e,t,n){const r=e[ep];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const kl=Symbol("_vod"),np=Symbol("_vsh"),rp=Symbol(""),sp=/(?:^|;)\s*display\s*:/;function ip(e,t,n){const r=e.style,s=Se(n);let i=!1;if(n&&!s){if(t)if(Se(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&_s(r,a,"")}else for(const o in t)n[o]==null&&_s(r,o,"");for(const o in n)o==="display"&&(i=!0),_s(r,o,n[o])}else if(s){if(t!==n){const o=r[rp];o&&(n+=";"+o),r.cssText=n,i=sp.test(n)}}else t&&e.removeAttribute("style");kl in e&&(e[kl]=i?r.display:"",e[np]&&(r.display="none"))}const xl=/\s*!important$/;function _s(e,t,n){if(B(n))n.forEach(r=>_s(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=op(e,t);xl.test(n)?e.setProperty(Vt(r),n.replace(xl,""),"important"):e[r]=n}}const Sl=["Webkit","Moz","ms"],Pi={};function op(e,t){const n=Pi[t];if(n)return n;let r=Qe(t);if(r!=="filter"&&r in e)return Pi[t]=r;r=Vr(r);for(let s=0;s<Sl.length;s++){const i=Sl[s]+r;if(i in e)return Pi[t]=i}return t}const Tl="http://www.w3.org/1999/xlink";function El(e,t,n,r,s,i=td(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Tl,t.slice(6,t.length)):e.setAttributeNS(Tl,t,n):n==null||i&&!ea(n)?e.removeAttribute(t):e.setAttribute(t,i?"":zt(n)?String(n):n)}function Il(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?vl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ea(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function jn(e,t,n,r){e.addEventListener(t,n,r)}function ap(e,t,n,r){e.removeEventListener(t,n,r)}const Cl=Symbol("_vei");function lp(e,t,n,r,s=null){const i=e[Cl]||(e[Cl]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=cp(t);if(r){const u=i[t]=dp(r,s);jn(e,a,u,l)}else o&&(ap(e,a,o,l),i[t]=void 0)}}const Ol=/(?:Once|Passive|Capture)$/;function cp(e){let t;if(Ol.test(e)){t={};let r;for(;r=e.match(Ol);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Vt(e.slice(2)),t]}let Li=0;const up=Promise.resolve(),fp=()=>Li||(up.then(()=>Li=0),Li=Date.now());function dp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;mt(hp(r,n.value),t,5,[r])};return n.value=e,n.attached=fp(),n}function hp(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Al=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pp=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?tp(e,r,o):t==="style"?ip(e,n,r):Kr(t)?Ys(t)||lp(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mp(e,t,r,o))?(Il(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&El(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Se(r))?Il(e,Qe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),El(e,t,r,o))};function mp(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Al(t)&&G(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Al(t)&&Se(n)?!1:t in e}const Pl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Br(t,n):t};function gp(e){e.target.composing=!0}function Ll(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ri=Symbol("_assign");function Rl(e,t,n){return t&&(e=e.trim()),n&&(e=Qs(e)),e}const _p={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ri]=Pl(s);const i=r||s.props&&s.props.type==="number";jn(e,t?"change":"input",o=>{o.target.composing||e[Ri](Rl(e.value,n,i))}),(n||i)&&jn(e,"change",()=>{e.value=Rl(e.value,n,i)}),t||(jn(e,"compositionstart",gp),jn(e,"compositionend",Ll),jn(e,"change",Ll))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Ri]=Pl(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Qs(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},bp=["ctrl","shift","alt","meta"],yp={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)=>bp.some(n=>e[`${n}Key`]&&!t.includes(n))},$i=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=yp[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},vp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$l=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=Vt(s.key);if(t.some(o=>o===i||vp[o]===i))return e(s)}))},wp=$e({patchProp:pp},Qh);let Nl;function kp(){return Nl||(Nl=Ph(wp))}const xp=((...e)=>{const t=kp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Tp(r);if(!s)return;const i=t._component;!G(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Sp(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function Sp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Tp(e){return Se(e)?document.querySelector(e):e}let Dl;const bs=e=>Dl=e,jl=Symbol();function Ni(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var _r;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(_r||(_r={}));function Ep(){const e=ti(!0),t=e.run(()=>J({}));let n=[],r=[];const s=hi({install(i){bs(s),s._a=i,i.provide(jl,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Ml=()=>{};function Fl(e,t,n,r=Ml){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&sa()&&nd(s),s}function Mn(e,...t){e.forEach(n=>{n(...t)})}const Ip=e=>e(),Ul=Symbol(),Di=Symbol();function ji(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Ni(s)&&Ni(r)&&e.hasOwnProperty(n)&&!we(r)&&!Lt(r)?e[n]=ji(s,r):e[n]=r}return e}const Cp=Symbol();function Op(e){return!Ni(e)||!Object.prototype.hasOwnProperty.call(e,Cp)}const{assign:qt}=Object;function Ap(e){return!!(we(e)&&e.effect)}function Pp(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=Ed(n.state.value[e]);return qt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=hi(et(()=>{bs(n);const h=n._s.get(e);return o[d].call(h,h)})),f),{}))}return l=Kl(e,u,t,n,r,!0),l}function Kl(e,t,n={},r,s,i){let o;const a=qt({actions:{}},n),l={deep:!0};let u,c,f=new Set,d=new Set,h;const y=r.state.value[e];!i&&!y&&(r.state.value[e]={}),J({});let v;function E(M){let U;u=c=!1,typeof M=="function"?(M(r.state.value[e]),U={type:_r.patchFunction,storeId:e,events:h}):(ji(r.state.value[e],M),U={type:_r.patchObject,payload:M,storeId:e,events:h});const Y=v=Symbol();sr().then(()=>{v===Y&&(u=!0)}),c=!0,Mn(f,U,r.state.value[e])}const _=i?function(){const{state:U}=n,Y=U?U():{};this.$patch(ee=>{qt(ee,Y)})}:Ml;function w(){o.stop(),f.clear(),d.clear(),r._s.delete(e)}const T=(M,U="")=>{if(Ul in M)return M[Di]=U,M;const Y=function(){bs(r);const ee=Array.from(arguments),Z=new Set,ie=new Set;function pe(H){Z.add(H)}function He(H){ie.add(H)}Mn(d,{args:ee,name:Y[Di],store:C,after:pe,onError:He});let ae;try{ae=M.apply(this&&this.$id===e?this:C,ee)}catch(H){throw Mn(ie,H),H}return ae instanceof Promise?ae.then(H=>(Mn(Z,H),H)).catch(H=>(Mn(ie,H),Promise.reject(H))):(Mn(Z,ae),ae)};return Y[Ul]=!0,Y[Di]=U,Y},g={_p:r,$id:e,$onAction:Fl.bind(null,d),$patch:E,$reset:_,$subscribe(M,U={}){const Y=Fl(f,M,U.detached,()=>ee()),ee=o.run(()=>Ze(()=>r.state.value[e],Z=>{(U.flush==="sync"?c:u)&&M({storeId:e,type:_r.direct,events:h},Z)},qt({},l,U)));return Y},$dispose:w},C=es(g);r._s.set(e,C);const P=(r._a&&r._a.runWithContext||Ip)(()=>r._e.run(()=>(o=ti()).run(()=>t({action:T}))));for(const M in P){const U=P[M];if(we(U)&&!Ap(U)||Lt(U))i||(y&&Op(U)&&(we(U)?U.value=y[M]:ji(U,y[M])),r.state.value[e][M]=U);else if(typeof U=="function"){const Y=T(U,M);P[M]=Y,a.actions[M]=U}}return qt(C,P),qt(te(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:M=>{E(U=>{qt(U,M)})}}),r._p.forEach(M=>{qt(C,o.run(()=>M({store:C,app:r._a,pinia:r,options:a})))}),y&&i&&n.hydrate&&n.hydrate(C.$state,y),u=!0,c=!0,C}function Wl(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,a){const l=Hd();return o=o||(l?je(jl,null):null),o&&bs(o),o=Dl,o._s.has(e)||(s?Kl(e,t,r,o):Pp(e,r,o)),o._s.get(e)}return i.$id=e,i}const Hl=Symbol("$auth0");function vt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}typeof SuppressedError=="function"&&SuppressedError;var hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fi(e,t){return e(t={exports:{}},t.exports),t.exports}var pn=Fi((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=(function(){function r(){var s=this;this.locked=new Map,this.addToLocked=function(i,o){var a=s.locked.get(i);a===void 0?o===void 0?s.locked.set(i,[]):s.locked.set(i,[o]):o!==void 0&&(a.unshift(o),s.locked.set(i,a))},this.isLocked=function(i){return s.locked.has(i)},this.lock=function(i){return new Promise((function(o,a){s.isLocked(i)?s.addToLocked(i,o):(s.addToLocked(i),o())}))},this.unlock=function(i){var o=s.locked.get(i);if(o!==void 0&&o.length!==0){var a=o.pop();s.locked.set(i,o),a!==void 0&&setTimeout(a,0)}else s.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r})();t.default=function(){return n.getInstance()}}));Mi(pn);var Lp=Mi(Fi((function(e,t){var n=hn&&hn.__awaiter||function(c,f,d,h){return new(d||(d=Promise))((function(y,v){function E(T){try{w(h.next(T))}catch(g){v(g)}}function _(T){try{w(h.throw(T))}catch(g){v(g)}}function w(T){T.done?y(T.value):new d((function(g){g(T.value)})).then(E,_)}w((h=h.apply(c,f||[])).next())}))},r=hn&&hn.__generator||function(c,f){var d,h,y,v,E={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return v={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function _(w){return function(T){return(function(g){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,h&&(y=2&g[0]?h.return:g[0]?h.throw||((y=h.return)&&y.call(h),0):h.next)&&!(y=y.call(h,g[1])).done)return y;switch(h=0,y&&(g=[2&g[0],y.value]),g[0]){case 0:case 1:y=g;break;case 4:return E.label++,{value:g[1],done:!1};case 5:E.label++,h=g[1],g=[0];continue;case 7:g=E.ops.pop(),E.trys.pop();continue;default:if(!((y=(y=E.trys).length>0&&y[y.length-1])||g[0]!==6&&g[0]!==2)){E=0;continue}if(g[0]===3&&(!y||g[1]>y[0]&&g[1]<y[3])){E.label=g[1];break}if(g[0]===6&&E.label<y[1]){E.label=y[1],y=g;break}if(y&&E.label<y[2]){E.label=y[2],E.ops.push(g);break}y[2]&&E.ops.pop(),E.trys.pop();continue}g=f.call(c,E)}catch(C){g=[6,C],h=0}finally{d=y=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}})([w,T])}}},s=hn;Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(c){return n(s,void 0,void 0,(function(){return r(this,(function(f){throw new Error("Unsupported")}))}))},getItem:function(c){return n(s,void 0,void 0,(function(){return r(this,(function(f){throw new Error("Unsupported")}))}))},clear:function(){return n(s,void 0,void 0,(function(){return r(this,(function(c){return[2,window.localStorage.clear()]}))}))},removeItem:function(c){return n(s,void 0,void 0,(function(){return r(this,(function(f){throw new Error("Unsupported")}))}))},setItem:function(c,f){return n(s,void 0,void 0,(function(){return r(this,(function(d){throw new Error("Unsupported")}))}))},keySync:function(c){return window.localStorage.key(c)},getItemSync:function(c){return window.localStorage.getItem(c)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(c){return window.localStorage.removeItem(c)},setItemSync:function(c,f){return window.localStorage.setItem(c,f)}};function a(c){return new Promise((function(f){return setTimeout(f,c)}))}function l(c){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",h=0;h<c;h++)d+=f[Math.floor(Math.random()*f.length)];return d}var u=(function(){function c(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=f,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,(function(){var h,y,v,E,_,w,T;return r(this,(function(g){switch(g.label){case 0:h=Date.now()+l(4),y=Date.now()+d,v=i+"-"+f,E=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<y?[4,a(30)]:[3,8];case 2:return g.sent(),E.getItemSync(v)!==null?[3,5]:(_=this.id+"-"+f+"-"+h,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),E.setItemSync(v,JSON.stringify({id:this.id,iat:h,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(w=E.getItemSync(v))!==null&&(T=JSON.parse(w)).id===this.id&&T.iat===h?(this.acquiredIatSet.add(h),this.refreshLockWhileAcquired(v,h),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(y)];case 6:g.sent(),g.label=7;case 7:return h=Date.now()+l(4),[3,1];case 8:return[2,!1]}}))}))},c.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,(function(){var h=this;return r(this,(function(y){return setTimeout((function(){return n(h,void 0,void 0,(function(){var v,E,_;return r(this,(function(w){switch(w.label){case 0:return[4,pn.default().lock(d)];case 1:return w.sent(),this.acquiredIatSet.has(d)?(v=this.storageHandler===void 0?o:this.storageHandler,(E=v.getItemSync(f))===null?(pn.default().unlock(d),[2]):((_=JSON.parse(E)).timeRefreshed=Date.now(),v.setItemSync(f,JSON.stringify(_)),pn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(pn.default().unlock(d),[2])}}))}))}),1e3),[2]}))}))},c.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,(function(){return r(this,(function(d){switch(d.label){case 0:return[4,new Promise((function(h){var y=!1,v=Date.now(),E=!1;function _(){if(E||(window.removeEventListener("storage",_),c.removeFromWaiting(_),clearTimeout(w),E=!0),!y){y=!0;var T=50-(Date.now()-v);T>0?setTimeout(h,T):h(null)}}window.addEventListener("storage",_),c.addToWaiting(_);var w=setTimeout(_,Math.max(0,f-Date.now()))}))];case 1:return d.sent(),[2]}}))}))},c.addToWaiting=function(f){this.removeFromWaiting(f),c.waiters!==void 0&&c.waiters.push(f)},c.removeFromWaiting=function(f){c.waiters!==void 0&&(c.waiters=c.waiters.filter((function(d){return d!==f})))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach((function(f){return f()}))},c.prototype.releaseLock=function(f){return n(this,void 0,void 0,(function(){return r(this,(function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}}))}))},c.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,(function(){var d,h,y,v;return r(this,(function(E){switch(E.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,h=i+"-"+f,(y=d.getItemSync(h))===null?[2]:(v=JSON.parse(y)).id!==this.id?[3,2]:[4,pn.default().lock(v.iat)];case 1:E.sent(),this.acquiredIatSet.delete(v.iat),d.removeItemSync(h),pn.default().unlock(v.iat),c.notifyWaiters(),E.label=2;case 2:return[2]}}))}))},c.lockCorrector=function(f){for(var d=Date.now()-5e3,h=f,y=[],v=0;;){var E=h.keySync(v);if(E===null)break;y.push(E),v++}for(var _=!1,w=0;w<y.length;w++){var T=y[w];if(T.includes(i)){var g=h.getItemSync(T);if(g!==null){var C=JSON.parse(g);(C.timeRefreshed===void 0&&C.timeAcquired<d||C.timeRefreshed!==void 0&&C.timeRefreshed<d)&&(h.removeItemSync(T),_=!0)}}}_&&c.notifyWaiters()},c.waiters=void 0,c})();t.default=u})));const Rp={timeoutInSeconds:60},zl={name:"auth0-spa-js",version:"2.10.0"},Vl=()=>Date.now();let Oe=class Ho extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ho.prototype)}static fromPayload({error:t,error_description:n}){return new Ho(t,n)}},$p=class Mf extends Oe{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Mf.prototype)}};class Ui extends Oe{constructor(t,n,r,s,i=null){super(t,n),this.connection=r,this.state=s,this.appState=i,Object.setPrototypeOf(this,Ui.prototype)}}class br extends Oe{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,br.prototype)}}let Np=class Ff extends br{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Ff.prototype)}},Dp=class Uf extends Oe{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Uf.prototype)}},jp=class Kf extends Oe{constructor(){super("popup_open","Unable to open a popup for loginWithPopup - window.open returned `null`"),Object.setPrototypeOf(this,Kf.prototype)}},Mp=class Wf extends Oe{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Wf.prototype)}},Bl=class Hf extends Oe{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${ys(t,["default"])}', scope: '${ys(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Hf.prototype)}},Fp=class zf extends Oe{constructor(t,n){super("missing_scopes",`Missing requested scopes after refresh (audience: '${ys(t,["default"])}', missing scope: '${ys(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,zf.prototype)}},Gl=class Vf extends Oe{constructor(t){super("use_dpop_nonce","Server rejected DPoP proof: wrong nonce"),this.newDpopNonce=t,Object.setPrototypeOf(this,Vf.prototype)}};function ys(e,t=[]){return e&&!t.includes(e)?e:""}const vs=()=>window.crypto,yr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(vs().getRandomValues(new Uint8Array(43))).forEach((n=>t+=e[n%e.length])),t},Ki=e=>btoa(e),Up=[{key:"name",type:["string"]},{key:"version",type:["string","number"]},{key:"env",type:["object"]}],Kp=e=>Object.keys(e).reduce(((t,n)=>{const r=Up.find((s=>s.key===n));return r&&r.type.includes(typeof e[n])&&(t[n]=e[n]),t}),{}),Wi=e=>{var{clientId:t}=e,n=vt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter((s=>r[s]!==void 0)).reduce(((s,i)=>Object.assign(Object.assign({},s),{[i]:r[i]})),{}))(Object.assign({client_id:t},n))).toString()},Zl=async e=>await vs().subtle.digest({name:"SHA-256"},new TextEncoder().encode(e)),Xl=e=>(t=>decodeURIComponent(atob(t).split("").map((n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2))).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Yl=e=>{const t=new Uint8Array(e);return(n=>{const r={"+":"-","/":"_","=":""};return n.replace(/[+/=]/g,(s=>r[s]))})(window.btoa(String.fromCharCode(...Array.from(t))))},Wp=new TextEncoder,Hp=new TextDecoder;function vr(e){return typeof e=="string"?Wp.encode(e):Hp.decode(e)}function Jl(e){if(typeof e.modulusLength!="number"||e.modulusLength<2048)throw new zp(`${e.name} modulusLength must be at least 2048 bits`)}let Hi;Uint8Array.prototype.toBase64?Hi=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0})):Hi=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const n=[];for(let r=0;r<t.byteLength;r+=32768)n.push(String.fromCharCode.apply(null,t.subarray(r,r+32768)));return btoa(n.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};function wr(e){return Hi(e)}let Fn=class extends Error{constructor(t){var n;super(t??"operation not supported"),this.name=this.constructor.name,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}},zp=class extends Error{constructor(t){var n;super(t),this.name=this.constructor.name,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}};function Vp(e){switch(e.algorithm.name){case"RSA-PSS":return(function(t){if(t.algorithm.hash.name==="SHA-256")return"PS256";throw new Fn("unsupported RsaHashedKeyAlgorithm hash name")})(e);case"RSASSA-PKCS1-v1_5":return(function(t){if(t.algorithm.hash.name==="SHA-256")return"RS256";throw new Fn("unsupported RsaHashedKeyAlgorithm hash name")})(e);case"ECDSA":return(function(t){if(t.algorithm.namedCurve==="P-256")return"ES256";throw new Fn("unsupported EcKeyAlgorithm namedCurve")})(e);case"Ed25519":return"Ed25519";default:throw new Fn("unsupported CryptoKey algorithm name")}}function ql(e){return e instanceof CryptoKey}function Ql(e){return ql(e)&&e.type==="public"}async function Bp(e,t,n,r,s,i){const o=e?.privateKey,a=e?.publicKey;if(!ql(l=o)||l.type!=="private")throw new TypeError('"keypair.privateKey" must be a private CryptoKey');var l;if(!Ql(a))throw new TypeError('"keypair.publicKey" must be a public CryptoKey');if(a.extractable!==!0)throw new TypeError('"keypair.publicKey.extractable" must be true');if(typeof t!="string")throw new TypeError('"htu" must be a string');if(typeof n!="string")throw new TypeError('"htm" must be a string');if(r!==void 0&&typeof r!="string")throw new TypeError('"nonce" must be a string or undefined');if(s!==void 0&&typeof s!="string")throw new TypeError('"accessToken" must be a string or undefined');return(async function(u,c,f){if(f.usages.includes("sign")===!1)throw new TypeError('private CryptoKey instances used for signing assertions must include "sign" in their "usages"');const d=`${wr(vr(JSON.stringify(u)))}.${wr(vr(JSON.stringify(c)))}`;return`${d}.${wr(await crypto.subtle.sign((function(h){switch(h.algorithm.name){case"ECDSA":return{name:h.algorithm.name,hash:"SHA-256"};case"RSA-PSS":return Jl(h.algorithm),{name:h.algorithm.name,saltLength:32};case"RSASSA-PKCS1-v1_5":return Jl(h.algorithm),{name:h.algorithm.name};case"Ed25519":return{name:h.algorithm.name}}throw new Fn})(f),f,vr(d)))}`})({alg:Vp(o),typ:"dpop+jwt",jwk:await ec(a)},Object.assign(Object.assign({},i),{iat:Math.floor(Date.now()/1e3),jti:crypto.randomUUID(),htm:n,nonce:r,htu:t,ath:s?wr(await crypto.subtle.digest("SHA-256",vr(s))):void 0}),o)}async function ec(e){const{kty:t,e:n,n:r,x:s,y:i,crv:o}=await crypto.subtle.exportKey("jwk",e);return{kty:t,crv:o,e:n,n:r,x:s,y:i}}const Gp=["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:token-exchange"],Zp=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json(),headers:(r=n.headers,[...r].reduce(((s,[i,o])=>(s[i]=o,s)),{}))};var r},Xp=async(e,t,n,r,s,i,o=1e4,a)=>s?(async(l,u,c,f,d,h,y,v)=>{return E={auth:{audience:u,scope:c},timeout:d,fetchUrl:l,fetchOptions:f,useFormData:y,useMrrt:v},_=h,new Promise((function(w,T){const g=new MessageChannel;g.port1.onmessage=function(C){C.data.error?T(new Error(C.data.error)):w(C.data),g.port1.close()},_.postMessage(E,[g.port2])}));var E,_})(e,t,n,r,o,s,i,a):(async(l,u,c)=>{const f=new AbortController;let d;return u.signal=f.signal,Promise.race([Zp(l,u),new Promise(((h,y)=>{d=setTimeout((()=>{f.abort(),y(new Error("Timeout when executing 'fetch'"))}),c)}))]).finally((()=>{clearTimeout(d)}))})(e,r,o);async function tc(e,t,n,r,s,i,o,a,l,u){if(l){const T=await l.generateProof({url:e,method:s.method||"GET",nonce:await l.getNonce()});s.headers=Object.assign(Object.assign({},s.headers),{dpop:T})}let c,f=null;for(let T=0;T<3;T++)try{c=await Xp(e,n,r,s,i,o,t,a),f=null;break}catch(g){f=g}if(f)throw f;const d=c.json,{error:h,error_description:y}=d,v=vt(d,["error","error_description"]),{headers:E,ok:_}=c;let w;if(l&&(w=E["dpop-nonce"],w&&await l.setNonce(w)),!_){const T=y||`HTTP error. Unable to fetch ${e}`;if(h==="mfa_required")throw new Mp(h,T,v.mfa_token);if(h==="missing_refresh_token")throw new Bl(n,r);if(h==="use_dpop_nonce"){if(!l||!w||u)throw new Gl(w);return tc(e,t,n,r,s,i,o,a,l,!0)}throw new Oe(h||"request_error",T)}return v}async function Yp(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a,useMrrt:l,dpop:u}=e,c=vt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData","useMrrt","dpop"]);const f=c.grant_type==="urn:ietf:params:oauth:grant-type:token-exchange",d=c.grant_type==="refresh_token"&&l,h=Object.assign(Object.assign(Object.assign(Object.assign({},c),f&&s&&{audience:s}),f&&i&&{scope:i}),d&&{audience:s,scope:i}),y=a?Wi(h):JSON.stringify(h),v=(E=c.grant_type,Gp.includes(E));var E;return await tc(`${n}/oauth/token`,r,s||"default",i,{method:"POST",body:y,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(Kp(o||zl)))}},t,a,l,v?u:void 0)}const ws=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t},ks=(e,t,n)=>{let r;return n&&(r=e[n]),r||(r=e.default),ws(r,t)};let jt=class zo{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,s,i]=t.split("::");return new zo({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new zo({scope:n,audience:r,clientId:s})}},Jp=class{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter((t=>t.startsWith("@@auth0spajs@@")))}},nc=class{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)}})()}},qp=class{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Vl}async setIdToken(t,n,r){var s;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:r}),await((s=this.keyManifest)===null||s===void 0?void 0:s.add(i))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0,r=!1,s){var i;let o=await this.cache.get(t.toKey());if(!o){const u=await this.getCacheKeys();if(!u)return;const c=this.matchExistingCacheKey(t,u);if(c&&(o=await this.cache.get(c)),!c&&r&&s!=="cache-only")return this.getEntryWithRefreshToken(t,u)}if(!o)return;const a=await this.nowProvider(),l=Math.floor(a/1e3);return o.expiresAt-n<l?o.body.refresh_token?this.modifiedCachedEntry(o,t):(await this.cache.remove(t.toKey()),void await((i=this.keyManifest)===null||i===void 0?void 0:i.remove(t.toKey()))):o.body}async modifiedCachedEntry(t,n){return t.body={refresh_token:t.body.refresh_token,audience:t.body.audience,scope:t.body.scope},await this.cache.set(n.toKey(),t),{refresh_token:t.body.refresh_token,audience:t.body.audience,scope:t.body.scope}}async set(t){var n;const r=new jt({clientId:t.client_id,scope:t.scope,audience:t.audience}),s=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),s),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async remove(t,n,r){const s=new jt({clientId:t,scope:r,audience:n});await this.cache.remove(s.toKey())}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter((s=>!t||s.includes(t))).reduce((async(s,i)=>{await s,await this.cache.remove(i)}),Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new jt({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter((r=>{var s;const i=jt.fromKey(r),o=new Set(i.scope&&i.scope.split(" ")),a=((s=t.scope)===null||s===void 0?void 0:s.split(" "))||[],l=i.scope&&a.reduce(((u,c)=>u&&o.has(c)),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId&&i.audience===t.audience&&l}))[0]}async getEntryWithRefreshToken(t,n){var r;for(const s of n){const i=jt.fromKey(s);if(i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId){const o=await this.cache.get(s);if(!((r=o?.body)===null||r===void 0)&&r.refresh_token)return this.modifiedCachedEntry(o,t)}}}async updateEntry(t,n){var r;const s=await this.getCacheKeys();if(s)for(const i of s){const o=await this.cache.get(i);if(((r=o?.body)===null||r===void 0?void 0:r.refresh_token)===t){const a=Object.assign(Object.assign({},o.body),{refresh_token:n});await this.set(a)}}}},Qp=class{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}};const kr=e=>typeof e=="number",em=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var mn=Fi((function(e,t){var n=hn&&hn.__assign||function(){return n=Object.assign||function(l){for(var u,c=1,f=arguments.length;c<f;c++)for(var d in u=arguments[c])Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var c="; "+l;return u===!0?c:c+"="+u}function s(l,u,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+(function(f){if(typeof f.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*f.expires),f.expires=d}return r("Expires",f.expires?f.expires.toUTCString():"")+r("Domain",f.domain)+r("Path",f.path)+r("Secure",f.secure)+r("SameSite",f.sameSite)})(c)}function i(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<c.length;d++){var h=c[d].split("="),y=h.slice(1).join("=");y.charAt(0)==='"'&&(y=y.slice(1,-1));try{u[h[0].replace(f,decodeURIComponent)]=y.replace(f,decodeURIComponent)}catch{}}return u}function o(){return i(document.cookie)}function a(l,u,c){document.cookie=s(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=s,t.parse=i,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}}));Mi(mn),mn.encode,mn.parse,mn.getAll;var tm=mn.get,rc=mn.set,sc=mn.remove;const Un={get(e){const t=tm(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),rc(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),sc(e,n)}},nm={get:e=>Un.get(e)||Un.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),rc(`_legacy_${e}`,JSON.stringify(t),r),Un.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),sc(e,n),Un.remove(e,t),Un.remove(`_legacy_${e}`,t)}},rm={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 gn;(function(e){e.Code="code",e.ConnectCode="connect_code"})(gn||(gn={}));var zi,sm=(function(e){return zi=zi||(function(t,n,r){var s=(function(l,u){var c=atob(l);return c})(t),i=s.indexOf(`
|
|
5
|
-
`,10)+1,o=s.substring(i)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)})("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YSx1c2VNcnJ0OmZ9LHBvcnRzOltwXX0pPT57bGV0IGgsdSxsPXt9O2NvbnN0e2F1ZGllbmNlOmQsc2NvcGU6eX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2lmKHU9KChlLHQpPT5vW24oZSx0KV0pKGQseSksIXUmJmYpe2NvbnN0IGU9by5sYXRlc3RfcmVmcmVzaF90b2tlbix0PSgoZSx0KT0+e2NvbnN0IHI9T2JqZWN0LmtleXMobykuZmluZCgocj0+e2lmKCJsYXRlc3RfcmVmcmVzaF90b2tlbiIhPT1yKXtjb25zdCBzPSgoZSx0KT0+dC5zdGFydHNXaXRoKGAke2V9fGApKSh0LHIpLG89ci5zcGxpdCgifCIpWzFdLnNwbGl0KCIgIiksbj1lLnNwbGl0KCIgIikuZXZlcnkoKGU9Pm8uaW5jbHVkZXMoZSkpKTtyZXR1cm4gcyYmbn19KSk7cmV0dXJuISFyfSkoeSxkKTtlJiYhdCYmKHU9ZSl9aWYoIXUpdGhyb3cgbmV3IHQoZCx5KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjp1fSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjp1fSkpfWxldCBqLGs7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGo9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1qLnNpZ25hbCk7dHJ5e2s9YXdhaXQgUHJvbWlzZS5yYWNlKFsoXz1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsXykpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIHAucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFrKXJldHVybiBqJiZqLmFib3J0KCksdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO2c9ay5oZWFkZXJzLGw9Wy4uLmddLnJlZHVjZSgoKGUsW3Qscl0pPT4oZVt0XT1yLGUpKSx7fSksaD1hd2FpdCBrLmpzb24oKSxoLnJlZnJlc2hfdG9rZW4/KGYmJihvLmxhdGVzdF9yZWZyZXNoX3Rva2VuPWgucmVmcmVzaF90b2tlbixPPXUsYj1oLnJlZnJlc2hfdG9rZW4sT2JqZWN0LmVudHJpZXMobykuZm9yRWFjaCgoKFtlLHRdKT0+e3Q9PT1PJiYob1tlXT1iKX0pKSksKChlLHQscik9PntvW24odCxyKV09ZX0pKGgucmVmcmVzaF90b2tlbixkLHkpLGRlbGV0ZSBoLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KShkLHkpLHAucG9zdE1lc3NhZ2Uoe29rOmsub2ssanNvbjpoLGhlYWRlcnM6bH0pfWNhdGNoKGUpe3AucG9zdE1lc3NhZ2Uoe29rOiExLGpzb246e2Vycm9yOmUuZXJyb3IsZXJyb3JfZGVzY3JpcHRpb246ZS5tZXNzYWdlfSxoZWFkZXJzOmx9KX12YXIgTyxiLGcsX30pKX0oKTsKCg=="),new Worker(zi,e)});const Vi={};let im=class{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 om={memory:()=>new nc().enclosedCache,localstorage:()=>new Jp},ic=e=>om[e],oc=e=>{const{openUrl:t,onRedirect:n}=e,r=vt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},ac=(e,t)=>{const n=t?.split(" ")||[];return(e?.split(" ")||[]).every((r=>n.includes(r)))},_n={NONCE:"nonce",KEYPAIR:"keypair"};let am=class{constructor(t){this.clientId=t}getVersion(){return 1}createDbHandle(){const t=window.indexedDB.open("auth0-spa-js",this.getVersion());return new Promise(((n,r)=>{t.onupgradeneeded=()=>Object.values(_n).forEach((s=>t.result.createObjectStore(s))),t.onerror=()=>r(t.error),t.onsuccess=()=>n(t.result)}))}async getDbHandle(){return this.dbHandle||(this.dbHandle=await this.createDbHandle()),this.dbHandle}async executeDbRequest(t,n,r){const s=r((await this.getDbHandle()).transaction(t,n).objectStore(t));return new Promise(((i,o)=>{s.onsuccess=()=>i(s.result),s.onerror=()=>o(s.error)}))}buildKey(t){const n=t?`_${t}`:"auth0";return`${this.clientId}::${n}`}setNonce(t,n){return this.save(_n.NONCE,this.buildKey(n),t)}setKeyPair(t){return this.save(_n.KEYPAIR,this.buildKey(),t)}async save(t,n,r){await this.executeDbRequest(t,"readwrite",(s=>s.put(r,n)))}findNonce(t){return this.find(_n.NONCE,this.buildKey(t))}findKeyPair(){return this.find(_n.KEYPAIR,this.buildKey())}find(t,n){return this.executeDbRequest(t,"readonly",(r=>r.get(n)))}async deleteBy(t,n){const r=await this.executeDbRequest(t,"readonly",(s=>s.getAllKeys()));r?.filter(n).map((s=>this.executeDbRequest(t,"readwrite",(i=>i.delete(s)))))}deleteByClientId(t,n){return this.deleteBy(t,(r=>typeof r=="string"&&r.startsWith(`${n}::`)))}clearNonces(){return this.deleteByClientId(_n.NONCE,this.clientId)}clearKeyPairs(){return this.deleteByClientId(_n.KEYPAIR,this.clientId)}},lm=class{constructor(t){this.storage=new am(t)}getNonce(t){return this.storage.findNonce(t)}setNonce(t,n){return this.storage.setNonce(t,n)}async getOrGenerateKeyPair(){let t=await this.storage.findKeyPair();return t||(t=await(async function(n,r){var s;let i;return i={name:"ECDSA",namedCurve:"P-256"},crypto.subtle.generateKey(i,(s=r?.extractable)!==null&&s!==void 0&&s,["sign","verify"])})(0,{extractable:!1}),await this.storage.setKeyPair(t)),t}async generateProof(t){const n=await this.getOrGenerateKeyPair();return(function({keyPair:r,url:s,method:i,nonce:o,accessToken:a}){const l=(function(u){const c=new URL(u);return c.search="",c.hash="",c.href})(s);return Bp(r,l,i,o,a)})(Object.assign({keyPair:n},t))}async calculateThumbprint(){return(function(t){return(async function(n){if(!Ql(n))throw new TypeError('"publicKey" must be a public CryptoKey');if(n.extractable!==!0)throw new TypeError('"publicKey.extractable" must be true');const r=await ec(n);let s;switch(r.kty){case"EC":s={crv:r.crv,kty:r.kty,x:r.x,y:r.y};break;case"OKP":s={crv:r.crv,kty:r.kty,x:r.x};break;case"RSA":s={e:r.e,kty:r.kty,n:r.n};break;default:throw new Fn("unsupported JWK kty")}return wr(await crypto.subtle.digest({name:"SHA-256"},vr(JSON.stringify(s))))})(t.publicKey)})(await this.getOrGenerateKeyPair())}async clear(){await Promise.all([this.storage.clearNonces(),this.storage.clearKeyPairs()])}};var Kn;(function(e){e.Bearer="Bearer",e.DPoP="DPoP"})(Kn||(Kn={}));let cm=class{constructor(t,n){this.hooks=n,this.config=Object.assign(Object.assign({},t),{fetch:t.fetch||(typeof window>"u"?fetch:window.fetch.bind(window))})}isAbsoluteUrl(t){return/^(https?:)?\/\//i.test(t)}buildUrl(t,n){if(n){if(this.isAbsoluteUrl(n))return n;if(t)return`${t.replace(/\/?\/$/,"")}/${n.replace(/^\/+/,"")}`}throw new TypeError("`url` must be absolute or `baseUrl` non-empty.")}getAccessToken(t){return this.config.getAccessToken?this.config.getAccessToken(t):this.hooks.getAccessToken(t)}extractUrl(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}buildBaseRequest(t,n){if(!this.config.baseUrl)return new Request(t,n);const r=this.buildUrl(this.config.baseUrl,this.extractUrl(t)),s=t instanceof Request?new Request(r,t):r;return new Request(s,n)}setAuthorizationHeader(t,n,r=Kn.Bearer){t.headers.set("authorization",`${r} ${n}`)}async setDpopProofHeader(t,n){if(!this.config.dpopNonceId)return;const r=await this.hooks.getDpopNonce(),s=await this.hooks.generateDpopProof({accessToken:n,method:t.method,nonce:r,url:t.url});t.headers.set("dpop",s)}async prepareRequest(t,n){const r=await this.getAccessToken(n);let s,i;typeof r=="string"?(s=this.config.dpopNonceId?Kn.DPoP:Kn.Bearer,i=r):(s=r.token_type,i=r.access_token),this.setAuthorizationHeader(t,i,s),s===Kn.DPoP&&await this.setDpopProofHeader(t,i)}getHeader(t,n){return Array.isArray(t)?new Headers(t).get(n)||"":typeof t.get=="function"?t.get(n)||"":t[n]||""}hasUseDpopNonceError(t){if(t.status!==401)return!1;const n=this.getHeader(t.headers,"www-authenticate");return n.includes("invalid_dpop_nonce")||n.includes("use_dpop_nonce")}async handleResponse(t,n){const r=this.getHeader(t.headers,"dpop-nonce");if(r&&await this.hooks.setDpopNonce(r),!this.hasUseDpopNonceError(t))return t;if(!r||!n.onUseDpopNonceError)throw new Gl(r);return n.onUseDpopNonceError()}async internalFetchWithAuth(t,n,r,s){const i=this.buildBaseRequest(t,n);await this.prepareRequest(i,s);const o=await this.config.fetch(i);return this.handleResponse(o,r)}fetchWithAuth(t,n,r){const s={onUseDpopNonceError:()=>this.internalFetchWithAuth(t,n,Object.assign(Object.assign({},s),{onUseDpopNonceError:void 0}),r)};return this.internalFetchWithAuth(t,n,s,r)}},um=class{constructor(t,n){this.myAccountFetcher=t,this.apiBase=n}async connectAccount(t){const n=await this.myAccountFetcher.fetchWithAuth(`${this.apiBase}v1/connected-accounts/connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return this._handleResponse(n)}async completeAccount(t){const n=await this.myAccountFetcher.fetchWithAuth(`${this.apiBase}v1/connected-accounts/complete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return this._handleResponse(n)}async _handleResponse(t){let n;try{n=await t.text(),n=JSON.parse(n)}catch(r){throw new lc({type:"invalid_json",status:t.status,title:"Invalid JSON response",detail:n||String(r)})}if(t.ok)return n;throw new lc(n)}},lc=class Bf extends Error{constructor({type:t,status:n,title:r,detail:s,validation_errors:i}){super(s),this.name="MyAccountApiError",this.type=t,this.status=n,this.title=r,this.detail=s,this.validation_errors=i,Object.setPrototypeOf(this,Bf.prototype)}};const Bi=new Lp;let fm=class{constructor(t){let n,r;if(this.userCache=new nc().enclosedCache,this.activeLockKeys=new Set,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{const l=Array.from(this.activeLockKeys);for(const u of l)await Bi.releaseLock(u);this.activeLockKeys.clear(),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(`
|
|
4
|
+
`],...Nd(n))}),t}function Nd({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${bl(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...Dd(e.props),i]:[s+i]}function Dd(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Ta(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Ta(e,t,n){return Se(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ve(t)?(t=Ta(e,te(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):G(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=te(t),n?t:[`${e}=`,t])}function Ln(e,t,n,r){try{return r?e(...r):e()}catch(s){is(s,t,n)}}function mt(e,t,n,r){if(G(e)){const s=Ln(e,t,n,r);return s&&Xo(s)&&s.catch(i=>{is(i,t,n)}),s}if(B(e)){const s=[];for(let i=0;i<e.length;i++)s.push(mt(e[i],t,n,r));return s}}function is(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||he;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(i){ht(),Ln(i,null,10,[e,l,u]),pt();return}}jd(e,n,s,r,o)}function jd(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ue=[];let gt=-1;const Rn=[];let Zt=null,$n=0;const Ea=Promise.resolve();let os=null;function sr(e){const t=os||Ea;return e?t.then(this?e.bind(this):e):t}function Md(e){let t=gt+1,n=Ue.length;for(;t<n;){const r=t+n>>>1,s=Ue[r],i=ir(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function mi(e){if(!(e.flags&1)){const t=ir(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=ir(n)?Ue.push(e):Ue.splice(Md(t),0,e),e.flags|=1,Ia()}}function Ia(){os||(os=Ea.then(Aa))}function Fd(e){B(e)?Rn.push(...e):Zt&&e.id===-1?Zt.splice($n+1,0,e):e.flags&1||(Rn.push(e),e.flags|=1),Ia()}function Ca(e,t,n=gt+1){for(;n<Ue.length;n++){const r=Ue[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ue.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Oa(e){if(Rn.length){const t=[...new Set(Rn)].sort((n,r)=>ir(n)-ir(r));if(Rn.length=0,Zt){Zt.push(...t);return}for(Zt=t,$n=0;$n<Zt.length;$n++){const n=Zt[$n];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Zt=null,$n=0}}const ir=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Aa(e){try{for(gt=0;gt<Ue.length;gt++){const t=Ue[gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ln(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;gt<Ue.length;gt++){const t=Ue[gt];t&&(t.flags&=-2)}gt=-1,Ue.length=0,Oa(),os=null,(Ue.length||Rn.length)&&Aa()}}let Ge=null,Pa=null;function as(e){const t=Ge;return Ge=e,Pa=e&&e.type.__scopeId||null,t}function Ud(e,t=Ge,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ds(-1);const i=as(t);let o;try{o=e(...s)}finally{as(i),r._d&&ds(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Kd(e,t){if(Ge===null)return e;const n=gs(Ge),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=he]=t[s];i&&(G(i)&&(i={mounted:i,updated:i}),i.deep&&$t(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function cn(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(ht(),mt(l,n,8,[e.el,a,e,t]),pt())}}function Wd(e,t){if(Me){let n=Me.provides;const r=Me.parent&&Me.parent.provides;r===n&&(n=Me.provides=Object.create(r)),n[e]=t}}function je(e,t,n=!1){const r=Ci();if(r||un){let s=un?un._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&G(t)?t.call(r&&r.proxy):t}}function Hd(){return!!(Ci()||un)}const zd=Symbol.for("v-scx"),Vd=()=>je(zd);function Ze(e,t,n){return La(e,t,n)}function La(e,t,n=he){const{immediate:r,deep:s,flush:i,once:o}=n,a=$e({},n),l=t&&r||!t&&i!=="post";let u;if(mr){if(i==="sync"){const h=Vd();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=dt,h.resume=dt,h.pause=dt,h}}const c=Me;a.call=(h,y,w)=>mt(h,c,y,w);let f=!1;i==="post"?a.scheduler=h=>{Xe(h,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(h,y)=>{y?h():mi(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Ld(e,t,a);return mr&&(u?u.push(d):l&&d()),d}function Bd(e,t,n){const r=this.proxy,s=Se(e)?e.includes(".")?Ra(r,e):()=>r[e]:e.bind(r,r);let i;G(t)?i=t:(i=t.handler,n=t);const o=pr(this),a=La(s,i.bind(r),n);return o(),a}function Ra(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Gd=Symbol("_vte"),Zd=e=>e.__isTeleport,Xd=Symbol("_leaveCb");function gi(e,t){e.shapeFlag&6&&e.component?(e.transition=t,gi(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function _t(e,t){return G(e)?$e({name:e.name},t,{setup:e}):e}function $a(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ls=new WeakMap;function or(e,t,n,r,s=!1){if(B(e)){e.forEach((y,w)=>or(y,t&&(B(t)?t[w]:t),n,r,s));return}if(ar(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&or(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?gs(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===he?a.refs={}:a.refs,f=a.setupState,d=te(f),h=f===he?Go:y=>le(d,y);if(u!=null&&u!==l){if(Na(t),Se(u))c[u]=null,h(u)&&(f[u]=null);else if(ve(u)){u.value=null;const y=t;y.k&&(c[y.k]=null)}}if(G(l))Ln(l,a,12,[o,c]);else{const y=Se(l),w=ve(l);if(y||w){const E=()=>{if(e.f){const _=y?h(l)?f[l]:c[l]:l.value;if(s)B(_)&&Js(_,i);else if(B(_))_.includes(i)||_.push(i);else if(y)c[l]=[i],h(l)&&(f[l]=c[l]);else{const v=[i];l.value=v,e.k&&(c[e.k]=v)}}else y?(c[l]=o,h(l)&&(f[l]=o)):w&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const _=()=>{E(),ls.delete(e)};_.id=-1,ls.set(e,_),Xe(_,n)}else Na(e),E()}}}function Na(e){const t=ls.get(e);t&&(t.flags|=8,ls.delete(e))}Gr().requestIdleCallback,Gr().cancelIdleCallback;const ar=e=>!!e.type.__asyncLoader,Da=e=>e.type.__isKeepAlive;function Yd(e,t){ja(e,"a",t)}function Jd(e,t){ja(e,"da",t)}function ja(e,t,n=Me){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(cs(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Da(s.parent.vnode)&&qd(r,t,n,s),s=s.parent}}function qd(e,t,n,r){const s=cs(t,e,r,!0);_i(()=>{Js(r[t],s)},n)}function cs(e,t,n=Me,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ht();const a=pr(n),l=mt(t,n,e,o);return a(),pt(),l});return r?s.unshift(i):s.push(i),i}}const Nt=e=>(t,n=Me)=>{(!mr||e==="sp")&&cs(e,(...r)=>t(...r),n)},Qd=Nt("bm"),Nn=Nt("m"),eh=Nt("bu"),th=Nt("u"),Ma=Nt("bum"),_i=Nt("um"),nh=Nt("sp"),rh=Nt("rtg"),sh=Nt("rtc");function ih(e,t=Me){cs("ec",e,t)}const oh="components";function ah(e,t){return ch(oh,e,!0,t)||e}const lh=Symbol.for("v-ndc");function ch(e,t,n=!0,r=!1){const s=Ge||Me;if(s){const i=s.type;{const a=_l(i,!1);if(a&&(a===t||a===Qe(t)||a===Vr(Qe(t))))return i}const o=Fa(s[e]||i[e],t)||Fa(s.appContext[e],t);return!o&&r?i:o}}function Fa(e,t){return e&&(e[t]||e[Qe(t)]||e[Vr(Qe(t))])}function Ua(e,t,n,r){let s;const i=n,o=B(e);if(o||Se(e)){const a=o&&Lt(e);let l=!1,u=!1;a&&(l=!Be(e),u=Rt(e),e=Yr(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Pn(it(e[c])):it(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(_e(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}const bi=e=>e?pl(e)?gs(e):bi(e.parent):null,lr=$e(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=>bi(e.parent),$root:e=>bi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>za(e),$forceUpdate:e=>e.f||(e.f=()=>{mi(e.update)}),$nextTick:e=>e.n||(e.n=sr.bind(e.proxy)),$watch:e=>Bd.bind(e)}),yi=(e,t)=>e!==he&&!e.__isScriptSetup&&le(e,t),uh={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(yi(r,t))return o[t]=1,r[t];if(s!==he&&le(s,t))return o[t]=2,s[t];if(le(i,t))return o[t]=3,i[t];if(n!==he&&le(n,t))return o[t]=4,n[t];wi&&(o[t]=0)}}const u=lr[t];let c,f;if(u)return t==="$attrs"&&De(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==he&&le(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,le(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return yi(s,t)?(s[t]=n,!0):r!==he&&le(r,t)?(r[t]=n,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let l;return!!(n[a]||e!==he&&a[0]!=="$"&&le(e,a)||yi(t,a)||le(i,a)||le(r,a)||le(lr,a)||le(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ka(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let wi=!0;function fh(e){const t=za(e),n=e.proxy,r=e.ctx;wi=!1,t.beforeCreate&&Wa(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:y,activated:w,deactivated:E,beforeDestroy:_,beforeUnmount:v,destroyed:T,unmounted:g,render:C,renderTracked:D,renderTriggered:P,errorCaptured:M,serverPrefetch:U,expose:Y,inheritAttrs:ee,components:Z,directives:ie,filters:pe}=t;if(u&&dh(u,r,null),o)for(const H in o){const ne=o[H];G(ne)&&(r[H]=ne.bind(n))}if(s){const H=s.call(n,n);_e(H)&&(e.data=es(H))}if(wi=!0,i)for(const H in i){const ne=i[H],xe=G(ne)?ne.bind(n,n):G(ne.get)?ne.get.bind(n,n):dt,ut=!G(ne)&&G(ne.set)?ne.set.bind(n):dt,Ve=et({get:xe,set:ut});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>Ve.value,set:Re=>Ve.value=Re})}if(a)for(const H in a)Ha(a[H],r,n,H);if(l){const H=G(l)?l.call(n):l;Reflect.ownKeys(H).forEach(ne=>{Wd(ne,H[ne])})}c&&Wa(c,e,"c");function ae(H,ne){B(ne)?ne.forEach(xe=>H(xe.bind(n))):ne&&H(ne.bind(n))}if(ae(Qd,f),ae(Nn,d),ae(eh,h),ae(th,y),ae(Yd,w),ae(Jd,E),ae(ih,M),ae(sh,D),ae(rh,P),ae(Ma,v),ae(_i,g),ae(nh,U),B(Y))if(Y.length){const H=e.exposed||(e.exposed={});Y.forEach(ne=>{Object.defineProperty(H,ne,{get:()=>n[ne],set:xe=>n[ne]=xe,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===dt&&(e.render=C),ee!=null&&(e.inheritAttrs=ee),Z&&(e.components=Z),ie&&(e.directives=ie),U&&$a(e)}function dh(e,t,n=dt){B(e)&&(e=vi(e));for(const r in e){const s=e[r];let i;_e(s)?"default"in s?i=je(s.from||r,s.default,!0):i=je(s.from||r):i=je(s),ve(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Wa(e,t,n){mt(B(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ha(e,t,n,r){let s=r.includes(".")?Ra(n,r):()=>n[r];if(Se(e)){const i=t[e];G(i)&&Ze(s,i)}else if(G(e))Ze(s,e.bind(n));else if(_e(e))if(B(e))e.forEach(i=>Ha(i,t,n,r));else{const i=G(e.handler)?e.handler.bind(n):t[e.handler];G(i)&&Ze(s,i,e)}}function za(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>us(l,u,o,!0)),us(l,t,o)),_e(t)&&i.set(t,l),l}function us(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&us(e,i,n,!0),s&&s.forEach(o=>us(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=hh[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const hh={data:Va,props:Ba,emits:Ba,methods:cr,computed:cr,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:cr,directives:cr,watch:mh,provide:Va,inject:ph};function Va(e,t){return t?e?function(){return $e(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function ph(e,t){return cr(vi(e),vi(t))}function vi(e){if(B(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ke(e,t){return e?[...new Set([].concat(e,t))]:t}function cr(e,t){return e?$e(Object.create(null),e,t):t}function Ba(e,t){return e?B(e)&&B(t)?[...new Set([...e,...t])]:$e(Object.create(null),Ka(e),Ka(t??{})):t}function mh(e,t){if(!e)return t;if(!t)return e;const n=$e(Object.create(null),e);for(const r in t)n[r]=Ke(e[r],t[r]);return n}function Ga(){return{app:null,config:{isNativeTag:Go,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 gh=0;function _h(e,t){return function(r,s=null){G(r)||(r=$e({},r)),s!=null&&!_e(s)&&(s=null);const i=Ga(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:gh++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Yh,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&G(c.install)?(o.add(c),c.install(u,...f)):G(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||Te(r,s);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,gs(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(mt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=un;un=u;try{return c()}finally{un=f}}};return u}}let un=null;const bh=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Qe(t)}Modifiers`]||e[`${Vt(t)}Modifiers`];function yh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const i=t.startsWith("update:"),o=i&&bh(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>Se(c)?c.trim():c)),o.number&&(s=n.map(Qs)));let a,l=r[a=qs(t)]||r[a=qs(Qe(t))];!l&&i&&(l=r[a=qs(Vt(t))]),l&&mt(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,mt(u,e,6,s)}}const wh=new WeakMap;function Za(e,t,n=!1){const r=n?wh:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!G(e)){const l=u=>{const c=Za(u,t,!0);c&&(a=!0,$e(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(_e(e)&&r.set(e,null),null):(B(i)?i.forEach(l=>o[l]=null):$e(o,i),_e(e)&&r.set(e,o),o)}function fs(e,t){return!e||!Kr(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,Vt(t))||le(e,t))}function Rk(){}function Xa(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:y,inheritAttrs:w}=e,E=as(e);let _,v;try{if(n.shapeFlag&4){const g=s||r,C=g;_=bt(u.call(C,g,c,f,h,d,y)),v=a}else{const g=t;_=bt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),v=t.props?a:vh(a)}}catch(g){fr.length=0,is(g,e,1),_=Te(Xt)}let T=_;if(v&&w!==!1){const g=Object.keys(v),{shapeFlag:C}=T;g.length&&C&7&&(i&&g.some(Ys)&&(v=kh(v,i)),T=Dn(T,v,!1,!0))}return n.dirs&&(T=Dn(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&gi(T,n.transition),_=T,as(E),_}const vh=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kr(n))&&((t||(t={}))[n]=e[n]);return t},kh=(e,t)=>{const n={};for(const r in e)(!Ys(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function xh(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ya(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!fs(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Ya(r,o,u):!0:!!o;return!1}function Ya(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!fs(n,i))return!0}return!1}function Sh({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ja={},qa=()=>Object.create(Ja),Qa=e=>Object.getPrototypeOf(e)===Ja;function Th(e,t,n,r=!1){const s={},i=qa();e.propsDefaults=Object.create(null),el(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:kd(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Eh(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=te(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(fs(e.emitsOptions,d))continue;const h=t[d];if(l)if(le(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const y=Qe(d);s[y]=ki(l,a,y,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{el(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!le(t,f)&&((c=Vt(f))===f||!le(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=ki(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!le(t,f))&&(delete i[f],u=!0)}u&&At(e.attrs,"set","")}function el(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Yn(l))continue;const u=t[l];let c;s&&le(s,c=Qe(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:fs(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=te(n),u=a||he;for(let c=0;c<i.length;c++){const f=i[c];n[f]=ki(s,l,f,u[f],e,!le(u,f))}}return o}function ki(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=le(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&G(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=pr(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===Vt(n))&&(r=!0))}return r}const Ih=new WeakMap;function tl(e,t,n=!1){const r=n?Ih:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!G(e)){const c=f=>{l=!0;const[d,h]=tl(f,t,!0);$e(o,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return _e(e)&&r.set(e,Cn),Cn;if(B(i))for(let c=0;c<i.length;c++){const f=Qe(i[c]);nl(f)&&(o[f]=he)}else if(i)for(const c in i){const f=Qe(c);if(nl(f)){const d=i[c],h=o[f]=B(d)||G(d)?{type:d}:$e({},d),y=h.type;let w=!1,E=!0;if(B(y))for(let _=0;_<y.length;++_){const v=y[_],T=G(v)&&v.name;if(T==="Boolean"){w=!0;break}else T==="String"&&(E=!1)}else w=G(y)&&y.name==="Boolean";h[0]=w,h[1]=E,(w||le(h,"default"))&&a.push(f)}}const u=[o,a];return _e(e)&&r.set(e,u),u}function nl(e){return e[0]!=="$"&&!Yn(e)}const xi=e=>e==="_"||e==="_ctx"||e==="$stable",Si=e=>B(e)?e.map(bt):[bt(e)],Ch=(e,t,n)=>{if(t._n)return t;const r=Ud((...s)=>Si(t(...s)),n);return r._c=!1,r},rl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(xi(s))continue;const i=e[s];if(G(i))t[s]=Ch(s,i,r);else if(i!=null){const o=Si(i);t[s]=()=>o}}},sl=(e,t)=>{const n=Si(t);e.slots.default=()=>n},il=(e,t,n)=>{for(const r in t)(n||!xi(r))&&(e[r]=t[r])},Oh=(e,t,n)=>{const r=e.slots=qa();if(e.vnode.shapeFlag&32){const s=t._;s?(il(r,t,n),n&&qo(r,"_",s,!0)):rl(t,r)}else t&&sl(e,t)},Ah=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=he;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:il(s,t,n):(i=!t.$stable,rl(t,s)),o=t}else t&&(sl(e,t),o={default:1});if(i)for(const a in s)!xi(a)&&o[a]==null&&delete s[a]},Xe=Nh;function Ph(e){return Lh(e)}function Lh(e,t){const n=Gr();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=dt,insertStaticContent:y}=e,w=(b,k,A,$=null,R=null,N=null,p=void 0,m=null,x=!!k.dynamicChildren)=>{if(b===k)return;b&&!hr(b,k)&&($=sn(b),Re(b,R,N,!0),b=null),k.patchFlag===-2&&(x=!1,k.dynamicChildren=null);const{type:I,ref:j,shapeFlag:L}=k;switch(I){case ur:E(b,k,A,$);break;case Xt:_(b,k,A,$);break;case Ei:b==null&&v(k,A,$,p);break;case Ce:Z(b,k,A,$,R,N,p,m,x);break;default:L&1?C(b,k,A,$,R,N,p,m,x):L&6?ie(b,k,A,$,R,N,p,m,x):(L&64||L&128)&&I.process(b,k,A,$,R,N,p,m,x,Ct)}j!=null&&R?or(j,b&&b.ref,N,k||b,!k):j==null&&b&&b.ref!=null&&or(b.ref,null,N,b,!0)},E=(b,k,A,$)=>{if(b==null)r(k.el=a(k.children),A,$);else{const R=k.el=b.el;k.children!==b.children&&u(R,k.children)}},_=(b,k,A,$)=>{b==null?r(k.el=l(k.children||""),A,$):k.el=b.el},v=(b,k,A,$)=>{[b.el,b.anchor]=y(b.children,k,A,$,b.el,b.anchor)},T=({el:b,anchor:k},A,$)=>{let R;for(;b&&b!==k;)R=d(b),r(b,A,$),b=R;r(k,A,$)},g=({el:b,anchor:k})=>{let A;for(;b&&b!==k;)A=d(b),s(b),b=A;s(k)},C=(b,k,A,$,R,N,p,m,x)=>{if(k.type==="svg"?p="svg":k.type==="math"&&(p="mathml"),b==null)D(k,A,$,R,N,p,m,x);else{const I=b.el&&b.el._isVueCE?b.el:null;try{I&&I._beginPatch(),U(b,k,R,N,p,m,x)}finally{I&&I._endPatch()}}},D=(b,k,A,$,R,N,p,m)=>{let x,I;const{props:j,shapeFlag:L,transition:S,dirs:O}=b;if(x=b.el=o(b.type,N,j&&j.is,j),L&8?c(x,b.children):L&16&&M(b.children,x,null,$,R,Ti(b,N),p,m),O&&cn(b,null,$,"created"),P(x,b,b.scopeId,p,$),j){for(const z in j)z!=="value"&&!Yn(z)&&i(x,z,null,j[z],N,$);"value"in j&&i(x,"value",null,j.value,N),(I=j.onVnodeBeforeMount)&&yt(I,$,b)}O&&cn(b,null,$,"beforeMount");const K=Rh(R,S);K&&S.beforeEnter(x),r(x,k,A),((I=j&&j.onVnodeMounted)||K||O)&&Xe(()=>{I&&yt(I,$,b),K&&S.enter(x),O&&cn(b,null,$,"mounted")},R)},P=(b,k,A,$,R)=>{if(A&&h(b,A),$)for(let N=0;N<$.length;N++)h(b,$[N]);if(R){let N=R.subTree;if(k===N||ul(N.type)&&(N.ssContent===k||N.ssFallback===k)){const p=R.vnode;P(b,p,p.scopeId,p.slotScopeIds,R.parent)}}},M=(b,k,A,$,R,N,p,m,x=0)=>{for(let I=x;I<b.length;I++){const j=b[I]=m?Jt(b[I]):bt(b[I]);w(null,j,k,A,$,R,N,p,m)}},U=(b,k,A,$,R,N,p)=>{const m=k.el=b.el;let{patchFlag:x,dynamicChildren:I,dirs:j}=k;x|=b.patchFlag&16;const L=b.props||he,S=k.props||he;let O;if(A&&fn(A,!1),(O=S.onVnodeBeforeUpdate)&&yt(O,A,k,b),j&&cn(k,b,A,"beforeUpdate"),A&&fn(A,!0),(L.innerHTML&&S.innerHTML==null||L.textContent&&S.textContent==null)&&c(m,""),I?Y(b.dynamicChildren,I,m,A,$,Ti(k,R),N):p||ne(b,k,m,null,A,$,Ti(k,R),N,!1),x>0){if(x&16)ee(m,L,S,A,R);else if(x&2&&L.class!==S.class&&i(m,"class",null,S.class,R),x&4&&i(m,"style",L.style,S.style,R),x&8){const K=k.dynamicProps;for(let z=0;z<K.length;z++){const Q=K[z],Pe=L[Q],Ee=S[Q];(Ee!==Pe||Q==="value")&&i(m,Q,Pe,Ee,R,A)}}x&1&&b.children!==k.children&&c(m,k.children)}else!p&&I==null&&ee(m,L,S,A,R);((O=S.onVnodeUpdated)||j)&&Xe(()=>{O&&yt(O,A,k,b),j&&cn(k,b,A,"updated")},$)},Y=(b,k,A,$,R,N,p)=>{for(let m=0;m<k.length;m++){const x=b[m],I=k[m],j=x.el&&(x.type===Ce||!hr(x,I)||x.shapeFlag&198)?f(x.el):A;w(x,I,j,null,$,R,N,p,!0)}},ee=(b,k,A,$,R)=>{if(k!==A){if(k!==he)for(const N in k)!Yn(N)&&!(N in A)&&i(b,N,k[N],null,R,$);for(const N in A){if(Yn(N))continue;const p=A[N],m=k[N];p!==m&&N!=="value"&&i(b,N,m,p,R,$)}"value"in A&&i(b,"value",k.value,A.value,R)}},Z=(b,k,A,$,R,N,p,m,x)=>{const I=k.el=b?b.el:a(""),j=k.anchor=b?b.anchor:a("");let{patchFlag:L,dynamicChildren:S,slotScopeIds:O}=k;O&&(m=m?m.concat(O):O),b==null?(r(I,A,$),r(j,A,$),M(k.children||[],A,j,R,N,p,m,x)):L>0&&L&64&&S&&b.dynamicChildren&&b.dynamicChildren.length===S.length?(Y(b.dynamicChildren,S,A,R,N,p,m),(k.key!=null||R&&k===R.subTree)&&ol(b,k,!0)):ne(b,k,A,j,R,N,p,m,x)},ie=(b,k,A,$,R,N,p,m,x)=>{k.slotScopeIds=m,b==null?k.shapeFlag&512?R.ctx.activate(k,A,$,p,x):pe(k,A,$,R,N,p,x):He(b,k,x)},pe=(b,k,A,$,R,N,p)=>{const m=b.component=Wh(b,$,R);if(Da(b)&&(m.ctx.renderer=Ct),Hh(m,!1,p),m.asyncDep){if(R&&R.registerDep(m,ae,p),!b.el){const x=m.subTree=Te(Xt);_(null,x,k,A),b.placeholder=x.el}}else ae(m,b,k,A,R,N,p)},He=(b,k,A)=>{const $=k.component=b.component;if(xh(b,k,A))if($.asyncDep&&!$.asyncResolved){H($,k,A);return}else $.next=k,$.update();else k.el=b.el,$.vnode=k},ae=(b,k,A,$,R,N,p)=>{const m=()=>{if(b.isMounted){let{next:L,bu:S,u:O,parent:K,vnode:z}=b;{const ft=al(b);if(ft){L&&(L.el=z.el,H(b,L,p)),ft.asyncDep.then(()=>{b.isUnmounted||m()});return}}let Q=L,Pe;fn(b,!1),L?(L.el=z.el,H(b,L,p)):L=z,S&&Br(S),(Pe=L.props&&L.props.onVnodeBeforeUpdate)&&yt(Pe,K,L,z),fn(b,!0);const Ee=Xa(b),rt=b.subTree;b.subTree=Ee,w(rt,Ee,f(rt.el),sn(rt),b,R,N),L.el=Ee.el,Q===null&&Sh(b,Ee.el),O&&Xe(O,R),(Pe=L.props&&L.props.onVnodeUpdated)&&Xe(()=>yt(Pe,K,L,z),R)}else{let L;const{el:S,props:O}=k,{bm:K,m:z,parent:Q,root:Pe,type:Ee}=b,rt=ar(k);fn(b,!1),K&&Br(K),!rt&&(L=O&&O.onVnodeBeforeMount)&&yt(L,Q,k),fn(b,!0);{Pe.ce&&Pe.ce._def.shadowRoot!==!1&&Pe.ce._injectChildStyle(Ee);const ft=b.subTree=Xa(b);w(null,ft,A,$,b,R,N),k.el=ft.el}if(z&&Xe(z,R),!rt&&(L=O&&O.onVnodeMounted)){const ft=k;Xe(()=>yt(L,Q,ft),R)}(k.shapeFlag&256||Q&&ar(Q.vnode)&&Q.vnode.shapeFlag&256)&&b.a&&Xe(b.a,R),b.isMounted=!0,k=A=$=null}};b.scope.on();const x=b.effect=new ia(m);b.scope.off();const I=b.update=x.run.bind(x),j=b.job=x.runIfDirty.bind(x);j.i=b,j.id=b.uid,x.scheduler=()=>mi(j),fn(b,!0),I()},H=(b,k,A)=>{k.component=b;const $=b.vnode.props;b.vnode=k,b.next=null,Eh(b,k.props,$,A),Ah(b,k.children,A),ht(),Ca(b),pt()},ne=(b,k,A,$,R,N,p,m,x=!1)=>{const I=b&&b.children,j=b?b.shapeFlag:0,L=k.children,{patchFlag:S,shapeFlag:O}=k;if(S>0){if(S&128){ut(I,L,A,$,R,N,p,m,x);return}else if(S&256){xe(I,L,A,$,R,N,p,m,x);return}}O&8?(j&16&&nt(I,R,N),L!==I&&c(A,L)):j&16?O&16?ut(I,L,A,$,R,N,p,m,x):nt(I,R,N,!0):(j&8&&c(A,""),O&16&&M(L,A,$,R,N,p,m,x))},xe=(b,k,A,$,R,N,p,m,x)=>{b=b||Cn,k=k||Cn;const I=b.length,j=k.length,L=Math.min(I,j);let S;for(S=0;S<L;S++){const O=k[S]=x?Jt(k[S]):bt(k[S]);w(b[S],O,A,null,R,N,p,m,x)}I>j?nt(b,R,N,!0,!1,L):M(k,A,$,R,N,p,m,x,L)},ut=(b,k,A,$,R,N,p,m,x)=>{let I=0;const j=k.length;let L=b.length-1,S=j-1;for(;I<=L&&I<=S;){const O=b[I],K=k[I]=x?Jt(k[I]):bt(k[I]);if(hr(O,K))w(O,K,A,null,R,N,p,m,x);else break;I++}for(;I<=L&&I<=S;){const O=b[L],K=k[S]=x?Jt(k[S]):bt(k[S]);if(hr(O,K))w(O,K,A,null,R,N,p,m,x);else break;L--,S--}if(I>L){if(I<=S){const O=S+1,K=O<j?k[O].el:$;for(;I<=S;)w(null,k[I]=x?Jt(k[I]):bt(k[I]),A,K,R,N,p,m,x),I++}}else if(I>S)for(;I<=L;)Re(b[I],R,N,!0),I++;else{const O=I,K=I,z=new Map;for(I=K;I<=S;I++){const qe=k[I]=x?Jt(k[I]):bt(k[I]);qe.key!=null&&z.set(qe.key,I)}let Q,Pe=0;const Ee=S-K+1;let rt=!1,ft=0;const Ur=new Array(Ee);for(I=0;I<Ee;I++)Ur[I]=0;for(I=O;I<=L;I++){const qe=b[I];if(Pe>=Ee){Re(qe,R,N,!0);continue}let Ot;if(qe.key!=null)Ot=z.get(qe.key);else for(Q=K;Q<=S;Q++)if(Ur[Q-K]===0&&hr(qe,k[Q])){Ot=Q;break}Ot===void 0?Re(qe,R,N,!0):(Ur[Ot-K]=I+1,Ot>=ft?ft=Ot:rt=!0,w(qe,k[Ot],A,null,R,N,p,m,x),Pe++)}const Nf=rt?$h(Ur):Cn;for(Q=Nf.length-1,I=Ee-1;I>=0;I--){const qe=K+I,Ot=k[qe],Df=k[qe+1],jf=qe+1<j?Df.el||cl(Df):$;Ur[I]===0?w(null,Ot,A,jf,R,N,p,m,x):rt&&(Q<0||I!==Nf[Q]?Ve(Ot,A,jf,2):Q--)}}},Ve=(b,k,A,$,R=null)=>{const{el:N,type:p,transition:m,children:x,shapeFlag:I}=b;if(I&6){Ve(b.component.subTree,k,A,$);return}if(I&128){b.suspense.move(k,A,$);return}if(I&64){p.move(b,k,A,Ct);return}if(p===Ce){r(N,k,A);for(let L=0;L<x.length;L++)Ve(x[L],k,A,$);r(b.anchor,k,A);return}if(p===Ei){T(b,k,A);return}if($!==2&&I&1&&m)if($===0)m.beforeEnter(N),r(N,k,A),Xe(()=>m.enter(N),R);else{const{leave:L,delayLeave:S,afterLeave:O}=m,K=()=>{b.ctx.isUnmounted?s(N):r(N,k,A)},z=()=>{N._isLeaving&&N[Xd](!0),L(N,()=>{K(),O&&O()})};S?S(N,K,z):z()}else r(N,k,A)},Re=(b,k,A,$=!1,R=!1)=>{const{type:N,props:p,ref:m,children:x,dynamicChildren:I,shapeFlag:j,patchFlag:L,dirs:S,cacheIndex:O}=b;if(L===-2&&(R=!1),m!=null&&(ht(),or(m,null,A,b,!0),pt()),O!=null&&(k.renderCache[O]=void 0),j&256){k.ctx.deactivate(b);return}const K=j&1&&S,z=!ar(b);let Q;if(z&&(Q=p&&p.onVnodeBeforeUnmount)&&yt(Q,k,b),j&6)In(b.component,A,$);else{if(j&128){b.suspense.unmount(A,$);return}K&&cn(b,null,k,"beforeUnmount"),j&64?b.type.remove(b,k,A,Ct,$):I&&!I.hasOnce&&(N!==Ce||L>0&&L&64)?nt(I,k,A,!1,!0):(N===Ce&&L&384||!R&&j&16)&&nt(x,k,A),$&&It(b)}(z&&(Q=p&&p.onVnodeUnmounted)||K)&&Xe(()=>{Q&&yt(Q,k,b),K&&cn(b,null,k,"unmounted")},A)},It=b=>{const{type:k,el:A,anchor:$,transition:R}=b;if(k===Ce){rn(A,$);return}if(k===Ei){g(b);return}const N=()=>{s(A),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:p,delayLeave:m}=R,x=()=>p(A,N);m?m(b.el,N,x):x()}else N()},rn=(b,k)=>{let A;for(;b!==k;)A=d(b),s(b),b=A;s(k)},In=(b,k,A)=>{const{bum:$,scope:R,job:N,subTree:p,um:m,m:x,a:I}=b;ll(x),ll(I),$&&Br($),R.stop(),N&&(N.flags|=8,Re(p,b,k,A)),m&&Xe(m,k),Xe(()=>{b.isUnmounted=!0},k)},nt=(b,k,A,$=!1,R=!1,N=0)=>{for(let p=N;p<b.length;p++)Re(b[p],k,A,$,R)},sn=b=>{if(b.shapeFlag&6)return sn(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const k=d(b.anchor||b.el),A=k&&k[Gd];return A?d(A):k};let on=!1;const Xn=(b,k,A)=>{let $;b==null?k._vnode&&(Re(k._vnode,null,null,!0),$=k._vnode.component):w(k._vnode||null,b,k,null,null,null,A),k._vnode=b,on||(on=!0,Ca($),Oa(),on=!1)},Ct={p:w,um:Re,m:Ve,r:It,mt:pe,mc:M,pc:ne,pbc:Y,n:sn,o:e};return{render:Xn,hydrate:void 0,createApp:_h(Xn)}}function Ti({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function fn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rh(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ol(e,t,n=!1){const r=e.children,s=t.children;if(B(r)&&B(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Jt(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&ol(o,a)),a.type===ur&&(a.patchFlag!==-1?a.el=o.el:a.__elIndex=i+(e.type===Ce?1:0)),a.type===Xt&&!a.el&&(a.el=o.el)}}function $h(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function al(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:al(t)}function ll(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function cl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?cl(t.subTree):null}const ul=e=>e.__isSuspense;function Nh(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):Fd(e)}const Ce=Symbol.for("v-fgt"),ur=Symbol.for("v-txt"),Xt=Symbol.for("v-cmt"),Ei=Symbol.for("v-stc"),fr=[];let Ye=null;function V(e=!1){fr.push(Ye=e?null:[])}function Dh(){fr.pop(),Ye=fr[fr.length-1]||null}let dr=1;function ds(e,t=!1){dr+=e,e<0&&Ye&&t&&(Ye.hasOnce=!0)}function fl(e){return e.dynamicChildren=dr>0?Ye||Cn:null,Dh(),dr>0&&Ye&&Ye.push(e),e}function X(e,t,n,r,s,i){return fl(ce(e,t,n,r,s,i,!0))}function Yt(e,t,n,r,s){return fl(Te(e,t,n,r,s,!0))}function hs(e){return e?e.__v_isVNode===!0:!1}function hr(e,t){return e.type===t.type&&e.key===t.key}const dl=({key:e})=>e??null,ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||ve(e)||G(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function ce(e,t=null,n=null,r=0,s=null,i=e===Ce?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dl(t),ref:t&&ps(t),scopeId:Pa,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ge};return a?(Ii(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Se(n)?8:16),dr>0&&!o&&Ye&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ye.push(l),l}const Te=jh;function jh(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===lh)&&(e=Xt),hs(e)){const a=Dn(e,t,!0);return n&&Ii(a,n),dr>0&&!i&&Ye&&(a.shapeFlag&6?Ye[Ye.indexOf(e)]=a:Ye.push(a)),a.patchFlag=-2,a}if(Xh(e)&&(e=e.__vccOpts),t){t=Mh(t);let{class:a,style:l}=t;a&&!Se(a)&&(t.class=Jn(a)),_e(l)&&(ns(l)&&!B(l)&&(l=$e({},l)),t.style=Zr(l))}const o=Se(e)?1:ul(e)?128:Zd(e)?64:_e(e)?4:G(e)?2:0;return ce(e,t,n,r,s,o,i,!0)}function Mh(e){return e?ns(e)||Qa(e)?$e({},e):e:null}function Dn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?Fh(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&dl(u),ref:t&&t.ref?n&&i?B(i)?i.concat(ps(t)):[i,ps(t)]:ps(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dn(e.ssContent),ssFallback:e.ssFallback&&Dn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&gi(c,l.clone(c)),c}function dn(e=" ",t=0){return Te(ur,null,e,t)}function Le(e="",t=!1){return t?(V(),Yt(Xt,null,e)):Te(Xt,null,e)}function bt(e){return e==null||typeof e=="boolean"?Te(Xt):B(e)?Te(Ce,null,e.slice()):hs(e)?Jt(e):Te(ur,null,String(e))}function Jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Dn(e)}function Ii(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ii(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Qa(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Ge},n=32):(t=String(t),r&64?(n=16,t=[dn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fh(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Jn([t.class,r.class]));else if(s==="style")t.style=Zr([t.style,r.style]);else if(Kr(s)){const i=t[s],o=r[s];o&&i!==o&&!(B(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function yt(e,t,n,r=null){mt(e,t,7,[n,r])}const Uh=Ga();let Kh=0;function Wh(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Uh,i={uid:Kh++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ra(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tl(r,s),emitsOptions:Za(r,s),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=yh.bind(null,i),e.ce&&e.ce(i),i}let Me=null;const Ci=()=>Me||Ge;let ms,Oi;{const e=Gr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};ms=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),Oi=t("__VUE_SSR_SETTERS__",n=>mr=n)}const pr=e=>{const t=Me;return ms(e),e.scope.on(),()=>{e.scope.off(),ms(t)}},hl=()=>{Me&&Me.scope.off(),ms(null)};function pl(e){return e.vnode.shapeFlag&4}let mr=!1;function Hh(e,t=!1,n=!1){t&&Oi(t);const{props:r,children:s}=e.vnode,i=pl(e);Th(e,r,i,t),Oh(e,s,n||t);const o=i?zh(e,t):void 0;return t&&Oi(!1),o}function zh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uh);const{setup:r}=n;if(r){ht();const s=e.setupContext=r.length>1?Bh(e):null,i=pr(e),o=Ln(r,e,0,[e.props,s]),a=Xo(o);if(pt(),i(),(a||e.sp)&&!ar(e)&&$a(e),a){if(o.then(hl,hl),t)return o.then(l=>{ml(e,l)}).catch(l=>{is(l,e,0)});e.asyncDep=o}else ml(e,o)}else gl(e)}function ml(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=Sa(t)),gl(e)}function gl(e,t,n){const r=e.type;e.render||(e.render=r.render||dt);{const s=pr(e);ht();try{fh(e)}finally{pt(),s()}}}const Vh={get(e,t){return De(e,"get",""),e[t]}};function Bh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Vh),slots:e.slots,emit:e.emit,expose:t}}function gs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sa(hi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lr)return lr[n](e)},has(t,n){return n in t||n in lr}})):e.proxy}const Gh=/(?:^|[-_])\w/g,Zh=e=>e.replace(Gh,t=>t.toUpperCase()).replace(/[-_]/g,"");function _l(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function bl(e,t,n=!1){let r=_l(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return r?Zh(r):n?"App":"Anonymous"}function Xh(e){return G(e)&&"__vccOpts"in e}const et=(e,t)=>Ad(e,t,mr);function gr(e,t,n){try{ds(-1);const r=arguments.length;return r===2?_e(t)&&!B(t)?hs(t)?Te(e,null,[t]):Te(e,t):Te(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&hs(n)&&(n=[n]),Te(e,t,n))}finally{ds(1)}}const Yh="3.5.26";let Ai;const yl=typeof window<"u"&&window.trustedTypes;if(yl)try{Ai=yl.createPolicy("vue",{createHTML:e=>e})}catch{}const wl=Ai?e=>Ai.createHTML(e):e=>e,Jh="http://www.w3.org/2000/svg",qh="http://www.w3.org/1998/Math/MathML",Dt=typeof document<"u"?document:null,vl=Dt&&Dt.createElement("template"),Qh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Dt.createElementNS(Jh,e):t==="mathml"?Dt.createElementNS(qh,e):n?Dt.createElement(e,{is:n}):Dt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{vl.innerHTML=wl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=vl.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ep=Symbol("_vtc");function tp(e,t,n){const r=e[ep];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const kl=Symbol("_vod"),np=Symbol("_vsh"),rp=Symbol(""),sp=/(?:^|;)\s*display\s*:/;function ip(e,t,n){const r=e.style,s=Se(n);let i=!1;if(n&&!s){if(t)if(Se(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&_s(r,a,"")}else for(const o in t)n[o]==null&&_s(r,o,"");for(const o in n)o==="display"&&(i=!0),_s(r,o,n[o])}else if(s){if(t!==n){const o=r[rp];o&&(n+=";"+o),r.cssText=n,i=sp.test(n)}}else t&&e.removeAttribute("style");kl in e&&(e[kl]=i?r.display:"",e[np]&&(r.display="none"))}const xl=/\s*!important$/;function _s(e,t,n){if(B(n))n.forEach(r=>_s(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=op(e,t);xl.test(n)?e.setProperty(Vt(r),n.replace(xl,""),"important"):e[r]=n}}const Sl=["Webkit","Moz","ms"],Pi={};function op(e,t){const n=Pi[t];if(n)return n;let r=Qe(t);if(r!=="filter"&&r in e)return Pi[t]=r;r=Vr(r);for(let s=0;s<Sl.length;s++){const i=Sl[s]+r;if(i in e)return Pi[t]=i}return t}const Tl="http://www.w3.org/1999/xlink";function El(e,t,n,r,s,i=td(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Tl,t.slice(6,t.length)):e.setAttributeNS(Tl,t,n):n==null||i&&!ea(n)?e.removeAttribute(t):e.setAttribute(t,i?"":zt(n)?String(n):n)}function Il(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?wl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=ea(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function jn(e,t,n,r){e.addEventListener(t,n,r)}function ap(e,t,n,r){e.removeEventListener(t,n,r)}const Cl=Symbol("_vei");function lp(e,t,n,r,s=null){const i=e[Cl]||(e[Cl]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=cp(t);if(r){const u=i[t]=dp(r,s);jn(e,a,u,l)}else o&&(ap(e,a,o,l),i[t]=void 0)}}const Ol=/(?:Once|Passive|Capture)$/;function cp(e){let t;if(Ol.test(e)){t={};let r;for(;r=e.match(Ol);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Vt(e.slice(2)),t]}let Li=0;const up=Promise.resolve(),fp=()=>Li||(up.then(()=>Li=0),Li=Date.now());function dp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;mt(hp(r,n.value),t,5,[r])};return n.value=e,n.attached=fp(),n}function hp(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Al=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pp=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?tp(e,r,o):t==="style"?ip(e,n,r):Kr(t)?Ys(t)||lp(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mp(e,t,r,o))?(Il(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&El(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Se(r))?Il(e,Qe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),El(e,t,r,o))};function mp(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Al(t)&&G(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Al(t)&&Se(n)?!1:t in e}const Pl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Br(t,n):t};function gp(e){e.target.composing=!0}function Ll(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ri=Symbol("_assign");function Rl(e,t,n){return t&&(e=e.trim()),n&&(e=Qs(e)),e}const _p={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ri]=Pl(s);const i=r||s.props&&s.props.type==="number";jn(e,t?"change":"input",o=>{o.target.composing||e[Ri](Rl(e.value,n,i))}),(n||i)&&jn(e,"change",()=>{e.value=Rl(e.value,n,i)}),t||(jn(e,"compositionstart",gp),jn(e,"compositionend",Ll),jn(e,"change",Ll))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Ri]=Pl(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Qs(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},bp=["ctrl","shift","alt","meta"],yp={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)=>bp.some(n=>e[`${n}Key`]&&!t.includes(n))},$i=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=yp[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},wp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$l=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=Vt(s.key);if(t.some(o=>o===i||wp[o]===i))return e(s)}))},vp=$e({patchProp:pp},Qh);let Nl;function kp(){return Nl||(Nl=Ph(vp))}const xp=((...e)=>{const t=kp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Tp(r);if(!s)return;const i=t._component;!G(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Sp(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function Sp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Tp(e){return Se(e)?document.querySelector(e):e}let Dl;const bs=e=>Dl=e,jl=Symbol();function Ni(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var _r;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(_r||(_r={}));function Ep(){const e=ti(!0),t=e.run(()=>J({}));let n=[],r=[];const s=hi({install(i){bs(s),s._a=i,i.provide(jl,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Ml=()=>{};function Fl(e,t,n,r=Ml){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&sa()&&nd(s),s}function Mn(e,...t){e.forEach(n=>{n(...t)})}const Ip=e=>e(),Ul=Symbol(),Di=Symbol();function ji(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Ni(s)&&Ni(r)&&e.hasOwnProperty(n)&&!ve(r)&&!Lt(r)?e[n]=ji(s,r):e[n]=r}return e}const Cp=Symbol();function Op(e){return!Ni(e)||!Object.prototype.hasOwnProperty.call(e,Cp)}const{assign:qt}=Object;function Ap(e){return!!(ve(e)&&e.effect)}function Pp(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=Ed(n.state.value[e]);return qt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=hi(et(()=>{bs(n);const h=n._s.get(e);return o[d].call(h,h)})),f),{}))}return l=Kl(e,u,t,n,r,!0),l}function Kl(e,t,n={},r,s,i){let o;const a=qt({actions:{}},n),l={deep:!0};let u,c,f=new Set,d=new Set,h;const y=r.state.value[e];!i&&!y&&(r.state.value[e]={}),J({});let w;function E(M){let U;u=c=!1,typeof M=="function"?(M(r.state.value[e]),U={type:_r.patchFunction,storeId:e,events:h}):(ji(r.state.value[e],M),U={type:_r.patchObject,payload:M,storeId:e,events:h});const Y=w=Symbol();sr().then(()=>{w===Y&&(u=!0)}),c=!0,Mn(f,U,r.state.value[e])}const _=i?function(){const{state:U}=n,Y=U?U():{};this.$patch(ee=>{qt(ee,Y)})}:Ml;function v(){o.stop(),f.clear(),d.clear(),r._s.delete(e)}const T=(M,U="")=>{if(Ul in M)return M[Di]=U,M;const Y=function(){bs(r);const ee=Array.from(arguments),Z=new Set,ie=new Set;function pe(H){Z.add(H)}function He(H){ie.add(H)}Mn(d,{args:ee,name:Y[Di],store:C,after:pe,onError:He});let ae;try{ae=M.apply(this&&this.$id===e?this:C,ee)}catch(H){throw Mn(ie,H),H}return ae instanceof Promise?ae.then(H=>(Mn(Z,H),H)).catch(H=>(Mn(ie,H),Promise.reject(H))):(Mn(Z,ae),ae)};return Y[Ul]=!0,Y[Di]=U,Y},g={_p:r,$id:e,$onAction:Fl.bind(null,d),$patch:E,$reset:_,$subscribe(M,U={}){const Y=Fl(f,M,U.detached,()=>ee()),ee=o.run(()=>Ze(()=>r.state.value[e],Z=>{(U.flush==="sync"?c:u)&&M({storeId:e,type:_r.direct,events:h},Z)},qt({},l,U)));return Y},$dispose:v},C=es(g);r._s.set(e,C);const P=(r._a&&r._a.runWithContext||Ip)(()=>r._e.run(()=>(o=ti()).run(()=>t({action:T}))));for(const M in P){const U=P[M];if(ve(U)&&!Ap(U)||Lt(U))i||(y&&Op(U)&&(ve(U)?U.value=y[M]:ji(U,y[M])),r.state.value[e][M]=U);else if(typeof U=="function"){const Y=T(U,M);P[M]=Y,a.actions[M]=U}}return qt(C,P),qt(te(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:M=>{E(U=>{qt(U,M)})}}),r._p.forEach(M=>{qt(C,o.run(()=>M({store:C,app:r._a,pinia:r,options:a})))}),y&&i&&n.hydrate&&n.hydrate(C.$state,y),u=!0,c=!0,C}function Wl(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,a){const l=Hd();return o=o||(l?je(jl,null):null),o&&bs(o),o=Dl,o._s.has(e)||(s?Kl(e,t,r,o):Pp(e,r,o)),o._s.get(e)}return i.$id=e,i}const Hl=Symbol("$auth0");function wt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}typeof SuppressedError=="function"&&SuppressedError;var hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fi(e,t){return e(t={exports:{}},t.exports),t.exports}var pn=Fi((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=(function(){function r(){var s=this;this.locked=new Map,this.addToLocked=function(i,o){var a=s.locked.get(i);a===void 0?o===void 0?s.locked.set(i,[]):s.locked.set(i,[o]):o!==void 0&&(a.unshift(o),s.locked.set(i,a))},this.isLocked=function(i){return s.locked.has(i)},this.lock=function(i){return new Promise((function(o,a){s.isLocked(i)?s.addToLocked(i,o):(s.addToLocked(i),o())}))},this.unlock=function(i){var o=s.locked.get(i);if(o!==void 0&&o.length!==0){var a=o.pop();s.locked.set(i,o),a!==void 0&&setTimeout(a,0)}else s.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r})();t.default=function(){return n.getInstance()}}));Mi(pn);var Lp=Mi(Fi((function(e,t){var n=hn&&hn.__awaiter||function(c,f,d,h){return new(d||(d=Promise))((function(y,w){function E(T){try{v(h.next(T))}catch(g){w(g)}}function _(T){try{v(h.throw(T))}catch(g){w(g)}}function v(T){T.done?y(T.value):new d((function(g){g(T.value)})).then(E,_)}v((h=h.apply(c,f||[])).next())}))},r=hn&&hn.__generator||function(c,f){var d,h,y,w,E={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return w={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function _(v){return function(T){return(function(g){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,h&&(y=2&g[0]?h.return:g[0]?h.throw||((y=h.return)&&y.call(h),0):h.next)&&!(y=y.call(h,g[1])).done)return y;switch(h=0,y&&(g=[2&g[0],y.value]),g[0]){case 0:case 1:y=g;break;case 4:return E.label++,{value:g[1],done:!1};case 5:E.label++,h=g[1],g=[0];continue;case 7:g=E.ops.pop(),E.trys.pop();continue;default:if(!((y=(y=E.trys).length>0&&y[y.length-1])||g[0]!==6&&g[0]!==2)){E=0;continue}if(g[0]===3&&(!y||g[1]>y[0]&&g[1]<y[3])){E.label=g[1];break}if(g[0]===6&&E.label<y[1]){E.label=y[1],y=g;break}if(y&&E.label<y[2]){E.label=y[2],E.ops.push(g);break}y[2]&&E.ops.pop(),E.trys.pop();continue}g=f.call(c,E)}catch(C){g=[6,C],h=0}finally{d=y=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}})([v,T])}}},s=hn;Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(c){return n(s,void 0,void 0,(function(){return r(this,(function(f){throw new Error("Unsupported")}))}))},getItem:function(c){return n(s,void 0,void 0,(function(){return r(this,(function(f){throw new Error("Unsupported")}))}))},clear:function(){return n(s,void 0,void 0,(function(){return r(this,(function(c){return[2,window.localStorage.clear()]}))}))},removeItem:function(c){return n(s,void 0,void 0,(function(){return r(this,(function(f){throw new Error("Unsupported")}))}))},setItem:function(c,f){return n(s,void 0,void 0,(function(){return r(this,(function(d){throw new Error("Unsupported")}))}))},keySync:function(c){return window.localStorage.key(c)},getItemSync:function(c){return window.localStorage.getItem(c)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(c){return window.localStorage.removeItem(c)},setItemSync:function(c,f){return window.localStorage.setItem(c,f)}};function a(c){return new Promise((function(f){return setTimeout(f,c)}))}function l(c){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",h=0;h<c;h++)d+=f[Math.floor(Math.random()*f.length)];return d}var u=(function(){function c(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=f,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,(function(){var h,y,w,E,_,v,T;return r(this,(function(g){switch(g.label){case 0:h=Date.now()+l(4),y=Date.now()+d,w=i+"-"+f,E=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<y?[4,a(30)]:[3,8];case 2:return g.sent(),E.getItemSync(w)!==null?[3,5]:(_=this.id+"-"+f+"-"+h,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),E.setItemSync(w,JSON.stringify({id:this.id,iat:h,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(v=E.getItemSync(w))!==null&&(T=JSON.parse(v)).id===this.id&&T.iat===h?(this.acquiredIatSet.add(h),this.refreshLockWhileAcquired(w,h),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(y)];case 6:g.sent(),g.label=7;case 7:return h=Date.now()+l(4),[3,1];case 8:return[2,!1]}}))}))},c.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,(function(){var h=this;return r(this,(function(y){return setTimeout((function(){return n(h,void 0,void 0,(function(){var w,E,_;return r(this,(function(v){switch(v.label){case 0:return[4,pn.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(w=this.storageHandler===void 0?o:this.storageHandler,(E=w.getItemSync(f))===null?(pn.default().unlock(d),[2]):((_=JSON.parse(E)).timeRefreshed=Date.now(),w.setItemSync(f,JSON.stringify(_)),pn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(pn.default().unlock(d),[2])}}))}))}),1e3),[2]}))}))},c.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,(function(){return r(this,(function(d){switch(d.label){case 0:return[4,new Promise((function(h){var y=!1,w=Date.now(),E=!1;function _(){if(E||(window.removeEventListener("storage",_),c.removeFromWaiting(_),clearTimeout(v),E=!0),!y){y=!0;var T=50-(Date.now()-w);T>0?setTimeout(h,T):h(null)}}window.addEventListener("storage",_),c.addToWaiting(_);var v=setTimeout(_,Math.max(0,f-Date.now()))}))];case 1:return d.sent(),[2]}}))}))},c.addToWaiting=function(f){this.removeFromWaiting(f),c.waiters!==void 0&&c.waiters.push(f)},c.removeFromWaiting=function(f){c.waiters!==void 0&&(c.waiters=c.waiters.filter((function(d){return d!==f})))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach((function(f){return f()}))},c.prototype.releaseLock=function(f){return n(this,void 0,void 0,(function(){return r(this,(function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}}))}))},c.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,(function(){var d,h,y,w;return r(this,(function(E){switch(E.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,h=i+"-"+f,(y=d.getItemSync(h))===null?[2]:(w=JSON.parse(y)).id!==this.id?[3,2]:[4,pn.default().lock(w.iat)];case 1:E.sent(),this.acquiredIatSet.delete(w.iat),d.removeItemSync(h),pn.default().unlock(w.iat),c.notifyWaiters(),E.label=2;case 2:return[2]}}))}))},c.lockCorrector=function(f){for(var d=Date.now()-5e3,h=f,y=[],w=0;;){var E=h.keySync(w);if(E===null)break;y.push(E),w++}for(var _=!1,v=0;v<y.length;v++){var T=y[v];if(T.includes(i)){var g=h.getItemSync(T);if(g!==null){var C=JSON.parse(g);(C.timeRefreshed===void 0&&C.timeAcquired<d||C.timeRefreshed!==void 0&&C.timeRefreshed<d)&&(h.removeItemSync(T),_=!0)}}}_&&c.notifyWaiters()},c.waiters=void 0,c})();t.default=u})));const Rp={timeoutInSeconds:60},zl={name:"auth0-spa-js",version:"2.10.0"},Vl=()=>Date.now();let Oe=class Ho extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ho.prototype)}static fromPayload({error:t,error_description:n}){return new Ho(t,n)}},$p=class Mf extends Oe{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Mf.prototype)}};class Ui extends Oe{constructor(t,n,r,s,i=null){super(t,n),this.connection=r,this.state=s,this.appState=i,Object.setPrototypeOf(this,Ui.prototype)}}class br extends Oe{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,br.prototype)}}let Np=class Ff extends br{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Ff.prototype)}},Dp=class Uf extends Oe{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Uf.prototype)}},jp=class Kf extends Oe{constructor(){super("popup_open","Unable to open a popup for loginWithPopup - window.open returned `null`"),Object.setPrototypeOf(this,Kf.prototype)}},Mp=class Wf extends Oe{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Wf.prototype)}},Bl=class Hf extends Oe{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${ys(t,["default"])}', scope: '${ys(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Hf.prototype)}},Fp=class zf extends Oe{constructor(t,n){super("missing_scopes",`Missing requested scopes after refresh (audience: '${ys(t,["default"])}', missing scope: '${ys(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,zf.prototype)}},Gl=class Vf extends Oe{constructor(t){super("use_dpop_nonce","Server rejected DPoP proof: wrong nonce"),this.newDpopNonce=t,Object.setPrototypeOf(this,Vf.prototype)}};function ys(e,t=[]){return e&&!t.includes(e)?e:""}const ws=()=>window.crypto,yr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(ws().getRandomValues(new Uint8Array(43))).forEach((n=>t+=e[n%e.length])),t},Ki=e=>btoa(e),Up=[{key:"name",type:["string"]},{key:"version",type:["string","number"]},{key:"env",type:["object"]}],Kp=e=>Object.keys(e).reduce(((t,n)=>{const r=Up.find((s=>s.key===n));return r&&r.type.includes(typeof e[n])&&(t[n]=e[n]),t}),{}),Wi=e=>{var{clientId:t}=e,n=wt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter((s=>r[s]!==void 0)).reduce(((s,i)=>Object.assign(Object.assign({},s),{[i]:r[i]})),{}))(Object.assign({client_id:t},n))).toString()},Zl=async e=>await ws().subtle.digest({name:"SHA-256"},new TextEncoder().encode(e)),Xl=e=>(t=>decodeURIComponent(atob(t).split("").map((n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2))).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Yl=e=>{const t=new Uint8Array(e);return(n=>{const r={"+":"-","/":"_","=":""};return n.replace(/[+/=]/g,(s=>r[s]))})(window.btoa(String.fromCharCode(...Array.from(t))))},Wp=new TextEncoder,Hp=new TextDecoder;function wr(e){return typeof e=="string"?Wp.encode(e):Hp.decode(e)}function Jl(e){if(typeof e.modulusLength!="number"||e.modulusLength<2048)throw new zp(`${e.name} modulusLength must be at least 2048 bits`)}let Hi;Uint8Array.prototype.toBase64?Hi=e=>(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),e.toBase64({alphabet:"base64url",omitPadding:!0})):Hi=t=>{t instanceof ArrayBuffer&&(t=new Uint8Array(t));const n=[];for(let r=0;r<t.byteLength;r+=32768)n.push(String.fromCharCode.apply(null,t.subarray(r,r+32768)));return btoa(n.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};function vr(e){return Hi(e)}let Fn=class extends Error{constructor(t){var n;super(t??"operation not supported"),this.name=this.constructor.name,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}},zp=class extends Error{constructor(t){var n;super(t),this.name=this.constructor.name,(n=Error.captureStackTrace)===null||n===void 0||n.call(Error,this,this.constructor)}};function Vp(e){switch(e.algorithm.name){case"RSA-PSS":return(function(t){if(t.algorithm.hash.name==="SHA-256")return"PS256";throw new Fn("unsupported RsaHashedKeyAlgorithm hash name")})(e);case"RSASSA-PKCS1-v1_5":return(function(t){if(t.algorithm.hash.name==="SHA-256")return"RS256";throw new Fn("unsupported RsaHashedKeyAlgorithm hash name")})(e);case"ECDSA":return(function(t){if(t.algorithm.namedCurve==="P-256")return"ES256";throw new Fn("unsupported EcKeyAlgorithm namedCurve")})(e);case"Ed25519":return"Ed25519";default:throw new Fn("unsupported CryptoKey algorithm name")}}function ql(e){return e instanceof CryptoKey}function Ql(e){return ql(e)&&e.type==="public"}async function Bp(e,t,n,r,s,i){const o=e?.privateKey,a=e?.publicKey;if(!ql(l=o)||l.type!=="private")throw new TypeError('"keypair.privateKey" must be a private CryptoKey');var l;if(!Ql(a))throw new TypeError('"keypair.publicKey" must be a public CryptoKey');if(a.extractable!==!0)throw new TypeError('"keypair.publicKey.extractable" must be true');if(typeof t!="string")throw new TypeError('"htu" must be a string');if(typeof n!="string")throw new TypeError('"htm" must be a string');if(r!==void 0&&typeof r!="string")throw new TypeError('"nonce" must be a string or undefined');if(s!==void 0&&typeof s!="string")throw new TypeError('"accessToken" must be a string or undefined');return(async function(u,c,f){if(f.usages.includes("sign")===!1)throw new TypeError('private CryptoKey instances used for signing assertions must include "sign" in their "usages"');const d=`${vr(wr(JSON.stringify(u)))}.${vr(wr(JSON.stringify(c)))}`;return`${d}.${vr(await crypto.subtle.sign((function(h){switch(h.algorithm.name){case"ECDSA":return{name:h.algorithm.name,hash:"SHA-256"};case"RSA-PSS":return Jl(h.algorithm),{name:h.algorithm.name,saltLength:32};case"RSASSA-PKCS1-v1_5":return Jl(h.algorithm),{name:h.algorithm.name};case"Ed25519":return{name:h.algorithm.name}}throw new Fn})(f),f,wr(d)))}`})({alg:Vp(o),typ:"dpop+jwt",jwk:await ec(a)},Object.assign(Object.assign({},i),{iat:Math.floor(Date.now()/1e3),jti:crypto.randomUUID(),htm:n,nonce:r,htu:t,ath:s?vr(await crypto.subtle.digest("SHA-256",wr(s))):void 0}),o)}async function ec(e){const{kty:t,e:n,n:r,x:s,y:i,crv:o}=await crypto.subtle.exportKey("jwk",e);return{kty:t,crv:o,e:n,n:r,x:s,y:i}}const Gp=["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:token-exchange"],Zp=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json(),headers:(r=n.headers,[...r].reduce(((s,[i,o])=>(s[i]=o,s)),{}))};var r},Xp=async(e,t,n,r,s,i,o=1e4,a)=>s?(async(l,u,c,f,d,h,y,w)=>{return E={auth:{audience:u,scope:c},timeout:d,fetchUrl:l,fetchOptions:f,useFormData:y,useMrrt:w},_=h,new Promise((function(v,T){const g=new MessageChannel;g.port1.onmessage=function(C){C.data.error?T(new Error(C.data.error)):v(C.data),g.port1.close()},_.postMessage(E,[g.port2])}));var E,_})(e,t,n,r,o,s,i,a):(async(l,u,c)=>{const f=new AbortController;let d;return u.signal=f.signal,Promise.race([Zp(l,u),new Promise(((h,y)=>{d=setTimeout((()=>{f.abort(),y(new Error("Timeout when executing 'fetch'"))}),c)}))]).finally((()=>{clearTimeout(d)}))})(e,r,o);async function tc(e,t,n,r,s,i,o,a,l,u){if(l){const T=await l.generateProof({url:e,method:s.method||"GET",nonce:await l.getNonce()});s.headers=Object.assign(Object.assign({},s.headers),{dpop:T})}let c,f=null;for(let T=0;T<3;T++)try{c=await Xp(e,n,r,s,i,o,t,a),f=null;break}catch(g){f=g}if(f)throw f;const d=c.json,{error:h,error_description:y}=d,w=wt(d,["error","error_description"]),{headers:E,ok:_}=c;let v;if(l&&(v=E["dpop-nonce"],v&&await l.setNonce(v)),!_){const T=y||`HTTP error. Unable to fetch ${e}`;if(h==="mfa_required")throw new Mp(h,T,w.mfa_token);if(h==="missing_refresh_token")throw new Bl(n,r);if(h==="use_dpop_nonce"){if(!l||!v||u)throw new Gl(v);return tc(e,t,n,r,s,i,o,a,l,!0)}throw new Oe(h||"request_error",T)}return w}async function Yp(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a,useMrrt:l,dpop:u}=e,c=wt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData","useMrrt","dpop"]);const f=c.grant_type==="urn:ietf:params:oauth:grant-type:token-exchange",d=c.grant_type==="refresh_token"&&l,h=Object.assign(Object.assign(Object.assign(Object.assign({},c),f&&s&&{audience:s}),f&&i&&{scope:i}),d&&{audience:s,scope:i}),y=a?Wi(h):JSON.stringify(h),w=(E=c.grant_type,Gp.includes(E));var E;return await tc(`${n}/oauth/token`,r,s||"default",i,{method:"POST",body:y,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(Kp(o||zl)))}},t,a,l,w?u:void 0)}const vs=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t},ks=(e,t,n)=>{let r;return n&&(r=e[n]),r||(r=e.default),vs(r,t)};let jt=class zo{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,s,i]=t.split("::");return new zo({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new zo({scope:n,audience:r,clientId:s})}},Jp=class{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter((t=>t.startsWith("@@auth0spajs@@")))}},nc=class{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)}})()}},qp=class{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Vl}async setIdToken(t,n,r){var s;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:r}),await((s=this.keyManifest)===null||s===void 0?void 0:s.add(i))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0,r=!1,s){var i;let o=await this.cache.get(t.toKey());if(!o){const u=await this.getCacheKeys();if(!u)return;const c=this.matchExistingCacheKey(t,u);if(c&&(o=await this.cache.get(c)),!c&&r&&s!=="cache-only")return this.getEntryWithRefreshToken(t,u)}if(!o)return;const a=await this.nowProvider(),l=Math.floor(a/1e3);return o.expiresAt-n<l?o.body.refresh_token?this.modifiedCachedEntry(o,t):(await this.cache.remove(t.toKey()),void await((i=this.keyManifest)===null||i===void 0?void 0:i.remove(t.toKey()))):o.body}async modifiedCachedEntry(t,n){return t.body={refresh_token:t.body.refresh_token,audience:t.body.audience,scope:t.body.scope},await this.cache.set(n.toKey(),t),{refresh_token:t.body.refresh_token,audience:t.body.audience,scope:t.body.scope}}async set(t){var n;const r=new jt({clientId:t.client_id,scope:t.scope,audience:t.audience}),s=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),s),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async remove(t,n,r){const s=new jt({clientId:t,scope:r,audience:n});await this.cache.remove(s.toKey())}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter((s=>!t||s.includes(t))).reduce((async(s,i)=>{await s,await this.cache.remove(i)}),Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new jt({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter((r=>{var s;const i=jt.fromKey(r),o=new Set(i.scope&&i.scope.split(" ")),a=((s=t.scope)===null||s===void 0?void 0:s.split(" "))||[],l=i.scope&&a.reduce(((u,c)=>u&&o.has(c)),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId&&i.audience===t.audience&&l}))[0]}async getEntryWithRefreshToken(t,n){var r;for(const s of n){const i=jt.fromKey(s);if(i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId){const o=await this.cache.get(s);if(!((r=o?.body)===null||r===void 0)&&r.refresh_token)return this.modifiedCachedEntry(o,t)}}}async updateEntry(t,n){var r;const s=await this.getCacheKeys();if(s)for(const i of s){const o=await this.cache.get(i);if(((r=o?.body)===null||r===void 0?void 0:r.refresh_token)===t){const a=Object.assign(Object.assign({},o.body),{refresh_token:n});await this.set(a)}}}},Qp=class{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}};const kr=e=>typeof e=="number",em=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var mn=Fi((function(e,t){var n=hn&&hn.__assign||function(){return n=Object.assign||function(l){for(var u,c=1,f=arguments.length;c<f;c++)for(var d in u=arguments[c])Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var c="; "+l;return u===!0?c:c+"="+u}function s(l,u,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+(function(f){if(typeof f.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*f.expires),f.expires=d}return r("Expires",f.expires?f.expires.toUTCString():"")+r("Domain",f.domain)+r("Path",f.path)+r("Secure",f.secure)+r("SameSite",f.sameSite)})(c)}function i(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<c.length;d++){var h=c[d].split("="),y=h.slice(1).join("=");y.charAt(0)==='"'&&(y=y.slice(1,-1));try{u[h[0].replace(f,decodeURIComponent)]=y.replace(f,decodeURIComponent)}catch{}}return u}function o(){return i(document.cookie)}function a(l,u,c){document.cookie=s(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=s,t.parse=i,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}}));Mi(mn),mn.encode,mn.parse,mn.getAll;var tm=mn.get,rc=mn.set,sc=mn.remove;const Un={get(e){const t=tm(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),rc(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),sc(e,n)}},nm={get:e=>Un.get(e)||Un.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),rc(`_legacy_${e}`,JSON.stringify(t),r),Un.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),sc(e,n),Un.remove(e,t),Un.remove(`_legacy_${e}`,t)}},rm={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 gn;(function(e){e.Code="code",e.ConnectCode="connect_code"})(gn||(gn={}));var zi,sm=(function(e){return zi=zi||(function(t,n,r){var s=(function(l,u){var c=atob(l);return c})(t),i=s.indexOf(`
|
|
5
|
+
`,10)+1,o=s.substring(i)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)})("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YSx1c2VNcnJ0OmZ9LHBvcnRzOltwXX0pPT57bGV0IGgsdSxsPXt9O2NvbnN0e2F1ZGllbmNlOmQsc2NvcGU6eX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2lmKHU9KChlLHQpPT5vW24oZSx0KV0pKGQseSksIXUmJmYpe2NvbnN0IGU9by5sYXRlc3RfcmVmcmVzaF90b2tlbix0PSgoZSx0KT0+e2NvbnN0IHI9T2JqZWN0LmtleXMobykuZmluZCgocj0+e2lmKCJsYXRlc3RfcmVmcmVzaF90b2tlbiIhPT1yKXtjb25zdCBzPSgoZSx0KT0+dC5zdGFydHNXaXRoKGAke2V9fGApKSh0LHIpLG89ci5zcGxpdCgifCIpWzFdLnNwbGl0KCIgIiksbj1lLnNwbGl0KCIgIikuZXZlcnkoKGU9Pm8uaW5jbHVkZXMoZSkpKTtyZXR1cm4gcyYmbn19KSk7cmV0dXJuISFyfSkoeSxkKTtlJiYhdCYmKHU9ZSl9aWYoIXUpdGhyb3cgbmV3IHQoZCx5KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjp1fSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjp1fSkpfWxldCBqLGs7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGo9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1qLnNpZ25hbCk7dHJ5e2s9YXdhaXQgUHJvbWlzZS5yYWNlKFsoXz1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsXykpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIHAucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFrKXJldHVybiBqJiZqLmFib3J0KCksdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO2c9ay5oZWFkZXJzLGw9Wy4uLmddLnJlZHVjZSgoKGUsW3Qscl0pPT4oZVt0XT1yLGUpKSx7fSksaD1hd2FpdCBrLmpzb24oKSxoLnJlZnJlc2hfdG9rZW4/KGYmJihvLmxhdGVzdF9yZWZyZXNoX3Rva2VuPWgucmVmcmVzaF90b2tlbixPPXUsYj1oLnJlZnJlc2hfdG9rZW4sT2JqZWN0LmVudHJpZXMobykuZm9yRWFjaCgoKFtlLHRdKT0+e3Q9PT1PJiYob1tlXT1iKX0pKSksKChlLHQscik9PntvW24odCxyKV09ZX0pKGgucmVmcmVzaF90b2tlbixkLHkpLGRlbGV0ZSBoLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KShkLHkpLHAucG9zdE1lc3NhZ2Uoe29rOmsub2ssanNvbjpoLGhlYWRlcnM6bH0pfWNhdGNoKGUpe3AucG9zdE1lc3NhZ2Uoe29rOiExLGpzb246e2Vycm9yOmUuZXJyb3IsZXJyb3JfZGVzY3JpcHRpb246ZS5tZXNzYWdlfSxoZWFkZXJzOmx9KX12YXIgTyxiLGcsX30pKX0oKTsKCg=="),new Worker(zi,e)});const Vi={};let im=class{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 om={memory:()=>new nc().enclosedCache,localstorage:()=>new Jp},ic=e=>om[e],oc=e=>{const{openUrl:t,onRedirect:n}=e,r=wt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},ac=(e,t)=>{const n=t?.split(" ")||[];return(e?.split(" ")||[]).every((r=>n.includes(r)))},_n={NONCE:"nonce",KEYPAIR:"keypair"};let am=class{constructor(t){this.clientId=t}getVersion(){return 1}createDbHandle(){const t=window.indexedDB.open("auth0-spa-js",this.getVersion());return new Promise(((n,r)=>{t.onupgradeneeded=()=>Object.values(_n).forEach((s=>t.result.createObjectStore(s))),t.onerror=()=>r(t.error),t.onsuccess=()=>n(t.result)}))}async getDbHandle(){return this.dbHandle||(this.dbHandle=await this.createDbHandle()),this.dbHandle}async executeDbRequest(t,n,r){const s=r((await this.getDbHandle()).transaction(t,n).objectStore(t));return new Promise(((i,o)=>{s.onsuccess=()=>i(s.result),s.onerror=()=>o(s.error)}))}buildKey(t){const n=t?`_${t}`:"auth0";return`${this.clientId}::${n}`}setNonce(t,n){return this.save(_n.NONCE,this.buildKey(n),t)}setKeyPair(t){return this.save(_n.KEYPAIR,this.buildKey(),t)}async save(t,n,r){await this.executeDbRequest(t,"readwrite",(s=>s.put(r,n)))}findNonce(t){return this.find(_n.NONCE,this.buildKey(t))}findKeyPair(){return this.find(_n.KEYPAIR,this.buildKey())}find(t,n){return this.executeDbRequest(t,"readonly",(r=>r.get(n)))}async deleteBy(t,n){const r=await this.executeDbRequest(t,"readonly",(s=>s.getAllKeys()));r?.filter(n).map((s=>this.executeDbRequest(t,"readwrite",(i=>i.delete(s)))))}deleteByClientId(t,n){return this.deleteBy(t,(r=>typeof r=="string"&&r.startsWith(`${n}::`)))}clearNonces(){return this.deleteByClientId(_n.NONCE,this.clientId)}clearKeyPairs(){return this.deleteByClientId(_n.KEYPAIR,this.clientId)}},lm=class{constructor(t){this.storage=new am(t)}getNonce(t){return this.storage.findNonce(t)}setNonce(t,n){return this.storage.setNonce(t,n)}async getOrGenerateKeyPair(){let t=await this.storage.findKeyPair();return t||(t=await(async function(n,r){var s;let i;return i={name:"ECDSA",namedCurve:"P-256"},crypto.subtle.generateKey(i,(s=r?.extractable)!==null&&s!==void 0&&s,["sign","verify"])})(0,{extractable:!1}),await this.storage.setKeyPair(t)),t}async generateProof(t){const n=await this.getOrGenerateKeyPair();return(function({keyPair:r,url:s,method:i,nonce:o,accessToken:a}){const l=(function(u){const c=new URL(u);return c.search="",c.hash="",c.href})(s);return Bp(r,l,i,o,a)})(Object.assign({keyPair:n},t))}async calculateThumbprint(){return(function(t){return(async function(n){if(!Ql(n))throw new TypeError('"publicKey" must be a public CryptoKey');if(n.extractable!==!0)throw new TypeError('"publicKey.extractable" must be true');const r=await ec(n);let s;switch(r.kty){case"EC":s={crv:r.crv,kty:r.kty,x:r.x,y:r.y};break;case"OKP":s={crv:r.crv,kty:r.kty,x:r.x};break;case"RSA":s={e:r.e,kty:r.kty,n:r.n};break;default:throw new Fn("unsupported JWK kty")}return vr(await crypto.subtle.digest({name:"SHA-256"},wr(JSON.stringify(s))))})(t.publicKey)})(await this.getOrGenerateKeyPair())}async clear(){await Promise.all([this.storage.clearNonces(),this.storage.clearKeyPairs()])}};var Kn;(function(e){e.Bearer="Bearer",e.DPoP="DPoP"})(Kn||(Kn={}));let cm=class{constructor(t,n){this.hooks=n,this.config=Object.assign(Object.assign({},t),{fetch:t.fetch||(typeof window>"u"?fetch:window.fetch.bind(window))})}isAbsoluteUrl(t){return/^(https?:)?\/\//i.test(t)}buildUrl(t,n){if(n){if(this.isAbsoluteUrl(n))return n;if(t)return`${t.replace(/\/?\/$/,"")}/${n.replace(/^\/+/,"")}`}throw new TypeError("`url` must be absolute or `baseUrl` non-empty.")}getAccessToken(t){return this.config.getAccessToken?this.config.getAccessToken(t):this.hooks.getAccessToken(t)}extractUrl(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}buildBaseRequest(t,n){if(!this.config.baseUrl)return new Request(t,n);const r=this.buildUrl(this.config.baseUrl,this.extractUrl(t)),s=t instanceof Request?new Request(r,t):r;return new Request(s,n)}setAuthorizationHeader(t,n,r=Kn.Bearer){t.headers.set("authorization",`${r} ${n}`)}async setDpopProofHeader(t,n){if(!this.config.dpopNonceId)return;const r=await this.hooks.getDpopNonce(),s=await this.hooks.generateDpopProof({accessToken:n,method:t.method,nonce:r,url:t.url});t.headers.set("dpop",s)}async prepareRequest(t,n){const r=await this.getAccessToken(n);let s,i;typeof r=="string"?(s=this.config.dpopNonceId?Kn.DPoP:Kn.Bearer,i=r):(s=r.token_type,i=r.access_token),this.setAuthorizationHeader(t,i,s),s===Kn.DPoP&&await this.setDpopProofHeader(t,i)}getHeader(t,n){return Array.isArray(t)?new Headers(t).get(n)||"":typeof t.get=="function"?t.get(n)||"":t[n]||""}hasUseDpopNonceError(t){if(t.status!==401)return!1;const n=this.getHeader(t.headers,"www-authenticate");return n.includes("invalid_dpop_nonce")||n.includes("use_dpop_nonce")}async handleResponse(t,n){const r=this.getHeader(t.headers,"dpop-nonce");if(r&&await this.hooks.setDpopNonce(r),!this.hasUseDpopNonceError(t))return t;if(!r||!n.onUseDpopNonceError)throw new Gl(r);return n.onUseDpopNonceError()}async internalFetchWithAuth(t,n,r,s){const i=this.buildBaseRequest(t,n);await this.prepareRequest(i,s);const o=await this.config.fetch(i);return this.handleResponse(o,r)}fetchWithAuth(t,n,r){const s={onUseDpopNonceError:()=>this.internalFetchWithAuth(t,n,Object.assign(Object.assign({},s),{onUseDpopNonceError:void 0}),r)};return this.internalFetchWithAuth(t,n,s,r)}},um=class{constructor(t,n){this.myAccountFetcher=t,this.apiBase=n}async connectAccount(t){const n=await this.myAccountFetcher.fetchWithAuth(`${this.apiBase}v1/connected-accounts/connect`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return this._handleResponse(n)}async completeAccount(t){const n=await this.myAccountFetcher.fetchWithAuth(`${this.apiBase}v1/connected-accounts/complete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return this._handleResponse(n)}async _handleResponse(t){let n;try{n=await t.text(),n=JSON.parse(n)}catch(r){throw new lc({type:"invalid_json",status:t.status,title:"Invalid JSON response",detail:n||String(r)})}if(t.ok)return n;throw new lc(n)}},lc=class Bf extends Error{constructor({type:t,status:n,title:r,detail:s,validation_errors:i}){super(s),this.name="MyAccountApiError",this.type=t,this.status=n,this.title=r,this.detail=s,this.validation_errors=i,Object.setPrototypeOf(this,Bf.prototype)}};const Bi=new Lp;let fm=class{constructor(t){let n,r;if(this.userCache=new nc().enclosedCache,this.activeLockKeys=new Set,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{const l=Array.from(this.activeLockKeys);for(const u of l)await Bi.releaseLock(u);this.activeLockKeys.clear(),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(!ws())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(ws().subtle===void 0)throw new Error(`
|
|
6
6
|
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
|
|
7
|
-
`)})(),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",!ic(n))throw new Error(`Invalid cache location "${n}"`);r=ic(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Un:nm,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(l=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const s=t.useCookiesForTransactions?this.cookieStorage:rm;var i;this.scope=((l,u,...c)=>{if(typeof l!="object")return{default:ws(u,l,...c)};let f={default:ws(u,...c)};return Object.keys(l).forEach((d=>{const h=l[d];f[d]=ws(u,h,...c)})),f})(this.options.authorizationParams.scope,"openid",this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Qp(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Vl,this.cacheManager=new qp(r,r.allKeys?void 0:new im(r,this.options.clientId),this.nowProvider),this.dpop=this.options.useDpop?new lm(this.options.clientId):void 0,this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((l,u)=>l?l.startsWith("https://")?l:`https://${l}/`:`${u}/`)(this.options.issuer,this.domainUrl);const o=`${this.domainUrl}/me/`,a=this.createFetcher(Object.assign(Object.assign({},this.options.useDpop&&{dpopNonceId:"__auth0_my_account_api__"}),{getAccessToken:()=>this.getTokenSilently({authorizationParams:{scope:"create:me:connected_accounts",audience:o},detailedResponse:!0})}));this.myAccountApi=new um(a,o),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new sm)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||zl)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Wi(t)}`)}async _verifyIdToken(t,n,r){const s=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(f=>{const d=f.split("."),[h,y,v]=d;if(d.length!==3||!h||!y||!v)throw new Error("ID token could not be decoded");const E=JSON.parse(Xl(y)),_={__raw:f},w={};return Object.keys(E).forEach((T=>{_[T]=E[T],em.includes(T)||(w[T]=E[T])})),{encoded:{header:h,payload:y,signature:v},header:JSON.parse(Xl(h)),claims:_,user:w}})(o.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==o.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${o.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(o.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==o.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${o.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==o.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but found "${a.claims.aud}"`);if(o.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==o.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${o.nonce}", found "${a.claims.nonce}"`)}if(o.max_age&&!kr(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||!kr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!kr(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,u=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),u>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${u}) is after expiration time (${c})`);if(a.claims.nbf!=null&&kr(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-l),u<f)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${u}) is before ${f}`)}if(a.claims.auth_time!=null&&kr(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),u>f)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${u}) is after last auth at ${f}`)}if(o.organization){const f=o.organization.trim();if(f.startsWith("org_")){const d=f;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_id}"`)}else{const d=f.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:s});var i}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){var s;const i=Ki(yr()),o=Ki(yr()),a=yr(),l=await Zl(a),u=Yl(l),c=await((s=this.dpop)===null||s===void 0?void 0:s.calculateThumbprint()),f=((h,y,v,E,_,w,T,g,C)=>Object.assign(Object.assign(Object.assign({client_id:h.clientId},h.authorizationParams),v),{scope:ks(y,v.scope,v.audience),response_type:"code",response_mode:g||"query",state:E,nonce:_,redirect_uri:T||h.authorizationParams.redirect_uri,code_challenge:w,code_challenge_method:"S256",dpop_jkt:C}))(this.options,this.scope,t,i,o,u,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode,c),d=this._authorizeUrl(f);return{nonce:o,code_verifier:a,scope:f.scope,audience:f.audience||"default",redirect_uri:f.redirect_uri,state:i,url:d}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new jp;const s=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=s.url;const i=await(a=>new Promise(((l,u)=>{let c;const f=setInterval((()=>{a.popup&&a.popup.closed&&(clearInterval(f),clearTimeout(d),window.removeEventListener("message",c,!1),u(new Dp(a.popup)))}),1e3),d=setTimeout((()=>{clearInterval(f),u(new Np(a.popup)),window.removeEventListener("message",c,!1)}),1e3*(a.timeoutInSeconds||60));c=function(h){if(h.data&&h.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(f),window.removeEventListener("message",c,!1),a.popup.close(),h.data.response.error)return u(Oe.fromPayload(h.data.response));l(h.data.response)}},window.addEventListener("message",c)})))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(s.state!==i.state)throw new Oe("state_mismatch","Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:s.redirect_uri},{nonceIn:s.nonce,organization:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=oc(t),{openUrl:s,fragment:i,appState:o}=r,a=vt(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=u,f=vt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o,response_type:gn.Code}),l&&{organization:l}));const d=i?`${c}#${i}`:c;s?await s(d):window.location.assign(d)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const r=this.transactionManager.get();if(!r)throw new Oe("missing_transaction","Invalid state");this.transactionManager.remove();const s=(i=>{i.indexOf("#")>-1&&(i=i.substring(0,i.indexOf("#")));const o=new URLSearchParams(i);return{state:o.get("state"),code:o.get("code")||void 0,connect_code:o.get("connect_code")||void 0,error:o.get("error")||void 0,error_description:o.get("error_description")||void 0}})(n.join(""));return r.response_type===gn.ConnectCode?this._handleConnectAccountRedirectCallback(s,r):this._handleLoginRedirectCallback(s,r)}async _handleLoginRedirectCallback(t,n){const{code:r,state:s,error:i,error_description:o}=t;if(i)throw new $p(i,o||i,s,n.appState);if(!n.code_verifier||n.state&&n.state!==s)throw new Oe("state_mismatch","Invalid state");const a=n.organization,l=n.nonce,u=n.redirect_uri;return await this._requestToken(Object.assign({audience:n.audience,scope:n.scope,code_verifier:n.code_verifier,grant_type:"authorization_code",code:r},u?{redirect_uri:u}:{}),{nonceIn:l,organization:a}),{appState:n.appState,response_type:gn.Code}}async _handleConnectAccountRedirectCallback(t,n){const{connect_code:r,state:s,error:i,error_description:o}=t;if(i)throw new Ui(i,o||i,n.connection,s,n.appState);if(!r)throw new Oe("missing_connect_code","Missing connect code");if(!(n.code_verifier&&n.state&&n.auth_session&&n.redirect_uri&&n.state===s))throw new Oe("state_mismatch","Invalid state");const a=await this.myAccountApi.completeAccount({auth_session:n.auth_session,connect_code:r,redirect_uri:n.redirect_uri,code_verifier:n.code_verifier});return Object.assign(Object.assign({},a),{appState:n.appState,response_type:gn.ConnectCode})}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,r;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:ks(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope,((r=t.authorizationParams)===null||r===void 0?void 0:r.audience)||this.options.authorizationParams.audience)})}),i=await((o,a)=>{let l=Vi[a];return l||(l=o().finally((()=>{delete Vi[a],l=null})),Vi[a]=l),l})((()=>this._getTokenSilently(s)),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=vt(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId,cacheMode:n});if(i)return i}if(n==="cache-only")return;const s=`auth0.lock.getTokenSilently.${this.options.clientId}.${r.authorizationParams.audience||"default"}`;if(!await(async(i,o=3)=>{for(let a=0;a<o;a++)if(await i())return!0;return!1})((()=>Bi.acquireLock(s,5e3)),10))throw new br;this.activeLockKeys.add(s),this.activeLockKeys.size===1&&window.addEventListener("pagehide",this._releaseLockOnPageHide);try{if(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 i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:o,token_type:a,access_token:l,oauthTokenScope:u,expires_in:c}=i;return Object.assign(Object.assign({id_token:o,token_type:a,access_token:l},u?{scope:u}:null),{expires_in:c})}finally{await Bi.releaseLock(s),this.activeLockKeys.delete(s),this.activeLockKeys.size===0&&window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}async getTokenWithPopup(t={},n={}){var r,s;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:ks(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope,((s=t.authorizationParams)===null||s===void 0?void 0:s.audience)||this.options.authorizationParams.audience)})});return n=Object.assign(Object.assign({},Rp),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new jt({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}),void 0,this.options.useMrrt)).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,s=vt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Wi(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){var n;const r=oc(t),{openUrl:s}=r,i=vt(r,["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@@"),await((n=this.dpop)===null||n===void 0?void 0:n.clear());const o=this._buildLogoutUrl(i);s?await s(o):s!==!1&&window.location.assign(o)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:s,state:i,nonce:o,code_verifier:a,redirect_uri:l,scope:u,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Oe("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds;let d;try{d=new URL(this.domainUrl).origin}catch{d=this.domainUrl}const h=await((v,E,_=60)=>new Promise(((w,T)=>{const g=window.document.createElement("iframe");g.setAttribute("width","0"),g.setAttribute("height","0"),g.style.display="none";const C=()=>{window.document.body.contains(g)&&(window.document.body.removeChild(g),window.removeEventListener("message",D,!1))};let D;const P=setTimeout((()=>{T(new br),C()}),1e3*_);D=function(M){if(M.origin!=E||!M.data||M.data.type!=="authorization_response")return;const U=M.source;U&&U.close(),M.data.response.error?T(Oe.fromPayload(M.data.response)):w(M.data.response),clearTimeout(P),window.removeEventListener("message",D,!1),setTimeout(C,2e3)},window.addEventListener("message",D,!1),window.document.body.appendChild(g),g.setAttribute("src",v)})))(s,d,f);if(i!==h.state)throw new Oe("state_mismatch","Invalid state");const y=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:o,organization:n.organization});return Object.assign(Object.assign({},y),{scope:u,oauthTokenScope:y.scope,audience:c})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new jt({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}),void 0,this.options.useMrrt);if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new Bl(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,s=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null,i=((c,f,d,h)=>{var y;if(c&&d&&h){if(f.audience!==d)return f.scope;const v=h.split(" "),E=((y=f.scope)===null||y===void 0?void 0:y.split(" "))||[],_=E.every((w=>v.includes(w)));return v.length>=E.length&&_?h:f.scope}return f.scope})(this.options.useMrrt,t.authorizationParams,n?.audience,n?.scope);try{const c=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),s&&{timeout:s}),{scopesToRequest:i});if(c.refresh_token&&this.options.useMrrt&&n?.refresh_token&&await this.cacheManager.updateEntry(n.refresh_token,c.refresh_token),this.options.useMrrt&&(o=n?.audience,a=n?.scope,l=t.authorizationParams.audience,u=t.authorizationParams.scope,!(o===l&&ac(u,a)||ac(i,c.scope)))){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);await this.cacheManager.remove(this.options.clientId,t.authorizationParams.audience,t.authorizationParams.scope);const f=((d,h)=>{const y=d?.split(" ")||[],v=h?.split(" ")||[];return y.filter((E=>v.indexOf(E)==-1)).join(",")})(i,c.scope);throw new Fp(t.authorizationParams.audience||"default",f)}return Object.assign(Object.assign({},c),{scope:t.authorizationParams.scope,oauthTokenScope:c.scope,audience:t.authorizationParams.audience||"default"})}catch(c){if((c.message.indexOf("Missing Refresh Token")>-1||c.message&&c.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw c}var o,a,l,u}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,s=vt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(s)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=this.scope[t],r=await this.cacheManager.getIdToken(new jt({clientId:this.options.clientId,audience:t,scope:n})),s=this.userCache.get("@@user@@");return r&&r.id_token===s?.id_token?s:(this.userCache.set("@@user@@",r),r)}async _getEntryFromCache({scope:t,audience:n,clientId:r,cacheMode:s}){const i=await this.cacheManager.get(new jt({scope:t,audience:n,clientId:r}),60,this.options.useMrrt,s);if(i&&i.access_token){const{token_type:o,access_token:a,oauthTokenScope:l,expires_in:u}=i,c=await this._getIdTokenFromCache();return c&&Object.assign(Object.assign({id_token:c.id_token,token_type:o||"Bearer",access_token:a},l?{scope:l}:null),{expires_in:u})}}async _requestToken(t,n){const{nonceIn:r,organization:s,scopesToRequest:i}=n||{},o=await Yp(Object.assign(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs,useMrrt:this.options.useMrrt,dpop:this.dpop},t),{scope:i||t.scope}),this.worker),a=await this._verifyIdToken(o.id_token,r,s);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},o),{decodedToken:a,scope:t.scope,audience:t.audience||"default"}),o.scope?{oauthTokenScope:o.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(s||a.claims.org_id),Object.assign(Object.assign({},o),{decodedToken:a})}async exchangeToken(t){return this._requestToken({grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",subject_token:t.subject_token,subject_token_type:t.subject_token_type,scope:ks(this.scope,t.scope,t.audience||this.options.authorizationParams.audience),audience:t.audience||this.options.authorizationParams.audience})}_assertDpop(t){if(!t)throw new Error("`useDpop` option must be enabled before using DPoP.")}getDpopNonce(t){return this._assertDpop(this.dpop),this.dpop.getNonce(t)}setDpopNonce(t,n){return this._assertDpop(this.dpop),this.dpop.setNonce(t,n)}generateDpopProof(t){return this._assertDpop(this.dpop),this.dpop.generateProof(t)}createFetcher(t={}){return new cm(t,{isDpopEnabled:()=>!!this.options.useDpop,getAccessToken:n=>{var r;return this.getTokenSilently({authorizationParams:{scope:(r=n?.scope)===null||r===void 0?void 0:r.join(" "),audience:n?.audience},detailedResponse:!0})},getDpopNonce:()=>this.getDpopNonce(t.dpopNonceId),setDpopNonce:n=>this.setDpopNonce(n,t.dpopNonceId),generateDpopProof:n=>this.generateDpopProof(n)})}async connectAccountWithRedirect(t){const{openUrl:n,appState:r,connection:s,scopes:i,authorization_params:o,redirectUri:a=this.options.authorizationParams.redirect_uri||window.location.origin}=t;if(!s)throw new Error("connection is required");const l=Ki(yr()),u=yr(),c=await Zl(u),f=Yl(c),{connect_uri:d,connect_params:h,auth_session:y}=await this.myAccountApi.connectAccount({connection:s,scopes:i,redirect_uri:a,state:l,code_challenge:f,code_challenge_method:"S256",authorization_params:o});this.transactionManager.create({state:l,code_verifier:u,auth_session:y,redirect_uri:a,appState:r,connection:s,response_type:gn.ConnectCode});const v=new URL(d);v.searchParams.set("ticket",h.ticket),n?await n(v.toString()):window.location.assign(v)}};function xr(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 ot=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},dm={isLoading:J(!1),isAuthenticated:J(!1),user:J(void 0),idTokenClaims:J(void 0),error:J(null),loginWithPopup:ot,loginWithRedirect:ot,getAccessTokenSilently:ot,getAccessTokenWithPopup:ot,logout:ot,checkSession:ot,handleRedirectCallback:ot,getDpopNonce:ot,setDpopNonce:ot,generateDpopProof:ot,createFetcher:ot},hm=J(dm);class pm{constructor(t,n){var r,s;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,s=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter((i=>!s.includes(i))).forEach((i=>r[i]=r[i].bind(r)))}install(t){this._client=new fm(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(Hl,this),hm.value=this}async loginWithRedirect(t){return xr(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return xr(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 xr(t),this.__proxy((()=>this._client.getTokenSilently(t)))}async getAccessTokenWithPopup(t,n){return xr(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 getDpopNonce(t){return this.__proxy((()=>this._client.getDpopNonce(t)))}async setDpopNonce(t,n){return this.__proxy((()=>this._client.setDpopNonce(t,n)))}async generateDpopProof(t){return this.__proxy((()=>this._client.generateDpopProof(t)))}createFetcher(t){return this._client.createFetcher(t)}async __checkSession(t){var n,r,s;const i=window.location.search;try{if((i.includes("code=")||i.includes("error="))&&i.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(r=a?.target)!==null&&r!==void 0?r:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((s=this.pluginOptions)===null||s===void 0?void 0:s.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let r;try{r=await t(),this.error.value=null}catch(s){throw this.error.value=s,s}finally{n&&await this.__refreshState()}return r}}function cc(e,t){return xr(e),new pm(e,t)}function mm(){return je(Hl)}function gm(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const xs=typeof window<"u",Qt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),_m=(e,t,n)=>bm({l:e,k:t,s:n}),bm=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ie=e=>typeof e=="number"&&isFinite(e),ym=e=>Gi(e)==="[object Date]",Wn=e=>Gi(e)==="[object RegExp]",Ss=e=>q(e)&&Object.keys(e).length===0,Ae=Object.assign,vm=Object.create,de=(e=null)=>vm(e);let uc;const bn=()=>uc||(uc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:de());function fc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function dc(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function wm(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${dc(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${dc(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const km=Object.prototype.hasOwnProperty;function at(e,t){return km.call(e,t)}const ke=Array.isArray,ye=e=>typeof e=="function",F=e=>typeof e=="string",re=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",xm=e=>oe(e)&&ye(e.then)&&ye(e.catch),hc=Object.prototype.toString,Gi=e=>hc.call(e),q=e=>Gi(e)==="[object Object]",Sm=e=>e==null?"":ke(e)||q(e)&&e.toString===hc?JSON.stringify(e,null,2):String(e);function Zi(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const Ts=e=>!oe(e)||ke(e);function Es(e,t){if(Ts(e)||Ts(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(oe(r[i])&&!oe(s[i])&&(s[i]=Array.isArray(r[i])?[]:de()),Ts(s[i])||Ts(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}function Tm(e,t,n){return{line:e,column:t,offset:n}}function Xi(e,t,n){return{start:e,end:t}}const ue={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},Em=17;function Is(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function Im(e){throw e}const wt=" ",Cm="\r",Fe=`
|
|
8
|
-
`,Om="\u2028",Am="\u2029";function Pm(e){const t=e;let n=0,r=1,s=1,i=0;const o=P=>t[P]===Cm&&t[P+1]===Fe,a=P=>t[P]===Fe,l=P=>t[P]===Am,u=P=>t[P]===Om,c=P=>o(P)||a(P)||l(P)||u(P),f=()=>n,d=()=>r,h=()=>s,y=()=>i,v=P=>o(P)||l(P)||u(P)?Fe:t[P],E=()=>v(n),_=()=>v(n+i);function w(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+i)&&i++,i++,t[n+i]}function g(){n=0,r=1,s=1,i=0}function C(P=0){i=P}function D(){const P=n+i;for(;P!==n;)w();i=0}return{index:f,line:d,column:h,peekOffset:y,charAt:v,currentChar:E,currentPeek:_,next:w,peek:T,reset:g,resetPeek:C,skipToPeek:D}}const Mt=void 0,Lm=".",pc="'",Rm="tokenizer";function $m(e,t={}){const n=t.location!==!1,r=Pm(e),s=()=>r.index(),i=()=>Tm(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(p,m,x,...I){const j=u();if(m.column+=x,m.offset+=x,c){const L=n?Xi(j.startLoc,m):null,S=Is(p,L,{domain:Rm,args:I});c(S)}}function d(p,m,x){p.endLoc=i(),p.currentType=m;const I={type:m};return n&&(I.loc=Xi(p.startLoc,p.endLoc)),x!=null&&(I.value=x),I}const h=p=>d(p,13);function y(p,m){return p.currentChar()===m?(p.next(),m):(f(ue.EXPECTED_TOKEN,i(),0,m),"")}function v(p){let m="";for(;p.currentPeek()===wt||p.currentPeek()===Fe;)m+=p.currentPeek(),p.peek();return m}function E(p){const m=v(p);return p.skipToPeek(),m}function _(p){if(p===Mt)return!1;const m=p.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function w(p){if(p===Mt)return!1;const m=p.charCodeAt(0);return m>=48&&m<=57}function T(p,m){const{currentType:x}=m;if(x!==2)return!1;v(p);const I=_(p.currentPeek());return p.resetPeek(),I}function g(p,m){const{currentType:x}=m;if(x!==2)return!1;v(p);const I=p.currentPeek()==="-"?p.peek():p.currentPeek(),j=w(I);return p.resetPeek(),j}function C(p,m){const{currentType:x}=m;if(x!==2)return!1;v(p);const I=p.currentPeek()===pc;return p.resetPeek(),I}function D(p,m){const{currentType:x}=m;if(x!==7)return!1;v(p);const I=p.currentPeek()===".";return p.resetPeek(),I}function P(p,m){const{currentType:x}=m;if(x!==8)return!1;v(p);const I=_(p.currentPeek());return p.resetPeek(),I}function M(p,m){const{currentType:x}=m;if(!(x===7||x===11))return!1;v(p);const I=p.currentPeek()===":";return p.resetPeek(),I}function U(p,m){const{currentType:x}=m;if(x!==9)return!1;const I=()=>{const L=p.currentPeek();return L==="{"?_(p.peek()):L==="@"||L==="|"||L===":"||L==="."||L===wt||!L?!1:L===Fe?(p.peek(),I()):ee(p,!1)},j=I();return p.resetPeek(),j}function Y(p){v(p);const m=p.currentPeek()==="|";return p.resetPeek(),m}function ee(p,m=!0){const x=(j=!1,L="")=>{const S=p.currentPeek();return S==="{"||S==="@"||!S?j:S==="|"?!(L===wt||L===Fe):S===wt?(p.peek(),x(!0,wt)):S===Fe?(p.peek(),x(!0,Fe)):!0},I=x();return m&&p.resetPeek(),I}function Z(p,m){const x=p.currentChar();return x===Mt?Mt:m(x)?(p.next(),x):null}function ie(p){const m=p.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function pe(p){return Z(p,ie)}function He(p){const m=p.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function ae(p){return Z(p,He)}function H(p){const m=p.charCodeAt(0);return m>=48&&m<=57}function ne(p){return Z(p,H)}function xe(p){const m=p.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function ut(p){return Z(p,xe)}function Ve(p){let m="",x="";for(;m=ne(p);)x+=m;return x}function Re(p){let m="";for(;;){const x=p.currentChar();if(x==="{"||x==="}"||x==="@"||x==="|"||!x)break;if(x===wt||x===Fe)if(ee(p))m+=x,p.next();else{if(Y(p))break;m+=x,p.next()}else m+=x,p.next()}return m}function It(p){E(p);let m="",x="";for(;m=ae(p);)x+=m;const I=p.currentChar();if(I&&I!=="}"&&I!==Mt&&I!==wt&&I!==Fe&&I!==" "){const j=Ct(p);return f(ue.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x+j),x+j}return p.currentChar()===Mt&&f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),x}function rn(p){E(p);let m="";return p.currentChar()==="-"?(p.next(),m+=`-${Ve(p)}`):m+=Ve(p),p.currentChar()===Mt&&f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),m}function In(p){return p!==pc&&p!==Fe}function nt(p){E(p),y(p,"'");let m="",x="";for(;m=Z(p,In);)m==="\\"?x+=sn(p):x+=m;const I=p.currentChar();return I===Fe||I===Mt?(f(ue.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),I===Fe&&(p.next(),y(p,"'")),x):(y(p,"'"),x)}function sn(p){const m=p.currentChar();switch(m){case"\\":case"'":return p.next(),`\\${m}`;case"u":return on(p,m,4);case"U":return on(p,m,6);default:return f(ue.UNKNOWN_ESCAPE_SEQUENCE,i(),0,m),""}}function on(p,m,x){y(p,m);let I="";for(let j=0;j<x;j++){const L=ut(p);if(!L){f(ue.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${m}${I}${p.currentChar()}`);break}I+=L}return`\\${m}${I}`}function Xn(p){return p!=="{"&&p!=="}"&&p!==wt&&p!==Fe}function Ct(p){E(p);let m="",x="";for(;m=Z(p,Xn);)x+=m;return x}function Zs(p){let m="",x="";for(;m=pe(p);)x+=m;return x}function b(p){const m=x=>{const I=p.currentChar();return I==="{"||I==="@"||I==="|"||I==="("||I===")"||!I||I===wt?x:(x+=I,p.next(),m(x))};return m("")}function k(p){E(p);const m=y(p,"|");return E(p),m}function A(p,m){let x=null;switch(p.currentChar()){case"{":return m.braceNest>=1&&f(ue.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),p.next(),x=d(m,2,"{"),E(p),m.braceNest++,x;case"}":return m.braceNest>0&&m.currentType===2&&f(ue.EMPTY_PLACEHOLDER,i(),0),p.next(),x=d(m,3,"}"),m.braceNest--,m.braceNest>0&&E(p),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),x;case"@":return m.braceNest>0&&f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),x=$(p,m)||h(m),m.braceNest=0,x;default:{let j=!0,L=!0,S=!0;if(Y(p))return m.braceNest>0&&f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),x=d(m,1,k(p)),m.braceNest=0,m.inLinked=!1,x;if(m.braceNest>0&&(m.currentType===4||m.currentType===5||m.currentType===6))return f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),m.braceNest=0,R(p,m);if(j=T(p,m))return x=d(m,4,It(p)),E(p),x;if(L=g(p,m))return x=d(m,5,rn(p)),E(p),x;if(S=C(p,m))return x=d(m,6,nt(p)),E(p),x;if(!j&&!L&&!S)return x=d(m,12,Ct(p)),f(ue.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x.value),E(p),x;break}}return x}function $(p,m){const{currentType:x}=m;let I=null;const j=p.currentChar();switch((x===7||x===8||x===11||x===9)&&(j===Fe||j===wt)&&f(ue.INVALID_LINKED_FORMAT,i(),0),j){case"@":return p.next(),I=d(m,7,"@"),m.inLinked=!0,I;case".":return E(p),p.next(),d(m,8,".");case":":return E(p),p.next(),d(m,9,":");default:return Y(p)?(I=d(m,1,k(p)),m.braceNest=0,m.inLinked=!1,I):D(p,m)||M(p,m)?(E(p),$(p,m)):P(p,m)?(E(p),d(m,11,Zs(p))):U(p,m)?(E(p),j==="{"?A(p,m)||I:d(m,10,b(p))):(x===7&&f(ue.INVALID_LINKED_FORMAT,i(),0),m.braceNest=0,m.inLinked=!1,R(p,m))}}function R(p,m){let x={type:13};if(m.braceNest>0)return A(p,m)||h(m);if(m.inLinked)return $(p,m)||h(m);switch(p.currentChar()){case"{":return A(p,m)||h(m);case"}":return f(ue.UNBALANCED_CLOSING_BRACE,i(),0),p.next(),d(m,3,"}");case"@":return $(p,m)||h(m);default:{if(Y(p))return x=d(m,1,k(p)),m.braceNest=0,m.inLinked=!1,x;if(ee(p))return d(m,0,Re(p));break}}return x}function N(){const{currentType:p,offset:m,startLoc:x,endLoc:I}=l;return l.lastType=p,l.lastOffset=m,l.lastStartLoc=x,l.lastEndLoc=I,l.offset=s(),l.startLoc=i(),r.currentChar()===Mt?d(l,13):R(r,l)}return{nextToken:N,currentOffset:s,currentPosition:i,context:u}}const Nm="parser",Dm=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function jm(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 Mm(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,w,T,g,...C){const D=_.currentPosition();if(D.offset+=g,D.column+=g,n){const P=t?Xi(T,D):null,M=Is(w,P,{domain:Nm,args:C});n(M)}}function s(_,w,T){const g={type:_};return t&&(g.start=w,g.end=w,g.loc={start:T,end:T}),g}function i(_,w,T,g){t&&(_.end=w,_.loc&&(_.loc.end=T))}function o(_,w){const T=_.context(),g=s(3,T.offset,T.startLoc);return g.value=w,i(g,_.currentOffset(),_.currentPosition()),g}function a(_,w){const T=_.context(),{lastOffset:g,lastStartLoc:C}=T,D=s(5,g,C);return D.index=parseInt(w,10),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function l(_,w){const T=_.context(),{lastOffset:g,lastStartLoc:C}=T,D=s(4,g,C);return D.key=w,_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function u(_,w){const T=_.context(),{lastOffset:g,lastStartLoc:C}=T,D=s(9,g,C);return D.value=w.replace(Dm,jm),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function c(_){const w=_.nextToken(),T=_.context(),{lastOffset:g,lastStartLoc:C}=T,D=s(8,g,C);return w.type!==11?(r(_,ue.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),D.value="",i(D,g,C),{nextConsumeToken:w,node:D}):(w.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,kt(w)),D.value=w.value||"",i(D,_.currentOffset(),_.currentPosition()),{node:D})}function f(_,w){const T=_.context(),g=s(7,T.offset,T.startLoc);return g.value=w,i(g,_.currentOffset(),_.currentPosition()),g}function d(_){const w=_.context(),T=s(6,w.offset,w.startLoc);let g=_.nextToken();if(g.type===8){const C=c(_);T.modifier=C.node,g=C.nextConsumeToken||_.nextToken()}switch(g.type!==9&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kt(g)),g=_.nextToken(),g.type===2&&(g=_.nextToken()),g.type){case 10:g.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kt(g)),T.key=f(_,g.value||"");break;case 4:g.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kt(g)),T.key=l(_,g.value||"");break;case 5:g.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kt(g)),T.key=a(_,g.value||"");break;case 6:g.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kt(g)),T.key=u(_,g.value||"");break;default:{r(_,ue.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const C=_.context(),D=s(7,C.offset,C.startLoc);return D.value="",i(D,C.offset,C.startLoc),T.key=D,i(T,C.offset,C.startLoc),{nextConsumeToken:g,node:T}}}return i(T,_.currentOffset(),_.currentPosition()),{node:T}}function h(_){const w=_.context(),T=w.currentType===1?_.currentOffset():w.offset,g=w.currentType===1?w.endLoc:w.startLoc,C=s(2,T,g);C.items=[];let D=null;do{const U=D||_.nextToken();switch(D=null,U.type){case 0:U.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kt(U)),C.items.push(o(_,U.value||""));break;case 5:U.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kt(U)),C.items.push(a(_,U.value||""));break;case 4:U.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kt(U)),C.items.push(l(_,U.value||""));break;case 6:U.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,kt(U)),C.items.push(u(_,U.value||""));break;case 7:{const Y=d(_);C.items.push(Y.node),D=Y.nextConsumeToken||null;break}}}while(w.currentType!==13&&w.currentType!==1);const P=w.currentType===1?w.lastOffset:_.currentOffset(),M=w.currentType===1?w.lastEndLoc:_.currentPosition();return i(C,P,M),C}function y(_,w,T,g){const C=_.context();let D=g.items.length===0;const P=s(1,w,T);P.cases=[],P.cases.push(g);do{const M=h(_);D||(D=M.items.length===0),P.cases.push(M)}while(C.currentType!==13);return D&&r(_,ue.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),i(P,_.currentOffset(),_.currentPosition()),P}function v(_){const w=_.context(),{offset:T,startLoc:g}=w,C=h(_);return w.currentType===13?C:y(_,T,g,C)}function E(_){const w=$m(_,Ae({},e)),T=w.context(),g=s(0,T.offset,T.startLoc);return t&&g.loc&&(g.loc.source=_),g.body=v(w),e.onCacheKey&&(g.cacheKey=e.onCacheKey(_)),T.currentType!==13&&r(w,ue.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,_[T.offset]||""),i(g,w.currentOffset(),w.currentPosition()),g}return{parse:E}}function kt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Fm(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function mc(e,t){for(let n=0;n<e.length;n++)Yi(e[n],t)}function Yi(e,t){switch(e.type){case 1:mc(e.cases,t),t.helper("plural");break;case 2:mc(e.items,t);break;case 6:{Yi(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 Um(e,t={}){const n=Fm(e);n.helper("normalize"),e.body&&Yi(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Km(e){const t=e.body;return t.type===2?gc(t):t.cases.forEach(n=>gc(n)),e}function gc(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=Zi(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Hn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Hn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Hn(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Hn(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Hn(t.key),t.k=t.key,delete t.key,t.modifier&&(Hn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Wm(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,i=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};i&&e.loc&&(o.source=e.loc.source);const a=()=>o;function l(v,E){o.code+=v}function u(v,E=!0){const _=E?r:"";l(s?_+" ".repeat(v):_)}function c(v=!0){const E=++o.indentLevel;v&&u(E)}function f(v=!0){const E=--o.indentLevel;v&&u(E)}function d(){u(o.indentLevel)}return{context:a,push:l,indent:c,deindent:f,newline:d,helper:v=>`_${v}`,needIndent:()=>o.needIndent}}function Hm(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),zn(e,t.key),t.modifier?(e.push(", "),zn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function zm(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(zn(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function Vm(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(zn(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function Bm(e,t){t.body?zn(e,t.body):e.push("null")}function zn(e,t){const{helper:n}=e;switch(t.type){case 0:Bm(e,t);break;case 1:Vm(e,t);break;case 2:zm(e,t);break;case 6:Hm(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Gm=(e,t={})=>{const n=F(t.mode)?t.mode:"normal",r=F(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
9
|
-
`,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],a=Wm(e,{filename:r,breakLineCode:s,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),o.length>0&&(a.push(`const { ${Zi(o.map(c=>`${c}: _${c}`),", ")} } = ctx`),a.newline()),a.push("return "),zn(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:l,map:u}=a.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function Zm(e,t={}){const n=Ae({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=Mm(n).parse(e);return r?(i&&Km(a),s&&Hn(a),{ast:a,code:""}):(Um(a,n),Gm(a,n))}function Xm(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(bn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(bn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function xt(e){return oe(e)&&Ji(e)===0&&(at(e,"b")||at(e,"body"))}const _c=["b","body"];function Ym(e){return en(e,_c)}const bc=["c","cases"];function Jm(e){return en(e,bc,[])}const yc=["s","static"];function qm(e){return en(e,yc)}const vc=["i","items"];function Qm(e){return en(e,vc,[])}const wc=["t","type"];function Ji(e){return en(e,wc)}const kc=["v","value"];function Cs(e,t){const n=en(e,kc);if(n!=null)return n;throw Sr(t)}const xc=["m","modifier"];function eg(e){return en(e,xc)}const Sc=["k","key"];function tg(e){const t=en(e,Sc);if(t)return t;throw Sr(6)}function en(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(at(e,s)&&e[s]!=null)return e[s]}return n}const Tc=[..._c,...bc,...yc,...vc,...Sc,...xc,...kc,...wc];function Sr(e){return new Error(`unhandled node type: ${e}`)}function qi(e){return n=>ng(n,e)}function ng(e,t){const n=Ym(t);if(n==null)throw Sr(0);if(Ji(n)===1){const i=Jm(n);return e.plural(i.reduce((o,a)=>[...o,Ec(e,a)],[]))}else return Ec(e,n)}function Ec(e,t){const n=qm(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Qm(t).reduce((s,i)=>[...s,Qi(e,i)],[]);return e.normalize(r)}}function Qi(e,t){const n=Ji(t);switch(n){case 3:return Cs(t,n);case 9:return Cs(t,n);case 4:{const r=t;if(at(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(at(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Sr(n)}case 5:{const r=t;if(at(r,"i")&&Ie(r.i))return e.interpolate(e.list(r.i));if(at(r,"index")&&Ie(r.index))return e.interpolate(e.list(r.index));throw Sr(n)}case 6:{const r=t,s=eg(r),i=tg(r);return e.linked(Qi(e,i),s?Qi(e,s):void 0,e.type)}case 7:return Cs(t,n);case 8:return Cs(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const rg=e=>e;let Os=de();function sg(e,t={}){let n=!1;const r=t.onError||Im;return t.onError=s=>{n=!0,r(s)},{...Zm(e,t),detectError:n}}function ig(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&F(e)){re(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||rg)(e),s=Os[r];if(s)return s;const{ast:i,detectError:o}=sg(e,{...t,location:!1,jit:!0}),a=qi(i);return o?a:Os[r]=a}else{const n=e.cacheKey;if(n){const r=Os[n];return r||(Os[n]=qi(e))}else return qi(e)}}let Tr=null;function og(e){Tr=e}function ag(e,t,n){Tr&&Tr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const lg=cg("function:translate");function cg(e){return t=>Tr&&Tr.emit(e,t)}const Ft={INVALID_ARGUMENT:Em,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},ug=24;function Ut(e){return Is(e,null,void 0)}function eo(e,t){return t.locale!=null?Ic(t.locale):Ic(e.locale)}let to;function Ic(e){if(F(e))return e;if(ye(e)){if(e.resolvedOnce&&to!=null)return to;if(e.constructor.name==="Function"){const t=e();if(xm(t))throw Ut(Ft.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return to=t}else throw Ut(Ft.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ut(Ft.NOT_SUPPORT_LOCALE_TYPE)}function fg(e,t,n){return[...new Set([n,...ke(t)?t:oe(t)?Object.keys(t):F(t)?[t]:[n]])]}function Cc(e,t,n){const r=F(n)?n:Er,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ke(o);)o=Oc(i,o,t);const a=ke(t)||!q(t)?t:t.default?t.default:null;o=F(a)?[a]:a,ke(o)&&Oc(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Oc(e,t,n){let r=!0;for(let s=0;s<t.length&&re(r);s++){const i=t[s];F(i)&&(r=dg(e,t[s],n))}return r}function dg(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=hg(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function hg(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(ke(n)||q(n))&&n[s]&&(r=n[s])}return r}const tn=[];tn[0]={w:[0],i:[3,0],"[":[4],o:[7]},tn[1]={w:[1],".":[2],"[":[4],o:[7]},tn[2]={w:[2],i:[3,0],0:[3,0]},tn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},tn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},tn[5]={"'":[4,0],o:8,l:[5,0]},tn[6]={'"':[4,0],o:8,l:[6,0]};const pg=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function mg(e){return pg.test(e)}function gg(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 _g(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 bg(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:mg(t)?gg(t):"*"+t}function yg(e){const t=[];let n=-1,r=0,s=0,i,o,a,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=a:o+=a},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,o===void 0||(o=bg(o),o===!1))return!1;d[1]()}};function h(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,a="\\"+y,d[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(l=_g(i),f=tn[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(a=i,c()===!1))))return;if(r===7)return t}}const Ac=new Map;function vg(e,t){return oe(e)?e[t]:null}function wg(e,t){if(!oe(e))return null;let n=Ac.get(t);if(n||(n=yg(t),n&&Ac.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(Tc.includes(o)&&xt(s))return null;const a=s[o];if(a===void 0||ye(s))return null;s=a,i++}return s}const kg="11.2.8",As=-1,Er="en-US",Pc="",Lc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function xg(){return{upper:(e,t)=>t==="text"&&F(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&F(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&F(e)?Lc(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?Lc(e.children):e}}let Rc;function Sg(e){Rc=e}let $c;function Tg(e){$c=e}let Nc;function Eg(e){Nc=e}let Dc=null;const Ig=e=>{Dc=e},Cg=()=>Dc;let jc=null;const Mc=e=>{jc=e},Og=()=>jc;let Fc=0;function Ag(e={}){const t=ye(e.onWarn)?e.onWarn:gm,n=F(e.version)?e.version:kg,r=F(e.locale)||ye(e.locale)?e.locale:Er,s=ye(r)?Er:r,i=ke(e.fallbackLocale)||q(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=q(e.messages)?e.messages:no(s),a=q(e.datetimeFormats)?e.datetimeFormats:no(s),l=q(e.numberFormats)?e.numberFormats:no(s),u=Ae(de(),e.modifiers,xg()),c=e.pluralRules||de(),f=ye(e.missing)?e.missing:null,d=re(e.missingWarn)||Wn(e.missingWarn)?e.missingWarn:!0,h=re(e.fallbackWarn)||Wn(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,v=!!e.unresolving,E=ye(e.postTranslation)?e.postTranslation:null,_=q(e.processor)?e.processor:null,w=re(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,g=ye(e.messageCompiler)?e.messageCompiler:Rc,C=ye(e.messageResolver)?e.messageResolver:$c||vg,D=ye(e.localeFallbacker)?e.localeFallbacker:Nc||fg,P=oe(e.fallbackContext)?e.fallbackContext:void 0,M=e,U=oe(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,Y=oe(M.__numberFormatters)?M.__numberFormatters:new Map,ee=oe(M.__meta)?M.__meta:{};Fc++;const Z={version:n,cid:Fc,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:h,fallbackFormat:y,unresolving:v,postTranslation:E,processor:_,warnHtmlMessage:w,escapeParameter:T,messageCompiler:g,messageResolver:C,localeFallbacker:D,fallbackContext:P,onWarn:t,__meta:ee};return Z.datetimeFormats=a,Z.numberFormats=l,Z.__datetimeFormatters=U,Z.__numberFormatters=Y,__INTLIFY_PROD_DEVTOOLS__&&ag(Z,n,ee),Z}const no=e=>({[e]:de()});function ro(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return F(a)?a:t}else return t}function Ir(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Pg(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Lg(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Pg(e,t[r]))return!0;return!1}function Uc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=so(...t),d=re(c.missingWarn)?c.missingWarn:e.missingWarn;re(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,y=eo(e,c),v=o(e,s,y);if(!F(l)||l==="")return new Intl.DateTimeFormat(y,f).format(u);let E={},_,w=null;const T="datetime format";for(let D=0;D<v.length&&(_=v[D],E=n[_]||{},w=E[l],!q(w));D++)ro(e,l,_,d,T);if(!q(w)||!F(_))return r?As:l;let g=`${_}__${l}`;Ss(f)||(g=`${g}__${JSON.stringify(f)}`);let C=a.get(g);return C||(C=new Intl.DateTimeFormat(_,Ae({},w,f)),a.set(g,C)),h?C.formatToParts(u):C.format(u)}const Kc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function so(...e){const[t,n,r,s]=e,i=de();let o=de(),a;if(F(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ut(Ft.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(u);try{a.toISOString()}catch{throw Ut(Ft.INVALID_ISO_DATE_ARGUMENT)}}else if(ym(t)){if(isNaN(t.getTime()))throw Ut(Ft.INVALID_DATE_ARGUMENT);a=t}else if(Ie(t))a=t;else throw Ut(Ft.INVALID_ARGUMENT);return F(n)?i.key=n:q(n)&&Object.keys(n).forEach(l=>{Kc.includes(l)?o[l]=n[l]:i[l]=n[l]}),F(r)?i.locale=r:q(r)&&(o=r),q(s)&&(o=s),[i.key||"",a,i,o]}function Wc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function Hc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=io(...t),d=re(c.missingWarn)?c.missingWarn:e.missingWarn;re(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,y=eo(e,c),v=o(e,s,y);if(!F(l)||l==="")return new Intl.NumberFormat(y,f).format(u);let E={},_,w=null;const T="number format";for(let D=0;D<v.length&&(_=v[D],E=n[_]||{},w=E[l],!q(w));D++)ro(e,l,_,d,T);if(!q(w)||!F(_))return r?As:l;let g=`${_}__${l}`;Ss(f)||(g=`${g}__${JSON.stringify(f)}`);let C=a.get(g);return C||(C=new Intl.NumberFormat(_,Ae({},w,f)),a.set(g,C)),h?C.formatToParts(u):C.format(u)}const zc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function io(...e){const[t,n,r,s]=e,i=de();let o=de();if(!Ie(t))throw Ut(Ft.INVALID_ARGUMENT);const a=t;return F(n)?i.key=n:q(n)&&Object.keys(n).forEach(l=>{zc.includes(l)?o[l]=n[l]:i[l]=n[l]}),F(r)?i.locale=r:q(r)&&(o=r),q(s)&&(o=s),[i.key||"",a,i,o]}function Vc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const Rg=e=>e,$g=e=>"",Ng="text",Dg=e=>e.length===0?"":Zi(e),jg=Sm;function Bc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Mg(e){const t=Ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ie(e.named.count)||Ie(e.named.n))?Ie(e.named.count)?e.named.count:Ie(e.named.n)?e.named.n:t:t}function Fg(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ug(e={}){const t=e.locale,n=Mg(e),r=oe(e.pluralRules)&&F(t)&&ye(e.pluralRules[t])?e.pluralRules[t]:Bc,s=oe(e.pluralRules)&&F(t)&&ye(e.pluralRules[t])?Bc:void 0,i=_=>_[r(n,_.length,s)],o=e.list||[],a=_=>o[_],l=e.named||de();Ie(e.pluralIndex)&&Fg(n,l);const u=_=>l[_];function c(_,w){const T=ye(e.messages)?e.messages(_,!!w):oe(e.messages)?e.messages[_]:!1;return T||(e.parent?e.parent.message(_):$g)}const f=_=>e.modifiers?e.modifiers[_]:Rg,d=q(e.processor)&&ye(e.processor.normalize)?e.processor.normalize:Dg,h=q(e.processor)&&ye(e.processor.interpolate)?e.processor.interpolate:jg,y=q(e.processor)&&F(e.processor.type)?e.processor.type:Ng,E={list:a,named:u,plural:i,linked:(_,...w)=>{const[T,g]=w;let C="text",D="";w.length===1?oe(T)?(D=T.modifier||D,C=T.type||C):F(T)&&(D=T||D):w.length===2&&(F(T)&&(D=T||D),F(g)&&(C=g||C));const P=c(_,!0)(E),M=C==="vnode"&&ke(P)&&D?P[0]:P;return D?f(D)(M,C):M},message:c,type:y,interpolate:h,normalize:d,values:Ae(de(),o,l)};return E}const Gc=()=>"",tt=e=>ye(e);function Zc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,u]=oo(...t),c=re(u.missingWarn)?u.missingWarn:e.missingWarn,f=re(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=re(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,y=F(u.default)||re(u.default)?re(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,v=n||y!=null&&(F(y)||ye(y)),E=eo(e,u);d&&Kg(u);let[_,w,T]=h?[l,E,a[E]||de()]:Xc(e,l,E,o,f,c),g=_,C=l;if(!h&&!(F(g)||xt(g)||tt(g))&&v&&(g=y,C=g),!h&&(!(F(g)||xt(g)||tt(g))||!F(w)))return s?As:l;let D=!1;const P=()=>{D=!0},M=tt(g)?g:Yc(e,l,w,g,C,P);if(D)return g;const U=zg(e,w,T,u),Y=Ug(U),ee=Wg(e,M,Y);let Z=r?r(ee,l):ee;if(d&&F(Z)&&(Z=wm(Z)),__INTLIFY_PROD_DEVTOOLS__){const ie={timestamp:Date.now(),key:F(l)?l:tt(g)?g.key:"",locale:w||(tt(g)?g.locale:""),format:F(g)?g:tt(g)?g.source:"",message:Z};ie.meta=Ae({},e.__meta,Cg()||{}),lg(ie)}return Z}function Kg(e){ke(e.list)?e.list=e.list.map(t=>F(t)?fc(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{F(e.named[t])&&(e.named[t]=fc(e.named[t]))})}function Xc(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=de(),d,h=null;const y="translate";for(let v=0;v<c.length&&(d=c[v],f=o[d]||de(),(h=l(f,t))===null&&(h=f[t]),!(F(h)||xt(h)||tt(h)));v++)if(!Lg(d,c)){const E=ro(e,t,d,i,y);E!==t&&(h=E)}return[h,d,f]}function Yc(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=e;if(tt(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=(()=>r);return u.locale=n,u.key=t,u}const l=o(r,Hg(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function Wg(e,t,n){return t(n)}function oo(...e){const[t,n,r]=e,s=de();if(!F(t)&&!Ie(t)&&!tt(t)&&!xt(t))throw Ut(Ft.INVALID_ARGUMENT);const i=Ie(t)?String(t):(tt(t),t);return Ie(n)?s.plural=n:F(n)?s.default=n:q(n)&&!Ss(n)?s.named=n:ke(n)&&(s.list=n),Ie(r)?s.plural=r:F(r)?s.default=r:q(r)&&Ae(s,r),[i,s]}function Hg(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>_m(t,n,o)}}function zg(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:s,pluralRules:i,messages:(h,y)=>{let v=o(n,h);if(v==null&&(c||y)){const[,,E]=Xc(c||e,h,t,a,l,u);v=o(E,h)}if(F(v)||xt(v)){let E=!1;const w=Yc(e,h,t,v,h,()=>{E=!0});return E?Gc:w}else return tt(v)?v:Gc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ie(r.plural)&&(d.pluralIndex=r.plural),d}Xm();const Vg="11.2.8";function Bg(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(bn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(bn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(bn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(bn().__INTLIFY_PROD_DEVTOOLS__=!1)}const ze={UNEXPECTED_RETURN_TYPE:ug,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Je(e,...t){return Is(e,null,void 0)}const ao=Qt("__translateVNode"),lo=Qt("__datetimeParts"),co=Qt("__numberParts"),Jc=Qt("__setPluralRules"),qc=Qt("__injectWithOption"),uo=Qt("__dispose");function Cr(e){if(!oe(e)||xt(e))return e;for(const t in e)if(at(e,t))if(!t.includes("."))oe(e[t])&&Cr(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=de()),!oe(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(xt(s)?Tc.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!xt(s)){const o=s[n[r]];oe(o)&&Cr(o)}}return e}function fo(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=q(n)?n:ke(r)?de():{[e]:de()};if(ke(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||de(),Es(u,o[l])):Es(u,o)}else F(a)&&Es(JSON.parse(a),o)}),s==null&&i)for(const a in o)at(o,a)&&Cr(o[a]);return o}function Qc(e){return e.type}function eu(e,t,n){let r=oe(t.messages)?t.messages:de();"__i18nGlobal"in n&&(r=fo(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(oe(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(oe(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function tu(e){return Te(ur,null,e,0)}function Or(){return Ci()}const nu="__INTLIFY_META__",ru=()=>[],Gg=()=>!1;let su=0;function iu(e){return((t,n,r,s)=>e(n,r,Or()||void 0,s))}const Zg=()=>{const e=Or();let t=null;return e&&(t=Qc(e)[nu])?{[nu]:t}:null};function ho(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=xs?J:xd;let o=re(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:F(e.locale)?e.locale:Er),l=i(t&&o?t.fallbackLocale.value:F(e.fallbackLocale)||ke(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(fo(a.value,e)),c=i(q(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(q(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:re(e.missingWarn)||Wn(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:re(e.fallbackWarn)||Wn(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:re(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,E=ye(e.missing)?e.missing:null,_=ye(e.missing)?iu(e.missing):null,w=ye(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:re(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const C=t?t.modifiers:q(e.modifiers)?e.modifiers:{};let D=e.pluralRules||t&&t.pluralRules,P;P=(()=>{r&&Mc(null);const S={version:Vg,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:D,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:h,fallbackFormat:v,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:T,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=c.value,S.numberFormats=f.value,S.__datetimeFormatters=q(P)?P.__datetimeFormatters:void 0,S.__numberFormatters=q(P)?P.__numberFormatters:void 0;const O=Ag(S);return r&&Mc(O),O})(),Ir(P,a.value,l.value);function U(){return[a.value,l.value,u.value,c.value,f.value]}const Y=et({get:()=>a.value,set:S=>{P.locale=S,a.value=S}}),ee=et({get:()=>l.value,set:S=>{P.fallbackLocale=S,l.value=S,Ir(P,a.value,S)}}),Z=et(()=>u.value),ie=et(()=>c.value),pe=et(()=>f.value);function He(){return ye(w)?w:null}function ae(S){w=S,P.postTranslation=S}function H(){return E}function ne(S){S!==null&&(_=iu(S)),E=S,P.missing=_}const xe=(S,O,K,z,Q,Pe)=>{U();let Ee;try{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=t?Og():void 0),Ee=S(P)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=void 0)}if(K!=="translate exists"&&Ie(Ee)&&Ee===As||K==="translate exists"&&!Ee){const[rt,ft]=O();return t&&y?z(t):Q(rt)}else{if(Pe(Ee))return Ee;throw Je(ze.UNEXPECTED_RETURN_TYPE)}};function ut(...S){return xe(O=>Reflect.apply(Zc,null,[O,...S]),()=>oo(...S),"translate",O=>Reflect.apply(O.t,O,[...S]),O=>O,O=>F(O))}function Ve(...S){const[O,K,z]=S;if(z&&!oe(z))throw Je(ze.INVALID_ARGUMENT);return ut(O,K,Ae({resolvedMessage:!0},z||{}))}function Re(...S){return xe(O=>Reflect.apply(Uc,null,[O,...S]),()=>so(...S),"datetime format",O=>Reflect.apply(O.d,O,[...S]),()=>Pc,O=>F(O)||ke(O))}function It(...S){return xe(O=>Reflect.apply(Hc,null,[O,...S]),()=>io(...S),"number format",O=>Reflect.apply(O.n,O,[...S]),()=>Pc,O=>F(O)||ke(O))}function rn(S){return S.map(O=>F(O)||Ie(O)||re(O)?tu(String(O)):O)}const nt={normalize:rn,interpolate:S=>S,type:"vnode"};function sn(...S){return xe(O=>{let K;const z=O;try{z.processor=nt,K=Reflect.apply(Zc,null,[z,...S])}finally{z.processor=null}return K},()=>oo(...S),"translate",O=>O[ao](...S),O=>[tu(O)],O=>ke(O))}function on(...S){return xe(O=>Reflect.apply(Hc,null,[O,...S]),()=>io(...S),"number format",O=>O[co](...S),ru,O=>F(O)||ke(O))}function Xn(...S){return xe(O=>Reflect.apply(Uc,null,[O,...S]),()=>so(...S),"datetime format",O=>O[lo](...S),ru,O=>F(O)||ke(O))}function Ct(S){D=S,P.pluralRules=D}function Zs(S,O){return xe(()=>{if(!S)return!1;const K=F(O)?O:a.value,z=A(K),Q=P.messageResolver(z,S);return xt(Q)||tt(Q)||F(Q)},()=>[S],"translate exists",K=>Reflect.apply(K.te,K,[S,O]),Gg,K=>re(K))}function b(S){let O=null;const K=Cc(P,l.value,a.value);for(let z=0;z<K.length;z++){const Q=u.value[K[z]]||{},Pe=P.messageResolver(Q,S);if(Pe!=null){O=Pe;break}}return O}function k(S){const O=b(S);return O??(t?t.tm(S)||{}:{})}function A(S){return u.value[S]||{}}function $(S,O){if(s){const K={[S]:O};for(const z in K)at(K,z)&&Cr(K[z]);O=K[S]}u.value[S]=O,P.messages=u.value}function R(S,O){u.value[S]=u.value[S]||{};const K={[S]:O};if(s)for(const z in K)at(K,z)&&Cr(K[z]);O=K[S],Es(O,u.value[S]),P.messages=u.value}function N(S){return c.value[S]||{}}function p(S,O){c.value[S]=O,P.datetimeFormats=c.value,Wc(P,S,O)}function m(S,O){c.value[S]=Ae(c.value[S]||{},O),P.datetimeFormats=c.value,Wc(P,S,O)}function x(S){return f.value[S]||{}}function I(S,O){f.value[S]=O,P.numberFormats=f.value,Vc(P,S,O)}function j(S,O){f.value[S]=Ae(f.value[S]||{},O),P.numberFormats=f.value,Vc(P,S,O)}su++,t&&xs&&(Ze(t.locale,S=>{o&&(a.value=S,P.locale=S,Ir(P,a.value,l.value))}),Ze(t.fallbackLocale,S=>{o&&(l.value=S,P.fallbackLocale=S,Ir(P,a.value,l.value))}));const L={id:su,locale:Y,fallbackLocale:ee,get inheritLocale(){return o},set inheritLocale(S){o=S,S&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,Ir(P,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Z,get modifiers(){return C},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(S){d=S,P.missingWarn=d},get fallbackWarn(){return h},set fallbackWarn(S){h=S,P.fallbackWarn=h},get fallbackRoot(){return y},set fallbackRoot(S){y=S},get fallbackFormat(){return v},set fallbackFormat(S){v=S,P.fallbackFormat=v},get warnHtmlMessage(){return T},set warnHtmlMessage(S){T=S,P.warnHtmlMessage=S},get escapeParameter(){return g},set escapeParameter(S){g=S,P.escapeParameter=S},t:ut,getLocaleMessage:A,setLocaleMessage:$,mergeLocaleMessage:R,getPostTranslationHandler:He,setPostTranslationHandler:ae,getMissingHandler:H,setMissingHandler:ne,[Jc]:Ct};return L.datetimeFormats=ie,L.numberFormats=pe,L.rt=Ve,L.te=Zs,L.tm=k,L.d=Re,L.n=It,L.getDateTimeFormat=N,L.setDateTimeFormat=p,L.mergeDateTimeFormat=m,L.getNumberFormat=x,L.setNumberFormat=I,L.mergeNumberFormat=j,L[qc]=n,L[ao]=sn,L[lo]=Xn,L[co]=on,L}function Xg(e){const t=F(e.locale)?e.locale:Er,n=F(e.fallbackLocale)||ke(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ye(e.missing)?e.missing:void 0,s=re(e.silentTranslationWarn)||Wn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=re(e.silentFallbackWarn)||Wn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=re(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=q(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=ye(e.postTranslation)?e.postTranslation:void 0,f=F(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,h=re(e.sync)?e.sync:!0;let y=e.messages;if(q(e.sharedMessages)){const C=e.sharedMessages;y=Object.keys(C).reduce((P,M)=>{const U=P[M]||(P[M]={});return Ae(U,C[M]),P},y||{})}const{__i18n:v,__root:E,__injectWithOption:_}=e,w=e.datetimeFormats,T=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:g,datetimeFormats:w,numberFormats:T,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:h,__i18n:v,__root:E,__injectWithOption:_}}function po(e={}){const t=ho(Xg(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return re(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=re(s)?!s:s},get silentFallbackWarn(){return re(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=re(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,i){return t.te(s,i)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,i){t.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){t.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,i){t.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){t.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,i){t.setNumberFormat(s,i)},mergeNumberFormat(s,i){t.mergeNumberFormat(s,i)}};return r.__extender=n,r}function Yg(e,t,n){return{beforeCreate(){const r=Or();if(!r)throw Je(ze.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=t,this===this.$root)this.$i18n=ou(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=po(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ou(e,s);else{this.$i18n=po({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&eu(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Or();if(!r)throw Je(ze.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function ou(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[Jc](t.pluralizationRules||e.pluralizationRules);const n=fo(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 mo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Jg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ce?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},de())}function au(){return Ce}const lu=_t({name:"i18n-t",props:Ae({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie(e)||!isNaN(e)}},mo),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||St({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f[0]!=="_"),o=de();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=F(e.plural)?+e.plural:e.plural);const a=Jg(t,i),l=s[ao](e.keypath,a,o),u=Ae(de(),r),c=F(e.tag)||oe(e.tag)?e.tag:au();return gr(c,u,l)}}});function qg(e){return ke(e)&&!F(e[0])}function cu(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a=de();e.locale&&(o.locale=e.locale),F(e.format)?o.key=e.format:oe(e.format)&&(F(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,h)=>n.includes(h)?Ae(de(),d,{[h]:e.format[h]}):d,de()));const l=r(e.value,o,a);let u=[o.key];ke(l)?u=l.map((d,h)=>{const y=s[d.type],v=y?y({[d.type]:d.value,index:h,parts:l}):[d.value];return qg(v)&&(v[0].key=`${d.type}-${h}`),v}):F(l)&&(u=[l]);const c=Ae(de(),i),f=F(e.tag)||oe(e.tag)?e.tag:au();return gr(f,c,u)}}const uu=_t({name:"i18n-n",props:Ae({value:{type:Number,required:!0},format:{type:[String,Object]}},mo),setup(e,t){const n=e.i18n||St({useScope:e.scope,__useComponent:!0});return cu(e,t,zc,(...r)=>n[co](...r))}});function Qg(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 e_(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw Je(ze.UNEXPECTED_ERROR);const u=Qg(e,a.$),c=fu(l);return[Reflect.apply(u.t,u,[...du(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);xs&&e.global===u&&(o.__i18nWatcher=Ze(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{xs&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,u=fu(a);o.textContent=Reflect.apply(l.t,l,[...du(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function fu(e){if(F(e))return{path:e};if(q(e)){if(!("path"in e))throw Je(ze.REQUIRED_VALUE,"path");return e}else throw Je(ze.INVALID_VALUE)}function du(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return F(n)&&(o.locale=n),Ie(s)&&(o.plural=s),Ie(i)&&(o.plural=i),[t,a,o]}function t_(e,t,...n){const r=q(n[0])?n[0]:{};(!re(r.globalInstall)||r.globalInstall)&&([lu.name,"I18nT"].forEach(i=>e.component(i,lu)),[uu.name,"I18nN"].forEach(i=>e.component(i,uu)),[pu.name,"I18nD"].forEach(i=>e.component(i,pu))),e.directive("t",e_(t))}const n_=Qt("global-vue-i18n");function r_(e={}){const t=__VUE_I18N_LEGACY_API__&&re(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=re(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,i]=s_(e,t),o=Qt("");function a(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,c),q(d[0])){const v=d[0];c.__composerExtend=v.__composerExtend,c.__vueI18nExtend=v.__vueI18nExtend}let h=null;!t&&n&&(h=d_(f,c.global)),__VUE_I18N_FULL_INSTALL__&&t_(f,c,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Yg(i,i.__composer,c));const y=f.unmount;f.unmount=()=>{h&&h(),c.dispose(),y()}},get global(){return i},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:u};return c}function St(e={}){const t=Or();if(t==null)throw Je(ze.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Je(ze.NOT_INSTALLED);const n=i_(t),r=a_(n),s=Qc(t),i=o_(e,s);if(i==="global")return eu(r,e,s),r;if(i==="parent"){let l=l_(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Ae({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=ho(l),o.__composerExtend&&(a[uo]=o.__composerExtend(a)),u_(o,t,a),o.__setInstance(t,a)}return a}function s_(e,t){const n=ti(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>po(e)):n.run(()=>ho(e));if(r==null)throw Je(ze.UNEXPECTED_ERROR);return[n,r]}function i_(e){const t=je(e.isCE?n_:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Je(e.isCE?ze.NOT_INSTALLED_WITH_PROVIDE:ze.UNEXPECTED_ERROR);return t}function o_(e,t){return Ss(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function a_(e){return e.mode==="composition"?e.global:e.global.__composer}function l_(e,t,n=!1){let r=null;const s=t.root;let i=c_(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[qc]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function c_(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function u_(e,t,n){Nn(()=>{},t),_i(()=>{const r=n;e.__deleteInstance(t);const s=r[uo];s&&(s(),delete r[uo])},t)}const f_=["locale","fallbackLocale","availableLocales"],hu=["t","rt","d","n","tm","te"];function d_(e,t){const n=Object.create(null);return f_.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Je(ze.UNEXPECTED_ERROR);const o=we(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,hu.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Je(ze.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,hu.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const pu=_t({name:"i18n-d",props:Ae({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},mo),setup(e,t){const n=e.i18n||St({useScope:e.scope,__useComponent:!0});return cu(e,t,Kc,(...r)=>n[lo](...r))}});if(Bg(),Sg(ig),Tg(wg),Eg(Cc),__INTLIFY_PROD_DEVTOOLS__){const e=bn();e.__INTLIFY__=!0,og(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function mu(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}function h_(){this.__data__=[],this.size=0}function gu(e,t){return e===t||e!==e&&t!==t}function Ps(e,t){for(var n=e.length;n--;)if(gu(e[n][0],t))return n;return-1}var p_=Array.prototype,m_=p_.splice;function g_(e){var t=this.__data__,n=Ps(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():m_.call(t,n,1),--this.size,!0}function __(e){var t=this.__data__,n=Ps(t,e);return n<0?void 0:t[n][1]}function b_(e){return Ps(this.__data__,e)>-1}function y_(e,t){var n=this.__data__,r=Ps(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Kt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kt.prototype.clear=h_,Kt.prototype.delete=g_,Kt.prototype.get=__,Kt.prototype.has=b_,Kt.prototype.set=y_;function v_(){this.__data__=new Kt,this.size=0}function w_(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function k_(e){return this.__data__.get(e)}function x_(e){return this.__data__.has(e)}var _u=typeof global=="object"&&global&&global.Object===Object&&global,S_=typeof self=="object"&&self&&self.Object===Object&&self,Tt=_u||S_||Function("return this")(),Et=Tt.Symbol,bu=Object.prototype,T_=bu.hasOwnProperty,E_=bu.toString,Ar=Et?Et.toStringTag:void 0;function I_(e){var t=T_.call(e,Ar),n=e[Ar];try{e[Ar]=void 0;var r=!0}catch{}var s=E_.call(e);return r&&(t?e[Ar]=n:delete e[Ar]),s}var C_=Object.prototype,O_=C_.toString;function A_(e){return O_.call(e)}var P_="[object Null]",L_="[object Undefined]",yu=Et?Et.toStringTag:void 0;function yn(e){return e==null?e===void 0?L_:P_:yu&&yu in Object(e)?I_(e):A_(e)}function Ls(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var R_="[object AsyncFunction]",$_="[object Function]",N_="[object GeneratorFunction]",D_="[object Proxy]";function vu(e){if(!Ls(e))return!1;var t=yn(e);return t==$_||t==N_||t==R_||t==D_}var go=Tt["__core-js_shared__"],wu=(function(){var e=/[^.]+$/.exec(go&&go.keys&&go.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function j_(e){return!!wu&&wu in e}var M_=Function.prototype,F_=M_.toString;function vn(e){if(e!=null){try{return F_.call(e)}catch{}try{return e+""}catch{}}return""}var U_=/[\\^$.*+?()[\]{}|]/g,K_=/^\[object .+?Constructor\]$/,W_=Function.prototype,H_=Object.prototype,z_=W_.toString,V_=H_.hasOwnProperty,B_=RegExp("^"+z_.call(V_).replace(U_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function G_(e){if(!Ls(e)||j_(e))return!1;var t=vu(e)?B_:K_;return t.test(vn(e))}function Z_(e,t){return e?.[t]}function wn(e,t){var n=Z_(e,t);return G_(n)?n:void 0}var Pr=wn(Tt,"Map"),Lr=wn(Object,"create");function X_(){this.__data__=Lr?Lr(null):{},this.size=0}function Y_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var J_="__lodash_hash_undefined__",q_=Object.prototype,Q_=q_.hasOwnProperty;function eb(e){var t=this.__data__;if(Lr){var n=t[e];return n===J_?void 0:n}return Q_.call(t,e)?t[e]:void 0}var tb=Object.prototype,nb=tb.hasOwnProperty;function rb(e){var t=this.__data__;return Lr?t[e]!==void 0:nb.call(t,e)}var sb="__lodash_hash_undefined__";function ib(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Lr&&t===void 0?sb:t,this}function kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kn.prototype.clear=X_,kn.prototype.delete=Y_,kn.prototype.get=eb,kn.prototype.has=rb,kn.prototype.set=ib;function ob(){this.size=0,this.__data__={hash:new kn,map:new(Pr||Kt),string:new kn}}function ab(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rs(e,t){var n=e.__data__;return ab(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lb(e){var t=Rs(this,e).delete(e);return this.size-=t?1:0,t}function cb(e){return Rs(this,e).get(e)}function ub(e){return Rs(this,e).has(e)}function fb(e,t){var n=Rs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nn.prototype.clear=ob,nn.prototype.delete=lb,nn.prototype.get=cb,nn.prototype.has=ub,nn.prototype.set=fb;var db=200;function hb(e,t){var n=this.__data__;if(n instanceof Kt){var r=n.__data__;if(!Pr||r.length<db-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new nn(r)}return n.set(e,t),this.size=n.size,this}function Vn(e){var t=this.__data__=new Kt(e);this.size=t.size}Vn.prototype.clear=v_,Vn.prototype.delete=w_,Vn.prototype.get=k_,Vn.prototype.has=x_,Vn.prototype.set=hb;function pb(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var $s=(function(){try{var e=wn(Object,"defineProperty");return e({},"",{}),e}catch{}})();function ku(e,t,n){t=="__proto__"&&$s?$s(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var mb=Object.prototype,gb=mb.hasOwnProperty;function xu(e,t,n){var r=e[t];(!(gb.call(e,t)&&gu(r,n))||n===void 0&&!(t in e))&&ku(e,t,n)}function _b(e,t,n,r){var s=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),s?ku(n,a,l):xu(n,a,l)}return n}function bb(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function xn(e){return e!=null&&typeof e=="object"}var yb="[object Arguments]";function Su(e){return xn(e)&&yn(e)==yb}var Tu=Object.prototype,vb=Tu.hasOwnProperty,wb=Tu.propertyIsEnumerable,Eu=Su((function(){return arguments})())?Su:function(e){return xn(e)&&vb.call(e,"callee")&&!wb.call(e,"callee")},Sn=Array.isArray;function kb(){return!1}var Iu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cu=Iu&&typeof module=="object"&&module&&!module.nodeType&&module,xb=Cu&&Cu.exports===Iu,Ou=xb?Tt.Buffer:void 0,Sb=Ou?Ou.isBuffer:void 0,Au=Sb||kb,Tb=9007199254740991,Eb=/^(?:0|[1-9]\d*)$/;function Ib(e,t){var n=typeof e;return t=t??Tb,!!t&&(n=="number"||n!="symbol"&&Eb.test(e))&&e>-1&&e%1==0&&e<t}var Cb=9007199254740991;function Pu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Cb}var Ob="[object Arguments]",Ab="[object Array]",Pb="[object Boolean]",Lb="[object Date]",Rb="[object Error]",$b="[object Function]",Nb="[object Map]",Db="[object Number]",jb="[object Object]",Mb="[object RegExp]",Fb="[object Set]",Ub="[object String]",Kb="[object WeakMap]",Wb="[object ArrayBuffer]",Hb="[object DataView]",zb="[object Float32Array]",Vb="[object Float64Array]",Bb="[object Int8Array]",Gb="[object Int16Array]",Zb="[object Int32Array]",Xb="[object Uint8Array]",Yb="[object Uint8ClampedArray]",Jb="[object Uint16Array]",qb="[object Uint32Array]",ve={};ve[zb]=ve[Vb]=ve[Bb]=ve[Gb]=ve[Zb]=ve[Xb]=ve[Yb]=ve[Jb]=ve[qb]=!0,ve[Ob]=ve[Ab]=ve[Wb]=ve[Pb]=ve[Hb]=ve[Lb]=ve[Rb]=ve[$b]=ve[Nb]=ve[Db]=ve[jb]=ve[Mb]=ve[Fb]=ve[Ub]=ve[Kb]=!1;function Qb(e){return xn(e)&&Pu(e.length)&&!!ve[yn(e)]}function _o(e){return function(t){return e(t)}}var Lu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rr=Lu&&typeof module=="object"&&module&&!module.nodeType&&module,ey=Rr&&Rr.exports===Lu,bo=ey&&_u.process,Bn=(function(){try{var e=Rr&&Rr.require&&Rr.require("util").types;return e||bo&&bo.binding&&bo.binding("util")}catch{}})(),Ru=Bn&&Bn.isTypedArray,ty=Ru?_o(Ru):Qb;function ny(e,t){var n=Sn(e),r=!n&&Eu(e),s=!n&&!r&&Au(e),i=!n&&!r&&!s&&ty(e),o=n||r||s||i,a=o?bb(e.length,String):[],l=a.length;for(var u in e)o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ib(u,l))||a.push(u);return a}var ry=Object.prototype;function sy(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ry;return e===n}function iy(e,t){return function(n){return e(t(n))}}function oy(e){return e!=null&&Pu(e.length)&&!vu(e)}function ay(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ly=Object.prototype,cy=ly.hasOwnProperty;function uy(e){if(!Ls(e))return ay(e);var t=sy(e),n=[];for(var r in e)r=="constructor"&&(t||!cy.call(e,r))||n.push(r);return n}function fy(e){return oy(e)?ny(e):uy(e)}var $u=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nu=$u&&typeof module=="object"&&module&&!module.nodeType&&module,dy=Nu&&Nu.exports===$u,Du=dy?Tt.Buffer:void 0;Du&&Du.allocUnsafe;function hy(e,t){return e.slice()}function py(e,t){for(var n=-1,r=e==null?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}function ju(){return[]}var my=Object.prototype,gy=my.propertyIsEnumerable,Mu=Object.getOwnPropertySymbols,_y=Mu?function(e){return e==null?[]:(e=Object(e),py(Mu(e),function(t){return gy.call(e,t)}))}:ju;function yo(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var Fu=iy(Object.getPrototypeOf,Object),by=Object.getOwnPropertySymbols,yy=by?function(e){for(var t=[];e;)yo(t,_y(e)),e=Fu(e);return t}:ju;function vy(e,t,n){var r=t(e);return Sn(e)?r:yo(r,n(e))}function Uu(e){return vy(e,fy,yy)}var vo=wn(Tt,"DataView"),wo=wn(Tt,"Promise"),ko=wn(Tt,"Set"),xo=wn(Tt,"WeakMap"),Ku="[object Map]",wy="[object Object]",Wu="[object Promise]",Hu="[object Set]",zu="[object WeakMap]",Vu="[object DataView]",ky=vn(vo),xy=vn(Pr),Sy=vn(wo),Ty=vn(ko),Ey=vn(xo),Wt=yn;(vo&&Wt(new vo(new ArrayBuffer(1)))!=Vu||Pr&&Wt(new Pr)!=Ku||wo&&Wt(wo.resolve())!=Wu||ko&&Wt(new ko)!=Hu||xo&&Wt(new xo)!=zu)&&(Wt=function(e){var t=yn(e),n=t==wy?e.constructor:void 0,r=n?vn(n):"";if(r)switch(r){case ky:return Vu;case xy:return Ku;case Sy:return Wu;case Ty:return Hu;case Ey:return zu}return t});var Iy=Object.prototype,Cy=Iy.hasOwnProperty;function Oy(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Cy.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Bu=Tt.Uint8Array;function So(e){var t=new e.constructor(e.byteLength);return new Bu(t).set(new Bu(e)),t}function Ay(e,t){var n=So(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Py=/\w*$/;function Ly(e){var t=new e.constructor(e.source,Py.exec(e));return t.lastIndex=e.lastIndex,t}var Gu=Et?Et.prototype:void 0,Zu=Gu?Gu.valueOf:void 0;function Ry(e){return Zu?Object(Zu.call(e)):{}}function $y(e,t){var n=So(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var Ny="[object Boolean]",Dy="[object Date]",jy="[object Map]",My="[object Number]",Fy="[object RegExp]",Uy="[object Set]",Ky="[object String]",Wy="[object Symbol]",Hy="[object ArrayBuffer]",zy="[object DataView]",Vy="[object Float32Array]",By="[object Float64Array]",Gy="[object Int8Array]",Zy="[object Int16Array]",Xy="[object Int32Array]",Yy="[object Uint8Array]",Jy="[object Uint8ClampedArray]",qy="[object Uint16Array]",Qy="[object Uint32Array]";function ev(e,t,n){var r=e.constructor;switch(t){case Hy:return So(e);case Ny:case Dy:return new r(+e);case zy:return Ay(e);case Vy:case By:case Gy:case Zy:case Xy:case Yy:case Jy:case qy:case Qy:return $y(e);case jy:return new r;case My:case Ky:return new r(e);case Fy:return Ly(e);case Uy:return new r;case Wy:return Ry(e)}}var tv="[object Map]";function nv(e){return xn(e)&&Wt(e)==tv}var Xu=Bn&&Bn.isMap,rv=Xu?_o(Xu):nv,sv="[object Set]";function iv(e){return xn(e)&&Wt(e)==sv}var Yu=Bn&&Bn.isSet,ov=Yu?_o(Yu):iv,Ju="[object Arguments]",av="[object Array]",lv="[object Boolean]",cv="[object Date]",uv="[object Error]",qu="[object Function]",fv="[object GeneratorFunction]",dv="[object Map]",hv="[object Number]",Qu="[object Object]",pv="[object RegExp]",mv="[object Set]",gv="[object String]",_v="[object Symbol]",bv="[object WeakMap]",yv="[object ArrayBuffer]",vv="[object DataView]",wv="[object Float32Array]",kv="[object Float64Array]",xv="[object Int8Array]",Sv="[object Int16Array]",Tv="[object Int32Array]",Ev="[object Uint8Array]",Iv="[object Uint8ClampedArray]",Cv="[object Uint16Array]",Ov="[object Uint32Array]",ge={};ge[Ju]=ge[av]=ge[yv]=ge[vv]=ge[lv]=ge[cv]=ge[wv]=ge[kv]=ge[xv]=ge[Sv]=ge[Tv]=ge[dv]=ge[hv]=ge[Qu]=ge[pv]=ge[mv]=ge[gv]=ge[_v]=ge[Ev]=ge[Iv]=ge[Cv]=ge[Ov]=!0,ge[uv]=ge[qu]=ge[bv]=!1;function Ns(e,t,n,r,s,i){var o;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!Ls(e))return e;var a=Sn(e);if(a)o=Oy(e);else{var l=Wt(e),u=l==qu||l==fv;if(Au(e))return hy(e);if(l==Qu||l==Ju||u&&!s)o={};else{if(!ge[l])return s?e:{};o=ev(e,l)}}i||(i=new Vn);var c=i.get(e);if(c)return c;i.set(e,o),ov(e)?e.forEach(function(h){o.add(Ns(h,t,n,h,e,i))}):rv(e)&&e.forEach(function(h,y){o.set(y,Ns(h,t,n,y,e,i))});var f=Uu,d=a?void 0:f(e);return pb(d||e,function(h,y){d&&(y=h,h=e[y]),xu(o,y,Ns(h,t,n,y,e,i))}),o}var Av="[object Symbol]";function To(e){return typeof e=="symbol"||xn(e)&&yn(e)==Av}var Pv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lv=/^\w*$/;function Rv(e,t){if(Sn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||To(e)?!0:Lv.test(e)||!Pv.test(e)||t!=null&&e in Object(t)}var $v="Expected a function";function Eo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($v);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(Eo.Cache||nn),n}Eo.Cache=nn;var Nv=500;function Dv(e){var t=Eo(e,function(r){return n.size===Nv&&n.clear(),r}),n=t.cache;return t}var jv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mv=/\\(\\)?/g,Fv=Dv(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jv,function(n,r,s,i){t.push(s?i.replace(Mv,"$1"):r||n)}),t}),ef=Et?Et.prototype:void 0,tf=ef?ef.toString:void 0;function nf(e){if(typeof e=="string")return e;if(Sn(e))return mu(e,nf)+"";if(To(e))return tf?tf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Uv(e){return e==null?"":nf(e)}function Io(e,t){return Sn(e)?e:Rv(e,t)?[e]:Fv(Uv(e))}function Kv(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function rf(e){if(typeof e=="string"||To(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Wv(e,t){t=Io(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[rf(t[n++])];return n&&n==r?e:void 0}function Hv(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(s);++r<s;)i[r]=e[r+t];return i}function zv(e,t){return t.length<2?e:Wv(e,Hv(t,0,-1))}var Vv=Object.prototype,Bv=Vv.hasOwnProperty;function Gv(e,t){t=Io(t,e);var n=-1,r=t.length;if(!r)return!0;for(var s=e==null||typeof e!="object"&&typeof e!="function";++n<r;){var i=t[n];if(typeof i=="string"){if(i==="__proto__"&&!Bv.call(e,"__proto__"))return!1;if(i==="constructor"&&n+1<r&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(s&&n===0)continue;return!1}}}var o=zv(e,t);return o==null||delete o[rf(Kv(t))]}var Zv="[object Object]",Xv=Function.prototype,Yv=Object.prototype,sf=Xv.toString,Jv=Yv.hasOwnProperty,qv=sf.call(Object);function Qv(e){if(!xn(e)||yn(e)!=Zv)return!1;var t=Fu(e);if(t===null)return!0;var n=Jv.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&sf.call(n)==qv}function ew(e){return Qv(e)?void 0:e}var of=Et?Et.isConcatSpreadable:void 0;function tw(e){return Sn(e)||Eu(e)||!!(of&&e&&e[of])}function nw(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=tw),s||(s=[]);++i<o;){var a=e[i];n(a)?yo(s,a):s[s.length]=a}return s}function rw(e){var t=e==null?0:e.length;return t?nw(e):[]}function sw(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var af=Math.max;function iw(e,t,n){return t=af(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=af(r.length-t,0),o=Array(i);++s<i;)o[s]=r[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=r[s];return a[t]=n(o),sw(e,this,a)}}function ow(e){return function(){return e}}function aw(e){return e}var lw=$s?function(e,t){return $s(e,"toString",{configurable:!0,enumerable:!1,value:ow(t),writable:!0})}:aw,cw=800,uw=16,fw=Date.now;function dw(e){var t=0,n=0;return function(){var r=fw(),s=uw-(r-n);if(n=r,s>0){if(++t>=cw)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hw=dw(lw);function pw(e){return hw(iw(e,void 0,rw),e+"")}var mw=1,gw=2,_w=4,bw=pw(function(e,t){var n={};if(e==null)return n;var r=!1;t=mu(t,function(i){return i=Io(i,e),r||(r=i.length>1),i}),_b(e,Uu(e),n),r&&(n=Ns(n,mw|gw|_w,ew));for(var s=t.length;s--;)Gv(n,t[s]);return n});const lf={de:{admin:"Admin",anonymous:"Anonym",approve_hint:"Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)",discussion:"Diskussion",edit:"Bearbeiten",load_more:"Mehr laden",login:"Anmelden",logout:"Abmelden",placeholder:"Schreiben Sie ein Kommentar...",post_comment:"Kommentar absenden",post_reply:"Antwort absenden",reply:"Antwort",reply_to:"Antwort auf",save_editing:"Speichern",ui_texts:["Seien Sie der Erste, der die Diskussion beginnt!","Beteiligen Sie sich an der Konversation (#)","Laden...","Kommentare laden"],your_comment:"Dein Kommentar"},en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",edit:"Edit",load_more:"Load More",login:"LOGIN",login_or_verify:"Please log in or complete the verification to post.",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",save_editing:"Save",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",edit:"Editar",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",save_editing:"Guardar",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},fr:{admin:"Admin",anonymous:"Anonyme",approve_hint:"Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)",discussion:"Discussion",edit:"Modifier",load_more:"Charger plus",login:"CONNEXION",logout:"Déconnexion",placeholder:"Écrivez un commentaire...",post_comment:"POSTER UN COMMENTAIRE",post_reply:"POSTER UNE RÉPONSE",reply:"Répondre",reply_to:"répondre à",save_editing:"Enregistrer",ui_texts:["Soyez le premier à lancer la discussion !","Rejoignez la conversation (#)","Chargement...","Charger les commentaires"],your_comment:"Votre commentaire"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",edit:"Edit",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",save_editing:"Simpan",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",edit:"Modifica",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",save_editing:"Salva",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",edit:"編集",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",save_editing:"保存",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",edit:"편집",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",save_editing:"저장",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",edit:"Editar",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",save_editing:"Salvar",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",edit:"แก้ไข",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",save_editing:"บันทึก",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",edit:"修改",load_more:"加載更多",login:"登錄",login_or_verify:"請登錄或完成驗證碼後再發表評論。",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",save_editing:"保存",your_comment:"您的評論"},cn:{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",edit:"编辑",load_more:"加载更多",login:"登录",login_or_verify:"请登录或完成验证码后再发表评论。",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",save_editing:"保存",your_comment:"您的评论"}};function yw(){return!!navigator.userAgent.match(/Macintosh/)}function vw(e,t){return(yw()?e.metaKey:e.ctrlKey)&&e.key===t}const ww={maxConsecutivePunctuation:5,maxConsecutiveSpaces:3,maxConsecutiveNewlines:3,minLength:5,maxLength:5e3,minWords:1,allowedPunctuation:[],blockPatterns:[]};function kw(e,t={}){const n={...ww,...t},r=[];if(!e||typeof e!="string")return{valid:!1,errors:["Content is required"]};const s=e.trim();s.length<n.minLength&&r.push(`Content must be at least ${n.minLength} characters`),s.length>n.maxLength&&r.push(`Content must not exceed ${n.maxLength} characters`);const i=xw(s,n.maxConsecutivePunctuation);i.valid||r.push(...i.errors),/^\w{35,}$/.test(s)&&r.push("Content contains too many consecutive letters");const o=Sw(s,n.maxConsecutiveSpaces);o.valid||r.push(...o.errors);const a=Tw(s,n.maxConsecutiveNewlines);a.valid||r.push(...a.errors);const l=Ew(s,n.minWords);if(l.valid||r.push(...l.errors),n.blockPatterns.length>0){const u=Iw(s,n.blockPatterns);u.valid||r.push(...u.errors)}return{valid:r.length===0,errors:r}}function xw(e,t){const n=[],r=["!","?",".",",",";",":","!","?","。",",",";",":","…","~","~"];for(const o of r){const a=new RegExp(`\\${o}{${t+1},}`,"g"),l=e.match(a);l&&n.push(`Too many consecutive "${o}" (max ${t}). Found: ${l[0]}`)}const s=new RegExp(`[${r.join("")}]{${t+1},}`,"g"),i=e.match(s);return i&&n.push(`Too many consecutive punctuation marks (max ${t}). Found: ${i[0]}`),{valid:n.length===0,errors:n}}function Sw(e,t){const n=new RegExp(` {${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive spaces (max ${t})`]}:{valid:!0,errors:[]}}function Tw(e,t){const n=new RegExp(`
|
|
10
|
-
{${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive line breaks (max ${t})`]}:{valid:!0,errors:[]}}function Ew(e,t){const n=e.replace(/[^\p{L}\p{N}\s]/gu," ").trim(),r=n.match(/[\u4e00-\u9fa5]/g);if(r&&r.length>n.length*.3){if(n.replace(/\s+/g,"").length<t)return{valid:!1,errors:[`Content must contain at least ${t} characters`]}}else if(n.split(/\s+/).filter(o=>o.length>0).length<t)return{valid:!1,errors:[`Content must contain at least ${t} words`]};return{valid:!0,errors:[]}}function Iw(e,t){const n=[];for(const r of t)r.test(e)&&n.push(`Content contains blocked pattern: ${r.source}`);return{valid:n.length===0,errors:n}}var Ds=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.UnReplied=255]="UnReplied",e[e["Replied to Admin"]=256]="Replied to Admin",e))(Ds||{});const Cw=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function js(e){return e<10?`0${e}`:`${e}`}function cf(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function uf(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${js(n)}-${js(r)}`}function ff(e){e instanceof Date||(e=cf(e));const t=new Date,n=uf(e);if(uf(t)===n){const r=e.getHours(),s=e.getMinutes();return`${js(r)}:${js(s)}`}return n}function Ow(e){const{id:t,created_at:n,parent_id:r,ancestor_id:s,post_id:i,user_id:o,...a}=e;return{...a,id:Number(t),user_id:o,userId:o,parentId:Number(r),post_id:i,postId:i,ancestorId:Number(s),status:Number(e.status),createdAt:cf(n)}}const Co="awesome-comment-comments",df=localStorage.getItem(Co),Gn=df?JSON.parse(df):{},Zn=Wl("store",()=>{const e=je("postId"),t=je("comments"),n=je("total"),r=J(!!t?.length),s=J(0),i=J(""),o=J([]),a=J(n||0),l=je("ApiBaseUrl"),u=J(!1),c=J(!1);function f(E){const _={},w=[];E.forEach(g=>{y(Number(g.id));const C=Ow(g);!g.ancestor_id||Number(g.ancestor_id)===0?_[g.id]=C:w.push(C)});const T=Gn[e];T&&(T.createdAt=new Date(T.createdAt),!T.ancestorId||Number(T.ancestorId)===0?_[T.id]=T:w.push(T)),w.forEach(g=>{if(g.ancestorId in _){const C=_[g.ancestorId];C.children=[g,...C.children||[]]}});for(const g in _){const C=_[g];C.children&&(C.children=C.children.sort((D,P)=>D.id-P.id))}return _}async function d(E=!1){if(u.value)return;i.value="",u.value=!0;let _;if(E&&t?.length)_=f(t);else{const w=new URLSearchParams;w.append("postId",e),w.append("start",s.value.toString());const T=await fetch(`${l}/api/comments?${w}`);if(!T.ok){i.value="Load comments failed. "+T.statusText,r.value=!0,u.value=!1;return}const g=await T.json();if(g.code!==0){i.value="Load comments failed. "+g.message,r.value=!0,u.value=!1;return}_=f(g.data||[]),a.value=g.meta?.total||g.data?.length||0}c.value=Object.keys(_).length>20,c.value&&delete _[Object.keys(_)[0]],Object.assign(o.value,_),r.value=!0,u.value=!1}function h(E,_,w,T=Ds.Pending,g,C){const{sub:D="",name:P="",picture:M="",email:U="",nickname:Y=""}=w,ee={id:E,post_id:e,postId:e,content:_,createdAt:new Date,user:{avatar:M,email:U,name:Y||P},user_id:D,userId:D,status:T,isNew:!0};if(g||C){ee.ancestorId=g,ee.parentId=C;const Z=o.value[g];if(Z.children||(Z.children=[]),g===C)Z.children.unshift(ee);else{const ie=Z.children.findIndex(pe=>Number(pe.id)===C);Z.children.splice(ie+1,0,ee)}}else ee.ancestorId=0,ee.parentId=0,o.value={[E]:ee,...o.value};a.value++,T!==Ds.Approved&&(Gn[e]=ee,localStorage.setItem(Co,JSON.stringify(Gn)))}function y(E){Gn[e]?.id===E&&(delete Gn[e],localStorage.setItem(Co,JSON.stringify(Gn)))}function v(E,_){let w=o.value[E];if(!w){for(const T of Object.values(o.value))if(T.children&&(w=T.children.find(g=>Number(g.id)===E),w))break}w&&Object.assign(w,_)}return{isLoaded:r,message:i,postId:e,comments:o,total:a,start:s,hasMore:c,loadingMore:u,loadComments:d,addComment:h,updateComment:v}});var hf={exports:{}},pf;function Aw(){return pf||(pf=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function s(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new s(c,f||l,d),y=n?n+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],h]:l._events[y].push(h):(l._events[y]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,c;if(this._eventsCount===0)return l;for(c in u=this._events)t.call(u,c)&&l.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,c=this._events[u];if(!c)return[];if(c.fn)return[c.fn];for(var f=0,d=c.length,h=new Array(d);f<d;f++)h[f]=c[f].fn;return h},a.prototype.listenerCount=function(l){var u=n?n+l:l,c=this._events[u];return c?c.fn?1:c.length:0},a.prototype.emit=function(l,u,c,f,d,h){var y=n?n+l:l;if(!this._events[y])return!1;var v=this._events[y],E=arguments.length,_,w;if(v.fn){switch(v.once&&this.removeListener(l,v.fn,void 0,!0),E){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,c),!0;case 4:return v.fn.call(v.context,u,c,f),!0;case 5:return v.fn.call(v.context,u,c,f,d),!0;case 6:return v.fn.call(v.context,u,c,f,d,h),!0}for(w=1,_=new Array(E-1);w<E;w++)_[w-1]=arguments[w];v.fn.apply(v.context,_)}else{var T=v.length,g;for(w=0;w<T;w++)switch(v[w].once&&this.removeListener(l,v[w].fn,void 0,!0),E){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,u);break;case 3:v[w].fn.call(v[w].context,u,c);break;case 4:v[w].fn.call(v[w].context,u,c,f);break;default:if(!_)for(g=1,_=new Array(E-1);g<E;g++)_[g-1]=arguments[g];v[w].fn.apply(v[w].context,_)}}return!0},a.prototype.on=function(l,u,c){return i(this,l,u,c,!1)},a.prototype.once=function(l,u,c){return i(this,l,u,c,!0)},a.prototype.removeListener=function(l,u,c,f){var d=n?n+l:l;if(!this._events[d])return this;if(!u)return o(this,d),this;var h=this._events[d];if(h.fn)h.fn===u&&(!f||h.once)&&(!c||h.context===c)&&o(this,d);else{for(var y=0,v=[],E=h.length;y<E;y++)(h[y].fn!==u||f&&!h[y].once||c&&h[y].context!==c)&&v.push(h[y]);v.length?this._events[d]=v.length===1?v[0]:v:o(this,d)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(hf)),hf.exports}Aw();let Pw=class extends Error{};Pw.prototype.name="InvalidTokenError";var Lw=typeof global=="object"&&global&&global.Object===Object&&global,Rw=typeof self=="object"&&self&&self.Object===Object&&self,$w=Lw||Rw||Function("return this")(),Ms=$w.Symbol;Ms&&Ms.toStringTag,Ms&&Ms.toStringTag;var Fs=(e=>(e.INIT="init",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(Fs||{});const Oo=Wl("auth",()=>{const e=je("awesomeAuth"),t=!e&&mm(),n=J(!1),r=J(!1),s=J(),i=!!e,o=et(()=>e?e.root:"");async function a(){return e?e.accessToken:t?await t.getAccessTokenSilently():""}function l(){e?e.doSignIn():t&&t.loginWithPopup()}function u(f){e?e.doSignOut():t&&t.logout(f)}async function c(f,d){e&&await e.renderButton(f,d)}return e?(e.on(Fs.INIT,f=>{r.value=f,f&&(n.value=!1)}),e.on(Fs.VERIFYING,f=>{r.value=f}),e.on(Fs.VERIFIED,f=>{n.value=f,s.value=f?e.user:void 0}),r.value=e.isVerifying,n.value=e.isVerified,s.value=e.user):t&&(Ze(t.isLoading,f=>{r.value=f},{immediate:!0}),Ze(t.isAuthenticated,f=>{n.value=f},{immediate:!0}),Ze(t.user,f=>{s.value=f},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,renderGoogleButton:c,login:l,logout:u}}),Nw={class:"ac-form-control bg-base-200 rounded-lg"},Dw={class:"sr-only",for:"ac-comment"},jw=["placeholder"],Mw={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Fw={key:0,class:"text-xs text-neutral-400/40"},Uw={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},Kw={key:2,class:"flex items-center gap-3 ms-4"},Ww=["disabled"],Hw={key:0,class:"ac-loading ac-loading-spinner"},Us=_t({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=Oo(),i=Zn(),{t:o}=St(),a=je("ApiBaseUrl"),l=je("Auth0Domain"),u=je("TurnstileSiteKey"),c="0.10.1",f=J(),d=J(),h=J(!1),y=J(n.content||""),v=J(""),E=J(!1),_=J(""),w=J(""),T=et(()=>!s.isAuthenticated);let g=null;function C(){if(typeof window>"u")return Promise.reject(new Error("Turnstile 仅支持浏览器环境"));if(window.turnstile)return Promise.resolve();if(g)return g;const ie="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";return g=new Promise((pe,He)=>{const ae=document.querySelector(`script[src="${ie}"]`),H=ae||document.createElement("script");function ne(){pe()}function xe(){He(new Error("Turnstile 脚本加载失败"))}H.addEventListener("load",ne,{once:!0}),H.addEventListener("error",xe,{once:!0}),ae||(H.src=ie,H.async=!0,H.defer=!0,document.head.appendChild(H))}),g.catch(()=>{g=null}),g}async function D(){if(!(!u||!d.value)){if(await C(),!window.turnstile){v.value="Turnstile 初始化失败";return}if(w.value){window.turnstile.reset(w.value);return}w.value=window.turnstile.render(d.value,{sitekey:u,size:"compact",callback:ie=>{_.value=ie,v.value=""},"expired-callback":()=>{_.value=""},"error-callback":()=>{_.value="",v.value="Turnstile 验证失败,请重试。"}})}}function P(){!w.value||!window.turnstile||(window.turnstile.reset(w.value),_.value="")}function M(){return s.user?s.user:{sub:"anonymous",name:"anonymous",nickname:"anonymous",picture:"",email:""}}async function U(ie){if(!s.isAuthenticated){if(!u)return Y();if(E.value=!0,!_.value){v.value=o("login_or_verify"),await sr(),await D();return}}if(ie.target.matches(":invalid"))return;const pe=y.value.trim();if(!pe)return;if(!kw(pe).valid){v.value="We encourage meaningful contributions to foster a positive community. Thank you for your understanding!";return}h.value=!0,v.value="";let He=a+"/api/comment",ae="POST";n.currentId&&(He+="/"+n.currentId,ae="PATCH");try{const H=s.isAuthenticated?await s.getAccessToken():"",xe={"Content-Type":"application/json","Auth-Endpoint":s.authEndpoint};H&&(xe.Authorization=`Bearer ${H}`);const ut=T.value?{referrer:document.referrer||"",language:navigator.language||"",languages:navigator.languages||[],timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"",platform:navigator.platform||""}:null,Ve=T.value?{custom:window.custom_comment_data??null,anonymous:ut}:window.custom_comment_data,Re=await fetch(He,{method:ae,headers:xe,body:JSON.stringify({comment:pe,postId:i.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status,window:`${window.innerWidth}x${window.innerHeight} / ${screen.width,screen.height}`,customData:Ve,extraData:`${window.BM_LEVEL}:${window.BM_VALUE}`,turnstileToken:T.value?_.value:void 0})}),It=await Re.json();if(!Re.ok||It.message){v.value="Failed to post comment: "+(It.message||"Unknown"),h.value=!1;return}const{id:rn,status:In}=It.data,nt=M();n.ancestorId||n.parentId?i.addComment(rn,pe,nt,In,n.ancestorId,n.parentId):n.currentId?r("update",pe):i.addComment(rn,pe,nt,In),y.value="",r("close"),T.value&&(P(),E.value=!1)}catch(H){v.value=H.message||String(H)}h.value=!1}function Y(){s.login()}function ee(ie){vw(ie,"Enter")&&U(ie)}function Z(){r("close")}return Nn(()=>{f.value?.focus()}),Ze(()=>E.value,async ie=>{!ie||s.isAuthenticated||(await sr(),await D())}),Ze(()=>s.isAuthenticated,ie=>{ie&&(E.value=!1,P())}),(ie,pe)=>(V(),X("form",{class:"mb-6",onSubmit:$i(U,["prevent"])},[ce("div",Nw,[ce("label",Dw,be(W(o)("your_comment")),1),Kd(ce("textarea",{id:"ac-comment",ref_key:"textarea",ref:f,"onUpdate:modelValue":pe[0]||(pe[0]=He=>y.value=He),placeholder:W(o)("placeholder"),class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",required:"",rows:"3",onKeydown:[pe[1]||(pe[1]=$i(()=>{},["stop"])),$l(ee,["enter"]),$l(Z,["esc"])],onKeyup:pe[2]||(pe[2]=$i(()=>{},["stop"]))},null,40,jw),[[_p,y.value]]),ce("div",Mw,[e.noVersion?Le("",!0):(V(),X("div",Fw," v"+be(W(c)),1)),v.value?(V(),X("div",Uw,be(v.value),1)):Le("",!0),E.value&&!W(s).isAuthenticated?(V(),X("div",Kw,[ce("button",{class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",onClick:Y},be(W(o)("login")),1),W(u)?(V(),X("div",{key:0,ref_key:"turnstileContainer",ref:d},null,512)):Le("",!0)])):Le("",!0),ce("button",{disabled:h.value||E.value&&!W(s).isAuthenticated&&!_.value,class:"ac-btn ac-btn-primary ac-btn-sm ms-auto"},[h.value?(V(),X("span",Hw)):Le("",!0),e.currentId?(V(),X(Ce,{key:1},[dn(be(W(o)("save_editing")),1)],64)):e.parentId?(V(),X(Ce,{key:2},[dn(be(W(o)("post_reply")),1)],64)):(V(),X(Ce,{key:3},[dn(be(W(o)("post_comment")),1)],64))],8,Ww)])])],32))}});const mf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Vw=e=>{const t=zw(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bw=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),gf=e=>e==="";var $r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const Gw=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:s,"stroke-width":i,size:o=$r.width,color:a=$r.stroke,...l},{slots:u})=>gr("svg",{...$r,...l,width:o,height:o,stroke:a,"stroke-width":gf(n)||gf(r)||n===!0||r===!0?Number(s||i||$r["stroke-width"])*24/Number(o):s||i||$r["stroke-width"],class:Bw("lucide",l.class,...e?[`lucide-${mf(Vw(e))}-icon`,`lucide-${mf(e)}`]:["lucide-icon"])},[...t.map(c=>gr(...c)),...u.default?[u.default()]:[]]);const Ks=(e,t)=>(n,{slots:r,attrs:s})=>gr(Gw,{...s,...n,iconNode:t,name:e},r);const Zw=Ks("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const Xw=Ks("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);const Yw=Ks("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const Jw=Ks("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]),qw={class:"flex items-center gap-2"},Qw=["aria-label","title","disabled"],e0={key:0,class:"ac-loading ac-loading-spinner"},t0={class:"text-sm text-gray-500 dark:text-gray-400"},n0=["aria-label","title","disabled"],r0={key:0,class:"ac-loading ac-loading-spinner"},s0=["aria-label","title"],Ao="awesome-comment-likes",i0=_t({__name:"comment-actions",props:{comment:{}},emits:["reply"],setup(e,{emit:t}){const n=e,r=t,s=Zn(),{t:i}=St(),o=je("ApiBaseUrl"),a=J(0);async function l(u=!0){if(a.value)return;const c=localStorage.getItem(Ao);if(c){const h=JSON.parse(c),y=Date.now(),v=h[n.comment.id];if(h[n.comment.id]=y,localStorage.setItem(Ao,JSON.stringify(h)),v&&y-v<6e4){s.updateComment(n.comment.id,{like:Math.max((n.comment.like||0)+(u?1:-1),0)});return}}else localStorage.setItem(Ao,JSON.stringify({[n.comment.id]:Date.now()}));a.value=u?1:-1;const d=await(await fetch(`${o}/api/like/${n.comment.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({like:u,postId:n.comment.postId})})).json();s.updateComment(n.comment.id,{like:d.data?.like||0}),a.value=0}return(u,c)=>(V(),X("div",qw,[ce("button",{"aria-label":W(i)("like"),title:W(i)("like"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[0]||(c[0]=f=>l())},[a.value>0?(V(),X("span",e0)):(V(),Yt(W(Jw),{key:1,size:16}))],8,Qw),ce("span",t0,be(e.comment.like||0),1),ce("button",{"aria-label":W(i)("dislike"),title:W(i)("dislike"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[1]||(c[1]=f=>l(!1))},[a.value<0?(V(),X("span",r0)):(V(),Yt(W(Yw),{key:1,size:16}))],8,n0),ce("button",{"aria-label":W(i)("reply"),title:W(i)("reply"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none -me-1.5",type:"button",onClick:c[2]||(c[2]=f=>r("reply"))},[Te(W(Xw),{size:16})],8,s0)]))}});function Po(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Tn=Po();function _f(e){Tn=e}var Nr={exec:()=>null};function se(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(We.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}var o0=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),We={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},a0=/^(?:[ \t]*(?:\n|$))+/,l0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,c0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Dr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,u0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Lo=/(?:[*+-]|\d{1,9}[.)])/,bf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,yf=se(bf).replace(/bull/g,Lo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),f0=se(bf).replace(/bull/g,Lo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ro=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,d0=/^[^\n]+/,$o=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,h0=se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$o).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),p0=se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Lo).getRegex(),Ws="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",No=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,m0=se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",No).replace("tag",Ws).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vf=se(Ro).replace("hr",Dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ws).getRegex(),g0=se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vf).getRegex(),Do={blockquote:g0,code:l0,def:h0,fences:c0,heading:u0,hr:Dr,html:m0,lheading:yf,list:p0,newline:a0,paragraph:vf,table:Nr,text:d0},wf=se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ws).getRegex(),_0={...Do,lheading:f0,table:wf,paragraph:se(Ro).replace("hr",Dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",wf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ws).getRegex()},b0={...Do,html:se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",No).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Nr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:se(Ro).replace("hr",Dr).replace("heading",` *#{1,6} *[^
|
|
11
|
-
]`).replace("lheading",yf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},y0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
|
|
7
|
+
`)})(),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",!ic(n))throw new Error(`Invalid cache location "${n}"`);r=ic(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Un:nm,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(l=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const s=t.useCookiesForTransactions?this.cookieStorage:rm;var i;this.scope=((l,u,...c)=>{if(typeof l!="object")return{default:vs(u,l,...c)};let f={default:vs(u,...c)};return Object.keys(l).forEach((d=>{const h=l[d];f[d]=vs(u,h,...c)})),f})(this.options.authorizationParams.scope,"openid",this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Qp(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Vl,this.cacheManager=new qp(r,r.allKeys?void 0:new im(r,this.options.clientId),this.nowProvider),this.dpop=this.options.useDpop?new lm(this.options.clientId):void 0,this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((l,u)=>l?l.startsWith("https://")?l:`https://${l}/`:`${u}/`)(this.options.issuer,this.domainUrl);const o=`${this.domainUrl}/me/`,a=this.createFetcher(Object.assign(Object.assign({},this.options.useDpop&&{dpopNonceId:"__auth0_my_account_api__"}),{getAccessToken:()=>this.getTokenSilently({authorizationParams:{scope:"create:me:connected_accounts",audience:o},detailedResponse:!0})}));this.myAccountApi=new um(a,o),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new sm)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||zl)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Wi(t)}`)}async _verifyIdToken(t,n,r){const s=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(f=>{const d=f.split("."),[h,y,w]=d;if(d.length!==3||!h||!y||!w)throw new Error("ID token could not be decoded");const E=JSON.parse(Xl(y)),_={__raw:f},v={};return Object.keys(E).forEach((T=>{_[T]=E[T],em.includes(T)||(v[T]=E[T])})),{encoded:{header:h,payload:y,signature:w},header:JSON.parse(Xl(h)),claims:_,user:v}})(o.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==o.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${o.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(o.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==o.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${o.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==o.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but found "${a.claims.aud}"`);if(o.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==o.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${o.nonce}", found "${a.claims.nonce}"`)}if(o.max_age&&!kr(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||!kr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!kr(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,u=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),u>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${u}) is after expiration time (${c})`);if(a.claims.nbf!=null&&kr(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-l),u<f)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${u}) is before ${f}`)}if(a.claims.auth_time!=null&&kr(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),u>f)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${u}) is after last auth at ${f}`)}if(o.organization){const f=o.organization.trim();if(f.startsWith("org_")){const d=f;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_id}"`)}else{const d=f.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:s});var i}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){var s;const i=Ki(yr()),o=Ki(yr()),a=yr(),l=await Zl(a),u=Yl(l),c=await((s=this.dpop)===null||s===void 0?void 0:s.calculateThumbprint()),f=((h,y,w,E,_,v,T,g,C)=>Object.assign(Object.assign(Object.assign({client_id:h.clientId},h.authorizationParams),w),{scope:ks(y,w.scope,w.audience),response_type:"code",response_mode:g||"query",state:E,nonce:_,redirect_uri:T||h.authorizationParams.redirect_uri,code_challenge:v,code_challenge_method:"S256",dpop_jkt:C}))(this.options,this.scope,t,i,o,u,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode,c),d=this._authorizeUrl(f);return{nonce:o,code_verifier:a,scope:f.scope,audience:f.audience||"default",redirect_uri:f.redirect_uri,state:i,url:d}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new jp;const s=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=s.url;const i=await(a=>new Promise(((l,u)=>{let c;const f=setInterval((()=>{a.popup&&a.popup.closed&&(clearInterval(f),clearTimeout(d),window.removeEventListener("message",c,!1),u(new Dp(a.popup)))}),1e3),d=setTimeout((()=>{clearInterval(f),u(new Np(a.popup)),window.removeEventListener("message",c,!1)}),1e3*(a.timeoutInSeconds||60));c=function(h){if(h.data&&h.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(f),window.removeEventListener("message",c,!1),a.popup.close(),h.data.response.error)return u(Oe.fromPayload(h.data.response));l(h.data.response)}},window.addEventListener("message",c)})))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(s.state!==i.state)throw new Oe("state_mismatch","Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:s.redirect_uri},{nonceIn:s.nonce,organization:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=oc(t),{openUrl:s,fragment:i,appState:o}=r,a=wt(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=u,f=wt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o,response_type:gn.Code}),l&&{organization:l}));const d=i?`${c}#${i}`:c;s?await s(d):window.location.assign(d)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const r=this.transactionManager.get();if(!r)throw new Oe("missing_transaction","Invalid state");this.transactionManager.remove();const s=(i=>{i.indexOf("#")>-1&&(i=i.substring(0,i.indexOf("#")));const o=new URLSearchParams(i);return{state:o.get("state"),code:o.get("code")||void 0,connect_code:o.get("connect_code")||void 0,error:o.get("error")||void 0,error_description:o.get("error_description")||void 0}})(n.join(""));return r.response_type===gn.ConnectCode?this._handleConnectAccountRedirectCallback(s,r):this._handleLoginRedirectCallback(s,r)}async _handleLoginRedirectCallback(t,n){const{code:r,state:s,error:i,error_description:o}=t;if(i)throw new $p(i,o||i,s,n.appState);if(!n.code_verifier||n.state&&n.state!==s)throw new Oe("state_mismatch","Invalid state");const a=n.organization,l=n.nonce,u=n.redirect_uri;return await this._requestToken(Object.assign({audience:n.audience,scope:n.scope,code_verifier:n.code_verifier,grant_type:"authorization_code",code:r},u?{redirect_uri:u}:{}),{nonceIn:l,organization:a}),{appState:n.appState,response_type:gn.Code}}async _handleConnectAccountRedirectCallback(t,n){const{connect_code:r,state:s,error:i,error_description:o}=t;if(i)throw new Ui(i,o||i,n.connection,s,n.appState);if(!r)throw new Oe("missing_connect_code","Missing connect code");if(!(n.code_verifier&&n.state&&n.auth_session&&n.redirect_uri&&n.state===s))throw new Oe("state_mismatch","Invalid state");const a=await this.myAccountApi.completeAccount({auth_session:n.auth_session,connect_code:r,redirect_uri:n.redirect_uri,code_verifier:n.code_verifier});return Object.assign(Object.assign({},a),{appState:n.appState,response_type:gn.ConnectCode})}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,r;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:ks(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope,((r=t.authorizationParams)===null||r===void 0?void 0:r.audience)||this.options.authorizationParams.audience)})}),i=await((o,a)=>{let l=Vi[a];return l||(l=o().finally((()=>{delete Vi[a],l=null})),Vi[a]=l),l})((()=>this._getTokenSilently(s)),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=wt(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId,cacheMode:n});if(i)return i}if(n==="cache-only")return;const s=`auth0.lock.getTokenSilently.${this.options.clientId}.${r.authorizationParams.audience||"default"}`;if(!await(async(i,o=3)=>{for(let a=0;a<o;a++)if(await i())return!0;return!1})((()=>Bi.acquireLock(s,5e3)),10))throw new br;this.activeLockKeys.add(s),this.activeLockKeys.size===1&&window.addEventListener("pagehide",this._releaseLockOnPageHide);try{if(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 i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:o,token_type:a,access_token:l,oauthTokenScope:u,expires_in:c}=i;return Object.assign(Object.assign({id_token:o,token_type:a,access_token:l},u?{scope:u}:null),{expires_in:c})}finally{await Bi.releaseLock(s),this.activeLockKeys.delete(s),this.activeLockKeys.size===0&&window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}async getTokenWithPopup(t={},n={}){var r,s;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:ks(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope,((s=t.authorizationParams)===null||s===void 0?void 0:s.audience)||this.options.authorizationParams.audience)})});return n=Object.assign(Object.assign({},Rp),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new jt({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}),void 0,this.options.useMrrt)).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,s=wt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Wi(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){var n;const r=oc(t),{openUrl:s}=r,i=wt(r,["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@@"),await((n=this.dpop)===null||n===void 0?void 0:n.clear());const o=this._buildLogoutUrl(i);s?await s(o):s!==!1&&window.location.assign(o)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:s,state:i,nonce:o,code_verifier:a,redirect_uri:l,scope:u,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Oe("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds;let d;try{d=new URL(this.domainUrl).origin}catch{d=this.domainUrl}const h=await((w,E,_=60)=>new Promise(((v,T)=>{const g=window.document.createElement("iframe");g.setAttribute("width","0"),g.setAttribute("height","0"),g.style.display="none";const C=()=>{window.document.body.contains(g)&&(window.document.body.removeChild(g),window.removeEventListener("message",D,!1))};let D;const P=setTimeout((()=>{T(new br),C()}),1e3*_);D=function(M){if(M.origin!=E||!M.data||M.data.type!=="authorization_response")return;const U=M.source;U&&U.close(),M.data.response.error?T(Oe.fromPayload(M.data.response)):v(M.data.response),clearTimeout(P),window.removeEventListener("message",D,!1),setTimeout(C,2e3)},window.addEventListener("message",D,!1),window.document.body.appendChild(g),g.setAttribute("src",w)})))(s,d,f);if(i!==h.state)throw new Oe("state_mismatch","Invalid state");const y=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:o,organization:n.organization});return Object.assign(Object.assign({},y),{scope:u,oauthTokenScope:y.scope,audience:c})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new jt({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}),void 0,this.options.useMrrt);if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new Bl(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,s=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null,i=((c,f,d,h)=>{var y;if(c&&d&&h){if(f.audience!==d)return f.scope;const w=h.split(" "),E=((y=f.scope)===null||y===void 0?void 0:y.split(" "))||[],_=E.every((v=>w.includes(v)));return w.length>=E.length&&_?h:f.scope}return f.scope})(this.options.useMrrt,t.authorizationParams,n?.audience,n?.scope);try{const c=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),s&&{timeout:s}),{scopesToRequest:i});if(c.refresh_token&&this.options.useMrrt&&n?.refresh_token&&await this.cacheManager.updateEntry(n.refresh_token,c.refresh_token),this.options.useMrrt&&(o=n?.audience,a=n?.scope,l=t.authorizationParams.audience,u=t.authorizationParams.scope,!(o===l&&ac(u,a)||ac(i,c.scope)))){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);await this.cacheManager.remove(this.options.clientId,t.authorizationParams.audience,t.authorizationParams.scope);const f=((d,h)=>{const y=d?.split(" ")||[],w=h?.split(" ")||[];return y.filter((E=>w.indexOf(E)==-1)).join(",")})(i,c.scope);throw new Fp(t.authorizationParams.audience||"default",f)}return Object.assign(Object.assign({},c),{scope:t.authorizationParams.scope,oauthTokenScope:c.scope,audience:t.authorizationParams.audience||"default"})}catch(c){if((c.message.indexOf("Missing Refresh Token")>-1||c.message&&c.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw c}var o,a,l,u}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,s=wt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(s)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=this.scope[t],r=await this.cacheManager.getIdToken(new jt({clientId:this.options.clientId,audience:t,scope:n})),s=this.userCache.get("@@user@@");return r&&r.id_token===s?.id_token?s:(this.userCache.set("@@user@@",r),r)}async _getEntryFromCache({scope:t,audience:n,clientId:r,cacheMode:s}){const i=await this.cacheManager.get(new jt({scope:t,audience:n,clientId:r}),60,this.options.useMrrt,s);if(i&&i.access_token){const{token_type:o,access_token:a,oauthTokenScope:l,expires_in:u}=i,c=await this._getIdTokenFromCache();return c&&Object.assign(Object.assign({id_token:c.id_token,token_type:o||"Bearer",access_token:a},l?{scope:l}:null),{expires_in:u})}}async _requestToken(t,n){const{nonceIn:r,organization:s,scopesToRequest:i}=n||{},o=await Yp(Object.assign(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs,useMrrt:this.options.useMrrt,dpop:this.dpop},t),{scope:i||t.scope}),this.worker),a=await this._verifyIdToken(o.id_token,r,s);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},o),{decodedToken:a,scope:t.scope,audience:t.audience||"default"}),o.scope?{oauthTokenScope:o.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(s||a.claims.org_id),Object.assign(Object.assign({},o),{decodedToken:a})}async exchangeToken(t){return this._requestToken({grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",subject_token:t.subject_token,subject_token_type:t.subject_token_type,scope:ks(this.scope,t.scope,t.audience||this.options.authorizationParams.audience),audience:t.audience||this.options.authorizationParams.audience})}_assertDpop(t){if(!t)throw new Error("`useDpop` option must be enabled before using DPoP.")}getDpopNonce(t){return this._assertDpop(this.dpop),this.dpop.getNonce(t)}setDpopNonce(t,n){return this._assertDpop(this.dpop),this.dpop.setNonce(t,n)}generateDpopProof(t){return this._assertDpop(this.dpop),this.dpop.generateProof(t)}createFetcher(t={}){return new cm(t,{isDpopEnabled:()=>!!this.options.useDpop,getAccessToken:n=>{var r;return this.getTokenSilently({authorizationParams:{scope:(r=n?.scope)===null||r===void 0?void 0:r.join(" "),audience:n?.audience},detailedResponse:!0})},getDpopNonce:()=>this.getDpopNonce(t.dpopNonceId),setDpopNonce:n=>this.setDpopNonce(n,t.dpopNonceId),generateDpopProof:n=>this.generateDpopProof(n)})}async connectAccountWithRedirect(t){const{openUrl:n,appState:r,connection:s,scopes:i,authorization_params:o,redirectUri:a=this.options.authorizationParams.redirect_uri||window.location.origin}=t;if(!s)throw new Error("connection is required");const l=Ki(yr()),u=yr(),c=await Zl(u),f=Yl(c),{connect_uri:d,connect_params:h,auth_session:y}=await this.myAccountApi.connectAccount({connection:s,scopes:i,redirect_uri:a,state:l,code_challenge:f,code_challenge_method:"S256",authorization_params:o});this.transactionManager.create({state:l,code_verifier:u,auth_session:y,redirect_uri:a,appState:r,connection:s,response_type:gn.ConnectCode});const w=new URL(d);w.searchParams.set("ticket",h.ticket),n?await n(w.toString()):window.location.assign(w)}};function xr(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 ot=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},dm={isLoading:J(!1),isAuthenticated:J(!1),user:J(void 0),idTokenClaims:J(void 0),error:J(null),loginWithPopup:ot,loginWithRedirect:ot,getAccessTokenSilently:ot,getAccessTokenWithPopup:ot,logout:ot,checkSession:ot,handleRedirectCallback:ot,getDpopNonce:ot,setDpopNonce:ot,generateDpopProof:ot,createFetcher:ot},hm=J(dm);class pm{constructor(t,n){var r,s;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,s=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter((i=>!s.includes(i))).forEach((i=>r[i]=r[i].bind(r)))}install(t){this._client=new fm(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(Hl,this),hm.value=this}async loginWithRedirect(t){return xr(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return xr(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 xr(t),this.__proxy((()=>this._client.getTokenSilently(t)))}async getAccessTokenWithPopup(t,n){return xr(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 getDpopNonce(t){return this.__proxy((()=>this._client.getDpopNonce(t)))}async setDpopNonce(t,n){return this.__proxy((()=>this._client.setDpopNonce(t,n)))}async generateDpopProof(t){return this.__proxy((()=>this._client.generateDpopProof(t)))}createFetcher(t){return this._client.createFetcher(t)}async __checkSession(t){var n,r,s;const i=window.location.search;try{if((i.includes("code=")||i.includes("error="))&&i.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(r=a?.target)!==null&&r!==void 0?r:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((s=this.pluginOptions)===null||s===void 0?void 0:s.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let r;try{r=await t(),this.error.value=null}catch(s){throw this.error.value=s,s}finally{n&&await this.__refreshState()}return r}}function cc(e,t){return xr(e),new pm(e,t)}function mm(){return je(Hl)}function gm(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const xs=typeof window<"u",Qt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),_m=(e,t,n)=>bm({l:e,k:t,s:n}),bm=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ie=e=>typeof e=="number"&&isFinite(e),ym=e=>Gi(e)==="[object Date]",Wn=e=>Gi(e)==="[object RegExp]",Ss=e=>q(e)&&Object.keys(e).length===0,Ae=Object.assign,wm=Object.create,de=(e=null)=>wm(e);let uc;const bn=()=>uc||(uc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:de());function fc(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function dc(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function vm(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${dc(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${dc(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const km=Object.prototype.hasOwnProperty;function at(e,t){return km.call(e,t)}const ke=Array.isArray,ye=e=>typeof e=="function",F=e=>typeof e=="string",re=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",xm=e=>oe(e)&&ye(e.then)&&ye(e.catch),hc=Object.prototype.toString,Gi=e=>hc.call(e),q=e=>Gi(e)==="[object Object]",Sm=e=>e==null?"":ke(e)||q(e)&&e.toString===hc?JSON.stringify(e,null,2):String(e);function Zi(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const Ts=e=>!oe(e)||ke(e);function Es(e,t){if(Ts(e)||Ts(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(oe(r[i])&&!oe(s[i])&&(s[i]=Array.isArray(r[i])?[]:de()),Ts(s[i])||Ts(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}function Tm(e,t,n){return{line:e,column:t,offset:n}}function Xi(e,t,n){return{start:e,end:t}}const ue={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},Em=17;function Is(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function Im(e){throw e}const vt=" ",Cm="\r",Fe=`
|
|
8
|
+
`,Om="\u2028",Am="\u2029";function Pm(e){const t=e;let n=0,r=1,s=1,i=0;const o=P=>t[P]===Cm&&t[P+1]===Fe,a=P=>t[P]===Fe,l=P=>t[P]===Am,u=P=>t[P]===Om,c=P=>o(P)||a(P)||l(P)||u(P),f=()=>n,d=()=>r,h=()=>s,y=()=>i,w=P=>o(P)||l(P)||u(P)?Fe:t[P],E=()=>w(n),_=()=>w(n+i);function v(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+i)&&i++,i++,t[n+i]}function g(){n=0,r=1,s=1,i=0}function C(P=0){i=P}function D(){const P=n+i;for(;P!==n;)v();i=0}return{index:f,line:d,column:h,peekOffset:y,charAt:w,currentChar:E,currentPeek:_,next:v,peek:T,reset:g,resetPeek:C,skipToPeek:D}}const Mt=void 0,Lm=".",pc="'",Rm="tokenizer";function $m(e,t={}){const n=t.location!==!1,r=Pm(e),s=()=>r.index(),i=()=>Tm(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(p,m,x,...I){const j=u();if(m.column+=x,m.offset+=x,c){const L=n?Xi(j.startLoc,m):null,S=Is(p,L,{domain:Rm,args:I});c(S)}}function d(p,m,x){p.endLoc=i(),p.currentType=m;const I={type:m};return n&&(I.loc=Xi(p.startLoc,p.endLoc)),x!=null&&(I.value=x),I}const h=p=>d(p,13);function y(p,m){return p.currentChar()===m?(p.next(),m):(f(ue.EXPECTED_TOKEN,i(),0,m),"")}function w(p){let m="";for(;p.currentPeek()===vt||p.currentPeek()===Fe;)m+=p.currentPeek(),p.peek();return m}function E(p){const m=w(p);return p.skipToPeek(),m}function _(p){if(p===Mt)return!1;const m=p.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function v(p){if(p===Mt)return!1;const m=p.charCodeAt(0);return m>=48&&m<=57}function T(p,m){const{currentType:x}=m;if(x!==2)return!1;w(p);const I=_(p.currentPeek());return p.resetPeek(),I}function g(p,m){const{currentType:x}=m;if(x!==2)return!1;w(p);const I=p.currentPeek()==="-"?p.peek():p.currentPeek(),j=v(I);return p.resetPeek(),j}function C(p,m){const{currentType:x}=m;if(x!==2)return!1;w(p);const I=p.currentPeek()===pc;return p.resetPeek(),I}function D(p,m){const{currentType:x}=m;if(x!==7)return!1;w(p);const I=p.currentPeek()===".";return p.resetPeek(),I}function P(p,m){const{currentType:x}=m;if(x!==8)return!1;w(p);const I=_(p.currentPeek());return p.resetPeek(),I}function M(p,m){const{currentType:x}=m;if(!(x===7||x===11))return!1;w(p);const I=p.currentPeek()===":";return p.resetPeek(),I}function U(p,m){const{currentType:x}=m;if(x!==9)return!1;const I=()=>{const L=p.currentPeek();return L==="{"?_(p.peek()):L==="@"||L==="|"||L===":"||L==="."||L===vt||!L?!1:L===Fe?(p.peek(),I()):ee(p,!1)},j=I();return p.resetPeek(),j}function Y(p){w(p);const m=p.currentPeek()==="|";return p.resetPeek(),m}function ee(p,m=!0){const x=(j=!1,L="")=>{const S=p.currentPeek();return S==="{"||S==="@"||!S?j:S==="|"?!(L===vt||L===Fe):S===vt?(p.peek(),x(!0,vt)):S===Fe?(p.peek(),x(!0,Fe)):!0},I=x();return m&&p.resetPeek(),I}function Z(p,m){const x=p.currentChar();return x===Mt?Mt:m(x)?(p.next(),x):null}function ie(p){const m=p.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function pe(p){return Z(p,ie)}function He(p){const m=p.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function ae(p){return Z(p,He)}function H(p){const m=p.charCodeAt(0);return m>=48&&m<=57}function ne(p){return Z(p,H)}function xe(p){const m=p.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function ut(p){return Z(p,xe)}function Ve(p){let m="",x="";for(;m=ne(p);)x+=m;return x}function Re(p){let m="";for(;;){const x=p.currentChar();if(x==="{"||x==="}"||x==="@"||x==="|"||!x)break;if(x===vt||x===Fe)if(ee(p))m+=x,p.next();else{if(Y(p))break;m+=x,p.next()}else m+=x,p.next()}return m}function It(p){E(p);let m="",x="";for(;m=ae(p);)x+=m;const I=p.currentChar();if(I&&I!=="}"&&I!==Mt&&I!==vt&&I!==Fe&&I!==" "){const j=Ct(p);return f(ue.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x+j),x+j}return p.currentChar()===Mt&&f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),x}function rn(p){E(p);let m="";return p.currentChar()==="-"?(p.next(),m+=`-${Ve(p)}`):m+=Ve(p),p.currentChar()===Mt&&f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),m}function In(p){return p!==pc&&p!==Fe}function nt(p){E(p),y(p,"'");let m="",x="";for(;m=Z(p,In);)m==="\\"?x+=sn(p):x+=m;const I=p.currentChar();return I===Fe||I===Mt?(f(ue.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),I===Fe&&(p.next(),y(p,"'")),x):(y(p,"'"),x)}function sn(p){const m=p.currentChar();switch(m){case"\\":case"'":return p.next(),`\\${m}`;case"u":return on(p,m,4);case"U":return on(p,m,6);default:return f(ue.UNKNOWN_ESCAPE_SEQUENCE,i(),0,m),""}}function on(p,m,x){y(p,m);let I="";for(let j=0;j<x;j++){const L=ut(p);if(!L){f(ue.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${m}${I}${p.currentChar()}`);break}I+=L}return`\\${m}${I}`}function Xn(p){return p!=="{"&&p!=="}"&&p!==vt&&p!==Fe}function Ct(p){E(p);let m="",x="";for(;m=Z(p,Xn);)x+=m;return x}function Zs(p){let m="",x="";for(;m=pe(p);)x+=m;return x}function b(p){const m=x=>{const I=p.currentChar();return I==="{"||I==="@"||I==="|"||I==="("||I===")"||!I||I===vt?x:(x+=I,p.next(),m(x))};return m("")}function k(p){E(p);const m=y(p,"|");return E(p),m}function A(p,m){let x=null;switch(p.currentChar()){case"{":return m.braceNest>=1&&f(ue.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),p.next(),x=d(m,2,"{"),E(p),m.braceNest++,x;case"}":return m.braceNest>0&&m.currentType===2&&f(ue.EMPTY_PLACEHOLDER,i(),0),p.next(),x=d(m,3,"}"),m.braceNest--,m.braceNest>0&&E(p),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),x;case"@":return m.braceNest>0&&f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),x=$(p,m)||h(m),m.braceNest=0,x;default:{let j=!0,L=!0,S=!0;if(Y(p))return m.braceNest>0&&f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),x=d(m,1,k(p)),m.braceNest=0,m.inLinked=!1,x;if(m.braceNest>0&&(m.currentType===4||m.currentType===5||m.currentType===6))return f(ue.UNTERMINATED_CLOSING_BRACE,i(),0),m.braceNest=0,R(p,m);if(j=T(p,m))return x=d(m,4,It(p)),E(p),x;if(L=g(p,m))return x=d(m,5,rn(p)),E(p),x;if(S=C(p,m))return x=d(m,6,nt(p)),E(p),x;if(!j&&!L&&!S)return x=d(m,12,Ct(p)),f(ue.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x.value),E(p),x;break}}return x}function $(p,m){const{currentType:x}=m;let I=null;const j=p.currentChar();switch((x===7||x===8||x===11||x===9)&&(j===Fe||j===vt)&&f(ue.INVALID_LINKED_FORMAT,i(),0),j){case"@":return p.next(),I=d(m,7,"@"),m.inLinked=!0,I;case".":return E(p),p.next(),d(m,8,".");case":":return E(p),p.next(),d(m,9,":");default:return Y(p)?(I=d(m,1,k(p)),m.braceNest=0,m.inLinked=!1,I):D(p,m)||M(p,m)?(E(p),$(p,m)):P(p,m)?(E(p),d(m,11,Zs(p))):U(p,m)?(E(p),j==="{"?A(p,m)||I:d(m,10,b(p))):(x===7&&f(ue.INVALID_LINKED_FORMAT,i(),0),m.braceNest=0,m.inLinked=!1,R(p,m))}}function R(p,m){let x={type:13};if(m.braceNest>0)return A(p,m)||h(m);if(m.inLinked)return $(p,m)||h(m);switch(p.currentChar()){case"{":return A(p,m)||h(m);case"}":return f(ue.UNBALANCED_CLOSING_BRACE,i(),0),p.next(),d(m,3,"}");case"@":return $(p,m)||h(m);default:{if(Y(p))return x=d(m,1,k(p)),m.braceNest=0,m.inLinked=!1,x;if(ee(p))return d(m,0,Re(p));break}}return x}function N(){const{currentType:p,offset:m,startLoc:x,endLoc:I}=l;return l.lastType=p,l.lastOffset=m,l.lastStartLoc=x,l.lastEndLoc=I,l.offset=s(),l.startLoc=i(),r.currentChar()===Mt?d(l,13):R(r,l)}return{nextToken:N,currentOffset:s,currentPosition:i,context:u}}const Nm="parser",Dm=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function jm(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 Mm(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,v,T,g,...C){const D=_.currentPosition();if(D.offset+=g,D.column+=g,n){const P=t?Xi(T,D):null,M=Is(v,P,{domain:Nm,args:C});n(M)}}function s(_,v,T){const g={type:_};return t&&(g.start=v,g.end=v,g.loc={start:T,end:T}),g}function i(_,v,T,g){t&&(_.end=v,_.loc&&(_.loc.end=T))}function o(_,v){const T=_.context(),g=s(3,T.offset,T.startLoc);return g.value=v,i(g,_.currentOffset(),_.currentPosition()),g}function a(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:C}=T,D=s(5,g,C);return D.index=parseInt(v,10),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function l(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:C}=T,D=s(4,g,C);return D.key=v,_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function u(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:C}=T,D=s(9,g,C);return D.value=v.replace(Dm,jm),_.nextToken(),i(D,_.currentOffset(),_.currentPosition()),D}function c(_){const v=_.nextToken(),T=_.context(),{lastOffset:g,lastStartLoc:C}=T,D=s(8,g,C);return v.type!==11?(r(_,ue.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),D.value="",i(D,g,C),{nextConsumeToken:v,node:D}):(v.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,kt(v)),D.value=v.value||"",i(D,_.currentOffset(),_.currentPosition()),{node:D})}function f(_,v){const T=_.context(),g=s(7,T.offset,T.startLoc);return g.value=v,i(g,_.currentOffset(),_.currentPosition()),g}function d(_){const v=_.context(),T=s(6,v.offset,v.startLoc);let g=_.nextToken();if(g.type===8){const C=c(_);T.modifier=C.node,g=C.nextConsumeToken||_.nextToken()}switch(g.type!==9&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kt(g)),g=_.nextToken(),g.type===2&&(g=_.nextToken()),g.type){case 10:g.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kt(g)),T.key=f(_,g.value||"");break;case 4:g.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kt(g)),T.key=l(_,g.value||"");break;case 5:g.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kt(g)),T.key=a(_,g.value||"");break;case 6:g.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kt(g)),T.key=u(_,g.value||"");break;default:{r(_,ue.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const C=_.context(),D=s(7,C.offset,C.startLoc);return D.value="",i(D,C.offset,C.startLoc),T.key=D,i(T,C.offset,C.startLoc),{nextConsumeToken:g,node:T}}}return i(T,_.currentOffset(),_.currentPosition()),{node:T}}function h(_){const v=_.context(),T=v.currentType===1?_.currentOffset():v.offset,g=v.currentType===1?v.endLoc:v.startLoc,C=s(2,T,g);C.items=[];let D=null;do{const U=D||_.nextToken();switch(D=null,U.type){case 0:U.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kt(U)),C.items.push(o(_,U.value||""));break;case 5:U.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kt(U)),C.items.push(a(_,U.value||""));break;case 4:U.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kt(U)),C.items.push(l(_,U.value||""));break;case 6:U.value==null&&r(_,ue.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kt(U)),C.items.push(u(_,U.value||""));break;case 7:{const Y=d(_);C.items.push(Y.node),D=Y.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const P=v.currentType===1?v.lastOffset:_.currentOffset(),M=v.currentType===1?v.lastEndLoc:_.currentPosition();return i(C,P,M),C}function y(_,v,T,g){const C=_.context();let D=g.items.length===0;const P=s(1,v,T);P.cases=[],P.cases.push(g);do{const M=h(_);D||(D=M.items.length===0),P.cases.push(M)}while(C.currentType!==13);return D&&r(_,ue.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),i(P,_.currentOffset(),_.currentPosition()),P}function w(_){const v=_.context(),{offset:T,startLoc:g}=v,C=h(_);return v.currentType===13?C:y(_,T,g,C)}function E(_){const v=$m(_,Ae({},e)),T=v.context(),g=s(0,T.offset,T.startLoc);return t&&g.loc&&(g.loc.source=_),g.body=w(v),e.onCacheKey&&(g.cacheKey=e.onCacheKey(_)),T.currentType!==13&&r(v,ue.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,_[T.offset]||""),i(g,v.currentOffset(),v.currentPosition()),g}return{parse:E}}function kt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Fm(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function mc(e,t){for(let n=0;n<e.length;n++)Yi(e[n],t)}function Yi(e,t){switch(e.type){case 1:mc(e.cases,t),t.helper("plural");break;case 2:mc(e.items,t);break;case 6:{Yi(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 Um(e,t={}){const n=Fm(e);n.helper("normalize"),e.body&&Yi(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Km(e){const t=e.body;return t.type===2?gc(t):t.cases.forEach(n=>gc(n)),e}function gc(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=Zi(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Hn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Hn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Hn(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Hn(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Hn(t.key),t.k=t.key,delete t.key,t.modifier&&(Hn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Wm(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,i=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};i&&e.loc&&(o.source=e.loc.source);const a=()=>o;function l(w,E){o.code+=w}function u(w,E=!0){const _=E?r:"";l(s?_+" ".repeat(w):_)}function c(w=!0){const E=++o.indentLevel;w&&u(E)}function f(w=!0){const E=--o.indentLevel;w&&u(E)}function d(){u(o.indentLevel)}return{context:a,push:l,indent:c,deindent:f,newline:d,helper:w=>`_${w}`,needIndent:()=>o.needIndent}}function Hm(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),zn(e,t.key),t.modifier?(e.push(", "),zn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function zm(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(zn(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function Vm(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(zn(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function Bm(e,t){t.body?zn(e,t.body):e.push("null")}function zn(e,t){const{helper:n}=e;switch(t.type){case 0:Bm(e,t);break;case 1:Vm(e,t);break;case 2:zm(e,t);break;case 6:Hm(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Gm=(e,t={})=>{const n=F(t.mode)?t.mode:"normal",r=F(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
9
|
+
`,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],a=Wm(e,{filename:r,breakLineCode:s,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),o.length>0&&(a.push(`const { ${Zi(o.map(c=>`${c}: _${c}`),", ")} } = ctx`),a.newline()),a.push("return "),zn(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:l,map:u}=a.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function Zm(e,t={}){const n=Ae({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=Mm(n).parse(e);return r?(i&&Km(a),s&&Hn(a),{ast:a,code:""}):(Um(a,n),Gm(a,n))}function Xm(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(bn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(bn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function xt(e){return oe(e)&&Ji(e)===0&&(at(e,"b")||at(e,"body"))}const _c=["b","body"];function Ym(e){return en(e,_c)}const bc=["c","cases"];function Jm(e){return en(e,bc,[])}const yc=["s","static"];function qm(e){return en(e,yc)}const wc=["i","items"];function Qm(e){return en(e,wc,[])}const vc=["t","type"];function Ji(e){return en(e,vc)}const kc=["v","value"];function Cs(e,t){const n=en(e,kc);if(n!=null)return n;throw Sr(t)}const xc=["m","modifier"];function eg(e){return en(e,xc)}const Sc=["k","key"];function tg(e){const t=en(e,Sc);if(t)return t;throw Sr(6)}function en(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(at(e,s)&&e[s]!=null)return e[s]}return n}const Tc=[..._c,...bc,...yc,...wc,...Sc,...xc,...kc,...vc];function Sr(e){return new Error(`unhandled node type: ${e}`)}function qi(e){return n=>ng(n,e)}function ng(e,t){const n=Ym(t);if(n==null)throw Sr(0);if(Ji(n)===1){const i=Jm(n);return e.plural(i.reduce((o,a)=>[...o,Ec(e,a)],[]))}else return Ec(e,n)}function Ec(e,t){const n=qm(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Qm(t).reduce((s,i)=>[...s,Qi(e,i)],[]);return e.normalize(r)}}function Qi(e,t){const n=Ji(t);switch(n){case 3:return Cs(t,n);case 9:return Cs(t,n);case 4:{const r=t;if(at(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(at(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Sr(n)}case 5:{const r=t;if(at(r,"i")&&Ie(r.i))return e.interpolate(e.list(r.i));if(at(r,"index")&&Ie(r.index))return e.interpolate(e.list(r.index));throw Sr(n)}case 6:{const r=t,s=eg(r),i=tg(r);return e.linked(Qi(e,i),s?Qi(e,s):void 0,e.type)}case 7:return Cs(t,n);case 8:return Cs(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const rg=e=>e;let Os=de();function sg(e,t={}){let n=!1;const r=t.onError||Im;return t.onError=s=>{n=!0,r(s)},{...Zm(e,t),detectError:n}}function ig(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&F(e)){re(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||rg)(e),s=Os[r];if(s)return s;const{ast:i,detectError:o}=sg(e,{...t,location:!1,jit:!0}),a=qi(i);return o?a:Os[r]=a}else{const n=e.cacheKey;if(n){const r=Os[n];return r||(Os[n]=qi(e))}else return qi(e)}}let Tr=null;function og(e){Tr=e}function ag(e,t,n){Tr&&Tr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const lg=cg("function:translate");function cg(e){return t=>Tr&&Tr.emit(e,t)}const Ft={INVALID_ARGUMENT:Em,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},ug=24;function Ut(e){return Is(e,null,void 0)}function eo(e,t){return t.locale!=null?Ic(t.locale):Ic(e.locale)}let to;function Ic(e){if(F(e))return e;if(ye(e)){if(e.resolvedOnce&&to!=null)return to;if(e.constructor.name==="Function"){const t=e();if(xm(t))throw Ut(Ft.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return to=t}else throw Ut(Ft.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ut(Ft.NOT_SUPPORT_LOCALE_TYPE)}function fg(e,t,n){return[...new Set([n,...ke(t)?t:oe(t)?Object.keys(t):F(t)?[t]:[n]])]}function Cc(e,t,n){const r=F(n)?n:Er,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ke(o);)o=Oc(i,o,t);const a=ke(t)||!q(t)?t:t.default?t.default:null;o=F(a)?[a]:a,ke(o)&&Oc(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Oc(e,t,n){let r=!0;for(let s=0;s<t.length&&re(r);s++){const i=t[s];F(i)&&(r=dg(e,t[s],n))}return r}function dg(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=hg(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function hg(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(ke(n)||q(n))&&n[s]&&(r=n[s])}return r}const tn=[];tn[0]={w:[0],i:[3,0],"[":[4],o:[7]},tn[1]={w:[1],".":[2],"[":[4],o:[7]},tn[2]={w:[2],i:[3,0],0:[3,0]},tn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},tn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},tn[5]={"'":[4,0],o:8,l:[5,0]},tn[6]={'"':[4,0],o:8,l:[6,0]};const pg=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function mg(e){return pg.test(e)}function gg(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 _g(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 bg(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:mg(t)?gg(t):"*"+t}function yg(e){const t=[];let n=-1,r=0,s=0,i,o,a,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=a:o+=a},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,o===void 0||(o=bg(o),o===!1))return!1;d[1]()}};function h(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,a="\\"+y,d[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(l=_g(i),f=tn[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(a=i,c()===!1))))return;if(r===7)return t}}const Ac=new Map;function wg(e,t){return oe(e)?e[t]:null}function vg(e,t){if(!oe(e))return null;let n=Ac.get(t);if(n||(n=yg(t),n&&Ac.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(Tc.includes(o)&&xt(s))return null;const a=s[o];if(a===void 0||ye(s))return null;s=a,i++}return s}const kg="11.2.8",As=-1,Er="en-US",Pc="",Lc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function xg(){return{upper:(e,t)=>t==="text"&&F(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&F(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&F(e)?Lc(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?Lc(e.children):e}}let Rc;function Sg(e){Rc=e}let $c;function Tg(e){$c=e}let Nc;function Eg(e){Nc=e}let Dc=null;const Ig=e=>{Dc=e},Cg=()=>Dc;let jc=null;const Mc=e=>{jc=e},Og=()=>jc;let Fc=0;function Ag(e={}){const t=ye(e.onWarn)?e.onWarn:gm,n=F(e.version)?e.version:kg,r=F(e.locale)||ye(e.locale)?e.locale:Er,s=ye(r)?Er:r,i=ke(e.fallbackLocale)||q(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=q(e.messages)?e.messages:no(s),a=q(e.datetimeFormats)?e.datetimeFormats:no(s),l=q(e.numberFormats)?e.numberFormats:no(s),u=Ae(de(),e.modifiers,xg()),c=e.pluralRules||de(),f=ye(e.missing)?e.missing:null,d=re(e.missingWarn)||Wn(e.missingWarn)?e.missingWarn:!0,h=re(e.fallbackWarn)||Wn(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,w=!!e.unresolving,E=ye(e.postTranslation)?e.postTranslation:null,_=q(e.processor)?e.processor:null,v=re(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,g=ye(e.messageCompiler)?e.messageCompiler:Rc,C=ye(e.messageResolver)?e.messageResolver:$c||wg,D=ye(e.localeFallbacker)?e.localeFallbacker:Nc||fg,P=oe(e.fallbackContext)?e.fallbackContext:void 0,M=e,U=oe(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,Y=oe(M.__numberFormatters)?M.__numberFormatters:new Map,ee=oe(M.__meta)?M.__meta:{};Fc++;const Z={version:n,cid:Fc,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:h,fallbackFormat:y,unresolving:w,postTranslation:E,processor:_,warnHtmlMessage:v,escapeParameter:T,messageCompiler:g,messageResolver:C,localeFallbacker:D,fallbackContext:P,onWarn:t,__meta:ee};return Z.datetimeFormats=a,Z.numberFormats=l,Z.__datetimeFormatters=U,Z.__numberFormatters=Y,__INTLIFY_PROD_DEVTOOLS__&&ag(Z,n,ee),Z}const no=e=>({[e]:de()});function ro(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return F(a)?a:t}else return t}function Ir(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Pg(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Lg(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Pg(e,t[r]))return!0;return!1}function Uc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=so(...t),d=re(c.missingWarn)?c.missingWarn:e.missingWarn;re(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,y=eo(e,c),w=o(e,s,y);if(!F(l)||l==="")return new Intl.DateTimeFormat(y,f).format(u);let E={},_,v=null;const T="datetime format";for(let D=0;D<w.length&&(_=w[D],E=n[_]||{},v=E[l],!q(v));D++)ro(e,l,_,d,T);if(!q(v)||!F(_))return r?As:l;let g=`${_}__${l}`;Ss(f)||(g=`${g}__${JSON.stringify(f)}`);let C=a.get(g);return C||(C=new Intl.DateTimeFormat(_,Ae({},v,f)),a.set(g,C)),h?C.formatToParts(u):C.format(u)}const Kc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function so(...e){const[t,n,r,s]=e,i=de();let o=de(),a;if(F(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ut(Ft.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(u);try{a.toISOString()}catch{throw Ut(Ft.INVALID_ISO_DATE_ARGUMENT)}}else if(ym(t)){if(isNaN(t.getTime()))throw Ut(Ft.INVALID_DATE_ARGUMENT);a=t}else if(Ie(t))a=t;else throw Ut(Ft.INVALID_ARGUMENT);return F(n)?i.key=n:q(n)&&Object.keys(n).forEach(l=>{Kc.includes(l)?o[l]=n[l]:i[l]=n[l]}),F(r)?i.locale=r:q(r)&&(o=r),q(s)&&(o=s),[i.key||"",a,i,o]}function Wc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function Hc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=io(...t),d=re(c.missingWarn)?c.missingWarn:e.missingWarn;re(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,y=eo(e,c),w=o(e,s,y);if(!F(l)||l==="")return new Intl.NumberFormat(y,f).format(u);let E={},_,v=null;const T="number format";for(let D=0;D<w.length&&(_=w[D],E=n[_]||{},v=E[l],!q(v));D++)ro(e,l,_,d,T);if(!q(v)||!F(_))return r?As:l;let g=`${_}__${l}`;Ss(f)||(g=`${g}__${JSON.stringify(f)}`);let C=a.get(g);return C||(C=new Intl.NumberFormat(_,Ae({},v,f)),a.set(g,C)),h?C.formatToParts(u):C.format(u)}const zc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function io(...e){const[t,n,r,s]=e,i=de();let o=de();if(!Ie(t))throw Ut(Ft.INVALID_ARGUMENT);const a=t;return F(n)?i.key=n:q(n)&&Object.keys(n).forEach(l=>{zc.includes(l)?o[l]=n[l]:i[l]=n[l]}),F(r)?i.locale=r:q(r)&&(o=r),q(s)&&(o=s),[i.key||"",a,i,o]}function Vc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const Rg=e=>e,$g=e=>"",Ng="text",Dg=e=>e.length===0?"":Zi(e),jg=Sm;function Bc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Mg(e){const t=Ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ie(e.named.count)||Ie(e.named.n))?Ie(e.named.count)?e.named.count:Ie(e.named.n)?e.named.n:t:t}function Fg(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ug(e={}){const t=e.locale,n=Mg(e),r=oe(e.pluralRules)&&F(t)&&ye(e.pluralRules[t])?e.pluralRules[t]:Bc,s=oe(e.pluralRules)&&F(t)&&ye(e.pluralRules[t])?Bc:void 0,i=_=>_[r(n,_.length,s)],o=e.list||[],a=_=>o[_],l=e.named||de();Ie(e.pluralIndex)&&Fg(n,l);const u=_=>l[_];function c(_,v){const T=ye(e.messages)?e.messages(_,!!v):oe(e.messages)?e.messages[_]:!1;return T||(e.parent?e.parent.message(_):$g)}const f=_=>e.modifiers?e.modifiers[_]:Rg,d=q(e.processor)&&ye(e.processor.normalize)?e.processor.normalize:Dg,h=q(e.processor)&&ye(e.processor.interpolate)?e.processor.interpolate:jg,y=q(e.processor)&&F(e.processor.type)?e.processor.type:Ng,E={list:a,named:u,plural:i,linked:(_,...v)=>{const[T,g]=v;let C="text",D="";v.length===1?oe(T)?(D=T.modifier||D,C=T.type||C):F(T)&&(D=T||D):v.length===2&&(F(T)&&(D=T||D),F(g)&&(C=g||C));const P=c(_,!0)(E),M=C==="vnode"&&ke(P)&&D?P[0]:P;return D?f(D)(M,C):M},message:c,type:y,interpolate:h,normalize:d,values:Ae(de(),o,l)};return E}const Gc=()=>"",tt=e=>ye(e);function Zc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,u]=oo(...t),c=re(u.missingWarn)?u.missingWarn:e.missingWarn,f=re(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=re(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,y=F(u.default)||re(u.default)?re(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,w=n||y!=null&&(F(y)||ye(y)),E=eo(e,u);d&&Kg(u);let[_,v,T]=h?[l,E,a[E]||de()]:Xc(e,l,E,o,f,c),g=_,C=l;if(!h&&!(F(g)||xt(g)||tt(g))&&w&&(g=y,C=g),!h&&(!(F(g)||xt(g)||tt(g))||!F(v)))return s?As:l;let D=!1;const P=()=>{D=!0},M=tt(g)?g:Yc(e,l,v,g,C,P);if(D)return g;const U=zg(e,v,T,u),Y=Ug(U),ee=Wg(e,M,Y);let Z=r?r(ee,l):ee;if(d&&F(Z)&&(Z=vm(Z)),__INTLIFY_PROD_DEVTOOLS__){const ie={timestamp:Date.now(),key:F(l)?l:tt(g)?g.key:"",locale:v||(tt(g)?g.locale:""),format:F(g)?g:tt(g)?g.source:"",message:Z};ie.meta=Ae({},e.__meta,Cg()||{}),lg(ie)}return Z}function Kg(e){ke(e.list)?e.list=e.list.map(t=>F(t)?fc(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{F(e.named[t])&&(e.named[t]=fc(e.named[t]))})}function Xc(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=de(),d,h=null;const y="translate";for(let w=0;w<c.length&&(d=c[w],f=o[d]||de(),(h=l(f,t))===null&&(h=f[t]),!(F(h)||xt(h)||tt(h)));w++)if(!Lg(d,c)){const E=ro(e,t,d,i,y);E!==t&&(h=E)}return[h,d,f]}function Yc(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=e;if(tt(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=(()=>r);return u.locale=n,u.key=t,u}const l=o(r,Hg(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function Wg(e,t,n){return t(n)}function oo(...e){const[t,n,r]=e,s=de();if(!F(t)&&!Ie(t)&&!tt(t)&&!xt(t))throw Ut(Ft.INVALID_ARGUMENT);const i=Ie(t)?String(t):(tt(t),t);return Ie(n)?s.plural=n:F(n)?s.default=n:q(n)&&!Ss(n)?s.named=n:ke(n)&&(s.list=n),Ie(r)?s.plural=r:F(r)?s.default=r:q(r)&&Ae(s,r),[i,s]}function Hg(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>_m(t,n,o)}}function zg(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:s,pluralRules:i,messages:(h,y)=>{let w=o(n,h);if(w==null&&(c||y)){const[,,E]=Xc(c||e,h,t,a,l,u);w=o(E,h)}if(F(w)||xt(w)){let E=!1;const v=Yc(e,h,t,w,h,()=>{E=!0});return E?Gc:v}else return tt(w)?w:Gc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Ie(r.plural)&&(d.pluralIndex=r.plural),d}Xm();const Vg="11.2.8";function Bg(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(bn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(bn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(bn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(bn().__INTLIFY_PROD_DEVTOOLS__=!1)}const ze={UNEXPECTED_RETURN_TYPE:ug,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Je(e,...t){return Is(e,null,void 0)}const ao=Qt("__translateVNode"),lo=Qt("__datetimeParts"),co=Qt("__numberParts"),Jc=Qt("__setPluralRules"),qc=Qt("__injectWithOption"),uo=Qt("__dispose");function Cr(e){if(!oe(e)||xt(e))return e;for(const t in e)if(at(e,t))if(!t.includes("."))oe(e[t])&&Cr(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=de()),!oe(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(xt(s)?Tc.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!xt(s)){const o=s[n[r]];oe(o)&&Cr(o)}}return e}function fo(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=q(n)?n:ke(r)?de():{[e]:de()};if(ke(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||de(),Es(u,o[l])):Es(u,o)}else F(a)&&Es(JSON.parse(a),o)}),s==null&&i)for(const a in o)at(o,a)&&Cr(o[a]);return o}function Qc(e){return e.type}function eu(e,t,n){let r=oe(t.messages)?t.messages:de();"__i18nGlobal"in n&&(r=fo(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(oe(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(oe(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function tu(e){return Te(ur,null,e,0)}function Or(){return Ci()}const nu="__INTLIFY_META__",ru=()=>[],Gg=()=>!1;let su=0;function iu(e){return((t,n,r,s)=>e(n,r,Or()||void 0,s))}const Zg=()=>{const e=Or();let t=null;return e&&(t=Qc(e)[nu])?{[nu]:t}:null};function ho(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=xs?J:xd;let o=re(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:F(e.locale)?e.locale:Er),l=i(t&&o?t.fallbackLocale.value:F(e.fallbackLocale)||ke(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(fo(a.value,e)),c=i(q(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(q(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:re(e.missingWarn)||Wn(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:re(e.fallbackWarn)||Wn(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:re(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,E=ye(e.missing)?e.missing:null,_=ye(e.missing)?iu(e.missing):null,v=ye(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:re(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const C=t?t.modifiers:q(e.modifiers)?e.modifiers:{};let D=e.pluralRules||t&&t.pluralRules,P;P=(()=>{r&&Mc(null);const S={version:Vg,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:D,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:h,fallbackFormat:w,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:T,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=c.value,S.numberFormats=f.value,S.__datetimeFormatters=q(P)?P.__datetimeFormatters:void 0,S.__numberFormatters=q(P)?P.__numberFormatters:void 0;const O=Ag(S);return r&&Mc(O),O})(),Ir(P,a.value,l.value);function U(){return[a.value,l.value,u.value,c.value,f.value]}const Y=et({get:()=>a.value,set:S=>{P.locale=S,a.value=S}}),ee=et({get:()=>l.value,set:S=>{P.fallbackLocale=S,l.value=S,Ir(P,a.value,S)}}),Z=et(()=>u.value),ie=et(()=>c.value),pe=et(()=>f.value);function He(){return ye(v)?v:null}function ae(S){v=S,P.postTranslation=S}function H(){return E}function ne(S){S!==null&&(_=iu(S)),E=S,P.missing=_}const xe=(S,O,K,z,Q,Pe)=>{U();let Ee;try{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=t?Og():void 0),Ee=S(P)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=void 0)}if(K!=="translate exists"&&Ie(Ee)&&Ee===As||K==="translate exists"&&!Ee){const[rt,ft]=O();return t&&y?z(t):Q(rt)}else{if(Pe(Ee))return Ee;throw Je(ze.UNEXPECTED_RETURN_TYPE)}};function ut(...S){return xe(O=>Reflect.apply(Zc,null,[O,...S]),()=>oo(...S),"translate",O=>Reflect.apply(O.t,O,[...S]),O=>O,O=>F(O))}function Ve(...S){const[O,K,z]=S;if(z&&!oe(z))throw Je(ze.INVALID_ARGUMENT);return ut(O,K,Ae({resolvedMessage:!0},z||{}))}function Re(...S){return xe(O=>Reflect.apply(Uc,null,[O,...S]),()=>so(...S),"datetime format",O=>Reflect.apply(O.d,O,[...S]),()=>Pc,O=>F(O)||ke(O))}function It(...S){return xe(O=>Reflect.apply(Hc,null,[O,...S]),()=>io(...S),"number format",O=>Reflect.apply(O.n,O,[...S]),()=>Pc,O=>F(O)||ke(O))}function rn(S){return S.map(O=>F(O)||Ie(O)||re(O)?tu(String(O)):O)}const nt={normalize:rn,interpolate:S=>S,type:"vnode"};function sn(...S){return xe(O=>{let K;const z=O;try{z.processor=nt,K=Reflect.apply(Zc,null,[z,...S])}finally{z.processor=null}return K},()=>oo(...S),"translate",O=>O[ao](...S),O=>[tu(O)],O=>ke(O))}function on(...S){return xe(O=>Reflect.apply(Hc,null,[O,...S]),()=>io(...S),"number format",O=>O[co](...S),ru,O=>F(O)||ke(O))}function Xn(...S){return xe(O=>Reflect.apply(Uc,null,[O,...S]),()=>so(...S),"datetime format",O=>O[lo](...S),ru,O=>F(O)||ke(O))}function Ct(S){D=S,P.pluralRules=D}function Zs(S,O){return xe(()=>{if(!S)return!1;const K=F(O)?O:a.value,z=A(K),Q=P.messageResolver(z,S);return xt(Q)||tt(Q)||F(Q)},()=>[S],"translate exists",K=>Reflect.apply(K.te,K,[S,O]),Gg,K=>re(K))}function b(S){let O=null;const K=Cc(P,l.value,a.value);for(let z=0;z<K.length;z++){const Q=u.value[K[z]]||{},Pe=P.messageResolver(Q,S);if(Pe!=null){O=Pe;break}}return O}function k(S){const O=b(S);return O??(t?t.tm(S)||{}:{})}function A(S){return u.value[S]||{}}function $(S,O){if(s){const K={[S]:O};for(const z in K)at(K,z)&&Cr(K[z]);O=K[S]}u.value[S]=O,P.messages=u.value}function R(S,O){u.value[S]=u.value[S]||{};const K={[S]:O};if(s)for(const z in K)at(K,z)&&Cr(K[z]);O=K[S],Es(O,u.value[S]),P.messages=u.value}function N(S){return c.value[S]||{}}function p(S,O){c.value[S]=O,P.datetimeFormats=c.value,Wc(P,S,O)}function m(S,O){c.value[S]=Ae(c.value[S]||{},O),P.datetimeFormats=c.value,Wc(P,S,O)}function x(S){return f.value[S]||{}}function I(S,O){f.value[S]=O,P.numberFormats=f.value,Vc(P,S,O)}function j(S,O){f.value[S]=Ae(f.value[S]||{},O),P.numberFormats=f.value,Vc(P,S,O)}su++,t&&xs&&(Ze(t.locale,S=>{o&&(a.value=S,P.locale=S,Ir(P,a.value,l.value))}),Ze(t.fallbackLocale,S=>{o&&(l.value=S,P.fallbackLocale=S,Ir(P,a.value,l.value))}));const L={id:su,locale:Y,fallbackLocale:ee,get inheritLocale(){return o},set inheritLocale(S){o=S,S&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,Ir(P,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Z,get modifiers(){return C},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(S){d=S,P.missingWarn=d},get fallbackWarn(){return h},set fallbackWarn(S){h=S,P.fallbackWarn=h},get fallbackRoot(){return y},set fallbackRoot(S){y=S},get fallbackFormat(){return w},set fallbackFormat(S){w=S,P.fallbackFormat=w},get warnHtmlMessage(){return T},set warnHtmlMessage(S){T=S,P.warnHtmlMessage=S},get escapeParameter(){return g},set escapeParameter(S){g=S,P.escapeParameter=S},t:ut,getLocaleMessage:A,setLocaleMessage:$,mergeLocaleMessage:R,getPostTranslationHandler:He,setPostTranslationHandler:ae,getMissingHandler:H,setMissingHandler:ne,[Jc]:Ct};return L.datetimeFormats=ie,L.numberFormats=pe,L.rt=Ve,L.te=Zs,L.tm=k,L.d=Re,L.n=It,L.getDateTimeFormat=N,L.setDateTimeFormat=p,L.mergeDateTimeFormat=m,L.getNumberFormat=x,L.setNumberFormat=I,L.mergeNumberFormat=j,L[qc]=n,L[ao]=sn,L[lo]=Xn,L[co]=on,L}function Xg(e){const t=F(e.locale)?e.locale:Er,n=F(e.fallbackLocale)||ke(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ye(e.missing)?e.missing:void 0,s=re(e.silentTranslationWarn)||Wn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=re(e.silentFallbackWarn)||Wn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=re(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=q(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=ye(e.postTranslation)?e.postTranslation:void 0,f=F(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,h=re(e.sync)?e.sync:!0;let y=e.messages;if(q(e.sharedMessages)){const C=e.sharedMessages;y=Object.keys(C).reduce((P,M)=>{const U=P[M]||(P[M]={});return Ae(U,C[M]),P},y||{})}const{__i18n:w,__root:E,__injectWithOption:_}=e,v=e.datetimeFormats,T=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:g,datetimeFormats:v,numberFormats:T,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:h,__i18n:w,__root:E,__injectWithOption:_}}function po(e={}){const t=ho(Xg(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return re(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=re(s)?!s:s},get silentFallbackWarn(){return re(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=re(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},te(s,i){return t.te(s,i)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,i){t.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){t.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,i){t.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){t.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,i){t.setNumberFormat(s,i)},mergeNumberFormat(s,i){t.mergeNumberFormat(s,i)}};return r.__extender=n,r}function Yg(e,t,n){return{beforeCreate(){const r=Or();if(!r)throw Je(ze.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=t,this===this.$root)this.$i18n=ou(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=po(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ou(e,s);else{this.$i18n=po({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&eu(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Or();if(!r)throw Je(ze.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function ou(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[Jc](t.pluralizationRules||e.pluralizationRules);const n=fo(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 mo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Jg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ce?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},de())}function au(){return Ce}const lu=_t({name:"i18n-t",props:Ae({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ie(e)||!isNaN(e)}},mo),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||St({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f[0]!=="_"),o=de();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=F(e.plural)?+e.plural:e.plural);const a=Jg(t,i),l=s[ao](e.keypath,a,o),u=Ae(de(),r),c=F(e.tag)||oe(e.tag)?e.tag:au();return gr(c,u,l)}}});function qg(e){return ke(e)&&!F(e[0])}function cu(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a=de();e.locale&&(o.locale=e.locale),F(e.format)?o.key=e.format:oe(e.format)&&(F(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,h)=>n.includes(h)?Ae(de(),d,{[h]:e.format[h]}):d,de()));const l=r(e.value,o,a);let u=[o.key];ke(l)?u=l.map((d,h)=>{const y=s[d.type],w=y?y({[d.type]:d.value,index:h,parts:l}):[d.value];return qg(w)&&(w[0].key=`${d.type}-${h}`),w}):F(l)&&(u=[l]);const c=Ae(de(),i),f=F(e.tag)||oe(e.tag)?e.tag:au();return gr(f,c,u)}}const uu=_t({name:"i18n-n",props:Ae({value:{type:Number,required:!0},format:{type:[String,Object]}},mo),setup(e,t){const n=e.i18n||St({useScope:e.scope,__useComponent:!0});return cu(e,t,zc,(...r)=>n[co](...r))}});function Qg(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 e_(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw Je(ze.UNEXPECTED_ERROR);const u=Qg(e,a.$),c=fu(l);return[Reflect.apply(u.t,u,[...du(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);xs&&e.global===u&&(o.__i18nWatcher=Ze(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{xs&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,u=fu(a);o.textContent=Reflect.apply(l.t,l,[...du(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function fu(e){if(F(e))return{path:e};if(q(e)){if(!("path"in e))throw Je(ze.REQUIRED_VALUE,"path");return e}else throw Je(ze.INVALID_VALUE)}function du(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return F(n)&&(o.locale=n),Ie(s)&&(o.plural=s),Ie(i)&&(o.plural=i),[t,a,o]}function t_(e,t,...n){const r=q(n[0])?n[0]:{};(!re(r.globalInstall)||r.globalInstall)&&([lu.name,"I18nT"].forEach(i=>e.component(i,lu)),[uu.name,"I18nN"].forEach(i=>e.component(i,uu)),[pu.name,"I18nD"].forEach(i=>e.component(i,pu))),e.directive("t",e_(t))}const n_=Qt("global-vue-i18n");function r_(e={}){const t=__VUE_I18N_LEGACY_API__&&re(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=re(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,i]=s_(e,t),o=Qt("");function a(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,c),q(d[0])){const w=d[0];c.__composerExtend=w.__composerExtend,c.__vueI18nExtend=w.__vueI18nExtend}let h=null;!t&&n&&(h=d_(f,c.global)),__VUE_I18N_FULL_INSTALL__&&t_(f,c,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Yg(i,i.__composer,c));const y=f.unmount;f.unmount=()=>{h&&h(),c.dispose(),y()}},get global(){return i},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:u};return c}function St(e={}){const t=Or();if(t==null)throw Je(ze.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Je(ze.NOT_INSTALLED);const n=i_(t),r=a_(n),s=Qc(t),i=o_(e,s);if(i==="global")return eu(r,e,s),r;if(i==="parent"){let l=l_(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Ae({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=ho(l),o.__composerExtend&&(a[uo]=o.__composerExtend(a)),u_(o,t,a),o.__setInstance(t,a)}return a}function s_(e,t){const n=ti(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>po(e)):n.run(()=>ho(e));if(r==null)throw Je(ze.UNEXPECTED_ERROR);return[n,r]}function i_(e){const t=je(e.isCE?n_:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Je(e.isCE?ze.NOT_INSTALLED_WITH_PROVIDE:ze.UNEXPECTED_ERROR);return t}function o_(e,t){return Ss(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function a_(e){return e.mode==="composition"?e.global:e.global.__composer}function l_(e,t,n=!1){let r=null;const s=t.root;let i=c_(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[qc]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function c_(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function u_(e,t,n){Nn(()=>{},t),_i(()=>{const r=n;e.__deleteInstance(t);const s=r[uo];s&&(s(),delete r[uo])},t)}const f_=["locale","fallbackLocale","availableLocales"],hu=["t","rt","d","n","tm","te"];function d_(e,t){const n=Object.create(null);return f_.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Je(ze.UNEXPECTED_ERROR);const o=ve(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,hu.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Je(ze.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,hu.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const pu=_t({name:"i18n-d",props:Ae({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},mo),setup(e,t){const n=e.i18n||St({useScope:e.scope,__useComponent:!0});return cu(e,t,Kc,(...r)=>n[lo](...r))}});if(Bg(),Sg(ig),Tg(vg),Eg(Cc),__INTLIFY_PROD_DEVTOOLS__){const e=bn();e.__INTLIFY__=!0,og(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function mu(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}function h_(){this.__data__=[],this.size=0}function gu(e,t){return e===t||e!==e&&t!==t}function Ps(e,t){for(var n=e.length;n--;)if(gu(e[n][0],t))return n;return-1}var p_=Array.prototype,m_=p_.splice;function g_(e){var t=this.__data__,n=Ps(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():m_.call(t,n,1),--this.size,!0}function __(e){var t=this.__data__,n=Ps(t,e);return n<0?void 0:t[n][1]}function b_(e){return Ps(this.__data__,e)>-1}function y_(e,t){var n=this.__data__,r=Ps(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Kt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kt.prototype.clear=h_,Kt.prototype.delete=g_,Kt.prototype.get=__,Kt.prototype.has=b_,Kt.prototype.set=y_;function w_(){this.__data__=new Kt,this.size=0}function v_(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function k_(e){return this.__data__.get(e)}function x_(e){return this.__data__.has(e)}var _u=typeof global=="object"&&global&&global.Object===Object&&global,S_=typeof self=="object"&&self&&self.Object===Object&&self,Tt=_u||S_||Function("return this")(),Et=Tt.Symbol,bu=Object.prototype,T_=bu.hasOwnProperty,E_=bu.toString,Ar=Et?Et.toStringTag:void 0;function I_(e){var t=T_.call(e,Ar),n=e[Ar];try{e[Ar]=void 0;var r=!0}catch{}var s=E_.call(e);return r&&(t?e[Ar]=n:delete e[Ar]),s}var C_=Object.prototype,O_=C_.toString;function A_(e){return O_.call(e)}var P_="[object Null]",L_="[object Undefined]",yu=Et?Et.toStringTag:void 0;function yn(e){return e==null?e===void 0?L_:P_:yu&&yu in Object(e)?I_(e):A_(e)}function Ls(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var R_="[object AsyncFunction]",$_="[object Function]",N_="[object GeneratorFunction]",D_="[object Proxy]";function wu(e){if(!Ls(e))return!1;var t=yn(e);return t==$_||t==N_||t==R_||t==D_}var go=Tt["__core-js_shared__"],vu=(function(){var e=/[^.]+$/.exec(go&&go.keys&&go.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function j_(e){return!!vu&&vu in e}var M_=Function.prototype,F_=M_.toString;function wn(e){if(e!=null){try{return F_.call(e)}catch{}try{return e+""}catch{}}return""}var U_=/[\\^$.*+?()[\]{}|]/g,K_=/^\[object .+?Constructor\]$/,W_=Function.prototype,H_=Object.prototype,z_=W_.toString,V_=H_.hasOwnProperty,B_=RegExp("^"+z_.call(V_).replace(U_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function G_(e){if(!Ls(e)||j_(e))return!1;var t=wu(e)?B_:K_;return t.test(wn(e))}function Z_(e,t){return e?.[t]}function vn(e,t){var n=Z_(e,t);return G_(n)?n:void 0}var Pr=vn(Tt,"Map"),Lr=vn(Object,"create");function X_(){this.__data__=Lr?Lr(null):{},this.size=0}function Y_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var J_="__lodash_hash_undefined__",q_=Object.prototype,Q_=q_.hasOwnProperty;function eb(e){var t=this.__data__;if(Lr){var n=t[e];return n===J_?void 0:n}return Q_.call(t,e)?t[e]:void 0}var tb=Object.prototype,nb=tb.hasOwnProperty;function rb(e){var t=this.__data__;return Lr?t[e]!==void 0:nb.call(t,e)}var sb="__lodash_hash_undefined__";function ib(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Lr&&t===void 0?sb:t,this}function kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kn.prototype.clear=X_,kn.prototype.delete=Y_,kn.prototype.get=eb,kn.prototype.has=rb,kn.prototype.set=ib;function ob(){this.size=0,this.__data__={hash:new kn,map:new(Pr||Kt),string:new kn}}function ab(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rs(e,t){var n=e.__data__;return ab(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lb(e){var t=Rs(this,e).delete(e);return this.size-=t?1:0,t}function cb(e){return Rs(this,e).get(e)}function ub(e){return Rs(this,e).has(e)}function fb(e,t){var n=Rs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nn.prototype.clear=ob,nn.prototype.delete=lb,nn.prototype.get=cb,nn.prototype.has=ub,nn.prototype.set=fb;var db=200;function hb(e,t){var n=this.__data__;if(n instanceof Kt){var r=n.__data__;if(!Pr||r.length<db-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new nn(r)}return n.set(e,t),this.size=n.size,this}function Vn(e){var t=this.__data__=new Kt(e);this.size=t.size}Vn.prototype.clear=w_,Vn.prototype.delete=v_,Vn.prototype.get=k_,Vn.prototype.has=x_,Vn.prototype.set=hb;function pb(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var $s=(function(){try{var e=vn(Object,"defineProperty");return e({},"",{}),e}catch{}})();function ku(e,t,n){t=="__proto__"&&$s?$s(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var mb=Object.prototype,gb=mb.hasOwnProperty;function xu(e,t,n){var r=e[t];(!(gb.call(e,t)&&gu(r,n))||n===void 0&&!(t in e))&&ku(e,t,n)}function _b(e,t,n,r){var s=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),s?ku(n,a,l):xu(n,a,l)}return n}function bb(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function xn(e){return e!=null&&typeof e=="object"}var yb="[object Arguments]";function Su(e){return xn(e)&&yn(e)==yb}var Tu=Object.prototype,wb=Tu.hasOwnProperty,vb=Tu.propertyIsEnumerable,Eu=Su((function(){return arguments})())?Su:function(e){return xn(e)&&wb.call(e,"callee")&&!vb.call(e,"callee")},Sn=Array.isArray;function kb(){return!1}var Iu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cu=Iu&&typeof module=="object"&&module&&!module.nodeType&&module,xb=Cu&&Cu.exports===Iu,Ou=xb?Tt.Buffer:void 0,Sb=Ou?Ou.isBuffer:void 0,Au=Sb||kb,Tb=9007199254740991,Eb=/^(?:0|[1-9]\d*)$/;function Ib(e,t){var n=typeof e;return t=t??Tb,!!t&&(n=="number"||n!="symbol"&&Eb.test(e))&&e>-1&&e%1==0&&e<t}var Cb=9007199254740991;function Pu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Cb}var Ob="[object Arguments]",Ab="[object Array]",Pb="[object Boolean]",Lb="[object Date]",Rb="[object Error]",$b="[object Function]",Nb="[object Map]",Db="[object Number]",jb="[object Object]",Mb="[object RegExp]",Fb="[object Set]",Ub="[object String]",Kb="[object WeakMap]",Wb="[object ArrayBuffer]",Hb="[object DataView]",zb="[object Float32Array]",Vb="[object Float64Array]",Bb="[object Int8Array]",Gb="[object Int16Array]",Zb="[object Int32Array]",Xb="[object Uint8Array]",Yb="[object Uint8ClampedArray]",Jb="[object Uint16Array]",qb="[object Uint32Array]",we={};we[zb]=we[Vb]=we[Bb]=we[Gb]=we[Zb]=we[Xb]=we[Yb]=we[Jb]=we[qb]=!0,we[Ob]=we[Ab]=we[Wb]=we[Pb]=we[Hb]=we[Lb]=we[Rb]=we[$b]=we[Nb]=we[Db]=we[jb]=we[Mb]=we[Fb]=we[Ub]=we[Kb]=!1;function Qb(e){return xn(e)&&Pu(e.length)&&!!we[yn(e)]}function _o(e){return function(t){return e(t)}}var Lu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rr=Lu&&typeof module=="object"&&module&&!module.nodeType&&module,ey=Rr&&Rr.exports===Lu,bo=ey&&_u.process,Bn=(function(){try{var e=Rr&&Rr.require&&Rr.require("util").types;return e||bo&&bo.binding&&bo.binding("util")}catch{}})(),Ru=Bn&&Bn.isTypedArray,ty=Ru?_o(Ru):Qb;function ny(e,t){var n=Sn(e),r=!n&&Eu(e),s=!n&&!r&&Au(e),i=!n&&!r&&!s&&ty(e),o=n||r||s||i,a=o?bb(e.length,String):[],l=a.length;for(var u in e)o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ib(u,l))||a.push(u);return a}var ry=Object.prototype;function sy(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ry;return e===n}function iy(e,t){return function(n){return e(t(n))}}function oy(e){return e!=null&&Pu(e.length)&&!wu(e)}function ay(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ly=Object.prototype,cy=ly.hasOwnProperty;function uy(e){if(!Ls(e))return ay(e);var t=sy(e),n=[];for(var r in e)r=="constructor"&&(t||!cy.call(e,r))||n.push(r);return n}function fy(e){return oy(e)?ny(e):uy(e)}var $u=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nu=$u&&typeof module=="object"&&module&&!module.nodeType&&module,dy=Nu&&Nu.exports===$u,Du=dy?Tt.Buffer:void 0;Du&&Du.allocUnsafe;function hy(e,t){return e.slice()}function py(e,t){for(var n=-1,r=e==null?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}function ju(){return[]}var my=Object.prototype,gy=my.propertyIsEnumerable,Mu=Object.getOwnPropertySymbols,_y=Mu?function(e){return e==null?[]:(e=Object(e),py(Mu(e),function(t){return gy.call(e,t)}))}:ju;function yo(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var Fu=iy(Object.getPrototypeOf,Object),by=Object.getOwnPropertySymbols,yy=by?function(e){for(var t=[];e;)yo(t,_y(e)),e=Fu(e);return t}:ju;function wy(e,t,n){var r=t(e);return Sn(e)?r:yo(r,n(e))}function Uu(e){return wy(e,fy,yy)}var wo=vn(Tt,"DataView"),vo=vn(Tt,"Promise"),ko=vn(Tt,"Set"),xo=vn(Tt,"WeakMap"),Ku="[object Map]",vy="[object Object]",Wu="[object Promise]",Hu="[object Set]",zu="[object WeakMap]",Vu="[object DataView]",ky=wn(wo),xy=wn(Pr),Sy=wn(vo),Ty=wn(ko),Ey=wn(xo),Wt=yn;(wo&&Wt(new wo(new ArrayBuffer(1)))!=Vu||Pr&&Wt(new Pr)!=Ku||vo&&Wt(vo.resolve())!=Wu||ko&&Wt(new ko)!=Hu||xo&&Wt(new xo)!=zu)&&(Wt=function(e){var t=yn(e),n=t==vy?e.constructor:void 0,r=n?wn(n):"";if(r)switch(r){case ky:return Vu;case xy:return Ku;case Sy:return Wu;case Ty:return Hu;case Ey:return zu}return t});var Iy=Object.prototype,Cy=Iy.hasOwnProperty;function Oy(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Cy.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Bu=Tt.Uint8Array;function So(e){var t=new e.constructor(e.byteLength);return new Bu(t).set(new Bu(e)),t}function Ay(e,t){var n=So(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Py=/\w*$/;function Ly(e){var t=new e.constructor(e.source,Py.exec(e));return t.lastIndex=e.lastIndex,t}var Gu=Et?Et.prototype:void 0,Zu=Gu?Gu.valueOf:void 0;function Ry(e){return Zu?Object(Zu.call(e)):{}}function $y(e,t){var n=So(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var Ny="[object Boolean]",Dy="[object Date]",jy="[object Map]",My="[object Number]",Fy="[object RegExp]",Uy="[object Set]",Ky="[object String]",Wy="[object Symbol]",Hy="[object ArrayBuffer]",zy="[object DataView]",Vy="[object Float32Array]",By="[object Float64Array]",Gy="[object Int8Array]",Zy="[object Int16Array]",Xy="[object Int32Array]",Yy="[object Uint8Array]",Jy="[object Uint8ClampedArray]",qy="[object Uint16Array]",Qy="[object Uint32Array]";function ew(e,t,n){var r=e.constructor;switch(t){case Hy:return So(e);case Ny:case Dy:return new r(+e);case zy:return Ay(e);case Vy:case By:case Gy:case Zy:case Xy:case Yy:case Jy:case qy:case Qy:return $y(e);case jy:return new r;case My:case Ky:return new r(e);case Fy:return Ly(e);case Uy:return new r;case Wy:return Ry(e)}}var tw="[object Map]";function nw(e){return xn(e)&&Wt(e)==tw}var Xu=Bn&&Bn.isMap,rw=Xu?_o(Xu):nw,sw="[object Set]";function iw(e){return xn(e)&&Wt(e)==sw}var Yu=Bn&&Bn.isSet,ow=Yu?_o(Yu):iw,Ju="[object Arguments]",aw="[object Array]",lw="[object Boolean]",cw="[object Date]",uw="[object Error]",qu="[object Function]",fw="[object GeneratorFunction]",dw="[object Map]",hw="[object Number]",Qu="[object Object]",pw="[object RegExp]",mw="[object Set]",gw="[object String]",_w="[object Symbol]",bw="[object WeakMap]",yw="[object ArrayBuffer]",ww="[object DataView]",vw="[object Float32Array]",kw="[object Float64Array]",xw="[object Int8Array]",Sw="[object Int16Array]",Tw="[object Int32Array]",Ew="[object Uint8Array]",Iw="[object Uint8ClampedArray]",Cw="[object Uint16Array]",Ow="[object Uint32Array]",ge={};ge[Ju]=ge[aw]=ge[yw]=ge[ww]=ge[lw]=ge[cw]=ge[vw]=ge[kw]=ge[xw]=ge[Sw]=ge[Tw]=ge[dw]=ge[hw]=ge[Qu]=ge[pw]=ge[mw]=ge[gw]=ge[_w]=ge[Ew]=ge[Iw]=ge[Cw]=ge[Ow]=!0,ge[uw]=ge[qu]=ge[bw]=!1;function Ns(e,t,n,r,s,i){var o;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!Ls(e))return e;var a=Sn(e);if(a)o=Oy(e);else{var l=Wt(e),u=l==qu||l==fw;if(Au(e))return hy(e);if(l==Qu||l==Ju||u&&!s)o={};else{if(!ge[l])return s?e:{};o=ew(e,l)}}i||(i=new Vn);var c=i.get(e);if(c)return c;i.set(e,o),ow(e)?e.forEach(function(h){o.add(Ns(h,t,n,h,e,i))}):rw(e)&&e.forEach(function(h,y){o.set(y,Ns(h,t,n,y,e,i))});var f=Uu,d=a?void 0:f(e);return pb(d||e,function(h,y){d&&(y=h,h=e[y]),xu(o,y,Ns(h,t,n,y,e,i))}),o}var Aw="[object Symbol]";function To(e){return typeof e=="symbol"||xn(e)&&yn(e)==Aw}var Pw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lw=/^\w*$/;function Rw(e,t){if(Sn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||To(e)?!0:Lw.test(e)||!Pw.test(e)||t!=null&&e in Object(t)}var $w="Expected a function";function Eo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($w);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(Eo.Cache||nn),n}Eo.Cache=nn;var Nw=500;function Dw(e){var t=Eo(e,function(r){return n.size===Nw&&n.clear(),r}),n=t.cache;return t}var jw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mw=/\\(\\)?/g,Fw=Dw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jw,function(n,r,s,i){t.push(s?i.replace(Mw,"$1"):r||n)}),t}),ef=Et?Et.prototype:void 0,tf=ef?ef.toString:void 0;function nf(e){if(typeof e=="string")return e;if(Sn(e))return mu(e,nf)+"";if(To(e))return tf?tf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Uw(e){return e==null?"":nf(e)}function Io(e,t){return Sn(e)?e:Rw(e,t)?[e]:Fw(Uw(e))}function Kw(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function rf(e){if(typeof e=="string"||To(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ww(e,t){t=Io(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[rf(t[n++])];return n&&n==r?e:void 0}function Hw(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(s);++r<s;)i[r]=e[r+t];return i}function zw(e,t){return t.length<2?e:Ww(e,Hw(t,0,-1))}var Vw=Object.prototype,Bw=Vw.hasOwnProperty;function Gw(e,t){t=Io(t,e);var n=-1,r=t.length;if(!r)return!0;for(var s=e==null||typeof e!="object"&&typeof e!="function";++n<r;){var i=t[n];if(typeof i=="string"){if(i==="__proto__"&&!Bw.call(e,"__proto__"))return!1;if(i==="constructor"&&n+1<r&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(s&&n===0)continue;return!1}}}var o=zw(e,t);return o==null||delete o[rf(Kw(t))]}var Zw="[object Object]",Xw=Function.prototype,Yw=Object.prototype,sf=Xw.toString,Jw=Yw.hasOwnProperty,qw=sf.call(Object);function Qw(e){if(!xn(e)||yn(e)!=Zw)return!1;var t=Fu(e);if(t===null)return!0;var n=Jw.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&sf.call(n)==qw}function ev(e){return Qw(e)?void 0:e}var of=Et?Et.isConcatSpreadable:void 0;function tv(e){return Sn(e)||Eu(e)||!!(of&&e&&e[of])}function nv(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=tv),s||(s=[]);++i<o;){var a=e[i];n(a)?yo(s,a):s[s.length]=a}return s}function rv(e){var t=e==null?0:e.length;return t?nv(e):[]}function sv(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var af=Math.max;function iv(e,t,n){return t=af(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=af(r.length-t,0),o=Array(i);++s<i;)o[s]=r[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=r[s];return a[t]=n(o),sv(e,this,a)}}function ov(e){return function(){return e}}function av(e){return e}var lv=$s?function(e,t){return $s(e,"toString",{configurable:!0,enumerable:!1,value:ov(t),writable:!0})}:av,cv=800,uv=16,fv=Date.now;function dv(e){var t=0,n=0;return function(){var r=fv(),s=uv-(r-n);if(n=r,s>0){if(++t>=cv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hv=dv(lv);function pv(e){return hv(iv(e,void 0,rv),e+"")}var mv=1,gv=2,_v=4,bv=pv(function(e,t){var n={};if(e==null)return n;var r=!1;t=mu(t,function(i){return i=Io(i,e),r||(r=i.length>1),i}),_b(e,Uu(e),n),r&&(n=Ns(n,mv|gv|_v,ev));for(var s=t.length;s--;)Gw(n,t[s]);return n});const lf={de:{admin:"Admin",anonymous:"Anonym",approve_hint:"Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)",discussion:"Diskussion",edit:"Bearbeiten",load_more:"Mehr laden",login:"Anmelden",logout:"Abmelden",placeholder:"Schreiben Sie ein Kommentar...",post_comment:"Kommentar absenden",post_reply:"Antwort absenden",reply:"Antwort",reply_to:"Antwort auf",save_editing:"Speichern",ui_texts:["Seien Sie der Erste, der die Diskussion beginnt!","Beteiligen Sie sich an der Konversation (#)","Laden...","Kommentare laden"],your_comment:"Dein Kommentar"},en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",edit:"Edit",load_more:"Load More",login:"LOGIN",login_or_verify:"Please log in or complete the verification to post.",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",save_editing:"Save",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",edit:"Editar",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",save_editing:"Guardar",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},fr:{admin:"Admin",anonymous:"Anonyme",approve_hint:"Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)",discussion:"Discussion",edit:"Modifier",load_more:"Charger plus",login:"CONNEXION",logout:"Déconnexion",placeholder:"Écrivez un commentaire...",post_comment:"POSTER UN COMMENTAIRE",post_reply:"POSTER UNE RÉPONSE",reply:"Répondre",reply_to:"répondre à",save_editing:"Enregistrer",ui_texts:["Soyez le premier à lancer la discussion !","Rejoignez la conversation (#)","Chargement...","Charger les commentaires"],your_comment:"Votre commentaire"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",edit:"Edit",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",save_editing:"Simpan",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",edit:"Modifica",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",save_editing:"Salva",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",edit:"編集",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",save_editing:"保存",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",edit:"편집",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",save_editing:"저장",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",edit:"Editar",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",save_editing:"Salvar",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",edit:"แก้ไข",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",save_editing:"บันทึก",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",edit:"修改",load_more:"加載更多",login:"登錄",login_or_verify:"請登錄或完成驗證碼後再發表評論。",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",save_editing:"保存",your_comment:"您的評論"},cn:{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",edit:"编辑",load_more:"加载更多",login:"登录",login_or_verify:"请登录或完成验证码后再发表评论。",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",save_editing:"保存",your_comment:"您的评论"}};function yv(){return!!navigator.userAgent.match(/Macintosh/)}function wv(e,t){return(yv()?e.metaKey:e.ctrlKey)&&e.key===t}const vv={maxConsecutivePunctuation:5,maxConsecutiveSpaces:3,maxConsecutiveNewlines:3,minLength:5,maxLength:5e3,minWords:1,allowedPunctuation:[],blockPatterns:[]};function kv(e,t={}){const n={...vv,...t},r=[];if(!e||typeof e!="string")return{valid:!1,errors:["Content is required"]};const s=e.trim();s.length<n.minLength&&r.push(`Content must be at least ${n.minLength} characters`),s.length>n.maxLength&&r.push(`Content must not exceed ${n.maxLength} characters`);const i=xv(s,n.maxConsecutivePunctuation);i.valid||r.push(...i.errors),/^\w{35,}$/.test(s)&&r.push("Content contains too many consecutive letters");const o=Sv(s,n.maxConsecutiveSpaces);o.valid||r.push(...o.errors);const a=Tv(s,n.maxConsecutiveNewlines);a.valid||r.push(...a.errors);const l=Ev(s,n.minWords);if(l.valid||r.push(...l.errors),n.blockPatterns.length>0){const u=Iv(s,n.blockPatterns);u.valid||r.push(...u.errors)}return{valid:r.length===0,errors:r}}function xv(e,t){const n=[],r=["!","?",".",",",";",":","!","?","。",",",";",":","…","~","~"];for(const o of r){const a=new RegExp(`\\${o}{${t+1},}`,"g"),l=e.match(a);l&&n.push(`Too many consecutive "${o}" (max ${t}). Found: ${l[0]}`)}const s=new RegExp(`[${r.join("")}]{${t+1},}`,"g"),i=e.match(s);return i&&n.push(`Too many consecutive punctuation marks (max ${t}). Found: ${i[0]}`),{valid:n.length===0,errors:n}}function Sv(e,t){const n=new RegExp(` {${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive spaces (max ${t})`]}:{valid:!0,errors:[]}}function Tv(e,t){const n=new RegExp(`
|
|
10
|
+
{${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive line breaks (max ${t})`]}:{valid:!0,errors:[]}}function Ev(e,t){const n=e.replace(/[^\p{L}\p{N}\s]/gu," ").trim(),r=n.match(/[\u4e00-\u9fa5]/g);if(r&&r.length>n.length*.3){if(n.replace(/\s+/g,"").length<t)return{valid:!1,errors:[`Content must contain at least ${t} characters`]}}else if(n.split(/\s+/).filter(o=>o.length>0).length<t)return{valid:!1,errors:[`Content must contain at least ${t} words`]};return{valid:!0,errors:[]}}function Iv(e,t){const n=[];for(const r of t)r.test(e)&&n.push(`Content contains blocked pattern: ${r.source}`);return{valid:n.length===0,errors:n}}var Ds=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.UnReplied=255]="UnReplied",e[e["Replied to Admin"]=256]="Replied to Admin",e))(Ds||{});const Cv=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function js(e){return e<10?`0${e}`:`${e}`}function cf(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function uf(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${js(n)}-${js(r)}`}function ff(e){e instanceof Date||(e=cf(e));const t=new Date,n=uf(e);if(uf(t)===n){const r=e.getHours(),s=e.getMinutes();return`${js(r)}:${js(s)}`}return n}function Ov(e){const{id:t,created_at:n,parent_id:r,ancestor_id:s,post_id:i,user_id:o,...a}=e;return{...a,id:Number(t),user_id:o,userId:o,parentId:Number(r),post_id:i,postId:i,ancestorId:Number(s),status:Number(e.status),createdAt:cf(n)}}const Co="awesome-comment-comments",df=localStorage.getItem(Co),Gn=df?JSON.parse(df):{},Zn=Wl("store",()=>{const e=je("postId"),t=je("comments"),n=je("total"),r=J(!!t?.length),s=J(0),i=J(""),o=J([]),a=J(n||0),l=je("ApiBaseUrl"),u=J(!1),c=J(!1);function f(E){const _={},v=[];E.forEach(g=>{y(Number(g.id));const C=Ov(g);!g.ancestor_id||Number(g.ancestor_id)===0?_[g.id]=C:v.push(C)});const T=Gn[e];T&&(T.createdAt=new Date(T.createdAt),!T.ancestorId||Number(T.ancestorId)===0?_[T.id]=T:v.push(T)),v.forEach(g=>{if(g.ancestorId in _){const C=_[g.ancestorId];C.children=[g,...C.children||[]]}});for(const g in _){const C=_[g];C.children&&(C.children=C.children.sort((D,P)=>D.id-P.id))}return _}async function d(E=!1){if(u.value)return;i.value="",u.value=!0;let _;if(E&&t?.length)_=f(t);else{const v=new URLSearchParams;v.append("postId",e),v.append("start",s.value.toString());const T=await fetch(`${l}/api/comments?${v}`);if(!T.ok){i.value="Load comments failed. "+T.statusText,r.value=!0,u.value=!1;return}const g=await T.json();if(g.code!==0){i.value="Load comments failed. "+g.message,r.value=!0,u.value=!1;return}_=f(g.data||[]),a.value=g.meta?.total||g.data?.length||0}c.value=Object.keys(_).length>20,c.value&&delete _[Object.keys(_)[0]],Object.assign(o.value,_),r.value=!0,u.value=!1}function h(E,_,v,T=Ds.Pending,g,C){const{sub:D="",name:P="",picture:M="",email:U="",nickname:Y=""}=v,ee={id:E,post_id:e,postId:e,content:_,createdAt:new Date,user:{avatar:M,email:U,name:Y||P},user_id:D,userId:D,status:T,isNew:!0};if(g||C){ee.ancestorId=g,ee.parentId=C;const Z=o.value[g];if(Z.children||(Z.children=[]),g===C)Z.children.unshift(ee);else{const ie=Z.children.findIndex(pe=>Number(pe.id)===C);Z.children.splice(ie+1,0,ee)}}else ee.ancestorId=0,ee.parentId=0,o.value={[E]:ee,...o.value};a.value++,T!==Ds.Approved&&(Gn[e]=ee,localStorage.setItem(Co,JSON.stringify(Gn)))}function y(E){Gn[e]?.id===E&&(delete Gn[e],localStorage.setItem(Co,JSON.stringify(Gn)))}function w(E,_){let v=o.value[E];if(!v){for(const T of Object.values(o.value))if(T.children&&(v=T.children.find(g=>Number(g.id)===E),v))break}v&&Object.assign(v,_)}return{isLoaded:r,message:i,postId:e,comments:o,total:a,start:s,hasMore:c,loadingMore:u,loadComments:d,addComment:h,updateComment:w}});var hf={exports:{}},pf;function Av(){return pf||(pf=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function s(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new s(c,f||l,d),y=n?n+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],h]:l._events[y].push(h):(l._events[y]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,c;if(this._eventsCount===0)return l;for(c in u=this._events)t.call(u,c)&&l.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,c=this._events[u];if(!c)return[];if(c.fn)return[c.fn];for(var f=0,d=c.length,h=new Array(d);f<d;f++)h[f]=c[f].fn;return h},a.prototype.listenerCount=function(l){var u=n?n+l:l,c=this._events[u];return c?c.fn?1:c.length:0},a.prototype.emit=function(l,u,c,f,d,h){var y=n?n+l:l;if(!this._events[y])return!1;var w=this._events[y],E=arguments.length,_,v;if(w.fn){switch(w.once&&this.removeListener(l,w.fn,void 0,!0),E){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,u),!0;case 3:return w.fn.call(w.context,u,c),!0;case 4:return w.fn.call(w.context,u,c,f),!0;case 5:return w.fn.call(w.context,u,c,f,d),!0;case 6:return w.fn.call(w.context,u,c,f,d,h),!0}for(v=1,_=new Array(E-1);v<E;v++)_[v-1]=arguments[v];w.fn.apply(w.context,_)}else{var T=w.length,g;for(v=0;v<T;v++)switch(w[v].once&&this.removeListener(l,w[v].fn,void 0,!0),E){case 1:w[v].fn.call(w[v].context);break;case 2:w[v].fn.call(w[v].context,u);break;case 3:w[v].fn.call(w[v].context,u,c);break;case 4:w[v].fn.call(w[v].context,u,c,f);break;default:if(!_)for(g=1,_=new Array(E-1);g<E;g++)_[g-1]=arguments[g];w[v].fn.apply(w[v].context,_)}}return!0},a.prototype.on=function(l,u,c){return i(this,l,u,c,!1)},a.prototype.once=function(l,u,c){return i(this,l,u,c,!0)},a.prototype.removeListener=function(l,u,c,f){var d=n?n+l:l;if(!this._events[d])return this;if(!u)return o(this,d),this;var h=this._events[d];if(h.fn)h.fn===u&&(!f||h.once)&&(!c||h.context===c)&&o(this,d);else{for(var y=0,w=[],E=h.length;y<E;y++)(h[y].fn!==u||f&&!h[y].once||c&&h[y].context!==c)&&w.push(h[y]);w.length?this._events[d]=w.length===1?w[0]:w:o(this,d)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(hf)),hf.exports}Av();let Pv=class extends Error{};Pv.prototype.name="InvalidTokenError";var Lv=typeof global=="object"&&global&&global.Object===Object&&global,Rv=typeof self=="object"&&self&&self.Object===Object&&self,$v=Lv||Rv||Function("return this")(),Ms=$v.Symbol;Ms&&Ms.toStringTag,Ms&&Ms.toStringTag;var Fs=(e=>(e.INIT="init",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(Fs||{});const Oo=Wl("auth",()=>{const e=je("awesomeAuth"),t=!e&&mm(),n=J(!1),r=J(!1),s=J(),i=!!e,o=et(()=>e?e.root:"");async function a(){return e?e.accessToken:t?await t.getAccessTokenSilently():""}function l(){e?e.doSignIn():t&&t.loginWithPopup()}function u(f){e?e.doSignOut():t&&t.logout(f)}async function c(f,d){e&&await e.renderButton(f,d)}return e?(e.on(Fs.INIT,f=>{r.value=f,f&&(n.value=!1)}),e.on(Fs.VERIFYING,f=>{r.value=f}),e.on(Fs.VERIFIED,f=>{n.value=f,s.value=f?e.user:void 0}),r.value=e.isVerifying,n.value=e.isVerified,s.value=e.user):t&&(Ze(t.isLoading,f=>{r.value=f},{immediate:!0}),Ze(t.isAuthenticated,f=>{n.value=f},{immediate:!0}),Ze(t.user,f=>{s.value=f},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,renderGoogleButton:c,login:l,logout:u}}),Nv={class:"ac-form-control bg-base-200 rounded-lg"},Dv={class:"sr-only",for:"ac-comment"},jv=["placeholder"],Mv={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Fv={key:0,class:"text-xs text-neutral-400/40"},Uv={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},Kv={key:2,class:"flex items-center gap-3 ms-4"},Wv=["disabled"],Hv={key:0,class:"ac-loading ac-loading-spinner"},Us=_t({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=Oo(),i=Zn(),{t:o}=St(),a=je("ApiBaseUrl"),l=je("Auth0Domain"),u=je("TurnstileSiteKey"),c="0.10.2",f=J(),d=J(),h=J(!1),y=J(n.content||""),w=J(""),E=J(!1),_=J(""),v=J(""),T=et(()=>!s.isAuthenticated);let g=null;function C(){if(typeof window>"u")return Promise.reject(new Error("Turnstile 仅支持浏览器环境"));if(window.turnstile)return Promise.resolve();if(g)return g;const ie="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";return g=new Promise((pe,He)=>{const ae=document.querySelector(`script[src="${ie}"]`),H=ae||document.createElement("script");function ne(){pe()}function xe(){He(new Error("Turnstile 脚本加载失败"))}H.addEventListener("load",ne,{once:!0}),H.addEventListener("error",xe,{once:!0}),ae||(H.src=ie,H.async=!0,H.defer=!0,document.head.appendChild(H))}),g.catch(()=>{g=null}),g}async function D(){if(!(!u||!d.value)){if(await C(),!window.turnstile){w.value="Turnstile 初始化失败";return}if(v.value){window.turnstile.reset(v.value);return}v.value=window.turnstile.render(d.value,{sitekey:u,size:"compact",callback:ie=>{_.value=ie,w.value=""},"expired-callback":()=>{_.value=""},"error-callback":()=>{_.value="",w.value="Turnstile 验证失败,请重试。"}})}}function P(){!v.value||!window.turnstile||(window.turnstile.reset(v.value),_.value="")}function M(){return s.user?s.user:{sub:"anonymous",name:"anonymous",nickname:"anonymous",picture:"",email:""}}async function U(ie){if(!s.isAuthenticated){if(!u)return Y();if(E.value=!0,!_.value){w.value=o("login_or_verify"),await sr(),await D();return}}if(ie.target.matches(":invalid"))return;const pe=y.value.trim();if(!pe)return;if(!kv(pe).valid){w.value="We encourage meaningful contributions to foster a positive community. Thank you for your understanding!";return}h.value=!0,w.value="";let He=a+"/api/comment",ae="POST";n.currentId&&(He+="/"+n.currentId,ae="PATCH");try{const H=s.isAuthenticated?await s.getAccessToken():"",xe={"Content-Type":"application/json","Auth-Endpoint":s.authEndpoint};H&&(xe.Authorization=`Bearer ${H}`);const ut=T.value?{referrer:document.referrer||"",language:navigator.language||"",languages:navigator.languages||[],timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"",platform:navigator.platform||""}:null,Ve=T.value?{custom:window.custom_comment_data??null,anonymous:ut}:window.custom_comment_data,Re=await fetch(He,{method:ae,headers:xe,body:JSON.stringify({comment:pe,postId:i.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status,window:`${window.innerWidth}x${window.innerHeight} / ${screen.width,screen.height}`,customData:Ve,extraData:`${window.BM_LEVEL}:${window.BM_VALUE}`,turnstileToken:T.value?_.value:void 0})}),It=await Re.json();if(!Re.ok||It.message){w.value="Failed to post comment: "+(It.message||"Unknown"),h.value=!1;return}const{id:rn,status:In}=It.data,nt=M();n.ancestorId||n.parentId?i.addComment(rn,pe,nt,In,n.ancestorId,n.parentId):n.currentId?r("update",pe):i.addComment(rn,pe,nt,In),y.value="",r("close"),T.value&&(P(),E.value=!1)}catch(H){w.value=H.message||String(H)}h.value=!1}function Y(){s.login()}function ee(ie){wv(ie,"Enter")&&U(ie)}function Z(){r("close")}return Nn(()=>{f.value?.focus()}),Ze(()=>E.value,async ie=>{!ie||s.isAuthenticated||(await sr(),await D())}),Ze(()=>s.isAuthenticated,ie=>{ie&&(E.value=!1,P())}),(ie,pe)=>(V(),X("form",{class:"mb-6",onSubmit:$i(U,["prevent"])},[ce("div",Nv,[ce("label",Dv,be(W(o)("your_comment")),1),Kd(ce("textarea",{id:"ac-comment",ref_key:"textarea",ref:f,"onUpdate:modelValue":pe[0]||(pe[0]=He=>y.value=He),placeholder:W(o)("placeholder"),class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",required:"",rows:"3",onKeydown:[pe[1]||(pe[1]=$i(()=>{},["stop"])),$l(ee,["enter"]),$l(Z,["esc"])],onKeyup:pe[2]||(pe[2]=$i(()=>{},["stop"]))},null,40,jv),[[_p,y.value]]),ce("div",Mv,[e.noVersion?Le("",!0):(V(),X("div",Fv," v"+be(W(c)),1)),w.value?(V(),X("div",Uv,be(w.value),1)):Le("",!0),E.value&&!W(s).isAuthenticated?(V(),X("div",Kv,[ce("button",{class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",onClick:Y},be(W(o)("login")),1),W(u)?(V(),X("div",{key:0,ref_key:"turnstileContainer",ref:d},null,512)):Le("",!0)])):Le("",!0),ce("button",{disabled:h.value||E.value&&!W(s).isAuthenticated&&!_.value,class:"ac-btn ac-btn-primary ac-btn-sm ms-auto"},[h.value?(V(),X("span",Hv)):Le("",!0),e.currentId?(V(),X(Ce,{key:1},[dn(be(W(o)("save_editing")),1)],64)):e.parentId?(V(),X(Ce,{key:2},[dn(be(W(o)("post_reply")),1)],64)):(V(),X(Ce,{key:3},[dn(be(W(o)("post_comment")),1)],64))],8,Wv)])])],32))}});const mf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Vv=e=>{const t=zv(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),gf=e=>e==="";var $r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const Gv=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:s,"stroke-width":i,size:o=$r.width,color:a=$r.stroke,...l},{slots:u})=>gr("svg",{...$r,...l,width:o,height:o,stroke:a,"stroke-width":gf(n)||gf(r)||n===!0||r===!0?Number(s||i||$r["stroke-width"])*24/Number(o):s||i||$r["stroke-width"],class:Bv("lucide",l.class,...e?[`lucide-${mf(Vv(e))}-icon`,`lucide-${mf(e)}`]:["lucide-icon"])},[...t.map(c=>gr(...c)),...u.default?[u.default()]:[]]);const Ks=(e,t)=>(n,{slots:r,attrs:s})=>gr(Gv,{...s,...n,iconNode:t,name:e},r);const Zv=Ks("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const Xv=Ks("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);const Yv=Ks("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const Jv=Ks("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]),qv={class:"flex items-center gap-2"},Qv=["aria-label","title","disabled"],e0={key:0,class:"ac-loading ac-loading-spinner"},t0={class:"text-sm text-gray-500 dark:text-gray-400"},n0=["aria-label","title","disabled"],r0={key:0,class:"ac-loading ac-loading-spinner"},s0=["aria-label","title"],Ao="awesome-comment-likes",i0=_t({__name:"comment-actions",props:{comment:{}},emits:["reply"],setup(e,{emit:t}){const n=e,r=t,s=Zn(),{t:i}=St(),o=je("ApiBaseUrl"),a=J(0);async function l(u=!0){if(a.value)return;const c=localStorage.getItem(Ao);if(c){const h=JSON.parse(c),y=Date.now(),w=h[n.comment.id];if(h[n.comment.id]=y,localStorage.setItem(Ao,JSON.stringify(h)),w&&y-w<6e4){s.updateComment(n.comment.id,{like:Math.max((n.comment.like||0)+(u?1:-1),0)});return}}else localStorage.setItem(Ao,JSON.stringify({[n.comment.id]:Date.now()}));a.value=u?1:-1;const d=await(await fetch(`${o}/api/like/${n.comment.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({like:u,postId:n.comment.postId})})).json();s.updateComment(n.comment.id,{like:d.data?.like||0}),a.value=0}return(u,c)=>(V(),X("div",qv,[ce("button",{"aria-label":W(i)("like"),title:W(i)("like"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[0]||(c[0]=f=>l())},[a.value>0?(V(),X("span",e0)):(V(),Yt(W(Jv),{key:1,size:16}))],8,Qv),ce("span",t0,be(e.comment.like||0),1),ce("button",{"aria-label":W(i)("dislike"),title:W(i)("dislike"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[1]||(c[1]=f=>l(!1))},[a.value<0?(V(),X("span",r0)):(V(),Yt(W(Yv),{key:1,size:16}))],8,n0),ce("button",{"aria-label":W(i)("reply"),title:W(i)("reply"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none -me-1.5",type:"button",onClick:c[2]||(c[2]=f=>r("reply"))},[Te(W(Xv),{size:16})],8,s0)]))}});function Po(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Tn=Po();function _f(e){Tn=e}var Nr={exec:()=>null};function se(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(We.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}var o0=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),We={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},a0=/^(?:[ \t]*(?:\n|$))+/,l0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,c0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Dr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,u0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Lo=/(?:[*+-]|\d{1,9}[.)])/,bf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,yf=se(bf).replace(/bull/g,Lo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),f0=se(bf).replace(/bull/g,Lo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ro=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,d0=/^[^\n]+/,$o=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,h0=se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$o).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),p0=se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Lo).getRegex(),Ws="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",No=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,m0=se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",No).replace("tag",Ws).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),wf=se(Ro).replace("hr",Dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ws).getRegex(),g0=se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",wf).getRegex(),Do={blockquote:g0,code:l0,def:h0,fences:c0,heading:u0,hr:Dr,html:m0,lheading:yf,list:p0,newline:a0,paragraph:wf,table:Nr,text:d0},vf=se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ws).getRegex(),_0={...Do,lheading:f0,table:vf,paragraph:se(Ro).replace("hr",Dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",vf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ws).getRegex()},b0={...Do,html:se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",No).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Nr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:se(Ro).replace("hr",Dr).replace("heading",` *#{1,6} *[^
|
|
11
|
+
]`).replace("lheading",yf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},y0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,w0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,kf=/^( {2,}|\\)\n(?!\s*$)/,v0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Hs=/[\p{P}\p{S}]/u,jo=/[\s\p{P}\p{S}]/u,xf=/[^\s\p{P}\p{S}]/u,k0=se(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,jo).getRegex(),Sf=/(?!~)[\p{P}\p{S}]/u,x0=/(?!~)[\s\p{P}\p{S}]/u,S0=/(?:[^\s\p{P}\p{S}]|~)/u,T0=se(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",o0?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Tf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,E0=se(Tf,"u").replace(/punct/g,Hs).getRegex(),I0=se(Tf,"u").replace(/punct/g,Sf).getRegex(),Ef="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",C0=se(Ef,"gu").replace(/notPunctSpace/g,xf).replace(/punctSpace/g,jo).replace(/punct/g,Hs).getRegex(),O0=se(Ef,"gu").replace(/notPunctSpace/g,S0).replace(/punctSpace/g,x0).replace(/punct/g,Sf).getRegex(),A0=se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xf).replace(/punctSpace/g,jo).replace(/punct/g,Hs).getRegex(),P0=se(/\\(punct)/,"gu").replace(/punct/g,Hs).getRegex(),L0=se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),R0=se(No).replace("(?:-->|$)","-->").getRegex(),$0=se("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",R0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),zs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,N0=se(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",zs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),If=se(/^!?\[(label)\]\[(ref)\]/).replace("label",zs).replace("ref",$o).getRegex(),Cf=se(/^!?\[(ref)\](?:\[\])?/).replace("ref",$o).getRegex(),D0=se("reflink|nolink(?!\\()","g").replace("reflink",If).replace("nolink",Cf).getRegex(),Of=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Mo={_backpedal:Nr,anyPunctuation:P0,autolink:L0,blockSkip:T0,br:kf,code:w0,del:Nr,emStrongLDelim:E0,emStrongRDelimAst:C0,emStrongRDelimUnd:A0,escape:y0,link:N0,nolink:Cf,punctuation:k0,reflink:If,reflinkSearch:D0,tag:$0,text:v0,url:Nr},j0={...Mo,link:se(/^!?\[(label)\]\((.*?)\)/).replace("label",zs).getRegex(),reflink:se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",zs).getRegex()},Fo={...Mo,emStrongRDelimAst:O0,emStrongLDelim:I0,url:se(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Of).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:se(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Of).getRegex()},M0={...Fo,br:se(kf).replace("{2,}","*").getRegex(),text:se(Fo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Vs={normal:Do,gfm:_0,pedantic:b0},jr={normal:Mo,gfm:Fo,breaks:M0,pedantic:j0},F0={"&":"&","<":"<",">":">",'"':""","'":"'"},Af=e=>F0[e];function Ht(e,t){if(t){if(We.escapeTest.test(e))return e.replace(We.escapeReplace,Af)}else if(We.escapeTestNoEncode.test(e))return e.replace(We.escapeReplaceNoEncode,Af);return e}function Pf(e){try{e=encodeURI(e).replace(We.percentDecode,"%")}catch{return null}return e}function Lf(e,t){let n=e.replace(We.findPipe,(i,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(We.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(We.slashPipe,"|");return r}function Mr(e,t,n){let r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function U0(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Rf(e,t,n,r,s){let i=t.href,o=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}function K0(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let s=r[1];return t.split(`
|
|
12
12
|
`).map(i=>{let o=i.match(n.other.beginningSpace);if(o===null)return i;let[a]=o;return a.length>=s.length?i.slice(s.length):i}).join(`
|
|
13
13
|
`)}var Bs=class{options;rules;lexer;constructor(e){this.options=e||Tn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Mr(n,`
|
|
14
14
|
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=K0(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Mr(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Mr(t[0],`
|
|
@@ -20,15 +20,15 @@ var AwesomeComment=(function(){"use strict";function Xs(e){const t=Object.create
|
|
|
20
20
|
${u}`:u,s=s?`${s}
|
|
21
21
|
${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=f,n.length===0)break;let d=i.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let h=d,y=h.raw+`
|
|
22
22
|
`+n.join(`
|
|
23
|
-
`),
|
|
23
|
+
`),w=this.blockquote(y);i[i.length-1]=w,r=r.substring(0,r.length-h.raw.length)+w.raw,s=s.substring(0,s.length-h.text.length)+w.text;break}else if(d?.type==="list"){let h=d,y=h.raw+`
|
|
24
24
|
`+n.join(`
|
|
25
|
-
`),
|
|
25
|
+
`),w=this.list(y);i[i.length-1]=w,r=r.substring(0,r.length-d.raw.length)+w.raw,s=s.substring(0,s.length-h.raw.length)+w.raw,n=y.substring(i.at(-1).raw.length).split(`
|
|
26
26
|
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=!1;for(;e;){let l=!1,u="",c="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let f=t[2].split(`
|
|
27
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,
|
|
27
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),d=e.split(`
|
|
28
28
|
`,1)[0],h=!f.trim(),y=0;if(this.options.pedantic?(y=2,c=f.trimStart()):h?y=t[1].length+1:(y=t[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,c=f.slice(y),y+=t[1].length),h&&this.rules.other.blankLine.test(d)&&(u+=d+`
|
|
29
|
-
`,e=e.substring(d.length+1),l=!0),!l){let
|
|
30
|
-
`,1)[0],C;if(d=g,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),C=d):C=d.replace(this.rules.other.tabCharGlobal," "),_.test(d)||
|
|
31
|
-
`+C.slice(y);else{if(h||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(f)||
|
|
29
|
+
`,e=e.substring(d.length+1),l=!0),!l){let w=this.rules.other.nextBulletRegex(y),E=this.rules.other.hrRegex(y),_=this.rules.other.fencesBeginRegex(y),v=this.rules.other.headingBeginRegex(y),T=this.rules.other.htmlBeginRegex(y);for(;e;){let g=e.split(`
|
|
30
|
+
`,1)[0],C;if(d=g,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),C=d):C=d.replace(this.rules.other.tabCharGlobal," "),_.test(d)||v.test(d)||T.test(d)||w.test(d)||E.test(d))break;if(C.search(this.rules.other.nonSpaceChar)>=y||!d.trim())c+=`
|
|
31
|
+
`+C.slice(y);else{if(h||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(f)||v.test(f)||E.test(f))break;c+=`
|
|
32
32
|
`+d}!h&&!d.trim()&&(h=!0),u+=g+`
|
|
33
33
|
`,e=e.substring(g.length+1),f=C.slice(y)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0)),s.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),s.raw+=u}let a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let l of s.items){if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),l.task){if(l.text=l.text.replace(this.rules.other.listReplaceTask,""),l.tokens[0]?.type==="text"||l.tokens[0]?.type==="paragraph"){l.tokens[0].raw=l.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),l.tokens[0].text=l.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}}let u=this.rules.other.listTaskCheckbox.exec(l.raw);if(u){let c={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};l.checked=c.checked,s.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=c.raw+l.tokens[0].raw,l.tokens[0].text=c.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(c)):l.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):l.tokens.unshift(c)}}if(!s.loose){let u=l.tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=c}}if(s.loose)for(let l of s.items){l.loose=!0;for(let u of l.tokens)u.type==="text"&&(u.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Lf(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
34
34
|
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of s)i.rows.push(Lf(o,i.header.length).map((a,l)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:i.align[l]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
@@ -65,4 +65,4 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
65
65
|
${e}</tr>
|
|
66
66
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
67
67
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ht(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=Pf(e);if(s===null)return r;e=s;let i='<a href="'+e+'"';return t&&(i+=' title="'+Ht(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=Pf(e);if(s===null)return Ht(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${Ht(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ht(e.text)}},Uo=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ct=class Bo{options;renderer;textRenderer;constructor(t){this.options=t||Tn,this.options.renderer=this.options.renderer||new Gs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Uo}static parse(t,n){return new Bo(n).parse(t)}static parseInline(t,n){return new Bo(n).parseInline(t)}parse(t){let n="";for(let r=0;r<t.length;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let o=s,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){n+=a||"";continue}}let i=s;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}parseInline(t,n=this.renderer){let r="";for(let s=0;s<t.length;s++){let i=t[s];if(this.options.extensions?.renderers?.[i.type]){let a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=a||"";continue}}let o=i;switch(o.type){case"escape":{r+=n.text(o);break}case"html":{r+=n.html(o);break}case"link":{r+=n.link(o);break}case"image":{r+=n.image(o);break}case"checkbox":{r+=n.checkbox(o);break}case"strong":{r+=n.strong(o);break}case"em":{r+=n.em(o);break}case"codespan":{r+=n.codespan(o);break}case"br":{r+=n.br(o);break}case"del":{r+=n.del(o);break}case"text":{r+=n.text(o);break}default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},Fr=class{options;block;constructor(e){this.options=e||Tn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?lt.lex:lt.lexInline}provideParser(){return this.block?ct.parse:ct.parseInline}},W0=class{defaults=Po();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ct;Renderer=Gs;TextRenderer=Uo;Lexer=lt;Tokenizer=Bs;Hooks=Fr;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let s=r;for(let i of s.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of s.rows)for(let o of i)n=n.concat(this.walkTokens(o.tokens,t));break}case"list":{let s=r;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=r;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(i=>{let o=s[i].flat(1/0);n=n.concat(this.walkTokens(o,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let i=t.renderers[s.name];i?t.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=i.apply(this,o)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[s.level];i?i.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){let s=this.defaults.renderer||new Gs(this.defaults);for(let i in n.renderer){if(!(i in s))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,a=n.renderer[o],l=s[o];s[o]=(...u)=>{let c=a.apply(s,u);return c===!1&&(c=l.apply(s,u)),c||""}}r.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Bs(this.defaults);for(let i in n.tokenizer){if(!(i in s))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,a=n.tokenizer[o],l=s[o];s[o]=(...u)=>{let c=a.apply(s,u);return c===!1&&(c=l.apply(s,u)),c}}r.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Fr;for(let i in n.hooks){if(!(i in s))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,a=n.hooks[o],l=s[o];Fr.passThroughHooks.has(i)?s[o]=u=>{if(this.defaults.async&&Fr.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await a.call(s,u);return l.call(s,f)})();let c=a.call(s,u);return l.call(s,c)}:s[o]=(...u)=>{if(this.defaults.async)return(async()=>{let f=await a.apply(s,u);return f===!1&&(f=await l.apply(s,u)),f})();let c=a.apply(s,u);return c===!1&&(c=l.apply(s,u)),c}}r.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(o){let a=[];return a.push(i.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return lt.lex(e,t??this.defaults)}parser(e,t){return ct.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let o=s.hooks?await s.hooks.preprocess(t):t,a=await(s.hooks?await s.hooks.provideLexer():e?lt.lex:lt.lexInline)(o,s),l=s.hooks?await s.hooks.processAllTokens(a):a;s.walkTokens&&await Promise.all(this.walkTokens(l,s.walkTokens));let u=await(s.hooks?await s.hooks.provideParser():e?ct.parse:ct.parseInline)(l,s);return s.hooks?await s.hooks.postprocess(u):u})().catch(i);try{s.hooks&&(t=s.hooks.preprocess(t));let o=(s.hooks?s.hooks.provideLexer():e?lt.lex:lt.lexInline)(t,s);s.hooks&&(o=s.hooks.processAllTokens(o)),s.walkTokens&&this.walkTokens(o,s.walkTokens);let a=(s.hooks?s.hooks.provideParser():e?ct.parse:ct.parseInline)(o,s);return s.hooks&&(a=s.hooks.postprocess(a)),a}catch(o){return i(o)}}}onError(e,t){return n=>{if(n.message+=`
|
|
68
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Ht(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},En=new W0;function fe(e,t){return En.parse(e,t)}fe.options=fe.setOptions=function(e){return En.setOptions(e),fe.defaults=En.defaults,_f(fe.defaults),fe},fe.getDefaults=Po,fe.defaults=Tn,fe.use=function(...e){return En.use(...e),fe.defaults=En.defaults,_f(fe.defaults),fe},fe.walkTokens=function(e,t){return En.walkTokens(e,t)},fe.parseInline=En.parseInline,fe.Parser=ct,fe.parser=ct.parse,fe.Renderer=Gs,fe.TextRenderer=Uo,fe.Lexer=lt,fe.lexer=lt.lex,fe.Tokenizer=Bs,fe.Hooks=Fr,fe.parse=fe,fe.options,fe.setOptions,fe.use,fe.walkTokens,fe.parseInline,ct.parse,lt.lex;const H0=["href"],z0=["innerHTML"],V0={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},B0=["href"],G0=_t({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=St(),r=Zn();function s(o){return fe(o).replace(/<a/g,'<a target="_blank"')}function i(o){if(t.ancestorId){const l=r.comments[t.ancestorId]?.children?.find(u=>Number(u.id)===Number(o));return l?.isAdmin?n("admin"):l?.user?.name||l?.user?.email||""}return""}return(o,a)=>e.comment.isAdmin?(V(),X(Ce,{key:0},[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(V(),X("a",{key:0,href:`#awcm-${e.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+be(i(e.comment.parentId)),9,H0)):Le("",!0),ce("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(e.comment.content)},null,8,z0)],64)):(V(),X("p",V0,[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(V(),X("a",{key:0,href:`#awcm-${e.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+be(i(e.comment.parentId)),9,B0)):Le("",!0),dn(be(e.comment.content),1)]))}});function Z0(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){const s=t>>r*8&255;n+=("00"+s.toString(16)).slice(-2)}return n}const X0={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},Y0={class:"ac-avatar"},J0={key:0,class:"w-6 h-6"},q0=["alt","src"],Q0={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},ek=["data-tip"],tk=["href"],nk=["datetime","title"],rk=_t({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=St(),i=et(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(Cw,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(V(),X("div",X0,[ce("div",Y0,[e.comment.user?.avatar?(V(),X("div",J0,[ce("img",{alt:i.value,src:e.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,q0)])):(V(),X("div",{key:1,style:Zr({"background-color":W(Z0)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[ce("span",Q0,be(i.value.substring(0,1)),1)],4))]),dn(" "+be(i.value)+" ",1),e.comment.isAdmin?(V(),X("div",{key:0,"data-tip":W(s)("admin"),class:"ac-tooltip text-success"},[Te(W(Zw),{class:"block",size:18})],8,ek)):Le("",!0),ce("a",{href:o(e.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[ce("time",{datetime:e.comment.createdAt.toISOString(),title:W(ff)(e.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},be(W(ff)(e.comment.createdAt)),9,nk)],8,tk),e.isEditable?(V(),X("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs hover:no-underline",type:"button",onClick:l[0]||(l[0]=u=>r("edit"))},be(W(s)("edit")),1)):Le("",!0)]))}}),sk=["id"],ik={class:"flex justify-between items-center font-sans"},ok={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},ak=_t({...{name:"CommentItem"},props:{comment:{},isFirst:{type:Boolean},isFirstLevel:{type:Boolean},isLast:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=St(),r=Zn(),s=Oo();let i;const o=J(Date.now()),a=J(!1),l=J(!1),u=et(()=>t.comment.userId===s.user?.sub&&o.value-t.comment.createdAt.getTime()<36e5);return Nn(()=>{u.value&&(i=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(i)},1e3))}),Ma(()=>{clearInterval(i)}),(c,f)=>{const d=ah("comment-item",!0);return V(),X("div",{id:"awcm-"+e.comment.id,class:Jn([[{"animated flash":e.comment.isNew},e.isFirstLevel?"mb-4":e.isFirst?"-mt-4":"mt-1"],"comment-item target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=h=>W(r).updateComment(e.comment.id,{isNew:!1}))},[ce("div",{class:Jn(["pt-2 px-4 text-base bg-base-200 dark:bg-gray-900",[{"rounded-lg":e.isFirstLevel,"rounded-b-lg":e.isLast,"rounded-t-lg shadow-outline-md":e.isFirst},e.comment.children?.length?"pb-6":"pb-3"]])},[ce("header",ik,[Te(rk,{comment:e.comment,"is-editable":u.value,"is-editing":a.value,onEdit:f[0]||(f[0]=h=>a.value=!a.value)},null,8,["comment","is-editable","is-editing"]),Te(i0,{comment:e.comment,onReply:f[1]||(f[1]=h=>l.value=!l.value)},null,8,["comment"])]),Te(G0,{"ancestor-id":e.ancestorId,comment:e.comment},null,8,["ancestor-id","comment"]),e.comment.status===W(Ds).Pending?(V(),X("p",ok,be(W(n)("approve_hint")),1)):Le("",!0)],2),a.value?(V(),Yt(Us,{key:0,content:e.comment.content,"current-id":e.comment.id,status:e.comment.status,class:"mt-3","no-version":"",onClose:f[2]||(f[2]=h=>a.value=!1),onUpdate:f[3]||(f[3]=h=>W(r).updateComment(e.comment.id,{content:h}))},null,8,["content","current-id","status"])):Le("",!0),l.value&&e.isFirstLevel?(V(),Yt(Us,{key:1,"ancestor-id":e.ancestorId,"parent-id":Number(e.comment.id),class:"mt-2 ms-7","no-version":"",onClose:f[4]||(f[4]=h=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Le("",!0),e.comment.children?.length?(V(!0),X(Ce,{key:2},Ua(e.comment.children,(h,y)=>(V(),Yt(d,{key:h.id,"ancestor-id":e.ancestorId,comment:h,"is-first":y===0,"is-first-level":!1,"is-last":y===e.comment.children.length-1,class:"ms-7"},null,8,["ancestor-id","comment","is-first","is-last"]))),128)):Le("",!0),l.value&&!e.isFirstLevel?(V(),Yt(Us,{key:3,"ancestor-id":e.ancestorId,"parent-id":e.comment.id,class:"mt-2 ms-7","no-version":"",onClose:f[5]||(f[5]=h=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Le("",!0)],42,sk)}}}),lk={key:0,class:"comments-wrapper"},ck=["disabled"],uk={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},fk={key:1,class:"py-8 text-center"},dk=_t({...{name:"CommentSections"},setup(e){const{t}=St(),n=Zn();function r(){n.start+=20,n.loadComments()}return Nn(()=>{n.isLoaded||n.loadComments()}),(s,i)=>W(n).isLoaded?(V(),X("div",lk,[(V(!0),X(Ce,null,Ua(Object.values(W(n).comments).reverse(),o=>(V(),Yt(ak,{key:o.id,"ancestor-id":o.id,comment:o,"parent-id":o.parentId,"is-first-level":""},null,8,["ancestor-id","comment","parent-id"]))),128)),W(n).hasMore?(V(),X("button",{key:0,disabled:W(n).loadingMore,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:r},[W(n).loadingMore?(V(),X("span",uk)):Le("",!0),dn(" "+be(W(t)("load_more")),1)],8,ck)):Le("",!0)])):(V(),X("div",fk,[...i[0]||(i[0]=[ce("span",{class:"ac-loading ac-loading-spinner text-base-content"},null,-1)])]))}}),hk={class:"awesome-comment"},pk={key:0,class:"ac-alert ac-alert-error mb-4"},mk={class:"flex justify-between items-center py-2"},gk={class:"text-lg font-bold text-base-content my-0"},_k={key:0,class:"ac-loading ac-loading-spinner"},bk={key:1,class:"ac-dropdown ac-dropdown-end"},yk={key:0,class:"ac-avatar flex",tabindex:"0"},vk={class:"block w-6 h-6 rounded-full"},wk=["alt","src"],kk={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},xk={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Sk={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Tk={class:"text-base-content"},Ek=["disabled"],Ik=["disabled"],Ck=_t({__name:"App",setup(e){const t=Zn(),{t:n}=St(),r=Oo(),s=J(),i=et(()=>{const u=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const c=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(c),u});function o(){r.login()}function a(){r.logout({openUrl:!1})}async function l(){if(!r.isAwesomeAuth||r.isAuthenticated)return;await sr();const u=s.value;u&&(u.innerHTML="",await r.renderGoogleButton(u,{theme:"outline",size:"medium",text:"signin_with",shape:"pill"}))}return Nn(()=>{l()}),Ze(()=>r.isAuthenticated,u=>{u||l()}),(u,c)=>(V(),X("div",hk,[W(t).message?(V(),X("div",pk,[ce("p",null,be(W(t).message),1)])):Le("",!0),ce("header",mk,[ce("h2",gk,be(W(n)("discussion"))+" ("+be(i.value)+") ",1),W(r).isLoading?(V(),X("span",_k)):(V(),X("div",bk,[W(r).isAuthenticated&&W(r).user?(V(),X(Ce,{key:0},[W(r).user.picture?(V(),X("label",yk,[ce("span",vk,[ce("img",{alt:W(r).user.name||W(r).user.email,src:W(r).user.picture,class:"w-full h-full block"},null,8,wk)])])):(V(),X("label",kk,be(W(r).user.email),1)),ce("ul",xk,[W(r).user.picture?(V(),X("li",Sk,[ce("span",Tk,be(W(r).user.email),1)])):Le("",!0),ce("li",null,[ce("button",{disabled:W(r).isLoading,class:"border-0 bg-base-100",type:"button",onClick:a},be(W(n)("logout")),9,Ek)])])],64)):W(r).isAwesomeAuth?(V(),X("div",{key:2,ref_key:"googleButton",ref:s},null,512)):(V(),X("button",{key:1,disabled:W(r).isLoading,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",onClick:o},be(W(n)("login")),9,Ik))]))]),Te(Us),Te(dk)]))}}),$f=[];let Ko=0,Wo=null;function Ok({domain:e,clientId:t,locale:n=navigator.language}){const r=xp(Ck),s=Ep(),i=Wo||e&&t&&cc({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=r_({legacy:!1,locale:n,fallbackLocale:"en",messages:{...bw(lf,"cn"),"zh-CN":lf.cn}});return i&&r.use(i),r.use(s),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",locale:"",awesomeAuth:void 0,turnstileSiteKey:"",init(e,{postId:t,apiUrl:n,domain:r,clientId:s,awesomeAuth:i,turnstileSiteKey:o,locale:a=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain||"",s??=this.clientId,i??=this.awesomeAuth,o??=this.turnstileSiteKey;const l=Ok({domain:r,clientId:s,locale:a});l.provide("ApiBaseUrl",n),l.provide("postId",t),l.provide("Auth0Domain",r),l.provide("comments",$f),l.provide("total",Ko),l.provide("awesomeAuth",i),l.provide("TurnstileSiteKey",o),l.mount(e)},async preload({postId:e,apiUrl:t,domain:n,clientId:r,awesomeAuth:s,turnstileSiteKey:i}){if(this.postId=e||"",this.apiUrl=t||"",this.domain=n||"",this.clientId=r||"",this.turnstileSiteKey=i||"",n&&r&&(Wo=cc({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}})),!Wo&&!s)throw new Error("You need at least 1 Auth provider.");this.awesomeAuth=s;const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const a=await o.json();if(a.data){$f.push(...a.data),Ko=a.meta?.total||a.data.length;const l=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Ko});document.body.dispatchEvent(l)}}}})();
|
|
68
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Ht(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},En=new W0;function fe(e,t){return En.parse(e,t)}fe.options=fe.setOptions=function(e){return En.setOptions(e),fe.defaults=En.defaults,_f(fe.defaults),fe},fe.getDefaults=Po,fe.defaults=Tn,fe.use=function(...e){return En.use(...e),fe.defaults=En.defaults,_f(fe.defaults),fe},fe.walkTokens=function(e,t){return En.walkTokens(e,t)},fe.parseInline=En.parseInline,fe.Parser=ct,fe.parser=ct.parse,fe.Renderer=Gs,fe.TextRenderer=Uo,fe.Lexer=lt,fe.lexer=lt.lex,fe.Tokenizer=Bs,fe.Hooks=Fr,fe.parse=fe,fe.options,fe.setOptions,fe.use,fe.walkTokens,fe.parseInline,ct.parse,lt.lex;const H0=["href"],z0=["innerHTML"],V0={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},B0=["href"],G0=_t({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=St(),r=Zn();function s(o){return fe(o).replace(/<a/g,'<a target="_blank"')}function i(o){if(t.ancestorId){const l=r.comments[t.ancestorId]?.children?.find(u=>Number(u.id)===Number(o));return l?.isAdmin?n("admin"):l?.user?.name||l?.user?.email||""}return""}return(o,a)=>e.comment.isAdmin?(V(),X(Ce,{key:0},[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(V(),X("a",{key:0,href:`#awcm-${e.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+be(i(e.comment.parentId)),9,H0)):Le("",!0),ce("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(e.comment.content)},null,8,z0)],64)):(V(),X("p",V0,[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(V(),X("a",{key:0,href:`#awcm-${e.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+be(i(e.comment.parentId)),9,B0)):Le("",!0),dn(be(e.comment.content),1)]))}});function Z0(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){const s=t>>r*8&255;n+=("00"+s.toString(16)).slice(-2)}return n}const X0={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},Y0={class:"ac-avatar"},J0={key:0,class:"w-6 h-6"},q0=["alt","src"],Q0={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},ek=["data-tip"],tk=["href"],nk=["datetime","title"],rk=_t({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=St(),i=et(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(Cv,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(V(),X("div",X0,[ce("div",Y0,[e.comment.user?.avatar?(V(),X("div",J0,[ce("img",{alt:i.value,src:e.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,q0)])):(V(),X("div",{key:1,style:Zr({"background-color":W(Z0)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[ce("span",Q0,be(i.value.substring(0,1)),1)],4))]),dn(" "+be(i.value)+" ",1),e.comment.isAdmin?(V(),X("div",{key:0,"data-tip":W(s)("admin"),class:"ac-tooltip text-success"},[Te(W(Zv),{class:"block",size:18})],8,ek)):Le("",!0),ce("a",{href:o(e.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[ce("time",{datetime:e.comment.createdAt.toISOString(),title:W(ff)(e.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},be(W(ff)(e.comment.createdAt)),9,nk)],8,tk),e.isEditable?(V(),X("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs hover:no-underline",type:"button",onClick:l[0]||(l[0]=u=>r("edit"))},be(W(s)("edit")),1)):Le("",!0)]))}}),sk=["id"],ik={class:"flex justify-between items-center font-sans"},ok={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},ak=_t({...{name:"CommentItem"},props:{comment:{},isFirst:{type:Boolean},isFirstLevel:{type:Boolean},isLast:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=St(),r=Zn(),s=Oo();let i;const o=J(Date.now()),a=J(!1),l=J(!1),u=et(()=>t.comment.userId===s.user?.sub&&o.value-t.comment.createdAt.getTime()<36e5);return Nn(()=>{u.value&&(i=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(i)},1e3))}),Ma(()=>{clearInterval(i)}),(c,f)=>{const d=ah("comment-item",!0);return V(),X("div",{id:"awcm-"+e.comment.id,class:Jn([[{"animated flash":e.comment.isNew},e.isFirstLevel?"mb-4":e.isFirst?"-mt-4":"mt-1"],"comment-item target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=h=>W(r).updateComment(e.comment.id,{isNew:!1}))},[ce("div",{class:Jn(["pt-2 px-4 text-base bg-base-200 dark:bg-gray-900",[{"rounded-lg":e.isFirstLevel,"rounded-b-lg":e.isLast,"rounded-t-lg shadow-outline-md":e.isFirst},e.comment.children?.length?"pb-6":"pb-3"]])},[ce("header",ik,[Te(rk,{comment:e.comment,"is-editable":u.value,"is-editing":a.value,onEdit:f[0]||(f[0]=h=>a.value=!a.value)},null,8,["comment","is-editable","is-editing"]),Te(i0,{comment:e.comment,onReply:f[1]||(f[1]=h=>l.value=!l.value)},null,8,["comment"])]),Te(G0,{"ancestor-id":e.ancestorId,comment:e.comment},null,8,["ancestor-id","comment"]),e.comment.status===W(Ds).Pending?(V(),X("p",ok,be(W(n)("approve_hint")),1)):Le("",!0)],2),a.value?(V(),Yt(Us,{key:0,content:e.comment.content,"current-id":e.comment.id,status:e.comment.status,class:"mt-3","no-version":"",onClose:f[2]||(f[2]=h=>a.value=!1),onUpdate:f[3]||(f[3]=h=>W(r).updateComment(e.comment.id,{content:h}))},null,8,["content","current-id","status"])):Le("",!0),l.value&&e.isFirstLevel?(V(),Yt(Us,{key:1,"ancestor-id":e.ancestorId,"parent-id":Number(e.comment.id),class:"mt-2 ms-7","no-version":"",onClose:f[4]||(f[4]=h=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Le("",!0),e.comment.children?.length?(V(!0),X(Ce,{key:2},Ua(e.comment.children,(h,y)=>(V(),Yt(d,{key:h.id,"ancestor-id":e.ancestorId,comment:h,"is-first":y===0,"is-first-level":!1,"is-last":y===e.comment.children.length-1,class:"ms-7"},null,8,["ancestor-id","comment","is-first","is-last"]))),128)):Le("",!0),l.value&&!e.isFirstLevel?(V(),Yt(Us,{key:3,"ancestor-id":e.ancestorId,"parent-id":e.comment.id,class:"mt-2 ms-7","no-version":"",onClose:f[5]||(f[5]=h=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Le("",!0)],42,sk)}}}),lk={key:0,class:"comments-wrapper"},ck=["disabled"],uk={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},fk={key:1,class:"py-8 text-center"},dk=_t({...{name:"CommentSections"},setup(e){const{t}=St(),n=Zn();function r(){n.start+=20,n.loadComments()}return Nn(()=>{n.isLoaded||n.loadComments()}),(s,i)=>W(n).isLoaded?(V(),X("div",lk,[(V(!0),X(Ce,null,Ua(Object.values(W(n).comments).reverse(),o=>(V(),Yt(ak,{key:o.id,"ancestor-id":o.id,comment:o,"parent-id":o.parentId,"is-first-level":""},null,8,["ancestor-id","comment","parent-id"]))),128)),W(n).hasMore?(V(),X("button",{key:0,disabled:W(n).loadingMore,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:r},[W(n).loadingMore?(V(),X("span",uk)):Le("",!0),dn(" "+be(W(t)("load_more")),1)],8,ck)):Le("",!0)])):(V(),X("div",fk,[...i[0]||(i[0]=[ce("span",{class:"ac-loading ac-loading-spinner text-base-content"},null,-1)])]))}}),hk={class:"awesome-comment"},pk={key:0,class:"ac-alert ac-alert-error mb-4"},mk={class:"flex justify-between items-center py-2"},gk={class:"text-lg font-bold text-base-content my-0"},_k={key:0,class:"ac-loading ac-loading-spinner"},bk={key:1,class:"ac-dropdown ac-dropdown-end"},yk={key:0,class:"ac-avatar flex",tabindex:"0"},wk={class:"block w-6 h-6 rounded-full"},vk=["alt","src"],kk={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},xk={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Sk={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Tk={class:"text-base-content"},Ek=["disabled"],Ik=["disabled"],Ck=_t({__name:"App",setup(e){const t=Zn(),{t:n}=St(),r=Oo(),s=J(),i=et(()=>{const u=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const c=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(c),u});function o(){r.login()}function a(){r.logout({openUrl:!1})}async function l(){if(!r.isAwesomeAuth||r.isAuthenticated)return;await sr();const u=s.value;if(!u)return;u.innerHTML="";const c=window.matchMedia?.("(prefers-color-scheme: dark)").matches;await r.renderGoogleButton(u,{theme:c?"filled_black":"outline",size:"medium",text:"signin_with",shape:"pill"})}return Nn(()=>{l()}),Ze(()=>r.isAuthenticated,u=>{u||l()}),(u,c)=>(V(),X("div",hk,[W(t).message?(V(),X("div",pk,[ce("p",null,be(W(t).message),1)])):Le("",!0),ce("header",mk,[ce("h2",gk,be(W(n)("discussion"))+" ("+be(i.value)+") ",1),W(r).isLoading?(V(),X("span",_k)):(V(),X("div",bk,[W(r).isAuthenticated&&W(r).user?(V(),X(Ce,{key:0},[W(r).user.picture?(V(),X("label",yk,[ce("span",wk,[ce("img",{alt:W(r).user.name||W(r).user.email,src:W(r).user.picture,class:"w-full h-full block"},null,8,vk)])])):(V(),X("label",kk,be(W(r).user.email),1)),ce("ul",xk,[W(r).user.picture?(V(),X("li",Sk,[ce("span",Tk,be(W(r).user.email),1)])):Le("",!0),ce("li",null,[ce("button",{disabled:W(r).isLoading,class:"border-0 bg-base-100",type:"button",onClick:a},be(W(n)("logout")),9,Ek)])])],64)):W(r).isAwesomeAuth?(V(),X("div",{key:2,ref_key:"googleButton",ref:s,class:"g-id-signin"},null,512)):(V(),X("button",{key:1,disabled:W(r).isLoading,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",onClick:o},be(W(n)("login")),9,Ik))]))]),Te(Us),Te(dk)]))}}),$f=[];let Ko=0,Wo=null;function Ok({domain:e,clientId:t,locale:n=navigator.language}){const r=xp(Ck),s=Ep(),i=Wo||e&&t&&cc({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=r_({legacy:!1,locale:n,fallbackLocale:"en",messages:{...bv(lf,"cn"),"zh-CN":lf.cn}});return i&&r.use(i),r.use(s),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",locale:"",awesomeAuth:void 0,turnstileSiteKey:"",init(e,{postId:t,apiUrl:n,domain:r,clientId:s,awesomeAuth:i,turnstileSiteKey:o,locale:a=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain||"",s??=this.clientId,i??=this.awesomeAuth,o??=this.turnstileSiteKey;const l=Ok({domain:r,clientId:s,locale:a});l.provide("ApiBaseUrl",n),l.provide("postId",t),l.provide("Auth0Domain",r),l.provide("comments",$f),l.provide("total",Ko),l.provide("awesomeAuth",i),l.provide("TurnstileSiteKey",o),l.mount(e)},async preload({postId:e,apiUrl:t,domain:n,clientId:r,awesomeAuth:s,turnstileSiteKey:i}){if(this.postId=e||"",this.apiUrl=t||"",this.domain=n||"",this.clientId=r||"",this.turnstileSiteKey=i||"",n&&r&&(Wo=cc({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}})),!Wo&&!s)throw new Error("You need at least 1 Auth provider.");this.awesomeAuth=s;const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const a=await o.json();if(a.data){$f.push(...a.data),Ko=a.meta?.total||a.data.length;const l=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Ko});document.body.dispatchEvent(l)}}}})();
|