@roudanio/awesome-comment 0.7.18 → 0.7.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,62 +2,62 @@ var AwesomeComment=function(){"use strict";/**
2
2
  * @vue/shared v3.4.27
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function tr(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const he={},un=[],Xe=()=>{},fc=()=>!1,qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),nr=e=>e.startsWith("onUpdate:"),Ee=Object.assign,sr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dc=Object.prototype.hasOwnProperty,te=(e,t)=>dc.call(e,t),z=Array.isArray,fn=e=>Qn(e)==="[object Map]",Li=e=>Qn(e)==="[object Set]",X=e=>typeof e=="function",ye=e=>typeof e=="string",jt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Oi=e=>(ge(e)||X(e))&&X(e.then)&&X(e.catch),xi=Object.prototype.toString,Qn=e=>xi.call(e),hc=e=>Qn(e).slice(8,-1),Si=e=>Qn(e)==="[object Object]",rr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,On=tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),es=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},mc=/-(\w)/g,st=es(e=>e.replace(mc,(t,n)=>n?n.toUpperCase():"")),pc=/\B([A-Z])/g,Wt=es(e=>e.replace(pc,"-$1").toLowerCase()),ts=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),ir=es(e=>e?`on${ts(e)}`:""),It=(e,t)=>!Object.is(e,t),ns=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ci=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},or=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ni;const Pi=()=>Ni||(Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ss(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ye(s)?yc(s):ss(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ye(e)||ge(e))return e}const gc=/;(?![^(]*\))/g,_c=/:([^]+)/,bc=/\/\*[^]*?\*\//g;function yc(e){const t={};return e.replace(bc,"").split(gc).forEach(n=>{if(n){const s=n.split(_c);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function rs(e){let t="";if(ye(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const s=rs(e[n]);s&&(t+=s+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const kc=tr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ai(e){return!!e||e===""}const _e=e=>ye(e)?e:e==null?"":z(e)||ge(e)&&(e.toString===xi||!X(e.toString))?JSON.stringify(e,Ri,2):String(e),Ri=(e,t)=>t&&t.__v_isRef?Ri(e,t.value):fn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[ar(s,r)+" =>"]=i,n),{})}:Li(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ar(n))}:jt(t)?ar(t):ge(t)&&!z(t)&&!Si(t)?String(t):t,ar=(e,t="")=>{var n;return jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function tr(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const he={},un=[],Xe=()=>{},fc=()=>!1,qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),nr=e=>e.startsWith("onUpdate:"),Ee=Object.assign,sr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dc=Object.prototype.hasOwnProperty,te=(e,t)=>dc.call(e,t),z=Array.isArray,fn=e=>Qn(e)==="[object Map]",Li=e=>Qn(e)==="[object Set]",X=e=>typeof e=="function",ye=e=>typeof e=="string",jt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Oi=e=>(ge(e)||X(e))&&X(e.then)&&X(e.catch),Si=Object.prototype.toString,Qn=e=>Si.call(e),hc=e=>Qn(e).slice(8,-1),xi=e=>Qn(e)==="[object Object]",rr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,On=tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),es=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},mc=/-(\w)/g,st=es(e=>e.replace(mc,(t,n)=>n?n.toUpperCase():"")),pc=/\B([A-Z])/g,Wt=es(e=>e.replace(pc,"-$1").toLowerCase()),ts=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),ir=es(e=>e?`on${ts(e)}`:""),It=(e,t)=>!Object.is(e,t),ns=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ci=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},or=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ni;const Ai=()=>Ni||(Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ss(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ye(s)?yc(s):ss(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ye(e)||ge(e))return e}const gc=/;(?![^(]*\))/g,_c=/:([^]+)/,bc=/\/\*[^]*?\*\//g;function yc(e){const t={};return e.replace(bc,"").split(gc).forEach(n=>{if(n){const s=n.split(_c);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function rs(e){let t="";if(ye(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const s=rs(e[n]);s&&(t+=s+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const kc=tr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Pi(e){return!!e||e===""}const _e=e=>ye(e)?e:e==null?"":z(e)||ge(e)&&(e.toString===Si||!X(e.toString))?JSON.stringify(e,Ri,2):String(e),Ri=(e,t)=>t&&t.__v_isRef?Ri(e,t.value):fn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[ar(s,r)+" =>"]=i,n),{})}:Li(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ar(n))}:jt(t)?ar(t):ge(t)&&!z(t)&&!xi(t)?String(t):t,ar=(e,t="")=>{var n;return jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
6
  * @vue/reactivity v3.4.27
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let Ve;class Mi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ve,!t&&Ve&&(this.index=(Ve.scopes||(Ve.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ve;try{return Ve=this,t()}finally{Ve=n}}}on(){Ve=this}off(){Ve=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function lr(e){return new Mi(e)}function wc(e,t=Ve){t&&t.active&&t.effects.push(e)}function Di(){return Ve}function vc(e){Ve&&Ve.cleanups.push(e)}let Ht;class cr{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,wc(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,mt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ec(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),pt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Tt,n=Ht;try{return Tt=!0,Ht=this,this._runnings++,Fi(this),this.fn()}finally{$i(this),this._runnings--,Ht=n,Tt=t}}stop(){this.active&&(Fi(this),$i(this),this.onStop&&this.onStop(),this.active=!1)}}function Ec(e){return e.value}function Fi(e){e._trackId++,e._depsLength=0}function $i(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ui(e.deps[t],e);e.deps.length=e._depsLength}}function Ui(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Tt=!0,ur=0;const ji=[];function mt(){ji.push(Tt),Tt=!1}function pt(){const e=ji.pop();Tt=e===void 0?!0:e}function fr(){ur++}function dr(){for(ur--;!ur&&hr.length;)hr.shift()()}function Wi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Ui(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const hr=[];function Hi(e,t,n){fr();for(const s of e.keys()){let i;s._dirtyLevel<t&&(i??(i=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(i??(i=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&hr.push(s.scheduler)))}dr()}const Vi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},is=new WeakMap,Vt=Symbol(""),mr=Symbol("");function Ue(e,t,n){if(Tt&&Ht){let s=is.get(e);s||is.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Vi(()=>s.delete(n))),Wi(Ht,i)}}function gt(e,t,n,s,i,r){const o=is.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&z(e)){const l=Number(s);o.forEach((f,c)=>{(c==="length"||!jt(c)&&c>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":z(e)?rr(n)&&a.push(o.get("length")):(a.push(o.get(Vt)),fn(e)&&a.push(o.get(mr)));break;case"delete":z(e)||(a.push(o.get(Vt)),fn(e)&&a.push(o.get(mr)));break;case"set":fn(e)&&a.push(o.get(Vt));break}fr();for(const l of a)l&&Hi(l,4);dr()}function Ic(e,t){const n=is.get(e);return n&&n.get(t)}const Tc=tr("__proto__,__v_isRef,__isVue"),Ki=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt)),zi=Lc();function Lc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ee(this);for(let r=0,o=this.length;r<o;r++)Ue(s,"get",r+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(ee)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){mt(),fr();const s=ee(this)[t].apply(this,n);return dr(),pt(),s}}),e}function Oc(e){jt(e)||(e=String(e));const t=ee(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Yi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?no:to:r?eo:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=z(t);if(!i){if(o&&te(zi,n))return Reflect.get(zi,n,s);if(n==="hasOwnProperty")return Oc}const a=Reflect.get(t,n,s);return(jt(n)?Ki.has(n):Tc(n))||(i||Ue(t,"get",n),r)?a:be(a)?o&&rr(n)?a:a.value:ge(a)?i?so(a):hs(a):a}}class Gi extends Yi{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];if(!this._isShallow){const l=xn(r);if(!ps(s)&&!xn(s)&&(r=ee(r),s=ee(s)),!z(t)&&be(r)&&!be(s))return l?!1:(r.value=s,!0)}const o=z(t)&&rr(n)?Number(n)<t.length:te(t,n),a=Reflect.set(t,n,s,i);return t===ee(i)&&(o?It(s,r)&&gt(t,"set",n,s):gt(t,"add",n,s)),a}deleteProperty(t,n){const s=te(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&gt(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!jt(n)||!Ki.has(n))&&Ue(t,"has",n),s}ownKeys(t){return Ue(t,"iterate",z(t)?"length":Vt),Reflect.ownKeys(t)}}class Bi extends Yi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const xc=new Gi,Sc=new Bi,Cc=new Gi(!0),Nc=new Bi(!0),pr=e=>e,os=e=>Reflect.getPrototypeOf(e);function as(e,t,n=!1,s=!1){e=e.__v_raw;const i=ee(e),r=ee(t);n||(It(t,r)&&Ue(i,"get",t),Ue(i,"get",r));const{has:o}=os(i),a=s?pr:n?_r:Sn;if(o.call(i,t))return a(e.get(t));if(o.call(i,r))return a(e.get(r));e!==i&&e.get(t)}function ls(e,t=!1){const n=this.__v_raw,s=ee(n),i=ee(e);return t||(It(e,i)&&Ue(s,"has",e),Ue(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function cs(e,t=!1){return e=e.__v_raw,!t&&Ue(ee(e),"iterate",Vt),Reflect.get(e,"size",e)}function Xi(e){e=ee(e);const t=ee(this);return os(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function Zi(e,t){t=ee(t);const n=ee(this),{has:s,get:i}=os(n);let r=s.call(n,e);r||(e=ee(e),r=s.call(n,e));const o=i.call(n,e);return n.set(e,t),r?It(t,o)&&gt(n,"set",e,t):gt(n,"add",e,t),this}function Ji(e){const t=ee(this),{has:n,get:s}=os(t);let i=n.call(t,e);i||(e=ee(e),i=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return i&&gt(t,"delete",e,void 0),r}function qi(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&gt(e,"clear",void 0,void 0),n}function us(e,t){return function(s,i){const r=this,o=r.__v_raw,a=ee(o),l=t?pr:e?_r:Sn;return!e&&Ue(a,"iterate",Vt),o.forEach((f,c)=>s.call(i,l(f),l(c),r))}}function fs(e,t,n){return function(...s){const i=this.__v_raw,r=ee(i),o=fn(r),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,f=i[e](...s),c=n?pr:t?_r:Sn;return!t&&Ue(r,"iterate",l?mr:Vt),{next(){const{value:d,done:u}=f.next();return u?{value:d,done:u}:{value:a?[c(d[0]),c(d[1])]:c(d),done:u}},[Symbol.iterator](){return this}}}}function Lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pc(){const e={get(r){return as(this,r)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!1)},t={get(r){return as(this,r,!1,!0)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!0)},n={get(r){return as(this,r,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:us(!0,!1)},s={get(r){return as(this,r,!0,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:us(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=fs(r,!1,!1),n[r]=fs(r,!0,!1),t[r]=fs(r,!1,!0),s[r]=fs(r,!0,!0)}),[e,n,t,s]}const[Ac,Rc,Mc,Dc]=Pc();function ds(e,t){const n=t?e?Dc:Mc:e?Rc:Ac;return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(te(n,i)&&i in s?n:s,i,r)}const Fc={get:ds(!1,!1)},$c={get:ds(!1,!0)},Uc={get:ds(!0,!1)},jc={get:ds(!0,!0)},Qi=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap;function Wc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hc(e){return e.__v_skip||!Object.isExtensible(e)?0:Wc(hc(e))}function hs(e){return xn(e)?e:ms(e,!1,xc,Fc,Qi)}function Vc(e){return ms(e,!1,Cc,$c,eo)}function so(e){return ms(e,!0,Sc,Uc,to)}function Zp(e){return ms(e,!0,Nc,jc,no)}function ms(e,t,n,s,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=Hc(e);if(o===0)return e;const a=new Proxy(e,o===2?s:n);return i.set(e,a),a}function Kt(e){return xn(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function xn(e){return!!(e&&e.__v_isReadonly)}function ps(e){return!!(e&&e.__v_isShallow)}function ro(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function gr(e){return Object.isExtensible(e)&&Ci(e,"__v_skip",!0),e}const Sn=e=>ge(e)?hs(e):e,_r=e=>ge(e)?so(e):e;class io{constructor(t,n,s,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new cr(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=ee(this);return(!t._cacheable||t.effect.dirty)&&It(t._value,t._value=t.effect.run())&&gs(t,4),oo(t),t.effect._dirtyLevel>=2&&gs(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Kc(e,t,n=!1){let s,i;const r=X(e);return r?(s=e,i=Xe):(s=e.get,i=e.set),new io(s,i,r||!i,n)}function oo(e){var t;Tt&&Ht&&(e=ee(e),Wi(Ht,(t=e.dep)!=null?t:e.dep=Vi(()=>e.dep=void 0,e instanceof io?e:void 0)))}function gs(e,t=4,n){e=ee(e);const s=e.dep;s&&Hi(s,t)}function be(e){return!!(e&&e.__v_isRef===!0)}function se(e){return lo(e,!1)}function ao(e){return lo(e,!0)}function lo(e,t){return be(e)?e:new zc(e,t)}class zc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:Sn(t)}get value(){return oo(this),this._value}set value(t){const n=this.__v_isShallow||ps(t)||xn(t);t=n?t:ee(t),It(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Sn(t),gs(this,4))}}function Z(e){return be(e)?e.value:e}const Yc={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function co(e){return Kt(e)?e:new Proxy(e,Yc)}function Gc(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=Xc(e,n);return t}class Bc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ic(ee(this._object),this._key)}}function Xc(e,t,n){const s=e[t];return be(s)?s:new Bc(e,t,n)}/**
9
+ **/let Ke;class Mi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function lr(e){return new Mi(e)}function wc(e,t=Ke){t&&t.active&&t.effects.push(e)}function Di(){return Ke}function vc(e){Ke&&Ke.cleanups.push(e)}let Ht;class cr{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,wc(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,mt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ec(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),pt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Tt,n=Ht;try{return Tt=!0,Ht=this,this._runnings++,Fi(this),this.fn()}finally{$i(this),this._runnings--,Ht=n,Tt=t}}stop(){this.active&&(Fi(this),$i(this),this.onStop&&this.onStop(),this.active=!1)}}function Ec(e){return e.value}function Fi(e){e._trackId++,e._depsLength=0}function $i(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ui(e.deps[t],e);e.deps.length=e._depsLength}}function Ui(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Tt=!0,ur=0;const ji=[];function mt(){ji.push(Tt),Tt=!1}function pt(){const e=ji.pop();Tt=e===void 0?!0:e}function fr(){ur++}function dr(){for(ur--;!ur&&hr.length;)hr.shift()()}function Wi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Ui(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const hr=[];function Hi(e,t,n){fr();for(const s of e.keys()){let i;s._dirtyLevel<t&&(i??(i=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(i??(i=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&hr.push(s.scheduler)))}dr()}const Ki=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},is=new WeakMap,Kt=Symbol(""),mr=Symbol("");function Ue(e,t,n){if(Tt&&Ht){let s=is.get(e);s||is.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Ki(()=>s.delete(n))),Wi(Ht,i)}}function gt(e,t,n,s,i,r){const o=is.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&z(e)){const l=Number(s);o.forEach((f,c)=>{(c==="length"||!jt(c)&&c>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":z(e)?rr(n)&&a.push(o.get("length")):(a.push(o.get(Kt)),fn(e)&&a.push(o.get(mr)));break;case"delete":z(e)||(a.push(o.get(Kt)),fn(e)&&a.push(o.get(mr)));break;case"set":fn(e)&&a.push(o.get(Kt));break}fr();for(const l of a)l&&Hi(l,4);dr()}function Ic(e,t){const n=is.get(e);return n&&n.get(t)}const Tc=tr("__proto__,__v_isRef,__isVue"),Vi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt)),zi=Lc();function Lc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ee(this);for(let r=0,o=this.length;r<o;r++)Ue(s,"get",r+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(ee)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){mt(),fr();const s=ee(this)[t].apply(this,n);return dr(),pt(),s}}),e}function Oc(e){jt(e)||(e=String(e));const t=ee(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Gi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?no:to:r?eo:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=z(t);if(!i){if(o&&te(zi,n))return Reflect.get(zi,n,s);if(n==="hasOwnProperty")return Oc}const a=Reflect.get(t,n,s);return(jt(n)?Vi.has(n):Tc(n))||(i||Ue(t,"get",n),r)?a:be(a)?o&&rr(n)?a:a.value:ge(a)?i?so(a):hs(a):a}}class Yi extends Gi{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];if(!this._isShallow){const l=Sn(r);if(!ps(s)&&!Sn(s)&&(r=ee(r),s=ee(s)),!z(t)&&be(r)&&!be(s))return l?!1:(r.value=s,!0)}const o=z(t)&&rr(n)?Number(n)<t.length:te(t,n),a=Reflect.set(t,n,s,i);return t===ee(i)&&(o?It(s,r)&&gt(t,"set",n,s):gt(t,"add",n,s)),a}deleteProperty(t,n){const s=te(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&gt(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!jt(n)||!Vi.has(n))&&Ue(t,"has",n),s}ownKeys(t){return Ue(t,"iterate",z(t)?"length":Kt),Reflect.ownKeys(t)}}class Bi extends Gi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Sc=new Yi,xc=new Bi,Cc=new Yi(!0),Nc=new Bi(!0),pr=e=>e,os=e=>Reflect.getPrototypeOf(e);function as(e,t,n=!1,s=!1){e=e.__v_raw;const i=ee(e),r=ee(t);n||(It(t,r)&&Ue(i,"get",t),Ue(i,"get",r));const{has:o}=os(i),a=s?pr:n?_r:xn;if(o.call(i,t))return a(e.get(t));if(o.call(i,r))return a(e.get(r));e!==i&&e.get(t)}function ls(e,t=!1){const n=this.__v_raw,s=ee(n),i=ee(e);return t||(It(e,i)&&Ue(s,"has",e),Ue(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function cs(e,t=!1){return e=e.__v_raw,!t&&Ue(ee(e),"iterate",Kt),Reflect.get(e,"size",e)}function Xi(e){e=ee(e);const t=ee(this);return os(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function Zi(e,t){t=ee(t);const n=ee(this),{has:s,get:i}=os(n);let r=s.call(n,e);r||(e=ee(e),r=s.call(n,e));const o=i.call(n,e);return n.set(e,t),r?It(t,o)&&gt(n,"set",e,t):gt(n,"add",e,t),this}function Ji(e){const t=ee(this),{has:n,get:s}=os(t);let i=n.call(t,e);i||(e=ee(e),i=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return i&&gt(t,"delete",e,void 0),r}function qi(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&gt(e,"clear",void 0,void 0),n}function us(e,t){return function(s,i){const r=this,o=r.__v_raw,a=ee(o),l=t?pr:e?_r:xn;return!e&&Ue(a,"iterate",Kt),o.forEach((f,c)=>s.call(i,l(f),l(c),r))}}function fs(e,t,n){return function(...s){const i=this.__v_raw,r=ee(i),o=fn(r),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,f=i[e](...s),c=n?pr:t?_r:xn;return!t&&Ue(r,"iterate",l?mr:Kt),{next(){const{value:d,done:u}=f.next();return u?{value:d,done:u}:{value:a?[c(d[0]),c(d[1])]:c(d),done:u}},[Symbol.iterator](){return this}}}}function Lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ac(){const e={get(r){return as(this,r)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!1)},t={get(r){return as(this,r,!1,!0)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!0)},n={get(r){return as(this,r,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:us(!0,!1)},s={get(r){return as(this,r,!0,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:us(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=fs(r,!1,!1),n[r]=fs(r,!0,!1),t[r]=fs(r,!1,!0),s[r]=fs(r,!0,!0)}),[e,n,t,s]}const[Pc,Rc,Mc,Dc]=Ac();function ds(e,t){const n=t?e?Dc:Mc:e?Rc:Pc;return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(te(n,i)&&i in s?n:s,i,r)}const Fc={get:ds(!1,!1)},$c={get:ds(!1,!0)},Uc={get:ds(!0,!1)},jc={get:ds(!0,!0)},Qi=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap;function Wc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hc(e){return e.__v_skip||!Object.isExtensible(e)?0:Wc(hc(e))}function hs(e){return Sn(e)?e:ms(e,!1,Sc,Fc,Qi)}function Kc(e){return ms(e,!1,Cc,$c,eo)}function so(e){return ms(e,!0,xc,Uc,to)}function Zp(e){return ms(e,!0,Nc,jc,no)}function ms(e,t,n,s,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=Hc(e);if(o===0)return e;const a=new Proxy(e,o===2?s:n);return i.set(e,a),a}function Vt(e){return Sn(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function Sn(e){return!!(e&&e.__v_isReadonly)}function ps(e){return!!(e&&e.__v_isShallow)}function ro(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function gr(e){return Object.isExtensible(e)&&Ci(e,"__v_skip",!0),e}const xn=e=>ge(e)?hs(e):e,_r=e=>ge(e)?so(e):e;class io{constructor(t,n,s,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new cr(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=ee(this);return(!t._cacheable||t.effect.dirty)&&It(t._value,t._value=t.effect.run())&&gs(t,4),oo(t),t.effect._dirtyLevel>=2&&gs(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Vc(e,t,n=!1){let s,i;const r=X(e);return r?(s=e,i=Xe):(s=e.get,i=e.set),new io(s,i,r||!i,n)}function oo(e){var t;Tt&&Ht&&(e=ee(e),Wi(Ht,(t=e.dep)!=null?t:e.dep=Ki(()=>e.dep=void 0,e instanceof io?e:void 0)))}function gs(e,t=4,n){e=ee(e);const s=e.dep;s&&Hi(s,t)}function be(e){return!!(e&&e.__v_isRef===!0)}function se(e){return lo(e,!1)}function ao(e){return lo(e,!0)}function lo(e,t){return be(e)?e:new zc(e,t)}class zc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:xn(t)}get value(){return oo(this),this._value}set value(t){const n=this.__v_isShallow||ps(t)||Sn(t);t=n?t:ee(t),It(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xn(t),gs(this,4))}}function Z(e){return be(e)?e.value:e}const Gc={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function co(e){return Vt(e)?e:new Proxy(e,Gc)}function Yc(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=Xc(e,n);return t}class Bc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ic(ee(this._object),this._key)}}function Xc(e,t,n){const s=e[t];return be(s)?s:new Bc(e,t,n)}/**
10
10
  * @vue/runtime-core v3.4.27
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
13
  **/const Cn=[];function Jp(e,...t){mt();const n=Cn.length?Cn[Cn.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=Zc();if(s)_t(s,n,11,[e+t.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${ra(n,r.type)}>`).join(`
14
14
  `),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
15
15
  `,...Jc(i)),console.warn(...r)}pt()}function Zc(){let e=Cn[Cn.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 s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Jc(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
16
- `],...qc(n))}),t}function qc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${ra(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...Qc(e.props),r]:[i+r]}function Qc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...uo(s,e[s]))}),n.length>3&&t.push(" ..."),t}function uo(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:be(t)?(t=uo(e,ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):X(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),n?t:[`${e}=`,t])}function _t(e,t,n,s){try{return s?e(...s):e()}catch(i){_s(i,t,n)}}function qe(e,t,n,s){if(X(e)){const i=_t(e,t,n,s);return i&&Oi(i)&&i.catch(r=>{_s(r,t,n)}),i}if(z(e)){const i=[];for(let r=0;r<e.length;r++)i.push(qe(e[r],t,n,s));return i}}function _s(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const f=r.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](e,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){mt(),_t(l,null,10,[e,o,a]),pt();return}}eu(e,n,i,s)}function eu(e,t,n,s=!0){console.error(e)}let Nn=!1,br=!1;const Se=[];let rt=0;const dn=[];let Ot=null,zt=0;const fo=Promise.resolve();let yr=null;function ho(e){const t=yr||fo;return e?t.then(this?e.bind(this):e):t}function tu(e){let t=rt+1,n=Se.length;for(;t<n;){const s=t+n>>>1,i=Se[s],r=Pn(i);r<e||r===e&&i.pre?t=s+1:n=s}return t}function kr(e){(!Se.length||!Se.includes(e,Nn&&e.allowRecurse?rt+1:rt))&&(e.id==null?Se.push(e):Se.splice(tu(e.id),0,e),mo())}function mo(){!Nn&&!br&&(br=!0,yr=fo.then(_o))}function nu(e){const t=Se.indexOf(e);t>rt&&Se.splice(t,1)}function su(e){z(e)?dn.push(...e):(!Ot||!Ot.includes(e,e.allowRecurse?zt+1:zt))&&dn.push(e),mo()}function po(e,t,n=Nn?rt+1:0){for(;n<Se.length;n++){const s=Se[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;Se.splice(n,1),n--,s()}}}function go(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>Pn(n)-Pn(s));if(dn.length=0,Ot){Ot.push(...t);return}for(Ot=t,zt=0;zt<Ot.length;zt++)Ot[zt]();Ot=null,zt=0}}const Pn=e=>e.id==null?1/0:e.id,ru=(e,t)=>{const n=Pn(e)-Pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _o(e){br=!1,Nn=!0,Se.sort(ru);try{for(rt=0;rt<Se.length;rt++){const t=Se[rt];t&&t.active!==!1&&_t(t,null,14)}}finally{rt=0,Se.length=0,go(),Nn=!1,yr=null,(Se.length||dn.length)&&_o()}}function iu(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||he;let i=n;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in s){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:u}=s[c]||he;u&&(i=n.map(g=>ye(g)?g.trim():g)),d&&(i=n.map(or))}let a,l=s[a=ir(t)]||s[a=ir(st(t))];!l&&r&&(l=s[a=ir(Wt(t))]),l&&qe(l,e,6,i);const f=s[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(f,e,6,i)}}function bo(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},a=!1;if(!X(e)){const l=f=>{const c=bo(f,t,!0);c&&(a=!0,Ee(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(ge(e)&&s.set(e,null),null):(z(r)?r.forEach(l=>o[l]=null):Ee(o,r),ge(e)&&s.set(e,o),o)}function bs(e,t){return!e||!qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Wt(t))||te(e,t))}let Ce=null,yo=null;function ys(e){const t=Ce;return Ce=e,yo=e&&e.type.__scopeId||null,t}function ou(e,t=Ce,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Xo(-1);const r=ys(t);let o;try{o=e(...i)}finally{ys(r),s._d&&Xo(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function qp(){}function wr(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:f,renderCache:c,props:d,data:u,setupState:g,ctx:w,inheritAttrs:E}=e,I=ys(e);let x,N;try{if(n.shapeFlag&4){const y=i||s,O=y;x=it(f.call(O,y,c,d,g,u,w)),N=a}else{const y=t;x=it(y.length>1?y(d,{attrs:a,slots:o,emit:l}):y(d,null)),N=t.props?a:au(a)}}catch(y){Dn.length=0,_s(y,e,1),x=Ne(Jt)}let b=x;if(N&&E!==!1){const y=Object.keys(N),{shapeFlag:O}=b;y.length&&O&7&&(r&&y.some(nr)&&(N=lu(N,r)),b=pn(b,N,!1,!0))}return n.dirs&&(b=pn(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),x=b,ys(I),x}const au=e=>{let t;for(const n in e)(n==="class"||n==="style"||qn(n))&&((t||(t={}))[n]=e[n]);return t},lu=(e,t)=>{const n={};for(const s in e)(!nr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function cu(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:a,patchFlag:l}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?ko(s,o,f):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const u=c[d];if(o[u]!==s[u]&&!bs(f,u))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?ko(s,o,f):!0:!!o;return!1}function ko(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(t[r]!==e[r]&&!bs(n,r))return!0}return!1}function uu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const fu="components";function du(e,t){return mu(fu,e,!0,t)||e}const hu=Symbol.for("v-ndc");function mu(e,t,n=!0,s=!1){const i=Ce||Te;if(i){const r=i.type;{const a=sa(r,!1);if(a&&(a===t||a===st(t)||a===ts(st(t))))return r}const o=wo(i[e]||r[e],t)||wo(i.appContext[e],t);return!o&&s?r:o}}function wo(e,t){return e&&(e[t]||e[st(t)]||e[ts(st(t))])}const pu=e=>e.__isSuspense;function gu(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):su(e)}const _u=Symbol.for("v-scx"),bu=()=>Ke(_u),ks={};function Yt(e,t,n){return vo(e,t,n)}function vo(e,t,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:a}=he){if(t&&r){const L=t;t=(...D)=>{L(...D),O()}}const l=Te,f=L=>s===!0?L:Gt(L,s===!1?1:void 0);let c,d=!1,u=!1;if(be(e)?(c=()=>e.value,d=ps(e)):Kt(e)?(c=()=>f(e),d=!0):z(e)?(u=!0,d=e.some(L=>Kt(L)||ps(L)),c=()=>e.map(L=>{if(be(L))return L.value;if(Kt(L))return f(L);if(X(L))return _t(L,l,2)})):X(e)?t?c=()=>_t(e,l,2):c=()=>(g&&g(),qe(e,l,3,[w])):c=Xe,t&&s){const L=c;c=()=>Gt(L())}let g,w=L=>{g=b.onStop=()=>{_t(L,l,4),g=b.onStop=void 0}},E;if(Os)if(w=Xe,t?n&&qe(t,l,3,[c(),u?[]:void 0,w]):c(),i==="sync"){const L=bu();E=L.__watcherHandles||(L.__watcherHandles=[])}else return Xe;let I=u?new Array(e.length).fill(ks):ks;const x=()=>{if(!(!b.active||!b.dirty))if(t){const L=b.run();(s||d||(u?L.some((D,P)=>It(D,I[P])):It(L,I)))&&(g&&g(),qe(t,l,3,[L,I===ks?void 0:u&&I[0]===ks?[]:I,w]),I=L)}else b.run()};x.allowRecurse=!!t;let N;i==="sync"?N=x:i==="post"?N=()=>je(x,l&&l.suspense):(x.pre=!0,l&&(x.id=l.uid),N=()=>kr(x));const b=new cr(c,Xe,N),y=Di(),O=()=>{b.stop(),y&&sr(y.effects,b)};return t?n?x():I=b.run():i==="post"?je(b.run.bind(b),l&&l.suspense):b.run(),E&&E.push(O),O}function yu(e,t,n){const s=this.proxy,i=ye(e)?e.includes(".")?Eo(s,e):()=>s[e]:e.bind(s,s);let r;X(t)?r=t:(r=t.handler,n=t);const o=jn(this),a=vo(i,r.bind(s),n);return o(),a}function Eo(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function Gt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,be(e))Gt(e.value,t,n);else if(z(e))for(let s=0;s<e.length;s++)Gt(e[s],t,n);else if(Li(e)||fn(e))e.forEach(s=>{Gt(s,t,n)});else if(Si(e))for(const s in e)Gt(e[s],t,n);return e}function ku(e,t){if(Ce===null)return e;const n=xs(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=he]=t[i];r&&(X(r)&&(r={mounted:r,updated:r}),r.deep&&Gt(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bt(e,t,n,s){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&(mt(),qe(l,n,8,[e.el,a,e,t]),pt())}}/*! #__NO_SIDE_EFFECTS__ */function Xt(e,t){return X(e)?Ee({name:e.name},t,{setup:e}):e}const ws=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function wu(e,t){To(e,"a",t)}function vu(e,t){To(e,"da",t)}function To(e,t,n=Te){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(vs(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Io(i.parent.vnode)&&Eu(s,t,n,i),i=i.parent}}function Eu(e,t,n,s){const i=vs(t,e,s,!0);vr(()=>{sr(s[t],i)},n)}function vs(e,t,n=Te,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;mt();const a=jn(n),l=qe(t,n,e,o);return a(),pt(),l});return s?i.unshift(r):i.push(r),r}}const bt=e=>(t,n=Te)=>(!Os||e==="sp")&&vs(e,(...s)=>t(...s),n),Lo=bt("bm"),Es=bt("m"),Iu=bt("bu"),Tu=bt("u"),Oo=bt("bum"),vr=bt("um"),Lu=bt("sp"),Ou=bt("rtg"),xu=bt("rtc");function Su(e,t=Te){vs("ec",e,t)}function xo(e,t,n,s){let i;const r=n;if(z(e)||ye(e)){i=new Array(e.length);for(let o=0,a=e.length;o<a;o++)i[o]=t(e[o],o,void 0,r)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,r)}else if(ge(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,r));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const f=o[a];i[a]=t(e[f],f,a,r)}}else i=[];return i}const Er=e=>e?Qo(e)?xs(e)||e.proxy:Er(e.parent):null,An=Ee(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Er(e.parent),$root:e=>Er(e.root),$emit:e=>e.emit,$options:e=>Lr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,kr(e.update)}),$nextTick:e=>e.n||(e.n=ho.bind(e.proxy)),$watch:e=>yu.bind(e)}),Ir=(e,t)=>e!==he&&!e.__isScriptSetup&&te(e,t),Cu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Ir(s,t))return o[t]=1,s[t];if(i!==he&&te(i,t))return o[t]=2,i[t];if((f=e.propsOptions[0])&&te(f,t))return o[t]=3,r[t];if(n!==he&&te(n,t))return o[t]=4,n[t];Tr&&(o[t]=0)}}const c=An[t];let d,u;if(c)return t==="$attrs"&&Ue(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==he&&te(n,t))return o[t]=4,n[t];if(u=l.config.globalProperties,te(u,t))return u[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return Ir(i,t)?(i[t]=n,!0):s!==he&&te(s,t)?(s[t]=n,!0):te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!n[o]||e!==he&&te(e,o)||Ir(t,o)||(a=r[0])&&te(a,o)||te(s,o)||te(An,o)||te(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function So(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Tr=!0;function Nu(e){const t=Lr(e),n=e.proxy,s=e.ctx;Tr=!1,t.beforeCreate&&Co(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:f,created:c,beforeMount:d,mounted:u,beforeUpdate:g,updated:w,activated:E,deactivated:I,beforeDestroy:x,beforeUnmount:N,destroyed:b,unmounted:y,render:O,renderTracked:L,renderTriggered:D,errorCaptured:P,serverPrefetch:A,expose:V,inheritAttrs:ne,components:Y,directives:pe,filters:nt}=t;if(f&&Pu(f,s,null),o)for(const ce in o){const ie=o[ce];X(ie)&&(s[ce]=ie.bind(n))}if(i){const ce=i.call(n,n);ge(ce)&&(e.data=hs(ce))}if(Tr=!0,r)for(const ce in r){const ie=r[ce],Ye=X(ie)?ie.bind(n,n):X(ie.get)?ie.get.bind(n,n):Xe,dt=!X(ie)&&X(ie.set)?ie.set.bind(n):Xe,ve=De({get:Ye,set:dt});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Oe=>ve.value=Oe})}if(a)for(const ce in a)No(a[ce],s,n,ce);if(l){const ce=X(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(ie=>{$u(ie,ce[ie])})}c&&Co(c,e,"c");function J(ce,ie){z(ie)?ie.forEach(Ye=>ce(Ye.bind(n))):ie&&ce(ie.bind(n))}if(J(Lo,d),J(Es,u),J(Iu,g),J(Tu,w),J(wu,E),J(vu,I),J(Su,P),J(xu,L),J(Ou,D),J(Oo,N),J(vr,y),J(Lu,A),z(V))if(V.length){const ce=e.exposed||(e.exposed={});V.forEach(ie=>{Object.defineProperty(ce,ie,{get:()=>n[ie],set:Ye=>n[ie]=Ye})})}else e.exposed||(e.exposed={});O&&e.render===Xe&&(e.render=O),ne!=null&&(e.inheritAttrs=ne),Y&&(e.components=Y),pe&&(e.directives=pe)}function Pu(e,t,n=Xe){z(e)&&(e=Or(e));for(const s in e){const i=e[s];let r;ge(i)?"default"in i?r=Ke(i.from||s,i.default,!0):r=Ke(i.from||s):r=Ke(i),be(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r}}function Co(e,t,n){qe(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function No(e,t,n,s){const i=s.includes(".")?Eo(n,s):()=>n[s];if(ye(e)){const r=t[e];X(r)&&Yt(i,r)}else if(X(e))Yt(i,e.bind(n));else if(ge(e))if(z(e))e.forEach(r=>No(r,t,n,s));else{const r=X(e.handler)?e.handler.bind(n):t[e.handler];X(r)&&Yt(i,r,e)}}function Lr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(f=>Is(l,f,o,!0)),Is(l,t,o)),ge(t)&&r.set(t,l),l}function Is(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Is(e,r,n,!0),i&&i.forEach(o=>Is(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=Au[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Au={data:Po,props:Ao,emits:Ao,methods:Rn,computed:Rn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:Rn,directives:Rn,watch:Mu,provide:Po,inject:Ru};function Po(e,t){return t?e?function(){return Ee(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Ru(e,t){return Rn(Or(e),Or(t))}function Or(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function Rn(e,t){return e?Ee(Object.create(null),e,t):t}function Ao(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ee(Object.create(null),So(e),So(t??{})):t}function Mu(e,t){if(!e)return t;if(!t)return e;const n=Ee(Object.create(null),e);for(const s in t)n[s]=Me(e[s],t[s]);return n}function Ro(){return{app:null,config:{isNativeTag:fc,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 Du=0;function Fu(e,t){return function(s,i=null){X(s)||(s=Ee({},s)),i!=null&&!ge(i)&&(i=null);const r=Ro(),o=new WeakSet;let a=!1;const l=r.app={_uid:Du++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:ff,get config(){return r.config},set config(f){},use(f,...c){return o.has(f)||(f&&X(f.install)?(o.add(f),f.install(l,...c)):X(f)&&(o.add(f),f(l,...c))),l},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),l},component(f,c){return c?(r.components[f]=c,l):r.components[f]},directive(f,c){return c?(r.directives[f]=c,l):r.directives[f]},mount(f,c,d){if(!a){const u=Ne(s,i);return u.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),c&&t?t(u,f):e(u,f,d),a=!0,l._container=f,f.__vue_app__=l,xs(u.component)||u.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(f,c){return r.provides[f]=c,l},runWithContext(f){const c=hn;hn=l;try{return f()}finally{hn=c}}};return l}}let hn=null;function $u(e,t){if(Te){let n=Te.provides;const s=Te.parent&&Te.parent.provides;s===n&&(n=Te.provides=Object.create(s)),n[e]=t}}function Ke(e,t,n=!1){const s=Te||Ce;if(s||hn){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&X(t)?t.call(s&&s.proxy):t}}function Uu(){return!!(Te||Ce||hn)}const Mo={},Do=()=>Object.create(Mo),Fo=e=>Object.getPrototypeOf(e)===Mo;function ju(e,t,n,s=!1){const i={},r=Do();e.propsDefaults=Object.create(null),$o(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=s?i:Vc(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Wu(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,a=ee(i),[l]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let u=c[d];if(bs(e.emitsOptions,u))continue;const g=t[u];if(l)if(te(r,u))g!==r[u]&&(r[u]=g,f=!0);else{const w=st(u);i[w]=xr(l,a,w,g,e,!1)}else g!==r[u]&&(r[u]=g,f=!0)}}}else{$o(e,t,i,r)&&(f=!0);let c;for(const d in a)(!t||!te(t,d)&&((c=Wt(d))===d||!te(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=xr(l,a,d,void 0,e,!0)):delete i[d]);if(r!==a)for(const d in r)(!t||!te(t,d))&&(delete r[d],f=!0)}f&&gt(e.attrs,"set","")}function $o(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(On(l))continue;const f=t[l];let c;i&&te(i,c=st(l))?!r||!r.includes(c)?n[c]=f:(a||(a={}))[c]=f:bs(e.emitsOptions,l)||(!(l in s)||f!==s[l])&&(s[l]=f,o=!0)}if(r){const l=ee(n),f=a||he;for(let c=0;c<r.length;c++){const d=r[c];n[d]=xr(i,l,d,f[d],e,!te(f,d))}}return o}function xr(e,t,n,s,i,r){const o=e[n];if(o!=null){const a=te(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&X(l)){const{propsDefaults:f}=i;if(n in f)s=f[n];else{const c=jn(i);s=f[n]=l.call(null,t),c()}}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===Wt(n))&&(s=!0))}return s}function Uo(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const r=e.props,o={},a=[];let l=!1;if(!X(e)){const c=d=>{l=!0;const[u,g]=Uo(d,t,!0);Ee(o,u),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!l)return ge(e)&&s.set(e,un),un;if(z(r))for(let c=0;c<r.length;c++){const d=st(r[c]);jo(d)&&(o[d]=he)}else if(r)for(const c in r){const d=st(c);if(jo(d)){const u=r[c],g=o[d]=z(u)||X(u)?{type:u}:Ee({},u);if(g){const w=Vo(Boolean,g.type),E=Vo(String,g.type);g[0]=w>-1,g[1]=E<0||w<E,(w>-1||te(g,"default"))&&a.push(d)}}}const f=[o,a];return ge(e)&&s.set(e,f),f}function jo(e){return e[0]!=="$"&&!On(e)}function Wo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ho(e,t){return Wo(e)===Wo(t)}function Vo(e,t){return z(t)?t.findIndex(n=>Ho(n,e)):X(t)&&Ho(t,e)?0:-1}const Ko=e=>e[0]==="_"||e==="$stable",Sr=e=>z(e)?e.map(it):[it(e)],Hu=(e,t,n)=>{if(t._n)return t;const s=ou((...i)=>Sr(t(...i)),n);return s._c=!1,s},zo=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ko(i))continue;const r=e[i];if(X(r))t[i]=Hu(i,r,s);else if(r!=null){const o=Sr(r);t[i]=()=>o}}},Yo=(e,t)=>{const n=Sr(t);e.slots.default=()=>n},Vu=(e,t)=>{const n=e.slots=Do();if(e.vnode.shapeFlag&32){const s=t._;s?(Ee(n,t),Ci(n,"_",s,!0)):zo(t,n)}else t&&Yo(e,t)},Ku=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=he;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Ee(i,t),!n&&a===1&&delete i._):(r=!t.$stable,zo(t,i)),o=t}else t&&(Yo(e,t),o={default:1});if(r)for(const a in i)!Ko(a)&&o[a]==null&&delete i[a]};function Cr(e,t,n,s,i=!1){if(z(e)){e.forEach((u,g)=>Cr(u,t&&(z(t)?t[g]:t),n,s,i));return}if(ws(s)&&!i)return;const r=s.shapeFlag&4?xs(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=e,f=t&&t.r,c=a.refs===he?a.refs={}:a.refs,d=a.setupState;if(f!=null&&f!==l&&(ye(f)?(c[f]=null,te(d,f)&&(d[f]=null)):be(f)&&(f.value=null)),X(l))_t(l,a,12,[o,c]);else{const u=ye(l),g=be(l);if(u||g){const w=()=>{if(e.f){const E=u?te(d,l)?d[l]:c[l]:l.value;i?z(E)&&sr(E,r):z(E)?E.includes(r)||E.push(r):u?(c[l]=[r],te(d,l)&&(d[l]=c[l])):(l.value=[r],e.k&&(c[e.k]=l.value))}else u?(c[l]=o,te(d,l)&&(d[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(w.id=-1,je(w,n)):w()}}}const je=gu;function zu(e){return Yu(e)}function Yu(e,t){const n=Pi();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:f,setElementText:c,parentNode:d,nextSibling:u,setScopeId:g=Xe,insertStaticContent:w}=e,E=(_,p,T,R=null,M=null,$=null,U=void 0,h=null,m=!!p.dynamicChildren)=>{if(_===p)return;_&&!$n(_,p)&&(R=vt(_),Oe(_,M,$,!0),_=null),p.patchFlag===-2&&(m=!1,p.dynamicChildren=null);const{type:k,ref:C,shapeFlag:j}=p;switch(k){case Mn:I(_,p,T,R);break;case Jt:x(_,p,T,R);break;case Pr:_==null&&N(p,T,R,U);break;case Ie:Y(_,p,T,R,M,$,U,h,m);break;default:j&1?O(_,p,T,R,M,$,U,h,m):j&6?pe(_,p,T,R,M,$,U,h,m):(j&64||j&128)&&k.process(_,p,T,R,M,$,U,h,m,Je)}C!=null&&M&&Cr(C,_&&_.ref,$,p||_,!p)},I=(_,p,T,R)=>{if(_==null)s(p.el=a(p.children),T,R);else{const M=p.el=_.el;p.children!==_.children&&f(M,p.children)}},x=(_,p,T,R)=>{_==null?s(p.el=l(p.children||""),T,R):p.el=_.el},N=(_,p,T,R)=>{[_.el,_.anchor]=w(_.children,p,T,R,_.el,_.anchor)},b=({el:_,anchor:p},T,R)=>{let M;for(;_&&_!==p;)M=u(_),s(_,T,R),_=M;s(p,T,R)},y=({el:_,anchor:p})=>{let T;for(;_&&_!==p;)T=u(_),i(_),_=T;i(p)},O=(_,p,T,R,M,$,U,h,m)=>{p.type==="svg"?U="svg":p.type==="math"&&(U="mathml"),_==null?L(p,T,R,M,$,U,h,m):A(_,p,M,$,U,h,m)},L=(_,p,T,R,M,$,U,h)=>{let m,k;const{props:C,shapeFlag:j,transition:F,dirs:v}=_;if(m=_.el=o(_.type,$,C&&C.is,C),j&8?c(m,_.children):j&16&&P(_.children,m,null,R,M,Nr(_,$),U,h),v&&Bt(_,null,R,"created"),D(m,_,_.scopeId,U,R),C){for(const H in C)H!=="value"&&!On(H)&&r(m,H,null,C[H],$,_.children,R,M,$e);"value"in C&&r(m,"value",null,C.value,$),(k=C.onVnodeBeforeMount)&&ot(k,R,_)}v&&Bt(_,null,R,"beforeMount");const S=Gu(M,F);S&&F.beforeEnter(m),s(m,p,T),((k=C&&C.onVnodeMounted)||S||v)&&je(()=>{k&&ot(k,R,_),S&&F.enter(m),v&&Bt(_,null,R,"mounted")},M)},D=(_,p,T,R,M)=>{if(T&&g(_,T),R)for(let $=0;$<R.length;$++)g(_,R[$]);if(M){let $=M.subTree;if(p===$){const U=M.vnode;D(_,U,U.scopeId,U.slotScopeIds,M.parent)}}},P=(_,p,T,R,M,$,U,h,m=0)=>{for(let k=m;k<_.length;k++){const C=_[k]=h?xt(_[k]):it(_[k]);E(null,C,p,T,R,M,$,U,h)}},A=(_,p,T,R,M,$,U)=>{const h=p.el=_.el;let{patchFlag:m,dynamicChildren:k,dirs:C}=p;m|=_.patchFlag&16;const j=_.props||he,F=p.props||he;let v;if(T&&Zt(T,!1),(v=F.onVnodeBeforeUpdate)&&ot(v,T,p,_),C&&Bt(p,_,T,"beforeUpdate"),T&&Zt(T,!0),k?V(_.dynamicChildren,k,h,T,R,Nr(p,M),$):U||ie(_,p,h,null,T,R,Nr(p,M),$,!1),m>0){if(m&16)ne(h,p,j,F,T,R,M);else if(m&2&&j.class!==F.class&&r(h,"class",null,F.class,M),m&4&&r(h,"style",j.style,F.style,M),m&8){const S=p.dynamicProps;for(let H=0;H<S.length;H++){const G=S[H],fe=j[G],Re=F[G];(Re!==fe||G==="value")&&r(h,G,fe,Re,M,_.children,T,R,$e)}}m&1&&_.children!==p.children&&c(h,p.children)}else!U&&k==null&&ne(h,p,j,F,T,R,M);((v=F.onVnodeUpdated)||C)&&je(()=>{v&&ot(v,T,p,_),C&&Bt(p,_,T,"updated")},R)},V=(_,p,T,R,M,$,U)=>{for(let h=0;h<p.length;h++){const m=_[h],k=p[h],C=m.el&&(m.type===Ie||!$n(m,k)||m.shapeFlag&70)?d(m.el):T;E(m,k,C,null,R,M,$,U,!0)}},ne=(_,p,T,R,M,$,U)=>{if(T!==R){if(T!==he)for(const h in T)!On(h)&&!(h in R)&&r(_,h,T[h],null,U,p.children,M,$,$e);for(const h in R){if(On(h))continue;const m=R[h],k=T[h];m!==k&&h!=="value"&&r(_,h,k,m,U,p.children,M,$,$e)}"value"in R&&r(_,"value",T.value,R.value,U)}},Y=(_,p,T,R,M,$,U,h,m)=>{const k=p.el=_?_.el:a(""),C=p.anchor=_?_.anchor:a("");let{patchFlag:j,dynamicChildren:F,slotScopeIds:v}=p;v&&(h=h?h.concat(v):v),_==null?(s(k,T,R),s(C,T,R),P(p.children||[],T,C,M,$,U,h,m)):j>0&&j&64&&F&&_.dynamicChildren?(V(_.dynamicChildren,F,T,M,$,U,h),(p.key!=null||M&&p===M.subTree)&&Go(_,p,!0)):ie(_,p,T,C,M,$,U,h,m)},pe=(_,p,T,R,M,$,U,h,m)=>{p.slotScopeIds=h,_==null?p.shapeFlag&512?M.ctx.activate(p,T,R,U,m):nt(p,T,R,M,$,U,m):He(_,p,m)},nt=(_,p,T,R,M,$,U)=>{const h=_.component=nf(_,R,M);if(Io(_)&&(h.ctx.renderer=Je),sf(h),h.asyncDep){if(M&&M.registerDep(h,J),!_.el){const m=h.subTree=Ne(Jt);x(null,m,p,T)}}else J(h,_,p,T,M,$,U)},He=(_,p,T)=>{const R=p.component=_.component;if(cu(_,p,T))if(R.asyncDep&&!R.asyncResolved){ce(R,p,T);return}else R.next=p,nu(R.update),R.effect.dirty=!0,R.update();else p.el=_.el,R.vnode=p},J=(_,p,T,R,M,$,U)=>{const h=()=>{if(_.isMounted){let{next:C,bu:j,u:F,parent:v,vnode:S}=_;{const Ge=Bo(_);if(Ge){C&&(C.el=S.el,ce(_,C,U)),Ge.asyncDep.then(()=>{_.isUnmounted||h()});return}}let H=C,G;Zt(_,!1),C?(C.el=S.el,ce(_,C,U)):C=S,j&&ns(j),(G=C.props&&C.props.onVnodeBeforeUpdate)&&ot(G,v,C,S),Zt(_,!0);const fe=wr(_),Re=_.subTree;_.subTree=fe,E(Re,fe,d(Re.el),vt(Re),_,M,$),C.el=fe.el,H===null&&uu(_,fe.el),F&&je(F,M),(G=C.props&&C.props.onVnodeUpdated)&&je(()=>ot(G,v,C,S),M)}else{let C;const{el:j,props:F}=p,{bm:v,m:S,parent:H}=_,G=ws(p);if(Zt(_,!1),v&&ns(v),!G&&(C=F&&F.onVnodeBeforeMount)&&ot(C,H,p),Zt(_,!0),j&&Ut){const fe=()=>{_.subTree=wr(_),Ut(j,_.subTree,_,M,null)};G?p.type.__asyncLoader().then(()=>!_.isUnmounted&&fe()):fe()}else{const fe=_.subTree=wr(_);E(null,fe,T,R,_,M,$),p.el=fe.el}if(S&&je(S,M),!G&&(C=F&&F.onVnodeMounted)){const fe=p;je(()=>ot(C,H,fe),M)}(p.shapeFlag&256||H&&ws(H.vnode)&&H.vnode.shapeFlag&256)&&_.a&&je(_.a,M),_.isMounted=!0,p=T=R=null}},m=_.effect=new cr(h,Xe,()=>kr(k),_.scope),k=_.update=()=>{m.dirty&&m.run()};k.id=_.uid,Zt(_,!0),k()},ce=(_,p,T)=>{p.component=_;const R=_.vnode.props;_.vnode=p,_.next=null,Wu(_,p.props,R,T),Ku(_,p.children,T),mt(),po(_),pt()},ie=(_,p,T,R,M,$,U,h,m=!1)=>{const k=_&&_.children,C=_?_.shapeFlag:0,j=p.children,{patchFlag:F,shapeFlag:v}=p;if(F>0){if(F&128){dt(k,j,T,R,M,$,U,h,m);return}else if(F&256){Ye(k,j,T,R,M,$,U,h,m);return}}v&8?(C&16&&$e(k,M,$),j!==k&&c(T,j)):C&16?v&16?dt(k,j,T,R,M,$,U,h,m):$e(k,M,$,!0):(C&8&&c(T,""),v&16&&P(j,T,R,M,$,U,h,m))},Ye=(_,p,T,R,M,$,U,h,m)=>{_=_||un,p=p||un;const k=_.length,C=p.length,j=Math.min(k,C);let F;for(F=0;F<j;F++){const v=p[F]=m?xt(p[F]):it(p[F]);E(_[F],v,T,null,M,$,U,h,m)}k>C?$e(_,M,$,!0,!1,j):P(p,T,R,M,$,U,h,m,j)},dt=(_,p,T,R,M,$,U,h,m)=>{let k=0;const C=p.length;let j=_.length-1,F=C-1;for(;k<=j&&k<=F;){const v=_[k],S=p[k]=m?xt(p[k]):it(p[k]);if($n(v,S))E(v,S,T,null,M,$,U,h,m);else break;k++}for(;k<=j&&k<=F;){const v=_[j],S=p[F]=m?xt(p[F]):it(p[F]);if($n(v,S))E(v,S,T,null,M,$,U,h,m);else break;j--,F--}if(k>j){if(k<=F){const v=F+1,S=v<C?p[v].el:R;for(;k<=F;)E(null,p[k]=m?xt(p[k]):it(p[k]),T,S,M,$,U,h,m),k++}}else if(k>F)for(;k<=j;)Oe(_[k],M,$,!0),k++;else{const v=k,S=k,H=new Map;for(k=S;k<=F;k++){const Be=p[k]=m?xt(p[k]):it(p[k]);Be.key!=null&&H.set(Be.key,k)}let G,fe=0;const Re=F-S+1;let Ge=!1,er=0;const Ln=new Array(Re);for(k=0;k<Re;k++)Ln[k]=0;for(k=v;k<=j;k++){const Be=_[k];if(fe>=Re){Oe(Be,M,$,!0);continue}let ht;if(Be.key!=null)ht=H.get(Be.key);else for(G=S;G<=F;G++)if(Ln[G-S]===0&&$n(Be,p[G])){ht=G;break}ht===void 0?Oe(Be,M,$,!0):(Ln[ht-S]=k+1,ht>=er?er=ht:Ge=!0,E(Be,p[ht],T,null,M,$,U,h,m),fe++)}const cc=Ge?Bu(Ln):un;for(G=cc.length-1,k=Re-1;k>=0;k--){const Be=S+k,ht=p[Be],uc=Be+1<C?p[Be+1].el:R;Ln[k]===0?E(null,ht,T,uc,M,$,U,h,m):Ge&&(G<0||k!==cc[G]?ve(ht,T,uc,2):G--)}}},ve=(_,p,T,R,M=null)=>{const{el:$,type:U,transition:h,children:m,shapeFlag:k}=_;if(k&6){ve(_.component.subTree,p,T,R);return}if(k&128){_.suspense.move(p,T,R);return}if(k&64){U.move(_,p,T,Je);return}if(U===Ie){s($,p,T);for(let j=0;j<m.length;j++)ve(m[j],p,T,R);s(_.anchor,p,T);return}if(U===Pr){b(_,p,T);return}if(R!==2&&k&1&&h)if(R===0)h.beforeEnter($),s($,p,T),je(()=>h.enter($),M);else{const{leave:j,delayLeave:F,afterLeave:v}=h,S=()=>s($,p,T),H=()=>{j($,()=>{S(),v&&v()})};F?F($,S,H):H()}else s($,p,T)},Oe=(_,p,T,R=!1,M=!1)=>{const{type:$,props:U,ref:h,children:m,dynamicChildren:k,shapeFlag:C,patchFlag:j,dirs:F}=_;if(h!=null&&Cr(h,null,T,_,!0),C&256){p.ctx.deactivate(_);return}const v=C&1&&F,S=!ws(_);let H;if(S&&(H=U&&U.onVnodeBeforeUnmount)&&ot(H,p,_),C&6)cn(_.component,T,R);else{if(C&128){_.suspense.unmount(T,R);return}v&&Bt(_,null,p,"beforeUnmount"),C&64?_.type.remove(_,p,T,M,Je,R):k&&($!==Ie||j>0&&j&64)?$e(k,p,T,!1,!0):($===Ie&&j&384||!M&&C&16)&&$e(m,p,T),R&&Mt(_)}(S&&(H=U&&U.onVnodeUnmounted)||v)&&je(()=>{H&&ot(H,p,_),v&&Bt(_,null,p,"unmounted")},T)},Mt=_=>{const{type:p,el:T,anchor:R,transition:M}=_;if(p===Ie){Dt(T,R);return}if(p===Pr){y(_);return}const $=()=>{i(T),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(_.shapeFlag&1&&M&&!M.persisted){const{leave:U,delayLeave:h}=M,m=()=>U(T,$);h?h(_.el,$,m):m()}else $()},Dt=(_,p)=>{let T;for(;_!==p;)T=u(_),i(_),_=T;i(p)},cn=(_,p,T)=>{const{bum:R,scope:M,update:$,subTree:U,um:h}=_;R&&ns(R),M.stop(),$&&($.active=!1,Oe(U,_,p,T)),h&&je(h,p),je(()=>{_.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},$e=(_,p,T,R=!1,M=!1,$=0)=>{for(let U=$;U<_.length;U++)Oe(_[U],p,T,R,M)},vt=_=>_.shapeFlag&6?vt(_.component.subTree):_.shapeFlag&128?_.suspense.next():u(_.anchor||_.el);let Et=!1;const Ft=(_,p,T)=>{_==null?p._vnode&&Oe(p._vnode,null,null,!0):E(p._vnode||null,_,p,null,null,null,T),Et||(Et=!0,po(),go(),Et=!1),p._vnode=_},Je={p:E,um:Oe,m:ve,r:Mt,mt:nt,mc:P,pc:ie,pbc:V,n:vt,o:e};let $t,Ut;return{render:Ft,hydrate:$t,createApp:Fu(Ft,$t)}}function Nr({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 Zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Gu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Go(e,t,n=!1){const s=e.children,i=t.children;if(z(s)&&z(i))for(let r=0;r<s.length;r++){const o=s[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=xt(i[r]),a.el=o.el),n||Go(o,a)),a.type===Mn&&(a.el=o.el)}}function Bu(e){const t=e.slice(),n=[0];let s,i,r,o,a;const l=e.length;for(s=0;s<l;s++){const f=e[s];if(f!==0){if(i=n[n.length-1],e[i]<f){t[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,e[n[a]]<f?r=a+1:o=a;f<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function Bo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bo(t)}const Xu=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),Mn=Symbol.for("v-txt"),Jt=Symbol.for("v-cmt"),Pr=Symbol.for("v-stc"),Dn=[];let Qe=null;function q(e=!1){Dn.push(Qe=e?null:[])}function Zu(){Dn.pop(),Qe=Dn[Dn.length-1]||null}let Fn=1;function Xo(e){Fn+=e}function Zo(e){return e.dynamicChildren=Fn>0?Qe||un:null,Zu(),Fn>0&&Qe&&Qe.push(e),e}function re(e,t,n,s,i,r){return Zo(ae(e,t,n,s,i,r,!0))}function mn(e,t,n,s,i){return Zo(Ne(e,t,n,s,i,!0))}function Ar(e){return e?e.__v_isVNode===!0:!1}function $n(e,t){return e.type===t.type&&e.key===t.key}const Jo=({key:e})=>e??null,Ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||X(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function ae(e,t=null,n=null,s=0,i=null,r=e===Ie?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jo(t),ref:t&&Ts(t),scopeId:yo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ce};return a?(Rr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),Fn>0&&!o&&Qe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Qe.push(l),l}const Ne=Ju;function Ju(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===hu)&&(e=Jt),Ar(e)){const a=pn(e,t,!0);return n&&Rr(a,n),Fn>0&&!r&&Qe&&(a.shapeFlag&6?Qe[Qe.indexOf(e)]=a:Qe.push(a)),a.patchFlag|=-2,a}if(uf(e)&&(e=e.__vccOpts),t){t=qu(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=rs(a)),ge(l)&&(ro(l)&&!z(l)&&(l=Ee({},l)),t.style=ss(l))}const o=ye(e)?1:pu(e)?128:Xu(e)?64:ge(e)?4:X(e)?2:0;return ae(e,t,n,s,i,o,r,!0)}function qu(e){return e?ro(e)||Fo(e)?Ee({},e):e:null}function pn(e,t,n=!1,s=!1){const{props:i,ref:r,patchFlag:o,children:a,transition:l}=e,f=t?Qu(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Jo(f),ref:t&&t.ref?n&&r?z(r)?r.concat(Ts(t)):[r,Ts(t)]:Ts(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?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&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&(c.transition=l.clone(c)),c}function qt(e=" ",t=0){return Ne(Mn,null,e,t)}function Pe(e="",t=!1){return t?(q(),mn(Jt,null,e)):Ne(Jt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ne(Jt):z(e)?Ne(Ie,null,e.slice()):typeof e=="object"?xt(e):Ne(Mn,null,String(e))}function xt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Rr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Rr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Fo(t)?t._ctx=Ce:i===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[qt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qu(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=rs([t.class,s.class]));else if(i==="style")t.style=ss([t.style,s.style]);else if(qn(i)){const r=t[i],o=s[i];o&&r!==o&&!(z(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=s[i])}return t}function ot(e,t,n,s=null){qe(e,t,7,[n,s])}const ef=Ro();let tf=0;function nf(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||ef,r={uid:tf++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Uo(s,i),emitsOptions:bo(s,i),emit:null,emitted:null,propsDefaults:he,inheritAttrs:s.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=iu.bind(null,r),e.ce&&e.ce(r),r}let Te=null;const Un=()=>Te||Ce;let Ls,Mr;{const e=Pi(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),Mr=t("__VUE_SSR_SETTERS__",n=>Os=n)}const jn=e=>{const t=Te;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},qo=()=>{Te&&Te.scope.off(),Ls(null)};function Qo(e){return e.vnode.shapeFlag&4}let Os=!1;function sf(e,t=!1){t&&Mr(t);const{props:n,children:s}=e.vnode,i=Qo(e);ju(e,n,i,t),Vu(e,s);const r=i?rf(e,t):void 0;return t&&Mr(!1),r}function rf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Cu);const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?af(e):null,r=jn(e);mt();const o=_t(s,e,0,[e.props,i]);if(pt(),r(),Oi(o)){if(o.then(qo,qo),t)return o.then(a=>{ea(e,a,t)}).catch(a=>{_s(a,e,0)});e.asyncDep=o}else ea(e,o,t)}else na(e,t)}function ea(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=co(t)),na(e,n)}let ta;function na(e,t,n){const s=e.type;if(!e.render){if(!t&&ta&&!s.render){const i=s.template||Lr(e).template;if(i){const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,f=Ee(Ee({isCustomElement:r,delimiters:a},o),l);s.render=ta(i,f)}}e.render=s.render||Xe}{const i=jn(e);mt();try{Nu(e)}finally{pt(),i()}}}const of={get(e,t){return Ue(e,"get",""),e[t]}};function af(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,of),slots:e.slots,emit:e.emit,expose:t}}function xs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(co(gr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in An)return An[n](e)},has(t,n){return n in t||n in An}}))}const lf=/(?:^|[-_])(\w)/g,cf=e=>e.replace(lf,t=>t.toUpperCase()).replace(/[-_]/g,"");function sa(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function ra(e,t,n=!1){let s=sa(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e&&e.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};s=i(e.components||e.parent.type.components)||i(e.appContext.components)}return s?cf(s):n?"App":"Anonymous"}function uf(e){return X(e)&&"__vccOpts"in e}const De=(e,t)=>Kc(e,t,Os);function ia(e,t,n){const s=arguments.length;return s===2?ge(t)&&!z(t)?Ar(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ar(n)&&(n=[n]),Ne(e,t,n))}const ff="3.4.27";/**
16
+ `],...qc(n))}),t}function qc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${ra(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...Qc(e.props),r]:[i+r]}function Qc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...uo(s,e[s]))}),n.length>3&&t.push(" ..."),t}function uo(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:be(t)?(t=uo(e,ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):X(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),n?t:[`${e}=`,t])}function _t(e,t,n,s){try{return s?e(...s):e()}catch(i){_s(i,t,n)}}function qe(e,t,n,s){if(X(e)){const i=_t(e,t,n,s);return i&&Oi(i)&&i.catch(r=>{_s(r,t,n)}),i}if(z(e)){const i=[];for(let r=0;r<e.length;r++)i.push(qe(e[r],t,n,s));return i}}function _s(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const f=r.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](e,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){mt(),_t(l,null,10,[e,o,a]),pt();return}}eu(e,n,i,s)}function eu(e,t,n,s=!0){console.error(e)}let Nn=!1,br=!1;const xe=[];let rt=0;const dn=[];let Ot=null,zt=0;const fo=Promise.resolve();let yr=null;function ho(e){const t=yr||fo;return e?t.then(this?e.bind(this):e):t}function tu(e){let t=rt+1,n=xe.length;for(;t<n;){const s=t+n>>>1,i=xe[s],r=An(i);r<e||r===e&&i.pre?t=s+1:n=s}return t}function kr(e){(!xe.length||!xe.includes(e,Nn&&e.allowRecurse?rt+1:rt))&&(e.id==null?xe.push(e):xe.splice(tu(e.id),0,e),mo())}function mo(){!Nn&&!br&&(br=!0,yr=fo.then(_o))}function nu(e){const t=xe.indexOf(e);t>rt&&xe.splice(t,1)}function su(e){z(e)?dn.push(...e):(!Ot||!Ot.includes(e,e.allowRecurse?zt+1:zt))&&dn.push(e),mo()}function po(e,t,n=Nn?rt+1:0){for(;n<xe.length;n++){const s=xe[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;xe.splice(n,1),n--,s()}}}function go(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>An(n)-An(s));if(dn.length=0,Ot){Ot.push(...t);return}for(Ot=t,zt=0;zt<Ot.length;zt++)Ot[zt]();Ot=null,zt=0}}const An=e=>e.id==null?1/0:e.id,ru=(e,t)=>{const n=An(e)-An(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _o(e){br=!1,Nn=!0,xe.sort(ru);try{for(rt=0;rt<xe.length;rt++){const t=xe[rt];t&&t.active!==!1&&_t(t,null,14)}}finally{rt=0,xe.length=0,go(),Nn=!1,yr=null,(xe.length||dn.length)&&_o()}}function iu(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||he;let i=n;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in s){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:u}=s[c]||he;u&&(i=n.map(g=>ye(g)?g.trim():g)),d&&(i=n.map(or))}let a,l=s[a=ir(t)]||s[a=ir(st(t))];!l&&r&&(l=s[a=ir(Wt(t))]),l&&qe(l,e,6,i);const f=s[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(f,e,6,i)}}function bo(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},a=!1;if(!X(e)){const l=f=>{const c=bo(f,t,!0);c&&(a=!0,Ee(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(ge(e)&&s.set(e,null),null):(z(r)?r.forEach(l=>o[l]=null):Ee(o,r),ge(e)&&s.set(e,o),o)}function bs(e,t){return!e||!qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Wt(t))||te(e,t))}let Ce=null,yo=null;function ys(e){const t=Ce;return Ce=e,yo=e&&e.type.__scopeId||null,t}function ou(e,t=Ce,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Xo(-1);const r=ys(t);let o;try{o=e(...i)}finally{ys(r),s._d&&Xo(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function qp(){}function wr(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:f,renderCache:c,props:d,data:u,setupState:g,ctx:w,inheritAttrs:E}=e,I=ys(e);let S,N;try{if(n.shapeFlag&4){const y=i||s,O=y;S=it(f.call(O,y,c,d,g,u,w)),N=a}else{const y=t;S=it(y.length>1?y(d,{attrs:a,slots:o,emit:l}):y(d,null)),N=t.props?a:au(a)}}catch(y){Dn.length=0,_s(y,e,1),S=Ne(Jt)}let b=S;if(N&&E!==!1){const y=Object.keys(N),{shapeFlag:O}=b;y.length&&O&7&&(r&&y.some(nr)&&(N=lu(N,r)),b=pn(b,N,!1,!0))}return n.dirs&&(b=pn(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),S=b,ys(I),S}const au=e=>{let t;for(const n in e)(n==="class"||n==="style"||qn(n))&&((t||(t={}))[n]=e[n]);return t},lu=(e,t)=>{const n={};for(const s in e)(!nr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function cu(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:a,patchFlag:l}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?ko(s,o,f):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const u=c[d];if(o[u]!==s[u]&&!bs(f,u))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?ko(s,o,f):!0:!!o;return!1}function ko(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(t[r]!==e[r]&&!bs(n,r))return!0}return!1}function uu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const fu="components";function du(e,t){return mu(fu,e,!0,t)||e}const hu=Symbol.for("v-ndc");function mu(e,t,n=!0,s=!1){const i=Ce||Te;if(i){const r=i.type;{const a=sa(r,!1);if(a&&(a===t||a===st(t)||a===ts(st(t))))return r}const o=wo(i[e]||r[e],t)||wo(i.appContext[e],t);return!o&&s?r:o}}function wo(e,t){return e&&(e[t]||e[st(t)]||e[ts(st(t))])}const pu=e=>e.__isSuspense;function gu(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):su(e)}const _u=Symbol.for("v-scx"),bu=()=>Ve(_u),ks={};function Gt(e,t,n){return vo(e,t,n)}function vo(e,t,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:a}=he){if(t&&r){const L=t;t=(...D)=>{L(...D),O()}}const l=Te,f=L=>s===!0?L:Yt(L,s===!1?1:void 0);let c,d=!1,u=!1;if(be(e)?(c=()=>e.value,d=ps(e)):Vt(e)?(c=()=>f(e),d=!0):z(e)?(u=!0,d=e.some(L=>Vt(L)||ps(L)),c=()=>e.map(L=>{if(be(L))return L.value;if(Vt(L))return f(L);if(X(L))return _t(L,l,2)})):X(e)?t?c=()=>_t(e,l,2):c=()=>(g&&g(),qe(e,l,3,[w])):c=Xe,t&&s){const L=c;c=()=>Yt(L())}let g,w=L=>{g=b.onStop=()=>{_t(L,l,4),g=b.onStop=void 0}},E;if(Os)if(w=Xe,t?n&&qe(t,l,3,[c(),u?[]:void 0,w]):c(),i==="sync"){const L=bu();E=L.__watcherHandles||(L.__watcherHandles=[])}else return Xe;let I=u?new Array(e.length).fill(ks):ks;const S=()=>{if(!(!b.active||!b.dirty))if(t){const L=b.run();(s||d||(u?L.some((D,A)=>It(D,I[A])):It(L,I)))&&(g&&g(),qe(t,l,3,[L,I===ks?void 0:u&&I[0]===ks?[]:I,w]),I=L)}else b.run()};S.allowRecurse=!!t;let N;i==="sync"?N=S:i==="post"?N=()=>je(S,l&&l.suspense):(S.pre=!0,l&&(S.id=l.uid),N=()=>kr(S));const b=new cr(c,Xe,N),y=Di(),O=()=>{b.stop(),y&&sr(y.effects,b)};return t?n?S():I=b.run():i==="post"?je(b.run.bind(b),l&&l.suspense):b.run(),E&&E.push(O),O}function yu(e,t,n){const s=this.proxy,i=ye(e)?e.includes(".")?Eo(s,e):()=>s[e]:e.bind(s,s);let r;X(t)?r=t:(r=t.handler,n=t);const o=jn(this),a=vo(i,r.bind(s),n);return o(),a}function Eo(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function Yt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,be(e))Yt(e.value,t,n);else if(z(e))for(let s=0;s<e.length;s++)Yt(e[s],t,n);else if(Li(e)||fn(e))e.forEach(s=>{Yt(s,t,n)});else if(xi(e))for(const s in e)Yt(e[s],t,n);return e}function ku(e,t){if(Ce===null)return e;const n=Ss(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=he]=t[i];r&&(X(r)&&(r={mounted:r,updated:r}),r.deep&&Yt(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bt(e,t,n,s){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&(mt(),qe(l,n,8,[e.el,a,e,t]),pt())}}/*! #__NO_SIDE_EFFECTS__ */function Xt(e,t){return X(e)?Ee({name:e.name},t,{setup:e}):e}const ws=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function wu(e,t){To(e,"a",t)}function vu(e,t){To(e,"da",t)}function To(e,t,n=Te){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(vs(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Io(i.parent.vnode)&&Eu(s,t,n,i),i=i.parent}}function Eu(e,t,n,s){const i=vs(t,e,s,!0);vr(()=>{sr(s[t],i)},n)}function vs(e,t,n=Te,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;mt();const a=jn(n),l=qe(t,n,e,o);return a(),pt(),l});return s?i.unshift(r):i.push(r),r}}const bt=e=>(t,n=Te)=>(!Os||e==="sp")&&vs(e,(...s)=>t(...s),n),Lo=bt("bm"),Es=bt("m"),Iu=bt("bu"),Tu=bt("u"),Oo=bt("bum"),vr=bt("um"),Lu=bt("sp"),Ou=bt("rtg"),Su=bt("rtc");function xu(e,t=Te){vs("ec",e,t)}function So(e,t,n,s){let i;const r=n;if(z(e)||ye(e)){i=new Array(e.length);for(let o=0,a=e.length;o<a;o++)i[o]=t(e[o],o,void 0,r)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,r)}else if(ge(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,r));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const f=o[a];i[a]=t(e[f],f,a,r)}}else i=[];return i}const Er=e=>e?Qo(e)?Ss(e)||e.proxy:Er(e.parent):null,Pn=Ee(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Er(e.parent),$root:e=>Er(e.root),$emit:e=>e.emit,$options:e=>Lr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,kr(e.update)}),$nextTick:e=>e.n||(e.n=ho.bind(e.proxy)),$watch:e=>yu.bind(e)}),Ir=(e,t)=>e!==he&&!e.__isScriptSetup&&te(e,t),Cu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Ir(s,t))return o[t]=1,s[t];if(i!==he&&te(i,t))return o[t]=2,i[t];if((f=e.propsOptions[0])&&te(f,t))return o[t]=3,r[t];if(n!==he&&te(n,t))return o[t]=4,n[t];Tr&&(o[t]=0)}}const c=Pn[t];let d,u;if(c)return t==="$attrs"&&Ue(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==he&&te(n,t))return o[t]=4,n[t];if(u=l.config.globalProperties,te(u,t))return u[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return Ir(i,t)?(i[t]=n,!0):s!==he&&te(s,t)?(s[t]=n,!0):te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!n[o]||e!==he&&te(e,o)||Ir(t,o)||(a=r[0])&&te(a,o)||te(s,o)||te(Pn,o)||te(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xo(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Tr=!0;function Nu(e){const t=Lr(e),n=e.proxy,s=e.ctx;Tr=!1,t.beforeCreate&&Co(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:f,created:c,beforeMount:d,mounted:u,beforeUpdate:g,updated:w,activated:E,deactivated:I,beforeDestroy:S,beforeUnmount:N,destroyed:b,unmounted:y,render:O,renderTracked:L,renderTriggered:D,errorCaptured:A,serverPrefetch:P,expose:K,inheritAttrs:ne,components:G,directives:pe,filters:nt}=t;if(f&&Au(f,s,null),o)for(const ce in o){const ie=o[ce];X(ie)&&(s[ce]=ie.bind(n))}if(i){const ce=i.call(n,n);ge(ce)&&(e.data=hs(ce))}if(Tr=!0,r)for(const ce in r){const ie=r[ce],Ge=X(ie)?ie.bind(n,n):X(ie.get)?ie.get.bind(n,n):Xe,dt=!X(ie)&&X(ie.set)?ie.set.bind(n):Xe,ve=De({get:Ge,set:dt});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Oe=>ve.value=Oe})}if(a)for(const ce in a)No(a[ce],s,n,ce);if(l){const ce=X(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(ie=>{$u(ie,ce[ie])})}c&&Co(c,e,"c");function J(ce,ie){z(ie)?ie.forEach(Ge=>ce(Ge.bind(n))):ie&&ce(ie.bind(n))}if(J(Lo,d),J(Es,u),J(Iu,g),J(Tu,w),J(wu,E),J(vu,I),J(xu,A),J(Su,L),J(Ou,D),J(Oo,N),J(vr,y),J(Lu,P),z(K))if(K.length){const ce=e.exposed||(e.exposed={});K.forEach(ie=>{Object.defineProperty(ce,ie,{get:()=>n[ie],set:Ge=>n[ie]=Ge})})}else e.exposed||(e.exposed={});O&&e.render===Xe&&(e.render=O),ne!=null&&(e.inheritAttrs=ne),G&&(e.components=G),pe&&(e.directives=pe)}function Au(e,t,n=Xe){z(e)&&(e=Or(e));for(const s in e){const i=e[s];let r;ge(i)?"default"in i?r=Ve(i.from||s,i.default,!0):r=Ve(i.from||s):r=Ve(i),be(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r}}function Co(e,t,n){qe(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function No(e,t,n,s){const i=s.includes(".")?Eo(n,s):()=>n[s];if(ye(e)){const r=t[e];X(r)&&Gt(i,r)}else if(X(e))Gt(i,e.bind(n));else if(ge(e))if(z(e))e.forEach(r=>No(r,t,n,s));else{const r=X(e.handler)?e.handler.bind(n):t[e.handler];X(r)&&Gt(i,r,e)}}function Lr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(f=>Is(l,f,o,!0)),Is(l,t,o)),ge(t)&&r.set(t,l),l}function Is(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Is(e,r,n,!0),i&&i.forEach(o=>Is(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=Pu[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Pu={data:Ao,props:Po,emits:Po,methods:Rn,computed:Rn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:Rn,directives:Rn,watch:Mu,provide:Ao,inject:Ru};function Ao(e,t){return t?e?function(){return Ee(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Ru(e,t){return Rn(Or(e),Or(t))}function Or(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function Rn(e,t){return e?Ee(Object.create(null),e,t):t}function Po(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ee(Object.create(null),xo(e),xo(t??{})):t}function Mu(e,t){if(!e)return t;if(!t)return e;const n=Ee(Object.create(null),e);for(const s in t)n[s]=Me(e[s],t[s]);return n}function Ro(){return{app:null,config:{isNativeTag:fc,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 Du=0;function Fu(e,t){return function(s,i=null){X(s)||(s=Ee({},s)),i!=null&&!ge(i)&&(i=null);const r=Ro(),o=new WeakSet;let a=!1;const l=r.app={_uid:Du++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:ff,get config(){return r.config},set config(f){},use(f,...c){return o.has(f)||(f&&X(f.install)?(o.add(f),f.install(l,...c)):X(f)&&(o.add(f),f(l,...c))),l},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),l},component(f,c){return c?(r.components[f]=c,l):r.components[f]},directive(f,c){return c?(r.directives[f]=c,l):r.directives[f]},mount(f,c,d){if(!a){const u=Ne(s,i);return u.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),c&&t?t(u,f):e(u,f,d),a=!0,l._container=f,f.__vue_app__=l,Ss(u.component)||u.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(f,c){return r.provides[f]=c,l},runWithContext(f){const c=hn;hn=l;try{return f()}finally{hn=c}}};return l}}let hn=null;function $u(e,t){if(Te){let n=Te.provides;const s=Te.parent&&Te.parent.provides;s===n&&(n=Te.provides=Object.create(s)),n[e]=t}}function Ve(e,t,n=!1){const s=Te||Ce;if(s||hn){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&X(t)?t.call(s&&s.proxy):t}}function Uu(){return!!(Te||Ce||hn)}const Mo={},Do=()=>Object.create(Mo),Fo=e=>Object.getPrototypeOf(e)===Mo;function ju(e,t,n,s=!1){const i={},r=Do();e.propsDefaults=Object.create(null),$o(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=s?i:Kc(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Wu(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,a=ee(i),[l]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let u=c[d];if(bs(e.emitsOptions,u))continue;const g=t[u];if(l)if(te(r,u))g!==r[u]&&(r[u]=g,f=!0);else{const w=st(u);i[w]=Sr(l,a,w,g,e,!1)}else g!==r[u]&&(r[u]=g,f=!0)}}}else{$o(e,t,i,r)&&(f=!0);let c;for(const d in a)(!t||!te(t,d)&&((c=Wt(d))===d||!te(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=Sr(l,a,d,void 0,e,!0)):delete i[d]);if(r!==a)for(const d in r)(!t||!te(t,d))&&(delete r[d],f=!0)}f&&gt(e.attrs,"set","")}function $o(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(On(l))continue;const f=t[l];let c;i&&te(i,c=st(l))?!r||!r.includes(c)?n[c]=f:(a||(a={}))[c]=f:bs(e.emitsOptions,l)||(!(l in s)||f!==s[l])&&(s[l]=f,o=!0)}if(r){const l=ee(n),f=a||he;for(let c=0;c<r.length;c++){const d=r[c];n[d]=Sr(i,l,d,f[d],e,!te(f,d))}}return o}function Sr(e,t,n,s,i,r){const o=e[n];if(o!=null){const a=te(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&X(l)){const{propsDefaults:f}=i;if(n in f)s=f[n];else{const c=jn(i);s=f[n]=l.call(null,t),c()}}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===Wt(n))&&(s=!0))}return s}function Uo(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const r=e.props,o={},a=[];let l=!1;if(!X(e)){const c=d=>{l=!0;const[u,g]=Uo(d,t,!0);Ee(o,u),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!l)return ge(e)&&s.set(e,un),un;if(z(r))for(let c=0;c<r.length;c++){const d=st(r[c]);jo(d)&&(o[d]=he)}else if(r)for(const c in r){const d=st(c);if(jo(d)){const u=r[c],g=o[d]=z(u)||X(u)?{type:u}:Ee({},u);if(g){const w=Ko(Boolean,g.type),E=Ko(String,g.type);g[0]=w>-1,g[1]=E<0||w<E,(w>-1||te(g,"default"))&&a.push(d)}}}const f=[o,a];return ge(e)&&s.set(e,f),f}function jo(e){return e[0]!=="$"&&!On(e)}function Wo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ho(e,t){return Wo(e)===Wo(t)}function Ko(e,t){return z(t)?t.findIndex(n=>Ho(n,e)):X(t)&&Ho(t,e)?0:-1}const Vo=e=>e[0]==="_"||e==="$stable",xr=e=>z(e)?e.map(it):[it(e)],Hu=(e,t,n)=>{if(t._n)return t;const s=ou((...i)=>xr(t(...i)),n);return s._c=!1,s},zo=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Vo(i))continue;const r=e[i];if(X(r))t[i]=Hu(i,r,s);else if(r!=null){const o=xr(r);t[i]=()=>o}}},Go=(e,t)=>{const n=xr(t);e.slots.default=()=>n},Ku=(e,t)=>{const n=e.slots=Do();if(e.vnode.shapeFlag&32){const s=t._;s?(Ee(n,t),Ci(n,"_",s,!0)):zo(t,n)}else t&&Go(e,t)},Vu=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=he;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Ee(i,t),!n&&a===1&&delete i._):(r=!t.$stable,zo(t,i)),o=t}else t&&(Go(e,t),o={default:1});if(r)for(const a in i)!Vo(a)&&o[a]==null&&delete i[a]};function Cr(e,t,n,s,i=!1){if(z(e)){e.forEach((u,g)=>Cr(u,t&&(z(t)?t[g]:t),n,s,i));return}if(ws(s)&&!i)return;const r=s.shapeFlag&4?Ss(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=e,f=t&&t.r,c=a.refs===he?a.refs={}:a.refs,d=a.setupState;if(f!=null&&f!==l&&(ye(f)?(c[f]=null,te(d,f)&&(d[f]=null)):be(f)&&(f.value=null)),X(l))_t(l,a,12,[o,c]);else{const u=ye(l),g=be(l);if(u||g){const w=()=>{if(e.f){const E=u?te(d,l)?d[l]:c[l]:l.value;i?z(E)&&sr(E,r):z(E)?E.includes(r)||E.push(r):u?(c[l]=[r],te(d,l)&&(d[l]=c[l])):(l.value=[r],e.k&&(c[e.k]=l.value))}else u?(c[l]=o,te(d,l)&&(d[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(w.id=-1,je(w,n)):w()}}}const je=gu;function zu(e){return Gu(e)}function Gu(e,t){const n=Ai();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:f,setElementText:c,parentNode:d,nextSibling:u,setScopeId:g=Xe,insertStaticContent:w}=e,E=(_,p,T,R=null,M=null,$=null,U=void 0,h=null,m=!!p.dynamicChildren)=>{if(_===p)return;_&&!$n(_,p)&&(R=vt(_),Oe(_,M,$,!0),_=null),p.patchFlag===-2&&(m=!1,p.dynamicChildren=null);const{type:k,ref:C,shapeFlag:j}=p;switch(k){case Mn:I(_,p,T,R);break;case Jt:S(_,p,T,R);break;case Ar:_==null&&N(p,T,R,U);break;case Ie:G(_,p,T,R,M,$,U,h,m);break;default:j&1?O(_,p,T,R,M,$,U,h,m):j&6?pe(_,p,T,R,M,$,U,h,m):(j&64||j&128)&&k.process(_,p,T,R,M,$,U,h,m,Je)}C!=null&&M&&Cr(C,_&&_.ref,$,p||_,!p)},I=(_,p,T,R)=>{if(_==null)s(p.el=a(p.children),T,R);else{const M=p.el=_.el;p.children!==_.children&&f(M,p.children)}},S=(_,p,T,R)=>{_==null?s(p.el=l(p.children||""),T,R):p.el=_.el},N=(_,p,T,R)=>{[_.el,_.anchor]=w(_.children,p,T,R,_.el,_.anchor)},b=({el:_,anchor:p},T,R)=>{let M;for(;_&&_!==p;)M=u(_),s(_,T,R),_=M;s(p,T,R)},y=({el:_,anchor:p})=>{let T;for(;_&&_!==p;)T=u(_),i(_),_=T;i(p)},O=(_,p,T,R,M,$,U,h,m)=>{p.type==="svg"?U="svg":p.type==="math"&&(U="mathml"),_==null?L(p,T,R,M,$,U,h,m):P(_,p,M,$,U,h,m)},L=(_,p,T,R,M,$,U,h)=>{let m,k;const{props:C,shapeFlag:j,transition:F,dirs:v}=_;if(m=_.el=o(_.type,$,C&&C.is,C),j&8?c(m,_.children):j&16&&A(_.children,m,null,R,M,Nr(_,$),U,h),v&&Bt(_,null,R,"created"),D(m,_,_.scopeId,U,R),C){for(const H in C)H!=="value"&&!On(H)&&r(m,H,null,C[H],$,_.children,R,M,$e);"value"in C&&r(m,"value",null,C.value,$),(k=C.onVnodeBeforeMount)&&ot(k,R,_)}v&&Bt(_,null,R,"beforeMount");const x=Yu(M,F);x&&F.beforeEnter(m),s(m,p,T),((k=C&&C.onVnodeMounted)||x||v)&&je(()=>{k&&ot(k,R,_),x&&F.enter(m),v&&Bt(_,null,R,"mounted")},M)},D=(_,p,T,R,M)=>{if(T&&g(_,T),R)for(let $=0;$<R.length;$++)g(_,R[$]);if(M){let $=M.subTree;if(p===$){const U=M.vnode;D(_,U,U.scopeId,U.slotScopeIds,M.parent)}}},A=(_,p,T,R,M,$,U,h,m=0)=>{for(let k=m;k<_.length;k++){const C=_[k]=h?St(_[k]):it(_[k]);E(null,C,p,T,R,M,$,U,h)}},P=(_,p,T,R,M,$,U)=>{const h=p.el=_.el;let{patchFlag:m,dynamicChildren:k,dirs:C}=p;m|=_.patchFlag&16;const j=_.props||he,F=p.props||he;let v;if(T&&Zt(T,!1),(v=F.onVnodeBeforeUpdate)&&ot(v,T,p,_),C&&Bt(p,_,T,"beforeUpdate"),T&&Zt(T,!0),k?K(_.dynamicChildren,k,h,T,R,Nr(p,M),$):U||ie(_,p,h,null,T,R,Nr(p,M),$,!1),m>0){if(m&16)ne(h,p,j,F,T,R,M);else if(m&2&&j.class!==F.class&&r(h,"class",null,F.class,M),m&4&&r(h,"style",j.style,F.style,M),m&8){const x=p.dynamicProps;for(let H=0;H<x.length;H++){const Y=x[H],fe=j[Y],Re=F[Y];(Re!==fe||Y==="value")&&r(h,Y,fe,Re,M,_.children,T,R,$e)}}m&1&&_.children!==p.children&&c(h,p.children)}else!U&&k==null&&ne(h,p,j,F,T,R,M);((v=F.onVnodeUpdated)||C)&&je(()=>{v&&ot(v,T,p,_),C&&Bt(p,_,T,"updated")},R)},K=(_,p,T,R,M,$,U)=>{for(let h=0;h<p.length;h++){const m=_[h],k=p[h],C=m.el&&(m.type===Ie||!$n(m,k)||m.shapeFlag&70)?d(m.el):T;E(m,k,C,null,R,M,$,U,!0)}},ne=(_,p,T,R,M,$,U)=>{if(T!==R){if(T!==he)for(const h in T)!On(h)&&!(h in R)&&r(_,h,T[h],null,U,p.children,M,$,$e);for(const h in R){if(On(h))continue;const m=R[h],k=T[h];m!==k&&h!=="value"&&r(_,h,k,m,U,p.children,M,$,$e)}"value"in R&&r(_,"value",T.value,R.value,U)}},G=(_,p,T,R,M,$,U,h,m)=>{const k=p.el=_?_.el:a(""),C=p.anchor=_?_.anchor:a("");let{patchFlag:j,dynamicChildren:F,slotScopeIds:v}=p;v&&(h=h?h.concat(v):v),_==null?(s(k,T,R),s(C,T,R),A(p.children||[],T,C,M,$,U,h,m)):j>0&&j&64&&F&&_.dynamicChildren?(K(_.dynamicChildren,F,T,M,$,U,h),(p.key!=null||M&&p===M.subTree)&&Yo(_,p,!0)):ie(_,p,T,C,M,$,U,h,m)},pe=(_,p,T,R,M,$,U,h,m)=>{p.slotScopeIds=h,_==null?p.shapeFlag&512?M.ctx.activate(p,T,R,U,m):nt(p,T,R,M,$,U,m):He(_,p,m)},nt=(_,p,T,R,M,$,U)=>{const h=_.component=nf(_,R,M);if(Io(_)&&(h.ctx.renderer=Je),sf(h),h.asyncDep){if(M&&M.registerDep(h,J),!_.el){const m=h.subTree=Ne(Jt);S(null,m,p,T)}}else J(h,_,p,T,M,$,U)},He=(_,p,T)=>{const R=p.component=_.component;if(cu(_,p,T))if(R.asyncDep&&!R.asyncResolved){ce(R,p,T);return}else R.next=p,nu(R.update),R.effect.dirty=!0,R.update();else p.el=_.el,R.vnode=p},J=(_,p,T,R,M,$,U)=>{const h=()=>{if(_.isMounted){let{next:C,bu:j,u:F,parent:v,vnode:x}=_;{const Ye=Bo(_);if(Ye){C&&(C.el=x.el,ce(_,C,U)),Ye.asyncDep.then(()=>{_.isUnmounted||h()});return}}let H=C,Y;Zt(_,!1),C?(C.el=x.el,ce(_,C,U)):C=x,j&&ns(j),(Y=C.props&&C.props.onVnodeBeforeUpdate)&&ot(Y,v,C,x),Zt(_,!0);const fe=wr(_),Re=_.subTree;_.subTree=fe,E(Re,fe,d(Re.el),vt(Re),_,M,$),C.el=fe.el,H===null&&uu(_,fe.el),F&&je(F,M),(Y=C.props&&C.props.onVnodeUpdated)&&je(()=>ot(Y,v,C,x),M)}else{let C;const{el:j,props:F}=p,{bm:v,m:x,parent:H}=_,Y=ws(p);if(Zt(_,!1),v&&ns(v),!Y&&(C=F&&F.onVnodeBeforeMount)&&ot(C,H,p),Zt(_,!0),j&&Ut){const fe=()=>{_.subTree=wr(_),Ut(j,_.subTree,_,M,null)};Y?p.type.__asyncLoader().then(()=>!_.isUnmounted&&fe()):fe()}else{const fe=_.subTree=wr(_);E(null,fe,T,R,_,M,$),p.el=fe.el}if(x&&je(x,M),!Y&&(C=F&&F.onVnodeMounted)){const fe=p;je(()=>ot(C,H,fe),M)}(p.shapeFlag&256||H&&ws(H.vnode)&&H.vnode.shapeFlag&256)&&_.a&&je(_.a,M),_.isMounted=!0,p=T=R=null}},m=_.effect=new cr(h,Xe,()=>kr(k),_.scope),k=_.update=()=>{m.dirty&&m.run()};k.id=_.uid,Zt(_,!0),k()},ce=(_,p,T)=>{p.component=_;const R=_.vnode.props;_.vnode=p,_.next=null,Wu(_,p.props,R,T),Vu(_,p.children,T),mt(),po(_),pt()},ie=(_,p,T,R,M,$,U,h,m=!1)=>{const k=_&&_.children,C=_?_.shapeFlag:0,j=p.children,{patchFlag:F,shapeFlag:v}=p;if(F>0){if(F&128){dt(k,j,T,R,M,$,U,h,m);return}else if(F&256){Ge(k,j,T,R,M,$,U,h,m);return}}v&8?(C&16&&$e(k,M,$),j!==k&&c(T,j)):C&16?v&16?dt(k,j,T,R,M,$,U,h,m):$e(k,M,$,!0):(C&8&&c(T,""),v&16&&A(j,T,R,M,$,U,h,m))},Ge=(_,p,T,R,M,$,U,h,m)=>{_=_||un,p=p||un;const k=_.length,C=p.length,j=Math.min(k,C);let F;for(F=0;F<j;F++){const v=p[F]=m?St(p[F]):it(p[F]);E(_[F],v,T,null,M,$,U,h,m)}k>C?$e(_,M,$,!0,!1,j):A(p,T,R,M,$,U,h,m,j)},dt=(_,p,T,R,M,$,U,h,m)=>{let k=0;const C=p.length;let j=_.length-1,F=C-1;for(;k<=j&&k<=F;){const v=_[k],x=p[k]=m?St(p[k]):it(p[k]);if($n(v,x))E(v,x,T,null,M,$,U,h,m);else break;k++}for(;k<=j&&k<=F;){const v=_[j],x=p[F]=m?St(p[F]):it(p[F]);if($n(v,x))E(v,x,T,null,M,$,U,h,m);else break;j--,F--}if(k>j){if(k<=F){const v=F+1,x=v<C?p[v].el:R;for(;k<=F;)E(null,p[k]=m?St(p[k]):it(p[k]),T,x,M,$,U,h,m),k++}}else if(k>F)for(;k<=j;)Oe(_[k],M,$,!0),k++;else{const v=k,x=k,H=new Map;for(k=x;k<=F;k++){const Be=p[k]=m?St(p[k]):it(p[k]);Be.key!=null&&H.set(Be.key,k)}let Y,fe=0;const Re=F-x+1;let Ye=!1,er=0;const Ln=new Array(Re);for(k=0;k<Re;k++)Ln[k]=0;for(k=v;k<=j;k++){const Be=_[k];if(fe>=Re){Oe(Be,M,$,!0);continue}let ht;if(Be.key!=null)ht=H.get(Be.key);else for(Y=x;Y<=F;Y++)if(Ln[Y-x]===0&&$n(Be,p[Y])){ht=Y;break}ht===void 0?Oe(Be,M,$,!0):(Ln[ht-x]=k+1,ht>=er?er=ht:Ye=!0,E(Be,p[ht],T,null,M,$,U,h,m),fe++)}const cc=Ye?Bu(Ln):un;for(Y=cc.length-1,k=Re-1;k>=0;k--){const Be=x+k,ht=p[Be],uc=Be+1<C?p[Be+1].el:R;Ln[k]===0?E(null,ht,T,uc,M,$,U,h,m):Ye&&(Y<0||k!==cc[Y]?ve(ht,T,uc,2):Y--)}}},ve=(_,p,T,R,M=null)=>{const{el:$,type:U,transition:h,children:m,shapeFlag:k}=_;if(k&6){ve(_.component.subTree,p,T,R);return}if(k&128){_.suspense.move(p,T,R);return}if(k&64){U.move(_,p,T,Je);return}if(U===Ie){s($,p,T);for(let j=0;j<m.length;j++)ve(m[j],p,T,R);s(_.anchor,p,T);return}if(U===Ar){b(_,p,T);return}if(R!==2&&k&1&&h)if(R===0)h.beforeEnter($),s($,p,T),je(()=>h.enter($),M);else{const{leave:j,delayLeave:F,afterLeave:v}=h,x=()=>s($,p,T),H=()=>{j($,()=>{x(),v&&v()})};F?F($,x,H):H()}else s($,p,T)},Oe=(_,p,T,R=!1,M=!1)=>{const{type:$,props:U,ref:h,children:m,dynamicChildren:k,shapeFlag:C,patchFlag:j,dirs:F}=_;if(h!=null&&Cr(h,null,T,_,!0),C&256){p.ctx.deactivate(_);return}const v=C&1&&F,x=!ws(_);let H;if(x&&(H=U&&U.onVnodeBeforeUnmount)&&ot(H,p,_),C&6)cn(_.component,T,R);else{if(C&128){_.suspense.unmount(T,R);return}v&&Bt(_,null,p,"beforeUnmount"),C&64?_.type.remove(_,p,T,M,Je,R):k&&($!==Ie||j>0&&j&64)?$e(k,p,T,!1,!0):($===Ie&&j&384||!M&&C&16)&&$e(m,p,T),R&&Mt(_)}(x&&(H=U&&U.onVnodeUnmounted)||v)&&je(()=>{H&&ot(H,p,_),v&&Bt(_,null,p,"unmounted")},T)},Mt=_=>{const{type:p,el:T,anchor:R,transition:M}=_;if(p===Ie){Dt(T,R);return}if(p===Ar){y(_);return}const $=()=>{i(T),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(_.shapeFlag&1&&M&&!M.persisted){const{leave:U,delayLeave:h}=M,m=()=>U(T,$);h?h(_.el,$,m):m()}else $()},Dt=(_,p)=>{let T;for(;_!==p;)T=u(_),i(_),_=T;i(p)},cn=(_,p,T)=>{const{bum:R,scope:M,update:$,subTree:U,um:h}=_;R&&ns(R),M.stop(),$&&($.active=!1,Oe(U,_,p,T)),h&&je(h,p),je(()=>{_.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},$e=(_,p,T,R=!1,M=!1,$=0)=>{for(let U=$;U<_.length;U++)Oe(_[U],p,T,R,M)},vt=_=>_.shapeFlag&6?vt(_.component.subTree):_.shapeFlag&128?_.suspense.next():u(_.anchor||_.el);let Et=!1;const Ft=(_,p,T)=>{_==null?p._vnode&&Oe(p._vnode,null,null,!0):E(p._vnode||null,_,p,null,null,null,T),Et||(Et=!0,po(),go(),Et=!1),p._vnode=_},Je={p:E,um:Oe,m:ve,r:Mt,mt:nt,mc:A,pc:ie,pbc:K,n:vt,o:e};let $t,Ut;return{render:Ft,hydrate:$t,createApp:Fu(Ft,$t)}}function Nr({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 Zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Yu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yo(e,t,n=!1){const s=e.children,i=t.children;if(z(s)&&z(i))for(let r=0;r<s.length;r++){const o=s[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=St(i[r]),a.el=o.el),n||Yo(o,a)),a.type===Mn&&(a.el=o.el)}}function Bu(e){const t=e.slice(),n=[0];let s,i,r,o,a;const l=e.length;for(s=0;s<l;s++){const f=e[s];if(f!==0){if(i=n[n.length-1],e[i]<f){t[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,e[n[a]]<f?r=a+1:o=a;f<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function Bo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bo(t)}const Xu=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),Mn=Symbol.for("v-txt"),Jt=Symbol.for("v-cmt"),Ar=Symbol.for("v-stc"),Dn=[];let Qe=null;function q(e=!1){Dn.push(Qe=e?null:[])}function Zu(){Dn.pop(),Qe=Dn[Dn.length-1]||null}let Fn=1;function Xo(e){Fn+=e}function Zo(e){return e.dynamicChildren=Fn>0?Qe||un:null,Zu(),Fn>0&&Qe&&Qe.push(e),e}function re(e,t,n,s,i,r){return Zo(ae(e,t,n,s,i,r,!0))}function mn(e,t,n,s,i){return Zo(Ne(e,t,n,s,i,!0))}function Pr(e){return e?e.__v_isVNode===!0:!1}function $n(e,t){return e.type===t.type&&e.key===t.key}const Jo=({key:e})=>e??null,Ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||X(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function ae(e,t=null,n=null,s=0,i=null,r=e===Ie?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jo(t),ref:t&&Ts(t),scopeId:yo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ce};return a?(Rr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),Fn>0&&!o&&Qe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Qe.push(l),l}const Ne=Ju;function Ju(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===hu)&&(e=Jt),Pr(e)){const a=pn(e,t,!0);return n&&Rr(a,n),Fn>0&&!r&&Qe&&(a.shapeFlag&6?Qe[Qe.indexOf(e)]=a:Qe.push(a)),a.patchFlag|=-2,a}if(uf(e)&&(e=e.__vccOpts),t){t=qu(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=rs(a)),ge(l)&&(ro(l)&&!z(l)&&(l=Ee({},l)),t.style=ss(l))}const o=ye(e)?1:pu(e)?128:Xu(e)?64:ge(e)?4:X(e)?2:0;return ae(e,t,n,s,i,o,r,!0)}function qu(e){return e?ro(e)||Fo(e)?Ee({},e):e:null}function pn(e,t,n=!1,s=!1){const{props:i,ref:r,patchFlag:o,children:a,transition:l}=e,f=t?Qu(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Jo(f),ref:t&&t.ref?n&&r?z(r)?r.concat(Ts(t)):[r,Ts(t)]:Ts(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?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&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&(c.transition=l.clone(c)),c}function qt(e=" ",t=0){return Ne(Mn,null,e,t)}function Ae(e="",t=!1){return t?(q(),mn(Jt,null,e)):Ne(Jt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ne(Jt):z(e)?Ne(Ie,null,e.slice()):typeof e=="object"?St(e):Ne(Mn,null,String(e))}function St(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Rr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Rr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Fo(t)?t._ctx=Ce:i===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[qt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qu(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=rs([t.class,s.class]));else if(i==="style")t.style=ss([t.style,s.style]);else if(qn(i)){const r=t[i],o=s[i];o&&r!==o&&!(z(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=s[i])}return t}function ot(e,t,n,s=null){qe(e,t,7,[n,s])}const ef=Ro();let tf=0;function nf(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||ef,r={uid:tf++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Uo(s,i),emitsOptions:bo(s,i),emit:null,emitted:null,propsDefaults:he,inheritAttrs:s.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=iu.bind(null,r),e.ce&&e.ce(r),r}let Te=null;const Un=()=>Te||Ce;let Ls,Mr;{const e=Ai(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),Mr=t("__VUE_SSR_SETTERS__",n=>Os=n)}const jn=e=>{const t=Te;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},qo=()=>{Te&&Te.scope.off(),Ls(null)};function Qo(e){return e.vnode.shapeFlag&4}let Os=!1;function sf(e,t=!1){t&&Mr(t);const{props:n,children:s}=e.vnode,i=Qo(e);ju(e,n,i,t),Ku(e,s);const r=i?rf(e,t):void 0;return t&&Mr(!1),r}function rf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Cu);const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?af(e):null,r=jn(e);mt();const o=_t(s,e,0,[e.props,i]);if(pt(),r(),Oi(o)){if(o.then(qo,qo),t)return o.then(a=>{ea(e,a,t)}).catch(a=>{_s(a,e,0)});e.asyncDep=o}else ea(e,o,t)}else na(e,t)}function ea(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=co(t)),na(e,n)}let ta;function na(e,t,n){const s=e.type;if(!e.render){if(!t&&ta&&!s.render){const i=s.template||Lr(e).template;if(i){const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,f=Ee(Ee({isCustomElement:r,delimiters:a},o),l);s.render=ta(i,f)}}e.render=s.render||Xe}{const i=jn(e);mt();try{Nu(e)}finally{pt(),i()}}}const of={get(e,t){return Ue(e,"get",""),e[t]}};function af(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,of),slots:e.slots,emit:e.emit,expose:t}}function Ss(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(co(gr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pn)return Pn[n](e)},has(t,n){return n in t||n in Pn}}))}const lf=/(?:^|[-_])(\w)/g,cf=e=>e.replace(lf,t=>t.toUpperCase()).replace(/[-_]/g,"");function sa(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function ra(e,t,n=!1){let s=sa(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e&&e.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};s=i(e.components||e.parent.type.components)||i(e.appContext.components)}return s?cf(s):n?"App":"Anonymous"}function uf(e){return X(e)&&"__vccOpts"in e}const De=(e,t)=>Vc(e,t,Os);function ia(e,t,n){const s=arguments.length;return s===2?ge(t)&&!z(t)?Pr(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Pr(n)&&(n=[n]),Ne(e,t,n))}const ff="3.4.27";/**
17
17
  * @vue/runtime-dom v3.4.27
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/const df="http://www.w3.org/2000/svg",hf="http://www.w3.org/1998/Math/MathML",St=typeof document<"u"?document:null,oa=St&&St.createElement("template"),mf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?St.createElementNS(df,e):t==="mathml"?St.createElementNS(hf,e):St.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>St.createTextNode(e),createComment:e=>St.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>St.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{oa.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const a=oa.content;if(s==="svg"||s==="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]}},pf=Symbol("_vtc");function gf(e,t,n){const s=e[pf];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const aa=Symbol("_vod"),_f=Symbol("_vsh"),bf=Symbol(""),yf=/(^|;)\s*display\s*:/;function kf(e,t,n){const s=e.style,i=ye(n);let r=!1;if(n&&!i){if(t)if(ye(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Ss(s,a,"")}else for(const o in t)n[o]==null&&Ss(s,o,"");for(const o in n)o==="display"&&(r=!0),Ss(s,o,n[o])}else if(i){if(t!==n){const o=s[bf];o&&(n+=";"+o),s.cssText=n,r=yf.test(n)}}else t&&e.removeAttribute("style");aa in e&&(e[aa]=r?s.display:"",e[_f]&&(s.display="none"))}const la=/\s*!important$/;function Ss(e,t,n){if(z(n))n.forEach(s=>Ss(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=wf(e,t);la.test(n)?e.setProperty(Wt(s),n.replace(la,""),"important"):e[s]=n}}const ca=["Webkit","Moz","ms"],Dr={};function wf(e,t){const n=Dr[t];if(n)return n;let s=st(t);if(s!=="filter"&&s in e)return Dr[t]=s;s=ts(s);for(let i=0;i<ca.length;i++){const r=ca[i]+s;if(r in e)return Dr[t]=r}return t}const ua="http://www.w3.org/1999/xlink";function vf(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ua,t.slice(6,t.length)):e.setAttributeNS(ua,t,n);else{const r=kc(t);n==null||r&&!Ai(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Ef(e,t,n,s,i,r,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,i,r),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const f=a==="OPTION"?e.getAttribute("value")||"":e.value,c=n??"";(f!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Ai(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function gn(e,t,n,s){e.addEventListener(t,n,s)}function If(e,t,n,s){e.removeEventListener(t,n,s)}const fa=Symbol("_vei");function Tf(e,t,n,s,i=null){const r=e[fa]||(e[fa]={}),o=r[t];if(s&&o)o.value=s;else{const[a,l]=Lf(t);if(s){const f=r[t]=Sf(s,i);gn(e,a,f,l)}else o&&(If(e,a,o,l),r[t]=void 0)}}const da=/(?:Once|Passive|Capture)$/;function Lf(e){let t;if(da.test(e)){t={};let s;for(;s=e.match(da);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wt(e.slice(2)),t]}let Fr=0;const Of=Promise.resolve(),xf=()=>Fr||(Of.then(()=>Fr=0),Fr=Date.now());function Sf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qe(Cf(s,n.value),t,5,[s])};return n.value=e,n.attached=xf(),n}function Cf(e,t){if(z(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const ha=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nf=(e,t,n,s,i,r,o,a,l)=>{const f=i==="svg";t==="class"?gf(e,s,f):t==="style"?kf(e,n,s):qn(t)?nr(t)||Tf(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Pf(e,t,s,f))?Ef(e,t,s,r,o,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),vf(e,t,s,f))};function Pf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ha(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ha(t)&&ye(n)?!1:t in e}const ma=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?n=>ns(t,n):t};function Af(e){e.target.composing=!0}function pa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $r=Symbol("_assign"),Rf={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[$r]=ma(i);const r=s||i.props&&i.props.type==="number";gn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=or(a)),e[$r](a)}),n&&gn(e,"change",()=>{e.value=e.value.trim()}),t||(gn(e,"compositionstart",Af),gn(e,"compositionend",pa),gn(e,"change",pa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},r){if(e[$r]=ma(r),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?or(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},Mf=["ctrl","shift","alt","meta"],Df={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)=>Mf.some(n=>e[`${n}Key`]&&!t.includes(n))},Ff=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...r)=>{for(let o=0;o<t.length;o++){const a=Df[t[o]];if(a&&a(i,t))return}return e(i,...r)})},$f={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ga=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const r=Wt(i.key);if(t.some(o=>o===r||$f[o]===r))return e(i)})},Uf=Ee({patchProp:Nf},mf);let _a;function jf(){return _a||(_a=zu(Uf))}const Wf=(...e)=>{const t=jf().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=Vf(s);if(!i)return;const r=t._component;!X(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,Hf(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Hf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Vf(e){return ye(e)?document.querySelector(e):e}var Kf=!1;/*!
20
+ **/const df="http://www.w3.org/2000/svg",hf="http://www.w3.org/1998/Math/MathML",xt=typeof document<"u"?document:null,oa=xt&&xt.createElement("template"),mf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?xt.createElementNS(df,e):t==="mathml"?xt.createElementNS(hf,e):xt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{oa.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const a=oa.content;if(s==="svg"||s==="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]}},pf=Symbol("_vtc");function gf(e,t,n){const s=e[pf];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const aa=Symbol("_vod"),_f=Symbol("_vsh"),bf=Symbol(""),yf=/(^|;)\s*display\s*:/;function kf(e,t,n){const s=e.style,i=ye(n);let r=!1;if(n&&!i){if(t)if(ye(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&xs(s,a,"")}else for(const o in t)n[o]==null&&xs(s,o,"");for(const o in n)o==="display"&&(r=!0),xs(s,o,n[o])}else if(i){if(t!==n){const o=s[bf];o&&(n+=";"+o),s.cssText=n,r=yf.test(n)}}else t&&e.removeAttribute("style");aa in e&&(e[aa]=r?s.display:"",e[_f]&&(s.display="none"))}const la=/\s*!important$/;function xs(e,t,n){if(z(n))n.forEach(s=>xs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=wf(e,t);la.test(n)?e.setProperty(Wt(s),n.replace(la,""),"important"):e[s]=n}}const ca=["Webkit","Moz","ms"],Dr={};function wf(e,t){const n=Dr[t];if(n)return n;let s=st(t);if(s!=="filter"&&s in e)return Dr[t]=s;s=ts(s);for(let i=0;i<ca.length;i++){const r=ca[i]+s;if(r in e)return Dr[t]=r}return t}const ua="http://www.w3.org/1999/xlink";function vf(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ua,t.slice(6,t.length)):e.setAttributeNS(ua,t,n);else{const r=kc(t);n==null||r&&!Pi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Ef(e,t,n,s,i,r,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,i,r),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const f=a==="OPTION"?e.getAttribute("value")||"":e.value,c=n??"";(f!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Pi(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function gn(e,t,n,s){e.addEventListener(t,n,s)}function If(e,t,n,s){e.removeEventListener(t,n,s)}const fa=Symbol("_vei");function Tf(e,t,n,s,i=null){const r=e[fa]||(e[fa]={}),o=r[t];if(s&&o)o.value=s;else{const[a,l]=Lf(t);if(s){const f=r[t]=xf(s,i);gn(e,a,f,l)}else o&&(If(e,a,o,l),r[t]=void 0)}}const da=/(?:Once|Passive|Capture)$/;function Lf(e){let t;if(da.test(e)){t={};let s;for(;s=e.match(da);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wt(e.slice(2)),t]}let Fr=0;const Of=Promise.resolve(),Sf=()=>Fr||(Of.then(()=>Fr=0),Fr=Date.now());function xf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qe(Cf(s,n.value),t,5,[s])};return n.value=e,n.attached=Sf(),n}function Cf(e,t){if(z(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const ha=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nf=(e,t,n,s,i,r,o,a,l)=>{const f=i==="svg";t==="class"?gf(e,s,f):t==="style"?kf(e,n,s):qn(t)?nr(t)||Tf(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Af(e,t,s,f))?Ef(e,t,s,r,o,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),vf(e,t,s,f))};function Af(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ha(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ha(t)&&ye(n)?!1:t in e}const ma=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?n=>ns(t,n):t};function Pf(e){e.target.composing=!0}function pa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $r=Symbol("_assign"),Rf={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[$r]=ma(i);const r=s||i.props&&i.props.type==="number";gn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=or(a)),e[$r](a)}),n&&gn(e,"change",()=>{e.value=e.value.trim()}),t||(gn(e,"compositionstart",Pf),gn(e,"compositionend",pa),gn(e,"change",pa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},r){if(e[$r]=ma(r),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?or(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},Mf=["ctrl","shift","alt","meta"],Df={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)=>Mf.some(n=>e[`${n}Key`]&&!t.includes(n))},Ff=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...r)=>{for(let o=0;o<t.length;o++){const a=Df[t[o]];if(a&&a(i,t))return}return e(i,...r)})},$f={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ga=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const r=Wt(i.key);if(t.some(o=>o===r||$f[o]===r))return e(i)})},Uf=Ee({patchProp:Nf},mf);let _a;function jf(){return _a||(_a=zu(Uf))}const Wf=(...e)=>{const t=jf().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=Kf(s);if(!i)return;const r=t._component;!X(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,Hf(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Hf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Kf(e){return ye(e)?document.querySelector(e):e}var Vf=!1;/*!
21
21
  * pinia v2.1.7
22
22
  * (c) 2023 Eduardo San Martin Morote
23
23
  * @license MIT
24
- */let ba;const Cs=e=>ba=e,ya=Symbol();function Ur(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Wn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Wn||(Wn={}));function zf(){const e=lr(!0),t=e.run(()=>se({}));let n=[],s=[];const i=gr({install(r){Cs(i),i._a=r,r.provide(ya,i),r.config.globalProperties.$pinia=i,s.forEach(o=>n.push(o)),s=[]},use(r){return!this._a&&!Kf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const ka=()=>{};function wa(e,t,n,s=ka){e.push(t);const i=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Di()&&vc(i),i}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}const Yf=e=>e();function jr(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],i=e[n];Ur(i)&&Ur(s)&&e.hasOwnProperty(n)&&!be(s)&&!Kt(s)?e[n]=jr(i,s):e[n]=s}return e}const Gf=Symbol();function Bf(e){return!Ur(e)||!e.hasOwnProperty(Gf)}const{assign:Ct}=Object;function Xf(e){return!!(be(e)&&e.effect)}function Zf(e,t,n,s){const{state:i,actions:r,getters:o}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=i?i():{});const c=Gc(n.state.value[e]);return Ct(c,r,Object.keys(o||{}).reduce((d,u)=>(d[u]=gr(De(()=>{Cs(n);const g=n._s.get(e);return o[u].call(g,g)})),d),{}))}return l=va(e,f,t,n,s,!0),l}function va(e,t,n={},s,i,r){let o;const a=Ct({actions:{}},n),l={deep:!0};let f,c,d=[],u=[],g;const w=s.state.value[e];!r&&!w&&(s.state.value[e]={}),se({});let E;function I(P){let A;f=c=!1,typeof P=="function"?(P(s.state.value[e]),A={type:Wn.patchFunction,storeId:e,events:g}):(jr(s.state.value[e],P),A={type:Wn.patchObject,payload:P,storeId:e,events:g});const V=E=Symbol();ho().then(()=>{E===V&&(f=!0)}),c=!0,_n(d,A,s.state.value[e])}const x=r?function(){const{state:A}=n,V=A?A():{};this.$patch(ne=>{Ct(ne,V)})}:ka;function N(){o.stop(),d=[],u=[],s._s.delete(e)}function b(P,A){return function(){Cs(s);const V=Array.from(arguments),ne=[],Y=[];function pe(J){ne.push(J)}function nt(J){Y.push(J)}_n(u,{args:V,name:P,store:O,after:pe,onError:nt});let He;try{He=A.apply(this&&this.$id===e?this:O,V)}catch(J){throw _n(Y,J),J}return He instanceof Promise?He.then(J=>(_n(ne,J),J)).catch(J=>(_n(Y,J),Promise.reject(J))):(_n(ne,He),He)}}const y={_p:s,$id:e,$onAction:wa.bind(null,u),$patch:I,$reset:x,$subscribe(P,A={}){const V=wa(d,P,A.detached,()=>ne()),ne=o.run(()=>Yt(()=>s.state.value[e],Y=>{(A.flush==="sync"?c:f)&&P({storeId:e,type:Wn.direct,events:g},Y)},Ct({},l,A)));return V},$dispose:N},O=hs(y);s._s.set(e,O);const D=(s._a&&s._a.runWithContext||Yf)(()=>s._e.run(()=>(o=lr()).run(t)));for(const P in D){const A=D[P];if(be(A)&&!Xf(A)||Kt(A))r||(w&&Bf(A)&&(be(A)?A.value=w[P]:jr(A,w[P])),s.state.value[e][P]=A);else if(typeof A=="function"){const V=b(P,A);D[P]=V,a.actions[P]=A}}return Ct(O,D),Ct(ee(O),D),Object.defineProperty(O,"$state",{get:()=>s.state.value[e],set:P=>{I(A=>{Ct(A,P)})}}),s._p.forEach(P=>{Ct(O,o.run(()=>P({store:O,app:s._a,pinia:s,options:a})))}),w&&r&&n.hydrate&&n.hydrate(O.$state,w),f=!0,c=!0,O}function Jf(e,t,n){let s,i;const r=typeof t=="function";s=e,i=r?n:t;function o(a,l){const f=Uu();return a=a||(f?Ke(ya,null):null),a&&Cs(a),a=ba,a._s.has(s)||(r?va(s,t,i,a):Zf(s,i,a)),a._s.get(s)}return o.$id=s,o}const Ea=Symbol("$auth0");function at(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}typeof SuppressedError=="function"&&SuppressedError;var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hr(e,t){return e(t={exports:{}},t.exports),t.exports}var en=Hr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var i=this;this.locked=new Map,this.addToLocked=function(r,o){var a=i.locked.get(r);a===void 0?o===void 0?i.locked.set(r,[]):i.locked.set(r,[o]):o!==void 0&&(a.unshift(o),i.locked.set(r,a))},this.isLocked=function(r){return i.locked.has(r)},this.lock=function(r){return new Promise(function(o,a){i.isLocked(r)?i.addToLocked(r,o):(i.addToLocked(r),o())})},this.unlock=function(r){var o=i.locked.get(r);if(o!==void 0&&o.length!==0){var a=o.pop();i.locked.set(r,o),a!==void 0&&setTimeout(a,0)}else i.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});Wr(en);var qf=Wr(Hr(function(e,t){var n=Qt&&Qt.__awaiter||function(c,d,u,g){return new(u||(u=Promise))(function(w,E){function I(b){try{N(g.next(b))}catch(y){E(y)}}function x(b){try{N(g.throw(b))}catch(y){E(y)}}function N(b){b.done?w(b.value):new u(function(y){y(b.value)}).then(I,x)}N((g=g.apply(c,d||[])).next())})},s=Qt&&Qt.__generator||function(c,d){var u,g,w,E,I={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return E={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function x(N){return function(b){return function(y){if(u)throw new TypeError("Generator is already executing.");for(;I;)try{if(u=1,g&&(w=2&y[0]?g.return:y[0]?g.throw||((w=g.return)&&w.call(g),0):g.next)&&!(w=w.call(g,y[1])).done)return w;switch(g=0,w&&(y=[2&y[0],w.value]),y[0]){case 0:case 1:w=y;break;case 4:return I.label++,{value:y[1],done:!1};case 5:I.label++,g=y[1],y=[0];continue;case 7:y=I.ops.pop(),I.trys.pop();continue;default:if(!((w=(w=I.trys).length>0&&w[w.length-1])||y[0]!==6&&y[0]!==2)){I=0;continue}if(y[0]===3&&(!w||y[1]>w[0]&&y[1]<w[3])){I.label=y[1];break}if(y[0]===6&&I.label<w[1]){I.label=w[1],w=y;break}if(w&&I.label<w[2]){I.label=w[2],I.ops.push(y);break}w[2]&&I.ops.pop(),I.trys.pop();continue}y=d.call(c,I)}catch(O){y=[6,O],g=0}finally{u=w=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([N,b])}}},i=Qt;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",o={key:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},getItem:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},clear:function(){return n(i,void 0,void 0,function(){return s(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},setItem:function(c,d){return n(i,void 0,void 0,function(){return s(this,function(u){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,d){return window.localStorage.setItem(c,d)}};function a(c){return new Promise(function(d){return setTimeout(d,c)})}function l(c){for(var d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",u="",g=0;g<c;g++)u+=d[Math.floor(Math.random()*d.length)];return u}var f=function(){function c(d){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=d,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(d,u){return u===void 0&&(u=5e3),n(this,void 0,void 0,function(){var g,w,E,I,x,N,b;return s(this,function(y){switch(y.label){case 0:g=Date.now()+l(4),w=Date.now()+u,E=r+"-"+d,I=this.storageHandler===void 0?o:this.storageHandler,y.label=1;case 1:return Date.now()<w?[4,a(30)]:[3,8];case 2:return y.sent(),I.getItemSync(E)!==null?[3,5]:(x=this.id+"-"+d+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return y.sent(),I.setItemSync(E,JSON.stringify({id:this.id,iat:g,timeoutKey:x,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return y.sent(),(N=I.getItemSync(E))!==null&&(b=JSON.parse(N)).id===this.id&&b.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(E,g),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(w)];case 6:y.sent(),y.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(d,u){return n(this,void 0,void 0,function(){var g=this;return s(this,function(w){return setTimeout(function(){return n(g,void 0,void 0,function(){var E,I,x;return s(this,function(N){switch(N.label){case 0:return[4,en.default().lock(u)];case 1:return N.sent(),this.acquiredIatSet.has(u)?(E=this.storageHandler===void 0?o:this.storageHandler,(I=E.getItemSync(d))===null?(en.default().unlock(u),[2]):((x=JSON.parse(I)).timeRefreshed=Date.now(),E.setItemSync(d,JSON.stringify(x)),en.default().unlock(u),this.refreshLockWhileAcquired(d,u),[2])):(en.default().unlock(u),[2])}})})},1e3),[2]})})},c.prototype.waitForSomethingToChange=function(d){return n(this,void 0,void 0,function(){return s(this,function(u){switch(u.label){case 0:return[4,new Promise(function(g){var w=!1,E=Date.now(),I=!1;function x(){if(I||(window.removeEventListener("storage",x),c.removeFromWaiting(x),clearTimeout(N),I=!0),!w){w=!0;var b=50-(Date.now()-E);b>0?setTimeout(g,b):g(null)}}window.addEventListener("storage",x),c.addToWaiting(x);var N=setTimeout(x,Math.max(0,d-Date.now()))})];case 1:return u.sent(),[2]}})})},c.addToWaiting=function(d){this.removeFromWaiting(d),c.waiters!==void 0&&c.waiters.push(d)},c.removeFromWaiting=function(d){c.waiters!==void 0&&(c.waiters=c.waiters.filter(function(u){return u!==d}))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach(function(d){return d()})},c.prototype.releaseLock=function(d){return n(this,void 0,void 0,function(){return s(this,function(u){switch(u.label){case 0:return[4,this.releaseLock__private__(d)];case 1:return[2,u.sent()]}})})},c.prototype.releaseLock__private__=function(d){return n(this,void 0,void 0,function(){var u,g,w,E;return s(this,function(I){switch(I.label){case 0:return u=this.storageHandler===void 0?o:this.storageHandler,g=r+"-"+d,(w=u.getItemSync(g))===null?[2]:(E=JSON.parse(w)).id!==this.id?[3,2]:[4,en.default().lock(E.iat)];case 1:I.sent(),this.acquiredIatSet.delete(E.iat),u.removeItemSync(g),en.default().unlock(E.iat),c.notifyWaiters(),I.label=2;case 2:return[2]}})})},c.lockCorrector=function(d){for(var u=Date.now()-5e3,g=d,w=[],E=0;;){var I=g.keySync(E);if(I===null)break;w.push(I),E++}for(var x=!1,N=0;N<w.length;N++){var b=w[N];if(b.includes(r)){var y=g.getItemSync(b);if(y!==null){var O=JSON.parse(y);(O.timeRefreshed===void 0&&O.timeAcquired<u||O.timeRefreshed!==void 0&&O.timeRefreshed<u)&&(g.removeItemSync(b),x=!0)}}}x&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=f}));const Qf={timeoutInSeconds:60},Ia={name:"auth0-spa-js",version:"2.1.3"},Ta=()=>Date.now();class Ae extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ae.prototype)}static fromPayload({error:t,error_description:n}){return new Ae(t,n)}}class Vr extends Ae{constructor(t,n,s,i=null){super(t,n),this.state=s,this.appState=i,Object.setPrototypeOf(this,Vr.prototype)}}class Hn extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Hn.prototype)}}class Kr extends Hn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Kr.prototype)}}class zr extends Ae{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,zr.prototype)}}class Yr extends Ae{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,Yr.prototype)}}class Ns extends Ae{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${La(t,["default"])}', scope: '${La(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ns.prototype)}}function La(e,t=[]){return e&&!t.includes(e)?e:""}const Ps=()=>window.crypto,Gr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Ps().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Oa=e=>btoa(e),Br=e=>{var{clientId:t}=e,n=at(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(i=>s[i]!==void 0).reduce((i,r)=>Object.assign(Object.assign({},i),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},xa=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),ed=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},td=async(e,t,n,s,i,r,o=1e4)=>i?(async(a,l,f,c,d,u,g)=>{return w={auth:{audience:l,scope:f},timeout:d,fetchUrl:a,fetchOptions:c,useFormData:g},E=u,new Promise(function(I,x){const N=new MessageChannel;N.port1.onmessage=function(b){b.data.error?x(new Error(b.data.error)):I(b.data),N.port1.close()},E.postMessage(w,[N.port2])});var w,E})(e,t,n,s,o,i,r):(async(a,l,f)=>{const c=new AbortController;let d;return l.signal=c.signal,Promise.race([ed(a,l),new Promise((u,g)=>{d=setTimeout(()=>{c.abort(),g(new Error("Timeout when executing 'fetch'"))},f)})]).finally(()=>{clearTimeout(d)})})(e,s,o);async function nd(e,t){var{baseUrl:n,timeout:s,audience:i,scope:r,auth0Client:o,useFormData:a}=e,l=at(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const f=a?Br(l):JSON.stringify(l);return await async function(c,d,u,g,w,E,I){let x,N=null;for(let P=0;P<3;P++)try{x=await td(c,u,g,w,E,I,d),N=null;break}catch(A){N=A}if(N)throw N;const b=x.json,{error:y,error_description:O}=b,L=at(b,["error","error_description"]),{ok:D}=x;if(!D){const P=O||`HTTP error. Unable to fetch ${c}`;throw y==="mfa_required"?new Yr(y,P,L.mfa_token):y==="missing_refresh_token"?new Ns(u,g):new Ae(y||"request_error",P)}return L}(`${n}/oauth/token`,s,i||"default",r,{method:"POST",body:f,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Ia))}},t,a)}const As=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class lt{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,i,r]=t.split("::");return new lt({clientId:s,scope:r,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:i}=t;return new lt({scope:n,audience:s,clientId:i})}}class sd{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class Sa{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class rd{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||Ta}async setIdToken(t,n,s){var i;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let i=await this.cache.get(t.toKey());if(!i){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(i=await this.cache.get(l))}if(!i)return;const r=await this.nowProvider(),o=Math.floor(r/1e3);return i.expiresAt-n<o?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):i.body}async set(t){var n;const s=new lt({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(i=>!t||i.includes(t)).reduce(async(i,r)=>{await i,await this.cache.remove(r)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new lt({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var i;const r=lt.fromKey(s),o=new Set(r.scope&&r.scope.split(" ")),a=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=r.scope&&a.reduce((f,c)=>f&&o.has(c),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class id{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Vn=e=>typeof e=="number",od=["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 tn=Hr(function(e,t){var n=Qt&&Qt.__assign||function(){return n=Object.assign||function(l){for(var f,c=1,d=arguments.length;c<d;c++)for(var u in f=arguments[c])Object.prototype.hasOwnProperty.call(f,u)&&(l[u]=f[u]);return l},n.apply(this,arguments)};function s(l,f){if(!f)return"";var c="; "+l;return f===!0?c:c+"="+f}function i(l,f,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(f).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*d.expires),d.expires=u}return s("Expires",d.expires?d.expires.toUTCString():"")+s("Domain",d.domain)+s("Path",d.path)+s("Secure",d.secure)+s("SameSite",d.sameSite)}(c)}function r(l){for(var f={},c=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,u=0;u<c.length;u++){var g=c[u].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{f[g[0].replace(d,decodeURIComponent)]=w.replace(d,decodeURIComponent)}catch{}}return f}function o(){return r(document.cookie)}function a(l,f,c){document.cookie=i(l,f,n({path:"/"},c))}t.__esModule=!0,t.encode=i,t.parse=r,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,f){a(l,"",n(n({},f),{expires:-1}))}});Wr(tn),tn.encode,tn.parse,tn.getAll;var ad=tn.get,Ca=tn.set,Na=tn.remove;const bn={get(e){const t=ad(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ca(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Na(e,n)}},ld={get:e=>bn.get(e)||bn.get(`_legacy_${e}`),save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ca(`_legacy_${e}`,JSON.stringify(t),s),bn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Na(e,n),bn.remove(e,t),bn.remove(`_legacy_${e}`,t)}},cd={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 Xr,ud=function(e){return Xr=Xr||function(t,n,s){var i=function(l,f){var c=atob(l);return c}(t),r=i.indexOf(`
25
- `,10)+1,o=i.substring(r)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(Xr,e)};const Zr={};class fd{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const s=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);s.add(t),await this.cache.set(this.manifestKey,{keys:[...s]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const s=new Set(n.keys);return s.delete(t),s.size>0?await this.cache.set(this.manifestKey,{keys:[...s]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const dd={memory:()=>new Sa().enclosedCache,localstorage:()=>new sd},Pa=e=>dd[e],Aa=e=>{const{openUrl:t,onRedirect:n}=e,s=at(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Jr=new qf;class hd{constructor(t){let n,s;if(this.userCache=new Sa().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Jr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!Ps())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Ps().subtle===void 0)throw new Error(`
24
+ */let ba;const Cs=e=>ba=e,ya=Symbol();function Ur(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Wn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Wn||(Wn={}));function zf(){const e=lr(!0),t=e.run(()=>se({}));let n=[],s=[];const i=gr({install(r){Cs(i),i._a=r,r.provide(ya,i),r.config.globalProperties.$pinia=i,s.forEach(o=>n.push(o)),s=[]},use(r){return!this._a&&!Vf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const ka=()=>{};function wa(e,t,n,s=ka){e.push(t);const i=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Di()&&vc(i),i}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}const Gf=e=>e();function jr(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],i=e[n];Ur(i)&&Ur(s)&&e.hasOwnProperty(n)&&!be(s)&&!Vt(s)?e[n]=jr(i,s):e[n]=s}return e}const Yf=Symbol();function Bf(e){return!Ur(e)||!e.hasOwnProperty(Yf)}const{assign:Ct}=Object;function Xf(e){return!!(be(e)&&e.effect)}function Zf(e,t,n,s){const{state:i,actions:r,getters:o}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=i?i():{});const c=Yc(n.state.value[e]);return Ct(c,r,Object.keys(o||{}).reduce((d,u)=>(d[u]=gr(De(()=>{Cs(n);const g=n._s.get(e);return o[u].call(g,g)})),d),{}))}return l=va(e,f,t,n,s,!0),l}function va(e,t,n={},s,i,r){let o;const a=Ct({actions:{}},n),l={deep:!0};let f,c,d=[],u=[],g;const w=s.state.value[e];!r&&!w&&(s.state.value[e]={}),se({});let E;function I(A){let P;f=c=!1,typeof A=="function"?(A(s.state.value[e]),P={type:Wn.patchFunction,storeId:e,events:g}):(jr(s.state.value[e],A),P={type:Wn.patchObject,payload:A,storeId:e,events:g});const K=E=Symbol();ho().then(()=>{E===K&&(f=!0)}),c=!0,_n(d,P,s.state.value[e])}const S=r?function(){const{state:P}=n,K=P?P():{};this.$patch(ne=>{Ct(ne,K)})}:ka;function N(){o.stop(),d=[],u=[],s._s.delete(e)}function b(A,P){return function(){Cs(s);const K=Array.from(arguments),ne=[],G=[];function pe(J){ne.push(J)}function nt(J){G.push(J)}_n(u,{args:K,name:A,store:O,after:pe,onError:nt});let He;try{He=P.apply(this&&this.$id===e?this:O,K)}catch(J){throw _n(G,J),J}return He instanceof Promise?He.then(J=>(_n(ne,J),J)).catch(J=>(_n(G,J),Promise.reject(J))):(_n(ne,He),He)}}const y={_p:s,$id:e,$onAction:wa.bind(null,u),$patch:I,$reset:S,$subscribe(A,P={}){const K=wa(d,A,P.detached,()=>ne()),ne=o.run(()=>Gt(()=>s.state.value[e],G=>{(P.flush==="sync"?c:f)&&A({storeId:e,type:Wn.direct,events:g},G)},Ct({},l,P)));return K},$dispose:N},O=hs(y);s._s.set(e,O);const D=(s._a&&s._a.runWithContext||Gf)(()=>s._e.run(()=>(o=lr()).run(t)));for(const A in D){const P=D[A];if(be(P)&&!Xf(P)||Vt(P))r||(w&&Bf(P)&&(be(P)?P.value=w[A]:jr(P,w[A])),s.state.value[e][A]=P);else if(typeof P=="function"){const K=b(A,P);D[A]=K,a.actions[A]=P}}return Ct(O,D),Ct(ee(O),D),Object.defineProperty(O,"$state",{get:()=>s.state.value[e],set:A=>{I(P=>{Ct(P,A)})}}),s._p.forEach(A=>{Ct(O,o.run(()=>A({store:O,app:s._a,pinia:s,options:a})))}),w&&r&&n.hydrate&&n.hydrate(O.$state,w),f=!0,c=!0,O}function Jf(e,t,n){let s,i;const r=typeof t=="function";s=e,i=r?n:t;function o(a,l){const f=Uu();return a=a||(f?Ve(ya,null):null),a&&Cs(a),a=ba,a._s.has(s)||(r?va(s,t,i,a):Zf(s,i,a)),a._s.get(s)}return o.$id=s,o}const Ea=Symbol("$auth0");function at(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}typeof SuppressedError=="function"&&SuppressedError;var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hr(e,t){return e(t={exports:{}},t.exports),t.exports}var en=Hr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var i=this;this.locked=new Map,this.addToLocked=function(r,o){var a=i.locked.get(r);a===void 0?o===void 0?i.locked.set(r,[]):i.locked.set(r,[o]):o!==void 0&&(a.unshift(o),i.locked.set(r,a))},this.isLocked=function(r){return i.locked.has(r)},this.lock=function(r){return new Promise(function(o,a){i.isLocked(r)?i.addToLocked(r,o):(i.addToLocked(r),o())})},this.unlock=function(r){var o=i.locked.get(r);if(o!==void 0&&o.length!==0){var a=o.pop();i.locked.set(r,o),a!==void 0&&setTimeout(a,0)}else i.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});Wr(en);var qf=Wr(Hr(function(e,t){var n=Qt&&Qt.__awaiter||function(c,d,u,g){return new(u||(u=Promise))(function(w,E){function I(b){try{N(g.next(b))}catch(y){E(y)}}function S(b){try{N(g.throw(b))}catch(y){E(y)}}function N(b){b.done?w(b.value):new u(function(y){y(b.value)}).then(I,S)}N((g=g.apply(c,d||[])).next())})},s=Qt&&Qt.__generator||function(c,d){var u,g,w,E,I={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return E={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(N){return function(b){return function(y){if(u)throw new TypeError("Generator is already executing.");for(;I;)try{if(u=1,g&&(w=2&y[0]?g.return:y[0]?g.throw||((w=g.return)&&w.call(g),0):g.next)&&!(w=w.call(g,y[1])).done)return w;switch(g=0,w&&(y=[2&y[0],w.value]),y[0]){case 0:case 1:w=y;break;case 4:return I.label++,{value:y[1],done:!1};case 5:I.label++,g=y[1],y=[0];continue;case 7:y=I.ops.pop(),I.trys.pop();continue;default:if(!((w=(w=I.trys).length>0&&w[w.length-1])||y[0]!==6&&y[0]!==2)){I=0;continue}if(y[0]===3&&(!w||y[1]>w[0]&&y[1]<w[3])){I.label=y[1];break}if(y[0]===6&&I.label<w[1]){I.label=w[1],w=y;break}if(w&&I.label<w[2]){I.label=w[2],I.ops.push(y);break}w[2]&&I.ops.pop(),I.trys.pop();continue}y=d.call(c,I)}catch(O){y=[6,O],g=0}finally{u=w=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([N,b])}}},i=Qt;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",o={key:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},getItem:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},clear:function(){return n(i,void 0,void 0,function(){return s(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},setItem:function(c,d){return n(i,void 0,void 0,function(){return s(this,function(u){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,d){return window.localStorage.setItem(c,d)}};function a(c){return new Promise(function(d){return setTimeout(d,c)})}function l(c){for(var d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",u="",g=0;g<c;g++)u+=d[Math.floor(Math.random()*d.length)];return u}var f=function(){function c(d){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=d,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(d,u){return u===void 0&&(u=5e3),n(this,void 0,void 0,function(){var g,w,E,I,S,N,b;return s(this,function(y){switch(y.label){case 0:g=Date.now()+l(4),w=Date.now()+u,E=r+"-"+d,I=this.storageHandler===void 0?o:this.storageHandler,y.label=1;case 1:return Date.now()<w?[4,a(30)]:[3,8];case 2:return y.sent(),I.getItemSync(E)!==null?[3,5]:(S=this.id+"-"+d+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return y.sent(),I.setItemSync(E,JSON.stringify({id:this.id,iat:g,timeoutKey:S,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return y.sent(),(N=I.getItemSync(E))!==null&&(b=JSON.parse(N)).id===this.id&&b.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(E,g),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(w)];case 6:y.sent(),y.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(d,u){return n(this,void 0,void 0,function(){var g=this;return s(this,function(w){return setTimeout(function(){return n(g,void 0,void 0,function(){var E,I,S;return s(this,function(N){switch(N.label){case 0:return[4,en.default().lock(u)];case 1:return N.sent(),this.acquiredIatSet.has(u)?(E=this.storageHandler===void 0?o:this.storageHandler,(I=E.getItemSync(d))===null?(en.default().unlock(u),[2]):((S=JSON.parse(I)).timeRefreshed=Date.now(),E.setItemSync(d,JSON.stringify(S)),en.default().unlock(u),this.refreshLockWhileAcquired(d,u),[2])):(en.default().unlock(u),[2])}})})},1e3),[2]})})},c.prototype.waitForSomethingToChange=function(d){return n(this,void 0,void 0,function(){return s(this,function(u){switch(u.label){case 0:return[4,new Promise(function(g){var w=!1,E=Date.now(),I=!1;function S(){if(I||(window.removeEventListener("storage",S),c.removeFromWaiting(S),clearTimeout(N),I=!0),!w){w=!0;var b=50-(Date.now()-E);b>0?setTimeout(g,b):g(null)}}window.addEventListener("storage",S),c.addToWaiting(S);var N=setTimeout(S,Math.max(0,d-Date.now()))})];case 1:return u.sent(),[2]}})})},c.addToWaiting=function(d){this.removeFromWaiting(d),c.waiters!==void 0&&c.waiters.push(d)},c.removeFromWaiting=function(d){c.waiters!==void 0&&(c.waiters=c.waiters.filter(function(u){return u!==d}))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach(function(d){return d()})},c.prototype.releaseLock=function(d){return n(this,void 0,void 0,function(){return s(this,function(u){switch(u.label){case 0:return[4,this.releaseLock__private__(d)];case 1:return[2,u.sent()]}})})},c.prototype.releaseLock__private__=function(d){return n(this,void 0,void 0,function(){var u,g,w,E;return s(this,function(I){switch(I.label){case 0:return u=this.storageHandler===void 0?o:this.storageHandler,g=r+"-"+d,(w=u.getItemSync(g))===null?[2]:(E=JSON.parse(w)).id!==this.id?[3,2]:[4,en.default().lock(E.iat)];case 1:I.sent(),this.acquiredIatSet.delete(E.iat),u.removeItemSync(g),en.default().unlock(E.iat),c.notifyWaiters(),I.label=2;case 2:return[2]}})})},c.lockCorrector=function(d){for(var u=Date.now()-5e3,g=d,w=[],E=0;;){var I=g.keySync(E);if(I===null)break;w.push(I),E++}for(var S=!1,N=0;N<w.length;N++){var b=w[N];if(b.includes(r)){var y=g.getItemSync(b);if(y!==null){var O=JSON.parse(y);(O.timeRefreshed===void 0&&O.timeAcquired<u||O.timeRefreshed!==void 0&&O.timeRefreshed<u)&&(g.removeItemSync(b),S=!0)}}}S&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=f}));const Qf={timeoutInSeconds:60},Ia={name:"auth0-spa-js",version:"2.1.3"},Ta=()=>Date.now();class Pe extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Pe.prototype)}static fromPayload({error:t,error_description:n}){return new Pe(t,n)}}class Kr extends Pe{constructor(t,n,s,i=null){super(t,n),this.state=s,this.appState=i,Object.setPrototypeOf(this,Kr.prototype)}}class Hn extends Pe{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Hn.prototype)}}class Vr extends Hn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Vr.prototype)}}class zr extends Pe{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,zr.prototype)}}class Gr extends Pe{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,Gr.prototype)}}class Ns extends Pe{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${La(t,["default"])}', scope: '${La(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ns.prototype)}}function La(e,t=[]){return e&&!t.includes(e)?e:""}const As=()=>window.crypto,Yr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(As().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Oa=e=>btoa(e),Br=e=>{var{clientId:t}=e,n=at(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(i=>s[i]!==void 0).reduce((i,r)=>Object.assign(Object.assign({},i),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Sa=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),ed=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},td=async(e,t,n,s,i,r,o=1e4)=>i?(async(a,l,f,c,d,u,g)=>{return w={auth:{audience:l,scope:f},timeout:d,fetchUrl:a,fetchOptions:c,useFormData:g},E=u,new Promise(function(I,S){const N=new MessageChannel;N.port1.onmessage=function(b){b.data.error?S(new Error(b.data.error)):I(b.data),N.port1.close()},E.postMessage(w,[N.port2])});var w,E})(e,t,n,s,o,i,r):(async(a,l,f)=>{const c=new AbortController;let d;return l.signal=c.signal,Promise.race([ed(a,l),new Promise((u,g)=>{d=setTimeout(()=>{c.abort(),g(new Error("Timeout when executing 'fetch'"))},f)})]).finally(()=>{clearTimeout(d)})})(e,s,o);async function nd(e,t){var{baseUrl:n,timeout:s,audience:i,scope:r,auth0Client:o,useFormData:a}=e,l=at(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const f=a?Br(l):JSON.stringify(l);return await async function(c,d,u,g,w,E,I){let S,N=null;for(let A=0;A<3;A++)try{S=await td(c,u,g,w,E,I,d),N=null;break}catch(P){N=P}if(N)throw N;const b=S.json,{error:y,error_description:O}=b,L=at(b,["error","error_description"]),{ok:D}=S;if(!D){const A=O||`HTTP error. Unable to fetch ${c}`;throw y==="mfa_required"?new Gr(y,A,L.mfa_token):y==="missing_refresh_token"?new Ns(u,g):new Pe(y||"request_error",A)}return L}(`${n}/oauth/token`,s,i||"default",r,{method:"POST",body:f,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Ia))}},t,a)}const Ps=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class lt{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,i,r]=t.split("::");return new lt({clientId:s,scope:r,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:i}=t;return new lt({scope:n,audience:s,clientId:i})}}class sd{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class xa{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class rd{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||Ta}async setIdToken(t,n,s){var i;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let i=await this.cache.get(t.toKey());if(!i){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(i=await this.cache.get(l))}if(!i)return;const r=await this.nowProvider(),o=Math.floor(r/1e3);return i.expiresAt-n<o?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):i.body}async set(t){var n;const s=new lt({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(i=>!t||i.includes(t)).reduce(async(i,r)=>{await i,await this.cache.remove(r)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new lt({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var i;const r=lt.fromKey(s),o=new Set(r.scope&&r.scope.split(" ")),a=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=r.scope&&a.reduce((f,c)=>f&&o.has(c),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class id{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Kn=e=>typeof e=="number",od=["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 tn=Hr(function(e,t){var n=Qt&&Qt.__assign||function(){return n=Object.assign||function(l){for(var f,c=1,d=arguments.length;c<d;c++)for(var u in f=arguments[c])Object.prototype.hasOwnProperty.call(f,u)&&(l[u]=f[u]);return l},n.apply(this,arguments)};function s(l,f){if(!f)return"";var c="; "+l;return f===!0?c:c+"="+f}function i(l,f,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(f).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*d.expires),d.expires=u}return s("Expires",d.expires?d.expires.toUTCString():"")+s("Domain",d.domain)+s("Path",d.path)+s("Secure",d.secure)+s("SameSite",d.sameSite)}(c)}function r(l){for(var f={},c=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,u=0;u<c.length;u++){var g=c[u].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{f[g[0].replace(d,decodeURIComponent)]=w.replace(d,decodeURIComponent)}catch{}}return f}function o(){return r(document.cookie)}function a(l,f,c){document.cookie=i(l,f,n({path:"/"},c))}t.__esModule=!0,t.encode=i,t.parse=r,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,f){a(l,"",n(n({},f),{expires:-1}))}});Wr(tn),tn.encode,tn.parse,tn.getAll;var ad=tn.get,Ca=tn.set,Na=tn.remove;const bn={get(e){const t=ad(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ca(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Na(e,n)}},ld={get:e=>bn.get(e)||bn.get(`_legacy_${e}`),save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ca(`_legacy_${e}`,JSON.stringify(t),s),bn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Na(e,n),bn.remove(e,t),bn.remove(`_legacy_${e}`,t)}},cd={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 Xr,ud=function(e){return Xr=Xr||function(t,n,s){var i=function(l,f){var c=atob(l);return c}(t),r=i.indexOf(`
25
+ `,10)+1,o=i.substring(r)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(Xr,e)};const Zr={};class fd{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const s=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);s.add(t),await this.cache.set(this.manifestKey,{keys:[...s]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const s=new Set(n.keys);return s.delete(t),s.size>0?await this.cache.set(this.manifestKey,{keys:[...s]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const dd={memory:()=>new xa().enclosedCache,localstorage:()=>new sd},Aa=e=>dd[e],Pa=e=>{const{openUrl:t,onRedirect:n}=e,s=at(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Jr=new qf;class hd{constructor(t){let n,s;if(this.userCache=new xa().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Jr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!As())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(As().subtle===void 0)throw new Error(`
26
26
  auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
27
- `)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)s=t.cache;else{if(n=t.cacheLocation||"memory",!Pa(n))throw new Error(`Invalid cache location "${n}"`);s=Pa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?bn:ld,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:cd;var r;this.scope=As("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new id(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Ta,this.cacheManager=new rd(s,s.allKeys?void 0:new fd(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((o,a)=>o?o.startsWith("https://")?o:`https://${o}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new ud)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ia)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Br(t)}`)}async _verifyIdToken(t,n,s){const i=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(d=>{const u=d.split("."),[g,w,E]=u;if(u.length!==3||!g||!w||!E)throw new Error("ID token could not be decoded");const I=JSON.parse(xa(w)),x={__raw:d},N={};return Object.keys(I).forEach(b=>{x[b]=I[b],od.includes(b)||(N[b]=I[b])}),{encoded:{header:g,payload:w,signature:E},header:JSON.parse(xa(g)),claims:x,user:N}})(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&&!Vn(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||!Vn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Vn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,f=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),f>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${f}) is after expiration time (${c})`);if(a.claims.nbf!=null&&Vn(a.claims.nbf)){const d=new Date(0);if(d.setUTCSeconds(a.claims.nbf-l),f<d)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${f}) is before ${d}`)}if(a.claims.auth_time!=null&&Vn(a.claims.auth_time)){const d=new Date(0);if(d.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),f>d)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${f}) is after last auth at ${d}`)}if(o.organization){const d=o.organization.trim();if(d.startsWith("org_")){const u=d;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(u!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${u}", found "${a.claims.org_id}"`)}else{const u=d.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(u!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${u}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:i});var r}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const i=Oa(Gr()),r=Oa(Gr()),o=Gr(),a=(c=>{const d=new Uint8Array(c);return(u=>{const g={"+":"-","/":"_","=":""};return u.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async c=>await Ps().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,d,u,g,w,E,I,x)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),u),{scope:As(d,u.scope),response_type:"code",response_mode:x||"query",state:g,nonce:w,redirect_uri:I||c.authorizationParams.redirect_uri,code_challenge:E,code_challenge_method:"S256"}))(this.options,this.scope,t,i,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),f=this._authorizeUrl(l);return{nonce:r,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:f}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${f},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const r=await(a=>new Promise((l,f)=>{let c;const d=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(d),clearTimeout(u),window.removeEventListener("message",c,!1),f(new zr(a.popup)))},1e3),u=setTimeout(()=>{clearInterval(d),f(new Kr(a.popup)),window.removeEventListener("message",c,!1)},1e3*(a.timeoutInSeconds||60));c=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(u),clearInterval(d),window.removeEventListener("message",c,!1),a.popup.close(),g.data.response.error)return f(Ae.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==r.state)throw new Ae("state_mismatch","Invalid state");const o=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organization:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const s=Aa(t),{openUrl:i,fragment:r,appState:o}=s,a=at(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=f,d=at(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:o}),l&&{organization:l}));const u=r?`${c}#${r}`:c;i?await i(u):window.location.assign(u)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:s,code:i,error:r,error_description:o}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const u=new URLSearchParams(d);return{state:u.get("state"),code:u.get("code")||void 0,error:u.get("error")||void 0,error_description:u.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ae("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new Vr(r,o||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ae("state_mismatch","Invalid state");const l=a.organization,f=a.nonce,c=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:i},c?{redirect_uri:c}:{}),{nonceIn:f,organization:l}),{appState:a.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((r,o)=>{let a=Zr[o];return a||(a=r().finally(()=>{delete Zr[o],a=null}),Zr[o]=a),a})(()=>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,s=at(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,r=3)=>{for(let o=0;o<r;o++)if(await i())return!0;return!1})(()=>Jr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Hn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:o,oauthTokenScope:a,expires_in:l}=i;return Object.assign(Object.assign({id_token:r,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Jr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Qf),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new lt({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,i=at(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Br(Object.assign({clientId:t.clientId},i))}`)+r}async logout(t={}){const n=Aa(t),{openUrl:s}=n,i=at(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const r=this._buildLogoutUrl(i);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:i,state:r,nonce:o,code_verifier:a,redirect_uri:l,scope:f,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ae("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,u=await((w,E,I=60)=>new Promise((x,N)=>{const b=window.document.createElement("iframe");b.setAttribute("width","0"),b.setAttribute("height","0"),b.style.display="none";const y=()=>{window.document.body.contains(b)&&(window.document.body.removeChild(b),window.removeEventListener("message",O,!1))};let O;const L=setTimeout(()=>{N(new Hn),y()},1e3*I);O=function(D){if(D.origin!=E||!D.data||D.data.type!=="authorization_response")return;const P=D.source;P&&P.close(),D.data.response.error?N(Ae.fromPayload(D.data.response)):x(D.data.response),clearTimeout(L),window.removeEventListener("message",O,!1),setTimeout(y,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(b),b.setAttribute("src",w)}))(i,this.domainUrl,d);if(r!==u.state)throw new Ae("state_mismatch","Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:u.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},g),{scope:f,oauthTokenScope:g.scope,audience:c})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new lt({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new Ns(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),i&&{timeout:i}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,i=at(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new lt({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const i=await this.cacheManager.get(new lt({scope:t,audience:n,clientId:s}),60);if(i&&i.access_token){const{access_token:r,oauthTokenScope:o,expires_in:a}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:i}=n||{},r=await nd(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(r.id_token,s,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(i||o.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:o})}}function Kn(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 nn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},md={isLoading:se(!1),isAuthenticated:se(!1),user:se(void 0),idTokenClaims:se(void 0),error:se(null),loginWithPopup:nn,loginWithRedirect:nn,getAccessTokenSilently:nn,getAccessTokenWithPopup:nn,logout:nn,checkSession:nn,handleRedirectCallback:nn},pd=se(md);class gd{constructor(t,n){var s,i;this.clientOptions=t,this.pluginOptions=n,this.isLoading=se(!0),this.isAuthenticated=se(!1),this.user=se({}),this.idTokenClaims=se(),this.error=se(null),s=this,i=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!i.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new hd(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(Ea,this),pd.value=this}async loginWithRedirect(t){return Kn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Kn(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 Kn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Kn(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,s,i;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((i=this.pluginOptions)===null||i===void 0?void 0:i.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(i){throw this.error.value=i,i}finally{n&&await this.__refreshState()}return s}}function Ra(e,t){return Kn(e),new gd(e,t)}function qr(){return Ke(Ea)}/*!
27
+ `)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)s=t.cache;else{if(n=t.cacheLocation||"memory",!Aa(n))throw new Error(`Invalid cache location "${n}"`);s=Aa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?bn:ld,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:cd;var r;this.scope=Ps("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new id(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Ta,this.cacheManager=new rd(s,s.allKeys?void 0:new fd(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((o,a)=>o?o.startsWith("https://")?o:`https://${o}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new ud)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ia)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Br(t)}`)}async _verifyIdToken(t,n,s){const i=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(d=>{const u=d.split("."),[g,w,E]=u;if(u.length!==3||!g||!w||!E)throw new Error("ID token could not be decoded");const I=JSON.parse(Sa(w)),S={__raw:d},N={};return Object.keys(I).forEach(b=>{S[b]=I[b],od.includes(b)||(N[b]=I[b])}),{encoded:{header:g,payload:w,signature:E},header:JSON.parse(Sa(g)),claims:S,user:N}})(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&&!Kn(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||!Kn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Kn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,f=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),f>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${f}) is after expiration time (${c})`);if(a.claims.nbf!=null&&Kn(a.claims.nbf)){const d=new Date(0);if(d.setUTCSeconds(a.claims.nbf-l),f<d)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${f}) is before ${d}`)}if(a.claims.auth_time!=null&&Kn(a.claims.auth_time)){const d=new Date(0);if(d.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),f>d)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${f}) is after last auth at ${d}`)}if(o.organization){const d=o.organization.trim();if(d.startsWith("org_")){const u=d;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(u!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${u}", found "${a.claims.org_id}"`)}else{const u=d.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(u!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${u}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:i});var r}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const i=Oa(Yr()),r=Oa(Yr()),o=Yr(),a=(c=>{const d=new Uint8Array(c);return(u=>{const g={"+":"-","/":"_","=":""};return u.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async c=>await As().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,d,u,g,w,E,I,S)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),u),{scope:Ps(d,u.scope),response_type:"code",response_mode:S||"query",state:g,nonce:w,redirect_uri:I||c.authorizationParams.redirect_uri,code_challenge:E,code_challenge_method:"S256"}))(this.options,this.scope,t,i,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),f=this._authorizeUrl(l);return{nonce:r,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:f}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${f},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const r=await(a=>new Promise((l,f)=>{let c;const d=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(d),clearTimeout(u),window.removeEventListener("message",c,!1),f(new zr(a.popup)))},1e3),u=setTimeout(()=>{clearInterval(d),f(new Vr(a.popup)),window.removeEventListener("message",c,!1)},1e3*(a.timeoutInSeconds||60));c=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(u),clearInterval(d),window.removeEventListener("message",c,!1),a.popup.close(),g.data.response.error)return f(Pe.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==r.state)throw new Pe("state_mismatch","Invalid state");const o=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organization:o})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const s=Pa(t),{openUrl:i,fragment:r,appState:o}=s,a=at(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=f,d=at(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:o}),l&&{organization:l}));const u=r?`${c}#${r}`:c;i?await i(u):window.location.assign(u)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:s,code:i,error:r,error_description:o}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const u=new URLSearchParams(d);return{state:u.get("state"),code:u.get("code")||void 0,error:u.get("error")||void 0,error_description:u.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Pe("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new Kr(r,o||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Pe("state_mismatch","Invalid state");const l=a.organization,f=a.nonce,c=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:i},c?{redirect_uri:c}:{}),{nonceIn:f,organization:l}),{appState:a.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Ps(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((r,o)=>{let a=Zr[o];return a||(a=r().finally(()=>{delete Zr[o],a=null}),Zr[o]=a),a})(()=>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,s=at(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,r=3)=>{for(let o=0;o<r;o++)if(await i())return!0;return!1})(()=>Jr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Hn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:o,oauthTokenScope:a,expires_in:l}=i;return Object.assign(Object.assign({id_token:r,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Jr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Ps(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Qf),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new lt({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,i=at(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Br(Object.assign({clientId:t.clientId},i))}`)+r}async logout(t={}){const n=Pa(t),{openUrl:s}=n,i=at(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const r=this._buildLogoutUrl(i);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:i,state:r,nonce:o,code_verifier:a,redirect_uri:l,scope:f,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Pe("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,u=await((w,E,I=60)=>new Promise((S,N)=>{const b=window.document.createElement("iframe");b.setAttribute("width","0"),b.setAttribute("height","0"),b.style.display="none";const y=()=>{window.document.body.contains(b)&&(window.document.body.removeChild(b),window.removeEventListener("message",O,!1))};let O;const L=setTimeout(()=>{N(new Hn),y()},1e3*I);O=function(D){if(D.origin!=E||!D.data||D.data.type!=="authorization_response")return;const A=D.source;A&&A.close(),D.data.response.error?N(Pe.fromPayload(D.data.response)):S(D.data.response),clearTimeout(L),window.removeEventListener("message",O,!1),setTimeout(y,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(b),b.setAttribute("src",w)}))(i,this.domainUrl,d);if(r!==u.state)throw new Pe("state_mismatch","Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:u.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},g),{scope:f,oauthTokenScope:g.scope,audience:c})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new lt({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new Ns(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),i&&{timeout:i}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,i=at(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new lt({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const i=await this.cacheManager.get(new lt({scope:t,audience:n,clientId:s}),60);if(i&&i.access_token){const{access_token:r,oauthTokenScope:o,expires_in:a}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:i}=n||{},r=await nd(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(r.id_token,s,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(i||o.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:o})}}function Vn(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 nn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},md={isLoading:se(!1),isAuthenticated:se(!1),user:se(void 0),idTokenClaims:se(void 0),error:se(null),loginWithPopup:nn,loginWithRedirect:nn,getAccessTokenSilently:nn,getAccessTokenWithPopup:nn,logout:nn,checkSession:nn,handleRedirectCallback:nn},pd=se(md);class gd{constructor(t,n){var s,i;this.clientOptions=t,this.pluginOptions=n,this.isLoading=se(!0),this.isAuthenticated=se(!1),this.user=se({}),this.idTokenClaims=se(),this.error=se(null),s=this,i=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!i.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new hd(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(Ea,this),pd.value=this}async loginWithRedirect(t){return Vn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Vn(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 Vn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Vn(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,s,i;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((i=this.pluginOptions)===null||i===void 0?void 0:i.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(i){throw this.error.value=i,i}finally{n&&await this.__refreshState()}return s}}function Ra(e,t){return Vn(e),new gd(e,t)}function qr(){return Ve(Ea)}/*!
28
28
  * shared v9.13.1
29
29
  * (c) 2024 kazuya kawaguchi
30
30
  * Released under the MIT License.
31
- */const Rs=typeof window<"u",Nt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),_d=(e,t,n)=>bd({l:e,k:t,s:n}),bd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ke=e=>typeof e=="number"&&isFinite(e),yd=e=>$a(e)==="[object Date]",Pt=e=>$a(e)==="[object RegExp]",Ms=e=>B(e)&&Object.keys(e).length===0,xe=Object.assign;let Ma;const yt=()=>Ma||(Ma=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Da(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const kd=Object.prototype.hasOwnProperty;function Ds(e,t){return kd.call(e,t)}const me=Array.isArray,de=e=>typeof e=="function",W=e=>typeof e=="string",Q=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",wd=e=>oe(e)&&de(e.then)&&de(e.catch),Fa=Object.prototype.toString,$a=e=>Fa.call(e),B=e=>{if(!oe(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},vd=e=>e==null?"":me(e)||B(e)&&e.toString===Fa?JSON.stringify(e,null,2):String(e);function Ed(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}function Fs(e){let t=e;return()=>++t}function Id(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const $s=e=>!oe(e)||me(e);function Us(e,t){if($s(e)||$s(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:i}=n.pop();Object.keys(s).forEach(r=>{$s(s[r])||$s(i[r])?i[r]=s[r]:n.push({src:s[r],des:i[r]})})}}/*!
31
+ */const Rs=typeof window<"u",Nt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),_d=(e,t,n)=>bd({l:e,k:t,s:n}),bd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ke=e=>typeof e=="number"&&isFinite(e),yd=e=>$a(e)==="[object Date]",At=e=>$a(e)==="[object RegExp]",Ms=e=>B(e)&&Object.keys(e).length===0,Se=Object.assign;let Ma;const yt=()=>Ma||(Ma=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Da(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const kd=Object.prototype.hasOwnProperty;function Ds(e,t){return kd.call(e,t)}const me=Array.isArray,de=e=>typeof e=="function",W=e=>typeof e=="string",Q=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",wd=e=>oe(e)&&de(e.then)&&de(e.catch),Fa=Object.prototype.toString,$a=e=>Fa.call(e),B=e=>{if(!oe(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},vd=e=>e==null?"":me(e)||B(e)&&e.toString===Fa?JSON.stringify(e,null,2):String(e);function Ed(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}function Fs(e){let t=e;return()=>++t}function Id(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const $s=e=>!oe(e)||me(e);function Us(e,t){if($s(e)||$s(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:i}=n.pop();Object.keys(s).forEach(r=>{$s(s[r])||$s(i[r])?i[r]=s[r]:n.push({src:s[r],des:i[r]})})}}/*!
32
32
  * message-compiler v9.13.1
33
33
  * (c) 2024 kazuya kawaguchi
34
34
  * Released under the MIT License.
35
- */function Td(e,t,n){return{line:e,column:t,offset:n}}function js(e,t,n){return{start:e,end:t}}const Ld=/\{([0-9a-zA-Z]+)\}/g;function Ua(e,...t){return t.length===1&&Od(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ld,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const ja=Object.assign,Wa=e=>typeof e=="string",Od=e=>e!==null&&typeof e=="object";function Ha(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}const Qr={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},xd={[Qr.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Sd(e,t,...n){const s=Ua(xd[e],...n||[]),i={message:String(s),code:e};return t&&(i.location=t),i}const K={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Cd={[K.EXPECTED_TOKEN]:"Expected token: '{0}'",[K.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[K.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[K.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[K.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[K.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[K.EMPTY_PLACEHOLDER]:"Empty placeholder",[K.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[K.INVALID_LINKED_FORMAT]:"Invalid linked format",[K.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[K.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[K.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[K.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[K.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[K.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function yn(e,t,n={}){const{domain:s,messages:i,args:r}=n,o=Ua((i||Cd)[e]||"",...r||[]),a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=s,a}function Nd(e){throw e}const kt=" ",Pd="\r",Fe=`
36
- `,Ad="\u2028",Rd="\u2029";function Md(e){const t=e;let n=0,s=1,i=1,r=0;const o=D=>t[D]===Pd&&t[D+1]===Fe,a=D=>t[D]===Fe,l=D=>t[D]===Rd,f=D=>t[D]===Ad,c=D=>o(D)||a(D)||l(D)||f(D),d=()=>n,u=()=>s,g=()=>i,w=()=>r,E=D=>o(D)||l(D)||f(D)?Fe:t[D],I=()=>E(n),x=()=>E(n+r);function N(){return r=0,c(n)&&(s++,i=0),o(n)&&n++,n++,i++,t[n]}function b(){return o(n+r)&&r++,r++,t[n+r]}function y(){n=0,s=1,i=1,r=0}function O(D=0){r=D}function L(){const D=n+r;for(;D!==n;)N();r=0}return{index:d,line:u,column:g,peekOffset:w,charAt:E,currentChar:I,currentPeek:x,next:N,peek:b,reset:y,resetPeek:O,skipToPeek:L}}const At=void 0,Dd=".",Va="'",Fd="tokenizer";function $d(e,t={}){const n=t.location!==!1,s=Md(e),i=()=>s.index(),r=()=>Td(s.line(),s.column(),s.index()),o=r(),a=i(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},f=()=>l,{onError:c}=t;function d(h,m,k,...C){const j=f();if(m.column+=k,m.offset+=k,c){const F=n?js(j.startLoc,m):null,v=yn(h,F,{domain:Fd,args:C});c(v)}}function u(h,m,k){h.endLoc=r(),h.currentType=m;const C={type:m};return n&&(C.loc=js(h.startLoc,h.endLoc)),k!=null&&(C.value=k),C}const g=h=>u(h,14);function w(h,m){return h.currentChar()===m?(h.next(),m):(d(K.EXPECTED_TOKEN,r(),0,m),"")}function E(h){let m="";for(;h.currentPeek()===kt||h.currentPeek()===Fe;)m+=h.currentPeek(),h.peek();return m}function I(h){const m=E(h);return h.skipToPeek(),m}function x(h){if(h===At)return!1;const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function N(h){if(h===At)return!1;const m=h.charCodeAt(0);return m>=48&&m<=57}function b(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=x(h.currentPeek());return h.resetPeek(),C}function y(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=h.currentPeek()==="-"?h.peek():h.currentPeek(),j=N(C);return h.resetPeek(),j}function O(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=h.currentPeek()===Va;return h.resetPeek(),C}function L(h,m){const{currentType:k}=m;if(k!==8)return!1;E(h);const C=h.currentPeek()===".";return h.resetPeek(),C}function D(h,m){const{currentType:k}=m;if(k!==9)return!1;E(h);const C=x(h.currentPeek());return h.resetPeek(),C}function P(h,m){const{currentType:k}=m;if(!(k===8||k===12))return!1;E(h);const C=h.currentPeek()===":";return h.resetPeek(),C}function A(h,m){const{currentType:k}=m;if(k!==10)return!1;const C=()=>{const F=h.currentPeek();return F==="{"?x(h.peek()):F==="@"||F==="%"||F==="|"||F===":"||F==="."||F===kt||!F?!1:F===Fe?(h.peek(),C()):Y(h,!1)},j=C();return h.resetPeek(),j}function V(h){E(h);const m=h.currentPeek()==="|";return h.resetPeek(),m}function ne(h){const m=E(h),k=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:k,hasSpace:m.length>0}}function Y(h,m=!0){const k=(j=!1,F="",v=!1)=>{const S=h.currentPeek();return S==="{"?F==="%"?!1:j:S==="@"||!S?F==="%"?!0:j:S==="%"?(h.peek(),k(j,"%",!0)):S==="|"?F==="%"||v?!0:!(F===kt||F===Fe):S===kt?(h.peek(),k(!0,kt,v)):S===Fe?(h.peek(),k(!0,Fe,v)):!0},C=k();return m&&h.resetPeek(),C}function pe(h,m){const k=h.currentChar();return k===At?At:m(k)?(h.next(),k):null}function nt(h){const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function He(h){return pe(h,nt)}function J(h){const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function ce(h){return pe(h,J)}function ie(h){const m=h.charCodeAt(0);return m>=48&&m<=57}function Ye(h){return pe(h,ie)}function dt(h){const m=h.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function ve(h){return pe(h,dt)}function Oe(h){let m="",k="";for(;m=Ye(h);)k+=m;return k}function Mt(h){I(h);const m=h.currentChar();return m!=="%"&&d(K.EXPECTED_TOKEN,r(),0,m),h.next(),"%"}function Dt(h){let m="";for(;;){const k=h.currentChar();if(k==="{"||k==="}"||k==="@"||k==="|"||!k)break;if(k==="%")if(Y(h))m+=k,h.next();else break;else if(k===kt||k===Fe)if(Y(h))m+=k,h.next();else{if(V(h))break;m+=k,h.next()}else m+=k,h.next()}return m}function cn(h){I(h);let m="",k="";for(;m=ce(h);)k+=m;return h.currentChar()===At&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k}function $e(h){I(h);let m="";return h.currentChar()==="-"?(h.next(),m+=`-${Oe(h)}`):m+=Oe(h),h.currentChar()===At&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),m}function vt(h){return h!==Va&&h!==Fe}function Et(h){I(h),w(h,"'");let m="",k="";for(;m=pe(h,vt);)m==="\\"?k+=Ft(h):k+=m;const C=h.currentChar();return C===Fe||C===At?(d(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),C===Fe&&(h.next(),w(h,"'")),k):(w(h,"'"),k)}function Ft(h){const m=h.currentChar();switch(m){case"\\":case"'":return h.next(),`\\${m}`;case"u":return Je(h,m,4);case"U":return Je(h,m,6);default:return d(K.UNKNOWN_ESCAPE_SEQUENCE,r(),0,m),""}}function Je(h,m,k){w(h,m);let C="";for(let j=0;j<k;j++){const F=ve(h);if(!F){d(K.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${m}${C}${h.currentChar()}`);break}C+=F}return`\\${m}${C}`}function $t(h){return h!=="{"&&h!=="}"&&h!==kt&&h!==Fe}function Ut(h){I(h);let m="",k="";for(;m=pe(h,$t);)k+=m;return k}function _(h){let m="",k="";for(;m=He(h);)k+=m;return k}function p(h){const m=k=>{const C=h.currentChar();return C==="{"||C==="%"||C==="@"||C==="|"||C==="("||C===")"||!C||C===kt?k:(k+=C,h.next(),m(k))};return m("")}function T(h){I(h);const m=w(h,"|");return I(h),m}function R(h,m){let k=null;switch(h.currentChar()){case"{":return m.braceNest>=1&&d(K.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),h.next(),k=u(m,2,"{"),I(h),m.braceNest++,k;case"}":return m.braceNest>0&&m.currentType===2&&d(K.EMPTY_PLACEHOLDER,r(),0),h.next(),k=u(m,3,"}"),m.braceNest--,m.braceNest>0&&I(h),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),k;case"@":return m.braceNest>0&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k=M(h,m)||g(m),m.braceNest=0,k;default:{let j=!0,F=!0,v=!0;if(V(h))return m.braceNest>0&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,k;if(m.braceNest>0&&(m.currentType===5||m.currentType===6||m.currentType===7))return d(K.UNTERMINATED_CLOSING_BRACE,r(),0),m.braceNest=0,$(h,m);if(j=b(h,m))return k=u(m,5,cn(h)),I(h),k;if(F=y(h,m))return k=u(m,6,$e(h)),I(h),k;if(v=O(h,m))return k=u(m,7,Et(h)),I(h),k;if(!j&&!F&&!v)return k=u(m,13,Ut(h)),d(K.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,k.value),I(h),k;break}}return k}function M(h,m){const{currentType:k}=m;let C=null;const j=h.currentChar();switch((k===8||k===9||k===12||k===10)&&(j===Fe||j===kt)&&d(K.INVALID_LINKED_FORMAT,r(),0),j){case"@":return h.next(),C=u(m,8,"@"),m.inLinked=!0,C;case".":return I(h),h.next(),u(m,9,".");case":":return I(h),h.next(),u(m,10,":");default:return V(h)?(C=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,C):L(h,m)||P(h,m)?(I(h),M(h,m)):D(h,m)?(I(h),u(m,12,_(h))):A(h,m)?(I(h),j==="{"?R(h,m)||C:u(m,11,p(h))):(k===8&&d(K.INVALID_LINKED_FORMAT,r(),0),m.braceNest=0,m.inLinked=!1,$(h,m))}}function $(h,m){let k={type:14};if(m.braceNest>0)return R(h,m)||g(m);if(m.inLinked)return M(h,m)||g(m);switch(h.currentChar()){case"{":return R(h,m)||g(m);case"}":return d(K.UNBALANCED_CLOSING_BRACE,r(),0),h.next(),u(m,3,"}");case"@":return M(h,m)||g(m);default:{if(V(h))return k=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,k;const{isModulo:j,hasSpace:F}=ne(h);if(j)return F?u(m,0,Dt(h)):u(m,4,Mt(h));if(Y(h))return u(m,0,Dt(h));break}}return k}function U(){const{currentType:h,offset:m,startLoc:k,endLoc:C}=l;return l.lastType=h,l.lastOffset=m,l.lastStartLoc=k,l.lastEndLoc=C,l.offset=i(),l.startLoc=r(),s.currentChar()===At?u(l,14):$(s,l)}return{nextToken:U,currentOffset:i,currentPosition:r,context:f}}const Ud="parser",jd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Wd(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Hd(e={}){const t=e.location!==!1,{onError:n,onWarn:s}=e;function i(b,y,O,L,...D){const P=b.currentPosition();if(P.offset+=L,P.column+=L,n){const A=t?js(O,P):null,V=yn(y,A,{domain:Ud,args:D});n(V)}}function r(b,y,O,L,...D){const P=b.currentPosition();if(P.offset+=L,P.column+=L,s){const A=t?js(O,P):null;s(Sd(y,A,D))}}function o(b,y,O){const L={type:b};return t&&(L.start=y,L.end=y,L.loc={start:O,end:O}),L}function a(b,y,O,L){t&&(b.end=y,b.loc&&(b.loc.end=O))}function l(b,y){const O=b.context(),L=o(3,O.offset,O.startLoc);return L.value=y,a(L,b.currentOffset(),b.currentPosition()),L}function f(b,y){const O=b.context(),{lastOffset:L,lastStartLoc:D}=O,P=o(5,L,D);return P.index=parseInt(y,10),b.nextToken(),a(P,b.currentOffset(),b.currentPosition()),P}function c(b,y,O){const L=b.context(),{lastOffset:D,lastStartLoc:P}=L,A=o(4,D,P);return A.key=y,O===!0&&(A.modulo=!0),b.nextToken(),a(A,b.currentOffset(),b.currentPosition()),A}function d(b,y){const O=b.context(),{lastOffset:L,lastStartLoc:D}=O,P=o(9,L,D);return P.value=y.replace(jd,Wd),b.nextToken(),a(P,b.currentOffset(),b.currentPosition()),P}function u(b){const y=b.nextToken(),O=b.context(),{lastOffset:L,lastStartLoc:D}=O,P=o(8,L,D);return y.type!==12?(i(b,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.lastStartLoc,0),P.value="",a(P,L,D),{nextConsumeToken:y,node:P}):(y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,et(y)),P.value=y.value||"",a(P,b.currentOffset(),b.currentPosition()),{node:P})}function g(b,y){const O=b.context(),L=o(7,O.offset,O.startLoc);return L.value=y,a(L,b.currentOffset(),b.currentPosition()),L}function w(b){const y=b.context(),O=o(6,y.offset,y.startLoc);let L=b.nextToken();if(L.type===9){const D=u(b);O.modifier=D.node,L=D.nextConsumeToken||b.nextToken()}switch(L.type!==10&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),L=b.nextToken(),L.type===2&&(L=b.nextToken()),L.type){case 11:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=g(b,L.value||"");break;case 5:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=c(b,L.value||"");break;case 6:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=f(b,L.value||"");break;case 7:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=d(b,L.value||"");break;default:{i(b,K.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const D=b.context(),P=o(7,D.offset,D.startLoc);return P.value="",a(P,D.offset,D.startLoc),O.key=P,a(O,D.offset,D.startLoc),{nextConsumeToken:L,node:O}}}return a(O,b.currentOffset(),b.currentPosition()),{node:O}}function E(b){const y=b.context(),O=y.currentType===1?b.currentOffset():y.offset,L=y.currentType===1?y.endLoc:y.startLoc,D=o(2,O,L);D.items=[];let P=null,A=null;do{const Y=P||b.nextToken();switch(P=null,Y.type){case 0:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(l(b,Y.value||""));break;case 6:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(f(b,Y.value||""));break;case 4:A=!0;break;case 5:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(c(b,Y.value||"",!!A)),A&&(r(b,Qr.USE_MODULO_SYNTAX,y.lastStartLoc,0,et(Y)),A=null);break;case 7:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(d(b,Y.value||""));break;case 8:{const pe=w(b);D.items.push(pe.node),P=pe.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const V=y.currentType===1?y.lastOffset:b.currentOffset(),ne=y.currentType===1?y.lastEndLoc:b.currentPosition();return a(D,V,ne),D}function I(b,y,O,L){const D=b.context();let P=L.items.length===0;const A=o(1,y,O);A.cases=[],A.cases.push(L);do{const V=E(b);P||(P=V.items.length===0),A.cases.push(V)}while(D.currentType!==14);return P&&i(b,K.MUST_HAVE_MESSAGES_IN_PLURAL,O,0),a(A,b.currentOffset(),b.currentPosition()),A}function x(b){const y=b.context(),{offset:O,startLoc:L}=y,D=E(b);return y.currentType===14?D:I(b,O,L,D)}function N(b){const y=$d(b,ja({},e)),O=y.context(),L=o(0,O.offset,O.startLoc);return t&&L.loc&&(L.loc.source=b),L.body=x(y),e.onCacheKey&&(L.cacheKey=e.onCacheKey(b)),O.currentType!==14&&i(y,K.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,b[O.offset]||""),a(L,y.currentOffset(),y.currentPosition()),L}return{parse:N}}function et(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Vd(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Ka(e,t){for(let n=0;n<e.length;n++)ei(e[n],t)}function ei(e,t){switch(e.type){case 1:Ka(e.cases,t),t.helper("plural");break;case 2:Ka(e.items,t);break;case 6:{ei(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 Kd(e,t={}){const n=Vd(e);n.helper("normalize"),e.body&&ei(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function zd(e){const t=e.body;return t.type===2?za(t):t.cases.forEach(n=>za(n)),e}function za(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Ha(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const Yd="minifier";function kn(e){switch(e.t=e.type,e.type){case 0:{const t=e;kn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)kn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)kn(n[s]);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;kn(t.key),t.k=t.key,delete t.key,t.modifier&&(kn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw yn(K.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Yd,args:[e.type]})}delete e.type}const Gd="parser";function Bd(e,t){const{sourceMap:n,filename:s,breakLineCode:i,needIndent:r}=t,o=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function f(I,x){a.code+=I}function c(I,x=!0){const N=x?i:"";f(r?N+" ".repeat(I):N)}function d(I=!0){const x=++a.indentLevel;I&&c(x)}function u(I=!0){const x=--a.indentLevel;I&&c(x)}function g(){c(a.indentLevel)}return{context:l,push:f,indent:d,deindent:u,newline:g,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Xd(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),wn(e,t.key),t.modifier?(e.push(", "),wn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Zd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const i=t.items.length;for(let r=0;r<i&&(wn(e,t.items[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Jd(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const i=t.cases.length;for(let r=0;r<i&&(wn(e,t.cases[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function qd(e,t){t.body?wn(e,t.body):e.push("null")}function wn(e,t){const{helper:n}=e;switch(t.type){case 0:qd(e,t);break;case 1:Jd(e,t);break;case 2:Zd(e,t);break;case 6:Xd(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw yn(K.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Gd,args:[t.type]})}}const Qd=(e,t={})=>{const n=Wa(t.mode)?t.mode:"normal",s=Wa(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
37
- `,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Bd(e,{mode:n,filename:s,sourceMap:i,breakLineCode:r,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${Ha(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),wn(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:f,map:c}=l.context();return{ast:e,code:f,map:c?c.toJSON():void 0}};function eh(e,t={}){const n=ja({},t),s=!!n.jit,i=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Hd(n).parse(e);return s?(r&&zd(a),i&&kn(a),{ast:a,code:""}):(Kd(a,n),Qd(a,n))}/*!
35
+ */function Td(e,t,n){return{line:e,column:t,offset:n}}function js(e,t,n){return{start:e,end:t}}const Ld=/\{([0-9a-zA-Z]+)\}/g;function Ua(e,...t){return t.length===1&&Od(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ld,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const ja=Object.assign,Wa=e=>typeof e=="string",Od=e=>e!==null&&typeof e=="object";function Ha(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}const Qr={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Sd={[Qr.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function xd(e,t,...n){const s=Ua(Sd[e],...n||[]),i={message:String(s),code:e};return t&&(i.location=t),i}const V={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Cd={[V.EXPECTED_TOKEN]:"Expected token: '{0}'",[V.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[V.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[V.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[V.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[V.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[V.EMPTY_PLACEHOLDER]:"Empty placeholder",[V.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[V.INVALID_LINKED_FORMAT]:"Invalid linked format",[V.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[V.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[V.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[V.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[V.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[V.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function yn(e,t,n={}){const{domain:s,messages:i,args:r}=n,o=Ua((i||Cd)[e]||"",...r||[]),a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=s,a}function Nd(e){throw e}const kt=" ",Ad="\r",Fe=`
36
+ `,Pd="\u2028",Rd="\u2029";function Md(e){const t=e;let n=0,s=1,i=1,r=0;const o=D=>t[D]===Ad&&t[D+1]===Fe,a=D=>t[D]===Fe,l=D=>t[D]===Rd,f=D=>t[D]===Pd,c=D=>o(D)||a(D)||l(D)||f(D),d=()=>n,u=()=>s,g=()=>i,w=()=>r,E=D=>o(D)||l(D)||f(D)?Fe:t[D],I=()=>E(n),S=()=>E(n+r);function N(){return r=0,c(n)&&(s++,i=0),o(n)&&n++,n++,i++,t[n]}function b(){return o(n+r)&&r++,r++,t[n+r]}function y(){n=0,s=1,i=1,r=0}function O(D=0){r=D}function L(){const D=n+r;for(;D!==n;)N();r=0}return{index:d,line:u,column:g,peekOffset:w,charAt:E,currentChar:I,currentPeek:S,next:N,peek:b,reset:y,resetPeek:O,skipToPeek:L}}const Pt=void 0,Dd=".",Ka="'",Fd="tokenizer";function $d(e,t={}){const n=t.location!==!1,s=Md(e),i=()=>s.index(),r=()=>Td(s.line(),s.column(),s.index()),o=r(),a=i(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},f=()=>l,{onError:c}=t;function d(h,m,k,...C){const j=f();if(m.column+=k,m.offset+=k,c){const F=n?js(j.startLoc,m):null,v=yn(h,F,{domain:Fd,args:C});c(v)}}function u(h,m,k){h.endLoc=r(),h.currentType=m;const C={type:m};return n&&(C.loc=js(h.startLoc,h.endLoc)),k!=null&&(C.value=k),C}const g=h=>u(h,14);function w(h,m){return h.currentChar()===m?(h.next(),m):(d(V.EXPECTED_TOKEN,r(),0,m),"")}function E(h){let m="";for(;h.currentPeek()===kt||h.currentPeek()===Fe;)m+=h.currentPeek(),h.peek();return m}function I(h){const m=E(h);return h.skipToPeek(),m}function S(h){if(h===Pt)return!1;const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function N(h){if(h===Pt)return!1;const m=h.charCodeAt(0);return m>=48&&m<=57}function b(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=S(h.currentPeek());return h.resetPeek(),C}function y(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=h.currentPeek()==="-"?h.peek():h.currentPeek(),j=N(C);return h.resetPeek(),j}function O(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=h.currentPeek()===Ka;return h.resetPeek(),C}function L(h,m){const{currentType:k}=m;if(k!==8)return!1;E(h);const C=h.currentPeek()===".";return h.resetPeek(),C}function D(h,m){const{currentType:k}=m;if(k!==9)return!1;E(h);const C=S(h.currentPeek());return h.resetPeek(),C}function A(h,m){const{currentType:k}=m;if(!(k===8||k===12))return!1;E(h);const C=h.currentPeek()===":";return h.resetPeek(),C}function P(h,m){const{currentType:k}=m;if(k!==10)return!1;const C=()=>{const F=h.currentPeek();return F==="{"?S(h.peek()):F==="@"||F==="%"||F==="|"||F===":"||F==="."||F===kt||!F?!1:F===Fe?(h.peek(),C()):G(h,!1)},j=C();return h.resetPeek(),j}function K(h){E(h);const m=h.currentPeek()==="|";return h.resetPeek(),m}function ne(h){const m=E(h),k=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:k,hasSpace:m.length>0}}function G(h,m=!0){const k=(j=!1,F="",v=!1)=>{const x=h.currentPeek();return x==="{"?F==="%"?!1:j:x==="@"||!x?F==="%"?!0:j:x==="%"?(h.peek(),k(j,"%",!0)):x==="|"?F==="%"||v?!0:!(F===kt||F===Fe):x===kt?(h.peek(),k(!0,kt,v)):x===Fe?(h.peek(),k(!0,Fe,v)):!0},C=k();return m&&h.resetPeek(),C}function pe(h,m){const k=h.currentChar();return k===Pt?Pt:m(k)?(h.next(),k):null}function nt(h){const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function He(h){return pe(h,nt)}function J(h){const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function ce(h){return pe(h,J)}function ie(h){const m=h.charCodeAt(0);return m>=48&&m<=57}function Ge(h){return pe(h,ie)}function dt(h){const m=h.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function ve(h){return pe(h,dt)}function Oe(h){let m="",k="";for(;m=Ge(h);)k+=m;return k}function Mt(h){I(h);const m=h.currentChar();return m!=="%"&&d(V.EXPECTED_TOKEN,r(),0,m),h.next(),"%"}function Dt(h){let m="";for(;;){const k=h.currentChar();if(k==="{"||k==="}"||k==="@"||k==="|"||!k)break;if(k==="%")if(G(h))m+=k,h.next();else break;else if(k===kt||k===Fe)if(G(h))m+=k,h.next();else{if(K(h))break;m+=k,h.next()}else m+=k,h.next()}return m}function cn(h){I(h);let m="",k="";for(;m=ce(h);)k+=m;return h.currentChar()===Pt&&d(V.UNTERMINATED_CLOSING_BRACE,r(),0),k}function $e(h){I(h);let m="";return h.currentChar()==="-"?(h.next(),m+=`-${Oe(h)}`):m+=Oe(h),h.currentChar()===Pt&&d(V.UNTERMINATED_CLOSING_BRACE,r(),0),m}function vt(h){return h!==Ka&&h!==Fe}function Et(h){I(h),w(h,"'");let m="",k="";for(;m=pe(h,vt);)m==="\\"?k+=Ft(h):k+=m;const C=h.currentChar();return C===Fe||C===Pt?(d(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),C===Fe&&(h.next(),w(h,"'")),k):(w(h,"'"),k)}function Ft(h){const m=h.currentChar();switch(m){case"\\":case"'":return h.next(),`\\${m}`;case"u":return Je(h,m,4);case"U":return Je(h,m,6);default:return d(V.UNKNOWN_ESCAPE_SEQUENCE,r(),0,m),""}}function Je(h,m,k){w(h,m);let C="";for(let j=0;j<k;j++){const F=ve(h);if(!F){d(V.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${m}${C}${h.currentChar()}`);break}C+=F}return`\\${m}${C}`}function $t(h){return h!=="{"&&h!=="}"&&h!==kt&&h!==Fe}function Ut(h){I(h);let m="",k="";for(;m=pe(h,$t);)k+=m;return k}function _(h){let m="",k="";for(;m=He(h);)k+=m;return k}function p(h){const m=k=>{const C=h.currentChar();return C==="{"||C==="%"||C==="@"||C==="|"||C==="("||C===")"||!C||C===kt?k:(k+=C,h.next(),m(k))};return m("")}function T(h){I(h);const m=w(h,"|");return I(h),m}function R(h,m){let k=null;switch(h.currentChar()){case"{":return m.braceNest>=1&&d(V.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),h.next(),k=u(m,2,"{"),I(h),m.braceNest++,k;case"}":return m.braceNest>0&&m.currentType===2&&d(V.EMPTY_PLACEHOLDER,r(),0),h.next(),k=u(m,3,"}"),m.braceNest--,m.braceNest>0&&I(h),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),k;case"@":return m.braceNest>0&&d(V.UNTERMINATED_CLOSING_BRACE,r(),0),k=M(h,m)||g(m),m.braceNest=0,k;default:{let j=!0,F=!0,v=!0;if(K(h))return m.braceNest>0&&d(V.UNTERMINATED_CLOSING_BRACE,r(),0),k=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,k;if(m.braceNest>0&&(m.currentType===5||m.currentType===6||m.currentType===7))return d(V.UNTERMINATED_CLOSING_BRACE,r(),0),m.braceNest=0,$(h,m);if(j=b(h,m))return k=u(m,5,cn(h)),I(h),k;if(F=y(h,m))return k=u(m,6,$e(h)),I(h),k;if(v=O(h,m))return k=u(m,7,Et(h)),I(h),k;if(!j&&!F&&!v)return k=u(m,13,Ut(h)),d(V.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,k.value),I(h),k;break}}return k}function M(h,m){const{currentType:k}=m;let C=null;const j=h.currentChar();switch((k===8||k===9||k===12||k===10)&&(j===Fe||j===kt)&&d(V.INVALID_LINKED_FORMAT,r(),0),j){case"@":return h.next(),C=u(m,8,"@"),m.inLinked=!0,C;case".":return I(h),h.next(),u(m,9,".");case":":return I(h),h.next(),u(m,10,":");default:return K(h)?(C=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,C):L(h,m)||A(h,m)?(I(h),M(h,m)):D(h,m)?(I(h),u(m,12,_(h))):P(h,m)?(I(h),j==="{"?R(h,m)||C:u(m,11,p(h))):(k===8&&d(V.INVALID_LINKED_FORMAT,r(),0),m.braceNest=0,m.inLinked=!1,$(h,m))}}function $(h,m){let k={type:14};if(m.braceNest>0)return R(h,m)||g(m);if(m.inLinked)return M(h,m)||g(m);switch(h.currentChar()){case"{":return R(h,m)||g(m);case"}":return d(V.UNBALANCED_CLOSING_BRACE,r(),0),h.next(),u(m,3,"}");case"@":return M(h,m)||g(m);default:{if(K(h))return k=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,k;const{isModulo:j,hasSpace:F}=ne(h);if(j)return F?u(m,0,Dt(h)):u(m,4,Mt(h));if(G(h))return u(m,0,Dt(h));break}}return k}function U(){const{currentType:h,offset:m,startLoc:k,endLoc:C}=l;return l.lastType=h,l.lastOffset=m,l.lastStartLoc=k,l.lastEndLoc=C,l.offset=i(),l.startLoc=r(),s.currentChar()===Pt?u(l,14):$(s,l)}return{nextToken:U,currentOffset:i,currentPosition:r,context:f}}const Ud="parser",jd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Wd(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Hd(e={}){const t=e.location!==!1,{onError:n,onWarn:s}=e;function i(b,y,O,L,...D){const A=b.currentPosition();if(A.offset+=L,A.column+=L,n){const P=t?js(O,A):null,K=yn(y,P,{domain:Ud,args:D});n(K)}}function r(b,y,O,L,...D){const A=b.currentPosition();if(A.offset+=L,A.column+=L,s){const P=t?js(O,A):null;s(xd(y,P,D))}}function o(b,y,O){const L={type:b};return t&&(L.start=y,L.end=y,L.loc={start:O,end:O}),L}function a(b,y,O,L){t&&(b.end=y,b.loc&&(b.loc.end=O))}function l(b,y){const O=b.context(),L=o(3,O.offset,O.startLoc);return L.value=y,a(L,b.currentOffset(),b.currentPosition()),L}function f(b,y){const O=b.context(),{lastOffset:L,lastStartLoc:D}=O,A=o(5,L,D);return A.index=parseInt(y,10),b.nextToken(),a(A,b.currentOffset(),b.currentPosition()),A}function c(b,y,O){const L=b.context(),{lastOffset:D,lastStartLoc:A}=L,P=o(4,D,A);return P.key=y,O===!0&&(P.modulo=!0),b.nextToken(),a(P,b.currentOffset(),b.currentPosition()),P}function d(b,y){const O=b.context(),{lastOffset:L,lastStartLoc:D}=O,A=o(9,L,D);return A.value=y.replace(jd,Wd),b.nextToken(),a(A,b.currentOffset(),b.currentPosition()),A}function u(b){const y=b.nextToken(),O=b.context(),{lastOffset:L,lastStartLoc:D}=O,A=o(8,L,D);return y.type!==12?(i(b,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.lastStartLoc,0),A.value="",a(A,L,D),{nextConsumeToken:y,node:A}):(y.value==null&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,et(y)),A.value=y.value||"",a(A,b.currentOffset(),b.currentPosition()),{node:A})}function g(b,y){const O=b.context(),L=o(7,O.offset,O.startLoc);return L.value=y,a(L,b.currentOffset(),b.currentPosition()),L}function w(b){const y=b.context(),O=o(6,y.offset,y.startLoc);let L=b.nextToken();if(L.type===9){const D=u(b);O.modifier=D.node,L=D.nextConsumeToken||b.nextToken()}switch(L.type!==10&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),L=b.nextToken(),L.type===2&&(L=b.nextToken()),L.type){case 11:L.value==null&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=g(b,L.value||"");break;case 5:L.value==null&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=c(b,L.value||"");break;case 6:L.value==null&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=f(b,L.value||"");break;case 7:L.value==null&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=d(b,L.value||"");break;default:{i(b,V.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const D=b.context(),A=o(7,D.offset,D.startLoc);return A.value="",a(A,D.offset,D.startLoc),O.key=A,a(O,D.offset,D.startLoc),{nextConsumeToken:L,node:O}}}return a(O,b.currentOffset(),b.currentPosition()),{node:O}}function E(b){const y=b.context(),O=y.currentType===1?b.currentOffset():y.offset,L=y.currentType===1?y.endLoc:y.startLoc,D=o(2,O,L);D.items=[];let A=null,P=null;do{const G=A||b.nextToken();switch(A=null,G.type){case 0:G.value==null&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(G)),D.items.push(l(b,G.value||""));break;case 6:G.value==null&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(G)),D.items.push(f(b,G.value||""));break;case 4:P=!0;break;case 5:G.value==null&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(G)),D.items.push(c(b,G.value||"",!!P)),P&&(r(b,Qr.USE_MODULO_SYNTAX,y.lastStartLoc,0,et(G)),P=null);break;case 7:G.value==null&&i(b,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(G)),D.items.push(d(b,G.value||""));break;case 8:{const pe=w(b);D.items.push(pe.node),A=pe.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const K=y.currentType===1?y.lastOffset:b.currentOffset(),ne=y.currentType===1?y.lastEndLoc:b.currentPosition();return a(D,K,ne),D}function I(b,y,O,L){const D=b.context();let A=L.items.length===0;const P=o(1,y,O);P.cases=[],P.cases.push(L);do{const K=E(b);A||(A=K.items.length===0),P.cases.push(K)}while(D.currentType!==14);return A&&i(b,V.MUST_HAVE_MESSAGES_IN_PLURAL,O,0),a(P,b.currentOffset(),b.currentPosition()),P}function S(b){const y=b.context(),{offset:O,startLoc:L}=y,D=E(b);return y.currentType===14?D:I(b,O,L,D)}function N(b){const y=$d(b,ja({},e)),O=y.context(),L=o(0,O.offset,O.startLoc);return t&&L.loc&&(L.loc.source=b),L.body=S(y),e.onCacheKey&&(L.cacheKey=e.onCacheKey(b)),O.currentType!==14&&i(y,V.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,b[O.offset]||""),a(L,y.currentOffset(),y.currentPosition()),L}return{parse:N}}function et(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Kd(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Va(e,t){for(let n=0;n<e.length;n++)ei(e[n],t)}function ei(e,t){switch(e.type){case 1:Va(e.cases,t),t.helper("plural");break;case 2:Va(e.items,t);break;case 6:{ei(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 Vd(e,t={}){const n=Kd(e);n.helper("normalize"),e.body&&ei(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function zd(e){const t=e.body;return t.type===2?za(t):t.cases.forEach(n=>za(n)),e}function za(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Ha(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const Gd="minifier";function kn(e){switch(e.t=e.type,e.type){case 0:{const t=e;kn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)kn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)kn(n[s]);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;kn(t.key),t.k=t.key,delete t.key,t.modifier&&(kn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw yn(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Gd,args:[e.type]})}delete e.type}const Yd="parser";function Bd(e,t){const{sourceMap:n,filename:s,breakLineCode:i,needIndent:r}=t,o=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function f(I,S){a.code+=I}function c(I,S=!0){const N=S?i:"";f(r?N+" ".repeat(I):N)}function d(I=!0){const S=++a.indentLevel;I&&c(S)}function u(I=!0){const S=--a.indentLevel;I&&c(S)}function g(){c(a.indentLevel)}return{context:l,push:f,indent:d,deindent:u,newline:g,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Xd(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),wn(e,t.key),t.modifier?(e.push(", "),wn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Zd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const i=t.items.length;for(let r=0;r<i&&(wn(e,t.items[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Jd(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const i=t.cases.length;for(let r=0;r<i&&(wn(e,t.cases[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function qd(e,t){t.body?wn(e,t.body):e.push("null")}function wn(e,t){const{helper:n}=e;switch(t.type){case 0:qd(e,t);break;case 1:Jd(e,t);break;case 2:Zd(e,t);break;case 6:Xd(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw yn(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Yd,args:[t.type]})}}const Qd=(e,t={})=>{const n=Wa(t.mode)?t.mode:"normal",s=Wa(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
37
+ `,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Bd(e,{mode:n,filename:s,sourceMap:i,breakLineCode:r,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${Ha(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),wn(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:f,map:c}=l.context();return{ast:e,code:f,map:c?c.toJSON():void 0}};function eh(e,t={}){const n=ja({},t),s=!!n.jit,i=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Hd(n).parse(e);return s?(r&&zd(a),i&&kn(a),{ast:a,code:""}):(Vd(a,n),Qd(a,n))}/*!
38
38
  * core-base v9.13.1
39
39
  * (c) 2024 kazuya kawaguchi
40
40
  * Released under the MIT License.
41
- */function th(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Rt=[];Rt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Rt[1]={w:[1],".":[2],"[":[4],o:[7]},Rt[2]={w:[2],i:[3,0],0:[3,0]},Rt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Rt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Rt[5]={"'":[4,0],o:8,l:[5,0]},Rt[6]={'"':[4,0],o:8,l:[6,0]};const nh=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function sh(e){return nh.test(e)}function rh(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 ih(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 oh(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:sh(t)?rh(t):"*"+t}function ah(e){const t=[];let n=-1,s=0,i=0,r,o,a,l,f,c,d;const u=[];u[0]=()=>{o===void 0?o=a:o+=a},u[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},u[2]=()=>{u[0](),i++},u[3]=()=>{if(i>0)i--,s=4,u[0]();else{if(i=0,o===void 0||(o=oh(o),o===!1))return!1;u[1]()}};function g(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,a="\\"+w,u[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=ih(r),d=Rt[s],f=d[l]||d.l||8,f===8||(s=f[0],f[1]!==void 0&&(c=u[f[1]],c&&(a=r,c()===!1))))return;if(s===7)return t}}const Ya=new Map;function lh(e,t){return oe(e)?e[t]:null}function ch(e,t){if(!oe(e))return null;let n=Ya.get(t);if(n||(n=ah(t),n&&Ya.set(t,n)),!n)return null;const s=n.length;let i=e,r=0;for(;r<s;){const o=i[n[r]];if(o===void 0||de(i))return null;i=o,r++}return i}const uh=e=>e,fh=e=>"",dh="text",hh=e=>e.length===0?"":Ed(e),mh=vd;function Ga(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ph(e){const t=ke(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ke(e.named.count)||ke(e.named.n))?ke(e.named.count)?e.named.count:ke(e.named.n)?e.named.n:t:t}function gh(e,t){t.count||(t.count=e),t.n||(t.n=e)}function _h(e={}){const t=e.locale,n=ph(e),s=oe(e.pluralRules)&&W(t)&&de(e.pluralRules[t])?e.pluralRules[t]:Ga,i=oe(e.pluralRules)&&W(t)&&de(e.pluralRules[t])?Ga:void 0,r=x=>x[s(n,x.length,i)],o=e.list||[],a=x=>o[x],l=e.named||{};ke(e.pluralIndex)&&gh(n,l);const f=x=>l[x];function c(x){const N=de(e.messages)?e.messages(x):oe(e.messages)?e.messages[x]:!1;return N||(e.parent?e.parent.message(x):fh)}const d=x=>e.modifiers?e.modifiers[x]:uh,u=B(e.processor)&&de(e.processor.normalize)?e.processor.normalize:hh,g=B(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:mh,w=B(e.processor)&&W(e.processor.type)?e.processor.type:dh,I={list:a,named:f,plural:r,linked:(x,...N)=>{const[b,y]=N;let O="text",L="";N.length===1?oe(b)?(L=b.modifier||L,O=b.type||O):W(b)&&(L=b||L):N.length===2&&(W(b)&&(L=b||L),W(y)&&(O=y||O));const D=c(x)(I),P=O==="vnode"&&me(D)&&L?D[0]:D;return L?d(L)(P,O):P},message:c,type:w,interpolate:g,normalize:u,values:xe({},o,l)};return I}let zn=null;function bh(e){zn=e}function yh(e,t,n){zn&&zn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const kh=wh("function:translate");function wh(e){return t=>zn&&zn.emit(e,t)}const Ba=Qr.__EXTEND_POINT__,sn=Fs(Ba),vh={NOT_FOUND_KEY:Ba,FALLBACK_TO_TRANSLATE:sn(),CANNOT_FORMAT_NUMBER:sn(),FALLBACK_TO_NUMBER_FORMAT:sn(),CANNOT_FORMAT_DATE:sn(),FALLBACK_TO_DATE_FORMAT:sn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:sn(),__EXTEND_POINT__:sn()},Xa=K.__EXTEND_POINT__,rn=Fs(Xa),tt={INVALID_ARGUMENT:Xa,INVALID_DATE_ARGUMENT:rn(),INVALID_ISO_DATE_ARGUMENT:rn(),NOT_SUPPORT_NON_STRING_MESSAGE:rn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:rn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:rn(),NOT_SUPPORT_LOCALE_TYPE:rn(),__EXTEND_POINT__:rn()};function ct(e){return yn(e,null,void 0)}function ti(e,t){return t.locale!=null?Za(t.locale):Za(e.locale)}let ni;function Za(e){if(W(e))return e;if(de(e)){if(e.resolvedOnce&&ni!=null)return ni;if(e.constructor.name==="Function"){const t=e();if(wd(t))throw ct(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ni=t}else throw ct(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ct(tt.NOT_SUPPORT_LOCALE_TYPE)}function Eh(e,t,n){return[...new Set([n,...me(t)?t:oe(t)?Object.keys(t):W(t)?[t]:[n]])]}function Ja(e,t,n){const s=W(n)?n:vn,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let r=i.__localeChainCache.get(s);if(!r){r=[];let o=[n];for(;me(o);)o=qa(r,o,t);const a=me(t)||!B(t)?t:t.default?t.default:null;o=W(a)?[a]:a,me(o)&&qa(r,o,!1),i.__localeChainCache.set(s,r)}return r}function qa(e,t,n){let s=!0;for(let i=0;i<t.length&&Q(s);i++){const r=t[i];W(r)&&(s=Ih(e,t[i],n))}return s}function Ih(e,t,n){let s;const i=t.split("-");do{const r=i.join("-");s=Th(e,r,n),i.splice(-1,1)}while(i.length&&s===!0);return s}function Th(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(me(n)||B(n))&&n[i]&&(s=n[i])}return s}const Lh="9.13.1",Ws=-1,vn="en-US",Qa="",el=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Oh(){return{upper:(e,t)=>t==="text"&&W(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&W(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&W(e)?el(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?el(e.children):e}}let tl;function nl(e){tl=e}let sl;function xh(e){sl=e}let rl;function Sh(e){rl=e}let il=null;const Ch=e=>{il=e},Nh=()=>il;let ol=null;const al=e=>{ol=e},Ph=()=>ol;let ll=0;function Ah(e={}){const t=de(e.onWarn)?e.onWarn:Id,n=W(e.version)?e.version:Lh,s=W(e.locale)||de(e.locale)?e.locale:vn,i=de(s)?vn:s,r=me(e.fallbackLocale)||B(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=B(e.messages)?e.messages:{[i]:{}},a=B(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=B(e.numberFormats)?e.numberFormats:{[i]:{}},f=xe({},e.modifiers||{},Oh()),c=e.pluralRules||{},d=de(e.missing)?e.missing:null,u=Q(e.missingWarn)||Pt(e.missingWarn)?e.missingWarn:!0,g=Q(e.fallbackWarn)||Pt(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,E=!!e.unresolving,I=de(e.postTranslation)?e.postTranslation:null,x=B(e.processor)?e.processor:null,N=Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,y=de(e.messageCompiler)?e.messageCompiler:tl,O=de(e.messageResolver)?e.messageResolver:sl||lh,L=de(e.localeFallbacker)?e.localeFallbacker:rl||Eh,D=oe(e.fallbackContext)?e.fallbackContext:void 0,P=e,A=oe(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,V=oe(P.__numberFormatters)?P.__numberFormatters:new Map,ne=oe(P.__meta)?P.__meta:{};ll++;const Y={version:n,cid:ll,locale:s,fallbackLocale:r,messages:o,modifiers:f,pluralRules:c,missing:d,missingWarn:u,fallbackWarn:g,fallbackFormat:w,unresolving:E,postTranslation:I,processor:x,warnHtmlMessage:N,escapeParameter:b,messageCompiler:y,messageResolver:O,localeFallbacker:L,fallbackContext:D,onWarn:t,__meta:ne};return Y.datetimeFormats=a,Y.numberFormats=l,Y.__datetimeFormatters=A,Y.__numberFormatters=V,__INTLIFY_PROD_DEVTOOLS__&&yh(Y,n,ne),Y}function si(e,t,n,s,i){const{missing:r,onWarn:o}=e;if(r!==null){const a=r(e,n,t,i);return W(a)?a:t}else return t}function Yn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Rh(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Mh(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Rh(e,t[s]))return!0;return!1}function ri(e){return n=>Dh(n,e)}function Dh(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,i=s.c||s.cases;return e.plural(i.reduce((r,o)=>[...r,cl(e,o)],[]))}else return cl(e,n)}function cl(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((i,r)=>[...i,ii(e,r)],[]);return e.normalize(s)}}function ii(e,t){const n=t.t||t.type;switch(n){case 3:{const s=t;return s.v||s.value}case 9:{const s=t;return s.v||s.value}case 4:{const s=t;return e.interpolate(e.named(s.k||s.key))}case 5:{const s=t;return e.interpolate(e.list(s.i!=null?s.i:s.index))}case 6:{const s=t,i=s.m||s.modifier;return e.linked(ii(e,s.k||s.key),i?ii(e,i):void 0,e.type)}case 7:{const s=t;return s.v||s.value}case 8:{const s=t;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ul=e=>e;let En=Object.create(null);const In=e=>oe(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function fl(e,t={}){let n=!1;const s=t.onError||Nd;return t.onError=i=>{n=!0,s(i)},{...eh(e,t),detectError:n}}const Fh=(e,t)=>{if(!W(e))throw ct(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||ul)(e),i=En[s];if(i)return i;const{code:r,detectError:o}=fl(e,t),a=new Function(`return ${r}`)();return o?a:En[s]=a}};function $h(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||ul)(e),i=En[s];if(i)return i;const{ast:r,detectError:o}=fl(e,{...t,location:!1,jit:!0}),a=ri(r);return o?a:En[s]=a}else{const n=e.cacheKey;if(n){const s=En[n];return s||(En[n]=ri(e))}else return ri(e)}}const dl=()=>"",Ze=e=>de(e);function hl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:i,messageCompiler:r,fallbackLocale:o,messages:a}=e,[l,f]=oi(...t),c=Q(f.missingWarn)?f.missingWarn:e.missingWarn,d=Q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,u=Q(f.escapeParameter)?f.escapeParameter:e.escapeParameter,g=!!f.resolvedMessage,w=W(f.default)||Q(f.default)?Q(f.default)?r?l:()=>l:f.default:n?r?l:()=>l:"",E=n||w!=="",I=ti(e,f);u&&Uh(f);let[x,N,b]=g?[l,I,a[I]||{}]:ml(e,l,I,o,d,c),y=x,O=l;if(!g&&!(W(y)||In(y)||Ze(y))&&E&&(y=w,O=y),!g&&(!(W(y)||In(y)||Ze(y))||!W(N)))return i?Ws:l;let L=!1;const D=()=>{L=!0},P=Ze(y)?y:pl(e,l,N,y,O,D);if(L)return y;const A=Hh(e,N,b,f),V=_h(A),ne=jh(e,P,V),Y=s?s(ne,l):ne;if(__INTLIFY_PROD_DEVTOOLS__){const pe={timestamp:Date.now(),key:W(l)?l:Ze(y)?y.key:"",locale:N||(Ze(y)?y.locale:""),format:W(y)?y:Ze(y)?y.source:"",message:Y};pe.meta=xe({},e.__meta,Nh()||{}),kh(pe)}return Y}function Uh(e){me(e.list)?e.list=e.list.map(t=>W(t)?Da(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{W(e.named[t])&&(e.named[t]=Da(e.named[t]))})}function ml(e,t,n,s,i,r){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:f}=e,c=f(e,s,n);let d={},u,g=null;const w="translate";for(let E=0;E<c.length&&(u=c[E],d=o[u]||{},(g=l(d,t))===null&&(g=d[t]),!(W(g)||In(g)||Ze(g)));E++)if(!Mh(u,c)){const I=si(e,t,u,r,w);I!==t&&(g=I)}return[g,u,d]}function pl(e,t,n,s,i,r){const{messageCompiler:o,warnHtmlMessage:a}=e;if(Ze(s)){const f=s;return f.locale=f.locale||n,f.key=f.key||t,f}if(o==null){const f=()=>s;return f.locale=n,f.key=t,f}const l=o(s,Wh(e,n,i,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function jh(e,t,n){return t(n)}function oi(...e){const[t,n,s]=e,i={};if(!W(t)&&!ke(t)&&!Ze(t)&&!In(t))throw ct(tt.INVALID_ARGUMENT);const r=ke(t)?String(t):(Ze(t),t);return ke(n)?i.plural=n:W(n)?i.default=n:B(n)&&!Ms(n)?i.named=n:me(n)&&(i.list=n),ke(s)?i.plural=s:W(s)?i.default=s:B(s)&&xe(i,s),[r,i]}function Wh(e,t,n,s,i,r){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw r&&r(o),o},onCacheKey:o=>_d(t,n,o)}}function Hh(e,t,n,s){const{modifiers:i,pluralRules:r,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:f,fallbackContext:c}=e,u={locale:t,modifiers:i,pluralRules:r,messages:g=>{let w=o(n,g);if(w==null&&c){const[,,E]=ml(c,g,t,a,l,f);w=o(E,g)}if(W(w)||In(w)){let E=!1;const x=pl(e,g,t,w,g,()=>{E=!0});return E?dl:x}else return Ze(w)?w:dl}};return e.processor&&(u.processor=e.processor),s.list&&(u.list=s.list),s.named&&(u.named=s.named),ke(s.plural)&&(u.pluralIndex=s.plural),u}function gl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,f,c,d]=ai(...t),u=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const g=!!c.part,w=ti(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.DateTimeFormat(w,d).format(f);let I={},x,N=null;const b="datetime format";for(let L=0;L<E.length&&(x=E[L],I=n[x]||{},N=I[l],!B(N));L++)si(e,l,x,u,b);if(!B(N)||!W(x))return s?Ws:l;let y=`${x}__${l}`;Ms(d)||(y=`${y}__${JSON.stringify(d)}`);let O=a.get(y);return O||(O=new Intl.DateTimeFormat(x,xe({},N,d)),a.set(y,O)),g?O.formatToParts(f):O.format(f)}const _l=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ai(...e){const[t,n,s,i]=e,r={};let o={},a;if(W(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ct(tt.INVALID_ISO_DATE_ARGUMENT);const f=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(f);try{a.toISOString()}catch{throw ct(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(yd(t)){if(isNaN(t.getTime()))throw ct(tt.INVALID_DATE_ARGUMENT);a=t}else if(ke(t))a=t;else throw ct(tt.INVALID_ARGUMENT);return W(n)?r.key=n:B(n)&&Object.keys(n).forEach(l=>{_l.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:B(s)&&(o=s),B(i)&&(o=i),[r.key||"",a,r,o]}function bl(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function yl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,f,c,d]=li(...t),u=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const g=!!c.part,w=ti(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.NumberFormat(w,d).format(f);let I={},x,N=null;const b="number format";for(let L=0;L<E.length&&(x=E[L],I=n[x]||{},N=I[l],!B(N));L++)si(e,l,x,u,b);if(!B(N)||!W(x))return s?Ws:l;let y=`${x}__${l}`;Ms(d)||(y=`${y}__${JSON.stringify(d)}`);let O=a.get(y);return O||(O=new Intl.NumberFormat(x,xe({},N,d)),a.set(y,O)),g?O.formatToParts(f):O.format(f)}const kl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function li(...e){const[t,n,s,i]=e,r={};let o={};if(!ke(t))throw ct(tt.INVALID_ARGUMENT);const a=t;return W(n)?r.key=n:B(n)&&Object.keys(n).forEach(l=>{kl.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:B(s)&&(o=s),B(i)&&(o=i),[r.key||"",a,r,o]}function wl(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}th();/*!
41
+ */function th(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Rt=[];Rt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Rt[1]={w:[1],".":[2],"[":[4],o:[7]},Rt[2]={w:[2],i:[3,0],0:[3,0]},Rt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Rt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Rt[5]={"'":[4,0],o:8,l:[5,0]},Rt[6]={'"':[4,0],o:8,l:[6,0]};const nh=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function sh(e){return nh.test(e)}function rh(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 ih(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 oh(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:sh(t)?rh(t):"*"+t}function ah(e){const t=[];let n=-1,s=0,i=0,r,o,a,l,f,c,d;const u=[];u[0]=()=>{o===void 0?o=a:o+=a},u[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},u[2]=()=>{u[0](),i++},u[3]=()=>{if(i>0)i--,s=4,u[0]();else{if(i=0,o===void 0||(o=oh(o),o===!1))return!1;u[1]()}};function g(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,a="\\"+w,u[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=ih(r),d=Rt[s],f=d[l]||d.l||8,f===8||(s=f[0],f[1]!==void 0&&(c=u[f[1]],c&&(a=r,c()===!1))))return;if(s===7)return t}}const Ga=new Map;function lh(e,t){return oe(e)?e[t]:null}function ch(e,t){if(!oe(e))return null;let n=Ga.get(t);if(n||(n=ah(t),n&&Ga.set(t,n)),!n)return null;const s=n.length;let i=e,r=0;for(;r<s;){const o=i[n[r]];if(o===void 0||de(i))return null;i=o,r++}return i}const uh=e=>e,fh=e=>"",dh="text",hh=e=>e.length===0?"":Ed(e),mh=vd;function Ya(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ph(e){const t=ke(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ke(e.named.count)||ke(e.named.n))?ke(e.named.count)?e.named.count:ke(e.named.n)?e.named.n:t:t}function gh(e,t){t.count||(t.count=e),t.n||(t.n=e)}function _h(e={}){const t=e.locale,n=ph(e),s=oe(e.pluralRules)&&W(t)&&de(e.pluralRules[t])?e.pluralRules[t]:Ya,i=oe(e.pluralRules)&&W(t)&&de(e.pluralRules[t])?Ya:void 0,r=S=>S[s(n,S.length,i)],o=e.list||[],a=S=>o[S],l=e.named||{};ke(e.pluralIndex)&&gh(n,l);const f=S=>l[S];function c(S){const N=de(e.messages)?e.messages(S):oe(e.messages)?e.messages[S]:!1;return N||(e.parent?e.parent.message(S):fh)}const d=S=>e.modifiers?e.modifiers[S]:uh,u=B(e.processor)&&de(e.processor.normalize)?e.processor.normalize:hh,g=B(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:mh,w=B(e.processor)&&W(e.processor.type)?e.processor.type:dh,I={list:a,named:f,plural:r,linked:(S,...N)=>{const[b,y]=N;let O="text",L="";N.length===1?oe(b)?(L=b.modifier||L,O=b.type||O):W(b)&&(L=b||L):N.length===2&&(W(b)&&(L=b||L),W(y)&&(O=y||O));const D=c(S)(I),A=O==="vnode"&&me(D)&&L?D[0]:D;return L?d(L)(A,O):A},message:c,type:w,interpolate:g,normalize:u,values:Se({},o,l)};return I}let zn=null;function bh(e){zn=e}function yh(e,t,n){zn&&zn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const kh=wh("function:translate");function wh(e){return t=>zn&&zn.emit(e,t)}const Ba=Qr.__EXTEND_POINT__,sn=Fs(Ba),vh={NOT_FOUND_KEY:Ba,FALLBACK_TO_TRANSLATE:sn(),CANNOT_FORMAT_NUMBER:sn(),FALLBACK_TO_NUMBER_FORMAT:sn(),CANNOT_FORMAT_DATE:sn(),FALLBACK_TO_DATE_FORMAT:sn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:sn(),__EXTEND_POINT__:sn()},Xa=V.__EXTEND_POINT__,rn=Fs(Xa),tt={INVALID_ARGUMENT:Xa,INVALID_DATE_ARGUMENT:rn(),INVALID_ISO_DATE_ARGUMENT:rn(),NOT_SUPPORT_NON_STRING_MESSAGE:rn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:rn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:rn(),NOT_SUPPORT_LOCALE_TYPE:rn(),__EXTEND_POINT__:rn()};function ct(e){return yn(e,null,void 0)}function ti(e,t){return t.locale!=null?Za(t.locale):Za(e.locale)}let ni;function Za(e){if(W(e))return e;if(de(e)){if(e.resolvedOnce&&ni!=null)return ni;if(e.constructor.name==="Function"){const t=e();if(wd(t))throw ct(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ni=t}else throw ct(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ct(tt.NOT_SUPPORT_LOCALE_TYPE)}function Eh(e,t,n){return[...new Set([n,...me(t)?t:oe(t)?Object.keys(t):W(t)?[t]:[n]])]}function Ja(e,t,n){const s=W(n)?n:vn,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let r=i.__localeChainCache.get(s);if(!r){r=[];let o=[n];for(;me(o);)o=qa(r,o,t);const a=me(t)||!B(t)?t:t.default?t.default:null;o=W(a)?[a]:a,me(o)&&qa(r,o,!1),i.__localeChainCache.set(s,r)}return r}function qa(e,t,n){let s=!0;for(let i=0;i<t.length&&Q(s);i++){const r=t[i];W(r)&&(s=Ih(e,t[i],n))}return s}function Ih(e,t,n){let s;const i=t.split("-");do{const r=i.join("-");s=Th(e,r,n),i.splice(-1,1)}while(i.length&&s===!0);return s}function Th(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(me(n)||B(n))&&n[i]&&(s=n[i])}return s}const Lh="9.13.1",Ws=-1,vn="en-US",Qa="",el=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Oh(){return{upper:(e,t)=>t==="text"&&W(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&W(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&W(e)?el(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?el(e.children):e}}let tl;function nl(e){tl=e}let sl;function Sh(e){sl=e}let rl;function xh(e){rl=e}let il=null;const Ch=e=>{il=e},Nh=()=>il;let ol=null;const al=e=>{ol=e},Ah=()=>ol;let ll=0;function Ph(e={}){const t=de(e.onWarn)?e.onWarn:Id,n=W(e.version)?e.version:Lh,s=W(e.locale)||de(e.locale)?e.locale:vn,i=de(s)?vn:s,r=me(e.fallbackLocale)||B(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=B(e.messages)?e.messages:{[i]:{}},a=B(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=B(e.numberFormats)?e.numberFormats:{[i]:{}},f=Se({},e.modifiers||{},Oh()),c=e.pluralRules||{},d=de(e.missing)?e.missing:null,u=Q(e.missingWarn)||At(e.missingWarn)?e.missingWarn:!0,g=Q(e.fallbackWarn)||At(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,E=!!e.unresolving,I=de(e.postTranslation)?e.postTranslation:null,S=B(e.processor)?e.processor:null,N=Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,y=de(e.messageCompiler)?e.messageCompiler:tl,O=de(e.messageResolver)?e.messageResolver:sl||lh,L=de(e.localeFallbacker)?e.localeFallbacker:rl||Eh,D=oe(e.fallbackContext)?e.fallbackContext:void 0,A=e,P=oe(A.__datetimeFormatters)?A.__datetimeFormatters:new Map,K=oe(A.__numberFormatters)?A.__numberFormatters:new Map,ne=oe(A.__meta)?A.__meta:{};ll++;const G={version:n,cid:ll,locale:s,fallbackLocale:r,messages:o,modifiers:f,pluralRules:c,missing:d,missingWarn:u,fallbackWarn:g,fallbackFormat:w,unresolving:E,postTranslation:I,processor:S,warnHtmlMessage:N,escapeParameter:b,messageCompiler:y,messageResolver:O,localeFallbacker:L,fallbackContext:D,onWarn:t,__meta:ne};return G.datetimeFormats=a,G.numberFormats=l,G.__datetimeFormatters=P,G.__numberFormatters=K,__INTLIFY_PROD_DEVTOOLS__&&yh(G,n,ne),G}function si(e,t,n,s,i){const{missing:r,onWarn:o}=e;if(r!==null){const a=r(e,n,t,i);return W(a)?a:t}else return t}function Gn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Rh(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Mh(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Rh(e,t[s]))return!0;return!1}function ri(e){return n=>Dh(n,e)}function Dh(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,i=s.c||s.cases;return e.plural(i.reduce((r,o)=>[...r,cl(e,o)],[]))}else return cl(e,n)}function cl(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((i,r)=>[...i,ii(e,r)],[]);return e.normalize(s)}}function ii(e,t){const n=t.t||t.type;switch(n){case 3:{const s=t;return s.v||s.value}case 9:{const s=t;return s.v||s.value}case 4:{const s=t;return e.interpolate(e.named(s.k||s.key))}case 5:{const s=t;return e.interpolate(e.list(s.i!=null?s.i:s.index))}case 6:{const s=t,i=s.m||s.modifier;return e.linked(ii(e,s.k||s.key),i?ii(e,i):void 0,e.type)}case 7:{const s=t;return s.v||s.value}case 8:{const s=t;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ul=e=>e;let En=Object.create(null);const In=e=>oe(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function fl(e,t={}){let n=!1;const s=t.onError||Nd;return t.onError=i=>{n=!0,s(i)},{...eh(e,t),detectError:n}}const Fh=(e,t)=>{if(!W(e))throw ct(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||ul)(e),i=En[s];if(i)return i;const{code:r,detectError:o}=fl(e,t),a=new Function(`return ${r}`)();return o?a:En[s]=a}};function $h(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||ul)(e),i=En[s];if(i)return i;const{ast:r,detectError:o}=fl(e,{...t,location:!1,jit:!0}),a=ri(r);return o?a:En[s]=a}else{const n=e.cacheKey;if(n){const s=En[n];return s||(En[n]=ri(e))}else return ri(e)}}const dl=()=>"",Ze=e=>de(e);function hl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:i,messageCompiler:r,fallbackLocale:o,messages:a}=e,[l,f]=oi(...t),c=Q(f.missingWarn)?f.missingWarn:e.missingWarn,d=Q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,u=Q(f.escapeParameter)?f.escapeParameter:e.escapeParameter,g=!!f.resolvedMessage,w=W(f.default)||Q(f.default)?Q(f.default)?r?l:()=>l:f.default:n?r?l:()=>l:"",E=n||w!=="",I=ti(e,f);u&&Uh(f);let[S,N,b]=g?[l,I,a[I]||{}]:ml(e,l,I,o,d,c),y=S,O=l;if(!g&&!(W(y)||In(y)||Ze(y))&&E&&(y=w,O=y),!g&&(!(W(y)||In(y)||Ze(y))||!W(N)))return i?Ws:l;let L=!1;const D=()=>{L=!0},A=Ze(y)?y:pl(e,l,N,y,O,D);if(L)return y;const P=Hh(e,N,b,f),K=_h(P),ne=jh(e,A,K),G=s?s(ne,l):ne;if(__INTLIFY_PROD_DEVTOOLS__){const pe={timestamp:Date.now(),key:W(l)?l:Ze(y)?y.key:"",locale:N||(Ze(y)?y.locale:""),format:W(y)?y:Ze(y)?y.source:"",message:G};pe.meta=Se({},e.__meta,Nh()||{}),kh(pe)}return G}function Uh(e){me(e.list)?e.list=e.list.map(t=>W(t)?Da(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{W(e.named[t])&&(e.named[t]=Da(e.named[t]))})}function ml(e,t,n,s,i,r){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:f}=e,c=f(e,s,n);let d={},u,g=null;const w="translate";for(let E=0;E<c.length&&(u=c[E],d=o[u]||{},(g=l(d,t))===null&&(g=d[t]),!(W(g)||In(g)||Ze(g)));E++)if(!Mh(u,c)){const I=si(e,t,u,r,w);I!==t&&(g=I)}return[g,u,d]}function pl(e,t,n,s,i,r){const{messageCompiler:o,warnHtmlMessage:a}=e;if(Ze(s)){const f=s;return f.locale=f.locale||n,f.key=f.key||t,f}if(o==null){const f=()=>s;return f.locale=n,f.key=t,f}const l=o(s,Wh(e,n,i,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function jh(e,t,n){return t(n)}function oi(...e){const[t,n,s]=e,i={};if(!W(t)&&!ke(t)&&!Ze(t)&&!In(t))throw ct(tt.INVALID_ARGUMENT);const r=ke(t)?String(t):(Ze(t),t);return ke(n)?i.plural=n:W(n)?i.default=n:B(n)&&!Ms(n)?i.named=n:me(n)&&(i.list=n),ke(s)?i.plural=s:W(s)?i.default=s:B(s)&&Se(i,s),[r,i]}function Wh(e,t,n,s,i,r){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw r&&r(o),o},onCacheKey:o=>_d(t,n,o)}}function Hh(e,t,n,s){const{modifiers:i,pluralRules:r,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:f,fallbackContext:c}=e,u={locale:t,modifiers:i,pluralRules:r,messages:g=>{let w=o(n,g);if(w==null&&c){const[,,E]=ml(c,g,t,a,l,f);w=o(E,g)}if(W(w)||In(w)){let E=!1;const S=pl(e,g,t,w,g,()=>{E=!0});return E?dl:S}else return Ze(w)?w:dl}};return e.processor&&(u.processor=e.processor),s.list&&(u.list=s.list),s.named&&(u.named=s.named),ke(s.plural)&&(u.pluralIndex=s.plural),u}function gl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,f,c,d]=ai(...t),u=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const g=!!c.part,w=ti(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.DateTimeFormat(w,d).format(f);let I={},S,N=null;const b="datetime format";for(let L=0;L<E.length&&(S=E[L],I=n[S]||{},N=I[l],!B(N));L++)si(e,l,S,u,b);if(!B(N)||!W(S))return s?Ws:l;let y=`${S}__${l}`;Ms(d)||(y=`${y}__${JSON.stringify(d)}`);let O=a.get(y);return O||(O=new Intl.DateTimeFormat(S,Se({},N,d)),a.set(y,O)),g?O.formatToParts(f):O.format(f)}const _l=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ai(...e){const[t,n,s,i]=e,r={};let o={},a;if(W(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ct(tt.INVALID_ISO_DATE_ARGUMENT);const f=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(f);try{a.toISOString()}catch{throw ct(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(yd(t)){if(isNaN(t.getTime()))throw ct(tt.INVALID_DATE_ARGUMENT);a=t}else if(ke(t))a=t;else throw ct(tt.INVALID_ARGUMENT);return W(n)?r.key=n:B(n)&&Object.keys(n).forEach(l=>{_l.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:B(s)&&(o=s),B(i)&&(o=i),[r.key||"",a,r,o]}function bl(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function yl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,f,c,d]=li(...t),u=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const g=!!c.part,w=ti(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.NumberFormat(w,d).format(f);let I={},S,N=null;const b="number format";for(let L=0;L<E.length&&(S=E[L],I=n[S]||{},N=I[l],!B(N));L++)si(e,l,S,u,b);if(!B(N)||!W(S))return s?Ws:l;let y=`${S}__${l}`;Ms(d)||(y=`${y}__${JSON.stringify(d)}`);let O=a.get(y);return O||(O=new Intl.NumberFormat(S,Se({},N,d)),a.set(y,O)),g?O.formatToParts(f):O.format(f)}const kl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function li(...e){const[t,n,s,i]=e,r={};let o={};if(!ke(t))throw ct(tt.INVALID_ARGUMENT);const a=t;return W(n)?r.key=n:B(n)&&Object.keys(n).forEach(l=>{kl.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:B(s)&&(o=s),B(i)&&(o=i),[r.key||"",a,r,o]}function wl(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}th();/*!
42
42
  * vue-i18n v9.13.1
43
43
  * (c) 2024 kazuya kawaguchi
44
44
  * Released under the MIT License.
45
- */const Vh="9.13.1";function Kh(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(yt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(yt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1)}const vl=vh.__EXTEND_POINT__,wt=Fs(vl);wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt();const El=tt.__EXTEND_POINT__,We=Fs(El),we={UNEXPECTED_RETURN_TYPE:El,INVALID_ARGUMENT:We(),MUST_BE_CALL_SETUP_TOP:We(),NOT_INSTALLED:We(),NOT_AVAILABLE_IN_LEGACY_MODE:We(),REQUIRED_VALUE:We(),INVALID_VALUE:We(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:We(),NOT_INSTALLED_WITH_PROVIDE:We(),UNEXPECTED_ERROR:We(),NOT_COMPATIBLE_LEGACY_VUE_I18N:We(),BRIDGE_SUPPORT_VUE_2_ONLY:We(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:We(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:We(),__EXTEND_POINT__:We()};function Le(e,...t){return yn(e,null,void 0)}const ci=Nt("__translateVNode"),ui=Nt("__datetimeParts"),fi=Nt("__numberParts"),Il=Nt("__setPluralRules"),Tl=Nt("__injectWithOption"),di=Nt("__dispose");function Gn(e){if(!oe(e))return e;for(const t in e)if(Ds(e,t))if(!t.includes("."))oe(e[t])&&Gn(e[t]);else{const n=t.split("."),s=n.length-1;let i=e,r=!1;for(let o=0;o<s;o++){if(n[o]in i||(i[n[o]]={}),!oe(i[n[o]])){r=!0;break}i=i[n[o]]}r||(i[n[s]]=e[t],delete e[t]),oe(i[n[s]])&&Gn(i[n[s]])}return e}function Hs(e,t){const{messages:n,__i18n:s,messageResolver:i,flatJson:r}=t,o=B(n)?n:me(s)?{}:{[e]:{}};if(me(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:f}=a;l?(o[l]=o[l]||{},Us(f,o[l])):Us(f,o)}else W(a)&&Us(JSON.parse(a),o)}),i==null&&r)for(const a in o)Ds(o,a)&&Gn(o[a]);return o}function Ll(e){return e.type}function Ol(e,t,n){let s=oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Hs(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const i=Object.keys(s);i.length&&i.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(oe(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(oe(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function xl(e){return Ne(Mn,null,e,0)}const Sl="__INTLIFY_META__",Cl=()=>[],zh=()=>!1;let Nl=0;function Pl(e){return(t,n,s,i)=>e(n,s,Un()||void 0,i)}const Yh=()=>{const e=Un();let t=null;return e&&(t=Ll(e)[Sl])?{[Sl]:t}:null};function hi(e={},t){const{__root:n,__injectWithOption:s}=e,i=n===void 0,r=e.flatJson,o=Rs?se:ao,a=!!e.translateExistCompatible;let l=Q(e.inheritLocale)?e.inheritLocale:!0;const f=o(n&&l?n.locale.value:W(e.locale)?e.locale:vn),c=o(n&&l?n.fallbackLocale.value:W(e.fallbackLocale)||me(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:f.value),d=o(Hs(f.value,e)),u=o(B(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),g=o(B(e.numberFormats)?e.numberFormats:{[f.value]:{}});let w=n?n.missingWarn:Q(e.missingWarn)||Pt(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:Q(e.fallbackWarn)||Pt(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:Q(e.fallbackRoot)?e.fallbackRoot:!0,x=!!e.fallbackFormat,N=de(e.missing)?e.missing:null,b=de(e.missing)?Pl(e.missing):null,y=de(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const D=n?n.modifiers:B(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,A;A=(()=>{i&&al(null);const v={version:Vh,locale:f.value,fallbackLocale:c.value,messages:d.value,modifiers:D,pluralRules:P,missing:b===null?void 0:b,missingWarn:w,fallbackWarn:E,fallbackFormat:x,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:O,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=u.value,v.numberFormats=g.value,v.__datetimeFormatters=B(A)?A.__datetimeFormatters:void 0,v.__numberFormatters=B(A)?A.__numberFormatters:void 0;const S=Ah(v);return i&&al(S),S})(),Yn(A,f.value,c.value);function ne(){return[f.value,c.value,d.value,u.value,g.value]}const Y=De({get:()=>f.value,set:v=>{f.value=v,A.locale=f.value}}),pe=De({get:()=>c.value,set:v=>{c.value=v,A.fallbackLocale=c.value,Yn(A,f.value,v)}}),nt=De(()=>d.value),He=De(()=>u.value),J=De(()=>g.value);function ce(){return de(y)?y:null}function ie(v){y=v,A.postTranslation=v}function Ye(){return N}function dt(v){v!==null&&(b=Pl(v)),N=v,A.missing=b}const ve=(v,S,H,G,fe,Re)=>{ne();let Ge;try{__INTLIFY_PROD_DEVTOOLS__,i||(A.fallbackContext=n?Ph():void 0),Ge=v(A)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(A.fallbackContext=void 0)}if(H!=="translate exists"&&ke(Ge)&&Ge===Ws||H==="translate exists"&&!Ge){const[er,Ln]=S();return n&&I?G(n):fe(er)}else{if(Re(Ge))return Ge;throw Le(we.UNEXPECTED_RETURN_TYPE)}};function Oe(...v){return ve(S=>Reflect.apply(hl,null,[S,...v]),()=>oi(...v),"translate",S=>Reflect.apply(S.t,S,[...v]),S=>S,S=>W(S))}function Mt(...v){const[S,H,G]=v;if(G&&!oe(G))throw Le(we.INVALID_ARGUMENT);return Oe(S,H,xe({resolvedMessage:!0},G||{}))}function Dt(...v){return ve(S=>Reflect.apply(gl,null,[S,...v]),()=>ai(...v),"datetime format",S=>Reflect.apply(S.d,S,[...v]),()=>Qa,S=>W(S))}function cn(...v){return ve(S=>Reflect.apply(yl,null,[S,...v]),()=>li(...v),"number format",S=>Reflect.apply(S.n,S,[...v]),()=>Qa,S=>W(S))}function $e(v){return v.map(S=>W(S)||ke(S)||Q(S)?xl(String(S)):S)}const Et={normalize:$e,interpolate:v=>v,type:"vnode"};function Ft(...v){return ve(S=>{let H;const G=S;try{G.processor=Et,H=Reflect.apply(hl,null,[G,...v])}finally{G.processor=null}return H},()=>oi(...v),"translate",S=>S[ci](...v),S=>[xl(S)],S=>me(S))}function Je(...v){return ve(S=>Reflect.apply(yl,null,[S,...v]),()=>li(...v),"number format",S=>S[fi](...v),Cl,S=>W(S)||me(S))}function $t(...v){return ve(S=>Reflect.apply(gl,null,[S,...v]),()=>ai(...v),"datetime format",S=>S[ui](...v),Cl,S=>W(S)||me(S))}function Ut(v){P=v,A.pluralRules=P}function _(v,S){return ve(()=>{if(!v)return!1;const H=W(S)?S:f.value,G=R(H),fe=A.messageResolver(G,v);return a?fe!=null:In(fe)||Ze(fe)||W(fe)},()=>[v],"translate exists",H=>Reflect.apply(H.te,H,[v,S]),zh,H=>Q(H))}function p(v){let S=null;const H=Ja(A,c.value,f.value);for(let G=0;G<H.length;G++){const fe=d.value[H[G]]||{},Re=A.messageResolver(fe,v);if(Re!=null){S=Re;break}}return S}function T(v){const S=p(v);return S??(n?n.tm(v)||{}:{})}function R(v){return d.value[v]||{}}function M(v,S){if(r){const H={[v]:S};for(const G in H)Ds(H,G)&&Gn(H[G]);S=H[v]}d.value[v]=S,A.messages=d.value}function $(v,S){d.value[v]=d.value[v]||{};const H={[v]:S};if(r)for(const G in H)Ds(H,G)&&Gn(H[G]);S=H[v],Us(S,d.value[v]),A.messages=d.value}function U(v){return u.value[v]||{}}function h(v,S){u.value[v]=S,A.datetimeFormats=u.value,bl(A,v,S)}function m(v,S){u.value[v]=xe(u.value[v]||{},S),A.datetimeFormats=u.value,bl(A,v,S)}function k(v){return g.value[v]||{}}function C(v,S){g.value[v]=S,A.numberFormats=g.value,wl(A,v,S)}function j(v,S){g.value[v]=xe(g.value[v]||{},S),A.numberFormats=g.value,wl(A,v,S)}Nl++,n&&Rs&&(Yt(n.locale,v=>{l&&(f.value=v,A.locale=v,Yn(A,f.value,c.value))}),Yt(n.fallbackLocale,v=>{l&&(c.value=v,A.fallbackLocale=v,Yn(A,f.value,c.value))}));const F={id:Nl,locale:Y,fallbackLocale:pe,get inheritLocale(){return l},set inheritLocale(v){l=v,v&&n&&(f.value=n.locale.value,c.value=n.fallbackLocale.value,Yn(A,f.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:nt,get modifiers(){return D},get pluralRules(){return P||{}},get isGlobal(){return i},get missingWarn(){return w},set missingWarn(v){w=v,A.missingWarn=w},get fallbackWarn(){return E},set fallbackWarn(v){E=v,A.fallbackWarn=E},get fallbackRoot(){return I},set fallbackRoot(v){I=v},get fallbackFormat(){return x},set fallbackFormat(v){x=v,A.fallbackFormat=x},get warnHtmlMessage(){return O},set warnHtmlMessage(v){O=v,A.warnHtmlMessage=v},get escapeParameter(){return L},set escapeParameter(v){L=v,A.escapeParameter=v},t:Oe,getLocaleMessage:R,setLocaleMessage:M,mergeLocaleMessage:$,getPostTranslationHandler:ce,setPostTranslationHandler:ie,getMissingHandler:Ye,setMissingHandler:dt,[Il]:Ut};return F.datetimeFormats=He,F.numberFormats=J,F.rt=Mt,F.te=_,F.tm=T,F.d=Dt,F.n=cn,F.getDateTimeFormat=U,F.setDateTimeFormat=h,F.mergeDateTimeFormat=m,F.getNumberFormat=k,F.setNumberFormat=C,F.mergeNumberFormat=j,F[Tl]=s,F[ci]=Ft,F[ui]=$t,F[fi]=Je,F}function Gh(e){const t=W(e.locale)?e.locale:vn,n=W(e.fallbackLocale)||me(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=de(e.missing)?e.missing:void 0,i=Q(e.silentTranslationWarn)||Pt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Q(e.silentFallbackWarn)||Pt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=B(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,c=de(e.postTranslation)?e.postTranslation:void 0,d=W(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,u=!!e.escapeParameterHtml,g=Q(e.sync)?e.sync:!0;let w=e.messages;if(B(e.sharedMessages)){const L=e.sharedMessages;w=Object.keys(L).reduce((P,A)=>{const V=P[A]||(P[A]={});return xe(V,L[A]),P},w||{})}const{__i18n:E,__root:I,__injectWithOption:x}=e,N=e.datetimeFormats,b=e.numberFormats,y=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:y,datetimeFormats:N,numberFormats:b,missing:s,missingWarn:i,fallbackWarn:r,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:f,postTranslation:c,warnHtmlMessage:d,escapeParameter:u,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:O,__i18n:E,__root:I,__injectWithOption:x}}function mi(e={},t){{const n=hi(Gh(e)),{__extender:s}=e,i={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return Q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=Q(r)?!r:r},get silentFallbackWarn(){return Q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=Q(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[o,a,l]=r,f={};let c=null,d=null;if(!W(o))throw Le(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:me(a)?c=a:B(a)&&(d=a),me(l)?c=l:B(l)&&(d=l),Reflect.apply(n.t,n,[u,c||d||{},f])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[o,a,l]=r,f={plural:1};let c=null,d=null;if(!W(o))throw Le(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:ke(a)?f.plural=a:me(a)?c=a:B(a)&&(d=a),W(l)?f.locale=l:me(l)?c=l:B(l)&&(d=l),Reflect.apply(n.t,n,[u,c||d||{},f])},te(r,o){return n.te(r,o)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,o){n.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){n.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,o){n.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){n.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,o){n.setNumberFormat(r,o)},mergeNumberFormat(r,o){n.mergeNumberFormat(r,o)},getChoiceIndex(r,o){return-1}};return i.__extender=s,i}}const pi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,i)=>[...s,...i.type===Ie?i.children:[i]],[]):t.reduce((n,s)=>{const i=e[s];return i&&(n[s]=i()),n},{})}function Al(e){return Ie}const Rl=Xt({name:"i18n-t",props:xe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ke(e)||!isNaN(e)}},pi),setup(e,t){const{slots:n,attrs:s}=t,i=e.i18n||on({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(d=>d!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=W(e.plural)?+e.plural:e.plural);const a=Bh(t,r),l=i[ci](e.keypath,a,o),f=xe({},s),c=W(e.tag)||oe(e.tag)?e.tag:Al();return ia(c,f,l)}}});function Xh(e){return me(e)&&!W(e[0])}function Ml(e,t,n,s){const{slots:i,attrs:r}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),W(e.format)?o.key=e.format:oe(e.format)&&(W(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((u,g)=>n.includes(g)?xe({},u,{[g]:e.format[g]}):u,{}));const l=s(e.value,o,a);let f=[o.key];me(l)?f=l.map((u,g)=>{const w=i[u.type],E=w?w({[u.type]:u.value,index:g,parts:l}):[u.value];return Xh(E)&&(E[0].key=`${u.type}-${g}`),E}):W(l)&&(f=[l]);const c=xe({},r),d=W(e.tag)||oe(e.tag)?e.tag:Al();return ia(d,c,f)}}const Dl=Xt({name:"i18n-n",props:xe({value:{type:Number,required:!0},format:{type:[String,Object]}},pi),setup(e,t){const n=e.i18n||on({useScope:e.scope,__useComponent:!0});return Ml(e,t,kl,(...s)=>n[fi](...s))}}),Fl=Xt({name:"i18n-d",props:xe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pi),setup(e,t){const n=e.i18n||on({useScope:e.scope,__useComponent:!0});return Ml(e,t,_l,(...s)=>n[ui](...s))}});function Zh(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Jh(e){const t=o=>{const{instance:a,modifiers:l,value:f}=o;if(!a||!a.$)throw Le(we.UNEXPECTED_ERROR);const c=Zh(e,a.$),d=$l(f);return[Reflect.apply(c.t,c,[...Ul(d)]),c]};return{created:(o,a)=>{const[l,f]=t(a);Rs&&e.global===f&&(o.__i18nWatcher=Yt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=f,o.textContent=l},unmounted:o=>{Rs&&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,f=$l(a);o.textContent=Reflect.apply(l.t,l,[...Ul(f)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function $l(e){if(W(e))return{path:e};if(B(e)){if(!("path"in e))throw Le(we.REQUIRED_VALUE,"path");return e}else throw Le(we.INVALID_VALUE)}function Ul(e){const{path:t,locale:n,args:s,choice:i,plural:r}=e,o={},a=s||{};return W(n)&&(o.locale=n),ke(i)&&(o.plural=i),ke(r)&&(o.plural=r),[t,a,o]}function qh(e,t,...n){const s=B(n[0])?n[0]:{},i=!!s.useI18nComponentName;(Q(s.globalInstall)?s.globalInstall:!0)&&([i?"i18n":Rl.name,"I18nT"].forEach(o=>e.component(o,Rl)),[Dl.name,"I18nN"].forEach(o=>e.component(o,Dl)),[Fl.name,"I18nD"].forEach(o=>e.component(o,Fl))),e.directive("t",Jh(t))}function Qh(e,t,n){return{beforeCreate(){const s=Un();if(!s)throw Le(we.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=jl(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=mi(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=jl(e,i);else{this.$i18n=mi({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Ol(t,i,i),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Un();if(!s)throw Le(we.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(s),delete this.$i18n}}}function jl(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[Il](t.pluralizationRules||e.pluralizationRules);const n=Hs(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const em=Nt("global-vue-i18n");function tm(e={},t){const n=__VUE_I18N_LEGACY_API__&&Q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=Q(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[o,a]=nm(e,n),l=Nt("");function f(u){return r.get(u)||null}function c(u,g){r.set(u,g)}function d(u){r.delete(u)}{const u={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(g,...w){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,u),B(w[0])){const x=w[0];u.__composerExtend=x.__composerExtend,u.__vueI18nExtend=x.__vueI18nExtend}let E=null;!n&&s&&(E=fm(g,u.global)),__VUE_I18N_FULL_INSTALL__&&qh(g,u,...w),__VUE_I18N_LEGACY_API__&&n&&g.mixin(Qh(a,a.__composer,u));const I=g.unmount;g.unmount=()=>{E&&E(),u.dispose(),I()}},get global(){return a},dispose(){o.stop()},__instances:r,__getInstance:f,__setInstance:c,__deleteInstance:d};return u}}function on(e={}){const t=Un();if(t==null)throw Le(we.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Le(we.NOT_INSTALLED);const n=sm(t),s=im(n),i=Ll(t),r=rm(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Le(we.NOT_AVAILABLE_IN_LEGACY_MODE);return cm(t,r,s,e)}if(r==="global")return Ol(s,e,i),s;if(r==="parent"){let l=om(n,t,e.__useComponent);return l==null&&(l=s),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=xe({},e);"__i18n"in i&&(l.__i18n=i.__i18n),s&&(l.__root=s),a=hi(l),o.__composerExtend&&(a[di]=o.__composerExtend(a)),lm(o,t,a),o.__setInstance(t,a)}return a}function nm(e,t,n){const s=lr();{const i=__VUE_I18N_LEGACY_API__&&t?s.run(()=>mi(e)):s.run(()=>hi(e));if(i==null)throw Le(we.UNEXPECTED_ERROR);return[s,i]}}function sm(e){{const t=Ke(e.isCE?em:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Le(e.isCE?we.NOT_INSTALLED_WITH_PROVIDE:we.UNEXPECTED_ERROR);return t}}function rm(e,t){return Ms(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function im(e){return e.mode==="composition"?e.global:e.global.__composer}function om(e,t,n=!1){let s=null;const i=t.root;let r=am(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[Tl]&&(s=null))}if(s!=null||i===r)break;r=r.parent}return s}function am(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function lm(e,t,n){Es(()=>{},t),vr(()=>{const s=n;e.__deleteInstance(t);const i=s[di];i&&(i(),delete s[di])},t)}function cm(e,t,n,s={}){const i=t==="local",r=ao(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Le(we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Q(s.inheritLocale)?s.inheritLocale:!W(s.locale),a=se(!i||o?n.locale.value:W(s.locale)?s.locale:vn),l=se(!i||o?n.fallbackLocale.value:W(s.fallbackLocale)||me(s.fallbackLocale)||B(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),f=se(Hs(a.value,s)),c=se(B(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),d=se(B(s.numberFormats)?s.numberFormats:{[a.value]:{}}),u=i?n.missingWarn:Q(s.missingWarn)||Pt(s.missingWarn)?s.missingWarn:!0,g=i?n.fallbackWarn:Q(s.fallbackWarn)||Pt(s.fallbackWarn)?s.fallbackWarn:!0,w=i?n.fallbackRoot:Q(s.fallbackRoot)?s.fallbackRoot:!0,E=!!s.fallbackFormat,I=de(s.missing)?s.missing:null,x=de(s.postTranslation)?s.postTranslation:null,N=i?n.warnHtmlMessage:Q(s.warnHtmlMessage)?s.warnHtmlMessage:!0,b=!!s.escapeParameter,y=i?n.modifiers:B(s.modifiers)?s.modifiers:{},O=s.pluralRules||i&&n.pluralRules;function L(){return[a.value,l.value,f.value,c.value,d.value]}const D=De({get:()=>r.value?r.value.locale.value:a.value,set:p=>{r.value&&(r.value.locale.value=p),a.value=p}}),P=De({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:p=>{r.value&&(r.value.fallbackLocale.value=p),l.value=p}}),A=De(()=>r.value?r.value.messages.value:f.value),V=De(()=>c.value),ne=De(()=>d.value);function Y(){return r.value?r.value.getPostTranslationHandler():x}function pe(p){r.value&&r.value.setPostTranslationHandler(p)}function nt(){return r.value?r.value.getMissingHandler():I}function He(p){r.value&&r.value.setMissingHandler(p)}function J(p){return L(),p()}function ce(...p){return r.value?J(()=>Reflect.apply(r.value.t,null,[...p])):J(()=>"")}function ie(...p){return r.value?Reflect.apply(r.value.rt,null,[...p]):""}function Ye(...p){return r.value?J(()=>Reflect.apply(r.value.d,null,[...p])):J(()=>"")}function dt(...p){return r.value?J(()=>Reflect.apply(r.value.n,null,[...p])):J(()=>"")}function ve(p){return r.value?r.value.tm(p):{}}function Oe(p,T){return r.value?r.value.te(p,T):!1}function Mt(p){return r.value?r.value.getLocaleMessage(p):{}}function Dt(p,T){r.value&&(r.value.setLocaleMessage(p,T),f.value[p]=T)}function cn(p,T){r.value&&r.value.mergeLocaleMessage(p,T)}function $e(p){return r.value?r.value.getDateTimeFormat(p):{}}function vt(p,T){r.value&&(r.value.setDateTimeFormat(p,T),c.value[p]=T)}function Et(p,T){r.value&&r.value.mergeDateTimeFormat(p,T)}function Ft(p){return r.value?r.value.getNumberFormat(p):{}}function Je(p,T){r.value&&(r.value.setNumberFormat(p,T),d.value[p]=T)}function $t(p,T){r.value&&r.value.mergeNumberFormat(p,T)}const Ut={get id(){return r.value?r.value.id:-1},locale:D,fallbackLocale:P,messages:A,datetimeFormats:V,numberFormats:ne,get inheritLocale(){return r.value?r.value.inheritLocale:o},set inheritLocale(p){r.value&&(r.value.inheritLocale=p)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(f.value)},get modifiers(){return r.value?r.value.modifiers:y},get pluralRules(){return r.value?r.value.pluralRules:O},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:u},set missingWarn(p){r.value&&(r.value.missingWarn=p)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(p){r.value&&(r.value.missingWarn=p)},get fallbackRoot(){return r.value?r.value.fallbackRoot:w},set fallbackRoot(p){r.value&&(r.value.fallbackRoot=p)},get fallbackFormat(){return r.value?r.value.fallbackFormat:E},set fallbackFormat(p){r.value&&(r.value.fallbackFormat=p)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:N},set warnHtmlMessage(p){r.value&&(r.value.warnHtmlMessage=p)},get escapeParameter(){return r.value?r.value.escapeParameter:b},set escapeParameter(p){r.value&&(r.value.escapeParameter=p)},t:ce,getPostTranslationHandler:Y,setPostTranslationHandler:pe,getMissingHandler:nt,setMissingHandler:He,rt:ie,d:Ye,n:dt,tm:ve,te:Oe,getLocaleMessage:Mt,setLocaleMessage:Dt,mergeLocaleMessage:cn,getDateTimeFormat:$e,setDateTimeFormat:vt,mergeDateTimeFormat:Et,getNumberFormat:Ft,setNumberFormat:Je,mergeNumberFormat:$t};function _(p){p.locale.value=a.value,p.fallbackLocale.value=l.value,Object.keys(f.value).forEach(T=>{p.mergeLocaleMessage(T,f.value[T])}),Object.keys(c.value).forEach(T=>{p.mergeDateTimeFormat(T,c.value[T])}),Object.keys(d.value).forEach(T=>{p.mergeNumberFormat(T,d.value[T])}),p.escapeParameter=b,p.fallbackFormat=E,p.fallbackRoot=w,p.fallbackWarn=g,p.missingWarn=u,p.warnHtmlMessage=N}return Lo(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Le(we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const p=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=p.locale.value,l.value=p.fallbackLocale.value,f.value=p.messages.value,c.value=p.datetimeFormats.value,d.value=p.numberFormats.value):i&&_(p)}),Ut}const um=["locale","fallbackLocale","availableLocales"],Wl=["t","rt","d","n","tm","te"];function fm(e,t){const n=Object.create(null);return um.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r)throw Le(we.UNEXPECTED_ERROR);const o=be(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,Wl.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r||!r.value)throw Le(we.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,r)}),()=>{delete e.config.globalProperties.$i18n,Wl.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Kh(),__INTLIFY_JIT_COMPILATION__?nl($h):nl(Fh),xh(ch),Sh(Ja),__INTLIFY_PROD_DEVTOOLS__){const e=yt();e.__INTLIFY__=!0,bh(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const dm={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",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment",edit:"Edit",save_editing:"Save"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",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",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}};function hm(){return!!navigator.userAgent.match(/Macintosh/)}function mm(e,t){const n=hm();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var Vs=(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))(Vs||{});const pm=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function Ks(e){return e<10?`0${e}`:`${e}`}function Hl(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function Vl(e){const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Ks(n)}-${Ks(s)}`}function Kl(e){e instanceof Date||(e=Hl(e));const t=new Date,n=Vl(e);if(Vl(t)===n){const s=e.getHours(),i=e.getMinutes();return`${Ks(s)}:${Ks(i)}`}return n}function gm(e){const{id:t,created_at:n,parent_id:s,ancestor_id:i,user_id:r,...o}=e;return{...o,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(i),status:Number(e.status),createdAt:Hl(n)}}const gi="awesome-comment-comments",zl=localStorage.getItem(gi),Tn=zl?JSON.parse(zl):{},zs=Jf("store",()=>{const e=Ke("postId"),t=Ke("comments"),n=Ke("total"),s=se(!!t?.length),i=se(0),r=se(""),o=se([]),a=se(n||0),l=Ke("ApiBaseUrl"),f=se(!1),c=se(!1);function d(E){const I={},x=[];E.forEach(b=>{w(Number(b.id));const y=gm(b);!b.ancestor_id||Number(b.ancestor_id)===0?I[b.id]=y:x.push(y)});const N=Tn[e];N&&(N.createdAt=new Date(N.createdAt),!N.ancestorId||Number(N.ancestorId)===0?I[N.id]=N:x.push(N)),x.forEach(b=>{if(b.ancestorId in I){const y=I[b.ancestorId];y.children=[b,...y.children||[]]}});for(const b in I){const y=I[b];y.children&&(y.children=y.children.sort((O,L)=>O.id-L.id))}return I}async function u(E=!1){if(f.value)return;r.value="",f.value=!0;let I;if(E&&t?.length)I=d(t);else{const x=new URLSearchParams;x.append("postId",e),x.append("start",i.value.toString());const N=await fetch(`${l}/api/comments?${x}`);if(!N.ok){r.value="Load comments failed. "+N.statusText,s.value=!0,f.value=!1;return}const b=await N.json();if(b.code!==0){r.value="Load comments failed. "+b.message,s.value=!0,f.value=!1;return}I=d(b.data||[]),a.value=b.meta?.total||b.data?.length||0}c.value=Object.keys(I).length>20,c.value&&delete I[Object.keys(I)[0]],Object.assign(o.value,I),s.value=!0,f.value=!1}function g(E,I,x,N=Vs.Pending,b,y){const{sub:O="",name:L="",picture:D="",email:P="",nickname:A=""}=x,V={id:E,postId:e,content:I,createdAt:new Date,user:{avatar:D,email:P,name:A||L},userId:O,status:N,isNew:!0};if(b||y){V.ancestorId=b,V.parentId=y;const ne=o.value[b];if(ne.children||(ne.children=[]),b===y)ne.children.unshift(V);else{const Y=ne.children.findIndex(pe=>Number(pe.id)===y);ne.children.splice(Y+1,0,V)}}else V.ancestorId=0,V.parentId=0,o.value={[E]:V,...o.value};a.value++,N!==Vs.Approved&&(Tn[e]=V,localStorage.setItem(gi,JSON.stringify(Tn)))}function w(E){Tn[e]?.id===E&&(delete Tn[e],localStorage.setItem(gi,JSON.stringify(Tn)))}return{isLoaded:s,message:r,postId:e,comments:o,total:a,start:i,hasMore:c,loadingMore:f,loadComments:u,addComment:g}}),_m={class:"ac-form-control bg-base-200 rounded-lg"},bm={class:"sr-only",for:"ac-comment"},ym=["placeholder"],km={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},wm={key:0,class:"text-xs text-neutral-400/40"},vm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},Em=["disabled"],Im={key:0,class:"ac-loading ac-loading-spinner"},Ys=Xt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,i=qr(),r=zs(),{t:o}=on(),a=Ke("ApiBaseUrl"),l=Ke("Auth0Domain"),f="0.7.18",c=se(),d=se(!1),u=se(n.content||""),g=se("");async function w(N){if(!i.user.value)return E();if(N.target.matches(":invalid"))return;const b=u.value.trim();if(!b)return;d.value=!0,g.value="";let y=a+"/api/comment",O="POST";n.currentId&&(y+="/"+n.currentId,O="PATCH");try{const L=await i.getAccessTokenSilently(),D=await fetch(y,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${L}`},body:JSON.stringify({comment:b,postId:r.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}`})}),P=await D.json();if(!D.ok||P.message){g.value="Failed to post comment: "+(P.message||"Unknown"),d.value=!1;return}const{id:A,status:V}=P.data;n.ancestorId||n.parentId?r.addComment(A,b,i.user.value,V,n.ancestorId,n.parentId):n.currentId?s("update",b):r.addComment(A,b,i.user.value,V),u.value="",s("close")}catch(L){g.value=L.message||String(L)}d.value=!1}function E(){i.loginWithPopup()}function I(N){mm(N,"Enter")&&w(N)}function x(){s("close")}return Es(()=>{c.value?.focus()}),(N,b)=>(q(),re("form",{class:"mb-6",onSubmit:Ff(w,["prevent"])},[ae("div",_m,[ae("label",bm,_e(Z(o)("your_comment")),1),ku(ae("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:Z(o)("placeholder"),required:"",onKeydown:[ga(I,["enter"]),ga(x,["esc"])],"onUpdate:modelValue":b[0]||(b[0]=y=>u.value=y)},null,40,ym),[[Rf,u.value]]),ae("div",km,[N.noVersion?Pe("",!0):(q(),re("div",wm,"v"+_e(Z(f)),1)),g.value?(q(),re("div",vm,_e(g.value),1)):Pe("",!0),ae("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:d.value},[d.value?(q(),re("span",Im)):Pe("",!0),N.currentId?(q(),re(Ie,{key:1},[qt(_e(Z(o)("save_editing")),1)],64)):N.parentId?(q(),re(Ie,{key:2},[qt(_e(Z(o)("post_reply")),1)],64)):(q(),re(Ie,{key:3},[qt(_e(Z(o)("post_comment")),1)],64))],8,Em)])])],32))}});function _i(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let an=_i();function Yl(e){an=e}const Gl=/[&<>"']/,Tm=new RegExp(Gl.source,"g"),Bl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Lm=new RegExp(Bl.source,"g"),Om={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xl=e=>Om[e];function ze(e,t){if(t){if(Gl.test(e))return e.replace(Tm,Xl)}else if(Bl.test(e))return e.replace(Lm,Xl);return e}const xm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Sm(e){return e.replace(xm,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Cm=/(^|[^\[])\^/g;function ue(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(i,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(Cm,"$1"),n=n.replace(i,o),s},getRegex:()=>new RegExp(n,t)};return s}function Zl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Bn={exec:()=>null};function Jl(e,t){const n=e.replace(/\|/g,(r,o,a)=>{let l=!1,f=o;for(;--f>=0&&a[f]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let i=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;i<s.length;i++)s[i]=s[i].trim().replace(/\\\|/g,"|");return s}function Gs(e,t,n){const s=e.length;if(s===0)return"";let i=0;for(;i<s;){const r=e.charAt(s-i-1);if(r===t&&!n)i++;else if(r!==t&&n)i++;else break}return e.slice(0,s-i)}function Nm(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}function ql(e,t,n,s){const i=t.href,r=t.title?ze(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:i,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:r,text:ze(o)}}function Pm(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
45
+ */const Kh="9.13.1";function Vh(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(yt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(yt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1)}const vl=vh.__EXTEND_POINT__,wt=Fs(vl);wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt();const El=tt.__EXTEND_POINT__,We=Fs(El),we={UNEXPECTED_RETURN_TYPE:El,INVALID_ARGUMENT:We(),MUST_BE_CALL_SETUP_TOP:We(),NOT_INSTALLED:We(),NOT_AVAILABLE_IN_LEGACY_MODE:We(),REQUIRED_VALUE:We(),INVALID_VALUE:We(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:We(),NOT_INSTALLED_WITH_PROVIDE:We(),UNEXPECTED_ERROR:We(),NOT_COMPATIBLE_LEGACY_VUE_I18N:We(),BRIDGE_SUPPORT_VUE_2_ONLY:We(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:We(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:We(),__EXTEND_POINT__:We()};function Le(e,...t){return yn(e,null,void 0)}const ci=Nt("__translateVNode"),ui=Nt("__datetimeParts"),fi=Nt("__numberParts"),Il=Nt("__setPluralRules"),Tl=Nt("__injectWithOption"),di=Nt("__dispose");function Yn(e){if(!oe(e))return e;for(const t in e)if(Ds(e,t))if(!t.includes("."))oe(e[t])&&Yn(e[t]);else{const n=t.split("."),s=n.length-1;let i=e,r=!1;for(let o=0;o<s;o++){if(n[o]in i||(i[n[o]]={}),!oe(i[n[o]])){r=!0;break}i=i[n[o]]}r||(i[n[s]]=e[t],delete e[t]),oe(i[n[s]])&&Yn(i[n[s]])}return e}function Hs(e,t){const{messages:n,__i18n:s,messageResolver:i,flatJson:r}=t,o=B(n)?n:me(s)?{}:{[e]:{}};if(me(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:f}=a;l?(o[l]=o[l]||{},Us(f,o[l])):Us(f,o)}else W(a)&&Us(JSON.parse(a),o)}),i==null&&r)for(const a in o)Ds(o,a)&&Yn(o[a]);return o}function Ll(e){return e.type}function Ol(e,t,n){let s=oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Hs(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const i=Object.keys(s);i.length&&i.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(oe(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(oe(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Sl(e){return Ne(Mn,null,e,0)}const xl="__INTLIFY_META__",Cl=()=>[],zh=()=>!1;let Nl=0;function Al(e){return(t,n,s,i)=>e(n,s,Un()||void 0,i)}const Gh=()=>{const e=Un();let t=null;return e&&(t=Ll(e)[xl])?{[xl]:t}:null};function hi(e={},t){const{__root:n,__injectWithOption:s}=e,i=n===void 0,r=e.flatJson,o=Rs?se:ao,a=!!e.translateExistCompatible;let l=Q(e.inheritLocale)?e.inheritLocale:!0;const f=o(n&&l?n.locale.value:W(e.locale)?e.locale:vn),c=o(n&&l?n.fallbackLocale.value:W(e.fallbackLocale)||me(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:f.value),d=o(Hs(f.value,e)),u=o(B(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),g=o(B(e.numberFormats)?e.numberFormats:{[f.value]:{}});let w=n?n.missingWarn:Q(e.missingWarn)||At(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:Q(e.fallbackWarn)||At(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:Q(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,N=de(e.missing)?e.missing:null,b=de(e.missing)?Al(e.missing):null,y=de(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const D=n?n.modifiers:B(e.modifiers)?e.modifiers:{};let A=e.pluralRules||n&&n.pluralRules,P;P=(()=>{i&&al(null);const v={version:Kh,locale:f.value,fallbackLocale:c.value,messages:d.value,modifiers:D,pluralRules:A,missing:b===null?void 0:b,missingWarn:w,fallbackWarn:E,fallbackFormat:S,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:O,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=u.value,v.numberFormats=g.value,v.__datetimeFormatters=B(P)?P.__datetimeFormatters:void 0,v.__numberFormatters=B(P)?P.__numberFormatters:void 0;const x=Ph(v);return i&&al(x),x})(),Gn(P,f.value,c.value);function ne(){return[f.value,c.value,d.value,u.value,g.value]}const G=De({get:()=>f.value,set:v=>{f.value=v,P.locale=f.value}}),pe=De({get:()=>c.value,set:v=>{c.value=v,P.fallbackLocale=c.value,Gn(P,f.value,v)}}),nt=De(()=>d.value),He=De(()=>u.value),J=De(()=>g.value);function ce(){return de(y)?y:null}function ie(v){y=v,P.postTranslation=v}function Ge(){return N}function dt(v){v!==null&&(b=Al(v)),N=v,P.missing=b}const ve=(v,x,H,Y,fe,Re)=>{ne();let Ye;try{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=n?Ah():void 0),Ye=v(P)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(P.fallbackContext=void 0)}if(H!=="translate exists"&&ke(Ye)&&Ye===Ws||H==="translate exists"&&!Ye){const[er,Ln]=x();return n&&I?Y(n):fe(er)}else{if(Re(Ye))return Ye;throw Le(we.UNEXPECTED_RETURN_TYPE)}};function Oe(...v){return ve(x=>Reflect.apply(hl,null,[x,...v]),()=>oi(...v),"translate",x=>Reflect.apply(x.t,x,[...v]),x=>x,x=>W(x))}function Mt(...v){const[x,H,Y]=v;if(Y&&!oe(Y))throw Le(we.INVALID_ARGUMENT);return Oe(x,H,Se({resolvedMessage:!0},Y||{}))}function Dt(...v){return ve(x=>Reflect.apply(gl,null,[x,...v]),()=>ai(...v),"datetime format",x=>Reflect.apply(x.d,x,[...v]),()=>Qa,x=>W(x))}function cn(...v){return ve(x=>Reflect.apply(yl,null,[x,...v]),()=>li(...v),"number format",x=>Reflect.apply(x.n,x,[...v]),()=>Qa,x=>W(x))}function $e(v){return v.map(x=>W(x)||ke(x)||Q(x)?Sl(String(x)):x)}const Et={normalize:$e,interpolate:v=>v,type:"vnode"};function Ft(...v){return ve(x=>{let H;const Y=x;try{Y.processor=Et,H=Reflect.apply(hl,null,[Y,...v])}finally{Y.processor=null}return H},()=>oi(...v),"translate",x=>x[ci](...v),x=>[Sl(x)],x=>me(x))}function Je(...v){return ve(x=>Reflect.apply(yl,null,[x,...v]),()=>li(...v),"number format",x=>x[fi](...v),Cl,x=>W(x)||me(x))}function $t(...v){return ve(x=>Reflect.apply(gl,null,[x,...v]),()=>ai(...v),"datetime format",x=>x[ui](...v),Cl,x=>W(x)||me(x))}function Ut(v){A=v,P.pluralRules=A}function _(v,x){return ve(()=>{if(!v)return!1;const H=W(x)?x:f.value,Y=R(H),fe=P.messageResolver(Y,v);return a?fe!=null:In(fe)||Ze(fe)||W(fe)},()=>[v],"translate exists",H=>Reflect.apply(H.te,H,[v,x]),zh,H=>Q(H))}function p(v){let x=null;const H=Ja(P,c.value,f.value);for(let Y=0;Y<H.length;Y++){const fe=d.value[H[Y]]||{},Re=P.messageResolver(fe,v);if(Re!=null){x=Re;break}}return x}function T(v){const x=p(v);return x??(n?n.tm(v)||{}:{})}function R(v){return d.value[v]||{}}function M(v,x){if(r){const H={[v]:x};for(const Y in H)Ds(H,Y)&&Yn(H[Y]);x=H[v]}d.value[v]=x,P.messages=d.value}function $(v,x){d.value[v]=d.value[v]||{};const H={[v]:x};if(r)for(const Y in H)Ds(H,Y)&&Yn(H[Y]);x=H[v],Us(x,d.value[v]),P.messages=d.value}function U(v){return u.value[v]||{}}function h(v,x){u.value[v]=x,P.datetimeFormats=u.value,bl(P,v,x)}function m(v,x){u.value[v]=Se(u.value[v]||{},x),P.datetimeFormats=u.value,bl(P,v,x)}function k(v){return g.value[v]||{}}function C(v,x){g.value[v]=x,P.numberFormats=g.value,wl(P,v,x)}function j(v,x){g.value[v]=Se(g.value[v]||{},x),P.numberFormats=g.value,wl(P,v,x)}Nl++,n&&Rs&&(Gt(n.locale,v=>{l&&(f.value=v,P.locale=v,Gn(P,f.value,c.value))}),Gt(n.fallbackLocale,v=>{l&&(c.value=v,P.fallbackLocale=v,Gn(P,f.value,c.value))}));const F={id:Nl,locale:G,fallbackLocale:pe,get inheritLocale(){return l},set inheritLocale(v){l=v,v&&n&&(f.value=n.locale.value,c.value=n.fallbackLocale.value,Gn(P,f.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:nt,get modifiers(){return D},get pluralRules(){return A||{}},get isGlobal(){return i},get missingWarn(){return w},set missingWarn(v){w=v,P.missingWarn=w},get fallbackWarn(){return E},set fallbackWarn(v){E=v,P.fallbackWarn=E},get fallbackRoot(){return I},set fallbackRoot(v){I=v},get fallbackFormat(){return S},set fallbackFormat(v){S=v,P.fallbackFormat=S},get warnHtmlMessage(){return O},set warnHtmlMessage(v){O=v,P.warnHtmlMessage=v},get escapeParameter(){return L},set escapeParameter(v){L=v,P.escapeParameter=v},t:Oe,getLocaleMessage:R,setLocaleMessage:M,mergeLocaleMessage:$,getPostTranslationHandler:ce,setPostTranslationHandler:ie,getMissingHandler:Ge,setMissingHandler:dt,[Il]:Ut};return F.datetimeFormats=He,F.numberFormats=J,F.rt=Mt,F.te=_,F.tm=T,F.d=Dt,F.n=cn,F.getDateTimeFormat=U,F.setDateTimeFormat=h,F.mergeDateTimeFormat=m,F.getNumberFormat=k,F.setNumberFormat=C,F.mergeNumberFormat=j,F[Tl]=s,F[ci]=Ft,F[ui]=$t,F[fi]=Je,F}function Yh(e){const t=W(e.locale)?e.locale:vn,n=W(e.fallbackLocale)||me(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=de(e.missing)?e.missing:void 0,i=Q(e.silentTranslationWarn)||At(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Q(e.silentFallbackWarn)||At(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=B(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,c=de(e.postTranslation)?e.postTranslation:void 0,d=W(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,u=!!e.escapeParameterHtml,g=Q(e.sync)?e.sync:!0;let w=e.messages;if(B(e.sharedMessages)){const L=e.sharedMessages;w=Object.keys(L).reduce((A,P)=>{const K=A[P]||(A[P]={});return Se(K,L[P]),A},w||{})}const{__i18n:E,__root:I,__injectWithOption:S}=e,N=e.datetimeFormats,b=e.numberFormats,y=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:y,datetimeFormats:N,numberFormats:b,missing:s,missingWarn:i,fallbackWarn:r,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:f,postTranslation:c,warnHtmlMessage:d,escapeParameter:u,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:O,__i18n:E,__root:I,__injectWithOption:S}}function mi(e={},t){{const n=hi(Yh(e)),{__extender:s}=e,i={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return Q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=Q(r)?!r:r},get silentFallbackWarn(){return Q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=Q(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[o,a,l]=r,f={};let c=null,d=null;if(!W(o))throw Le(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:me(a)?c=a:B(a)&&(d=a),me(l)?c=l:B(l)&&(d=l),Reflect.apply(n.t,n,[u,c||d||{},f])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[o,a,l]=r,f={plural:1};let c=null,d=null;if(!W(o))throw Le(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:ke(a)?f.plural=a:me(a)?c=a:B(a)&&(d=a),W(l)?f.locale=l:me(l)?c=l:B(l)&&(d=l),Reflect.apply(n.t,n,[u,c||d||{},f])},te(r,o){return n.te(r,o)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,o){n.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){n.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,o){n.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){n.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,o){n.setNumberFormat(r,o)},mergeNumberFormat(r,o){n.mergeNumberFormat(r,o)},getChoiceIndex(r,o){return-1}};return i.__extender=s,i}}const pi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,i)=>[...s,...i.type===Ie?i.children:[i]],[]):t.reduce((n,s)=>{const i=e[s];return i&&(n[s]=i()),n},{})}function Pl(e){return Ie}const Rl=Xt({name:"i18n-t",props:Se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ke(e)||!isNaN(e)}},pi),setup(e,t){const{slots:n,attrs:s}=t,i=e.i18n||on({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(d=>d!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=W(e.plural)?+e.plural:e.plural);const a=Bh(t,r),l=i[ci](e.keypath,a,o),f=Se({},s),c=W(e.tag)||oe(e.tag)?e.tag:Pl();return ia(c,f,l)}}});function Xh(e){return me(e)&&!W(e[0])}function Ml(e,t,n,s){const{slots:i,attrs:r}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),W(e.format)?o.key=e.format:oe(e.format)&&(W(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((u,g)=>n.includes(g)?Se({},u,{[g]:e.format[g]}):u,{}));const l=s(e.value,o,a);let f=[o.key];me(l)?f=l.map((u,g)=>{const w=i[u.type],E=w?w({[u.type]:u.value,index:g,parts:l}):[u.value];return Xh(E)&&(E[0].key=`${u.type}-${g}`),E}):W(l)&&(f=[l]);const c=Se({},r),d=W(e.tag)||oe(e.tag)?e.tag:Pl();return ia(d,c,f)}}const Dl=Xt({name:"i18n-n",props:Se({value:{type:Number,required:!0},format:{type:[String,Object]}},pi),setup(e,t){const n=e.i18n||on({useScope:e.scope,__useComponent:!0});return Ml(e,t,kl,(...s)=>n[fi](...s))}}),Fl=Xt({name:"i18n-d",props:Se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pi),setup(e,t){const n=e.i18n||on({useScope:e.scope,__useComponent:!0});return Ml(e,t,_l,(...s)=>n[ui](...s))}});function Zh(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Jh(e){const t=o=>{const{instance:a,modifiers:l,value:f}=o;if(!a||!a.$)throw Le(we.UNEXPECTED_ERROR);const c=Zh(e,a.$),d=$l(f);return[Reflect.apply(c.t,c,[...Ul(d)]),c]};return{created:(o,a)=>{const[l,f]=t(a);Rs&&e.global===f&&(o.__i18nWatcher=Gt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=f,o.textContent=l},unmounted:o=>{Rs&&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,f=$l(a);o.textContent=Reflect.apply(l.t,l,[...Ul(f)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function $l(e){if(W(e))return{path:e};if(B(e)){if(!("path"in e))throw Le(we.REQUIRED_VALUE,"path");return e}else throw Le(we.INVALID_VALUE)}function Ul(e){const{path:t,locale:n,args:s,choice:i,plural:r}=e,o={},a=s||{};return W(n)&&(o.locale=n),ke(i)&&(o.plural=i),ke(r)&&(o.plural=r),[t,a,o]}function qh(e,t,...n){const s=B(n[0])?n[0]:{},i=!!s.useI18nComponentName;(Q(s.globalInstall)?s.globalInstall:!0)&&([i?"i18n":Rl.name,"I18nT"].forEach(o=>e.component(o,Rl)),[Dl.name,"I18nN"].forEach(o=>e.component(o,Dl)),[Fl.name,"I18nD"].forEach(o=>e.component(o,Fl))),e.directive("t",Jh(t))}function Qh(e,t,n){return{beforeCreate(){const s=Un();if(!s)throw Le(we.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=jl(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=mi(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=jl(e,i);else{this.$i18n=mi({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Ol(t,i,i),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Un();if(!s)throw Le(we.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(s),delete this.$i18n}}}function jl(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[Il](t.pluralizationRules||e.pluralizationRules);const n=Hs(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const em=Nt("global-vue-i18n");function tm(e={},t){const n=__VUE_I18N_LEGACY_API__&&Q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=Q(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[o,a]=nm(e,n),l=Nt("");function f(u){return r.get(u)||null}function c(u,g){r.set(u,g)}function d(u){r.delete(u)}{const u={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(g,...w){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,u),B(w[0])){const S=w[0];u.__composerExtend=S.__composerExtend,u.__vueI18nExtend=S.__vueI18nExtend}let E=null;!n&&s&&(E=fm(g,u.global)),__VUE_I18N_FULL_INSTALL__&&qh(g,u,...w),__VUE_I18N_LEGACY_API__&&n&&g.mixin(Qh(a,a.__composer,u));const I=g.unmount;g.unmount=()=>{E&&E(),u.dispose(),I()}},get global(){return a},dispose(){o.stop()},__instances:r,__getInstance:f,__setInstance:c,__deleteInstance:d};return u}}function on(e={}){const t=Un();if(t==null)throw Le(we.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Le(we.NOT_INSTALLED);const n=sm(t),s=im(n),i=Ll(t),r=rm(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Le(we.NOT_AVAILABLE_IN_LEGACY_MODE);return cm(t,r,s,e)}if(r==="global")return Ol(s,e,i),s;if(r==="parent"){let l=om(n,t,e.__useComponent);return l==null&&(l=s),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Se({},e);"__i18n"in i&&(l.__i18n=i.__i18n),s&&(l.__root=s),a=hi(l),o.__composerExtend&&(a[di]=o.__composerExtend(a)),lm(o,t,a),o.__setInstance(t,a)}return a}function nm(e,t,n){const s=lr();{const i=__VUE_I18N_LEGACY_API__&&t?s.run(()=>mi(e)):s.run(()=>hi(e));if(i==null)throw Le(we.UNEXPECTED_ERROR);return[s,i]}}function sm(e){{const t=Ve(e.isCE?em:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Le(e.isCE?we.NOT_INSTALLED_WITH_PROVIDE:we.UNEXPECTED_ERROR);return t}}function rm(e,t){return Ms(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function im(e){return e.mode==="composition"?e.global:e.global.__composer}function om(e,t,n=!1){let s=null;const i=t.root;let r=am(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[Tl]&&(s=null))}if(s!=null||i===r)break;r=r.parent}return s}function am(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function lm(e,t,n){Es(()=>{},t),vr(()=>{const s=n;e.__deleteInstance(t);const i=s[di];i&&(i(),delete s[di])},t)}function cm(e,t,n,s={}){const i=t==="local",r=ao(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Le(we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Q(s.inheritLocale)?s.inheritLocale:!W(s.locale),a=se(!i||o?n.locale.value:W(s.locale)?s.locale:vn),l=se(!i||o?n.fallbackLocale.value:W(s.fallbackLocale)||me(s.fallbackLocale)||B(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),f=se(Hs(a.value,s)),c=se(B(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),d=se(B(s.numberFormats)?s.numberFormats:{[a.value]:{}}),u=i?n.missingWarn:Q(s.missingWarn)||At(s.missingWarn)?s.missingWarn:!0,g=i?n.fallbackWarn:Q(s.fallbackWarn)||At(s.fallbackWarn)?s.fallbackWarn:!0,w=i?n.fallbackRoot:Q(s.fallbackRoot)?s.fallbackRoot:!0,E=!!s.fallbackFormat,I=de(s.missing)?s.missing:null,S=de(s.postTranslation)?s.postTranslation:null,N=i?n.warnHtmlMessage:Q(s.warnHtmlMessage)?s.warnHtmlMessage:!0,b=!!s.escapeParameter,y=i?n.modifiers:B(s.modifiers)?s.modifiers:{},O=s.pluralRules||i&&n.pluralRules;function L(){return[a.value,l.value,f.value,c.value,d.value]}const D=De({get:()=>r.value?r.value.locale.value:a.value,set:p=>{r.value&&(r.value.locale.value=p),a.value=p}}),A=De({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:p=>{r.value&&(r.value.fallbackLocale.value=p),l.value=p}}),P=De(()=>r.value?r.value.messages.value:f.value),K=De(()=>c.value),ne=De(()=>d.value);function G(){return r.value?r.value.getPostTranslationHandler():S}function pe(p){r.value&&r.value.setPostTranslationHandler(p)}function nt(){return r.value?r.value.getMissingHandler():I}function He(p){r.value&&r.value.setMissingHandler(p)}function J(p){return L(),p()}function ce(...p){return r.value?J(()=>Reflect.apply(r.value.t,null,[...p])):J(()=>"")}function ie(...p){return r.value?Reflect.apply(r.value.rt,null,[...p]):""}function Ge(...p){return r.value?J(()=>Reflect.apply(r.value.d,null,[...p])):J(()=>"")}function dt(...p){return r.value?J(()=>Reflect.apply(r.value.n,null,[...p])):J(()=>"")}function ve(p){return r.value?r.value.tm(p):{}}function Oe(p,T){return r.value?r.value.te(p,T):!1}function Mt(p){return r.value?r.value.getLocaleMessage(p):{}}function Dt(p,T){r.value&&(r.value.setLocaleMessage(p,T),f.value[p]=T)}function cn(p,T){r.value&&r.value.mergeLocaleMessage(p,T)}function $e(p){return r.value?r.value.getDateTimeFormat(p):{}}function vt(p,T){r.value&&(r.value.setDateTimeFormat(p,T),c.value[p]=T)}function Et(p,T){r.value&&r.value.mergeDateTimeFormat(p,T)}function Ft(p){return r.value?r.value.getNumberFormat(p):{}}function Je(p,T){r.value&&(r.value.setNumberFormat(p,T),d.value[p]=T)}function $t(p,T){r.value&&r.value.mergeNumberFormat(p,T)}const Ut={get id(){return r.value?r.value.id:-1},locale:D,fallbackLocale:A,messages:P,datetimeFormats:K,numberFormats:ne,get inheritLocale(){return r.value?r.value.inheritLocale:o},set inheritLocale(p){r.value&&(r.value.inheritLocale=p)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(f.value)},get modifiers(){return r.value?r.value.modifiers:y},get pluralRules(){return r.value?r.value.pluralRules:O},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:u},set missingWarn(p){r.value&&(r.value.missingWarn=p)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(p){r.value&&(r.value.missingWarn=p)},get fallbackRoot(){return r.value?r.value.fallbackRoot:w},set fallbackRoot(p){r.value&&(r.value.fallbackRoot=p)},get fallbackFormat(){return r.value?r.value.fallbackFormat:E},set fallbackFormat(p){r.value&&(r.value.fallbackFormat=p)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:N},set warnHtmlMessage(p){r.value&&(r.value.warnHtmlMessage=p)},get escapeParameter(){return r.value?r.value.escapeParameter:b},set escapeParameter(p){r.value&&(r.value.escapeParameter=p)},t:ce,getPostTranslationHandler:G,setPostTranslationHandler:pe,getMissingHandler:nt,setMissingHandler:He,rt:ie,d:Ge,n:dt,tm:ve,te:Oe,getLocaleMessage:Mt,setLocaleMessage:Dt,mergeLocaleMessage:cn,getDateTimeFormat:$e,setDateTimeFormat:vt,mergeDateTimeFormat:Et,getNumberFormat:Ft,setNumberFormat:Je,mergeNumberFormat:$t};function _(p){p.locale.value=a.value,p.fallbackLocale.value=l.value,Object.keys(f.value).forEach(T=>{p.mergeLocaleMessage(T,f.value[T])}),Object.keys(c.value).forEach(T=>{p.mergeDateTimeFormat(T,c.value[T])}),Object.keys(d.value).forEach(T=>{p.mergeNumberFormat(T,d.value[T])}),p.escapeParameter=b,p.fallbackFormat=E,p.fallbackRoot=w,p.fallbackWarn=g,p.missingWarn=u,p.warnHtmlMessage=N}return Lo(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Le(we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const p=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=p.locale.value,l.value=p.fallbackLocale.value,f.value=p.messages.value,c.value=p.datetimeFormats.value,d.value=p.numberFormats.value):i&&_(p)}),Ut}const um=["locale","fallbackLocale","availableLocales"],Wl=["t","rt","d","n","tm","te"];function fm(e,t){const n=Object.create(null);return um.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r)throw Le(we.UNEXPECTED_ERROR);const o=be(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,Wl.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r||!r.value)throw Le(we.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,r)}),()=>{delete e.config.globalProperties.$i18n,Wl.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Vh(),__INTLIFY_JIT_COMPILATION__?nl($h):nl(Fh),Sh(ch),xh(Ja),__INTLIFY_PROD_DEVTOOLS__){const e=yt();e.__INTLIFY__=!0,bh(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const dm={de:{admin:"Admin",anonymous:"Anonym",approve_hint:"Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)",discussion:"Diskussion",edit:"Bearbeiten",load_more:"Mehr laden",login:"Anmelden",logout:"Abmelden",placeholder:"Schreiben Sie ein Kommentar...",post_comment:"Kommentar absenden",post_reply:"Antwort absenden",reply:"Antwort",reply_to:"Antwort auf",save_editing:"Speichern",ui_texts:["Seien Sie der Erste, der die Diskussion beginnt!","Beteiligen Sie sich an der Konversation (#)","Laden...","Kommentare laden"],your_comment:"Dein Kommentar"},en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",edit:"Edit",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",save_editing:"Save",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",edit:"Editar",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",save_editing:"Guardar",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},fr:{admin:"Admin",anonymous:"Anonyme",approve_hint:"Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)",discussion:"Discussion",edit:"Modifier",load_more:"Charger plus",login:"CONNEXION",logout:"Déconnexion",placeholder:"Écrivez un commentaire...",post_comment:"POSTER UN COMMENTAIRE",post_reply:"POSTER UNE RÉPONSE",reply:"Répondre",reply_to:"répondre à",save_editing:"Enregistrer",ui_texts:["Soyez le premier à lancer la discussion !","Rejoignez la conversation (#)","Chargement...","Charger les commentaires"],your_comment:"Votre commentaire"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",edit:"Edit",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",save_editing:"Simpan",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",edit:"Modifica",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",save_editing:"Salva",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",edit:"編集",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",save_editing:"保存",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",edit:"편집",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",save_editing:"저장",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",edit:"Editar",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",save_editing:"Salvar",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",edit:"แก้ไข",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",save_editing:"บันทึก",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",edit:"修改",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",save_editing:"保存",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",edit:"编辑",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",save_editing:"保存",your_comment:"您的评论"}};function hm(){return!!navigator.userAgent.match(/Macintosh/)}function mm(e,t){return(hm()?e.metaKey:e.ctrlKey)&&e.key===t}var Ks=(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))(Ks||{});const pm=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function Vs(e){return e<10?`0${e}`:`${e}`}function Hl(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function Kl(e){const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Vs(n)}-${Vs(s)}`}function Vl(e){e instanceof Date||(e=Hl(e));const t=new Date,n=Kl(e);if(Kl(t)===n){const s=e.getHours(),i=e.getMinutes();return`${Vs(s)}:${Vs(i)}`}return n}function gm(e){const{id:t,created_at:n,parent_id:s,ancestor_id:i,user_id:r,...o}=e;return{...o,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(i),status:Number(e.status),createdAt:Hl(n)}}const gi="awesome-comment-comments",zl=localStorage.getItem(gi),Tn=zl?JSON.parse(zl):{},zs=Jf("store",()=>{const e=Ve("postId"),t=Ve("comments"),n=Ve("total"),s=se(!!t?.length),i=se(0),r=se(""),o=se([]),a=se(n||0),l=Ve("ApiBaseUrl"),f=se(!1),c=se(!1);function d(E){const I={},S=[];E.forEach(b=>{w(Number(b.id));const y=gm(b);!b.ancestor_id||Number(b.ancestor_id)===0?I[b.id]=y:S.push(y)});const N=Tn[e];N&&(N.createdAt=new Date(N.createdAt),!N.ancestorId||Number(N.ancestorId)===0?I[N.id]=N:S.push(N)),S.forEach(b=>{if(b.ancestorId in I){const y=I[b.ancestorId];y.children=[b,...y.children||[]]}});for(const b in I){const y=I[b];y.children&&(y.children=y.children.sort((O,L)=>O.id-L.id))}return I}async function u(E=!1){if(f.value)return;r.value="",f.value=!0;let I;if(E&&t?.length)I=d(t);else{const S=new URLSearchParams;S.append("postId",e),S.append("start",i.value.toString());const N=await fetch(`${l}/api/comments?${S}`);if(!N.ok){r.value="Load comments failed. "+N.statusText,s.value=!0,f.value=!1;return}const b=await N.json();if(b.code!==0){r.value="Load comments failed. "+b.message,s.value=!0,f.value=!1;return}I=d(b.data||[]),a.value=b.meta?.total||b.data?.length||0}c.value=Object.keys(I).length>20,c.value&&delete I[Object.keys(I)[0]],Object.assign(o.value,I),s.value=!0,f.value=!1}function g(E,I,S,N=Ks.Pending,b,y){const{sub:O="",name:L="",picture:D="",email:A="",nickname:P=""}=S,K={id:E,postId:e,content:I,createdAt:new Date,user:{avatar:D,email:A,name:P||L},userId:O,status:N,isNew:!0};if(b||y){K.ancestorId=b,K.parentId=y;const ne=o.value[b];if(ne.children||(ne.children=[]),b===y)ne.children.unshift(K);else{const G=ne.children.findIndex(pe=>Number(pe.id)===y);ne.children.splice(G+1,0,K)}}else K.ancestorId=0,K.parentId=0,o.value={[E]:K,...o.value};a.value++,N!==Ks.Approved&&(Tn[e]=K,localStorage.setItem(gi,JSON.stringify(Tn)))}function w(E){Tn[e]?.id===E&&(delete Tn[e],localStorage.setItem(gi,JSON.stringify(Tn)))}return{isLoaded:s,message:r,postId:e,comments:o,total:a,start:i,hasMore:c,loadingMore:f,loadComments:u,addComment:g}}),_m={class:"ac-form-control bg-base-200 rounded-lg"},bm={class:"sr-only",for:"ac-comment"},ym=["placeholder"],km={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},wm={key:0,class:"text-xs text-neutral-400/40"},vm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},Em=["disabled"],Im={key:0,class:"ac-loading ac-loading-spinner"},Gs=Xt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,i=qr(),r=zs(),{t:o}=on(),a=Ve("ApiBaseUrl"),l=Ve("Auth0Domain"),f="0.7.20",c=se(),d=se(!1),u=se(n.content||""),g=se("");async function w(N){if(!i.user.value)return E();if(N.target.matches(":invalid"))return;const b=u.value.trim();if(!b)return;d.value=!0,g.value="";let y=a+"/api/comment",O="POST";n.currentId&&(y+="/"+n.currentId,O="PATCH");try{const L=await i.getAccessTokenSilently(),D=await fetch(y,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${L}`},body:JSON.stringify({comment:b,postId:r.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}`})}),A=await D.json();if(!D.ok||A.message){g.value="Failed to post comment: "+(A.message||"Unknown"),d.value=!1;return}const{id:P,status:K}=A.data;n.ancestorId||n.parentId?r.addComment(P,b,i.user.value,K,n.ancestorId,n.parentId):n.currentId?s("update",b):r.addComment(P,b,i.user.value,K),u.value="",s("close")}catch(L){g.value=L.message||String(L)}d.value=!1}function E(){i.loginWithPopup()}function I(N){mm(N,"Enter")&&w(N)}function S(){s("close")}return Es(()=>{c.value?.focus()}),(N,b)=>(q(),re("form",{class:"mb-6",onSubmit:Ff(w,["prevent"])},[ae("div",_m,[ae("label",bm,_e(Z(o)("your_comment")),1),ku(ae("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:Z(o)("placeholder"),required:"",onKeydown:[ga(I,["enter"]),ga(S,["esc"])],"onUpdate:modelValue":b[0]||(b[0]=y=>u.value=y)},null,40,ym),[[Rf,u.value]]),ae("div",km,[N.noVersion?Ae("",!0):(q(),re("div",wm,"v"+_e(Z(f)),1)),g.value?(q(),re("div",vm,_e(g.value),1)):Ae("",!0),ae("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:d.value},[d.value?(q(),re("span",Im)):Ae("",!0),N.currentId?(q(),re(Ie,{key:1},[qt(_e(Z(o)("save_editing")),1)],64)):N.parentId?(q(),re(Ie,{key:2},[qt(_e(Z(o)("post_reply")),1)],64)):(q(),re(Ie,{key:3},[qt(_e(Z(o)("post_comment")),1)],64))],8,Em)])])],32))}});function _i(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let an=_i();function Gl(e){an=e}const Yl=/[&<>"']/,Tm=new RegExp(Yl.source,"g"),Bl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Lm=new RegExp(Bl.source,"g"),Om={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xl=e=>Om[e];function ze(e,t){if(t){if(Yl.test(e))return e.replace(Tm,Xl)}else if(Bl.test(e))return e.replace(Lm,Xl);return e}const Sm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function xm(e){return e.replace(Sm,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Cm=/(^|[^\[])\^/g;function ue(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(i,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(Cm,"$1"),n=n.replace(i,o),s},getRegex:()=>new RegExp(n,t)};return s}function Zl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Bn={exec:()=>null};function Jl(e,t){const n=e.replace(/\|/g,(r,o,a)=>{let l=!1,f=o;for(;--f>=0&&a[f]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let i=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;i<s.length;i++)s[i]=s[i].trim().replace(/\\\|/g,"|");return s}function Ys(e,t,n){const s=e.length;if(s===0)return"";let i=0;for(;i<s;){const r=e.charAt(s-i-1);if(r===t&&!n)i++;else if(r!==t&&n)i++;else break}return e.slice(0,s-i)}function Nm(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}function ql(e,t,n,s){const i=t.href,r=t.title?ze(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:i,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:r,text:ze(o)}}function Am(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
46
46
  `).map(i=>{const r=i.match(/^\s+/);if(r===null)return i;const[o]=r;return o.length>=s.length?i.slice(s.length):i}).join(`
47
- `)}class Bs{options;rules;lexer;constructor(t){this.options=t||an}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const s=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?s:Gs(s,`
48
- `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],i=Pm(s,n[3]||"");return{type:"code",raw:s,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let s=n[2].trim();if(/#$/.test(s)){const i=Gs(s,"#");(this.options.pedantic||!i||/ $/.test(i))&&(s=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let s=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
49
- $1`);s=Gs(s.replace(/^ *>[ \t]?/gm,""),`
47
+ `)}class Bs{options;rules;lexer;constructor(t){this.options=t||an}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const s=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?s:Ys(s,`
48
+ `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],i=Am(s,n[3]||"");return{type:"code",raw:s,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let s=n[2].trim();if(/#$/.test(s)){const i=Ys(s,"#");(this.options.pedantic||!i||/ $/.test(i))&&(s=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let s=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
49
+ $1`);s=Ys(s.replace(/^ *>[ \t]?/gm,""),`
50
50
  `);const i=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(s);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:r,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let s=n[1].trim();const i=s.length>1,r={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");const o=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",l="",f=!1;for(;t;){let c=!1;if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;a=n[0],t=t.substring(a.length);let d=n[2].split(`
51
- `,1)[0].replace(/^\t+/,x=>" ".repeat(3*x.length)),u=t.split(`
51
+ `,1)[0].replace(/^\t+/,S=>" ".repeat(3*S.length)),u=t.split(`
52
52
  `,1)[0],g=0;this.options.pedantic?(g=2,l=d.trimStart()):(g=n[2].search(/[^ ]/),g=g>4?1:g,l=d.slice(g),g+=n[1].length);let w=!1;if(!d&&/^ *$/.test(u)&&(a+=u+`
53
- `,t=t.substring(u.length+1),c=!0),!c){const x=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),N=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),b=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const O=t.split(`
54
- `,1)[0];if(u=O,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),b.test(u)||y.test(u)||x.test(u)||N.test(t))break;if(u.search(/[^ ]/)>=g||!u.trim())l+=`
53
+ `,t=t.substring(u.length+1),c=!0),!c){const S=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),N=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),b=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const O=t.split(`
54
+ `,1)[0];if(u=O,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),b.test(u)||y.test(u)||S.test(u)||N.test(t))break;if(u.search(/[^ ]/)>=g||!u.trim())l+=`
55
55
  `+u.slice(g);else{if(w||d.search(/[^ ]/)>=4||b.test(d)||y.test(d)||N.test(d))break;l+=`
56
56
  `+u}!w&&!u.trim()&&(w=!0),a+=O+`
57
57
  `,t=t.substring(O.length+1),d=u.slice(g)}}r.loose||(f?r.loose=!0:/\n *\n *$/.test(a)&&(f=!0));let E=null,I;this.options.gfm&&(E=/^\[[ xX]\] /.exec(l),E&&(I=E[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:a,task:!!E,checked:I,loose:!1,text:l,tokens:[]}),r.raw+=a}r.items[r.items.length-1].raw=a.trimEnd(),r.items[r.items.length-1].text=l.trimEnd(),r.raw=r.raw.trimEnd();for(let c=0;c<r.items.length;c++)if(this.lexer.state.top=!1,r.items[c].tokens=this.lexer.blockTokens(r.items[c].text,[]),!r.loose){const d=r.items[c].tokens.filter(g=>g.type==="space"),u=d.length>0&&d.some(g=>/\n.*\n/.test(g.raw));r.loose=u}if(r.loose)for(let c=0;c<r.items.length;c++)r.items[c].loose=!0;return r}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const s=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:s,raw:n[0],href:i,title:r}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const s=Jl(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),r=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
58
58
  `):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(s.length===i.length){for(const a of i)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(const a of s)o.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of r)o.rows.push(Jl(a,o.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return o}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const s=n[1].charAt(n[1].length-1)===`
59
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:s,tokens:this.lexer.inline(s)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:ze(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const s=n[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const o=Gs(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{const o=Nm(n[2],"()");if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let i=n[2],r="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],r=o[3])}else r=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(s)?i=i.slice(1):i=i.slice(1,-1)),ql(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let s;if((s=this.rules.inline.reflink.exec(t))||(s=this.rules.inline.nolink.exec(t))){const i=(s[2]||s[1]).replace(/\s+/g," "),r=n[i.toLowerCase()];if(!r){const o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return ql(s,r,s[0],this.lexer)}}emStrong(t,n,s=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const o=[...i[0]].length-1;let a,l,f=o,c=0;const d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+o);(i=d.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=[...a].length,i[3]||i[4]){f+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(f-=l,f>0)continue;l=Math.min(l,l+f+c);const u=[...i[0]][0].length,g=t.slice(0,o+i.index+u+l);if(Math.min(o,l)%2){const E=g.slice(1,-1);return{type:"em",raw:g,text:E,tokens:this.lexer.inlineTokens(E)}}const w=g.slice(2,-2);return{type:"strong",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let s=n[2].replace(/\n/g," ");const i=/[^ ]/.test(s),r=/^ /.test(s)&&/ $/.test(s);return i&&r&&(s=s.substring(1,s.length-1)),s=ze(s,!0),{type:"codespan",raw:n[0],text:s}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let s,i;return n[2]==="@"?(s=ze(n[1]),i="mailto:"+s):(s=ze(n[1]),i=s),{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let s,i;if(n[2]==="@")s=ze(n[0]),i="mailto:"+s;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(r!==n[0]);s=ze(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let s;return this.lexer.state.inRawBlock?s=n[0]:s=ze(n[0]),{type:"text",raw:n[0],text:s}}}}const Am=/^(?: *(?:\n|$))+/,Rm=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Mm=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Dm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ql=/(?:[*+-]|\d{1,9}[.)])/,ec=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Ql).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),bi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Fm=/^[^\n]+/,yi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,$m=ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",yi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Um=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ql).getRegex(),Xs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ki=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jm=ue("^ {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",ki).replace("tag",Xs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tc=ue(bi).replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs).getRegex(),wi={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tc).getRegex(),code:Rm,def:$m,fences:Mm,heading:Dm,hr:Xn,html:jm,lheading:ec,list:Um,newline:Am,paragraph:tc,table:Bn,text:Fm},nc=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs).getRegex(),Wm={...wi,table:nc,paragraph:ue(bi).replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",nc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs).getRegex()},Hm={...wi,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ki).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:Bn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(bi).replace("hr",Xn).replace("heading",` *#{1,6} *[^
60
- ]`).replace("lheading",ec).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sc=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Vm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rc=/^( {2,}|\\)\n(?!\s*$)/,Km=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Zn="\\p{P}\\p{S}",zm=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Zn).getRegex(),Ym=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Gm=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Zn).getRegex(),Bm=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Zn).getRegex(),Xm=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Zn).getRegex(),Zm=ue(/\\([punct])/,"gu").replace(/punct/g,Zn).getRegex(),Jm=ue(/^<(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(),qm=ue(ki).replace("(?:-->|$)","-->").getRegex(),Qm=ue("^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",qm).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Zs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ep=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Zs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ic=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",Zs).replace("ref",yi).getRegex(),oc=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",yi).getRegex(),tp=ue("reflink|nolink(?!\\()","g").replace("reflink",ic).replace("nolink",oc).getRegex(),vi={_backpedal:Bn,anyPunctuation:Zm,autolink:Jm,blockSkip:Ym,br:rc,code:Vm,del:Bn,emStrongLDelim:Gm,emStrongRDelimAst:Bm,emStrongRDelimUnd:Xm,escape:sc,link:ep,nolink:oc,punctuation:zm,reflink:ic,reflinkSearch:tp,tag:Qm,text:Km,url:Bn},np={...vi,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",Zs).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Zs).getRegex()},Ei={...vi,escape:ue(sc).replace("])","~|])").getRegex(),url:ue(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},sp={...Ei,br:ue(rc).replace("{2,}","*").getRegex(),text:ue(Ei.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Js={normal:wi,gfm:Wm,pedantic:Hm},Jn={normal:vi,gfm:Ei,breaks:sp,pedantic:np};class ut{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||an,this.options.tokenizer=this.options.tokenizer||new Bs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Js.normal,inline:Jn.normal};this.options.pedantic?(n.block=Js.pedantic,n.inline=Jn.pedantic):this.options.gfm&&(n.block=Js.gfm,this.options.breaks?n.inline=Jn.breaks:n.inline=Jn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Js,inline:Jn}}static lex(t,n){return new ut(n).lex(t)}static lexInline(t,n){return new ut(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
59
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:s,tokens:this.lexer.inline(s)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:ze(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const s=n[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const o=Ys(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{const o=Nm(n[2],"()");if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let i=n[2],r="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],r=o[3])}else r=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(s)?i=i.slice(1):i=i.slice(1,-1)),ql(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let s;if((s=this.rules.inline.reflink.exec(t))||(s=this.rules.inline.nolink.exec(t))){const i=(s[2]||s[1]).replace(/\s+/g," "),r=n[i.toLowerCase()];if(!r){const o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return ql(s,r,s[0],this.lexer)}}emStrong(t,n,s=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const o=[...i[0]].length-1;let a,l,f=o,c=0;const d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+o);(i=d.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=[...a].length,i[3]||i[4]){f+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(f-=l,f>0)continue;l=Math.min(l,l+f+c);const u=[...i[0]][0].length,g=t.slice(0,o+i.index+u+l);if(Math.min(o,l)%2){const E=g.slice(1,-1);return{type:"em",raw:g,text:E,tokens:this.lexer.inlineTokens(E)}}const w=g.slice(2,-2);return{type:"strong",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let s=n[2].replace(/\n/g," ");const i=/[^ ]/.test(s),r=/^ /.test(s)&&/ $/.test(s);return i&&r&&(s=s.substring(1,s.length-1)),s=ze(s,!0),{type:"codespan",raw:n[0],text:s}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let s,i;return n[2]==="@"?(s=ze(n[1]),i="mailto:"+s):(s=ze(n[1]),i=s),{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let s,i;if(n[2]==="@")s=ze(n[0]),i="mailto:"+s;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(r!==n[0]);s=ze(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let s;return this.lexer.state.inRawBlock?s=n[0]:s=ze(n[0]),{type:"text",raw:n[0],text:s}}}}const Pm=/^(?: *(?:\n|$))+/,Rm=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Mm=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Dm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ql=/(?:[*+-]|\d{1,9}[.)])/,ec=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Ql).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),bi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Fm=/^[^\n]+/,yi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,$m=ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",yi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Um=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ql).getRegex(),Xs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ki=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jm=ue("^ {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",ki).replace("tag",Xs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tc=ue(bi).replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs).getRegex(),wi={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tc).getRegex(),code:Rm,def:$m,fences:Mm,heading:Dm,hr:Xn,html:jm,lheading:ec,list:Um,newline:Pm,paragraph:tc,table:Bn,text:Fm},nc=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs).getRegex(),Wm={...wi,table:nc,paragraph:ue(bi).replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",nc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xs).getRegex()},Hm={...wi,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ki).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:Bn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(bi).replace("hr",Xn).replace("heading",` *#{1,6} *[^
60
+ ]`).replace("lheading",ec).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sc=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Km=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rc=/^( {2,}|\\)\n(?!\s*$)/,Vm=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Zn="\\p{P}\\p{S}",zm=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Zn).getRegex(),Gm=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Ym=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Zn).getRegex(),Bm=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Zn).getRegex(),Xm=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Zn).getRegex(),Zm=ue(/\\([punct])/,"gu").replace(/punct/g,Zn).getRegex(),Jm=ue(/^<(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(),qm=ue(ki).replace("(?:-->|$)","-->").getRegex(),Qm=ue("^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",qm).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Zs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ep=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Zs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ic=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",Zs).replace("ref",yi).getRegex(),oc=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",yi).getRegex(),tp=ue("reflink|nolink(?!\\()","g").replace("reflink",ic).replace("nolink",oc).getRegex(),vi={_backpedal:Bn,anyPunctuation:Zm,autolink:Jm,blockSkip:Gm,br:rc,code:Km,del:Bn,emStrongLDelim:Ym,emStrongRDelimAst:Bm,emStrongRDelimUnd:Xm,escape:sc,link:ep,nolink:oc,punctuation:zm,reflink:ic,reflinkSearch:tp,tag:Qm,text:Vm,url:Bn},np={...vi,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",Zs).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Zs).getRegex()},Ei={...vi,escape:ue(sc).replace("])","~|])").getRegex(),url:ue(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},sp={...Ei,br:ue(rc).replace("{2,}","*").getRegex(),text:ue(Ei.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Js={normal:wi,gfm:Wm,pedantic:Hm},Jn={normal:vi,gfm:Ei,breaks:sp,pedantic:np};class ut{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||an,this.options.tokenizer=this.options.tokenizer||new Bs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Js.normal,inline:Jn.normal};this.options.pedantic?(n.block=Js.pedantic,n.inline=Jn.pedantic):this.options.gfm&&(n.block=Js.gfm,this.options.breaks?n.inline=Jn.breaks:n.inline=Jn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Js,inline:Jn}}static lex(t,n){return new ut(n).lex(t)}static lexInline(t,n){return new ut(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
61
61
  `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,l,f)=>l+" ".repeat(f.length));let s,i,r,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(s=a.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length),s.raw.length===1&&n.length>0?n[n.length-1].raw+=`
62
62
  `:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
63
63
  `+s.raw,i.text+=`
@@ -85,6 +85,6 @@ ${t}</blockquote>
85
85
  `}tablerow(t){return`<tr>
86
86
  ${t}</tr>
87
87
  `}tablecell(t,n){const s=n.header?"th":"td";return(n.align?`<${s} align="${n.align}">`:`<${s}>`)+t+`</${s}>
88
- `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,s){const i=Zl(t);if(i===null)return s;t=i;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+s+"</a>",r}image(t,n,s){const i=Zl(t);if(i===null)return s;t=i;let r=`<img src="${t}" alt="${s}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(t){return t}}class Ii{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,s){return""+s}image(t,n,s){return""+s}br(){return""}}class ft{options;renderer;textRenderer;constructor(t){this.options=t||an,this.options.renderer=this.options.renderer||new qs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ii}static parse(t,n){return new ft(n).parse(t)}static parseInline(t,n){return new ft(n).parseInline(t)}parse(t,n=!0){let s="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const o=r,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){s+=a||"";continue}}switch(r.type){case"space":continue;case"hr":{s+=this.renderer.hr();continue}case"heading":{const o=r;s+=this.renderer.heading(this.parseInline(o.tokens),o.depth,Sm(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{const o=r;s+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{const o=r;let a="",l="";for(let c=0;c<o.header.length;c++)l+=this.renderer.tablecell(this.parseInline(o.header[c].tokens),{header:!0,align:o.align[c]});a+=this.renderer.tablerow(l);let f="";for(let c=0;c<o.rows.length;c++){const d=o.rows[c];l="";for(let u=0;u<d.length;u++)l+=this.renderer.tablecell(this.parseInline(d[u].tokens),{header:!1,align:o.align[u]});f+=this.renderer.tablerow(l)}s+=this.renderer.table(a,f);continue}case"blockquote":{const o=r,a=this.parse(o.tokens);s+=this.renderer.blockquote(a);continue}case"list":{const o=r,a=o.ordered,l=o.start,f=o.loose;let c="";for(let d=0;d<o.items.length;d++){const u=o.items[d],g=u.checked,w=u.task;let E="";if(u.task){const I=this.renderer.checkbox(!!g);f?u.tokens.length>0&&u.tokens[0].type==="paragraph"?(u.tokens[0].text=I+" "+u.tokens[0].text,u.tokens[0].tokens&&u.tokens[0].tokens.length>0&&u.tokens[0].tokens[0].type==="text"&&(u.tokens[0].tokens[0].text=I+" "+u.tokens[0].tokens[0].text)):u.tokens.unshift({type:"text",text:I+" "}):E+=I+" "}E+=this.parse(u.tokens,f),c+=this.renderer.listitem(E,w,!!g)}s+=this.renderer.list(c,a,l);continue}case"html":{const o=r;s+=this.renderer.html(o.text,o.block);continue}case"paragraph":{const o=r;s+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=r,a=o.tokens?this.parseInline(o.tokens):o.text;for(;i+1<t.length&&t[i+1].type==="text";)o=t[++i],a+=`
88
+ `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,s){const i=Zl(t);if(i===null)return s;t=i;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+s+"</a>",r}image(t,n,s){const i=Zl(t);if(i===null)return s;t=i;let r=`<img src="${t}" alt="${s}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(t){return t}}class Ii{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,s){return""+s}image(t,n,s){return""+s}br(){return""}}class ft{options;renderer;textRenderer;constructor(t){this.options=t||an,this.options.renderer=this.options.renderer||new qs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ii}static parse(t,n){return new ft(n).parse(t)}static parseInline(t,n){return new ft(n).parseInline(t)}parse(t,n=!0){let s="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const o=r,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){s+=a||"";continue}}switch(r.type){case"space":continue;case"hr":{s+=this.renderer.hr();continue}case"heading":{const o=r;s+=this.renderer.heading(this.parseInline(o.tokens),o.depth,xm(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{const o=r;s+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{const o=r;let a="",l="";for(let c=0;c<o.header.length;c++)l+=this.renderer.tablecell(this.parseInline(o.header[c].tokens),{header:!0,align:o.align[c]});a+=this.renderer.tablerow(l);let f="";for(let c=0;c<o.rows.length;c++){const d=o.rows[c];l="";for(let u=0;u<d.length;u++)l+=this.renderer.tablecell(this.parseInline(d[u].tokens),{header:!1,align:o.align[u]});f+=this.renderer.tablerow(l)}s+=this.renderer.table(a,f);continue}case"blockquote":{const o=r,a=this.parse(o.tokens);s+=this.renderer.blockquote(a);continue}case"list":{const o=r,a=o.ordered,l=o.start,f=o.loose;let c="";for(let d=0;d<o.items.length;d++){const u=o.items[d],g=u.checked,w=u.task;let E="";if(u.task){const I=this.renderer.checkbox(!!g);f?u.tokens.length>0&&u.tokens[0].type==="paragraph"?(u.tokens[0].text=I+" "+u.tokens[0].text,u.tokens[0].tokens&&u.tokens[0].tokens.length>0&&u.tokens[0].tokens[0].type==="text"&&(u.tokens[0].tokens[0].text=I+" "+u.tokens[0].tokens[0].text)):u.tokens.unshift({type:"text",text:I+" "}):E+=I+" "}E+=this.parse(u.tokens,f),c+=this.renderer.listitem(E,w,!!g)}s+=this.renderer.list(c,a,l);continue}case"html":{const o=r;s+=this.renderer.html(o.text,o.block);continue}case"paragraph":{const o=r;s+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=r,a=o.tokens?this.parseInline(o.tokens):o.text;for(;i+1<t.length&&t[i+1].type==="text";)o=t[++i],a+=`
89
89
  `+(o.tokens?this.parseInline(o.tokens):o.text);s+=n?this.renderer.paragraph(a):a;continue}default:{const o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(t,n){n=n||this.renderer;let s="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}switch(r.type){case"escape":{const o=r;s+=n.text(o.text);break}case"html":{const o=r;s+=n.html(o.text);break}case"link":{const o=r;s+=n.link(o.href,o.title,this.parseInline(o.tokens,n));break}case"image":{const o=r;s+=n.image(o.href,o.title,o.text);break}case"strong":{const o=r;s+=n.strong(this.parseInline(o.tokens,n));break}case"em":{const o=r;s+=n.em(this.parseInline(o.tokens,n));break}case"codespan":{const o=r;s+=n.codespan(o.text);break}case"br":{s+=n.br();break}case"del":{const o=r;s+=n.del(this.parseInline(o.tokens,n));break}case"text":{const o=r;s+=n.text(o.text);break}default:{const o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}}class Qs{options;constructor(t){this.options=t||an}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}class rp{defaults=_i();options=this.setOptions;parse=this.#e(ut.lex,ft.parse);parseInline=this.#e(ut.lexInline,ft.parseInline);Parser=ft;Renderer=qs;TextRenderer=Ii;Lexer=ut;Tokenizer=Bs;Hooks=Qs;constructor(...t){this.use(...t)}walkTokens(t,n){let s=[];for(const i of t)switch(s=s.concat(n.call(this,i)),i.type){case"table":{const r=i;for(const o of r.header)s=s.concat(this.walkTokens(o.tokens,n));for(const o of r.rows)for(const a of o)s=s.concat(this.walkTokens(a.tokens,n));break}case"list":{const r=i;s=s.concat(this.walkTokens(r.items,n));break}default:{const r=i;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(o=>{const a=r[o].flat(1/0);s=s.concat(this.walkTokens(a,n))}):r.tokens&&(s=s.concat(this.walkTokens(r.tokens,n)))}}return s}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(s=>{const i={...s};if(i.async=this.defaults.async||i.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const o=n.renderers[r.name];o?n.renderers[r.name]=function(...a){let l=r.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[r.level];o?o.unshift(r.tokenizer):n[r.level]=[r.tokenizer],r.start&&(r.level==="block"?n.startBlock?n.startBlock.push(r.start):n.startBlock=[r.start]:r.level==="inline"&&(n.startInline?n.startInline.push(r.start):n.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(n.childTokens[r.name]=r.childTokens)}),i.extensions=n),s.renderer){const r=this.defaults.renderer||new qs(this.defaults);for(const o in s.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;const a=o,l=s.renderer[a],f=r[a];r[a]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=f.apply(r,c)),d||""}}i.renderer=r}if(s.tokenizer){const r=this.defaults.tokenizer||new Bs(this.defaults);for(const o in s.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=s.tokenizer[a],f=r[a];r[a]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=f.apply(r,c)),d}}i.tokenizer=r}if(s.hooks){const r=this.defaults.hooks||new Qs;for(const o in s.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const a=o,l=s.hooks[a],f=r[a];Qs.passThroughHooks.has(o)?r[a]=c=>{if(this.defaults.async)return Promise.resolve(l.call(r,c)).then(u=>f.call(r,u));const d=l.call(r,c);return f.call(r,d)}:r[a]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=f.apply(r,c)),d}}i.hooks=r}if(s.walkTokens){const r=this.defaults.walkTokens,o=s.walkTokens;i.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),r&&(l=l.concat(r.call(this,a))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return ut.lex(t,n??this.defaults)}parser(t,n){return ft.parse(t,n??this.defaults)}#e(t,n){return(s,i)=>{const r={...i},o={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const a=this.#t(!!o.silent,!!o.async);if(typeof s>"u"||s===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(s):s).then(l=>t(l,o)).then(l=>o.hooks?o.hooks.processAllTokens(l):l).then(l=>o.walkTokens?Promise.all(this.walkTokens(l,o.walkTokens)).then(()=>l):l).then(l=>n(l,o)).then(l=>o.hooks?o.hooks.postprocess(l):l).catch(a);try{o.hooks&&(s=o.hooks.preprocess(s));let l=t(s,o);o.hooks&&(l=o.hooks.processAllTokens(l)),o.walkTokens&&this.walkTokens(l,o.walkTokens);let f=n(l,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(l){return a(l)}}}#t(t,n){return s=>{if(s.message+=`
90
- Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+ze(s.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(s);throw s}}}const ln=new rp;function le(e,t){return ln.parse(e,t)}le.options=le.setOptions=function(e){return ln.setOptions(e),le.defaults=ln.defaults,Yl(le.defaults),le},le.getDefaults=_i,le.defaults=an,le.use=function(...e){return ln.use(...e),le.defaults=ln.defaults,Yl(le.defaults),le},le.walkTokens=function(e,t){return ln.walkTokens(e,t)},le.parseInline=ln.parseInline,le.Parser=ft,le.parser=ft.parse,le.Renderer=qs,le.TextRenderer=Ii,le.Lexer=ut,le.lexer=ut.lex,le.Tokenizer=Bs,le.Hooks=Qs,le.parse=le,le.options,le.setOptions,le.use,le.walkTokens,le.parseInline,ft.parse,ut.lex;function ip(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const i=t>>s*8&255;n+=("00"+i.toString(16)).slice(-2)}return n}const op=["id"],ap={class:"pt-2 pb-3 px-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},lp={class:"flex justify-between items-center font-sans"},cp={class:"flex items-center text-sm text-base-content dark:text-white"},up={class:"ac-avatar me-2"},fp={key:0,class:"w-6 h-6"},dp=["src","alt"],hp={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},mp=["data-tip"],pp=[ae("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],gp=["href"],_p=["datetime","title"],bp=["title","aria-label"],yp=[ae("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],kp=["href"],wp=["innerHTML"],vp={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},Ep=["href"],Ip={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},Tp=Xt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=on(),s=zs(),{user:i}=qr();let r;const o=se(Date.now()),a=se(!1),l=De(()=>t.comment.userId===i.value?.sub&&o.value-t.comment.createdAt.getTime()<36e5),f=De(()=>{if(t.comment.isAdmin)return n("admin");let u=t.comment.user?.name||n("anonymous");return u=u.replace(pm,""),u});function c(u){return`${location.origin}${location.pathname}#awcm-${u}`}function d(u){if(t.ancestorId){const w=s.comments[t.ancestorId]?.children?.find(E=>Number(E.id)===Number(u));return w?.isAdmin?n("admin"):w?.user?.name||w?.user?.email||""}return""}return Es(()=>{l.value&&(r=setInterval(()=>{o.value=Date.now(),l.value||clearInterval(r)},1e3))}),Oo(()=>{clearInterval(r)}),(u,g)=>{const w=du("comment-item",!0);return q(),re("div",{class:rs(["comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1",{"animated flash":u.comment.isNew}]),id:"awcm-"+u.comment.id,onAnimationend:g[6]||(g[6]=E=>u.comment.isNew=!1)},[ae("div",ap,[ae("header",lp,[ae("div",cp,[ae("div",up,[u.comment.user.avatar?(q(),re("div",fp,[ae("img",{class:"rounded-full max-w-full max-h-full",src:u.comment.user.avatar,alt:f.value},null,8,dp)])):(q(),re("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:ss({"background-color":Z(ip)(f.value)})},[ae("span",hp,_e(f.value.substring(0,1)),1)],4))]),qt(_e(f.value),1),u.comment.isAdmin?(q(),re("div",{key:0,class:"ac-tooltip ms-2","data-tip":Z(n)("admin")},pp,8,mp)):Pe("",!0),ae("a",{class:"ms-4 no-underline hover:underline hover:decoration-green-middle",href:c(u.comment.id)},[ae("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:u.comment.createdAt,title:Z(Kl)(u.comment.createdAt)},_e(Z(Kl)(u.comment.createdAt)),9,_p)],8,gp),l.value?(q(),re("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:g[0]||(g[0]=E=>a.value=!a.value)},_e(Z(n)("edit")),1)):Pe("",!0)]),ae("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 -me-1.5",type:"button",title:Z(n)("reply"),"aria-label":Z(n)("reply"),onClick:g[1]||(g[1]=E=>u.comment.isReplying=!u.comment.isReplying)},yp,8,bp)]),u.comment.isAdmin?(q(),re(Ie,{key:0},[u.comment.parentId&&u.comment.parentId!==u.comment.ancestorId?(q(),re("a",{key:0,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${u.comment.parentId}`,target:"_self"},"@"+_e(d(u.comment.parentId)),9,kp)):Pe("",!0),ae("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:Z(le)(u.comment.content)},null,8,wp)],64)):(q(),re("p",vp,[u.comment.parentId&&u.comment.parentId!==u.comment.ancestorId?(q(),re("a",{key:0,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${u.comment.parentId}`,target:"_self"},"@"+_e(d(u.comment.parentId)),9,Ep)):Pe("",!0),qt(_e(u.comment.content),1)])),u.comment.status===Z(Vs).Pending?(q(),re("p",Ip,_e(Z(n)("approve_hint")),1)):Pe("",!0)]),a.value?(q(),mn(Ys,{key:0,class:"mt-3","no-version":"",content:u.comment.content,"current-id":u.comment.id,status:u.comment.status,onUpdate:g[2]||(g[2]=E=>u.comment.content=E),onClose:g[3]||(g[3]=E=>a.value=!1)},null,8,["content","current-id","status"])):Pe("",!0),u.comment.isReplying&&u.isFirstLevel?(q(),mn(Ys,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":u.ancestorId,"parent-id":Number(u.comment.id),onClose:g[4]||(g[4]=E=>u.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0),u.comment.children?.length?(q(!0),re(Ie,{key:2},xo(u.comment.children,E=>(q(),mn(w,{class:"ms-7 mt-2",key:E.id,comment:E,"ancestor-id":u.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):Pe("",!0),u.comment.isReplying&&!u.isFirstLevel?(q(),mn(Ys,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":u.ancestorId,"parent-id":u.comment.id,onClose:g[5]||(g[5]=E=>u.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0)],42,op)}}}),Lp={key:0,class:"comments-wrapper"},Op=["disabled"],xp={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Sp={key:1,class:"pt-8 text-center"},Cp=[ae("span",{class:"ac-loading ac-loading-spinner"},null,-1)],Np=Xt({...{name:"CommentSections"},setup(e){const{t}=on(),n=zs();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(i,r)=>Z(n).isLoaded?(q(),re("div",Lp,[(q(!0),re(Ie,null,xo(Object.values(Z(n).comments).reverse(),o=>(q(),mn(Tp,{key:o.id,comment:o,"parent-id":o.parentId,"ancestor-id":o.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),Z(n).hasMore?(q(),re("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:s,disabled:Z(n).loadingMore},[Z(n).loadingMore?(q(),re("span",xp)):Pe("",!0),qt(_e(Z(t)("load_more")),1)],8,Op)):Pe("",!0)])):(q(),re("div",Sp,Cp))}}),Pp={class:"awesome-comment"},Ap={key:0,class:"ac-alert ac-alert-error mb-4"},Rp={class:"flex justify-between items-center py-2"},Mp={class:"text-lg font-bold text-base-content my-0"},Dp={key:0,class:"ac-loading ac-loading-spinner"},Fp={key:1,class:"ac-dropdown ac-dropdown-end"},$p={key:0,class:"ac-avatar flex",tabindex:"0"},Up={class:"w-6 h-6 rounded-full"},jp=["alt","src"],Wp={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Hp={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Vp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Kp={class:"text-base-content"},zp=["disabled"],Yp=["disabled"],Gp=Xt({__name:"App",setup(e){const t=zs(),{t:n}=on(),{isAuthenticated:s,isLoading:i,user:r,loginWithPopup:o,logout:a}=qr(),l=De(()=>{const d=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const u=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(u),d});function f(){o()}function c(){a({openUrl:!1})}return(d,u)=>(q(),re("div",Pp,[Z(t).message?(q(),re("div",Ap,[ae("p",null,_e(Z(t).message),1)])):Pe("",!0),ae("header",Rp,[ae("h2",Mp,_e(Z(n)("discussion"))+" ("+_e(l.value)+")",1),Z(i)?(q(),re("span",Dp)):(q(),re("div",Fp,[Z(s)&&Z(r)?(q(),re(Ie,{key:0},[Z(r).picture?(q(),re("label",$p,[ae("div",Up,[ae("img",{class:"w-full h-full block",alt:Z(r).name||Z(r).email,src:Z(r).picture},null,8,jp)])])):(q(),re("label",Wp,_e(Z(r).email),1)),ae("ul",Hp,[Z(r).picture?(q(),re("li",Vp,[ae("span",Kp,_e(Z(r).email),1)])):Pe("",!0),ae("li",null,[ae("button",{class:"border-0 bg-base-100",type:"button",disabled:Z(i),onClick:c},_e(Z(n)("logout")),9,zp)])])],64)):(q(),re("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:Z(i),onClick:f},_e(Z(n)("login")),9,Yp))]))]),Ne(Ys),Ne(Np)]))}}),ac=[];let Ti=0,lc=null;function Bp(e,t,n=navigator.language){const s=Wf(Gp),i=zf(),r=lc||Ra({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=tm({legacy:!1,locale:n,fallbackLocale:"en",messages:dm});return s.use(r),s.use(i),s.use(o),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:i,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,i??=this.clientId;const o=Bp(s,i,r);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.provide("Auth0Domain",s),o.provide("comments",ac),o.provide("total",Ti),o.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,lc=Ra({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await i.json();if(r.data){ac.push(...r.data),Ti=r.meta?.total||r.data.length;const o=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Ti});document.body.dispatchEvent(o)}}}}();
90
+ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+ze(s.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(s);throw s}}}const ln=new rp;function le(e,t){return ln.parse(e,t)}le.options=le.setOptions=function(e){return ln.setOptions(e),le.defaults=ln.defaults,Gl(le.defaults),le},le.getDefaults=_i,le.defaults=an,le.use=function(...e){return ln.use(...e),le.defaults=ln.defaults,Gl(le.defaults),le},le.walkTokens=function(e,t){return ln.walkTokens(e,t)},le.parseInline=ln.parseInline,le.Parser=ft,le.parser=ft.parse,le.Renderer=qs,le.TextRenderer=Ii,le.Lexer=ut,le.lexer=ut.lex,le.Tokenizer=Bs,le.Hooks=Qs,le.parse=le,le.options,le.setOptions,le.use,le.walkTokens,le.parseInline,ft.parse,ut.lex;function ip(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const i=t>>s*8&255;n+=("00"+i.toString(16)).slice(-2)}return n}const op=["id"],ap={class:"pt-2 pb-3 px-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},lp={class:"flex justify-between items-center font-sans"},cp={class:"flex items-center text-sm text-base-content dark:text-white"},up={class:"ac-avatar me-2"},fp={key:0,class:"w-6 h-6"},dp=["src","alt"],hp={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},mp=["data-tip"],pp=[ae("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],gp=["href"],_p=["datetime","title"],bp=["title","aria-label"],yp=[ae("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],kp=["href"],wp=["innerHTML"],vp={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},Ep=["href"],Ip={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},Tp=Xt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=on(),s=zs(),{user:i}=qr();let r;const o=se(Date.now()),a=se(!1),l=De(()=>t.comment.userId===i.value?.sub&&o.value-t.comment.createdAt.getTime()<36e5),f=De(()=>{if(t.comment.isAdmin)return n("admin");let u=t.comment.user?.name||n("anonymous");return u=u.replace(pm,""),u});function c(u){return`${location.origin}${location.pathname}#awcm-${u}`}function d(u){if(t.ancestorId){const w=s.comments[t.ancestorId]?.children?.find(E=>Number(E.id)===Number(u));return w?.isAdmin?n("admin"):w?.user?.name||w?.user?.email||""}return""}return Es(()=>{l.value&&(r=setInterval(()=>{o.value=Date.now(),l.value||clearInterval(r)},1e3))}),Oo(()=>{clearInterval(r)}),(u,g)=>{const w=du("comment-item",!0);return q(),re("div",{class:rs(["comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1",{"animated flash":u.comment.isNew}]),id:"awcm-"+u.comment.id,onAnimationend:g[6]||(g[6]=E=>u.comment.isNew=!1)},[ae("div",ap,[ae("header",lp,[ae("div",cp,[ae("div",up,[u.comment.user.avatar?(q(),re("div",fp,[ae("img",{class:"rounded-full max-w-full max-h-full",src:u.comment.user.avatar,alt:f.value},null,8,dp)])):(q(),re("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:ss({"background-color":Z(ip)(f.value)})},[ae("span",hp,_e(f.value.substring(0,1)),1)],4))]),qt(_e(f.value),1),u.comment.isAdmin?(q(),re("div",{key:0,class:"ac-tooltip ms-2","data-tip":Z(n)("admin")},pp,8,mp)):Ae("",!0),ae("a",{class:"ms-4 no-underline hover:underline hover:decoration-green-middle",href:c(u.comment.id)},[ae("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:u.comment.createdAt,title:Z(Vl)(u.comment.createdAt)},_e(Z(Vl)(u.comment.createdAt)),9,_p)],8,gp),l.value?(q(),re("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:g[0]||(g[0]=E=>a.value=!a.value)},_e(Z(n)("edit")),1)):Ae("",!0)]),ae("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 -me-1.5",type:"button",title:Z(n)("reply"),"aria-label":Z(n)("reply"),onClick:g[1]||(g[1]=E=>u.comment.isReplying=!u.comment.isReplying)},yp,8,bp)]),u.comment.isAdmin?(q(),re(Ie,{key:0},[u.comment.parentId&&u.comment.parentId!==u.comment.ancestorId?(q(),re("a",{key:0,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${u.comment.parentId}`,target:"_self"},"@"+_e(d(u.comment.parentId)),9,kp)):Ae("",!0),ae("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:Z(le)(u.comment.content)},null,8,wp)],64)):(q(),re("p",vp,[u.comment.parentId&&u.comment.parentId!==u.comment.ancestorId?(q(),re("a",{key:0,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${u.comment.parentId}`,target:"_self"},"@"+_e(d(u.comment.parentId)),9,Ep)):Ae("",!0),qt(_e(u.comment.content),1)])),u.comment.status===Z(Ks).Pending?(q(),re("p",Ip,_e(Z(n)("approve_hint")),1)):Ae("",!0)]),a.value?(q(),mn(Gs,{key:0,class:"mt-3","no-version":"",content:u.comment.content,"current-id":u.comment.id,status:u.comment.status,onUpdate:g[2]||(g[2]=E=>u.comment.content=E),onClose:g[3]||(g[3]=E=>a.value=!1)},null,8,["content","current-id","status"])):Ae("",!0),u.comment.isReplying&&u.isFirstLevel?(q(),mn(Gs,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":u.ancestorId,"parent-id":Number(u.comment.id),onClose:g[4]||(g[4]=E=>u.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Ae("",!0),u.comment.children?.length?(q(!0),re(Ie,{key:2},So(u.comment.children,E=>(q(),mn(w,{class:"ms-7 mt-2",key:E.id,comment:E,"ancestor-id":u.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):Ae("",!0),u.comment.isReplying&&!u.isFirstLevel?(q(),mn(Gs,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":u.ancestorId,"parent-id":u.comment.id,onClose:g[5]||(g[5]=E=>u.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Ae("",!0)],42,op)}}}),Lp={key:0,class:"comments-wrapper"},Op=["disabled"],Sp={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},xp={key:1,class:"pt-8 text-center"},Cp=[ae("span",{class:"ac-loading ac-loading-spinner"},null,-1)],Np=Xt({...{name:"CommentSections"},setup(e){const{t}=on(),n=zs();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(i,r)=>Z(n).isLoaded?(q(),re("div",Lp,[(q(!0),re(Ie,null,So(Object.values(Z(n).comments).reverse(),o=>(q(),mn(Tp,{key:o.id,comment:o,"parent-id":o.parentId,"ancestor-id":o.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),Z(n).hasMore?(q(),re("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:s,disabled:Z(n).loadingMore},[Z(n).loadingMore?(q(),re("span",Sp)):Ae("",!0),qt(_e(Z(t)("load_more")),1)],8,Op)):Ae("",!0)])):(q(),re("div",xp,Cp))}}),Ap={class:"awesome-comment"},Pp={key:0,class:"ac-alert ac-alert-error mb-4"},Rp={class:"flex justify-between items-center py-2"},Mp={class:"text-lg font-bold text-base-content my-0"},Dp={key:0,class:"ac-loading ac-loading-spinner"},Fp={key:1,class:"ac-dropdown ac-dropdown-end"},$p={key:0,class:"ac-avatar flex",tabindex:"0"},Up={class:"w-6 h-6 rounded-full"},jp=["alt","src"],Wp={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Hp={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Kp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Vp={class:"text-base-content"},zp=["disabled"],Gp=["disabled"],Yp=Xt({__name:"App",setup(e){const t=zs(),{t:n}=on(),{isAuthenticated:s,isLoading:i,user:r,loginWithPopup:o,logout:a}=qr(),l=De(()=>{const d=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const u=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(u),d});function f(){o()}function c(){a({openUrl:!1})}return(d,u)=>(q(),re("div",Ap,[Z(t).message?(q(),re("div",Pp,[ae("p",null,_e(Z(t).message),1)])):Ae("",!0),ae("header",Rp,[ae("h2",Mp,_e(Z(n)("discussion"))+" ("+_e(l.value)+")",1),Z(i)?(q(),re("span",Dp)):(q(),re("div",Fp,[Z(s)&&Z(r)?(q(),re(Ie,{key:0},[Z(r).picture?(q(),re("label",$p,[ae("div",Up,[ae("img",{class:"w-full h-full block",alt:Z(r).name||Z(r).email,src:Z(r).picture},null,8,jp)])])):(q(),re("label",Wp,_e(Z(r).email),1)),ae("ul",Hp,[Z(r).picture?(q(),re("li",Kp,[ae("span",Vp,_e(Z(r).email),1)])):Ae("",!0),ae("li",null,[ae("button",{class:"border-0 bg-base-100",type:"button",disabled:Z(i),onClick:c},_e(Z(n)("logout")),9,zp)])])],64)):(q(),re("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:Z(i),onClick:f},_e(Z(n)("login")),9,Gp))]))]),Ne(Gs),Ne(Np)]))}}),ac=[];let Ti=0,lc=null;function Bp(e,t,n=navigator.language){const s=Wf(Yp),i=zf(),r=lc||Ra({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=tm({legacy:!1,locale:n,fallbackLocale:"en",messages:dm});return s.use(r),s.use(i),s.use(o),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:i,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,i??=this.clientId;const o=Bp(s,i,r);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.provide("Auth0Domain",s),o.provide("comments",ac),o.provide("total",Ti),o.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,lc=Ra({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await i.json();if(r.data){ac.push(...r.data),Ti=r.meta?.total||r.data.length;const o=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Ti});document.body.dispatchEvent(o)}}}}();