@roudanio/awesome-comment 0.7.2 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/awesome-comment.iife.js +40 -40
- package/dist/awesome-comment.js +2701 -2652
- package/dist/awesome-comment.umd.js +41 -41
- package/dist/style.css +1 -1
- package/package.json +13 -13
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
(function(Wt,ae){typeof exports=="object"&&typeof module<"u"?module.exports=ae():typeof define=="function"&&define.amd?define(ae):(Wt=typeof globalThis<"u"?globalThis:Wt||self,Wt.AwesomeComment=ae())})(this,function(){"use strict";/**
|
|
2
|
-
* @vue/shared v3.4.
|
|
2
|
+
* @vue/shared v3.4.21
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function Wt(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ae={},ln=[],Xe=()=>{},nc=()=>!1,
|
|
6
|
-
* @vue/reactivity v3.4.
|
|
5
|
+
**/function Wt(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ae={},ln=[],Xe=()=>{},nc=()=>!1,qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),er=e=>e.startsWith("onUpdate:"),Te=Object.assign,tr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sc=Object.prototype.hasOwnProperty,ee=(e,t)=>sc.call(e,t),K=Array.isArray,cn=e=>Qn(e)==="[object Map]",Oo=e=>Qn(e)==="[object Set]",Y=e=>typeof e=="function",be=e=>typeof e=="string",un=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",So=e=>(pe(e)||Y(e))&&Y(e.then)&&Y(e.catch),xo=Object.prototype.toString,Qn=e=>xo.call(e),rc=e=>Qn(e).slice(8,-1),Co=e=>Qn(e)==="[object Object]",nr=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sn=Wt(",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))},oc=/-(\w)/g,rt=es(e=>e.replace(oc,(t,n)=>n?n.toUpperCase():"")),ic=/\B([A-Z])/g,Ht=es(e=>e.replace(ic,"-$1").toLowerCase()),ts=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),sr=es(e=>e?`on${ts(e)}`:""),Tt=(e,t)=>!Object.is(e,t),ns=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ss=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},rr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let No;const Po=()=>No||(No=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rs(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=be(s)?uc(s):rs(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(be(e)||pe(e))return e}const ac=/;(?![^(]*\))/g,lc=/:([^]+)/,cc=/\/\*[^]*?\*\//g;function uc(e){const t={};return e.replace(cc,"").split(ac).forEach(n=>{if(n){const s=n.split(lc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function os(e){let t="";if(be(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const s=os(e[n]);s&&(t+=s+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const fc=Wt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ao(e){return!!e||e===""}const ge=e=>be(e)?e:e==null?"":K(e)||pe(e)&&(e.toString===xo||!Y(e.toString))?JSON.stringify(e,Ro,2):String(e),Ro=(e,t)=>t&&t.__v_isRef?Ro(e,t.value):cn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[or(s,r)+" =>"]=o,n),{})}:Oo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>or(n))}:un(t)?or(t):pe(t)&&!K(t)&&!Co(t)?String(t):t,or=(e,t="")=>{var n;return un(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.4.21
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let Ge;class Mo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ge;try{return Ge=this,t()}finally{Ge=n}}}on(){Ge=this}off(){Ge=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function rr(e){return new Mo(e)}function dc(e,t=Ge){t&&t.active&&t.effects.push(e)}function Fo(){return Ge}function hc(e){Ge&&Ge.cleanups.push(e)}let Vt;class or{constructor(t,n,s,o){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,dc(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Tt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(mc(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Lt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=It,n=Vt;try{return It=!0,Vt=this,this._runnings++,Do(this),this.fn()}finally{$o(this),this._runnings--,Vt=n,It=t}}stop(){var t;this.active&&(Do(this),$o(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function mc(e){return e.value}function Do(e){e._trackId++,e._depsLength=0}function $o(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Uo(e.deps[t],e);e.deps.length=e._depsLength}}function Uo(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let It=!0,ir=0;const jo=[];function Tt(){jo.push(It),It=!1}function Lt(){const e=jo.pop();It=e===void 0?!0:e}function ar(){ir++}function lr(){for(ir--;!ir&&cr.length;)cr.shift()()}function Wo(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Uo(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const cr=[];function Ho(e,t,n){ar();for(const s of e.keys()){let o;s._dirtyLevel<t&&(o??(o=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(o??(o=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&cr.push(s.scheduler)))}lr()}const Vo=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},is=new WeakMap,Kt=Symbol(""),ur=Symbol("");function $e(e,t,n){if(It&&Vt){let s=is.get(e);s||is.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Vo(()=>s.delete(n))),Wo(Vt,o)}}function _t(e,t,n,s,o,r){const i=is.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&K(e)){const l=Number(s);i.forEach((h,f)=>{(f==="length"||!un(f)&&f>=l)&&a.push(h)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":K(e)?er(n)&&a.push(i.get("length")):(a.push(i.get(Kt)),cn(e)&&a.push(i.get(ur)));break;case"delete":K(e)||(a.push(i.get(Kt)),cn(e)&&a.push(i.get(ur)));break;case"set":cn(e)&&a.push(i.get(Kt));break}ar();for(const l of a)l&&Ho(l,4);lr()}function pc(e,t){var n;return(n=is.get(e))==null?void 0:n.get(t)}const gc=Wt("__proto__,__v_isRef,__isVue"),Ko=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(un)),zo=_c();function _c(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=J(this);for(let r=0,i=this.length;r<i;r++)$e(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(J)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Tt(),ar();const s=J(this)[t].apply(this,n);return lr(),Lt(),s}}),e}function bc(e){const t=J(this);return $e(t,"has",e),t.hasOwnProperty(e)}class Go{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const o=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Nc:ei:r?Qo:qo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=K(t);if(!o){if(i&&Q(zo,n))return Reflect.get(zo,n,s);if(n==="hasOwnProperty")return bc}const a=Reflect.get(t,n,s);return(un(n)?Ko.has(n):gc(n))||(o||$e(t,"get",n),r)?a:_e(a)?i&&er(n)?a:a.value:me(a)?o?ti(a):hs(a):a}}class Yo extends Go{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._shallow){const l=fn(r);if(!ms(s)&&!fn(s)&&(r=J(r),s=J(s)),!K(t)&&_e(r)&&!_e(s))return l?!1:(r.value=s,!0)}const i=K(t)&&er(n)?Number(n)<t.length:Q(t,n),a=Reflect.set(t,n,s,o);return t===J(o)&&(i?Et(s,r)&&_t(t,"set",n,s):_t(t,"add",n,s)),a}deleteProperty(t,n){const s=Q(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&_t(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!un(n)||!Ko.has(n))&&$e(t,"has",n),s}ownKeys(t){return $e(t,"iterate",K(t)?"length":Kt),Reflect.ownKeys(t)}}class yc extends Go{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const kc=new Yo,wc=new yc,vc=new Yo(!0),fr=e=>e,as=e=>Reflect.getPrototypeOf(e);function ls(e,t,n=!1,s=!1){e=e.__v_raw;const o=J(e),r=J(t);n||(Et(t,r)&&$e(o,"get",t),$e(o,"get",r));const{has:i}=as(o),a=s?fr:n?mr:On;if(i.call(o,t))return a(e.get(t));if(i.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function cs(e,t=!1){const n=this.__v_raw,s=J(n),o=J(e);return t||(Et(e,o)&&$e(s,"has",e),$e(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function us(e,t=!1){return e=e.__v_raw,!t&&$e(J(e),"iterate",Kt),Reflect.get(e,"size",e)}function Bo(e){e=J(e);const t=J(this);return as(t).has.call(t,e)||(t.add(e),_t(t,"add",e,e)),this}function Xo(e,t){t=J(t);const n=J(this),{has:s,get:o}=as(n);let r=s.call(n,e);r||(e=J(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Et(t,i)&&_t(n,"set",e,t):_t(n,"add",e,t),this}function Zo(e){const t=J(this),{has:n,get:s}=as(t);let o=n.call(t,e);o||(e=J(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&_t(t,"delete",e,void 0),r}function Jo(){const e=J(this),t=e.size!==0,n=e.clear();return t&&_t(e,"clear",void 0,void 0),n}function fs(e,t){return function(s,o){const r=this,i=r.__v_raw,a=J(i),l=t?fr:e?mr:On;return!e&&$e(a,"iterate",Kt),i.forEach((h,f)=>s.call(o,l(h),l(f),r))}}function ds(e,t,n){return function(...s){const o=this.__v_raw,r=J(o),i=cn(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,h=o[e](...s),f=n?fr:t?mr:On;return!t&&$e(r,"iterate",l?ur:Kt),{next(){const{value:d,done:m}=h.next();return m?{value:d,done:m}:{value:a?[f(d[0]),f(d[1])]:f(d),done:m}},[Symbol.iterator](){return this}}}}function Ot(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ec(){const e={get(r){return ls(this,r)},get size(){return us(this)},has:cs,add:Bo,set:Xo,delete:Zo,clear:Jo,forEach:fs(!1,!1)},t={get(r){return ls(this,r,!1,!0)},get size(){return us(this)},has:cs,add:Bo,set:Xo,delete:Zo,clear:Jo,forEach:fs(!1,!0)},n={get(r){return ls(this,r,!0)},get size(){return us(this,!0)},has(r){return cs.call(this,r,!0)},add:Ot("add"),set:Ot("set"),delete:Ot("delete"),clear:Ot("clear"),forEach:fs(!0,!1)},s={get(r){return ls(this,r,!0,!0)},get size(){return us(this,!0)},has(r){return cs.call(this,r,!0)},add:Ot("add"),set:Ot("set"),delete:Ot("delete"),clear:Ot("clear"),forEach:fs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ds(r,!1,!1),n[r]=ds(r,!0,!1),t[r]=ds(r,!1,!0),s[r]=ds(r,!0,!0)}),[e,n,t,s]}const[Ic,Tc,Lc,Oc]=Ec();function dr(e,t){const n=t?e?Oc:Lc:e?Tc:Ic;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Q(n,o)&&o in s?n:s,o,r)}const xc={get:dr(!1,!1)},Sc={get:dr(!1,!0)},Cc={get:dr(!0,!1)},qo=new WeakMap,Qo=new WeakMap,ei=new WeakMap,Nc=new WeakMap;function Pc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ac(e){return e.__v_skip||!Object.isExtensible(e)?0:Pc(rc(e))}function hs(e){return fn(e)?e:hr(e,!1,kc,xc,qo)}function Rc(e){return hr(e,!1,vc,Sc,Qo)}function ti(e){return hr(e,!0,wc,Cc,ei)}function hr(e,t,n,s,o){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Ac(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function xt(e){return fn(e)?xt(e.__v_raw):!!(e&&e.__v_isReactive)}function fn(e){return!!(e&&e.__v_isReadonly)}function ms(e){return!!(e&&e.__v_isShallow)}function ni(e){return xt(e)||fn(e)}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function ps(e){return Object.isExtensible(e)&&ss(e,"__v_skip",!0),e}const On=e=>me(e)?hs(e):e,mr=e=>me(e)?ti(e):e;class si{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new or(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=J(this);return(!t._cacheable||t.effect.dirty)&&Et(t._value,t._value=t.effect.run())&&gs(t,4),ri(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 Mc(e,t,n=!1){let s,o;const r=G(e);return r?(s=e,o=Xe):(s=e.get,o=e.set),new si(s,o,r||!o,n)}function ri(e){var t;It&&Vt&&(e=J(e),Wo(Vt,(t=e.dep)!=null?t:e.dep=Vo(()=>e.dep=void 0,e instanceof si?e:void 0)))}function gs(e,t=4,n){e=J(e);const s=e.dep;s&&Ho(s,t)}function _e(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return ii(e,!1)}function oi(e){return ii(e,!0)}function ii(e,t){return _e(e)?e:new Fc(e,t)}class Fc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:J(t),this._value=n?t:On(t)}get value(){return ri(this),this._value}set value(t){const n=this.__v_isShallow||ms(t)||fn(t);t=n?t:J(t),Et(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:On(t),gs(this,4))}}function Y(e){return _e(e)?e.value:e}const Dc={get:(e,t,n)=>Y(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return _e(o)&&!_e(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function ai(e){return xt(e)?e:new Proxy(e,Dc)}function $c(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=jc(e,n);return t}class Uc{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 pc(J(this._object),this._key)}}function jc(e,t,n){const s=e[t];return _e(s)?s:new Uc(e,t,n)}/**
|
|
10
|
-
* @vue/runtime-core v3.4.
|
|
9
|
+
**/let ze;class Mo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){ze=this}off(){ze=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function ir(e){return new Mo(e)}function dc(e,t=ze){t&&t.active&&t.effects.push(e)}function Fo(){return ze}function hc(e){ze&&ze.cleanups.push(e)}let Vt;class ar{constructor(t,n,s,o){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,dc(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ot();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(mc(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),St()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Lt,n=Vt;try{return Lt=!0,Vt=this,this._runnings++,Do(this),this.fn()}finally{$o(this),this._runnings--,Vt=n,Lt=t}}stop(){var t;this.active&&(Do(this),$o(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function mc(e){return e.value}function Do(e){e._trackId++,e._depsLength=0}function $o(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Uo(e.deps[t],e);e.deps.length=e._depsLength}}function Uo(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Lt=!0,lr=0;const jo=[];function Ot(){jo.push(Lt),Lt=!1}function St(){const e=jo.pop();Lt=e===void 0?!0:e}function cr(){lr++}function ur(){for(lr--;!lr&&fr.length;)fr.shift()()}function Wo(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Uo(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const fr=[];function Ho(e,t,n){cr();for(const s of e.keys()){let o;s._dirtyLevel<t&&(o??(o=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(o??(o=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&fr.push(s.scheduler)))}ur()}const Vo=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},is=new WeakMap,Kt=Symbol(""),dr=Symbol("");function Ue(e,t,n){if(Lt&&Vt){let s=is.get(e);s||is.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Vo(()=>s.delete(n))),Wo(Vt,o)}}function _t(e,t,n,s,o,r){const i=is.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&K(e)){const l=Number(s);i.forEach((h,d)=>{(d==="length"||!un(d)&&d>=l)&&a.push(h)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":K(e)?nr(n)&&a.push(i.get("length")):(a.push(i.get(Kt)),cn(e)&&a.push(i.get(dr)));break;case"delete":K(e)||(a.push(i.get(Kt)),cn(e)&&a.push(i.get(dr)));break;case"set":cn(e)&&a.push(i.get(Kt));break}cr();for(const l of a)l&&Ho(l,4);ur()}function pc(e,t){var n;return(n=is.get(e))==null?void 0:n.get(t)}const gc=Wt("__proto__,__v_isRef,__isVue"),Ko=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(un)),zo=_c();function _c(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=q(this);for(let r=0,i=this.length;r<i;r++)Ue(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(q)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ot(),cr();const s=q(this)[t].apply(this,n);return ur(),St(),s}}),e}function bc(e){const t=q(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Go{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Nc:ei:r?Qo:qo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=K(t);if(!o){if(i&&ee(zo,n))return Reflect.get(zo,n,s);if(n==="hasOwnProperty")return bc}const a=Reflect.get(t,n,s);return(un(n)?Ko.has(n):gc(n))||(o||Ue(t,"get",n),r)?a:_e(a)?i&&nr(n)?a:a.value:pe(a)?o?ti(a):hs(a):a}}class Yo extends Go{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._isShallow){const l=fn(r);if(!ms(s)&&!fn(s)&&(r=q(r),s=q(s)),!K(t)&&_e(r)&&!_e(s))return l?!1:(r.value=s,!0)}const i=K(t)&&nr(n)?Number(n)<t.length:ee(t,n),a=Reflect.set(t,n,s,o);return t===q(o)&&(i?Tt(s,r)&&_t(t,"set",n,s):_t(t,"add",n,s)),a}deleteProperty(t,n){const s=ee(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&_t(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!un(n)||!Ko.has(n))&&Ue(t,"has",n),s}ownKeys(t){return Ue(t,"iterate",K(t)?"length":Kt),Reflect.ownKeys(t)}}class yc extends Go{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const kc=new Yo,wc=new yc,vc=new Yo(!0),hr=e=>e,as=e=>Reflect.getPrototypeOf(e);function ls(e,t,n=!1,s=!1){e=e.__v_raw;const o=q(e),r=q(t);n||(Tt(t,r)&&Ue(o,"get",t),Ue(o,"get",r));const{has:i}=as(o),a=s?hr:n?gr:xn;if(i.call(o,t))return a(e.get(t));if(i.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function cs(e,t=!1){const n=this.__v_raw,s=q(n),o=q(e);return t||(Tt(e,o)&&Ue(s,"has",e),Ue(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function us(e,t=!1){return e=e.__v_raw,!t&&Ue(q(e),"iterate",Kt),Reflect.get(e,"size",e)}function Bo(e){e=q(e);const t=q(this);return as(t).has.call(t,e)||(t.add(e),_t(t,"add",e,e)),this}function Xo(e,t){t=q(t);const n=q(this),{has:s,get:o}=as(n);let r=s.call(n,e);r||(e=q(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Tt(t,i)&&_t(n,"set",e,t):_t(n,"add",e,t),this}function Zo(e){const t=q(this),{has:n,get:s}=as(t);let o=n.call(t,e);o||(e=q(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&_t(t,"delete",e,void 0),r}function Jo(){const e=q(this),t=e.size!==0,n=e.clear();return t&&_t(e,"clear",void 0,void 0),n}function fs(e,t){return function(s,o){const r=this,i=r.__v_raw,a=q(i),l=t?hr:e?gr:xn;return!e&&Ue(a,"iterate",Kt),i.forEach((h,d)=>s.call(o,l(h),l(d),r))}}function ds(e,t,n){return function(...s){const o=this.__v_raw,r=q(o),i=cn(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,h=o[e](...s),d=n?hr:t?gr:xn;return!t&&Ue(r,"iterate",l?dr:Kt),{next(){const{value:f,done:m}=h.next();return m?{value:f,done:m}:{value:a?[d(f[0]),d(f[1])]:d(f),done:m}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ec(){const e={get(r){return ls(this,r)},get size(){return us(this)},has:cs,add:Bo,set:Xo,delete:Zo,clear:Jo,forEach:fs(!1,!1)},t={get(r){return ls(this,r,!1,!0)},get size(){return us(this)},has:cs,add:Bo,set:Xo,delete:Zo,clear:Jo,forEach:fs(!1,!0)},n={get(r){return ls(this,r,!0)},get size(){return us(this,!0)},has(r){return cs.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:fs(!0,!1)},s={get(r){return ls(this,r,!0,!0)},get size(){return us(this,!0)},has(r){return cs.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:fs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ds(r,!1,!1),n[r]=ds(r,!0,!1),t[r]=ds(r,!1,!0),s[r]=ds(r,!0,!0)}),[e,n,t,s]}const[Ic,Tc,Lc,Oc]=Ec();function mr(e,t){const n=t?e?Oc:Lc:e?Tc:Ic;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(ee(n,o)&&o in s?n:s,o,r)}const Sc={get:mr(!1,!1)},xc={get:mr(!1,!0)},Cc={get:mr(!0,!1)},qo=new WeakMap,Qo=new WeakMap,ei=new WeakMap,Nc=new WeakMap;function Pc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ac(e){return e.__v_skip||!Object.isExtensible(e)?0:Pc(rc(e))}function hs(e){return fn(e)?e:pr(e,!1,kc,Sc,qo)}function Rc(e){return pr(e,!1,vc,xc,Qo)}function ti(e){return pr(e,!0,wc,Cc,ei)}function pr(e,t,n,s,o){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Ac(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function Ct(e){return fn(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function fn(e){return!!(e&&e.__v_isReadonly)}function ms(e){return!!(e&&e.__v_isShallow)}function ni(e){return Ct(e)||fn(e)}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function ps(e){return Object.isExtensible(e)&&ss(e,"__v_skip",!0),e}const xn=e=>pe(e)?hs(e):e,gr=e=>pe(e)?ti(e):e;class si{constructor(t,n,s,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ar(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=q(this);return(!t._cacheable||t.effect.dirty)&&Tt(t._value,t._value=t.effect.run())&&gs(t,4),ri(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 Mc(e,t,n=!1){let s,o;const r=Y(e);return r?(s=e,o=Xe):(s=e.get,o=e.set),new si(s,o,r||!o,n)}function ri(e){var t;Lt&&Vt&&(e=q(e),Wo(Vt,(t=e.dep)!=null?t:e.dep=Vo(()=>e.dep=void 0,e instanceof si?e:void 0)))}function gs(e,t=4,n){e=q(e);const s=e.dep;s&&Ho(s,t)}function _e(e){return!!(e&&e.__v_isRef===!0)}function te(e){return ii(e,!1)}function oi(e){return ii(e,!0)}function ii(e,t){return _e(e)?e:new Fc(e,t)}class Fc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:q(t),this._value=n?t:xn(t)}get value(){return ri(this),this._value}set value(t){const n=this.__v_isShallow||ms(t)||fn(t);t=n?t:q(t),Tt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xn(t),gs(this,4))}}function B(e){return _e(e)?e.value:e}const Dc={get:(e,t,n)=>B(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return _e(o)&&!_e(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function ai(e){return Ct(e)?e:new Proxy(e,Dc)}function $c(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=jc(e,n);return t}class Uc{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 pc(q(this._object),this._key)}}function jc(e,t,n){const s=e[t];return _e(s)?s:new Uc(e,t,n)}/**
|
|
10
|
+
* @vue/runtime-core v3.4.21
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const
|
|
13
|
+
**/const Cn=[];function Mp(e,...t){Ot();const n=Cn.length?Cn[Cn.length-1].component:null,s=n&&n.appContext.config.warnHandler,o=Wc();if(s)bt(s,n,11,[e+t.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,o.map(({vnode:r})=>`at <${Qi(n,r.type)}>`).join(`
|
|
14
14
|
`),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push(`
|
|
15
|
-
`,...Hc(o)),console.warn(...r)}
|
|
16
|
-
`],...Vc(n))}),t}function Vc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,o=` at <${Qi(e.component,e.type,s)}`,r=">"+n;return e.props?[o,...Kc(e.props),r]:[o+r]}function Kc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...li(s,e[s]))}),n.length>3&&t.push(" ..."),t}function li(e,t,n){return be(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:_e(t)?(t=li(e,J(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):G(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=J(t),n?t:[`${e}=`,t])}function bt(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){_s(r,t,n)}return o}function Qe(e,t,n,s){if(G(e)){const r=bt(e,t,n,s);return r&&xo(r)&&r.catch(i=>{_s(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Qe(e[r],t,n,s));return o}function _s(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const h=r.ec;if(h){for(let f=0;f<h.length;f++)if(h[f](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){bt(l,null,10,[e,i,a]);return}}zc(e,n,o,s)}function zc(e,t,n,s=!0){console.error(e)}let Sn=!1,pr=!1;const xe=[];let ot=0;const dn=[];let St=null,zt=0;const ci=Promise.resolve();let gr=null;function ui(e){const t=gr||ci;return e?t.then(this?e.bind(this):e):t}function Gc(e){let t=ot+1,n=xe.length;for(;t<n;){const s=t+n>>>1,o=xe[s],r=Cn(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function _r(e){(!xe.length||!xe.includes(e,Sn&&e.allowRecurse?ot+1:ot))&&(e.id==null?xe.push(e):xe.splice(Gc(e.id),0,e),fi())}function fi(){!Sn&&!pr&&(pr=!0,gr=ci.then(mi))}function Yc(e){const t=xe.indexOf(e);t>ot&&xe.splice(t,1)}function Bc(e){K(e)?dn.push(...e):(!St||!St.includes(e,e.allowRecurse?zt+1:zt))&&dn.push(e),fi()}function di(e,t,n=Sn?ot+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 hi(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>Cn(n)-Cn(s));if(dn.length=0,St){St.push(...t);return}for(St=t,zt=0;zt<St.length;zt++)St[zt]();St=null,zt=0}}const Cn=e=>e.id==null?1/0:e.id,Xc=(e,t)=>{const n=Cn(e)-Cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mi(e){pr=!1,Sn=!0,xe.sort(Xc);try{for(ot=0;ot<xe.length;ot++){const t=xe[ot];t&&t.active!==!1&&bt(t,null,14)}}finally{ot=0,xe.length=0,hi(),Sn=!1,gr=null,(xe.length||dn.length)&&mi()}}function Zc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ae;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:m}=s[f]||ae;m&&(o=n.map(g=>be(g)?g.trim():g)),d&&(o=n.map(nr))}let a,l=s[a=tr(t)]||s[a=tr(rt(t))];!l&&r&&(l=s[a=tr(Ht(t))]),l&&Qe(l,e,6,o);const h=s[a+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Qe(h,e,6,o)}}function pi(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!G(e)){const l=h=>{const f=pi(h,t,!0);f&&(a=!0,Te(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(me(e)&&s.set(e,null),null):(K(r)?r.forEach(l=>i[l]=null):Te(i,r),me(e)&&s.set(e,i),i)}function bs(e,t){return!e||!Jn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,Ht(t))||Q(e,t))}let Se=null,gi=null;function ys(e){const t=Se;return Se=e,gi=e&&e.type.__scopeId||null,t}function Jc(e,t=Se,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ki(-1);const r=ys(t);let i;try{i=e(...o)}finally{ys(r),s._d&&Ki(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Rp(){}function br(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:h,render:f,renderCache:d,data:m,setupState:g,ctx:y,inheritAttrs:T}=e;let I,_;const k=ys(e);try{if(n.shapeFlag&4){const b=o||s,x=b;I=it(f.call(x,b,d,r,g,m,y)),_=l}else{const b=t;I=it(b.length>1?b(r,{attrs:l,slots:a,emit:h}):b(r,null)),_=t.props?l:qc(l)}}catch(b){Rn.length=0,_s(b,e,1),I=Ce(Jt)}let E=I;if(_&&T!==!1){const b=Object.keys(_),{shapeFlag:x}=E;b.length&&x&7&&(i&&b.some(qs)&&(_=Qc(_,i)),E=pn(E,_))}return n.dirs&&(E=pn(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),I=E,ys(k),I}const qc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Jn(n))&&((t||(t={}))[n]=e[n]);return t},Qc=(e,t)=>{const n={};for(const s in e)(!qs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function eu(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?_i(s,i,h):!!i;if(l&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const m=f[d];if(i[m]!==s[m]&&!bs(h,m))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?_i(s,i,h):!0:!!i;return!1}function _i(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!bs(n,r))return!0}return!1}function tu({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 bi="components";function nu(e,t){return ru(bi,e,!0,t)||e}const su=Symbol.for("v-ndc");function ru(e,t,n=!0,s=!1){const o=Se||ve;if(o){const r=o.type;if(e===bi){const a=qi(r,!1);if(a&&(a===t||a===rt(t)||a===ts(rt(t))))return r}const i=yi(o[e]||r[e],t)||yi(o.appContext[e],t);return!i&&s?r:i}}function yi(e,t){return e&&(e[t]||e[rt(t)]||e[ts(rt(t))])}const ou=e=>e.__isSuspense;function iu(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Bc(e)}const au=Symbol.for("v-scx"),lu=()=>Ze(au),ks={};function Gt(e,t,n){return ki(e,t,n)}function ki(e,t,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:a}=ae){if(t&&r){const N=t;t=(...R)=>{N(...R),x()}}const l=ve,h=N=>s===!0?N:Yt(N,s===!1?1:void 0);let f,d=!1,m=!1;if(_e(e)?(f=()=>e.value,d=ms(e)):xt(e)?(f=()=>h(e),d=!0):K(e)?(m=!0,d=e.some(N=>xt(N)||ms(N)),f=()=>e.map(N=>{if(_e(N))return N.value;if(xt(N))return h(N);if(G(N))return bt(N,l,2)})):G(e)?t?f=()=>bt(e,l,2):f=()=>(g&&g(),Qe(e,l,3,[y])):f=Xe,t&&s){const N=f;f=()=>Yt(N())}let g,y=N=>{g=E.onStop=()=>{bt(N,l,4),g=E.onStop=void 0}},T;if(xs)if(y=Xe,t?n&&Qe(t,l,3,[f(),m?[]:void 0,y]):f(),o==="sync"){const N=lu();T=N.__watcherHandles||(N.__watcherHandles=[])}else return Xe;let I=m?new Array(e.length).fill(ks):ks;const _=()=>{if(!(!E.active||!E.dirty))if(t){const N=E.run();(s||d||(m?N.some((R,C)=>Et(R,I[C])):Et(N,I)))&&(g&&g(),Qe(t,l,3,[N,I===ks?void 0:m&&I[0]===ks?[]:I,y]),I=N)}else E.run()};_.allowRecurse=!!t;let k;o==="sync"?k=_:o==="post"?k=()=>Ue(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),k=()=>_r(_));const E=new or(f,Xe,k),b=Fo(),x=()=>{E.stop(),b&&Qs(b.effects,E)};return t?n?_():I=E.run():o==="post"?Ue(E.run.bind(E),l&&l.suspense):E.run(),T&&T.push(x),x}function cu(e,t,n){const s=this.proxy,o=be(e)?e.includes(".")?wi(s,e):()=>s[e]:e.bind(s,s);let r;G(t)?r=t:(r=t.handler,n=t);const i=$n(this),a=ki(o,r.bind(s),n);return i(),a}function wi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Yt(e,t,n=0,s){if(!me(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),_e(e))Yt(e.value,t,n,s);else if(K(e))for(let o=0;o<e.length;o++)Yt(e[o],t,n,s);else if(Oo(e)||cn(e))e.forEach(o=>{Yt(o,t,n,s)});else if(Co(e))for(const o in e)Yt(e[o],t,n,s);return e}function uu(e,t){if(Se===null)return e;const n=Ss(Se)||Se.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,a,l=ae]=t[o];r&&(G(r)&&(r={mounted:r,updated:r}),r.deep&&Yt(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(Tt(),Qe(l,n,8,[e.el,a,e,t]),Lt())}}/*! #__NO_SIDE_EFFECTS__ */function Xt(e,t){return G(e)?Te({name:e.name},t,{setup:e}):e}const ws=e=>!!e.type.__asyncLoader,vi=e=>e.type.__isKeepAlive;function fu(e,t){Ei(e,"a",t)}function du(e,t){Ei(e,"da",t)}function Ei(e,t,n=ve){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(vs(t,s,n),n){let o=n.parent;for(;o&&o.parent;)vi(o.parent.vnode)&&hu(s,t,n,o),o=o.parent}}function hu(e,t,n,s){const o=vs(t,e,s,!0);yr(()=>{Qs(s[t],o)},n)}function vs(e,t,n=ve,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Tt();const a=$n(n),l=Qe(t,n,e,i);return a(),Lt(),l});return s?o.unshift(r):o.push(r),r}}const yt=e=>(t,n=ve)=>(!xs||e==="sp")&&vs(e,(...s)=>t(...s),n),Ii=yt("bm"),Es=yt("m"),mu=yt("bu"),pu=yt("u"),Ti=yt("bum"),yr=yt("um"),gu=yt("sp"),_u=yt("rtg"),bu=yt("rtc");function yu(e,t=ve){vs("ec",e,t)}function Li(e,t,n,s){let o;const r=n&&n[s];if(K(e)||be(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(me(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const h=i[a];o[a]=t(e[h],h,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}const kr=e=>e?Bi(e)?Ss(e)||e.proxy:kr(e.parent):null,Nn=Te(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=>kr(e.parent),$root:e=>kr(e.root),$emit:e=>e.emit,$options:e=>Er(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,_r(e.update)}),$nextTick:e=>e.n||(e.n=ui.bind(e.proxy)),$watch:e=>cu.bind(e)}),wr=(e,t)=>e!==ae&&!e.__isScriptSetup&&Q(e,t),ku={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let h;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(wr(s,t))return i[t]=1,s[t];if(o!==ae&&Q(o,t))return i[t]=2,o[t];if((h=e.propsOptions[0])&&Q(h,t))return i[t]=3,r[t];if(n!==ae&&Q(n,t))return i[t]=4,n[t];vr&&(i[t]=0)}}const f=Nn[t];let d,m;if(f)return t==="$attrs"&&$e(e,"get",t),f(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==ae&&Q(n,t))return i[t]=4,n[t];if(m=l.config.globalProperties,Q(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return wr(o,t)?(o[t]=n,!0):s!==ae&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||e!==ae&&Q(e,i)||wr(t,i)||(a=r[0])&&Q(a,i)||Q(s,i)||Q(Nn,i)||Q(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oi(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let vr=!0;function wu(e){const t=Er(e),n=e.proxy,s=e.ctx;vr=!1,t.beforeCreate&&xi(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:h,created:f,beforeMount:d,mounted:m,beforeUpdate:g,updated:y,activated:T,deactivated:I,beforeDestroy:_,beforeUnmount:k,destroyed:E,unmounted:b,render:x,renderTracked:N,renderTriggered:R,errorCaptured:C,serverPrefetch:U,expose:B,inheritAttrs:fe,components:oe,directives:we,filters:qe}=t;if(h&&vu(h,s,null),i)for(const ie in i){const te=i[ie];G(te)&&(s[ie]=te.bind(n))}if(o){const ie=o.call(n,n);me(ie)&&(e.data=hs(ie))}if(vr=!0,r)for(const ie in r){const te=r[ie],Ve=G(te)?te.bind(n,n):G(te.get)?te.get.bind(n,n):Xe,Pe=!G(te)&&G(te.set)?te.set.bind(n):Xe,Ke=je({get:Ve,set:Pe});Object.defineProperty(s,ie,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:Ae=>Ke.value=Ae})}if(a)for(const ie in a)Si(a[ie],s,n,ie);if(l){const ie=G(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(te=>{xu(te,ie[te])})}f&&xi(f,e,"c");function X(ie,te){K(te)?te.forEach(Ve=>ie(Ve.bind(n))):te&&ie(te.bind(n))}if(X(Ii,d),X(Es,m),X(mu,g),X(pu,y),X(fu,T),X(du,I),X(yu,C),X(bu,N),X(_u,R),X(Ti,k),X(yr,b),X(gu,U),K(B))if(B.length){const ie=e.exposed||(e.exposed={});B.forEach(te=>{Object.defineProperty(ie,te,{get:()=>n[te],set:Ve=>n[te]=Ve})})}else e.exposed||(e.exposed={});x&&e.render===Xe&&(e.render=x),fe!=null&&(e.inheritAttrs=fe),oe&&(e.components=oe),we&&(e.directives=we)}function vu(e,t,n=Xe){K(e)&&(e=Ir(e));for(const s in e){const o=e[s];let r;me(o)?"default"in o?r=Ze(o.from||s,o.default,!0):r=Ze(o.from||s):r=Ze(o),_e(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function xi(e,t,n){Qe(K(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Si(e,t,n,s){const o=s.includes(".")?wi(n,s):()=>n[s];if(be(e)){const r=t[e];G(r)&&Gt(o,r)}else if(G(e))Gt(o,e.bind(n));else if(me(e))if(K(e))e.forEach(r=>Si(r,t,n,s));else{const r=G(e.handler)?e.handler.bind(n):t[e.handler];G(r)&&Gt(o,r,e)}}function Er(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(h=>Is(l,h,i,!0)),Is(l,t,i)),me(t)&&r.set(t,l),l}function Is(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Is(e,r,n,!0),o&&o.forEach(i=>Is(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Eu[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Eu={data:Ci,props:Ni,emits:Ni,methods:Pn,computed:Pn,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Pn,directives:Pn,watch:Tu,provide:Ci,inject:Iu};function Ci(e,t){return t?e?function(){return Te(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function Iu(e,t){return Pn(Ir(e),Ir(t))}function Ir(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Re(e,t){return e?[...new Set([].concat(e,t))]:t}function Pn(e,t){return e?Te(Object.create(null),e,t):t}function Ni(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Te(Object.create(null),Oi(e),Oi(t??{})):t}function Tu(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const s in t)n[s]=Re(e[s],t[s]);return n}function Pi(){return{app:null,config:{isNativeTag:nc,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 Lu=0;function Ou(e,t){return function(s,o=null){G(s)||(s=Te({},s)),o!=null&&!me(o)&&(o=null);const r=Pi(),i=new WeakSet;let a=!1;const l=r.app={_uid:Lu++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:ef,get config(){return r.config},set config(h){},use(h,...f){return i.has(h)||(h&&G(h.install)?(i.add(h),h.install(l,...f)):G(h)&&(i.add(h),h(l,...f))),l},mixin(h){return r.mixins.includes(h)||r.mixins.push(h),l},component(h,f){return f?(r.components[h]=f,l):r.components[h]},directive(h,f){return f?(r.directives[h]=f,l):r.directives[h]},mount(h,f,d){if(!a){const m=Ce(s,o);return m.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(m,h):e(m,h,d),a=!0,l._container=h,h.__vue_app__=l,Ss(m.component)||m.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(h,f){return r.provides[h]=f,l},runWithContext(h){const f=hn;hn=l;try{return h()}finally{hn=f}}};return l}}let hn=null;function xu(e,t){if(ve){let n=ve.provides;const s=ve.parent&&ve.parent.provides;s===n&&(n=ve.provides=Object.create(s)),n[e]=t}}function Ze(e,t,n=!1){const s=ve||Se;if(s||hn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&G(t)?t.call(s&&s.proxy):t}}function Su(){return!!(ve||Se||hn)}function Cu(e,t,n,s=!1){const o={},r={};ss(r,Ts,1),e.propsDefaults=Object.create(null),Ai(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Rc(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Nu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=J(o),[l]=e.propsOptions;let h=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let m=f[d];if(bs(e.emitsOptions,m))continue;const g=t[m];if(l)if(Q(r,m))g!==r[m]&&(r[m]=g,h=!0);else{const y=rt(m);o[y]=Tr(l,a,y,g,e,!1)}else g!==r[m]&&(r[m]=g,h=!0)}}}else{Ai(e,t,o,r)&&(h=!0);let f;for(const d in a)(!t||!Q(t,d)&&((f=Ht(d))===d||!Q(t,f)))&&(l?n&&(n[d]!==void 0||n[f]!==void 0)&&(o[d]=Tr(l,a,d,void 0,e,!0)):delete o[d]);if(r!==a)for(const d in r)(!t||!Q(t,d))&&(delete r[d],h=!0)}h&&_t(e,"set","$attrs")}function Ai(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Qn(l))continue;const h=t[l];let f;o&&Q(o,f=rt(l))?!r||!r.includes(f)?n[f]=h:(a||(a={}))[f]=h:bs(e.emitsOptions,l)||(!(l in s)||h!==s[l])&&(s[l]=h,i=!0)}if(r){const l=J(n),h=a||ae;for(let f=0;f<r.length;f++){const d=r[f];n[d]=Tr(o,l,d,h[d],e,!Q(h,d))}}return i}function Tr(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=Q(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&G(l)){const{propsDefaults:h}=o;if(n in h)s=h[n];else{const f=$n(o);s=h[n]=l.call(null,t),f()}}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===Ht(n))&&(s=!0))}return s}function Ri(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!G(e)){const f=d=>{l=!0;const[m,g]=Ri(d,t,!0);Te(i,m),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!l)return me(e)&&s.set(e,ln),ln;if(K(r))for(let f=0;f<r.length;f++){const d=rt(r[f]);Mi(d)&&(i[d]=ae)}else if(r)for(const f in r){const d=rt(f);if(Mi(d)){const m=r[f],g=i[d]=K(m)||G(m)?{type:m}:Te({},m);if(g){const y=$i(Boolean,g.type),T=$i(String,g.type);g[0]=y>-1,g[1]=T<0||y<T,(y>-1||Q(g,"default"))&&a.push(d)}}}const h=[i,a];return me(e)&&s.set(e,h),h}function Mi(e){return e[0]!=="$"}function Fi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Di(e,t){return Fi(e)===Fi(t)}function $i(e,t){return K(t)?t.findIndex(n=>Di(n,e)):G(t)&&Di(t,e)?0:-1}const Ui=e=>e[0]==="_"||e==="$stable",Lr=e=>K(e)?e.map(it):[it(e)],Pu=(e,t,n)=>{if(t._n)return t;const s=Jc((...o)=>Lr(t(...o)),n);return s._c=!1,s},ji=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Ui(o))continue;const r=e[o];if(G(r))t[o]=Pu(o,r,s);else if(r!=null){const i=Lr(r);t[o]=()=>i}}},Wi=(e,t)=>{const n=Lr(t);e.slots.default=()=>n},Au=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=J(t),ss(t,"_",n)):ji(t,e.slots={})}else e.slots={},t&&Wi(e,t);ss(e.slots,Ts,1)},Ru=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=ae;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Te(o,t),!n&&a===1&&delete o._):(r=!t.$stable,ji(t,o)),i=t}else t&&(Wi(e,t),i={default:1});if(r)for(const a in o)!Ui(a)&&i[a]==null&&delete o[a]};function Or(e,t,n,s,o=!1){if(K(e)){e.forEach((m,g)=>Or(m,t&&(K(t)?t[g]:t),n,s,o));return}if(ws(s)&&!o)return;const r=s.shapeFlag&4?Ss(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,h=t&&t.r,f=a.refs===ae?a.refs={}:a.refs,d=a.setupState;if(h!=null&&h!==l&&(be(h)?(f[h]=null,Q(d,h)&&(d[h]=null)):_e(h)&&(h.value=null)),G(l))bt(l,a,12,[i,f]);else{const m=be(l),g=_e(l);if(m||g){const y=()=>{if(e.f){const T=m?Q(d,l)?d[l]:f[l]:l.value;o?K(T)&&Qs(T,r):K(T)?T.includes(r)||T.push(r):m?(f[l]=[r],Q(d,l)&&(d[l]=f[l])):(l.value=[r],e.k&&(f[e.k]=l.value))}else m?(f[l]=i,Q(d,l)&&(d[l]=i)):g&&(l.value=i,e.k&&(f[e.k]=i))};i?(y.id=-1,Ue(y,n)):y()}}}const Ue=iu;function Mu(e){return Fu(e)}function Fu(e,t){const n=Po();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:h,setElementText:f,parentNode:d,nextSibling:m,setScopeId:g=Xe,insertStaticContent:y}=e,T=(u,c,p,w=null,L=null,S=null,M=void 0,A=null,F=!!c.dynamicChildren)=>{if(u===c)return;u&&!Fn(u,c)&&(w=mt(u),Ae(u,L,S,!0),u=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:P,ref:j,shapeFlag:$}=c;switch(P){case An:I(u,c,p,w);break;case Jt:_(u,c,p,w);break;case Sr:u==null&&k(c,p,w,M);break;case Le:oe(u,c,p,w,L,S,M,A,F);break;default:$&1?x(u,c,p,w,L,S,M,A,F):$&6?we(u,c,p,w,L,S,M,A,F):($&64||$&128)&&P.process(u,c,p,w,L,S,M,A,F,De)}j!=null&&L&&Or(j,u&&u.ref,S,c||u,!c)},I=(u,c,p,w)=>{if(u==null)s(c.el=a(c.children),p,w);else{const L=c.el=u.el;c.children!==u.children&&h(L,c.children)}},_=(u,c,p,w)=>{u==null?s(c.el=l(c.children||""),p,w):c.el=u.el},k=(u,c,p,w)=>{[u.el,u.anchor]=y(u.children,c,p,w,u.el,u.anchor)},E=({el:u,anchor:c},p,w)=>{let L;for(;u&&u!==c;)L=m(u),s(u,p,w),u=L;s(c,p,w)},b=({el:u,anchor:c})=>{let p;for(;u&&u!==c;)p=m(u),o(u),u=p;o(c)},x=(u,c,p,w,L,S,M,A,F)=>{c.type==="svg"?M="svg":c.type==="math"&&(M="mathml"),u==null?N(c,p,w,L,S,M,A,F):U(u,c,L,S,M,A,F)},N=(u,c,p,w,L,S,M,A)=>{let F,P;const{props:j,shapeFlag:$,transition:v,dirs:O}=u;if(F=u.el=i(u.type,S,j&&j.is,j),$&8?f(F,u.children):$&16&&C(u.children,F,null,w,L,xr(u,S),M,A),O&&Bt(u,null,w,"created"),R(F,u,u.scopeId,M,w),j){for(const H in j)H!=="value"&&!Qn(H)&&r(F,H,null,j[H],S,u.children,w,L,ze);"value"in j&&r(F,"value",null,j.value,S),(P=j.onVnodeBeforeMount)&&at(P,w,u)}O&&Bt(u,null,w,"beforeMount");const W=Du(L,v);W&&v.beforeEnter(F),s(F,c,p),((P=j&&j.onVnodeMounted)||W||O)&&Ue(()=>{P&&at(P,w,u),W&&v.enter(F),O&&Bt(u,null,w,"mounted")},L)},R=(u,c,p,w,L)=>{if(p&&g(u,p),w)for(let S=0;S<w.length;S++)g(u,w[S]);if(L){let S=L.subTree;if(c===S){const M=L.vnode;R(u,M,M.scopeId,M.slotScopeIds,L.parent)}}},C=(u,c,p,w,L,S,M,A,F=0)=>{for(let P=F;P<u.length;P++){const j=u[P]=A?Ct(u[P]):it(u[P]);T(null,j,c,p,w,L,S,M,A)}},U=(u,c,p,w,L,S,M)=>{const A=c.el=u.el;let{patchFlag:F,dynamicChildren:P,dirs:j}=c;F|=u.patchFlag&16;const $=u.props||ae,v=c.props||ae;let O;if(p&&Zt(p,!1),(O=v.onVnodeBeforeUpdate)&&at(O,p,c,u),j&&Bt(c,u,p,"beforeUpdate"),p&&Zt(p,!0),P?B(u.dynamicChildren,P,A,p,w,xr(c,L),S):M||te(u,c,A,null,p,w,xr(c,L),S,!1),F>0){if(F&16)fe(A,c,$,v,p,w,L);else if(F&2&&$.class!==v.class&&r(A,"class",null,v.class,L),F&4&&r(A,"style",$.style,v.style,L),F&8){const W=c.dynamicProps;for(let H=0;H<W.length;H++){const ne=W[H],pe=$[ne],Ie=v[ne];(Ie!==pe||ne==="value")&&r(A,ne,pe,Ie,L,u.children,p,w,ze)}}F&1&&u.children!==c.children&&f(A,c.children)}else!M&&P==null&&fe(A,c,$,v,p,w,L);((O=v.onVnodeUpdated)||j)&&Ue(()=>{O&&at(O,p,c,u),j&&Bt(c,u,p,"updated")},w)},B=(u,c,p,w,L,S,M)=>{for(let A=0;A<c.length;A++){const F=u[A],P=c[A],j=F.el&&(F.type===Le||!Fn(F,P)||F.shapeFlag&70)?d(F.el):p;T(F,P,j,null,w,L,S,M,!0)}},fe=(u,c,p,w,L,S,M)=>{if(p!==w){if(p!==ae)for(const A in p)!Qn(A)&&!(A in w)&&r(u,A,p[A],null,M,c.children,L,S,ze);for(const A in w){if(Qn(A))continue;const F=w[A],P=p[A];F!==P&&A!=="value"&&r(u,A,P,F,M,c.children,L,S,ze)}"value"in w&&r(u,"value",p.value,w.value,M)}},oe=(u,c,p,w,L,S,M,A,F)=>{const P=c.el=u?u.el:a(""),j=c.anchor=u?u.anchor:a("");let{patchFlag:$,dynamicChildren:v,slotScopeIds:O}=c;O&&(A=A?A.concat(O):O),u==null?(s(P,p,w),s(j,p,w),C(c.children||[],p,j,L,S,M,A,F)):$>0&&$&64&&v&&u.dynamicChildren?(B(u.dynamicChildren,v,p,L,S,M,A),(c.key!=null||L&&c===L.subTree)&&Hi(u,c,!0)):te(u,c,p,j,L,S,M,A,F)},we=(u,c,p,w,L,S,M,A,F)=>{c.slotScopeIds=A,u==null?c.shapeFlag&512?L.ctx.activate(c,p,w,M,F):qe(c,p,w,L,S,M,F):He(u,c,F)},qe=(u,c,p,w,L,S,M)=>{const A=u.component=Gu(u,w,L);if(vi(u)&&(A.ctx.renderer=De),Yu(A),A.asyncDep){if(L&&L.registerDep(A,X),!u.el){const F=A.subTree=Ce(Jt);_(null,F,c,p)}}else X(A,u,c,p,L,S,M)},He=(u,c,p)=>{const w=c.component=u.component;if(eu(u,c,p))if(w.asyncDep&&!w.asyncResolved){ie(w,c,p);return}else w.next=c,Yc(w.update),w.effect.dirty=!0,w.update();else c.el=u.el,w.vnode=c},X=(u,c,p,w,L,S,M)=>{const A=()=>{if(u.isMounted){let{next:j,bu:$,u:v,parent:O,vnode:W}=u;{const jt=Vi(u);if(jt){j&&(j.el=W.el,ie(u,j,M)),jt.asyncDep.then(()=>{u.isUnmounted||A()});return}}let H=j,ne;Zt(u,!1),j?(j.el=W.el,ie(u,j,M)):j=W,$&&ns($),(ne=j.props&&j.props.onVnodeBeforeUpdate)&&at(ne,O,j,W),Zt(u,!0);const pe=br(u),Ie=u.subTree;u.subTree=pe,T(Ie,pe,d(Ie.el),mt(Ie),u,L,S),j.el=pe.el,H===null&&tu(u,pe.el),v&&Ue(v,L),(ne=j.props&&j.props.onVnodeUpdated)&&Ue(()=>at(ne,O,j,W),L)}else{let j;const{el:$,props:v}=c,{bm:O,m:W,parent:H}=u,ne=ws(c);if(Zt(u,!1),O&&ns(O),!ne&&(j=v&&v.onVnodeBeforeMount)&&at(j,H,c),Zt(u,!0),$&&vt){const pe=()=>{u.subTree=br(u),vt($,u.subTree,u,L,null)};ne?c.type.__asyncLoader().then(()=>!u.isUnmounted&&pe()):pe()}else{const pe=u.subTree=br(u);T(null,pe,p,w,u,L,S),c.el=pe.el}if(W&&Ue(W,L),!ne&&(j=v&&v.onVnodeMounted)){const pe=c;Ue(()=>at(j,H,pe),L)}(c.shapeFlag&256||H&&ws(H.vnode)&&H.vnode.shapeFlag&256)&&u.a&&Ue(u.a,L),u.isMounted=!0,c=p=w=null}},F=u.effect=new or(A,Xe,()=>_r(P),u.scope),P=u.update=()=>{F.dirty&&F.run()};P.id=u.uid,Zt(u,!0),P()},ie=(u,c,p)=>{c.component=u;const w=u.vnode.props;u.vnode=c,u.next=null,Nu(u,c.props,w,p),Ru(u,c.children,p),Tt(),di(u),Lt()},te=(u,c,p,w,L,S,M,A,F=!1)=>{const P=u&&u.children,j=u?u.shapeFlag:0,$=c.children,{patchFlag:v,shapeFlag:O}=c;if(v>0){if(v&128){Pe(P,$,p,w,L,S,M,A,F);return}else if(v&256){Ve(P,$,p,w,L,S,M,A,F);return}}O&8?(j&16&&ze(P,L,S),$!==P&&f(p,$)):j&16?O&16?Pe(P,$,p,w,L,S,M,A,F):ze(P,L,S,!0):(j&8&&f(p,""),O&16&&C($,p,w,L,S,M,A,F))},Ve=(u,c,p,w,L,S,M,A,F)=>{u=u||ln,c=c||ln;const P=u.length,j=c.length,$=Math.min(P,j);let v;for(v=0;v<$;v++){const O=c[v]=F?Ct(c[v]):it(c[v]);T(u[v],O,p,null,L,S,M,A,F)}P>j?ze(u,L,S,!0,!1,$):C(c,p,w,L,S,M,A,F,$)},Pe=(u,c,p,w,L,S,M,A,F)=>{let P=0;const j=c.length;let $=u.length-1,v=j-1;for(;P<=$&&P<=v;){const O=u[P],W=c[P]=F?Ct(c[P]):it(c[P]);if(Fn(O,W))T(O,W,p,null,L,S,M,A,F);else break;P++}for(;P<=$&&P<=v;){const O=u[$],W=c[v]=F?Ct(c[v]):it(c[v]);if(Fn(O,W))T(O,W,p,null,L,S,M,A,F);else break;$--,v--}if(P>$){if(P<=v){const O=v+1,W=O<j?c[O].el:w;for(;P<=v;)T(null,c[P]=F?Ct(c[P]):it(c[P]),p,W,L,S,M,A,F),P++}}else if(P>v)for(;P<=$;)Ae(u[P],L,S,!0),P++;else{const O=P,W=P,H=new Map;for(P=W;P<=v;P++){const Be=c[P]=F?Ct(c[P]):it(c[P]);Be.key!=null&&H.set(Be.key,P)}let ne,pe=0;const Ie=v-W+1;let jt=!1,Lo=0;const Zn=new Array(Ie);for(P=0;P<Ie;P++)Zn[P]=0;for(P=O;P<=$;P++){const Be=u[P];if(pe>=Ie){Ae(Be,L,S,!0);continue}let gt;if(Be.key!=null)gt=H.get(Be.key);else for(ne=W;ne<=v;ne++)if(Zn[ne-W]===0&&Fn(Be,c[ne])){gt=ne;break}gt===void 0?Ae(Be,L,S,!0):(Zn[gt-W]=P+1,gt>=Lo?Lo=gt:jt=!0,T(Be,c[gt],p,null,L,S,M,A,F),pe++)}const ec=jt?$u(Zn):ln;for(ne=ec.length-1,P=Ie-1;P>=0;P--){const Be=W+P,gt=c[Be],tc=Be+1<j?c[Be+1].el:w;Zn[P]===0?T(null,gt,p,tc,L,S,M,A,F):jt&&(ne<0||P!==ec[ne]?Ke(gt,p,tc,2):ne--)}}},Ke=(u,c,p,w,L=null)=>{const{el:S,type:M,transition:A,children:F,shapeFlag:P}=u;if(P&6){Ke(u.component.subTree,c,p,w);return}if(P&128){u.suspense.move(c,p,w);return}if(P&64){M.move(u,c,p,De);return}if(M===Le){s(S,c,p);for(let $=0;$<F.length;$++)Ke(F[$],c,p,w);s(u.anchor,c,p);return}if(M===Sr){E(u,c,p);return}if(w!==2&&P&1&&A)if(w===0)A.beforeEnter(S),s(S,c,p),Ue(()=>A.enter(S),L);else{const{leave:$,delayLeave:v,afterLeave:O}=A,W=()=>s(S,c,p),H=()=>{$(S,()=>{W(),O&&O()})};v?v(S,W,H):H()}else s(S,c,p)},Ae=(u,c,p,w=!1,L=!1)=>{const{type:S,props:M,ref:A,children:F,dynamicChildren:P,shapeFlag:j,patchFlag:$,dirs:v}=u;if(A!=null&&Or(A,null,p,u,!0),j&256){c.ctx.deactivate(u);return}const O=j&1&&v,W=!ws(u);let H;if(W&&(H=M&&M.onVnodeBeforeUnmount)&&at(H,c,u),j&6)an(u.component,p,w);else{if(j&128){u.suspense.unmount(p,w);return}O&&Bt(u,null,c,"beforeUnmount"),j&64?u.type.remove(u,c,p,L,De,w):P&&(S!==Le||$>0&&$&64)?ze(P,c,p,!1,!0):(S===Le&&$&384||!L&&j&16)&&ze(F,c,p),w&&$t(u)}(W&&(H=M&&M.onVnodeUnmounted)||O)&&Ue(()=>{H&&at(H,c,u),O&&Bt(u,null,c,"unmounted")},p)},$t=u=>{const{type:c,el:p,anchor:w,transition:L}=u;if(c===Le){Ut(p,w);return}if(c===Sr){b(u);return}const S=()=>{o(p),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(u.shapeFlag&1&&L&&!L.persisted){const{leave:M,delayLeave:A}=L,F=()=>M(p,S);A?A(u.el,S,F):F()}else S()},Ut=(u,c)=>{let p;for(;u!==c;)p=m(u),o(u),u=p;o(c)},an=(u,c,p)=>{const{bum:w,scope:L,update:S,subTree:M,um:A}=u;w&&ns(w),L.stop(),S&&(S.active=!1,Ae(M,u,c,p)),A&&Ue(A,c),Ue(()=>{u.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},ze=(u,c,p,w=!1,L=!1,S=0)=>{for(let M=S;M<u.length;M++)Ae(u[M],c,p,w,L)},mt=u=>u.shapeFlag&6?mt(u.component.subTree):u.shapeFlag&128?u.suspense.next():m(u.anchor||u.el);let nt=!1;const pt=(u,c,p)=>{u==null?c._vnode&&Ae(c._vnode,null,null,!0):T(c._vnode||null,u,c,null,null,null,p),nt||(nt=!0,di(),hi(),nt=!1),c._vnode=u},De={p:T,um:Ae,m:Ke,r:$t,mt:qe,mc:C,pc:te,pbc:B,n:mt,o:e};let st,vt;return t&&([st,vt]=t(De)),{render:pt,hydrate:st,createApp:Ou(pt,st)}}function xr({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 Du(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hi(e,t,n=!1){const s=e.children,o=t.children;if(K(s)&&K(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Ct(o[r]),a.el=i.el),n||Hi(i,a)),a.type===An&&(a.el=i.el)}}function $u(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const h=e[s];if(h!==0){if(o=n[n.length-1],e[o]<h){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<h?r=a+1:i=a;h<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const Uu=e=>e.__isTeleport,Le=Symbol.for("v-fgt"),An=Symbol.for("v-txt"),Jt=Symbol.for("v-cmt"),Sr=Symbol.for("v-stc"),Rn=[];let et=null;function q(e=!1){Rn.push(et=e?null:[])}function ju(){Rn.pop(),et=Rn[Rn.length-1]||null}let Mn=1;function Ki(e){Mn+=e}function zi(e){return e.dynamicChildren=Mn>0?et||ln:null,ju(),Mn>0&&et&&et.push(e),e}function le(e,t,n,s,o,r){return zi(se(e,t,n,s,o,r,!0))}function mn(e,t,n,s,o){return zi(Ce(e,t,n,s,o,!0))}function Cr(e){return e?e.__v_isVNode===!0:!1}function Fn(e,t){return e.type===t.type&&e.key===t.key}const Ts="__vInternal",Gi=({key:e})=>e??null,Ls=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||_e(e)||G(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function se(e,t=null,n=null,s=0,o=null,r=e===Le?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gi(t),ref:t&&Ls(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Se};return a?(Nr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),Mn>0&&!i&&et&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&et.push(l),l}const Ce=Wu;function Wu(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===su)&&(e=Jt),Cr(e)){const a=pn(e,t,!0);return n&&Nr(a,n),Mn>0&&!r&&et&&(a.shapeFlag&6?et[et.indexOf(e)]=a:et.push(a)),a.patchFlag|=-2,a}if(Qu(e)&&(e=e.__vccOpts),t){t=Hu(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=os(a)),me(l)&&(ni(l)&&!K(l)&&(l=Te({},l)),t.style=rs(l))}const i=be(e)?1:ou(e)?128:Uu(e)?64:me(e)?4:G(e)?2:0;return se(e,t,n,s,o,i,r,!0)}function Hu(e){return e?ni(e)||Ts in e?Te({},e):e:null}function pn(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Vu(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Gi(a),ref:t&&t.ref?n&&o?K(o)?o.concat(Ls(t)):[o,Ls(t)]:Ls(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function gn(e=" ",t=0){return Ce(An,null,e,t)}function Me(e="",t=!1){return t?(q(),mn(Jt,null,e)):Ce(Jt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ce(Jt):K(e)?Ce(Le,null,e.slice()):typeof e=="object"?Ct(e):Ce(An,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Nr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Nr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Ts in t)?t._ctx=Se:o===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),s&64?(n=16,t=[gn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vu(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=os([t.class,s.class]));else if(o==="style")t.style=rs([t.style,s.style]);else if(Jn(o)){const r=t[o],i=s[o];i&&r!==i&&!(K(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function at(e,t,n,s=null){Qe(e,t,7,[n,s])}const Ku=Pi();let zu=0;function Gu(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Ku,r={uid:zu++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ri(s,o),emitsOptions:pi(s,o),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:s.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,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=Zc.bind(null,r),e.ce&&e.ce(r),r}let ve=null;const Dn=()=>ve||Se;let Os,Pr;{const e=Po(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Os=t("__VUE_INSTANCE_SETTERS__",n=>ve=n),Pr=t("__VUE_SSR_SETTERS__",n=>xs=n)}const $n=e=>{const t=ve;return Os(e),e.scope.on(),()=>{e.scope.off(),Os(t)}},Yi=()=>{ve&&ve.scope.off(),Os(null)};function Bi(e){return e.vnode.shapeFlag&4}let xs=!1;function Yu(e,t=!1){t&&Pr(t);const{props:n,children:s}=e.vnode,o=Bi(e);Cu(e,n,o,t),Au(e,s);const r=o?Bu(e,t):void 0;return t&&Pr(!1),r}function Bu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,ku));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Zu(e):null,r=$n(e);Tt();const i=bt(s,e,0,[e.props,o]);if(Lt(),r(),xo(i)){if(i.then(Yi,Yi),t)return i.then(a=>{Xi(e,a,t)}).catch(a=>{_s(a,e,0)});e.asyncDep=i}else Xi(e,i,t)}else Ji(e,t)}function Xi(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=ai(t)),Ji(e,n)}let Zi;function Ji(e,t,n){const s=e.type;if(!e.render){if(!t&&Zi&&!s.render){const o=s.template||Er(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,h=Te(Te({isCustomElement:r,delimiters:a},i),l);s.render=Zi(o,h)}}e.render=s.render||Xe}{const o=$n(e);Tt();try{wu(e)}finally{Lt(),o()}}}function Xu(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return $e(e,"get","$attrs"),t[n]}}))}function Zu(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Xu(e)},slots:e.slots,emit:e.emit,expose:t}}function Ss(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ai(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Nn)return Nn[n](e)},has(t,n){return n in t||n in Nn}}))}const Ju=/(?:^|[-_])(\w)/g,qu=e=>e.replace(Ju,t=>t.toUpperCase()).replace(/[-_]/g,"");function qi(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e,t,n=!1){let s=qi(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=r=>{for(const i in r)if(r[i]===t)return i};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?qu(s):n?"App":"Anonymous"}function Qu(e){return G(e)&&"__vccOpts"in e}const je=(e,t)=>Mc(e,t,xs);function ea(e,t,n){const s=arguments.length;return s===2?me(t)&&!K(t)?Cr(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Cr(n)&&(n=[n]),Ce(e,t,n))}const ef="3.4.16";/**
|
|
17
|
-
* @vue/runtime-dom v3.4.
|
|
15
|
+
`,...Hc(o)),console.warn(...r)}St()}function Wc(){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 Hc(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
|
|
16
|
+
`],...Vc(n))}),t}function Vc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,o=` at <${Qi(e.component,e.type,s)}`,r=">"+n;return e.props?[o,...Kc(e.props),r]:[o+r]}function Kc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...li(s,e[s]))}),n.length>3&&t.push(" ..."),t}function li(e,t,n){return be(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:_e(t)?(t=li(e,q(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Y(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=q(t),n?t:[`${e}=`,t])}function bt(e,t,n,s){try{return s?e(...s):e()}catch(o){_s(o,t,n)}}function Qe(e,t,n,s){if(Y(e)){const r=bt(e,t,n,s);return r&&So(r)&&r.catch(i=>{_s(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Qe(e[r],t,n,s));return o}function _s(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const h=r.ec;if(h){for(let d=0;d<h.length;d++)if(h[d](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){bt(l,null,10,[e,i,a]);return}}zc(e,n,o,s)}function zc(e,t,n,s=!0){console.error(e)}let Nn=!1,_r=!1;const xe=[];let ot=0;const dn=[];let Nt=null,zt=0;const ci=Promise.resolve();let br=null;function ui(e){const t=br||ci;return e?t.then(this?e.bind(this):e):t}function Gc(e){let t=ot+1,n=xe.length;for(;t<n;){const s=t+n>>>1,o=xe[s],r=Pn(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function yr(e){(!xe.length||!xe.includes(e,Nn&&e.allowRecurse?ot+1:ot))&&(e.id==null?xe.push(e):xe.splice(Gc(e.id),0,e),fi())}function fi(){!Nn&&!_r&&(_r=!0,br=ci.then(mi))}function Yc(e){const t=xe.indexOf(e);t>ot&&xe.splice(t,1)}function Bc(e){K(e)?dn.push(...e):(!Nt||!Nt.includes(e,e.allowRecurse?zt+1:zt))&&dn.push(e),fi()}function di(e,t,n=Nn?ot+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 hi(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>Pn(n)-Pn(s));if(dn.length=0,Nt){Nt.push(...t);return}for(Nt=t,zt=0;zt<Nt.length;zt++)Nt[zt]();Nt=null,zt=0}}const Pn=e=>e.id==null?1/0:e.id,Xc=(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 mi(e){_r=!1,Nn=!0,xe.sort(Xc);try{for(ot=0;ot<xe.length;ot++){const t=xe[ot];t&&t.active!==!1&&bt(t,null,14)}}finally{ot=0,xe.length=0,hi(),Nn=!1,br=null,(xe.length||dn.length)&&mi()}}function Zc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ae;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:f,trim:m}=s[d]||ae;m&&(o=n.map(g=>be(g)?g.trim():g)),f&&(o=n.map(rr))}let a,l=s[a=sr(t)]||s[a=sr(rt(t))];!l&&r&&(l=s[a=sr(Ht(t))]),l&&Qe(l,e,6,o);const h=s[a+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Qe(h,e,6,o)}}function pi(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!Y(e)){const l=h=>{const d=pi(h,t,!0);d&&(a=!0,Te(i,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(pe(e)&&s.set(e,null),null):(K(r)?r.forEach(l=>i[l]=null):Te(i,r),pe(e)&&s.set(e,i),i)}function bs(e,t){return!e||!qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Ht(t))||ee(e,t))}let Ce=null,gi=null;function ys(e){const t=Ce;return Ce=e,gi=e&&e.type.__scopeId||null,t}function Jc(e,t=Ce,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ki(-1);const r=ys(t);let i;try{i=e(...o)}finally{ys(r),s._d&&Ki(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Fp(){}function kr(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:h,render:d,renderCache:f,data:m,setupState:g,ctx:y,inheritAttrs:I}=e;let T,_;const k=ys(e);try{if(n.shapeFlag&4){const b=o||s,S=b;T=it(d.call(S,b,f,r,g,m,y)),_=l}else{const b=t;T=it(b.length>1?b(r,{attrs:l,slots:a,emit:h}):b(r,null)),_=t.props?l:qc(l)}}catch(b){Fn.length=0,_s(b,e,1),T=Ne(Jt)}let v=T;if(_&&I!==!1){const b=Object.keys(_),{shapeFlag:S}=v;b.length&&S&7&&(i&&b.some(er)&&(_=Qc(_,i)),v=pn(v,_))}return n.dirs&&(v=pn(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),T=v,ys(k),T}const qc=e=>{let t;for(const n in e)(n==="class"||n==="style"||qn(n))&&((t||(t={}))[n]=e[n]);return t},Qc=(e,t)=>{const n={};for(const s in e)(!er(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function eu(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?_i(s,i,h):!!i;if(l&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const m=d[f];if(i[m]!==s[m]&&!bs(h,m))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?_i(s,i,h):!0:!!i;return!1}function _i(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!bs(n,r))return!0}return!1}function tu({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 bi="components";function nu(e,t){return ru(bi,e,!0,t)||e}const su=Symbol.for("v-ndc");function ru(e,t,n=!0,s=!1){const o=Ce||Ee;if(o){const r=o.type;if(e===bi){const a=qi(r,!1);if(a&&(a===t||a===rt(t)||a===ts(rt(t))))return r}const i=yi(o[e]||r[e],t)||yi(o.appContext[e],t);return!i&&s?r:i}}function yi(e,t){return e&&(e[t]||e[rt(t)]||e[ts(rt(t))])}const ou=e=>e.__isSuspense;function iu(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Bc(e)}const au=Symbol.for("v-scx"),lu=()=>Ze(au),ks={};function Gt(e,t,n){return ki(e,t,n)}function ki(e,t,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:a}=ae){if(t&&r){const C=t;t=(...M)=>{C(...M),S()}}const l=Ee,h=C=>s===!0?C:Yt(C,s===!1?1:void 0);let d,f=!1,m=!1;if(_e(e)?(d=()=>e.value,f=ms(e)):Ct(e)?(d=()=>h(e),f=!0):K(e)?(m=!0,f=e.some(C=>Ct(C)||ms(C)),d=()=>e.map(C=>{if(_e(C))return C.value;if(Ct(C))return h(C);if(Y(C))return bt(C,l,2)})):Y(e)?t?d=()=>bt(e,l,2):d=()=>(g&&g(),Qe(e,l,3,[y])):d=Xe,t&&s){const C=d;d=()=>Yt(C())}let g,y=C=>{g=v.onStop=()=>{bt(C,l,4),g=v.onStop=void 0}},I;if(Ss)if(y=Xe,t?n&&Qe(t,l,3,[d(),m?[]:void 0,y]):d(),o==="sync"){const C=lu();I=C.__watcherHandles||(C.__watcherHandles=[])}else return Xe;let T=m?new Array(e.length).fill(ks):ks;const _=()=>{if(!(!v.active||!v.dirty))if(t){const C=v.run();(s||f||(m?C.some((M,D)=>Tt(M,T[D])):Tt(C,T)))&&(g&&g(),Qe(t,l,3,[C,T===ks?void 0:m&&T[0]===ks?[]:T,y]),T=C)}else v.run()};_.allowRecurse=!!t;let k;o==="sync"?k=_:o==="post"?k=()=>je(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),k=()=>yr(_));const v=new ar(d,Xe,k),b=Fo(),S=()=>{v.stop(),b&&tr(b.effects,v)};return t?n?_():T=v.run():o==="post"?je(v.run.bind(v),l&&l.suspense):v.run(),I&&I.push(S),S}function cu(e,t,n){const s=this.proxy,o=be(e)?e.includes(".")?wi(s,e):()=>s[e]:e.bind(s,s);let r;Y(t)?r=t:(r=t.handler,n=t);const i=jn(this),a=ki(o,r.bind(s),n);return i(),a}function wi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Yt(e,t,n=0,s){if(!pe(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),_e(e))Yt(e.value,t,n,s);else if(K(e))for(let o=0;o<e.length;o++)Yt(e[o],t,n,s);else if(Oo(e)||cn(e))e.forEach(o=>{Yt(o,t,n,s)});else if(Co(e))for(const o in e)Yt(e[o],t,n,s);return e}function uu(e,t){if(Ce===null)return e;const n=xs(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,a,l=ae]=t[o];r&&(Y(r)&&(r={mounted:r,updated:r}),r.deep&&Yt(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(Ot(),Qe(l,n,8,[e.el,a,e,t]),St())}}/*! #__NO_SIDE_EFFECTS__ */function Xt(e,t){return Y(e)?Te({name:e.name},t,{setup:e}):e}const ws=e=>!!e.type.__asyncLoader,vi=e=>e.type.__isKeepAlive;function fu(e,t){Ei(e,"a",t)}function du(e,t){Ei(e,"da",t)}function Ei(e,t,n=Ee){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(vs(t,s,n),n){let o=n.parent;for(;o&&o.parent;)vi(o.parent.vnode)&&hu(s,t,n,o),o=o.parent}}function hu(e,t,n,s){const o=vs(t,e,s,!0);wr(()=>{tr(s[t],o)},n)}function vs(e,t,n=Ee,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ot();const a=jn(n),l=Qe(t,n,e,i);return a(),St(),l});return s?o.unshift(r):o.push(r),r}}const yt=e=>(t,n=Ee)=>(!Ss||e==="sp")&&vs(e,(...s)=>t(...s),n),Ii=yt("bm"),Es=yt("m"),mu=yt("bu"),pu=yt("u"),Ti=yt("bum"),wr=yt("um"),gu=yt("sp"),_u=yt("rtg"),bu=yt("rtc");function yu(e,t=Ee){vs("ec",e,t)}function Li(e,t,n,s){let o;const r=n&&n[s];if(K(e)||be(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(pe(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const h=i[a];o[a]=t(e[h],h,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}const vr=e=>e?Bi(e)?xs(e)||e.proxy:vr(e.parent):null,An=Te(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=>vr(e.parent),$root:e=>vr(e.root),$emit:e=>e.emit,$options:e=>Tr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,yr(e.update)}),$nextTick:e=>e.n||(e.n=ui.bind(e.proxy)),$watch:e=>cu.bind(e)}),Er=(e,t)=>e!==ae&&!e.__isScriptSetup&&ee(e,t),ku={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let h;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Er(s,t))return i[t]=1,s[t];if(o!==ae&&ee(o,t))return i[t]=2,o[t];if((h=e.propsOptions[0])&&ee(h,t))return i[t]=3,r[t];if(n!==ae&&ee(n,t))return i[t]=4,n[t];Ir&&(i[t]=0)}}const d=An[t];let f,m;if(d)return t==="$attrs"&&Ue(e,"get",t),d(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==ae&&ee(n,t))return i[t]=4,n[t];if(m=l.config.globalProperties,ee(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Er(o,t)?(o[t]=n,!0):s!==ae&&ee(s,t)?(s[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||e!==ae&&ee(e,i)||Er(t,i)||(a=r[0])&&ee(a,i)||ee(s,i)||ee(An,i)||ee(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oi(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ir=!0;function wu(e){const t=Tr(e),n=e.proxy,s=e.ctx;Ir=!1,t.beforeCreate&&Si(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:h,created:d,beforeMount:f,mounted:m,beforeUpdate:g,updated:y,activated:I,deactivated:T,beforeDestroy:_,beforeUnmount:k,destroyed:v,unmounted:b,render:S,renderTracked:C,renderTriggered:M,errorCaptured:D,serverPrefetch:N,expose:X,inheritAttrs:fe,components:oe,directives:we,filters:qe}=t;if(h&&vu(h,s,null),i)for(const ie in i){const ne=i[ie];Y(ne)&&(s[ie]=ne.bind(n))}if(o){const ie=o.call(n,n);pe(ie)&&(e.data=hs(ie))}if(Ir=!0,r)for(const ie in r){const ne=r[ie],Ke=Y(ne)?ne.bind(n,n):Y(ne.get)?ne.get.bind(n,n):Xe,mt=!Y(ne)&&Y(ne.set)?ne.set.bind(n):Xe,ve=We({get:Ke,set:mt});Object.defineProperty(s,ie,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Se=>ve.value=Se})}if(a)for(const ie in a)xi(a[ie],s,n,ie);if(l){const ie=Y(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(ne=>{Su(ne,ie[ne])})}d&&Si(d,e,"c");function Z(ie,ne){K(ne)?ne.forEach(Ke=>ie(Ke.bind(n))):ne&&ie(ne.bind(n))}if(Z(Ii,f),Z(Es,m),Z(mu,g),Z(pu,y),Z(fu,I),Z(du,T),Z(yu,D),Z(bu,C),Z(_u,M),Z(Ti,k),Z(wr,b),Z(gu,N),K(X))if(X.length){const ie=e.exposed||(e.exposed={});X.forEach(ne=>{Object.defineProperty(ie,ne,{get:()=>n[ne],set:Ke=>n[ne]=Ke})})}else e.exposed||(e.exposed={});S&&e.render===Xe&&(e.render=S),fe!=null&&(e.inheritAttrs=fe),oe&&(e.components=oe),we&&(e.directives=we)}function vu(e,t,n=Xe){K(e)&&(e=Lr(e));for(const s in e){const o=e[s];let r;pe(o)?"default"in o?r=Ze(o.from||s,o.default,!0):r=Ze(o.from||s):r=Ze(o),_e(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Si(e,t,n){Qe(K(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function xi(e,t,n,s){const o=s.includes(".")?wi(n,s):()=>n[s];if(be(e)){const r=t[e];Y(r)&&Gt(o,r)}else if(Y(e))Gt(o,e.bind(n));else if(pe(e))if(K(e))e.forEach(r=>xi(r,t,n,s));else{const r=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(r)&&Gt(o,r,e)}}function Tr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(h=>Is(l,h,i,!0)),Is(l,t,i)),pe(t)&&r.set(t,l),l}function Is(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Is(e,r,n,!0),o&&o.forEach(i=>Is(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Eu[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Eu={data:Ci,props:Ni,emits:Ni,methods:Rn,computed:Rn,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Rn,directives:Rn,watch:Tu,provide:Ci,inject:Iu};function Ci(e,t){return t?e?function(){return Te(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Iu(e,t){return Rn(Lr(e),Lr(t))}function Lr(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Re(e,t){return e?[...new Set([].concat(e,t))]:t}function Rn(e,t){return e?Te(Object.create(null),e,t):t}function Ni(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Te(Object.create(null),Oi(e),Oi(t??{})):t}function Tu(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const s in t)n[s]=Re(e[s],t[s]);return n}function Pi(){return{app:null,config:{isNativeTag:nc,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 Lu=0;function Ou(e,t){return function(s,o=null){Y(s)||(s=Te({},s)),o!=null&&!pe(o)&&(o=null);const r=Pi(),i=new WeakSet;let a=!1;const l=r.app={_uid:Lu++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:ef,get config(){return r.config},set config(h){},use(h,...d){return i.has(h)||(h&&Y(h.install)?(i.add(h),h.install(l,...d)):Y(h)&&(i.add(h),h(l,...d))),l},mixin(h){return r.mixins.includes(h)||r.mixins.push(h),l},component(h,d){return d?(r.components[h]=d,l):r.components[h]},directive(h,d){return d?(r.directives[h]=d,l):r.directives[h]},mount(h,d,f){if(!a){const m=Ne(s,o);return m.appContext=r,f===!0?f="svg":f===!1&&(f=void 0),d&&t?t(m,h):e(m,h,f),a=!0,l._container=h,h.__vue_app__=l,xs(m.component)||m.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(h,d){return r.provides[h]=d,l},runWithContext(h){const d=hn;hn=l;try{return h()}finally{hn=d}}};return l}}let hn=null;function Su(e,t){if(Ee){let n=Ee.provides;const s=Ee.parent&&Ee.parent.provides;s===n&&(n=Ee.provides=Object.create(s)),n[e]=t}}function Ze(e,t,n=!1){const s=Ee||Ce;if(s||hn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Y(t)?t.call(s&&s.proxy):t}}function xu(){return!!(Ee||Ce||hn)}function Cu(e,t,n,s=!1){const o={},r={};ss(r,Ts,1),e.propsDefaults=Object.create(null),Ai(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Rc(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Nu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=q(o),[l]=e.propsOptions;let h=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let m=d[f];if(bs(e.emitsOptions,m))continue;const g=t[m];if(l)if(ee(r,m))g!==r[m]&&(r[m]=g,h=!0);else{const y=rt(m);o[y]=Or(l,a,y,g,e,!1)}else g!==r[m]&&(r[m]=g,h=!0)}}}else{Ai(e,t,o,r)&&(h=!0);let d;for(const f in a)(!t||!ee(t,f)&&((d=Ht(f))===f||!ee(t,d)))&&(l?n&&(n[f]!==void 0||n[d]!==void 0)&&(o[f]=Or(l,a,f,void 0,e,!0)):delete o[f]);if(r!==a)for(const f in r)(!t||!ee(t,f))&&(delete r[f],h=!0)}h&&_t(e,"set","$attrs")}function Ai(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Sn(l))continue;const h=t[l];let d;o&&ee(o,d=rt(l))?!r||!r.includes(d)?n[d]=h:(a||(a={}))[d]=h:bs(e.emitsOptions,l)||(!(l in s)||h!==s[l])&&(s[l]=h,i=!0)}if(r){const l=q(n),h=a||ae;for(let d=0;d<r.length;d++){const f=r[d];n[f]=Or(o,l,f,h[f],e,!ee(h,f))}}return i}function Or(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=ee(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Y(l)){const{propsDefaults:h}=o;if(n in h)s=h[n];else{const d=jn(o);s=h[n]=l.call(null,t),d()}}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===Ht(n))&&(s=!0))}return s}function Ri(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!Y(e)){const d=f=>{l=!0;const[m,g]=Ri(f,t,!0);Te(i,m),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!l)return pe(e)&&s.set(e,ln),ln;if(K(r))for(let d=0;d<r.length;d++){const f=rt(r[d]);Mi(f)&&(i[f]=ae)}else if(r)for(const d in r){const f=rt(d);if(Mi(f)){const m=r[d],g=i[f]=K(m)||Y(m)?{type:m}:Te({},m);if(g){const y=$i(Boolean,g.type),I=$i(String,g.type);g[0]=y>-1,g[1]=I<0||y<I,(y>-1||ee(g,"default"))&&a.push(f)}}}const h=[i,a];return pe(e)&&s.set(e,h),h}function Mi(e){return e[0]!=="$"&&!Sn(e)}function Fi(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Di(e,t){return Fi(e)===Fi(t)}function $i(e,t){return K(t)?t.findIndex(n=>Di(n,e)):Y(t)&&Di(t,e)?0:-1}const Ui=e=>e[0]==="_"||e==="$stable",Sr=e=>K(e)?e.map(it):[it(e)],Pu=(e,t,n)=>{if(t._n)return t;const s=Jc((...o)=>Sr(t(...o)),n);return s._c=!1,s},ji=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Ui(o))continue;const r=e[o];if(Y(r))t[o]=Pu(o,r,s);else if(r!=null){const i=Sr(r);t[o]=()=>i}}},Wi=(e,t)=>{const n=Sr(t);e.slots.default=()=>n},Au=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=q(t),ss(t,"_",n)):ji(t,e.slots={})}else e.slots={},t&&Wi(e,t);ss(e.slots,Ts,1)},Ru=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=ae;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Te(o,t),!n&&a===1&&delete o._):(r=!t.$stable,ji(t,o)),i=t}else t&&(Wi(e,t),i={default:1});if(r)for(const a in o)!Ui(a)&&i[a]==null&&delete o[a]};function xr(e,t,n,s,o=!1){if(K(e)){e.forEach((m,g)=>xr(m,t&&(K(t)?t[g]:t),n,s,o));return}if(ws(s)&&!o)return;const r=s.shapeFlag&4?xs(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,h=t&&t.r,d=a.refs===ae?a.refs={}:a.refs,f=a.setupState;if(h!=null&&h!==l&&(be(h)?(d[h]=null,ee(f,h)&&(f[h]=null)):_e(h)&&(h.value=null)),Y(l))bt(l,a,12,[i,d]);else{const m=be(l),g=_e(l);if(m||g){const y=()=>{if(e.f){const I=m?ee(f,l)?f[l]:d[l]:l.value;o?K(I)&&tr(I,r):K(I)?I.includes(r)||I.push(r):m?(d[l]=[r],ee(f,l)&&(f[l]=d[l])):(l.value=[r],e.k&&(d[e.k]=l.value))}else m?(d[l]=i,ee(f,l)&&(f[l]=i)):g&&(l.value=i,e.k&&(d[e.k]=i))};i?(y.id=-1,je(y,n)):y()}}}const je=iu;function Mu(e){return Fu(e)}function Fu(e,t){const n=Po();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:h,setElementText:d,parentNode:f,nextSibling:m,setScopeId:g=Xe,insertStaticContent:y}=e,I=(u,c,p,w=null,L=null,x=null,R=void 0,A=null,F=!!c.dynamicChildren)=>{if(u===c)return;u&&!$n(u,c)&&(w=Et(u),Se(u,L,x,!0),u=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:P,ref:j,shapeFlag:H}=c;switch(P){case Mn:T(u,c,p,w);break;case Jt:_(u,c,p,w);break;case Nr:u==null&&k(c,p,w,R);break;case Le:oe(u,c,p,w,L,x,R,A,F);break;default:H&1?S(u,c,p,w,L,x,R,A,F):H&6?we(u,c,p,w,L,x,R,A,F):(H&64||H&128)&&P.process(u,c,p,w,L,x,R,A,F,$e)}j!=null&&L&&xr(j,u&&u.ref,x,c||u,!c)},T=(u,c,p,w)=>{if(u==null)s(c.el=a(c.children),p,w);else{const L=c.el=u.el;c.children!==u.children&&h(L,c.children)}},_=(u,c,p,w)=>{u==null?s(c.el=l(c.children||""),p,w):c.el=u.el},k=(u,c,p,w)=>{[u.el,u.anchor]=y(u.children,c,p,w,u.el,u.anchor)},v=({el:u,anchor:c},p,w)=>{let L;for(;u&&u!==c;)L=m(u),s(u,p,w),u=L;s(c,p,w)},b=({el:u,anchor:c})=>{let p;for(;u&&u!==c;)p=m(u),o(u),u=p;o(c)},S=(u,c,p,w,L,x,R,A,F)=>{c.type==="svg"?R="svg":c.type==="math"&&(R="mathml"),u==null?C(c,p,w,L,x,R,A,F):N(u,c,L,x,R,A,F)},C=(u,c,p,w,L,x,R,A)=>{let F,P;const{props:j,shapeFlag:H,transition:U,dirs:E}=u;if(F=u.el=i(u.type,x,j&&j.is,j),H&8?d(F,u.children):H&16&&D(u.children,F,null,w,L,Cr(u,x),R,A),E&&Bt(u,null,w,"created"),M(F,u,u.scopeId,R,w),j){for(const W in j)W!=="value"&&!Sn(W)&&r(F,W,null,j[W],x,u.children,w,L,De);"value"in j&&r(F,"value",null,j.value,x),(P=j.onVnodeBeforeMount)&&at(P,w,u)}E&&Bt(u,null,w,"beforeMount");const O=Du(L,U);O&&U.beforeEnter(F),s(F,c,p),((P=j&&j.onVnodeMounted)||O||E)&&je(()=>{P&&at(P,w,u),O&&U.enter(F),E&&Bt(u,null,w,"mounted")},L)},M=(u,c,p,w,L)=>{if(p&&g(u,p),w)for(let x=0;x<w.length;x++)g(u,w[x]);if(L){let x=L.subTree;if(c===x){const R=L.vnode;M(u,R,R.scopeId,R.slotScopeIds,L.parent)}}},D=(u,c,p,w,L,x,R,A,F=0)=>{for(let P=F;P<u.length;P++){const j=u[P]=A?Pt(u[P]):it(u[P]);I(null,j,c,p,w,L,x,R,A)}},N=(u,c,p,w,L,x,R)=>{const A=c.el=u.el;let{patchFlag:F,dynamicChildren:P,dirs:j}=c;F|=u.patchFlag&16;const H=u.props||ae,U=c.props||ae;let E;if(p&&Zt(p,!1),(E=U.onVnodeBeforeUpdate)&&at(E,p,c,u),j&&Bt(c,u,p,"beforeUpdate"),p&&Zt(p,!0),P?X(u.dynamicChildren,P,A,p,w,Cr(c,L),x):R||ne(u,c,A,null,p,w,Cr(c,L),x,!1),F>0){if(F&16)fe(A,c,H,U,p,w,L);else if(F&2&&H.class!==U.class&&r(A,"class",null,U.class,L),F&4&&r(A,"style",H.style,U.style,L),F&8){const O=c.dynamicProps;for(let W=0;W<O.length;W++){const z=O[W],de=H[z],Ae=U[z];(Ae!==de||z==="value")&&r(A,z,de,Ae,L,u.children,p,w,De)}}F&1&&u.children!==c.children&&d(A,c.children)}else!R&&P==null&&fe(A,c,H,U,p,w,L);((E=U.onVnodeUpdated)||j)&&je(()=>{E&&at(E,p,c,u),j&&Bt(c,u,p,"updated")},w)},X=(u,c,p,w,L,x,R)=>{for(let A=0;A<c.length;A++){const F=u[A],P=c[A],j=F.el&&(F.type===Le||!$n(F,P)||F.shapeFlag&70)?f(F.el):p;I(F,P,j,null,w,L,x,R,!0)}},fe=(u,c,p,w,L,x,R)=>{if(p!==w){if(p!==ae)for(const A in p)!Sn(A)&&!(A in w)&&r(u,A,p[A],null,R,c.children,L,x,De);for(const A in w){if(Sn(A))continue;const F=w[A],P=p[A];F!==P&&A!=="value"&&r(u,A,P,F,R,c.children,L,x,De)}"value"in w&&r(u,"value",p.value,w.value,R)}},oe=(u,c,p,w,L,x,R,A,F)=>{const P=c.el=u?u.el:a(""),j=c.anchor=u?u.anchor:a("");let{patchFlag:H,dynamicChildren:U,slotScopeIds:E}=c;E&&(A=A?A.concat(E):E),u==null?(s(P,p,w),s(j,p,w),D(c.children||[],p,j,L,x,R,A,F)):H>0&&H&64&&U&&u.dynamicChildren?(X(u.dynamicChildren,U,p,L,x,R,A),(c.key!=null||L&&c===L.subTree)&&Hi(u,c,!0)):ne(u,c,p,j,L,x,R,A,F)},we=(u,c,p,w,L,x,R,A,F)=>{c.slotScopeIds=A,u==null?c.shapeFlag&512?L.ctx.activate(c,p,w,R,F):qe(c,p,w,L,x,R,F):Ve(u,c,F)},qe=(u,c,p,w,L,x,R)=>{const A=u.component=Gu(u,w,L);if(vi(u)&&(A.ctx.renderer=$e),Yu(A),A.asyncDep){if(L&&L.registerDep(A,Z),!u.el){const F=A.subTree=Ne(Jt);_(null,F,c,p)}}else Z(A,u,c,p,L,x,R)},Ve=(u,c,p)=>{const w=c.component=u.component;if(eu(u,c,p))if(w.asyncDep&&!w.asyncResolved){ie(w,c,p);return}else w.next=c,Yc(w.update),w.effect.dirty=!0,w.update();else c.el=u.el,w.vnode=c},Z=(u,c,p,w,L,x,R)=>{const A=()=>{if(u.isMounted){let{next:j,bu:H,u:U,parent:E,vnode:O}=u;{const Ye=Vi(u);if(Ye){j&&(j.el=O.el,ie(u,j,R)),Ye.asyncDep.then(()=>{u.isUnmounted||A()});return}}let W=j,z;Zt(u,!1),j?(j.el=O.el,ie(u,j,R)):j=O,H&&ns(H),(z=j.props&&j.props.onVnodeBeforeUpdate)&&at(z,E,j,O),Zt(u,!0);const de=kr(u),Ae=u.subTree;u.subTree=de,I(Ae,de,f(Ae.el),Et(Ae),u,L,x),j.el=de.el,W===null&&tu(u,de.el),U&&je(U,L),(z=j.props&&j.props.onVnodeUpdated)&&je(()=>at(z,E,j,O),L)}else{let j;const{el:H,props:U}=c,{bm:E,m:O,parent:W}=u,z=ws(c);if(Zt(u,!1),E&&ns(E),!z&&(j=U&&U.onVnodeBeforeMount)&&at(j,W,c),Zt(u,!0),H&&It){const de=()=>{u.subTree=kr(u),It(H,u.subTree,u,L,null)};z?c.type.__asyncLoader().then(()=>!u.isUnmounted&&de()):de()}else{const de=u.subTree=kr(u);I(null,de,p,w,u,L,x),c.el=de.el}if(O&&je(O,L),!z&&(j=U&&U.onVnodeMounted)){const de=c;je(()=>at(j,W,de),L)}(c.shapeFlag&256||W&&ws(W.vnode)&&W.vnode.shapeFlag&256)&&u.a&&je(u.a,L),u.isMounted=!0,c=p=w=null}},F=u.effect=new ar(A,Xe,()=>yr(P),u.scope),P=u.update=()=>{F.dirty&&F.run()};P.id=u.uid,Zt(u,!0),P()},ie=(u,c,p)=>{c.component=u;const w=u.vnode.props;u.vnode=c,u.next=null,Nu(u,c.props,w,p),Ru(u,c.children,p),Ot(),di(u),St()},ne=(u,c,p,w,L,x,R,A,F=!1)=>{const P=u&&u.children,j=u?u.shapeFlag:0,H=c.children,{patchFlag:U,shapeFlag:E}=c;if(U>0){if(U&128){mt(P,H,p,w,L,x,R,A,F);return}else if(U&256){Ke(P,H,p,w,L,x,R,A,F);return}}E&8?(j&16&&De(P,L,x),H!==P&&d(p,H)):j&16?E&16?mt(P,H,p,w,L,x,R,A,F):De(P,L,x,!0):(j&8&&d(p,""),E&16&&D(H,p,w,L,x,R,A,F))},Ke=(u,c,p,w,L,x,R,A,F)=>{u=u||ln,c=c||ln;const P=u.length,j=c.length,H=Math.min(P,j);let U;for(U=0;U<H;U++){const E=c[U]=F?Pt(c[U]):it(c[U]);I(u[U],E,p,null,L,x,R,A,F)}P>j?De(u,L,x,!0,!1,H):D(c,p,w,L,x,R,A,F,H)},mt=(u,c,p,w,L,x,R,A,F)=>{let P=0;const j=c.length;let H=u.length-1,U=j-1;for(;P<=H&&P<=U;){const E=u[P],O=c[P]=F?Pt(c[P]):it(c[P]);if($n(E,O))I(E,O,p,null,L,x,R,A,F);else break;P++}for(;P<=H&&P<=U;){const E=u[H],O=c[U]=F?Pt(c[U]):it(c[U]);if($n(E,O))I(E,O,p,null,L,x,R,A,F);else break;H--,U--}if(P>H){if(P<=U){const E=U+1,O=E<j?c[E].el:w;for(;P<=U;)I(null,c[P]=F?Pt(c[P]):it(c[P]),p,O,L,x,R,A,F),P++}}else if(P>U)for(;P<=H;)Se(u[P],L,x,!0),P++;else{const E=P,O=P,W=new Map;for(P=O;P<=U;P++){const Be=c[P]=F?Pt(c[P]):it(c[P]);Be.key!=null&&W.set(Be.key,P)}let z,de=0;const Ae=U-O+1;let Ye=!1,Qs=0;const On=new Array(Ae);for(P=0;P<Ae;P++)On[P]=0;for(P=E;P<=H;P++){const Be=u[P];if(de>=Ae){Se(Be,L,x,!0);continue}let gt;if(Be.key!=null)gt=W.get(Be.key);else for(z=O;z<=U;z++)if(On[z-O]===0&&$n(Be,c[z])){gt=z;break}gt===void 0?Se(Be,L,x,!0):(On[gt-O]=P+1,gt>=Qs?Qs=gt:Ye=!0,I(Be,c[gt],p,null,L,x,R,A,F),de++)}const ec=Ye?$u(On):ln;for(z=ec.length-1,P=Ae-1;P>=0;P--){const Be=O+P,gt=c[Be],tc=Be+1<j?c[Be+1].el:w;On[P]===0?I(null,gt,p,tc,L,x,R,A,F):Ye&&(z<0||P!==ec[z]?ve(gt,p,tc,2):z--)}}},ve=(u,c,p,w,L=null)=>{const{el:x,type:R,transition:A,children:F,shapeFlag:P}=u;if(P&6){ve(u.component.subTree,c,p,w);return}if(P&128){u.suspense.move(c,p,w);return}if(P&64){R.move(u,c,p,$e);return}if(R===Le){s(x,c,p);for(let H=0;H<F.length;H++)ve(F[H],c,p,w);s(u.anchor,c,p);return}if(R===Nr){v(u,c,p);return}if(w!==2&&P&1&&A)if(w===0)A.beforeEnter(x),s(x,c,p),je(()=>A.enter(x),L);else{const{leave:H,delayLeave:U,afterLeave:E}=A,O=()=>s(x,c,p),W=()=>{H(x,()=>{O(),E&&E()})};U?U(x,O,W):W()}else s(x,c,p)},Se=(u,c,p,w=!1,L=!1)=>{const{type:x,props:R,ref:A,children:F,dynamicChildren:P,shapeFlag:j,patchFlag:H,dirs:U}=u;if(A!=null&&xr(A,null,p,u,!0),j&256){c.ctx.deactivate(u);return}const E=j&1&&U,O=!ws(u);let W;if(O&&(W=R&&R.onVnodeBeforeUnmount)&&at(W,c,u),j&6)an(u.component,p,w);else{if(j&128){u.suspense.unmount(p,w);return}E&&Bt(u,null,c,"beforeUnmount"),j&64?u.type.remove(u,c,p,L,$e,w):P&&(x!==Le||H>0&&H&64)?De(P,c,p,!1,!0):(x===Le&&H&384||!L&&j&16)&&De(F,c,p),w&&Ut(u)}(O&&(W=R&&R.onVnodeUnmounted)||E)&&je(()=>{W&&at(W,c,u),E&&Bt(u,null,c,"unmounted")},p)},Ut=u=>{const{type:c,el:p,anchor:w,transition:L}=u;if(c===Le){jt(p,w);return}if(c===Nr){b(u);return}const x=()=>{o(p),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(u.shapeFlag&1&&L&&!L.persisted){const{leave:R,delayLeave:A}=L,F=()=>R(p,x);A?A(u.el,x,F):F()}else x()},jt=(u,c)=>{let p;for(;u!==c;)p=m(u),o(u),u=p;o(c)},an=(u,c,p)=>{const{bum:w,scope:L,update:x,subTree:R,um:A}=u;w&&ns(w),L.stop(),x&&(x.active=!1,Se(R,u,c,p)),A&&je(A,c),je(()=>{u.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},De=(u,c,p,w=!1,L=!1,x=0)=>{for(let R=x;R<u.length;R++)Se(u[R],c,p,w,L)},Et=u=>u.shapeFlag&6?Et(u.component.subTree):u.shapeFlag&128?u.suspense.next():m(u.anchor||u.el);let nt=!1;const pt=(u,c,p)=>{u==null?c._vnode&&Se(c._vnode,null,null,!0):I(c._vnode||null,u,c,null,null,null,p),nt||(nt=!0,di(),hi(),nt=!1),c._vnode=u},$e={p:I,um:Se,m:ve,r:Ut,mt:qe,mc:D,pc:ne,pbc:X,n:Et,o:e};let st,It;return t&&([st,It]=t($e)),{render:pt,hydrate:st,createApp:Ou(pt,st)}}function Cr({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 Du(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hi(e,t,n=!1){const s=e.children,o=t.children;if(K(s)&&K(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Pt(o[r]),a.el=i.el),n||Hi(i,a)),a.type===Mn&&(a.el=i.el)}}function $u(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const h=e[s];if(h!==0){if(o=n[n.length-1],e[o]<h){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<h?r=a+1:i=a;h<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const Uu=e=>e.__isTeleport,Le=Symbol.for("v-fgt"),Mn=Symbol.for("v-txt"),Jt=Symbol.for("v-cmt"),Nr=Symbol.for("v-stc"),Fn=[];let et=null;function Q(e=!1){Fn.push(et=e?null:[])}function ju(){Fn.pop(),et=Fn[Fn.length-1]||null}let Dn=1;function Ki(e){Dn+=e}function zi(e){return e.dynamicChildren=Dn>0?et||ln:null,ju(),Dn>0&&et&&et.push(e),e}function le(e,t,n,s,o,r){return zi(se(e,t,n,s,o,r,!0))}function mn(e,t,n,s,o){return zi(Ne(e,t,n,s,o,!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 Ts="__vInternal",Gi=({key:e})=>e??null,Ls=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||_e(e)||Y(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function se(e,t=null,n=null,s=0,o=null,r=e===Le?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gi(t),ref:t&&Ls(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ce};return a?(Ar(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),Dn>0&&!i&&et&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&et.push(l),l}const Ne=Wu;function Wu(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===su)&&(e=Jt),Pr(e)){const a=pn(e,t,!0);return n&&Ar(a,n),Dn>0&&!r&&et&&(a.shapeFlag&6?et[et.indexOf(e)]=a:et.push(a)),a.patchFlag|=-2,a}if(Qu(e)&&(e=e.__vccOpts),t){t=Hu(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=os(a)),pe(l)&&(ni(l)&&!K(l)&&(l=Te({},l)),t.style=rs(l))}const i=be(e)?1:ou(e)?128:Uu(e)?64:pe(e)?4:Y(e)?2:0;return se(e,t,n,s,o,i,r,!0)}function Hu(e){return e?ni(e)||Ts in e?Te({},e):e:null}function pn(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Vu(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Gi(a),ref:t&&t.ref?n&&o?K(o)?o.concat(Ls(t)):[o,Ls(t)]:Ls(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function gn(e=" ",t=0){return Ne(Mn,null,e,t)}function Me(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):K(e)?Ne(Le,null,e.slice()):typeof e=="object"?Pt(e):Ne(Mn,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Ar(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Ar(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Ts in t)?t._ctx=Ce:o===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[gn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vu(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=os([t.class,s.class]));else if(o==="style")t.style=rs([t.style,s.style]);else if(qn(o)){const r=t[o],i=s[o];i&&r!==i&&!(K(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function at(e,t,n,s=null){Qe(e,t,7,[n,s])}const Ku=Pi();let zu=0;function Gu(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Ku,r={uid:zu++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ri(s,o),emitsOptions:pi(s,o),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:s.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,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=Zc.bind(null,r),e.ce&&e.ce(r),r}let Ee=null;const Un=()=>Ee||Ce;let Os,Rr;{const e=Po(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Os=t("__VUE_INSTANCE_SETTERS__",n=>Ee=n),Rr=t("__VUE_SSR_SETTERS__",n=>Ss=n)}const jn=e=>{const t=Ee;return Os(e),e.scope.on(),()=>{e.scope.off(),Os(t)}},Yi=()=>{Ee&&Ee.scope.off(),Os(null)};function Bi(e){return e.vnode.shapeFlag&4}let Ss=!1;function Yu(e,t=!1){t&&Rr(t);const{props:n,children:s}=e.vnode,o=Bi(e);Cu(e,n,o,t),Au(e,s);const r=o?Bu(e,t):void 0;return t&&Rr(!1),r}function Bu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,ku));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Zu(e):null,r=jn(e);Ot();const i=bt(s,e,0,[e.props,o]);if(St(),r(),So(i)){if(i.then(Yi,Yi),t)return i.then(a=>{Xi(e,a,t)}).catch(a=>{_s(a,e,0)});e.asyncDep=i}else Xi(e,i,t)}else Ji(e,t)}function Xi(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=ai(t)),Ji(e,n)}let Zi;function Ji(e,t,n){const s=e.type;if(!e.render){if(!t&&Zi&&!s.render){const o=s.template||Tr(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,h=Te(Te({isCustomElement:r,delimiters:a},i),l);s.render=Zi(o,h)}}e.render=s.render||Xe}{const o=jn(e);Ot();try{wu(e)}finally{St(),o()}}}function Xu(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ue(e,"get","$attrs"),t[n]}}))}function Zu(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Xu(e)},slots:e.slots,emit:e.emit,expose:t}}function xs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ai(ps(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 Ju=/(?:^|[-_])(\w)/g,qu=e=>e.replace(Ju,t=>t.toUpperCase()).replace(/[-_]/g,"");function qi(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e,t,n=!1){let s=qi(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=r=>{for(const i in r)if(r[i]===t)return i};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?qu(s):n?"App":"Anonymous"}function Qu(e){return Y(e)&&"__vccOpts"in e}const We=(e,t)=>Mc(e,t,Ss);function ea(e,t,n){const s=arguments.length;return s===2?pe(t)&&!K(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 ef="3.4.21";/**
|
|
17
|
+
* @vue/runtime-dom v3.4.21
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/const tf="http://www.w3.org/2000/svg",nf="http://www.w3.org/1998/Math/MathML",
|
|
20
|
+
**/const tf="http://www.w3.org/2000/svg",nf="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,ta=At&&At.createElement("template"),sf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?At.createElementNS(tf,e):t==="mathml"?At.createElementNS(nf,e):At.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>At.createTextNode(e),createComment:e=>At.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>At.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{ta.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const a=ta.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[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rf=Symbol("_vtc");function of(e,t,n){const s=e[rf];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const na=Symbol("_vod"),af=Symbol("_vsh"),lf=Symbol(""),cf=/(^|;)\s*display\s*:/;function uf(e,t,n){const s=e.style,o=be(n);let r=!1;if(n&&!o){if(t)if(be(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Cs(s,a,"")}else for(const i in t)n[i]==null&&Cs(s,i,"");for(const i in n)i==="display"&&(r=!0),Cs(s,i,n[i])}else if(o){if(t!==n){const i=s[lf];i&&(n+=";"+i),s.cssText=n,r=cf.test(n)}}else t&&e.removeAttribute("style");na in e&&(e[na]=r?s.display:"",e[af]&&(s.display="none"))}const sa=/\s*!important$/;function Cs(e,t,n){if(K(n))n.forEach(s=>Cs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ff(e,t);sa.test(n)?e.setProperty(Ht(s),n.replace(sa,""),"important"):e[s]=n}}const ra=["Webkit","Moz","ms"],Mr={};function ff(e,t){const n=Mr[t];if(n)return n;let s=rt(t);if(s!=="filter"&&s in e)return Mr[t]=s;s=ts(s);for(let o=0;o<ra.length;o++){const r=ra[o]+s;if(r in e)return Mr[t]=r}return t}const oa="http://www.w3.org/1999/xlink";function df(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(oa,t.slice(6,t.length)):e.setAttributeNS(oa,t,n);else{const r=fc(t);n==null||r&&!Ao(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function hf(e,t,n,s,o,r,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,o,r),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const h=a==="OPTION"?e.getAttribute("value")||"":e.value,d=n??"";(h!==d||!("_value"in e))&&(e.value=d),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const h=typeof e[t];h==="boolean"?n=Ao(n):n==null&&h==="string"?(n="",l=!0):h==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function _n(e,t,n,s){e.addEventListener(t,n,s)}function mf(e,t,n,s){e.removeEventListener(t,n,s)}const ia=Symbol("_vei");function pf(e,t,n,s,o=null){const r=e[ia]||(e[ia]={}),i=r[t];if(s&&i)i.value=s;else{const[a,l]=gf(t);if(s){const h=r[t]=yf(s,o);_n(e,a,h,l)}else i&&(mf(e,a,i,l),r[t]=void 0)}}const aa=/(?:Once|Passive|Capture)$/;function gf(e){let t;if(aa.test(e)){t={};let s;for(;s=e.match(aa);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ht(e.slice(2)),t]}let Fr=0;const _f=Promise.resolve(),bf=()=>Fr||(_f.then(()=>Fr=0),Fr=Date.now());function yf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Qe(kf(s,n.value),t,5,[s])};return n.value=e,n.attached=bf(),n}function kf(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const la=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,wf=(e,t,n,s,o,r,i,a,l)=>{const h=o==="svg";t==="class"?of(e,s,h):t==="style"?uf(e,n,s):qn(t)?er(t)||pf(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vf(e,t,s,h))?hf(e,t,s,r,i,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),df(e,t,s,h))};function vf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&la(t)&&Y(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return la(t)&&be(n)?!1:t in e}const ca=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>ns(t,n):t};function Ef(e){e.target.composing=!0}function ua(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Dr=Symbol("_assign"),If={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[Dr]=ca(o);const r=s||o.props&&o.props.type==="number";_n(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=rr(a)),e[Dr](a)}),n&&_n(e,"change",()=>{e.value=e.value.trim()}),t||(_n(e,"compositionstart",Ef),_n(e,"compositionend",ua),_n(e,"change",ua))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},r){if(e[Dr]=ca(r),e.composing)return;const i=o||e.type==="number"?rr(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},Tf=["ctrl","shift","alt","meta"],Lf={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)=>Tf.some(n=>e[`${n}Key`]&&!t.includes(n))},Of=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...r)=>{for(let i=0;i<t.length;i++){const a=Lf[t[i]];if(a&&a(o,t))return}return e(o,...r)})},Sf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fa=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const r=Ht(o.key);if(t.some(i=>i===r||Sf[i]===r))return e(o)})},xf=Te({patchProp:wf},sf);let da;function Cf(){return da||(da=Mu(xf))}const Nf=(...e)=>{const t=Cf().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Af(s);if(!o)return;const r=t._component;!Y(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Pf(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Pf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Af(e){return be(e)?document.querySelector(e):e}var Rf=!1;/*!
|
|
21
21
|
* pinia v2.1.7
|
|
22
22
|
* (c) 2023 Eduardo San Martin Morote
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/let ha;const Cs=e=>ha=e,ma=Symbol();function Dr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Un;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Un||(Un={}));function Af(){const e=rr(!0),t=e.run(()=>ee({}));let n=[],s=[];const o=ps({install(r){Cs(o),o._a=r,r.provide(ma,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!Pf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const pa=()=>{};function ga(e,t,n,s=pa){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Fo()&&hc(o),o}function bn(e,...t){e.slice().forEach(n=>{n(...t)})}const Rf=e=>e();function $r(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];Dr(o)&&Dr(s)&&e.hasOwnProperty(n)&&!_e(s)&&!xt(s)?e[n]=$r(o,s):e[n]=s}return e}const Mf=Symbol();function Ff(e){return!Dr(e)||!e.hasOwnProperty(Mf)}const{assign:Pt}=Object;function Df(e){return!!(_e(e)&&e.effect)}function $f(e,t,n,s){const{state:o,actions:r,getters:i}=t,a=n.state.value[e];let l;function h(){a||(n.state.value[e]=o?o():{});const f=$c(n.state.value[e]);return Pt(f,r,Object.keys(i||{}).reduce((d,m)=>(d[m]=ps(je(()=>{Cs(n);const g=n._s.get(e);return i[m].call(g,g)})),d),{}))}return l=_a(e,h,t,n,s,!0),l}function _a(e,t,n={},s,o,r){let i;const a=Pt({actions:{}},n),l={deep:!0};let h,f,d=[],m=[],g;const y=s.state.value[e];!r&&!y&&(s.state.value[e]={}),ee({});let T;function I(C){let U;h=f=!1,typeof C=="function"?(C(s.state.value[e]),U={type:Un.patchFunction,storeId:e,events:g}):($r(s.state.value[e],C),U={type:Un.patchObject,payload:C,storeId:e,events:g});const B=T=Symbol();ui().then(()=>{T===B&&(h=!0)}),f=!0,bn(d,U,s.state.value[e])}const _=r?function(){const{state:U}=n,B=U?U():{};this.$patch(fe=>{Pt(fe,B)})}:pa;function k(){i.stop(),d=[],m=[],s._s.delete(e)}function E(C,U){return function(){Cs(s);const B=Array.from(arguments),fe=[],oe=[];function we(X){fe.push(X)}function qe(X){oe.push(X)}bn(m,{args:B,name:C,store:x,after:we,onError:qe});let He;try{He=U.apply(this&&this.$id===e?this:x,B)}catch(X){throw bn(oe,X),X}return He instanceof Promise?He.then(X=>(bn(fe,X),X)).catch(X=>(bn(oe,X),Promise.reject(X))):(bn(fe,He),He)}}const b={_p:s,$id:e,$onAction:ga.bind(null,m),$patch:I,$reset:_,$subscribe(C,U={}){const B=ga(d,C,U.detached,()=>fe()),fe=i.run(()=>Gt(()=>s.state.value[e],oe=>{(U.flush==="sync"?f:h)&&C({storeId:e,type:Un.direct,events:g},oe)},Pt({},l,U)));return B},$dispose:k},x=hs(b);s._s.set(e,x);const R=(s._a&&s._a.runWithContext||Rf)(()=>s._e.run(()=>(i=rr()).run(t)));for(const C in R){const U=R[C];if(_e(U)&&!Df(U)||xt(U))r||(y&&Ff(U)&&(_e(U)?U.value=y[C]:$r(U,y[C])),s.state.value[e][C]=U);else if(typeof U=="function"){const B=E(C,U);R[C]=B,a.actions[C]=U}}return Pt(x,R),Pt(J(x),R),Object.defineProperty(x,"$state",{get:()=>s.state.value[e],set:C=>{I(U=>{Pt(U,C)})}}),s._p.forEach(C=>{Pt(x,i.run(()=>C({store:x,app:s._a,pinia:s,options:a})))}),y&&r&&n.hydrate&&n.hydrate(x.$state,y),h=!0,f=!0,x}function Uf(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(a,l){const h=Su();return a=a||(h?Ze(ma,null):null),a&&Cs(a),a=ha,a._s.has(s)||(r?_a(s,t,o,a):$f(s,o,a)),a._s.get(s)}return i.$id=s,i}const ba=Symbol("$auth0");function lt(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]])}return n}typeof SuppressedError=="function"&&SuppressedError;var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jr(e,t){return e(t={exports:{}},t.exports),t.exports}var Qt=jr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(r,i){var a=o.locked.get(r);a===void 0?i===void 0?o.locked.set(r,[]):o.locked.set(r,[i]):i!==void 0&&(a.unshift(i),o.locked.set(r,a))},this.isLocked=function(r){return o.locked.has(r)},this.lock=function(r){return new Promise(function(i,a){o.isLocked(r)?o.addToLocked(r,i):(o.addToLocked(r),i())})},this.unlock=function(r){var i=o.locked.get(r);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(r,i),a!==void 0&&setTimeout(a,0)}else o.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});Ur(Qt);var jf=Ur(jr(function(e,t){var n=qt&&qt.__awaiter||function(f,d,m,g){return new(m||(m=Promise))(function(y,T){function I(E){try{k(g.next(E))}catch(b){T(b)}}function _(E){try{k(g.throw(E))}catch(b){T(b)}}function k(E){E.done?y(E.value):new m(function(b){b(E.value)}).then(I,_)}k((g=g.apply(f,d||[])).next())})},s=qt&&qt.__generator||function(f,d){var m,g,y,T,I={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return T={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function _(k){return function(E){return function(b){if(m)throw new TypeError("Generator is already executing.");for(;I;)try{if(m=1,g&&(y=2&b[0]?g.return:b[0]?g.throw||((y=g.return)&&y.call(g),0):g.next)&&!(y=y.call(g,b[1])).done)return y;switch(g=0,y&&(b=[2&b[0],y.value]),b[0]){case 0:case 1:y=b;break;case 4:return I.label++,{value:b[1],done:!1};case 5:I.label++,g=b[1],b=[0];continue;case 7:b=I.ops.pop(),I.trys.pop();continue;default:if(!((y=(y=I.trys).length>0&&y[y.length-1])||b[0]!==6&&b[0]!==2)){I=0;continue}if(b[0]===3&&(!y||b[1]>y[0]&&b[1]<y[3])){I.label=b[1];break}if(b[0]===6&&I.label<y[1]){I.label=y[1],y=b;break}if(y&&I.label<y[2]){I.label=y[2],I.ops.push(b);break}y[2]&&I.ops.pop(),I.trys.pop();continue}b=d.call(f,I)}catch(x){b=[6,x],g=0}finally{m=y=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([k,E])}}},o=qt;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",i={key:function(f){return n(o,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},getItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},clear:function(){return n(o,void 0,void 0,function(){return s(this,function(f){return[2,window.localStorage.clear()]})})},removeItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},setItem:function(f,d){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},keySync:function(f){return window.localStorage.key(f)},getItemSync:function(f){return window.localStorage.getItem(f)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(f){return window.localStorage.removeItem(f)},setItemSync:function(f,d){return window.localStorage.setItem(f,d)}};function a(f){return new Promise(function(d){return setTimeout(d,f)})}function l(f){for(var d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",m="",g=0;g<f;g++)m+=d[Math.floor(Math.random()*d.length)];return m}var h=function(){function f(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,f.waiters===void 0&&(f.waiters=[])}return f.prototype.acquireLock=function(d,m){return m===void 0&&(m=5e3),n(this,void 0,void 0,function(){var g,y,T,I,_,k,E;return s(this,function(b){switch(b.label){case 0:g=Date.now()+l(4),y=Date.now()+m,T=r+"-"+d,I=this.storageHandler===void 0?i:this.storageHandler,b.label=1;case 1:return Date.now()<y?[4,a(30)]:[3,8];case 2:return b.sent(),I.getItemSync(T)!==null?[3,5]:(_=this.id+"-"+d+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return b.sent(),I.setItemSync(T,JSON.stringify({id:this.id,iat:g,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return b.sent(),(k=I.getItemSync(T))!==null&&(E=JSON.parse(k)).id===this.id&&E.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(T,g),[2,!0]):[3,7];case 5:return f.lockCorrector(this.storageHandler===void 0?i:this.storageHandler),[4,this.waitForSomethingToChange(y)];case 6:b.sent(),b.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},f.prototype.refreshLockWhileAcquired=function(d,m){return n(this,void 0,void 0,function(){var g=this;return s(this,function(y){return setTimeout(function(){return n(g,void 0,void 0,function(){var T,I,_;return s(this,function(k){switch(k.label){case 0:return[4,Qt.default().lock(m)];case 1:return k.sent(),this.acquiredIatSet.has(m)?(T=this.storageHandler===void 0?i:this.storageHandler,(I=T.getItemSync(d))===null?(Qt.default().unlock(m),[2]):((_=JSON.parse(I)).timeRefreshed=Date.now(),T.setItemSync(d,JSON.stringify(_)),Qt.default().unlock(m),this.refreshLockWhileAcquired(d,m),[2])):(Qt.default().unlock(m),[2])}})})},1e3),[2]})})},f.prototype.waitForSomethingToChange=function(d){return n(this,void 0,void 0,function(){return s(this,function(m){switch(m.label){case 0:return[4,new Promise(function(g){var y=!1,T=Date.now(),I=!1;function _(){if(I||(window.removeEventListener("storage",_),f.removeFromWaiting(_),clearTimeout(k),I=!0),!y){y=!0;var E=50-(Date.now()-T);E>0?setTimeout(g,E):g(null)}}window.addEventListener("storage",_),f.addToWaiting(_);var k=setTimeout(_,Math.max(0,d-Date.now()))})];case 1:return m.sent(),[2]}})})},f.addToWaiting=function(d){this.removeFromWaiting(d),f.waiters!==void 0&&f.waiters.push(d)},f.removeFromWaiting=function(d){f.waiters!==void 0&&(f.waiters=f.waiters.filter(function(m){return m!==d}))},f.notifyWaiters=function(){f.waiters!==void 0&&f.waiters.slice().forEach(function(d){return d()})},f.prototype.releaseLock=function(d){return n(this,void 0,void 0,function(){return s(this,function(m){switch(m.label){case 0:return[4,this.releaseLock__private__(d)];case 1:return[2,m.sent()]}})})},f.prototype.releaseLock__private__=function(d){return n(this,void 0,void 0,function(){var m,g,y,T;return s(this,function(I){switch(I.label){case 0:return m=this.storageHandler===void 0?i:this.storageHandler,g=r+"-"+d,(y=m.getItemSync(g))===null?[2]:(T=JSON.parse(y)).id!==this.id?[3,2]:[4,Qt.default().lock(T.iat)];case 1:I.sent(),this.acquiredIatSet.delete(T.iat),m.removeItemSync(g),Qt.default().unlock(T.iat),f.notifyWaiters(),I.label=2;case 2:return[2]}})})},f.lockCorrector=function(d){for(var m=Date.now()-5e3,g=d,y=[],T=0;;){var I=g.keySync(T);if(I===null)break;y.push(I),T++}for(var _=!1,k=0;k<y.length;k++){var E=y[k];if(E.includes(r)){var b=g.getItemSync(E);if(b!==null){var x=JSON.parse(b);(x.timeRefreshed===void 0&&x.timeAcquired<m||x.timeRefreshed!==void 0&&x.timeRefreshed<m)&&(g.removeItemSync(E),_=!0)}}}_&&f.notifyWaiters()},f.waiters=void 0,f}();t.default=h}));const Wf={timeoutInSeconds:60},ya={name:"auth0-spa-js",version:"2.1.3"},ka=()=>Date.now();class Ne extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ne.prototype)}static fromPayload({error:t,error_description:n}){return new Ne(t,n)}}class Wr extends Ne{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,Wr.prototype)}}class jn extends Ne{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,jn.prototype)}}class Hr extends jn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Hr.prototype)}}class Vr extends Ne{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Vr.prototype)}}class Kr extends Ne{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,Kr.prototype)}}class Ns extends Ne{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${wa(t,["default"])}', scope: '${wa(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ns.prototype)}}function wa(e,t=[]){return e&&!t.includes(e)?e:""}const Ps=()=>window.crypto,zr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Ps().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},va=e=>btoa(e),Gr=e=>{var{clientId:t}=e,n=lt(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,r)=>Object.assign(Object.assign({},o),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Ea=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Hf=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Vf=async(e,t,n,s,o,r,i=1e4)=>o?(async(a,l,h,f,d,m,g)=>{return y={auth:{audience:l,scope:h},timeout:d,fetchUrl:a,fetchOptions:f,useFormData:g},T=m,new Promise(function(I,_){const k=new MessageChannel;k.port1.onmessage=function(E){E.data.error?_(new Error(E.data.error)):I(E.data),k.port1.close()},T.postMessage(y,[k.port2])});var y,T})(e,t,n,s,i,o,r):(async(a,l,h)=>{const f=new AbortController;let d;return l.signal=f.signal,Promise.race([Hf(a,l),new Promise((m,g)=>{d=setTimeout(()=>{f.abort(),g(new Error("Timeout when executing 'fetch'"))},h)})]).finally(()=>{clearTimeout(d)})})(e,s,i);async function Kf(e,t){var{baseUrl:n,timeout:s,audience:o,scope:r,auth0Client:i,useFormData:a}=e,l=lt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const h=a?Gr(l):JSON.stringify(l);return await async function(f,d,m,g,y,T,I){let _,k=null;for(let C=0;C<3;C++)try{_=await Vf(f,m,g,y,T,I,d),k=null;break}catch(U){k=U}if(k)throw k;const E=_.json,{error:b,error_description:x}=E,N=lt(E,["error","error_description"]),{ok:R}=_;if(!R){const C=x||`HTTP error. Unable to fetch ${f}`;throw b==="mfa_required"?new Kr(b,C,N.mfa_token):b==="missing_refresh_token"?new Ns(m,g):new Ne(b||"request_error",C)}return N}(`${n}/oauth/token`,s,o||"default",r,{method:"POST",body:h,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||ya))}},t,a)}const As=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ct{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,o,r]=t.split("::");return new ct({clientId:s,scope:r,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new ct({scope:n,audience:s,clientId:o})}}class zf{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 Ia{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 Gf{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||ka}async setIdToken(t,n,s){var o;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let o=await this.cache.get(t.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const r=await this.nowProvider(),i=Math.floor(r/1e3);return o.expiresAt-n<i?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):o.body}async set(t){var n;const s=new ct({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(o=>!t||o.includes(t)).reduce(async(o,r)=>{await o,await this.cache.remove(r)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new ct({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const r=ct.fromKey(s),i=new Set(r.scope&&r.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=r.scope&&a.reduce((h,f)=>h&&i.has(f),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class Yf{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 Wn=e=>typeof e=="number",Bf=["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 en=jr(function(e,t){var n=qt&&qt.__assign||function(){return n=Object.assign||function(l){for(var h,f=1,d=arguments.length;f<d;f++)for(var m in h=arguments[f])Object.prototype.hasOwnProperty.call(h,m)&&(l[m]=h[m]);return l},n.apply(this,arguments)};function s(l,h){if(!h)return"";var f="; "+l;return h===!0?f:f+"="+h}function o(l,h,f){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(h).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 m=new Date;m.setMilliseconds(m.getMilliseconds()+864e5*d.expires),d.expires=m}return s("Expires",d.expires?d.expires.toUTCString():"")+s("Domain",d.domain)+s("Path",d.path)+s("Secure",d.secure)+s("SameSite",d.sameSite)}(f)}function r(l){for(var h={},f=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,m=0;m<f.length;m++){var g=f[m].split("="),y=g.slice(1).join("=");y.charAt(0)==='"'&&(y=y.slice(1,-1));try{h[g[0].replace(d,decodeURIComponent)]=y.replace(d,decodeURIComponent)}catch{}}return h}function i(){return r(document.cookie)}function a(l,h,f){document.cookie=o(l,h,n({path:"/"},f))}t.__esModule=!0,t.encode=o,t.parse=r,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,h){a(l,"",n(n({},h),{expires:-1}))}});Ur(en),en.encode,en.parse,en.getAll;var Xf=en.get,Ta=en.set,La=en.remove;const yn={get(e){const t=Xf(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),Ta(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n)}},Zf={get:e=>yn.get(e)||yn.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),Ta(`_legacy_${e}`,JSON.stringify(t),s),yn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n),yn.remove(e,t),yn.remove(`_legacy_${e}`,t)}},Jf={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 Yr,qf=function(e){return Yr=Yr||function(t,n,s){var o=n===void 0?null:n,r=function(h,f){var d=atob(h);if(f){for(var m=new Uint8Array(d.length),g=0,y=d.length;g<y;++g)m[g]=d.charCodeAt(g);return String.fromCharCode.apply(null,new Uint16Array(m.buffer))}return d}(t,s!==void 0&&s),i=r.indexOf(`
|
|
25
|
-
`,10)+1,a=r.substring(i)+(o?"//# sourceMappingURL="+o:""),l=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(l)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",null,!1),new Worker(
|
|
24
|
+
*/let ha;const Ns=e=>ha=e,ma=Symbol();function $r(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 Mf(){const e=ir(!0),t=e.run(()=>te({}));let n=[],s=[];const o=ps({install(r){Ns(o),o._a=r,r.provide(ma,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!Rf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const pa=()=>{};function ga(e,t,n,s=pa){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Fo()&&hc(o),o}function bn(e,...t){e.slice().forEach(n=>{n(...t)})}const Ff=e=>e();function Ur(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];$r(o)&&$r(s)&&e.hasOwnProperty(n)&&!_e(s)&&!Ct(s)?e[n]=Ur(o,s):e[n]=s}return e}const Df=Symbol();function $f(e){return!$r(e)||!e.hasOwnProperty(Df)}const{assign:Rt}=Object;function Uf(e){return!!(_e(e)&&e.effect)}function jf(e,t,n,s){const{state:o,actions:r,getters:i}=t,a=n.state.value[e];let l;function h(){a||(n.state.value[e]=o?o():{});const d=$c(n.state.value[e]);return Rt(d,r,Object.keys(i||{}).reduce((f,m)=>(f[m]=ps(We(()=>{Ns(n);const g=n._s.get(e);return i[m].call(g,g)})),f),{}))}return l=_a(e,h,t,n,s,!0),l}function _a(e,t,n={},s,o,r){let i;const a=Rt({actions:{}},n),l={deep:!0};let h,d,f=[],m=[],g;const y=s.state.value[e];!r&&!y&&(s.state.value[e]={}),te({});let I;function T(D){let N;h=d=!1,typeof D=="function"?(D(s.state.value[e]),N={type:Wn.patchFunction,storeId:e,events:g}):(Ur(s.state.value[e],D),N={type:Wn.patchObject,payload:D,storeId:e,events:g});const X=I=Symbol();ui().then(()=>{I===X&&(h=!0)}),d=!0,bn(f,N,s.state.value[e])}const _=r?function(){const{state:N}=n,X=N?N():{};this.$patch(fe=>{Rt(fe,X)})}:pa;function k(){i.stop(),f=[],m=[],s._s.delete(e)}function v(D,N){return function(){Ns(s);const X=Array.from(arguments),fe=[],oe=[];function we(Z){fe.push(Z)}function qe(Z){oe.push(Z)}bn(m,{args:X,name:D,store:S,after:we,onError:qe});let Ve;try{Ve=N.apply(this&&this.$id===e?this:S,X)}catch(Z){throw bn(oe,Z),Z}return Ve instanceof Promise?Ve.then(Z=>(bn(fe,Z),Z)).catch(Z=>(bn(oe,Z),Promise.reject(Z))):(bn(fe,Ve),Ve)}}const b={_p:s,$id:e,$onAction:ga.bind(null,m),$patch:T,$reset:_,$subscribe(D,N={}){const X=ga(f,D,N.detached,()=>fe()),fe=i.run(()=>Gt(()=>s.state.value[e],oe=>{(N.flush==="sync"?d:h)&&D({storeId:e,type:Wn.direct,events:g},oe)},Rt({},l,N)));return X},$dispose:k},S=hs(b);s._s.set(e,S);const M=(s._a&&s._a.runWithContext||Ff)(()=>s._e.run(()=>(i=ir()).run(t)));for(const D in M){const N=M[D];if(_e(N)&&!Uf(N)||Ct(N))r||(y&&$f(N)&&(_e(N)?N.value=y[D]:Ur(N,y[D])),s.state.value[e][D]=N);else if(typeof N=="function"){const X=v(D,N);M[D]=X,a.actions[D]=N}}return Rt(S,M),Rt(q(S),M),Object.defineProperty(S,"$state",{get:()=>s.state.value[e],set:D=>{T(N=>{Rt(N,D)})}}),s._p.forEach(D=>{Rt(S,i.run(()=>D({store:S,app:s._a,pinia:s,options:a})))}),y&&r&&n.hydrate&&n.hydrate(S.$state,y),h=!0,d=!0,S}function Wf(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(a,l){const h=xu();return a=a||(h?Ze(ma,null):null),a&&Ns(a),a=ha,a._s.has(s)||(r?_a(s,t,o,a):jf(s,o,a)),a._s.get(s)}return i.$id=s,i}const ba=Symbol("$auth0");function lt(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]])}return n}typeof SuppressedError=="function"&&SuppressedError;var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wr(e,t){return e(t={exports:{}},t.exports),t.exports}var Qt=Wr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(r,i){var a=o.locked.get(r);a===void 0?i===void 0?o.locked.set(r,[]):o.locked.set(r,[i]):i!==void 0&&(a.unshift(i),o.locked.set(r,a))},this.isLocked=function(r){return o.locked.has(r)},this.lock=function(r){return new Promise(function(i,a){o.isLocked(r)?o.addToLocked(r,i):(o.addToLocked(r),i())})},this.unlock=function(r){var i=o.locked.get(r);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(r,i),a!==void 0&&setTimeout(a,0)}else o.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});jr(Qt);var Hf=jr(Wr(function(e,t){var n=qt&&qt.__awaiter||function(d,f,m,g){return new(m||(m=Promise))(function(y,I){function T(v){try{k(g.next(v))}catch(b){I(b)}}function _(v){try{k(g.throw(v))}catch(b){I(b)}}function k(v){v.done?y(v.value):new m(function(b){b(v.value)}).then(T,_)}k((g=g.apply(d,f||[])).next())})},s=qt&&qt.__generator||function(d,f){var m,g,y,I,T={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return I={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function _(k){return function(v){return function(b){if(m)throw new TypeError("Generator is already executing.");for(;T;)try{if(m=1,g&&(y=2&b[0]?g.return:b[0]?g.throw||((y=g.return)&&y.call(g),0):g.next)&&!(y=y.call(g,b[1])).done)return y;switch(g=0,y&&(b=[2&b[0],y.value]),b[0]){case 0:case 1:y=b;break;case 4:return T.label++,{value:b[1],done:!1};case 5:T.label++,g=b[1],b=[0];continue;case 7:b=T.ops.pop(),T.trys.pop();continue;default:if(!((y=(y=T.trys).length>0&&y[y.length-1])||b[0]!==6&&b[0]!==2)){T=0;continue}if(b[0]===3&&(!y||b[1]>y[0]&&b[1]<y[3])){T.label=b[1];break}if(b[0]===6&&T.label<y[1]){T.label=y[1],y=b;break}if(y&&T.label<y[2]){T.label=y[2],T.ops.push(b);break}y[2]&&T.ops.pop(),T.trys.pop();continue}b=f.call(d,T)}catch(S){b=[6,S],g=0}finally{m=y=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([k,v])}}},o=qt;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",i={key:function(d){return n(o,void 0,void 0,function(){return s(this,function(f){throw new Error("Unsupported")})})},getItem:function(d){return n(o,void 0,void 0,function(){return s(this,function(f){throw new Error("Unsupported")})})},clear:function(){return n(o,void 0,void 0,function(){return s(this,function(d){return[2,window.localStorage.clear()]})})},removeItem:function(d){return n(o,void 0,void 0,function(){return s(this,function(f){throw new Error("Unsupported")})})},setItem:function(d,f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},keySync:function(d){return window.localStorage.key(d)},getItemSync:function(d){return window.localStorage.getItem(d)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(d){return window.localStorage.removeItem(d)},setItemSync:function(d,f){return window.localStorage.setItem(d,f)}};function a(d){return new Promise(function(f){return setTimeout(f,d)})}function l(d){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",m="",g=0;g<d;g++)m+=f[Math.floor(Math.random()*f.length)];return m}var h=function(){function d(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=f,d.waiters===void 0&&(d.waiters=[])}return d.prototype.acquireLock=function(f,m){return m===void 0&&(m=5e3),n(this,void 0,void 0,function(){var g,y,I,T,_,k,v;return s(this,function(b){switch(b.label){case 0:g=Date.now()+l(4),y=Date.now()+m,I=r+"-"+f,T=this.storageHandler===void 0?i:this.storageHandler,b.label=1;case 1:return Date.now()<y?[4,a(30)]:[3,8];case 2:return b.sent(),T.getItemSync(I)!==null?[3,5]:(_=this.id+"-"+f+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return b.sent(),T.setItemSync(I,JSON.stringify({id:this.id,iat:g,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return b.sent(),(k=T.getItemSync(I))!==null&&(v=JSON.parse(k)).id===this.id&&v.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(I,g),[2,!0]):[3,7];case 5:return d.lockCorrector(this.storageHandler===void 0?i:this.storageHandler),[4,this.waitForSomethingToChange(y)];case 6:b.sent(),b.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},d.prototype.refreshLockWhileAcquired=function(f,m){return n(this,void 0,void 0,function(){var g=this;return s(this,function(y){return setTimeout(function(){return n(g,void 0,void 0,function(){var I,T,_;return s(this,function(k){switch(k.label){case 0:return[4,Qt.default().lock(m)];case 1:return k.sent(),this.acquiredIatSet.has(m)?(I=this.storageHandler===void 0?i:this.storageHandler,(T=I.getItemSync(f))===null?(Qt.default().unlock(m),[2]):((_=JSON.parse(T)).timeRefreshed=Date.now(),I.setItemSync(f,JSON.stringify(_)),Qt.default().unlock(m),this.refreshLockWhileAcquired(f,m),[2])):(Qt.default().unlock(m),[2])}})})},1e3),[2]})})},d.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return s(this,function(m){switch(m.label){case 0:return[4,new Promise(function(g){var y=!1,I=Date.now(),T=!1;function _(){if(T||(window.removeEventListener("storage",_),d.removeFromWaiting(_),clearTimeout(k),T=!0),!y){y=!0;var v=50-(Date.now()-I);v>0?setTimeout(g,v):g(null)}}window.addEventListener("storage",_),d.addToWaiting(_);var k=setTimeout(_,Math.max(0,f-Date.now()))})];case 1:return m.sent(),[2]}})})},d.addToWaiting=function(f){this.removeFromWaiting(f),d.waiters!==void 0&&d.waiters.push(f)},d.removeFromWaiting=function(f){d.waiters!==void 0&&(d.waiters=d.waiters.filter(function(m){return m!==f}))},d.notifyWaiters=function(){d.waiters!==void 0&&d.waiters.slice().forEach(function(f){return f()})},d.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return s(this,function(m){switch(m.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,m.sent()]}})})},d.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var m,g,y,I;return s(this,function(T){switch(T.label){case 0:return m=this.storageHandler===void 0?i:this.storageHandler,g=r+"-"+f,(y=m.getItemSync(g))===null?[2]:(I=JSON.parse(y)).id!==this.id?[3,2]:[4,Qt.default().lock(I.iat)];case 1:T.sent(),this.acquiredIatSet.delete(I.iat),m.removeItemSync(g),Qt.default().unlock(I.iat),d.notifyWaiters(),T.label=2;case 2:return[2]}})})},d.lockCorrector=function(f){for(var m=Date.now()-5e3,g=f,y=[],I=0;;){var T=g.keySync(I);if(T===null)break;y.push(T),I++}for(var _=!1,k=0;k<y.length;k++){var v=y[k];if(v.includes(r)){var b=g.getItemSync(v);if(b!==null){var S=JSON.parse(b);(S.timeRefreshed===void 0&&S.timeAcquired<m||S.timeRefreshed!==void 0&&S.timeRefreshed<m)&&(g.removeItemSync(v),_=!0)}}}_&&d.notifyWaiters()},d.waiters=void 0,d}();t.default=h}));const Vf={timeoutInSeconds:60},ya={name:"auth0-spa-js",version:"2.1.3"},ka=()=>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 Hr extends Pe{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,Hr.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 Kr extends Pe{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Kr.prototype)}}class zr extends Pe{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,zr.prototype)}}class Ps extends Pe{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${wa(t,["default"])}', scope: '${wa(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ps.prototype)}}function wa(e,t=[]){return e&&!t.includes(e)?e:""}const As=()=>window.crypto,Gr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(As().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},va=e=>btoa(e),Yr=e=>{var{clientId:t}=e,n=lt(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,r)=>Object.assign(Object.assign({},o),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Ea=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Kf=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},zf=async(e,t,n,s,o,r,i=1e4)=>o?(async(a,l,h,d,f,m,g)=>{return y={auth:{audience:l,scope:h},timeout:f,fetchUrl:a,fetchOptions:d,useFormData:g},I=m,new Promise(function(T,_){const k=new MessageChannel;k.port1.onmessage=function(v){v.data.error?_(new Error(v.data.error)):T(v.data),k.port1.close()},I.postMessage(y,[k.port2])});var y,I})(e,t,n,s,i,o,r):(async(a,l,h)=>{const d=new AbortController;let f;return l.signal=d.signal,Promise.race([Kf(a,l),new Promise((m,g)=>{f=setTimeout(()=>{d.abort(),g(new Error("Timeout when executing 'fetch'"))},h)})]).finally(()=>{clearTimeout(f)})})(e,s,i);async function Gf(e,t){var{baseUrl:n,timeout:s,audience:o,scope:r,auth0Client:i,useFormData:a}=e,l=lt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const h=a?Yr(l):JSON.stringify(l);return await async function(d,f,m,g,y,I,T){let _,k=null;for(let D=0;D<3;D++)try{_=await zf(d,m,g,y,I,T,f),k=null;break}catch(N){k=N}if(k)throw k;const v=_.json,{error:b,error_description:S}=v,C=lt(v,["error","error_description"]),{ok:M}=_;if(!M){const D=S||`HTTP error. Unable to fetch ${d}`;throw b==="mfa_required"?new zr(b,D,C.mfa_token):b==="missing_refresh_token"?new Ps(m,g):new Pe(b||"request_error",D)}return C}(`${n}/oauth/token`,s,o||"default",r,{method:"POST",body:h,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||ya))}},t,a)}const Rs=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ct{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,o,r]=t.split("::");return new ct({clientId:s,scope:r,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new ct({scope:n,audience:s,clientId:o})}}class Yf{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 Ia{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 Bf{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||ka}async setIdToken(t,n,s){var o;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let o=await this.cache.get(t.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const r=await this.nowProvider(),i=Math.floor(r/1e3);return o.expiresAt-n<i?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):o.body}async set(t){var n;const s=new ct({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(o=>!t||o.includes(t)).reduce(async(o,r)=>{await o,await this.cache.remove(r)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new ct({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const r=ct.fromKey(s),i=new Set(r.scope&&r.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=r.scope&&a.reduce((h,d)=>h&&i.has(d),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class Xf{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",Zf=["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 en=Wr(function(e,t){var n=qt&&qt.__assign||function(){return n=Object.assign||function(l){for(var h,d=1,f=arguments.length;d<f;d++)for(var m in h=arguments[d])Object.prototype.hasOwnProperty.call(h,m)&&(l[m]=h[m]);return l},n.apply(this,arguments)};function s(l,h){if(!h)return"";var d="; "+l;return h===!0?d:d+"="+h}function o(l,h,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(h).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(f){if(typeof f.expires=="number"){var m=new Date;m.setMilliseconds(m.getMilliseconds()+864e5*f.expires),f.expires=m}return s("Expires",f.expires?f.expires.toUTCString():"")+s("Domain",f.domain)+s("Path",f.path)+s("Secure",f.secure)+s("SameSite",f.sameSite)}(d)}function r(l){for(var h={},d=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,m=0;m<d.length;m++){var g=d[m].split("="),y=g.slice(1).join("=");y.charAt(0)==='"'&&(y=y.slice(1,-1));try{h[g[0].replace(f,decodeURIComponent)]=y.replace(f,decodeURIComponent)}catch{}}return h}function i(){return r(document.cookie)}function a(l,h,d){document.cookie=o(l,h,n({path:"/"},d))}t.__esModule=!0,t.encode=o,t.parse=r,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,h){a(l,"",n(n({},h),{expires:-1}))}});jr(en),en.encode,en.parse,en.getAll;var Jf=en.get,Ta=en.set,La=en.remove;const yn={get(e){const t=Jf(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),Ta(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n)}},qf={get:e=>yn.get(e)||yn.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),Ta(`_legacy_${e}`,JSON.stringify(t),s),yn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n),yn.remove(e,t),yn.remove(`_legacy_${e}`,t)}},Qf={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 Br,ed=function(e){return Br=Br||function(t,n,s){var o=n===void 0?null:n,r=function(h,d){var f=atob(h);if(d){for(var m=new Uint8Array(f.length),g=0,y=f.length;g<y;++g)m[g]=f.charCodeAt(g);return String.fromCharCode.apply(null,new Uint16Array(m.buffer))}return f}(t,s!==void 0&&s),i=r.indexOf(`
|
|
25
|
+
`,10)+1,a=r.substring(i)+(o?"//# sourceMappingURL="+o:""),l=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(l)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",null,!1),new Worker(Br,e)};const Xr={};class td{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 nd={memory:()=>new Ia().enclosedCache,localstorage:()=>new Yf},Oa=e=>nd[e],Sa=e=>{const{openUrl:t,onRedirect:n}=e,s=lt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Zr=new Hf;class sd{constructor(t){let n,s;if(this.userCache=new Ia().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Zr.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",!Oa(n))throw new Error(`Invalid cache location "${n}"`);s=Oa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?yn:Zf,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:Jf;var r;this.scope=As("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Yf(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||ka,this.cacheManager=new Gf(s,s.allKeys?void 0:new Qf(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new qf)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ya)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Gr(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(d=>{const m=d.split("."),[g,y,T]=m;if(m.length!==3||!g||!y||!T)throw new Error("ID token could not be decoded");const I=JSON.parse(Ea(y)),_={__raw:d},k={};return Object.keys(I).forEach(E=>{_[E]=I[E],Bf.includes(E)||(k[E]=I[E])}),{encoded:{header:g,payload:y,signature:T},header:JSON.parse(Ea(g)),claims:_,user:k}})(i.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!Wn(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||!Wn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Wn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=i.leeway||60,h=new Date(i.now||Date.now()),f=new Date(0);if(f.setUTCSeconds(a.claims.exp+l),h>f)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${h}) is after expiration time (${f})`);if(a.claims.nbf!=null&&Wn(a.claims.nbf)){const d=new Date(0);if(d.setUTCSeconds(a.claims.nbf-l),h<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 (${h}) is before ${d}`)}if(a.claims.auth_time!=null&&Wn(a.claims.auth_time)){const d=new Date(0);if(d.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),h>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 (${h}) is after last auth at ${d}`)}if(i.organization){const d=i.organization.trim();if(d.startsWith("org_")){const m=d;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(m!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${m}", found "${a.claims.org_id}"`)}else{const m=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(m!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${m}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:o});var r}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const o=va(zr()),r=va(zr()),i=zr(),a=(f=>{const d=new Uint8Array(f);return(m=>{const g={"+":"-","/":"_","=":""};return m.replace(/[+/=]/g,y=>g[y])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async f=>await Ps().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(i)),l=((f,d,m,g,y,T,I,_)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),m),{scope:As(d,m.scope),response_type:"code",response_mode:_||"query",state:g,nonce:y,redirect_uri:I||f.authorizationParams.redirect_uri,code_challenge:T,code_challenge_method:"S256"}))(this.options,this.scope,t,o,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),h=this._authorizeUrl(l);return{nonce:r,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:h}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,h=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${h},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const r=await(a=>new Promise((l,h)=>{let f;const d=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(d),clearTimeout(m),window.removeEventListener("message",f,!1),h(new Vr(a.popup)))},1e3),m=setTimeout(()=>{clearInterval(d),h(new Hr(a.popup)),window.removeEventListener("message",f,!1)},1e3*(a.timeoutInSeconds||60));f=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(m),clearInterval(d),window.removeEventListener("message",f,!1),a.popup.close(),g.data.response.error)return h(Ne.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==r.state)throw new Ne("state_mismatch","Invalid state");const i=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const s=xa(t),{openUrl:o,fragment:r,appState:i}=s,a=lt(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,h=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:f}=h,d=lt(h,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:i}),l&&{organization:l}));const m=r?`${f}#${r}`:f;o?await o(m):window.location.assign(m)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:s,code:o,error:r,error_description:i}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const m=new URLSearchParams(d);return{state:m.get("state"),code:m.get("code")||void 0,error:m.get("error")||void 0,error_description:m.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ne("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new Wr(r,i||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ne("state_mismatch","Invalid state");const l=a.organization,h=a.nonce,f=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},f?{redirect_uri:f}:{}),{nonceIn:h,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)})}),o=await((r,i)=>{let a=Br[i];return a||(a=r().finally(()=>{delete Br[i],a=null}),Br[i]=a),a})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=lt(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,r=3)=>{for(let i=0;i<r;i++)if(await o())return!0;return!1})(()=>Xr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new jn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const h=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(h)return h}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:r,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await Xr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Wf),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new ct({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,o=lt(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Gr(Object.assign({clientId:t.clientId},o))}`)+r}async logout(t={}){const n=xa(t),{openUrl:s}=n,o=lt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const r=this._buildLogoutUrl(o);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:o,state:r,nonce:i,code_verifier:a,redirect_uri:l,scope:h,audience:f}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ne("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,m=await((y,T,I=60)=>new Promise((_,k)=>{const E=window.document.createElement("iframe");E.setAttribute("width","0"),E.setAttribute("height","0"),E.style.display="none";const b=()=>{window.document.body.contains(E)&&(window.document.body.removeChild(E),window.removeEventListener("message",x,!1))};let x;const N=setTimeout(()=>{k(new jn),b()},1e3*I);x=function(R){if(R.origin!=T||!R.data||R.data.type!=="authorization_response")return;const C=R.source;C&&C.close(),R.data.response.error?k(Ne.fromPayload(R.data.response)):_(R.data.response),clearTimeout(N),window.removeEventListener("message",x,!1),setTimeout(b,2e3)},window.addEventListener("message",x,!1),window.document.body.appendChild(E),E.setAttribute("src",y)}))(o,this.domainUrl,d);if(r!==m.state)throw new Ne("state_mismatch","Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:m.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:n.organization});return Object.assign(Object.assign({},g),{scope:h,oauthTokenScope:g.scope,audience:f})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ct({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,o=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),o&&{timeout:o}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=lt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ct({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const o=await this.cacheManager.get(new ct({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:r,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},r=await Kf(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(r.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:i,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||i.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:i})}}function Hn(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 tn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},nd={isLoading:ee(!1),isAuthenticated:ee(!1),user:ee(void 0),idTokenClaims:ee(void 0),error:ee(null),loginWithPopup:tn,loginWithRedirect:tn,getAccessTokenSilently:tn,getAccessTokenWithPopup:tn,logout:tn,checkSession:tn,handleRedirectCallback:tn},sd=ee(nd);class rd{constructor(t,n){var s,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=ee(!0),this.isAuthenticated=ee(!1),this.user=ee({}),this.idTokenClaims=ee(),this.error=ee(null),s=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!o.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new td(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(ba,this),sd.value=this}async loginWithRedirect(t){return Hn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Hn(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 Hn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Hn(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,s,o;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const i=await this.handleRedirectCallback(),a=i?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return s}}function Sa(e,t){return Hn(e),new rd(e,t)}function Zr(){return Ze(ba)}/*!
|
|
28
|
-
* shared v9.
|
|
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",!Oa(n))throw new Error(`Invalid cache location "${n}"`);s=Oa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?yn:qf,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:Qf;var r;this.scope=Rs("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Xf(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||ka,this.cacheManager=new Bf(s,s.allKeys?void 0:new td(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new ed)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ya)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Yr(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(f=>{const m=f.split("."),[g,y,I]=m;if(m.length!==3||!g||!y||!I)throw new Error("ID token could not be decoded");const T=JSON.parse(Ea(y)),_={__raw:f},k={};return Object.keys(T).forEach(v=>{_[v]=T[v],Zf.includes(v)||(k[v]=T[v])}),{encoded:{header:g,payload:y,signature:I},header:JSON.parse(Ea(g)),claims:_,user:k}})(i.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!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=i.leeway||60,h=new Date(i.now||Date.now()),d=new Date(0);if(d.setUTCSeconds(a.claims.exp+l),h>d)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${h}) is after expiration time (${d})`);if(a.claims.nbf!=null&&Vn(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-l),h<f)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${h}) is before ${f}`)}if(a.claims.auth_time!=null&&Vn(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),h>f)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${h}) is after last auth at ${f}`)}if(i.organization){const f=i.organization.trim();if(f.startsWith("org_")){const m=f;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(m!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${m}", found "${a.claims.org_id}"`)}else{const m=f.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(m!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${m}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:o});var r}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const o=va(Gr()),r=va(Gr()),i=Gr(),a=(d=>{const f=new Uint8Array(d);return(m=>{const g={"+":"-","/":"_","=":""};return m.replace(/[+/=]/g,y=>g[y])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async d=>await As().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(i)),l=((d,f,m,g,y,I,T,_)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),m),{scope:Rs(f,m.scope),response_type:"code",response_mode:_||"query",state:g,nonce:y,redirect_uri:T||d.authorizationParams.redirect_uri,code_challenge:I,code_challenge_method:"S256"}))(this.options,this.scope,t,o,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),h=this._authorizeUrl(l);return{nonce:r,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:h}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,h=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${h},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const r=await(a=>new Promise((l,h)=>{let d;const f=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(f),clearTimeout(m),window.removeEventListener("message",d,!1),h(new Kr(a.popup)))},1e3),m=setTimeout(()=>{clearInterval(f),h(new Vr(a.popup)),window.removeEventListener("message",d,!1)},1e3*(a.timeoutInSeconds||60));d=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(m),clearInterval(f),window.removeEventListener("message",d,!1),a.popup.close(),g.data.response.error)return h(Pe.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==r.state)throw new Pe("state_mismatch","Invalid state");const i=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const s=Sa(t),{openUrl:o,fragment:r,appState:i}=s,a=lt(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,h=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:d}=h,f=lt(h,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:i}),l&&{organization:l}));const m=r?`${d}#${r}`:d;o?await o(m):window.location.assign(m)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:s,code:o,error:r,error_description:i}=(f=>{f.indexOf("#")>-1&&(f=f.substring(0,f.indexOf("#")));const m=new URLSearchParams(f);return{state:m.get("state"),code:m.get("code")||void 0,error:m.get("error")||void 0,error_description:m.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 Hr(r,i||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Pe("state_mismatch","Invalid state");const l=a.organization,h=a.nonce,d=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},d?{redirect_uri:d}:{}),{nonceIn:h,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:Rs(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((r,i)=>{let a=Xr[i];return a||(a=r().finally(()=>{delete Xr[i],a=null}),Xr[i]=a),a})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=lt(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,r=3)=>{for(let i=0;i<r;i++)if(await o())return!0;return!1})(()=>Zr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Hn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const h=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(h)return h}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:r,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await Zr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Rs(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Vf),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new ct({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,o=lt(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Yr(Object.assign({clientId:t.clientId},o))}`)+r}async logout(t={}){const n=Sa(t),{openUrl:s}=n,o=lt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const r=this._buildLogoutUrl(o);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:o,state:r,nonce:i,code_verifier:a,redirect_uri:l,scope:h,audience:d}=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 f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,m=await((y,I,T=60)=>new Promise((_,k)=>{const v=window.document.createElement("iframe");v.setAttribute("width","0"),v.setAttribute("height","0"),v.style.display="none";const b=()=>{window.document.body.contains(v)&&(window.document.body.removeChild(v),window.removeEventListener("message",S,!1))};let S;const C=setTimeout(()=>{k(new Hn),b()},1e3*T);S=function(M){if(M.origin!=I||!M.data||M.data.type!=="authorization_response")return;const D=M.source;D&&D.close(),M.data.response.error?k(Pe.fromPayload(M.data.response)):_(M.data.response),clearTimeout(C),window.removeEventListener("message",S,!1),setTimeout(b,2e3)},window.addEventListener("message",S,!1),window.document.body.appendChild(v),v.setAttribute("src",y)}))(o,this.domainUrl,f);if(r!==m.state)throw new Pe("state_mismatch","Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:m.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:n.organization});return Object.assign(Object.assign({},g),{scope:h,oauthTokenScope:g.scope,audience:d})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ct({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 Ps(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),o&&{timeout:o}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=lt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ct({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const o=await this.cacheManager.get(new ct({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:r,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},r=await Gf(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(r.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:i,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||i.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:i})}}function 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 tn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},rd={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:tn,loginWithRedirect:tn,getAccessTokenSilently:tn,getAccessTokenWithPopup:tn,logout:tn,checkSession:tn,handleRedirectCallback:tn},od=te(rd);class id{constructor(t,n){var s,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=te(!0),this.isAuthenticated=te(!1),this.user=te({}),this.idTokenClaims=te(),this.error=te(null),s=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!o.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new sd(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(ba,this),od.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,o;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const i=await this.handleRedirectCallback(),a=i?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return s}}function xa(e,t){return Kn(e),new id(e,t)}function Jr(){return Ze(ba)}/*!
|
|
28
|
+
* shared v9.10.2
|
|
29
29
|
* (c) 2024 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
|
-
*/const
|
|
32
|
-
* message-compiler v9.
|
|
31
|
+
*/const Ms=typeof window<"u",Mt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ad=(e,t,n)=>ld({l:e,k:t,s:n}),ld=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ye=e=>typeof e=="number"&&isFinite(e),cd=e=>Aa(e)==="[object Date]",Ft=e=>Aa(e)==="[object RegExp]",Fs=e=>G(e)&&Object.keys(e).length===0,Oe=Object.assign;let Ca;const kt=()=>Ca||(Ca=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Na(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ud=Object.prototype.hasOwnProperty;function Ds(e,t){return ud.call(e,t)}const me=Array.isArray,he=e=>typeof e=="function",$=e=>typeof e=="string",J=e=>typeof e=="boolean",re=e=>e!==null&&typeof e=="object",fd=e=>re(e)&&he(e.then)&&he(e.catch),Pa=Object.prototype.toString,Aa=e=>Pa.call(e),G=e=>{if(!re(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},dd=e=>e==null?"":me(e)||G(e)&&e.toString===Pa?JSON.stringify(e,null,2):String(e);function hd(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function qr(e){let t=e;return()=>++t}function md(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const $s=e=>!re(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:o}=n.pop();Object.keys(s).forEach(r=>{$s(s[r])||$s(o[r])?o[r]=s[r]:n.push({src:s[r],des:o[r]})})}}/*!
|
|
32
|
+
* message-compiler v9.10.2
|
|
33
33
|
* (c) 2024 kazuya kawaguchi
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/function
|
|
36
|
-
`,kd="\u2028",wd="\u2029";function vd(e){const t=e;let n=0,s=1,o=1,r=0;const i=R=>t[R]===yd&&t[R+1]===Fe,a=R=>t[R]===Fe,l=R=>t[R]===wd,h=R=>t[R]===kd,f=R=>i(R)||a(R)||l(R)||h(R),d=()=>n,m=()=>s,g=()=>o,y=()=>r,T=R=>i(R)||l(R)||h(R)?Fe:t[R],I=()=>T(n),_=()=>T(n+r);function k(){return r=0,f(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function E(){return i(n+r)&&r++,r++,t[n+r]}function b(){n=0,s=1,o=1,r=0}function x(R=0){r=R}function N(){const R=n+r;for(;R!==n;)k();r=0}return{index:d,line:m,column:g,peekOffset:y,charAt:T,currentChar:I,currentPeek:_,next:k,peek:E,reset:b,resetPeek:x,skipToPeek:N}}const Mt=void 0,Ed=".",Da="'",Id="tokenizer";function Td(e,t={}){const n=t.location!==!1,s=vd(e),o=()=>s.index(),r=()=>hd(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},h=()=>l,{onError:f}=t;function d(u,c,p,...w){const L=h();if(c.column+=p,c.offset+=p,f){const S=n?qr(L.startLoc,c):null,M=kn(u,S,{domain:Id,args:w});f(M)}}function m(u,c,p){u.endLoc=r(),u.currentType=c;const w={type:c};return n&&(w.loc=qr(u.startLoc,u.endLoc)),p!=null&&(w.value=p),w}const g=u=>m(u,14);function y(u,c){return u.currentChar()===c?(u.next(),c):(d(V.EXPECTED_TOKEN,r(),0,c),"")}function T(u){let c="";for(;u.currentPeek()===wt||u.currentPeek()===Fe;)c+=u.currentPeek(),u.peek();return c}function I(u){const c=T(u);return u.skipToPeek(),c}function _(u){if(u===Mt)return!1;const c=u.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function k(u){if(u===Mt)return!1;const c=u.charCodeAt(0);return c>=48&&c<=57}function E(u,c){const{currentType:p}=c;if(p!==2)return!1;T(u);const w=_(u.currentPeek());return u.resetPeek(),w}function b(u,c){const{currentType:p}=c;if(p!==2)return!1;T(u);const w=u.currentPeek()==="-"?u.peek():u.currentPeek(),L=k(w);return u.resetPeek(),L}function x(u,c){const{currentType:p}=c;if(p!==2)return!1;T(u);const w=u.currentPeek()===Da;return u.resetPeek(),w}function N(u,c){const{currentType:p}=c;if(p!==8)return!1;T(u);const w=u.currentPeek()===".";return u.resetPeek(),w}function R(u,c){const{currentType:p}=c;if(p!==9)return!1;T(u);const w=_(u.currentPeek());return u.resetPeek(),w}function C(u,c){const{currentType:p}=c;if(!(p===8||p===12))return!1;T(u);const w=u.currentPeek()===":";return u.resetPeek(),w}function U(u,c){const{currentType:p}=c;if(p!==10)return!1;const w=()=>{const S=u.currentPeek();return S==="{"?_(u.peek()):S==="@"||S==="%"||S==="|"||S===":"||S==="."||S===wt||!S?!1:S===Fe?(u.peek(),w()):_(S)},L=w();return u.resetPeek(),L}function B(u){T(u);const c=u.currentPeek()==="|";return u.resetPeek(),c}function fe(u){const c=T(u),p=u.currentPeek()==="%"&&u.peek()==="{";return u.resetPeek(),{isModulo:p,hasSpace:c.length>0}}function oe(u,c=!0){const p=(L=!1,S="",M=!1)=>{const A=u.currentPeek();return A==="{"?S==="%"?!1:L:A==="@"||!A?S==="%"?!0:L:A==="%"?(u.peek(),p(L,"%",!0)):A==="|"?S==="%"||M?!0:!(S===wt||S===Fe):A===wt?(u.peek(),p(!0,wt,M)):A===Fe?(u.peek(),p(!0,Fe,M)):!0},w=p();return c&&u.resetPeek(),w}function we(u,c){const p=u.currentChar();return p===Mt?Mt:c(p)?(u.next(),p):null}function qe(u){return we(u,p=>{const w=p.charCodeAt(0);return w>=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57||w===95||w===36})}function He(u){return we(u,p=>{const w=p.charCodeAt(0);return w>=48&&w<=57})}function X(u){return we(u,p=>{const w=p.charCodeAt(0);return w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102})}function ie(u){let c="",p="";for(;c=He(u);)p+=c;return p}function te(u){I(u);const c=u.currentChar();return c!=="%"&&d(V.EXPECTED_TOKEN,r(),0,c),u.next(),"%"}function Ve(u){let c="";for(;;){const p=u.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(oe(u))c+=p,u.next();else break;else if(p===wt||p===Fe)if(oe(u))c+=p,u.next();else{if(B(u))break;c+=p,u.next()}else c+=p,u.next()}return c}function Pe(u){I(u);let c="",p="";for(;c=qe(u);)p+=c;return u.currentChar()===Mt&&d(V.UNTERMINATED_CLOSING_BRACE,r(),0),p}function Ke(u){I(u);let c="";return u.currentChar()==="-"?(u.next(),c+=`-${ie(u)}`):c+=ie(u),u.currentChar()===Mt&&d(V.UNTERMINATED_CLOSING_BRACE,r(),0),c}function Ae(u){I(u),y(u,"'");let c="",p="";const w=S=>S!==Da&&S!==Fe;for(;c=we(u,w);)c==="\\"?p+=$t(u):p+=c;const L=u.currentChar();return L===Fe||L===Mt?(d(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),L===Fe&&(u.next(),y(u,"'")),p):(y(u,"'"),p)}function $t(u){const c=u.currentChar();switch(c){case"\\":case"'":return u.next(),`\\${c}`;case"u":return Ut(u,c,4);case"U":return Ut(u,c,6);default:return d(V.UNKNOWN_ESCAPE_SEQUENCE,r(),0,c),""}}function Ut(u,c,p){y(u,c);let w="";for(let L=0;L<p;L++){const S=X(u);if(!S){d(V.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${c}${w}${u.currentChar()}`);break}w+=S}return`\\${c}${w}`}function an(u){I(u);let c="",p="";const w=L=>L!=="{"&&L!=="}"&&L!==wt&&L!==Fe;for(;c=we(u,w);)p+=c;return p}function ze(u){let c="",p="";for(;c=qe(u);)p+=c;return p}function mt(u){const c=(p=!1,w)=>{const L=u.currentChar();return L==="{"||L==="%"||L==="@"||L==="|"||L==="("||L===")"||!L||L===wt?w:L===Fe||L===Ed?(w+=L,u.next(),c(p,w)):(w+=L,u.next(),c(!0,w))};return c(!1,"")}function nt(u){I(u);const c=y(u,"|");return I(u),c}function pt(u,c){let p=null;switch(u.currentChar()){case"{":return c.braceNest>=1&&d(V.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),u.next(),p=m(c,2,"{"),I(u),c.braceNest++,p;case"}":return c.braceNest>0&&c.currentType===2&&d(V.EMPTY_PLACEHOLDER,r(),0),u.next(),p=m(c,3,"}"),c.braceNest--,c.braceNest>0&&I(u),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),p;case"@":return c.braceNest>0&&d(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=De(u,c)||g(c),c.braceNest=0,p;default:let L=!0,S=!0,M=!0;if(B(u))return c.braceNest>0&&d(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=m(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;if(c.braceNest>0&&(c.currentType===5||c.currentType===6||c.currentType===7))return d(V.UNTERMINATED_CLOSING_BRACE,r(),0),c.braceNest=0,st(u,c);if(L=E(u,c))return p=m(c,5,Pe(u)),I(u),p;if(S=b(u,c))return p=m(c,6,Ke(u)),I(u),p;if(M=x(u,c))return p=m(c,7,Ae(u)),I(u),p;if(!L&&!S&&!M)return p=m(c,13,an(u)),d(V.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),I(u),p;break}return p}function De(u,c){const{currentType:p}=c;let w=null;const L=u.currentChar();switch((p===8||p===9||p===12||p===10)&&(L===Fe||L===wt)&&d(V.INVALID_LINKED_FORMAT,r(),0),L){case"@":return u.next(),w=m(c,8,"@"),c.inLinked=!0,w;case".":return I(u),u.next(),m(c,9,".");case":":return I(u),u.next(),m(c,10,":");default:return B(u)?(w=m(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,w):N(u,c)||C(u,c)?(I(u),De(u,c)):R(u,c)?(I(u),m(c,12,ze(u))):U(u,c)?(I(u),L==="{"?pt(u,c)||w:m(c,11,mt(u))):(p===8&&d(V.INVALID_LINKED_FORMAT,r(),0),c.braceNest=0,c.inLinked=!1,st(u,c))}}function st(u,c){let p={type:14};if(c.braceNest>0)return pt(u,c)||g(c);if(c.inLinked)return De(u,c)||g(c);switch(u.currentChar()){case"{":return pt(u,c)||g(c);case"}":return d(V.UNBALANCED_CLOSING_BRACE,r(),0),u.next(),m(c,3,"}");case"@":return De(u,c)||g(c);default:if(B(u))return p=m(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;const{isModulo:L,hasSpace:S}=fe(u);if(L)return S?m(c,0,Ve(u)):m(c,4,te(u));if(oe(u))return m(c,0,Ve(u));break}return p}function vt(){const{currentType:u,offset:c,startLoc:p,endLoc:w}=l;return l.lastType=u,l.lastOffset=c,l.lastStartLoc=p,l.lastEndLoc=w,l.offset=o(),l.startLoc=r(),s.currentChar()===Mt?m(l,14):st(s,l)}return{nextToken:vt,currentOffset:o,currentPosition:r,context:h}}const Ld="parser",Od=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function xd(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 Sd(e={}){const t=e.location!==!1,{onError:n}=e;function s(_,k,E,b,...x){const N=_.currentPosition();if(N.offset+=b,N.column+=b,n){const R=t?qr(E,N):null,C=kn(k,R,{domain:Ld,args:x});n(C)}}function o(_,k,E){const b={type:_};return t&&(b.start=k,b.end=k,b.loc={start:E,end:E}),b}function r(_,k,E,b){b&&(_.type=b),t&&(_.end=k,_.loc&&(_.loc.end=E))}function i(_,k){const E=_.context(),b=o(3,E.offset,E.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function a(_,k){const E=_.context(),{lastOffset:b,lastStartLoc:x}=E,N=o(5,b,x);return N.index=parseInt(k,10),_.nextToken(),r(N,_.currentOffset(),_.currentPosition()),N}function l(_,k){const E=_.context(),{lastOffset:b,lastStartLoc:x}=E,N=o(4,b,x);return N.key=k,_.nextToken(),r(N,_.currentOffset(),_.currentPosition()),N}function h(_,k){const E=_.context(),{lastOffset:b,lastStartLoc:x}=E,N=o(9,b,x);return N.value=k.replace(Od,xd),_.nextToken(),r(N,_.currentOffset(),_.currentPosition()),N}function f(_){const k=_.nextToken(),E=_.context(),{lastOffset:b,lastStartLoc:x}=E,N=o(8,b,x);return k.type!==12?(s(_,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),N.value="",r(N,b,x),{nextConsumeToken:k,node:N}):(k.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,ut(k)),N.value=k.value||"",r(N,_.currentOffset(),_.currentPosition()),{node:N})}function d(_,k){const E=_.context(),b=o(7,E.offset,E.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function m(_){const k=_.context(),E=o(6,k.offset,k.startLoc);let b=_.nextToken();if(b.type===9){const x=f(_);E.modifier=x.node,b=x.nextConsumeToken||_.nextToken()}switch(b.type!==10&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),b=_.nextToken(),b.type===2&&(b=_.nextToken()),b.type){case 11:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),E.key=d(_,b.value||"");break;case 5:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),E.key=l(_,b.value||"");break;case 6:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),E.key=a(_,b.value||"");break;case 7:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),E.key=h(_,b.value||"");break;default:s(_,V.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const x=_.context(),N=o(7,x.offset,x.startLoc);return N.value="",r(N,x.offset,x.startLoc),E.key=N,r(E,x.offset,x.startLoc),{nextConsumeToken:b,node:E}}return r(E,_.currentOffset(),_.currentPosition()),{node:E}}function g(_){const k=_.context(),E=k.currentType===1?_.currentOffset():k.offset,b=k.currentType===1?k.endLoc:k.startLoc,x=o(2,E,b);x.items=[];let N=null;do{const U=N||_.nextToken();switch(N=null,U.type){case 0:U.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(U)),x.items.push(i(_,U.value||""));break;case 6:U.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(U)),x.items.push(a(_,U.value||""));break;case 5:U.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(U)),x.items.push(l(_,U.value||""));break;case 7:U.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(U)),x.items.push(h(_,U.value||""));break;case 8:const B=m(_);x.items.push(B.node),N=B.nextConsumeToken||null;break}}while(k.currentType!==14&&k.currentType!==1);const R=k.currentType===1?k.lastOffset:_.currentOffset(),C=k.currentType===1?k.lastEndLoc:_.currentPosition();return r(x,R,C),x}function y(_,k,E,b){const x=_.context();let N=b.items.length===0;const R=o(1,k,E);R.cases=[],R.cases.push(b);do{const C=g(_);N||(N=C.items.length===0),R.cases.push(C)}while(x.currentType!==14);return N&&s(_,V.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),r(R,_.currentOffset(),_.currentPosition()),R}function T(_){const k=_.context(),{offset:E,startLoc:b}=k,x=g(_);return k.currentType===14?x:y(_,E,b,x)}function I(_){const k=Td(_,Ra({},e)),E=k.context(),b=o(0,E.offset,E.startLoc);return t&&b.loc&&(b.loc.source=_),b.body=T(k),e.onCacheKey&&(b.cacheKey=e.onCacheKey(_)),E.currentType!==14&&s(k,V.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,_[E.offset]||""),r(b,k.currentOffset(),k.currentPosition()),b}return{parse:I}}function ut(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 Cd(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function $a(e,t){for(let n=0;n<e.length;n++)Qr(e[n],t)}function Qr(e,t){switch(e.type){case 1:$a(e.cases,t),t.helper("plural");break;case 2:$a(e.items,t);break;case 6:Qr(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 Nd(e,t={}){const n=Cd(e);n.helper("normalize"),e.body&&Qr(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Pd(e){const t=e.body;return t.type===2?Ua(t):t.cases.forEach(n=>Ua(n)),e}function Ua(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=Fa(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 Ad="minifier";function wn(e){switch(e.t=e.type,e.type){case 0:const t=e;wn(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,s=n.cases;for(let f=0;f<s.length;f++)wn(s[f]);n.c=s,delete n.cases;break;case 2:const o=e,r=o.items;for(let f=0;f<r.length;f++)wn(r[f]);o.i=r,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const i=e;i.value&&(i.v=i.value,delete i.value);break;case 6:const a=e;wn(a.key),a.k=a.key,delete a.key,a.modifier&&(wn(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const h=e;h.k=h.key,delete h.key;break;default:throw kn(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ad,args:[e.type]})}delete e.type}const Rd="parser";function Md(e,t){const{sourceMap:n,filename:s,breakLineCode:o,needIndent:r}=t,i=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function h(I,_){a.code+=I}function f(I,_=!0){const k=_?o:"";h(r?k+" ".repeat(I):k)}function d(I=!0){const _=++a.indentLevel;I&&f(_)}function m(I=!0){const _=--a.indentLevel;I&&f(_)}function g(){f(a.indentLevel)}return{context:l,push:h,indent:d,deindent:m,newline:g,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Fd(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),vn(e,t.key),t.modifier?(e.push(", "),vn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Dd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(vn(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function $d(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(vn(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Ud(e,t){t.body?vn(e,t.body):e.push("null")}function vn(e,t){const{helper:n}=e;switch(t.type){case 0:Ud(e,t);break;case 1:$d(e,t);break;case 2:Dd(e,t);break;case 6:Fd(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 kn(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Rd,args:[t.type]})}}const jd=(e,t={})=>{const n=Ma(t.mode)?t.mode:"normal",s=Ma(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
37
|
-
`,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=
|
|
38
|
-
* core-base v9.
|
|
35
|
+
*/function pd(e,t,n){return{line:e,column:t,offset:n}}function Qr(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const gd=/\{([0-9a-zA-Z]+)\}/g;function _d(e,...t){return t.length===1&&bd(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(gd,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const Ra=Object.assign,Ma=e=>typeof e=="string",bd=e=>e!==null&&typeof e=="object";function Fa(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}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},yd={[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 kn(e,t,n={}){const{domain:s,messages:o,args:r}=n,i=_d((o||yd)[e]||"",...r||[]),a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function kd(e){throw e}const wt=" ",wd="\r",Fe=`
|
|
36
|
+
`,vd="\u2028",Ed="\u2029";function Id(e){const t=e;let n=0,s=1,o=1,r=0;const i=M=>t[M]===wd&&t[M+1]===Fe,a=M=>t[M]===Fe,l=M=>t[M]===Ed,h=M=>t[M]===vd,d=M=>i(M)||a(M)||l(M)||h(M),f=()=>n,m=()=>s,g=()=>o,y=()=>r,I=M=>i(M)||l(M)||h(M)?Fe:t[M],T=()=>I(n),_=()=>I(n+r);function k(){return r=0,d(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function v(){return i(n+r)&&r++,r++,t[n+r]}function b(){n=0,s=1,o=1,r=0}function S(M=0){r=M}function C(){const M=n+r;for(;M!==n;)k();r=0}return{index:f,line:m,column:g,peekOffset:y,charAt:I,currentChar:T,currentPeek:_,next:k,peek:v,reset:b,resetPeek:S,skipToPeek:C}}const Dt=void 0,Td=".",Da="'",Ld="tokenizer";function Od(e,t={}){const n=t.location!==!1,s=Id(e),o=()=>s.index(),r=()=>pd(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},h=()=>l,{onError:d}=t;function f(u,c,p,...w){const L=h();if(c.column+=p,c.offset+=p,d){const x=n?Qr(L.startLoc,c):null,R=kn(u,x,{domain:Ld,args:w});d(R)}}function m(u,c,p){u.endLoc=r(),u.currentType=c;const w={type:c};return n&&(w.loc=Qr(u.startLoc,u.endLoc)),p!=null&&(w.value=p),w}const g=u=>m(u,14);function y(u,c){return u.currentChar()===c?(u.next(),c):(f(V.EXPECTED_TOKEN,r(),0,c),"")}function I(u){let c="";for(;u.currentPeek()===wt||u.currentPeek()===Fe;)c+=u.currentPeek(),u.peek();return c}function T(u){const c=I(u);return u.skipToPeek(),c}function _(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function k(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=48&&c<=57}function v(u,c){const{currentType:p}=c;if(p!==2)return!1;I(u);const w=_(u.currentPeek());return u.resetPeek(),w}function b(u,c){const{currentType:p}=c;if(p!==2)return!1;I(u);const w=u.currentPeek()==="-"?u.peek():u.currentPeek(),L=k(w);return u.resetPeek(),L}function S(u,c){const{currentType:p}=c;if(p!==2)return!1;I(u);const w=u.currentPeek()===Da;return u.resetPeek(),w}function C(u,c){const{currentType:p}=c;if(p!==8)return!1;I(u);const w=u.currentPeek()===".";return u.resetPeek(),w}function M(u,c){const{currentType:p}=c;if(p!==9)return!1;I(u);const w=_(u.currentPeek());return u.resetPeek(),w}function D(u,c){const{currentType:p}=c;if(!(p===8||p===12))return!1;I(u);const w=u.currentPeek()===":";return u.resetPeek(),w}function N(u,c){const{currentType:p}=c;if(p!==10)return!1;const w=()=>{const x=u.currentPeek();return x==="{"?_(u.peek()):x==="@"||x==="%"||x==="|"||x===":"||x==="."||x===wt||!x?!1:x===Fe?(u.peek(),w()):_(x)},L=w();return u.resetPeek(),L}function X(u){I(u);const c=u.currentPeek()==="|";return u.resetPeek(),c}function fe(u){const c=I(u),p=u.currentPeek()==="%"&&u.peek()==="{";return u.resetPeek(),{isModulo:p,hasSpace:c.length>0}}function oe(u,c=!0){const p=(L=!1,x="",R=!1)=>{const A=u.currentPeek();return A==="{"?x==="%"?!1:L:A==="@"||!A?x==="%"?!0:L:A==="%"?(u.peek(),p(L,"%",!0)):A==="|"?x==="%"||R?!0:!(x===wt||x===Fe):A===wt?(u.peek(),p(!0,wt,R)):A===Fe?(u.peek(),p(!0,Fe,R)):!0},w=p();return c&&u.resetPeek(),w}function we(u,c){const p=u.currentChar();return p===Dt?Dt:c(p)?(u.next(),p):null}function qe(u){return we(u,p=>{const w=p.charCodeAt(0);return w>=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57||w===95||w===36})}function Ve(u){return we(u,p=>{const w=p.charCodeAt(0);return w>=48&&w<=57})}function Z(u){return we(u,p=>{const w=p.charCodeAt(0);return w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102})}function ie(u){let c="",p="";for(;c=Ve(u);)p+=c;return p}function ne(u){T(u);const c=u.currentChar();return c!=="%"&&f(V.EXPECTED_TOKEN,r(),0,c),u.next(),"%"}function Ke(u){let c="";for(;;){const p=u.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(oe(u))c+=p,u.next();else break;else if(p===wt||p===Fe)if(oe(u))c+=p,u.next();else{if(X(u))break;c+=p,u.next()}else c+=p,u.next()}return c}function mt(u){T(u);let c="",p="";for(;c=qe(u);)p+=c;return u.currentChar()===Dt&&f(V.UNTERMINATED_CLOSING_BRACE,r(),0),p}function ve(u){T(u);let c="";return u.currentChar()==="-"?(u.next(),c+=`-${ie(u)}`):c+=ie(u),u.currentChar()===Dt&&f(V.UNTERMINATED_CLOSING_BRACE,r(),0),c}function Se(u){T(u),y(u,"'");let c="",p="";const w=x=>x!==Da&&x!==Fe;for(;c=we(u,w);)c==="\\"?p+=Ut(u):p+=c;const L=u.currentChar();return L===Fe||L===Dt?(f(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),L===Fe&&(u.next(),y(u,"'")),p):(y(u,"'"),p)}function Ut(u){const c=u.currentChar();switch(c){case"\\":case"'":return u.next(),`\\${c}`;case"u":return jt(u,c,4);case"U":return jt(u,c,6);default:return f(V.UNKNOWN_ESCAPE_SEQUENCE,r(),0,c),""}}function jt(u,c,p){y(u,c);let w="";for(let L=0;L<p;L++){const x=Z(u);if(!x){f(V.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${c}${w}${u.currentChar()}`);break}w+=x}return`\\${c}${w}`}function an(u){T(u);let c="",p="";const w=L=>L!=="{"&&L!=="}"&&L!==wt&&L!==Fe;for(;c=we(u,w);)p+=c;return p}function De(u){let c="",p="";for(;c=qe(u);)p+=c;return p}function Et(u){const c=(p=!1,w)=>{const L=u.currentChar();return L==="{"||L==="%"||L==="@"||L==="|"||L==="("||L===")"||!L||L===wt?w:L===Fe||L===Td?(w+=L,u.next(),c(p,w)):(w+=L,u.next(),c(!0,w))};return c(!1,"")}function nt(u){T(u);const c=y(u,"|");return T(u),c}function pt(u,c){let p=null;switch(u.currentChar()){case"{":return c.braceNest>=1&&f(V.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),u.next(),p=m(c,2,"{"),T(u),c.braceNest++,p;case"}":return c.braceNest>0&&c.currentType===2&&f(V.EMPTY_PLACEHOLDER,r(),0),u.next(),p=m(c,3,"}"),c.braceNest--,c.braceNest>0&&T(u),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),p;case"@":return c.braceNest>0&&f(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=$e(u,c)||g(c),c.braceNest=0,p;default:{let L=!0,x=!0,R=!0;if(X(u))return c.braceNest>0&&f(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=m(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;if(c.braceNest>0&&(c.currentType===5||c.currentType===6||c.currentType===7))return f(V.UNTERMINATED_CLOSING_BRACE,r(),0),c.braceNest=0,st(u,c);if(L=v(u,c))return p=m(c,5,mt(u)),T(u),p;if(x=b(u,c))return p=m(c,6,ve(u)),T(u),p;if(R=S(u,c))return p=m(c,7,Se(u)),T(u),p;if(!L&&!x&&!R)return p=m(c,13,an(u)),f(V.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),T(u),p;break}}return p}function $e(u,c){const{currentType:p}=c;let w=null;const L=u.currentChar();switch((p===8||p===9||p===12||p===10)&&(L===Fe||L===wt)&&f(V.INVALID_LINKED_FORMAT,r(),0),L){case"@":return u.next(),w=m(c,8,"@"),c.inLinked=!0,w;case".":return T(u),u.next(),m(c,9,".");case":":return T(u),u.next(),m(c,10,":");default:return X(u)?(w=m(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,w):C(u,c)||D(u,c)?(T(u),$e(u,c)):M(u,c)?(T(u),m(c,12,De(u))):N(u,c)?(T(u),L==="{"?pt(u,c)||w:m(c,11,Et(u))):(p===8&&f(V.INVALID_LINKED_FORMAT,r(),0),c.braceNest=0,c.inLinked=!1,st(u,c))}}function st(u,c){let p={type:14};if(c.braceNest>0)return pt(u,c)||g(c);if(c.inLinked)return $e(u,c)||g(c);switch(u.currentChar()){case"{":return pt(u,c)||g(c);case"}":return f(V.UNBALANCED_CLOSING_BRACE,r(),0),u.next(),m(c,3,"}");case"@":return $e(u,c)||g(c);default:{if(X(u))return p=m(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;const{isModulo:L,hasSpace:x}=fe(u);if(L)return x?m(c,0,Ke(u)):m(c,4,ne(u));if(oe(u))return m(c,0,Ke(u));break}}return p}function It(){const{currentType:u,offset:c,startLoc:p,endLoc:w}=l;return l.lastType=u,l.lastOffset=c,l.lastStartLoc=p,l.lastEndLoc=w,l.offset=o(),l.startLoc=r(),s.currentChar()===Dt?m(l,14):st(s,l)}return{nextToken:It,currentOffset:o,currentPosition:r,context:h}}const Sd="parser",xd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Cd(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 Nd(e={}){const t=e.location!==!1,{onError:n}=e;function s(_,k,v,b,...S){const C=_.currentPosition();if(C.offset+=b,C.column+=b,n){const M=t?Qr(v,C):null,D=kn(k,M,{domain:Sd,args:S});n(D)}}function o(_,k,v){const b={type:_};return t&&(b.start=k,b.end=k,b.loc={start:v,end:v}),b}function r(_,k,v,b){b&&(_.type=b),t&&(_.end=k,_.loc&&(_.loc.end=v))}function i(_,k){const v=_.context(),b=o(3,v.offset,v.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function a(_,k){const v=_.context(),{lastOffset:b,lastStartLoc:S}=v,C=o(5,b,S);return C.index=parseInt(k,10),_.nextToken(),r(C,_.currentOffset(),_.currentPosition()),C}function l(_,k){const v=_.context(),{lastOffset:b,lastStartLoc:S}=v,C=o(4,b,S);return C.key=k,_.nextToken(),r(C,_.currentOffset(),_.currentPosition()),C}function h(_,k){const v=_.context(),{lastOffset:b,lastStartLoc:S}=v,C=o(9,b,S);return C.value=k.replace(xd,Cd),_.nextToken(),r(C,_.currentOffset(),_.currentPosition()),C}function d(_){const k=_.nextToken(),v=_.context(),{lastOffset:b,lastStartLoc:S}=v,C=o(8,b,S);return k.type!==12?(s(_,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,v.lastStartLoc,0),C.value="",r(C,b,S),{nextConsumeToken:k,node:C}):(k.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,ut(k)),C.value=k.value||"",r(C,_.currentOffset(),_.currentPosition()),{node:C})}function f(_,k){const v=_.context(),b=o(7,v.offset,v.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function m(_){const k=_.context(),v=o(6,k.offset,k.startLoc);let b=_.nextToken();if(b.type===9){const S=d(_);v.modifier=S.node,b=S.nextConsumeToken||_.nextToken()}switch(b.type!==10&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),b=_.nextToken(),b.type===2&&(b=_.nextToken()),b.type){case 11:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),v.key=f(_,b.value||"");break;case 5:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),v.key=l(_,b.value||"");break;case 6:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),v.key=a(_,b.value||"");break;case 7:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),v.key=h(_,b.value||"");break;default:{s(_,V.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const S=_.context(),C=o(7,S.offset,S.startLoc);return C.value="",r(C,S.offset,S.startLoc),v.key=C,r(v,S.offset,S.startLoc),{nextConsumeToken:b,node:v}}}return r(v,_.currentOffset(),_.currentPosition()),{node:v}}function g(_){const k=_.context(),v=k.currentType===1?_.currentOffset():k.offset,b=k.currentType===1?k.endLoc:k.startLoc,S=o(2,v,b);S.items=[];let C=null;do{const N=C||_.nextToken();switch(C=null,N.type){case 0:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(i(_,N.value||""));break;case 6:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(a(_,N.value||""));break;case 5:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(l(_,N.value||""));break;case 7:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(h(_,N.value||""));break;case 8:{const X=m(_);S.items.push(X.node),C=X.nextConsumeToken||null;break}}}while(k.currentType!==14&&k.currentType!==1);const M=k.currentType===1?k.lastOffset:_.currentOffset(),D=k.currentType===1?k.lastEndLoc:_.currentPosition();return r(S,M,D),S}function y(_,k,v,b){const S=_.context();let C=b.items.length===0;const M=o(1,k,v);M.cases=[],M.cases.push(b);do{const D=g(_);C||(C=D.items.length===0),M.cases.push(D)}while(S.currentType!==14);return C&&s(_,V.MUST_HAVE_MESSAGES_IN_PLURAL,v,0),r(M,_.currentOffset(),_.currentPosition()),M}function I(_){const k=_.context(),{offset:v,startLoc:b}=k,S=g(_);return k.currentType===14?S:y(_,v,b,S)}function T(_){const k=Od(_,Ra({},e)),v=k.context(),b=o(0,v.offset,v.startLoc);return t&&b.loc&&(b.loc.source=_),b.body=I(k),e.onCacheKey&&(b.cacheKey=e.onCacheKey(_)),v.currentType!==14&&s(k,V.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_[v.offset]||""),r(b,k.currentOffset(),k.currentPosition()),b}return{parse:T}}function ut(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 Pd(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function $a(e,t){for(let n=0;n<e.length;n++)eo(e[n],t)}function eo(e,t){switch(e.type){case 1:$a(e.cases,t),t.helper("plural");break;case 2:$a(e.items,t);break;case 6:{eo(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 Ad(e,t={}){const n=Pd(e);n.helper("normalize"),e.body&&eo(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Rd(e){const t=e.body;return t.type===2?Ua(t):t.cases.forEach(n=>Ua(n)),e}function Ua(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=Fa(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 Md="minifier";function wn(e){switch(e.t=e.type,e.type){case 0:{const t=e;wn(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++)wn(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++)wn(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;wn(t.key),t.k=t.key,delete t.key,t.modifier&&(wn(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 kn(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Md,args:[e.type]})}delete e.type}const Fd="parser";function Dd(e,t){const{sourceMap:n,filename:s,breakLineCode:o,needIndent:r}=t,i=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function h(T,_){a.code+=T}function d(T,_=!0){const k=_?o:"";h(r?k+" ".repeat(T):k)}function f(T=!0){const _=++a.indentLevel;T&&d(_)}function m(T=!0){const _=--a.indentLevel;T&&d(_)}function g(){d(a.indentLevel)}return{context:l,push:h,indent:f,deindent:m,newline:g,helper:T=>`_${T}`,needIndent:()=>a.needIndent}}function $d(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),vn(e,t.key),t.modifier?(e.push(", "),vn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Ud(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(vn(e,t.items[r]),r!==o-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 o=t.cases.length;for(let r=0;r<o&&(vn(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Wd(e,t){t.body?vn(e,t.body):e.push("null")}function vn(e,t){const{helper:n}=e;switch(t.type){case 0:Wd(e,t);break;case 1:jd(e,t);break;case 2:Ud(e,t);break;case 6:$d(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 kn(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Fd,args:[t.type]})}}const Hd=(e,t={})=>{const n=Ma(t.mode)?t.mode:"normal",s=Ma(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
37
|
+
`,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Dd(e,{mode:n,filename:s,sourceMap:o,breakLineCode:r,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${Fa(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),vn(l,e),l.deindent(i),l.push("}"),delete e.helpers;const{code:h,map:d}=l.context();return{ast:e,code:h,map:d?d.toJSON():void 0}};function Vd(e,t={}){const n=Ra({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Nd(n).parse(e);return s?(r&&Rd(a),o&&wn(a),{ast:a,code:""}):(Ad(a,n),Hd(a,n))}/*!
|
|
38
|
+
* core-base v9.10.2
|
|
39
39
|
* (c) 2024 kazuya kawaguchi
|
|
40
40
|
* Released under the MIT License.
|
|
41
|
-
*/function Hd(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ft=[];Ft[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ft[1]={w:[1],".":[2],"[":[4],o:[7]},Ft[2]={w:[2],i:[3,0],0:[3,0]},Ft[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ft[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ft[5]={"'":[4,0],o:8,l:[5,0]},Ft[6]={'"':[4,0],o:8,l:[6,0]};const Vd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Kd(e){return Vd.test(e)}function zd(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 Gd(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 Yd(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Kd(t)?zd(t):"*"+t}function Bd(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,h,f,d;const m=[];m[0]=()=>{i===void 0?i=a:i+=a},m[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},m[2]=()=>{m[0](),o++},m[3]=()=>{if(o>0)o--,s=4,m[0]();else{if(o=0,i===void 0||(i=Yd(i),i===!1))return!1;m[1]()}};function g(){const y=e[n+1];if(s===5&&y==="'"||s===6&&y==='"')return n++,a="\\"+y,m[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=Gd(r),d=Ft[s],h=d[l]||d.l||8,h===8||(s=h[0],h[1]!==void 0&&(f=m[h[1]],f&&(a=r,f()===!1))))return;if(s===7)return t}}const ja=new Map;function Xd(e,t){return re(e)?e[t]:null}function Zd(e,t){if(!re(e))return null;let n=ja.get(t);if(n||(n=Bd(t),n&&ja.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0||de(o))return null;o=i,r++}return o}const Jd=e=>e,qd=e=>"",Qd="text",eh=e=>e.length===0?"":fd(e),th=ud;function Wa(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function nh(e){const t=ye(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ye(e.named.count)||ye(e.named.n))?ye(e.named.count)?e.named.count:ye(e.named.n)?e.named.n:t:t}function sh(e,t){t.count||(t.count=e),t.n||(t.n=e)}function rh(e={}){const t=e.locale,n=nh(e),s=re(e.pluralRules)&&D(t)&&de(e.pluralRules[t])?e.pluralRules[t]:Wa,o=re(e.pluralRules)&&D(t)&&de(e.pluralRules[t])?Wa:void 0,r=_=>_[s(n,_.length,o)],i=e.list||[],a=_=>i[_],l=e.named||{};ye(e.pluralIndex)&&sh(n,l);const h=_=>l[_];function f(_){const k=de(e.messages)?e.messages(_):re(e.messages)?e.messages[_]:!1;return k||(e.parent?e.parent.message(_):qd)}const d=_=>e.modifiers?e.modifiers[_]:Jd,m=z(e.processor)&&de(e.processor.normalize)?e.processor.normalize:eh,g=z(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:th,y=z(e.processor)&&D(e.processor.type)?e.processor.type:Qd,I={list:a,named:h,plural:r,linked:(_,...k)=>{const[E,b]=k;let x="text",N="";k.length===1?re(E)?(N=E.modifier||N,x=E.type||x):D(E)&&(N=E||N):k.length===2&&(D(E)&&(N=E||N),D(b)&&(x=b||x));const R=f(_)(I),C=x==="vnode"&&he(R)&&N?R[0]:R;return N?d(N)(C,x):C},message:f,type:y,interpolate:g,normalize:m,values:Oe({},i,l)};return I}let Vn=null;function oh(e){Vn=e}function ih(e,t,n){Vn&&Vn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ah=lh("function:translate");function lh(e){return t=>Vn&&Vn.emit(e,t)}const ch={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},Ha=V.__EXTEND_POINT__,nn=Jr(Ha),tt={INVALID_ARGUMENT:Ha,INVALID_DATE_ARGUMENT:nn(),INVALID_ISO_DATE_ARGUMENT:nn(),NOT_SUPPORT_NON_STRING_MESSAGE:nn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:nn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:nn(),NOT_SUPPORT_LOCALE_TYPE:nn(),__EXTEND_POINT__:nn()};function ft(e){return kn(e,null,void 0)}function eo(e,t){return t.locale!=null?Va(t.locale):Va(e.locale)}let to;function Va(e){if(D(e))return e;if(de(e)){if(e.resolvedOnce&&to!=null)return to;if(e.constructor.name==="Function"){const t=e();if(cd(t))throw ft(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return to=t}else throw ft(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ft(tt.NOT_SUPPORT_LOCALE_TYPE)}function uh(e,t,n){return[...new Set([n,...he(t)?t:re(t)?Object.keys(t):D(t)?[t]:[n]])]}function Ka(e,t,n){const s=D(n)?n:En,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;he(i);)i=za(r,i,t);const a=he(t)||!z(t)?t:t.default?t.default:null;i=D(a)?[a]:a,he(i)&&za(r,i,!1),o.__localeChainCache.set(s,r)}return r}function za(e,t,n){let s=!0;for(let o=0;o<t.length&&Z(s);o++){const r=t[o];D(r)&&(s=fh(e,t[o],n))}return s}function fh(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=dh(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function dh(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(he(n)||z(n))&&n[o]&&(s=n[o])}return s}const hh="9.9.1",Us=-1,En="en-US",Ga="",Ya=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function mh(){return{upper:(e,t)=>t==="text"&&D(e)?e.toUpperCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&D(e)?e.toLowerCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&D(e)?Ya(e):t==="vnode"&&re(e)&&"__v_isVNode"in e?Ya(e.children):e}}let Ba;function Xa(e){Ba=e}let Za;function ph(e){Za=e}let Ja;function gh(e){Ja=e}let qa=null;const _h=e=>{qa=e},bh=()=>qa;let Qa=null;const el=e=>{Qa=e},yh=()=>Qa;let tl=0;function kh(e={}){const t=de(e.onWarn)?e.onWarn:dd,n=D(e.version)?e.version:hh,s=D(e.locale)||de(e.locale)?e.locale:En,o=de(s)?En:s,r=he(e.fallbackLocale)||z(e.fallbackLocale)||D(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=z(e.messages)?e.messages:{[o]:{}},a=z(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=z(e.numberFormats)?e.numberFormats:{[o]:{}},h=Oe({},e.modifiers||{},mh()),f=e.pluralRules||{},d=de(e.missing)?e.missing:null,m=Z(e.missingWarn)||Rt(e.missingWarn)?e.missingWarn:!0,g=Z(e.fallbackWarn)||Rt(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,T=!!e.unresolving,I=de(e.postTranslation)?e.postTranslation:null,_=z(e.processor)?e.processor:null,k=Z(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,b=de(e.messageCompiler)?e.messageCompiler:Ba,x=de(e.messageResolver)?e.messageResolver:Za||Xd,N=de(e.localeFallbacker)?e.localeFallbacker:Ja||uh,R=re(e.fallbackContext)?e.fallbackContext:void 0,C=e,U=re(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,B=re(C.__numberFormatters)?C.__numberFormatters:new Map,fe=re(C.__meta)?C.__meta:{};tl++;const oe={version:n,cid:tl,locale:s,fallbackLocale:r,messages:i,modifiers:h,pluralRules:f,missing:d,missingWarn:m,fallbackWarn:g,fallbackFormat:y,unresolving:T,postTranslation:I,processor:_,warnHtmlMessage:k,escapeParameter:E,messageCompiler:b,messageResolver:x,localeFallbacker:N,fallbackContext:R,onWarn:t,__meta:fe};return oe.datetimeFormats=a,oe.numberFormats=l,oe.__datetimeFormatters=U,oe.__numberFormatters=B,__INTLIFY_PROD_DEVTOOLS__&&ih(oe,n,fe),oe}function no(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return D(a)?a:t}else return t}function Kn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function so(e){return n=>wh(n,e)}function wh(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return e.plural(o.reduce((r,i)=>[...r,nl(e,i)],[]))}else return nl(e,n)}function nl(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((o,r)=>[...o,ro(e,r)],[]);return e.normalize(s)}}function ro(e,t){const n=t.t||t.type;switch(n){case 3:const s=t;return s.v||s.value;case 9:const o=t;return o.v||o.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const i=t;return e.interpolate(e.list(i.i!=null?i.i:i.index));case 6:const a=t,l=a.m||a.modifier;return e.linked(ro(e,a.k||a.key),l?ro(e,l):void 0,e.type);case 7:const h=t;return h.v||h.value;case 8:const f=t;return f.v||f.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const sl=e=>e;let In=Object.create(null);const Tn=e=>re(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function rl(e,t={}){let n=!1;const s=t.onError||bd;return t.onError=o=>{n=!0,s(o)},{...Wd(e,t),detectError:n}}const vh=(e,t)=>{if(!D(e))throw ft(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{Z(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=In[s];if(o)return o;const{code:r,detectError:i}=rl(e,t),a=new Function(`return ${r}`)();return i?a:In[s]=a}};function Eh(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&D(e)){Z(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=In[s];if(o)return o;const{ast:r,detectError:i}=rl(e,{...t,location:!1,jit:!0}),a=so(r);return i?a:In[s]=a}else{const n=e.cacheKey;if(n){const s=In[n];return s||(In[n]=so(e))}else return so(e)}}const ol=()=>"",Je=e=>de(e);function il(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,h]=oo(...t),f=Z(h.missingWarn)?h.missingWarn:e.missingWarn,d=Z(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,m=Z(h.escapeParameter)?h.escapeParameter:e.escapeParameter,g=!!h.resolvedMessage,y=D(h.default)||Z(h.default)?Z(h.default)?r?l:()=>l:h.default:n?r?l:()=>l:"",T=n||y!=="",I=eo(e,h);m&&Ih(h);let[_,k,E]=g?[l,I,a[I]||{}]:al(e,l,I,i,d,f),b=_,x=l;if(!g&&!(D(b)||Tn(b)||Je(b))&&T&&(b=y,x=b),!g&&(!(D(b)||Tn(b)||Je(b))||!D(k)))return o?Us:l;let N=!1;const R=()=>{N=!0},C=Je(b)?b:ll(e,l,k,b,x,R);if(N)return b;const U=Oh(e,k,E,h),B=rh(U),fe=Th(e,C,B),oe=s?s(fe,l):fe;if(__INTLIFY_PROD_DEVTOOLS__){const we={timestamp:Date.now(),key:D(l)?l:Je(b)?b.key:"",locale:k||(Je(b)?b.locale:""),format:D(b)?b:Je(b)?b.source:"",message:oe};we.meta=Oe({},e.__meta,bh()||{}),ah(we)}return oe}function Ih(e){he(e.list)?e.list=e.list.map(t=>D(t)?Na(t):t):re(e.named)&&Object.keys(e.named).forEach(t=>{D(e.named[t])&&(e.named[t]=Na(e.named[t]))})}function al(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:h}=e,f=h(e,s,n);let d={},m,g=null;const y="translate";for(let T=0;T<f.length&&(m=f[T],d=i[m]||{},(g=l(d,t))===null&&(g=d[t]),!(D(g)||Tn(g)||Je(g)));T++){const I=no(e,t,m,r,y);I!==t&&(g=I)}return[g,m,d]}function ll(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Je(s)){const h=s;return h.locale=h.locale||n,h.key=h.key||t,h}if(i==null){const h=()=>s;return h.locale=n,h.key=t,h}const l=i(s,Lh(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Th(e,t,n){return t(n)}function oo(...e){const[t,n,s]=e,o={};if(!D(t)&&!ye(t)&&!Je(t)&&!Tn(t))throw ft(tt.INVALID_ARGUMENT);const r=ye(t)?String(t):(Je(t),t);return ye(n)?o.plural=n:D(n)?o.default=n:z(n)&&!Ms(n)?o.named=n:he(n)&&(o.list=n),ye(s)?o.plural=s:D(s)?o.default=s:z(s)&&Oe(o,s),[r,o]}function Lh(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>od(t,n,i)}}function Oh(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:h,fallbackContext:f}=e,m={locale:t,modifiers:o,pluralRules:r,messages:g=>{let y=i(n,g);if(y==null&&f){const[,,T]=al(f,g,t,a,l,h);y=i(T,g)}if(D(y)||Tn(y)){let T=!1;const _=ll(e,g,t,y,g,()=>{T=!0});return T?ol:_}else return Je(y)?y:ol}};return e.processor&&(m.processor=e.processor),s.list&&(m.list=s.list),s.named&&(m.named=s.named),ye(s.plural)&&(m.pluralIndex=s.plural),m}function cl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,h,f,d]=io(...t),m=Z(f.missingWarn)?f.missingWarn:e.missingWarn;Z(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,y=eo(e,f),T=i(e,o,y);if(!D(l)||l==="")return new Intl.DateTimeFormat(y,d).format(h);let I={},_,k=null;const E="datetime format";for(let N=0;N<T.length&&(_=T[N],I=n[_]||{},k=I[l],!z(k));N++)no(e,l,_,m,E);if(!z(k)||!D(_))return s?Us:l;let b=`${_}__${l}`;Ms(d)||(b=`${b}__${JSON.stringify(d)}`);let x=a.get(b);return x||(x=new Intl.DateTimeFormat(_,Oe({},k,d)),a.set(b,x)),g?x.formatToParts(h):x.format(h)}const ul=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function io(...e){const[t,n,s,o]=e,r={};let i={},a;if(D(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ft(tt.INVALID_ISO_DATE_ARGUMENT);const h=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(h);try{a.toISOString()}catch{throw ft(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(ad(t)){if(isNaN(t.getTime()))throw ft(tt.INVALID_DATE_ARGUMENT);a=t}else if(ye(t))a=t;else throw ft(tt.INVALID_ARGUMENT);return D(n)?r.key=n:z(n)&&Object.keys(n).forEach(l=>{ul.includes(l)?i[l]=n[l]:r[l]=n[l]}),D(s)?r.locale=s:z(s)&&(i=s),z(o)&&(i=o),[r.key||"",a,r,i]}function fl(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function dl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,h,f,d]=ao(...t),m=Z(f.missingWarn)?f.missingWarn:e.missingWarn;Z(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,y=eo(e,f),T=i(e,o,y);if(!D(l)||l==="")return new Intl.NumberFormat(y,d).format(h);let I={},_,k=null;const E="number format";for(let N=0;N<T.length&&(_=T[N],I=n[_]||{},k=I[l],!z(k));N++)no(e,l,_,m,E);if(!z(k)||!D(_))return s?Us:l;let b=`${_}__${l}`;Ms(d)||(b=`${b}__${JSON.stringify(d)}`);let x=a.get(b);return x||(x=new Intl.NumberFormat(_,Oe({},k,d)),a.set(b,x)),g?x.formatToParts(h):x.format(h)}const hl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ao(...e){const[t,n,s,o]=e,r={};let i={};if(!ye(t))throw ft(tt.INVALID_ARGUMENT);const a=t;return D(n)?r.key=n:z(n)&&Object.keys(n).forEach(l=>{hl.includes(l)?i[l]=n[l]:r[l]=n[l]}),D(s)?r.locale=s:z(s)&&(i=s),z(o)&&(i=o),[r.key||"",a,r,i]}function ml(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}Hd();/*!
|
|
42
|
-
* vue-i18n v9.
|
|
41
|
+
*/function Kd(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const $t=[];$t[0]={w:[0],i:[3,0],"[":[4],o:[7]},$t[1]={w:[1],".":[2],"[":[4],o:[7]},$t[2]={w:[2],i:[3,0],0:[3,0]},$t[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},$t[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},$t[5]={"'":[4,0],o:8,l:[5,0]},$t[6]={'"':[4,0],o:8,l:[6,0]};const zd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Gd(e){return zd.test(e)}function Yd(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 Bd(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 Xd(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Gd(t)?Yd(t):"*"+t}function Zd(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,h,d,f;const m=[];m[0]=()=>{i===void 0?i=a:i+=a},m[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},m[2]=()=>{m[0](),o++},m[3]=()=>{if(o>0)o--,s=4,m[0]();else{if(o=0,i===void 0||(i=Xd(i),i===!1))return!1;m[1]()}};function g(){const y=e[n+1];if(s===5&&y==="'"||s===6&&y==='"')return n++,a="\\"+y,m[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=Bd(r),f=$t[s],h=f[l]||f.l||8,h===8||(s=h[0],h[1]!==void 0&&(d=m[h[1]],d&&(a=r,d()===!1))))return;if(s===7)return t}}const ja=new Map;function Jd(e,t){return re(e)?e[t]:null}function qd(e,t){if(!re(e))return null;let n=ja.get(t);if(n||(n=Zd(t),n&&ja.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0||he(o))return null;o=i,r++}return o}const Qd=e=>e,eh=e=>"",th="text",nh=e=>e.length===0?"":hd(e),sh=dd;function Wa(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function rh(e){const t=ye(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ye(e.named.count)||ye(e.named.n))?ye(e.named.count)?e.named.count:ye(e.named.n)?e.named.n:t:t}function oh(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ih(e={}){const t=e.locale,n=rh(e),s=re(e.pluralRules)&&$(t)&&he(e.pluralRules[t])?e.pluralRules[t]:Wa,o=re(e.pluralRules)&&$(t)&&he(e.pluralRules[t])?Wa:void 0,r=_=>_[s(n,_.length,o)],i=e.list||[],a=_=>i[_],l=e.named||{};ye(e.pluralIndex)&&oh(n,l);const h=_=>l[_];function d(_){const k=he(e.messages)?e.messages(_):re(e.messages)?e.messages[_]:!1;return k||(e.parent?e.parent.message(_):eh)}const f=_=>e.modifiers?e.modifiers[_]:Qd,m=G(e.processor)&&he(e.processor.normalize)?e.processor.normalize:nh,g=G(e.processor)&&he(e.processor.interpolate)?e.processor.interpolate:sh,y=G(e.processor)&&$(e.processor.type)?e.processor.type:th,T={list:a,named:h,plural:r,linked:(_,...k)=>{const[v,b]=k;let S="text",C="";k.length===1?re(v)?(C=v.modifier||C,S=v.type||S):$(v)&&(C=v||C):k.length===2&&($(v)&&(C=v||C),$(b)&&(S=b||S));const M=d(_)(T),D=S==="vnode"&&me(M)&&C?M[0]:M;return C?f(C)(D,S):D},message:d,type:y,interpolate:g,normalize:m,values:Oe({},i,l)};return T}let zn=null;function ah(e){zn=e}function lh(e,t,n){zn&&zn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ch=uh("function:translate");function uh(e){return t=>zn&&zn.emit(e,t)}const fh={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},Ha=V.__EXTEND_POINT__,nn=qr(Ha),tt={INVALID_ARGUMENT:Ha,INVALID_DATE_ARGUMENT:nn(),INVALID_ISO_DATE_ARGUMENT:nn(),NOT_SUPPORT_NON_STRING_MESSAGE:nn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:nn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:nn(),NOT_SUPPORT_LOCALE_TYPE:nn(),__EXTEND_POINT__:nn()};function ft(e){return kn(e,null,void 0)}function to(e,t){return t.locale!=null?Va(t.locale):Va(e.locale)}let no;function Va(e){if($(e))return e;if(he(e)){if(e.resolvedOnce&&no!=null)return no;if(e.constructor.name==="Function"){const t=e();if(fd(t))throw ft(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return no=t}else throw ft(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ft(tt.NOT_SUPPORT_LOCALE_TYPE)}function dh(e,t,n){return[...new Set([n,...me(t)?t:re(t)?Object.keys(t):$(t)?[t]:[n]])]}function Ka(e,t,n){const s=$(n)?n:En,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;me(i);)i=za(r,i,t);const a=me(t)||!G(t)?t:t.default?t.default:null;i=$(a)?[a]:a,me(i)&&za(r,i,!1),o.__localeChainCache.set(s,r)}return r}function za(e,t,n){let s=!0;for(let o=0;o<t.length&&J(s);o++){const r=t[o];$(r)&&(s=hh(e,t[o],n))}return s}function hh(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=mh(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function mh(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(me(n)||G(n))&&n[o]&&(s=n[o])}return s}const ph="9.10.2",js=-1,En="en-US",Ga="",Ya=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function gh(){return{upper:(e,t)=>t==="text"&&$(e)?e.toUpperCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&$(e)?e.toLowerCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&$(e)?Ya(e):t==="vnode"&&re(e)&&"__v_isVNode"in e?Ya(e.children):e}}let Ba;function Xa(e){Ba=e}let Za;function _h(e){Za=e}let Ja;function bh(e){Ja=e}let qa=null;const yh=e=>{qa=e},kh=()=>qa;let Qa=null;const el=e=>{Qa=e},wh=()=>Qa;let tl=0;function vh(e={}){const t=he(e.onWarn)?e.onWarn:md,n=$(e.version)?e.version:ph,s=$(e.locale)||he(e.locale)?e.locale:En,o=he(s)?En:s,r=me(e.fallbackLocale)||G(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=G(e.messages)?e.messages:{[o]:{}},a=G(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=G(e.numberFormats)?e.numberFormats:{[o]:{}},h=Oe({},e.modifiers||{},gh()),d=e.pluralRules||{},f=he(e.missing)?e.missing:null,m=J(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,g=J(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,I=!!e.unresolving,T=he(e.postTranslation)?e.postTranslation:null,_=G(e.processor)?e.processor:null,k=J(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,b=he(e.messageCompiler)?e.messageCompiler:Ba,S=he(e.messageResolver)?e.messageResolver:Za||Jd,C=he(e.localeFallbacker)?e.localeFallbacker:Ja||dh,M=re(e.fallbackContext)?e.fallbackContext:void 0,D=e,N=re(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,X=re(D.__numberFormatters)?D.__numberFormatters:new Map,fe=re(D.__meta)?D.__meta:{};tl++;const oe={version:n,cid:tl,locale:s,fallbackLocale:r,messages:i,modifiers:h,pluralRules:d,missing:f,missingWarn:m,fallbackWarn:g,fallbackFormat:y,unresolving:I,postTranslation:T,processor:_,warnHtmlMessage:k,escapeParameter:v,messageCompiler:b,messageResolver:S,localeFallbacker:C,fallbackContext:M,onWarn:t,__meta:fe};return oe.datetimeFormats=a,oe.numberFormats=l,oe.__datetimeFormatters=N,oe.__numberFormatters=X,__INTLIFY_PROD_DEVTOOLS__&&lh(oe,n,fe),oe}function so(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return $(a)?a:t}else return t}function Gn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ro(e){return n=>Eh(n,e)}function Eh(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return e.plural(o.reduce((r,i)=>[...r,nl(e,i)],[]))}else return nl(e,n)}function nl(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((o,r)=>[...o,oo(e,r)],[]);return e.normalize(s)}}function oo(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,o=s.m||s.modifier;return e.linked(oo(e,s.k||s.key),o?oo(e,o):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 sl=e=>e;let In=Object.create(null);const Tn=e=>re(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function rl(e,t={}){let n=!1;const s=t.onError||kd;return t.onError=o=>{n=!0,s(o)},{...Vd(e,t),detectError:n}}const Ih=(e,t)=>{if(!$(e))throw ft(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{J(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=In[s];if(o)return o;const{code:r,detectError:i}=rl(e,t),a=new Function(`return ${r}`)();return i?a:In[s]=a}};function Th(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&$(e)){J(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=In[s];if(o)return o;const{ast:r,detectError:i}=rl(e,{...t,location:!1,jit:!0}),a=ro(r);return i?a:In[s]=a}else{const n=e.cacheKey;if(n){const s=In[n];return s||(In[n]=ro(e))}else return ro(e)}}const ol=()=>"",Je=e=>he(e);function il(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,h]=io(...t),d=J(h.missingWarn)?h.missingWarn:e.missingWarn,f=J(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,m=J(h.escapeParameter)?h.escapeParameter:e.escapeParameter,g=!!h.resolvedMessage,y=$(h.default)||J(h.default)?J(h.default)?r?l:()=>l:h.default:n?r?l:()=>l:"",I=n||y!=="",T=to(e,h);m&&Lh(h);let[_,k,v]=g?[l,T,a[T]||{}]:al(e,l,T,i,f,d),b=_,S=l;if(!g&&!($(b)||Tn(b)||Je(b))&&I&&(b=y,S=b),!g&&(!($(b)||Tn(b)||Je(b))||!$(k)))return o?js:l;let C=!1;const M=()=>{C=!0},D=Je(b)?b:ll(e,l,k,b,S,M);if(C)return b;const N=xh(e,k,v,h),X=ih(N),fe=Oh(e,D,X),oe=s?s(fe,l):fe;if(__INTLIFY_PROD_DEVTOOLS__){const we={timestamp:Date.now(),key:$(l)?l:Je(b)?b.key:"",locale:k||(Je(b)?b.locale:""),format:$(b)?b:Je(b)?b.source:"",message:oe};we.meta=Oe({},e.__meta,kh()||{}),ch(we)}return oe}function Lh(e){me(e.list)?e.list=e.list.map(t=>$(t)?Na(t):t):re(e.named)&&Object.keys(e.named).forEach(t=>{$(e.named[t])&&(e.named[t]=Na(e.named[t]))})}function al(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:h}=e,d=h(e,s,n);let f={},m,g=null;const y="translate";for(let I=0;I<d.length&&(m=d[I],f=i[m]||{},(g=l(f,t))===null&&(g=f[t]),!($(g)||Tn(g)||Je(g)));I++){const T=so(e,t,m,r,y);T!==t&&(g=T)}return[g,m,f]}function ll(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Je(s)){const h=s;return h.locale=h.locale||n,h.key=h.key||t,h}if(i==null){const h=()=>s;return h.locale=n,h.key=t,h}const l=i(s,Sh(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Oh(e,t,n){return t(n)}function io(...e){const[t,n,s]=e,o={};if(!$(t)&&!ye(t)&&!Je(t)&&!Tn(t))throw ft(tt.INVALID_ARGUMENT);const r=ye(t)?String(t):(Je(t),t);return ye(n)?o.plural=n:$(n)?o.default=n:G(n)&&!Fs(n)?o.named=n:me(n)&&(o.list=n),ye(s)?o.plural=s:$(s)?o.default=s:G(s)&&Oe(o,s),[r,o]}function Sh(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>ad(t,n,i)}}function xh(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:h,fallbackContext:d}=e,m={locale:t,modifiers:o,pluralRules:r,messages:g=>{let y=i(n,g);if(y==null&&d){const[,,I]=al(d,g,t,a,l,h);y=i(I,g)}if($(y)||Tn(y)){let I=!1;const _=ll(e,g,t,y,g,()=>{I=!0});return I?ol:_}else return Je(y)?y:ol}};return e.processor&&(m.processor=e.processor),s.list&&(m.list=s.list),s.named&&(m.named=s.named),ye(s.plural)&&(m.pluralIndex=s.plural),m}function cl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,h,d,f]=ao(...t),m=J(d.missingWarn)?d.missingWarn:e.missingWarn;J(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const g=!!d.part,y=to(e,d),I=i(e,o,y);if(!$(l)||l==="")return new Intl.DateTimeFormat(y,f).format(h);let T={},_,k=null;const v="datetime format";for(let C=0;C<I.length&&(_=I[C],T=n[_]||{},k=T[l],!G(k));C++)so(e,l,_,m,v);if(!G(k)||!$(_))return s?js:l;let b=`${_}__${l}`;Fs(f)||(b=`${b}__${JSON.stringify(f)}`);let S=a.get(b);return S||(S=new Intl.DateTimeFormat(_,Oe({},k,f)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const ul=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ao(...e){const[t,n,s,o]=e,r={};let i={},a;if($(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ft(tt.INVALID_ISO_DATE_ARGUMENT);const h=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(h);try{a.toISOString()}catch{throw ft(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(cd(t)){if(isNaN(t.getTime()))throw ft(tt.INVALID_DATE_ARGUMENT);a=t}else if(ye(t))a=t;else throw ft(tt.INVALID_ARGUMENT);return $(n)?r.key=n:G(n)&&Object.keys(n).forEach(l=>{ul.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:G(s)&&(i=s),G(o)&&(i=o),[r.key||"",a,r,i]}function fl(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function dl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,h,d,f]=lo(...t),m=J(d.missingWarn)?d.missingWarn:e.missingWarn;J(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const g=!!d.part,y=to(e,d),I=i(e,o,y);if(!$(l)||l==="")return new Intl.NumberFormat(y,f).format(h);let T={},_,k=null;const v="number format";for(let C=0;C<I.length&&(_=I[C],T=n[_]||{},k=T[l],!G(k));C++)so(e,l,_,m,v);if(!G(k)||!$(_))return s?js:l;let b=`${_}__${l}`;Fs(f)||(b=`${b}__${JSON.stringify(f)}`);let S=a.get(b);return S||(S=new Intl.NumberFormat(_,Oe({},k,f)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const hl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function lo(...e){const[t,n,s,o]=e,r={};let i={};if(!ye(t))throw ft(tt.INVALID_ARGUMENT);const a=t;return $(n)?r.key=n:G(n)&&Object.keys(n).forEach(l=>{hl.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:G(s)&&(i=s),G(o)&&(i=o),[r.key||"",a,r,i]}function ml(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}Kd();/*!
|
|
42
|
+
* vue-i18n v9.10.2
|
|
43
43
|
* (c) 2024 kazuya kawaguchi
|
|
44
44
|
* Released under the MIT License.
|
|
45
|
-
*/const xh="9.9.1";function Sh(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const pl=ch.__EXTEND_POINT__,Dt=Jr(pl);Dt(),Dt(),Dt(),Dt(),Dt(),Dt(),Dt(),Dt();const gl=tt.__EXTEND_POINT__,We=Jr(gl),ke={UNEXPECTED_RETURN_TYPE:gl,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 Ee(e,...t){return kn(e,null,void 0)}const lo=At("__translateVNode"),co=At("__datetimeParts"),uo=At("__numberParts"),_l=At("__setPluralRules"),bl=At("__injectWithOption"),fo=At("__dispose");function zn(e){if(!re(e))return e;for(const t in e)if(Fs(e,t))if(!t.includes("."))re(e[t])&&zn(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]in o||(o[n[i]]={}),!re(o[n[i]])){r=!0;break}o=o[n[i]]}r||(o[n[s]]=e[t],delete e[t]),re(o[n[s]])&&zn(o[n[s]])}return e}function js(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=z(n)?n:he(s)?{}:{[e]:{}};if(he(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:h}=a;l?(i[l]=i[l]||{},$s(h,i[l])):$s(h,i)}else D(a)&&$s(JSON.parse(a),i)}),o==null&&r)for(const a in i)Fs(i,a)&&zn(i[a]);return i}function yl(e){return e.type}function kl(e,t,n){let s=re(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=js(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(re(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(re(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function wl(e){return Ce(An,null,e,0)}const vl="__INTLIFY_META__",El=()=>[],Ch=()=>!1;let Il=0;function Tl(e){return(t,n,s,o)=>e(n,s,Dn()||void 0,o)}const Nh=()=>{const e=Dn();let t=null;return e&&(t=yl(e)[vl])?{[vl]:t}:null};function ho(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson,i=Rs?ee:oi;let a=Z(e.inheritLocale)?e.inheritLocale:!0;const l=i(n&&a?n.locale.value:D(e.locale)?e.locale:En),h=i(n&&a?n.fallbackLocale.value:D(e.fallbackLocale)||he(e.fallbackLocale)||z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),f=i(js(l.value,e)),d=i(z(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),m=i(z(e.numberFormats)?e.numberFormats:{[l.value]:{}});let g=n?n.missingWarn:Z(e.missingWarn)||Rt(e.missingWarn)?e.missingWarn:!0,y=n?n.fallbackWarn:Z(e.fallbackWarn)||Rt(e.fallbackWarn)?e.fallbackWarn:!0,T=n?n.fallbackRoot:Z(e.fallbackRoot)?e.fallbackRoot:!0,I=!!e.fallbackFormat,_=de(e.missing)?e.missing:null,k=de(e.missing)?Tl(e.missing):null,E=de(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:Z(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const N=n?n.modifiers:z(e.modifiers)?e.modifiers:{};let R=e.pluralRules||n&&n.pluralRules,C;C=(()=>{o&&el(null);const v={version:xh,locale:l.value,fallbackLocale:h.value,messages:f.value,modifiers:N,pluralRules:R,missing:k===null?void 0:k,missingWarn:g,fallbackWarn:y,fallbackFormat:I,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:b,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=d.value,v.numberFormats=m.value,v.__datetimeFormatters=z(C)?C.__datetimeFormatters:void 0,v.__numberFormatters=z(C)?C.__numberFormatters:void 0;const O=kh(v);return o&&el(O),O})(),Kn(C,l.value,h.value);function B(){return[l.value,h.value,f.value,d.value,m.value]}const fe=je({get:()=>l.value,set:v=>{l.value=v,C.locale=l.value}}),oe=je({get:()=>h.value,set:v=>{h.value=v,C.fallbackLocale=h.value,Kn(C,l.value,v)}}),we=je(()=>f.value),qe=je(()=>d.value),He=je(()=>m.value);function X(){return de(E)?E:null}function ie(v){E=v,C.postTranslation=v}function te(){return _}function Ve(v){v!==null&&(k=Tl(v)),_=v,C.missing=k}const Pe=(v,O,W,H,ne,pe)=>{B();let Ie;try{__INTLIFY_PROD_DEVTOOLS__,o||(C.fallbackContext=n?yh():void 0),Ie=v(C)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(C.fallbackContext=void 0)}if(W!=="translate exists"&&ye(Ie)&&Ie===Us||W==="translate exists"&&!Ie){const[jt,Lo]=O();return n&&T?H(n):ne(jt)}else{if(pe(Ie))return Ie;throw Ee(ke.UNEXPECTED_RETURN_TYPE)}};function Ke(...v){return Pe(O=>Reflect.apply(il,null,[O,...v]),()=>oo(...v),"translate",O=>Reflect.apply(O.t,O,[...v]),O=>O,O=>D(O))}function Ae(...v){const[O,W,H]=v;if(H&&!re(H))throw Ee(ke.INVALID_ARGUMENT);return Ke(O,W,Oe({resolvedMessage:!0},H||{}))}function $t(...v){return Pe(O=>Reflect.apply(cl,null,[O,...v]),()=>io(...v),"datetime format",O=>Reflect.apply(O.d,O,[...v]),()=>Ga,O=>D(O))}function Ut(...v){return Pe(O=>Reflect.apply(dl,null,[O,...v]),()=>ao(...v),"number format",O=>Reflect.apply(O.n,O,[...v]),()=>Ga,O=>D(O))}function an(v){return v.map(O=>D(O)||ye(O)||Z(O)?wl(String(O)):O)}const mt={normalize:an,interpolate:v=>v,type:"vnode"};function nt(...v){return Pe(O=>{let W;const H=O;try{H.processor=mt,W=Reflect.apply(il,null,[H,...v])}finally{H.processor=null}return W},()=>oo(...v),"translate",O=>O[lo](...v),O=>[wl(O)],O=>he(O))}function pt(...v){return Pe(O=>Reflect.apply(dl,null,[O,...v]),()=>ao(...v),"number format",O=>O[uo](...v),El,O=>D(O)||he(O))}function De(...v){return Pe(O=>Reflect.apply(cl,null,[O,...v]),()=>io(...v),"datetime format",O=>O[co](...v),El,O=>D(O)||he(O))}function st(v){R=v,C.pluralRules=R}function vt(v,O){return Pe(()=>{if(!v)return!1;const W=D(O)?O:l.value,H=p(W),ne=C.messageResolver(H,v);return Tn(ne)||Je(ne)||D(ne)},()=>[v],"translate exists",W=>Reflect.apply(W.te,W,[v,O]),Ch,W=>Z(W))}function u(v){let O=null;const W=Ka(C,h.value,l.value);for(let H=0;H<W.length;H++){const ne=f.value[W[H]]||{},pe=C.messageResolver(ne,v);if(pe!=null){O=pe;break}}return O}function c(v){const O=u(v);return O??(n?n.tm(v)||{}:{})}function p(v){return f.value[v]||{}}function w(v,O){if(r){const W={[v]:O};for(const H in W)Fs(W,H)&&zn(W[H]);O=W[v]}f.value[v]=O,C.messages=f.value}function L(v,O){f.value[v]=f.value[v]||{};const W={[v]:O};if(r)for(const H in W)Fs(W,H)&&zn(W[H]);O=W[v],$s(O,f.value[v]),C.messages=f.value}function S(v){return d.value[v]||{}}function M(v,O){d.value[v]=O,C.datetimeFormats=d.value,fl(C,v,O)}function A(v,O){d.value[v]=Oe(d.value[v]||{},O),C.datetimeFormats=d.value,fl(C,v,O)}function F(v){return m.value[v]||{}}function P(v,O){m.value[v]=O,C.numberFormats=m.value,ml(C,v,O)}function j(v,O){m.value[v]=Oe(m.value[v]||{},O),C.numberFormats=m.value,ml(C,v,O)}Il++,n&&Rs&&(Gt(n.locale,v=>{a&&(l.value=v,C.locale=v,Kn(C,l.value,h.value))}),Gt(n.fallbackLocale,v=>{a&&(h.value=v,C.fallbackLocale=v,Kn(C,l.value,h.value))}));const $={id:Il,locale:fe,fallbackLocale:oe,get inheritLocale(){return a},set inheritLocale(v){a=v,v&&n&&(l.value=n.locale.value,h.value=n.fallbackLocale.value,Kn(C,l.value,h.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:we,get modifiers(){return N},get pluralRules(){return R||{}},get isGlobal(){return o},get missingWarn(){return g},set missingWarn(v){g=v,C.missingWarn=g},get fallbackWarn(){return y},set fallbackWarn(v){y=v,C.fallbackWarn=y},get fallbackRoot(){return T},set fallbackRoot(v){T=v},get fallbackFormat(){return I},set fallbackFormat(v){I=v,C.fallbackFormat=I},get warnHtmlMessage(){return b},set warnHtmlMessage(v){b=v,C.warnHtmlMessage=v},get escapeParameter(){return x},set escapeParameter(v){x=v,C.escapeParameter=v},t:Ke,getLocaleMessage:p,setLocaleMessage:w,mergeLocaleMessage:L,getPostTranslationHandler:X,setPostTranslationHandler:ie,getMissingHandler:te,setMissingHandler:Ve,[_l]:st};return $.datetimeFormats=qe,$.numberFormats=He,$.rt=Ae,$.te=vt,$.tm=c,$.d=$t,$.n=Ut,$.getDateTimeFormat=S,$.setDateTimeFormat=M,$.mergeDateTimeFormat=A,$.getNumberFormat=F,$.setNumberFormat=P,$.mergeNumberFormat=j,$[bl]=s,$[lo]=nt,$[co]=De,$[uo]=pt,$}function Ph(e){const t=D(e.locale)?e.locale:En,n=D(e.fallbackLocale)||he(e.fallbackLocale)||z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=de(e.missing)?e.missing:void 0,o=Z(e.silentTranslationWarn)||Rt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Z(e.silentFallbackWarn)||Rt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=Z(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=z(e.modifiers)?e.modifiers:{},h=e.pluralizationRules,f=de(e.postTranslation)?e.postTranslation:void 0,d=D(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,g=Z(e.sync)?e.sync:!0;let y=e.messages;if(z(e.sharedMessages)){const x=e.sharedMessages;y=Object.keys(x).reduce((R,C)=>{const U=R[C]||(R[C]={});return Oe(U,x[C]),R},y||{})}const{__i18n:T,__root:I,__injectWithOption:_}=e,k=e.datetimeFormats,E=e.numberFormats,b=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:b,datetimeFormats:k,numberFormats:E,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:h,postTranslation:f,warnHtmlMessage:d,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:g,__i18n:T,__root:I,__injectWithOption:_}}function mo(e={},t){{const n=ho(Ph(e)),{__extender:s}=e,o={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return Z(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=Z(r)?!r:r},get silentFallbackWarn(){return Z(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=Z(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,a,l]=r,h={};let f=null,d=null;if(!D(i))throw Ee(ke.INVALID_ARGUMENT);const m=i;return D(a)?h.locale=a:he(a)?f=a:z(a)&&(d=a),he(l)?f=l:z(l)&&(d=l),Reflect.apply(n.t,n,[m,f||d||{},h])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,a,l]=r,h={plural:1};let f=null,d=null;if(!D(i))throw Ee(ke.INVALID_ARGUMENT);const m=i;return D(a)?h.locale=a:ye(a)?h.plural=a:he(a)?f=a:z(a)&&(d=a),D(l)?h.locale=l:he(l)?f=l:z(l)&&(d=l),Reflect.apply(n.t,n,[m,f||d||{},h])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1}};return o.__extender=s,o}}const po={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Ah({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Le?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function Ll(e){return Le}const Ol=Xt({name:"i18n-t",props:Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ye(e)||!isNaN(e)}},po),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||sn({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(d=>d!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=D(e.plural)?+e.plural:e.plural);const a=Ah(t,r),l=o[lo](e.keypath,a,i),h=Oe({},s),f=D(e.tag)||re(e.tag)?e.tag:Ll();return ea(f,h,l)}}});function Rh(e){return he(e)&&!D(e[0])}function xl(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),D(e.format)?i.key=e.format:re(e.format)&&(D(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((m,g)=>n.includes(g)?Oe({},m,{[g]:e.format[g]}):m,{}));const l=s(e.value,i,a);let h=[i.key];he(l)?h=l.map((m,g)=>{const y=o[m.type],T=y?y({[m.type]:m.value,index:g,parts:l}):[m.value];return Rh(T)&&(T[0].key=`${m.type}-${g}`),T}):D(l)&&(h=[l]);const f=Oe({},r),d=D(e.tag)||re(e.tag)?e.tag:Ll();return ea(d,f,h)}}const Sl=Xt({name:"i18n-n",props:Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},po),setup(e,t){const n=e.i18n||sn({useScope:"parent",__useComponent:!0});return xl(e,t,hl,(...s)=>n[uo](...s))}}),Cl=Xt({name:"i18n-d",props:Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},po),setup(e,t){const n=e.i18n||sn({useScope:"parent",__useComponent:!0});return xl(e,t,ul,(...s)=>n[co](...s))}});function Mh(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 Fh(e){const t=i=>{const{instance:a,modifiers:l,value:h}=i;if(!a||!a.$)throw Ee(ke.UNEXPECTED_ERROR);const f=Mh(e,a.$),d=Nl(h);return[Reflect.apply(f.t,f,[...Pl(d)]),f]};return{created:(i,a)=>{const[l,h]=t(a);Rs&&e.global===h&&(i.__i18nWatcher=Gt(h.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=h,i.textContent=l},unmounted:i=>{Rs&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,h=Nl(a);i.textContent=Reflect.apply(l.t,l,[...Pl(h)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Nl(e){if(D(e))return{path:e};if(z(e)){if(!("path"in e))throw Ee(ke.REQUIRED_VALUE,"path");return e}else throw Ee(ke.INVALID_VALUE)}function Pl(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return D(n)&&(i.locale=n),ye(o)&&(i.plural=o),ye(r)&&(i.plural=r),[t,a,i]}function Dh(e,t,...n){const s=z(n[0])?n[0]:{},o=!!s.useI18nComponentName;(Z(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Ol.name,"I18nT"].forEach(i=>e.component(i,Ol)),[Sl.name,"I18nN"].forEach(i=>e.component(i,Sl)),[Cl.name,"I18nD"].forEach(i=>e.component(i,Cl))),e.directive("t",Fh(t))}function $h(e,t,n){return{beforeCreate(){const s=Dn();if(!s)throw Ee(ke.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Al(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=mo(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Al(e,o);else{this.$i18n=mo({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&kl(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Dn();if(!s)throw Ee(ke.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Al(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[_l](t.pluralizationRules||e.pluralizationRules);const n=js(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 Uh=At("global-vue-i18n");function jh(e={},t){const n=__VUE_I18N_LEGACY_API__&&Z(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=Z(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[i,a]=Wh(e,n),l=At("");function h(m){return r.get(m)||null}function f(m,g){r.set(m,g)}function d(m){r.delete(m)}{const m={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(g,...y){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,m),z(y[0])){const _=y[0];m.__composerExtend=_.__composerExtend,m.__vueI18nExtend=_.__vueI18nExtend}let T=null;!n&&s&&(T=Zh(g,m.global)),__VUE_I18N_FULL_INSTALL__&&Dh(g,m,...y),__VUE_I18N_LEGACY_API__&&n&&g.mixin($h(a,a.__composer,m));const I=g.unmount;g.unmount=()=>{T&&T(),m.dispose(),I()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:h,__setInstance:f,__deleteInstance:d};return m}}function sn(e={}){const t=Dn();if(t==null)throw Ee(ke.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ee(ke.NOT_INSTALLED);const n=Hh(t),s=Kh(n),o=yl(t),r=Vh(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Ee(ke.NOT_AVAILABLE_IN_LEGACY_MODE);return Bh(t,r,s,e)}if(r==="global")return kl(s,e,o),s;if(r==="parent"){let l=zh(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Oe({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=ho(l),i.__composerExtend&&(a[fo]=i.__composerExtend(a)),Yh(i,t,a),i.__setInstance(t,a)}return a}function Wh(e,t,n){const s=rr();{const o=__VUE_I18N_LEGACY_API__&&t?s.run(()=>mo(e)):s.run(()=>ho(e));if(o==null)throw Ee(ke.UNEXPECTED_ERROR);return[s,o]}}function Hh(e){{const t=Ze(e.isCE?Uh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ee(e.isCE?ke.NOT_INSTALLED_WITH_PROVIDE:ke.UNEXPECTED_ERROR);return t}}function Vh(e,t){return Ms(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Kh(e){return e.mode==="composition"?e.global:e.global.__composer}function zh(e,t,n=!1){let s=null;const o=t.root;let r=Gh(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[bl]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Gh(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Yh(e,t,n){Es(()=>{},t),yr(()=>{const s=n;e.__deleteInstance(t);const o=s[fo];o&&(o(),delete s[fo])},t)}function Bh(e,t,n,s={}){const o=t==="local",r=oi(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Ee(ke.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=Z(s.inheritLocale)?s.inheritLocale:!D(s.locale),a=ee(!o||i?n.locale.value:D(s.locale)?s.locale:En),l=ee(!o||i?n.fallbackLocale.value:D(s.fallbackLocale)||he(s.fallbackLocale)||z(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),h=ee(js(a.value,s)),f=ee(z(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),d=ee(z(s.numberFormats)?s.numberFormats:{[a.value]:{}}),m=o?n.missingWarn:Z(s.missingWarn)||Rt(s.missingWarn)?s.missingWarn:!0,g=o?n.fallbackWarn:Z(s.fallbackWarn)||Rt(s.fallbackWarn)?s.fallbackWarn:!0,y=o?n.fallbackRoot:Z(s.fallbackRoot)?s.fallbackRoot:!0,T=!!s.fallbackFormat,I=de(s.missing)?s.missing:null,_=de(s.postTranslation)?s.postTranslation:null,k=o?n.warnHtmlMessage:Z(s.warnHtmlMessage)?s.warnHtmlMessage:!0,E=!!s.escapeParameter,b=o?n.modifiers:z(s.modifiers)?s.modifiers:{},x=s.pluralRules||o&&n.pluralRules;function N(){return[a.value,l.value,h.value,f.value,d.value]}const R=je({get:()=>r.value?r.value.locale.value:a.value,set:c=>{r.value&&(r.value.locale.value=c),a.value=c}}),C=je({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:c=>{r.value&&(r.value.fallbackLocale.value=c),l.value=c}}),U=je(()=>r.value?r.value.messages.value:h.value),B=je(()=>f.value),fe=je(()=>d.value);function oe(){return r.value?r.value.getPostTranslationHandler():_}function we(c){r.value&&r.value.setPostTranslationHandler(c)}function qe(){return r.value?r.value.getMissingHandler():I}function He(c){r.value&&r.value.setMissingHandler(c)}function X(c){return N(),c()}function ie(...c){return r.value?X(()=>Reflect.apply(r.value.t,null,[...c])):X(()=>"")}function te(...c){return r.value?Reflect.apply(r.value.rt,null,[...c]):""}function Ve(...c){return r.value?X(()=>Reflect.apply(r.value.d,null,[...c])):X(()=>"")}function Pe(...c){return r.value?X(()=>Reflect.apply(r.value.n,null,[...c])):X(()=>"")}function Ke(c){return r.value?r.value.tm(c):{}}function Ae(c,p){return r.value?r.value.te(c,p):!1}function $t(c){return r.value?r.value.getLocaleMessage(c):{}}function Ut(c,p){r.value&&(r.value.setLocaleMessage(c,p),h.value[c]=p)}function an(c,p){r.value&&r.value.mergeLocaleMessage(c,p)}function ze(c){return r.value?r.value.getDateTimeFormat(c):{}}function mt(c,p){r.value&&(r.value.setDateTimeFormat(c,p),f.value[c]=p)}function nt(c,p){r.value&&r.value.mergeDateTimeFormat(c,p)}function pt(c){return r.value?r.value.getNumberFormat(c):{}}function De(c,p){r.value&&(r.value.setNumberFormat(c,p),d.value[c]=p)}function st(c,p){r.value&&r.value.mergeNumberFormat(c,p)}const vt={get id(){return r.value?r.value.id:-1},locale:R,fallbackLocale:C,messages:U,datetimeFormats:B,numberFormats:fe,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(c){r.value&&(r.value.inheritLocale=c)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(h.value)},get modifiers(){return r.value?r.value.modifiers:b},get pluralRules(){return r.value?r.value.pluralRules:x},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:m},set missingWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackRoot(){return r.value?r.value.fallbackRoot:y},set fallbackRoot(c){r.value&&(r.value.fallbackRoot=c)},get fallbackFormat(){return r.value?r.value.fallbackFormat:T},set fallbackFormat(c){r.value&&(r.value.fallbackFormat=c)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:k},set warnHtmlMessage(c){r.value&&(r.value.warnHtmlMessage=c)},get escapeParameter(){return r.value?r.value.escapeParameter:E},set escapeParameter(c){r.value&&(r.value.escapeParameter=c)},t:ie,getPostTranslationHandler:oe,setPostTranslationHandler:we,getMissingHandler:qe,setMissingHandler:He,rt:te,d:Ve,n:Pe,tm:Ke,te:Ae,getLocaleMessage:$t,setLocaleMessage:Ut,mergeLocaleMessage:an,getDateTimeFormat:ze,setDateTimeFormat:mt,mergeDateTimeFormat:nt,getNumberFormat:pt,setNumberFormat:De,mergeNumberFormat:st};function u(c){c.locale.value=a.value,c.fallbackLocale.value=l.value,Object.keys(h.value).forEach(p=>{c.mergeLocaleMessage(p,h.value[p])}),Object.keys(f.value).forEach(p=>{c.mergeDateTimeFormat(p,f.value[p])}),Object.keys(d.value).forEach(p=>{c.mergeNumberFormat(p,d.value[p])}),c.escapeParameter=E,c.fallbackFormat=T,c.fallbackRoot=y,c.fallbackWarn=g,c.missingWarn=m,c.warnHtmlMessage=k}return Ii(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Ee(ke.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=c.locale.value,l.value=c.fallbackLocale.value,h.value=c.messages.value,f.value=c.datetimeFormats.value,d.value=c.numberFormats.value):o&&u(c)}),vt}const Xh=["locale","fallbackLocale","availableLocales"],Rl=["t","rt","d","n","tm","te"];function Zh(e,t){const n=Object.create(null);return Xh.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw Ee(ke.UNEXPECTED_ERROR);const i=_e(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Rl.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw Ee(ke.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Rl.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Sh(),__INTLIFY_JIT_COMPILATION__?Xa(Eh):Xa(vh),ph(Zd),gh(Ka),__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,oh(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Jh={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 qh(){return!!navigator.userAgent.match(/Macintosh/)}function Qh(e,t){const n=qh();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var Ws=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.UnReplied=255]="UnReplied",e[e["Replied to Admin"]=256]="Replied to Admin",e))(Ws||{});function em(e){const{id:t,created_at:n,parent_id:s,ancestor_id:o,user_id:r,...i}=e;return{...i,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(o),status:Number(e.status),createdAt:new Date(n)}}const go="awesome-comment-comments",Ml=localStorage.getItem(go),Ln=Ml?JSON.parse(Ml):{},Hs=Uf("store",()=>{const e=Ze("postId"),t=Ze("comments"),n=ee(!!t?.length),s=ee(0),o=ee(""),r=ee(f(t||[])),i=ee(0),a=Ze("ApiBaseUrl"),l=ee(!1),h=ee(!1);function f(y){const T={},I=[];y.forEach(k=>{g(Number(k.id));const E=em(k);!k.ancestor_id||Number(k.ancestor_id)===0?T[k.id]=E:I.push(E)});const _=Ln[e];return _&&(_.createdAt=new Date(_.createdAt),!_.ancestorId||Number(_.ancestorId)===0?T[_.id]=_:I.push(_)),I.forEach(k=>{if(k.ancestorId in T){const E=T[k.ancestorId];E.children=[k,...E.children||[]]}}),T}async function d(){o.value="",l.value=!0;const y=new URLSearchParams;y.append("postId",e),y.append("start",s.value.toString());const T=await fetch(`${a}/api/comments?${y}`);if(!T.ok){o.value="Load comments failed. "+T.statusText,n.value=!0,l.value=!1;return}const I=await T.json();if(I.code!==0){o.value="Load comments failed. "+I.message,n.value=!0,l.value=!1;return}const _=f(I.data||[]);h.value=Object.keys(_).length>20,h.value&&delete _[Object.keys(_)[0]],Object.assign(r.value,_);const k=I.data?.length||0;return i.value+=k,n.value=!0,l.value=!1,I}function m(y,T,I,_=Ws.Pending,k,E){const{sub:b="",name:x="",picture:N="",email:R="",nickname:C=""}=I,U={id:y,postId:e,content:T,createdAt:new Date,user:{avatar:N,email:R,name:C||x},userId:b,status:_,isNew:!0};if(k||E){U.ancestorId=k,U.parentId=E;const B=r.value[k];if(B.children||(B.children=[]),k===E)B.children.unshift(U);else{const fe=B.children.findIndex(oe=>Number(oe.id)===E);B.children.splice(fe+1,0,U)}}else U.ancestorId=0,U.parentId=0,r.value={[y]:U,...r.value};i.value++,_!==Ws.Approved&&(Ln[e]=U,localStorage.setItem(go,JSON.stringify(Ln)))}function g(y){Ln[e]?.id===y&&(delete Ln[e],localStorage.setItem(go,JSON.stringify(Ln)))}return{isLoaded:n,message:o,postId:e,comments:r,total:i,start:s,hasMore:h,loadingMore:l,loadComments:d,addComment:m}}),tm={class:"ac-form-control border border-neutral bg-base-200 rounded-lg"},nm={class:"sr-only",for:"ac-comment"},sm=["placeholder"],rm={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},om={key:0,class:"text-xs text-neutral-400/40"},im={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},am=["disabled"],lm={key:0,class:"ac-loading ac-loading-spinner"},Vs=Xt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,o=Zr(),r=Hs(),{t:i}=sn(),a=Ze("ApiBaseUrl"),l=Ze("Auth0Domain"),h="0.7.2",f=ee(),d=ee(!1),m=ee(n.content||""),g=ee("");async function y(k){if(!o.user.value)return T();if(k.target.matches(":invalid"))return;d.value=!0,g.value="";let E=a+"/api/comment",b="POST";n.currentId&&(E+="/"+n.currentId,b="PATCH");try{const x=await o.getAccessTokenSilently(),N=await fetch(E,{method:b,headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`},body:JSON.stringify({comment:m.value,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status})}),R=await N.json();if(!N.ok||R.message){g.value="Failed to post comment: "+(R.message||"Unknown"),d.value=!1;return}const{id:C,status:U}=R.data;n.ancestorId||n.parentId?r.addComment(C,m.value,o.user.value,n.ancestorId,n.parentId,U):n.currentId?s("update",m.value):r.addComment(C,m.value,o.user.value,U),m.value="",s("close")}catch(x){g.value=x.message||String(x)}d.value=!1}function T(){o.loginWithPopup()}function I(k){Qh(k,"Enter")&&y(k)}function _(){s("close")}return Es(()=>{f.value?.focus()}),(k,E)=>(q(),le("form",{class:"mb-6",onSubmit:Tf(y,["prevent"])},[se("div",tm,[se("label",nm,ge(Y(i)("your_comment")),1),uu(se("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:f,rows:"3",placeholder:Y(i)("placeholder"),required:"",onKeydown:[fa(I,["enter"]),fa(_,["esc"])],"onUpdate:modelValue":E[0]||(E[0]=b=>m.value=b)},null,40,sm),[[vf,m.value]]),se("div",rm,[k.noVersion?Me("",!0):(q(),le("div",om,"v"+ge(Y(h)),1)),g.value?(q(),le("div",im,ge(g.value),1)):Me("",!0),se("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:d.value},[d.value?(q(),le("span",lm)):Me("",!0),k.currentId?(q(),le(Le,{key:1},[gn(ge(Y(i)("save_editing")),1)],64)):k.parentId?(q(),le(Le,{key:2},[gn(ge(Y(i)("post_reply")),1)],64)):(q(),le(Le,{key:3},[gn(ge(Y(i)("post_comment")),1)],64))],8,am)])])],32))}});function _o(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let rn=_o();function Fl(e){rn=e}const Dl=/[&<>"']/,cm=new RegExp(Dl.source,"g"),$l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,um=new RegExp($l.source,"g"),fm={"&":"&","<":"<",">":">",'"':""","'":"'"},Ul=e=>fm[e];function Ye(e,t){if(t){if(Dl.test(e))return e.replace(cm,Ul)}else if($l.test(e))return e.replace(um,Ul);return e}const dm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function hm(e){return e.replace(dm,(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 mm=/(^|[^\[])\^/g;function ue(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(o,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(mm,"$1"),n=n.replace(o,i),s},getRegex:()=>new RegExp(n,t)};return s}function jl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Gn={exec:()=>null};function Wl(e,t){const n=e.replace(/\|/g,(r,i,a)=>{let l=!1,h=i;for(;--h>=0&&a[h]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let o=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(;o<s.length;o++)s[o]=s[o].trim().replace(/\\\|/g,"|");return s}function Ks(e,t,n){const s=e.length;if(s===0)return"";let o=0;for(;o<s;){const r=e.charAt(s-o-1);if(r===t&&!n)o++;else if(r!==t&&n)o++;else break}return e.slice(0,s-o)}function pm(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 Hl(e,t,n,s){const o=t.href,r=t.title?Ye(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:o,title:r,text:i,tokens:s.inlineTokens(i)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:o,title:r,text:Ye(i)}}function gm(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
|
|
45
|
+
*/const Ch="9.10.2";function Nh(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const pl=fh.__EXTEND_POINT__,vt=qr(pl);vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt();const gl=tt.__EXTEND_POINT__,He=qr(gl),ke={UNEXPECTED_RETURN_TYPE:gl,INVALID_ARGUMENT:He(),MUST_BE_CALL_SETUP_TOP:He(),NOT_INSTALLED:He(),NOT_AVAILABLE_IN_LEGACY_MODE:He(),REQUIRED_VALUE:He(),INVALID_VALUE:He(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:He(),NOT_INSTALLED_WITH_PROVIDE:He(),UNEXPECTED_ERROR:He(),NOT_COMPATIBLE_LEGACY_VUE_I18N:He(),BRIDGE_SUPPORT_VUE_2_ONLY:He(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:He(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:He(),__EXTEND_POINT__:He()};function Ie(e,...t){return kn(e,null,void 0)}const co=Mt("__translateVNode"),uo=Mt("__datetimeParts"),fo=Mt("__numberParts"),_l=Mt("__setPluralRules"),bl=Mt("__injectWithOption"),ho=Mt("__dispose");function Yn(e){if(!re(e))return e;for(const t in e)if(Ds(e,t))if(!t.includes("."))re(e[t])&&Yn(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]in o||(o[n[i]]={}),!re(o[n[i]])){r=!0;break}o=o[n[i]]}r||(o[n[s]]=e[t],delete e[t]),re(o[n[s]])&&Yn(o[n[s]])}return e}function Ws(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=G(n)?n:me(s)?{}:{[e]:{}};if(me(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:h}=a;l?(i[l]=i[l]||{},Us(h,i[l])):Us(h,i)}else $(a)&&Us(JSON.parse(a),i)}),o==null&&r)for(const a in i)Ds(i,a)&&Yn(i[a]);return i}function yl(e){return e.type}function kl(e,t,n){let s=re(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Ws(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(re(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(re(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function wl(e){return Ne(Mn,null,e,0)}const vl="__INTLIFY_META__",El=()=>[],Ph=()=>!1;let Il=0;function Tl(e){return(t,n,s,o)=>e(n,s,Un()||void 0,o)}const Ah=()=>{const e=Un();let t=null;return e&&(t=yl(e)[vl])?{[vl]:t}:null};function mo(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson,i=Ms?te:oi,a=!!e.translateExistCompatible;let l=J(e.inheritLocale)?e.inheritLocale:!0;const h=i(n&&l?n.locale.value:$(e.locale)?e.locale:En),d=i(n&&l?n.fallbackLocale.value:$(e.fallbackLocale)||me(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:h.value),f=i(Ws(h.value,e)),m=i(G(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),g=i(G(e.numberFormats)?e.numberFormats:{[h.value]:{}});let y=n?n.missingWarn:J(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,I=n?n.fallbackWarn:J(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,T=n?n.fallbackRoot:J(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,k=he(e.missing)?e.missing:null,v=he(e.missing)?Tl(e.missing):null,b=he(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:J(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter;const M=n?n.modifiers:G(e.modifiers)?e.modifiers:{};let D=e.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&el(null);const E={version:Ch,locale:h.value,fallbackLocale:d.value,messages:f.value,modifiers:M,pluralRules:D,missing:v===null?void 0:v,missingWarn:y,fallbackWarn:I,fallbackFormat:_,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};E.datetimeFormats=m.value,E.numberFormats=g.value,E.__datetimeFormatters=G(N)?N.__datetimeFormatters:void 0,E.__numberFormatters=G(N)?N.__numberFormatters:void 0;const O=vh(E);return o&&el(O),O})(),Gn(N,h.value,d.value);function fe(){return[h.value,d.value,f.value,m.value,g.value]}const oe=We({get:()=>h.value,set:E=>{h.value=E,N.locale=h.value}}),we=We({get:()=>d.value,set:E=>{d.value=E,N.fallbackLocale=d.value,Gn(N,h.value,E)}}),qe=We(()=>f.value),Ve=We(()=>m.value),Z=We(()=>g.value);function ie(){return he(b)?b:null}function ne(E){b=E,N.postTranslation=E}function Ke(){return k}function mt(E){E!==null&&(v=Tl(E)),k=E,N.missing=v}const ve=(E,O,W,z,de,Ae)=>{fe();let Ye;try{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=n?wh():void 0),Ye=E(N)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=void 0)}if(W!=="translate exists"&&ye(Ye)&&Ye===js||W==="translate exists"&&!Ye){const[Qs,On]=O();return n&&T?z(n):de(Qs)}else{if(Ae(Ye))return Ye;throw Ie(ke.UNEXPECTED_RETURN_TYPE)}};function Se(...E){return ve(O=>Reflect.apply(il,null,[O,...E]),()=>io(...E),"translate",O=>Reflect.apply(O.t,O,[...E]),O=>O,O=>$(O))}function Ut(...E){const[O,W,z]=E;if(z&&!re(z))throw Ie(ke.INVALID_ARGUMENT);return Se(O,W,Oe({resolvedMessage:!0},z||{}))}function jt(...E){return ve(O=>Reflect.apply(cl,null,[O,...E]),()=>ao(...E),"datetime format",O=>Reflect.apply(O.d,O,[...E]),()=>Ga,O=>$(O))}function an(...E){return ve(O=>Reflect.apply(dl,null,[O,...E]),()=>lo(...E),"number format",O=>Reflect.apply(O.n,O,[...E]),()=>Ga,O=>$(O))}function De(E){return E.map(O=>$(O)||ye(O)||J(O)?wl(String(O)):O)}const nt={normalize:De,interpolate:E=>E,type:"vnode"};function pt(...E){return ve(O=>{let W;const z=O;try{z.processor=nt,W=Reflect.apply(il,null,[z,...E])}finally{z.processor=null}return W},()=>io(...E),"translate",O=>O[co](...E),O=>[wl(O)],O=>me(O))}function $e(...E){return ve(O=>Reflect.apply(dl,null,[O,...E]),()=>lo(...E),"number format",O=>O[fo](...E),El,O=>$(O)||me(O))}function st(...E){return ve(O=>Reflect.apply(cl,null,[O,...E]),()=>ao(...E),"datetime format",O=>O[uo](...E),El,O=>$(O)||me(O))}function It(E){D=E,N.pluralRules=D}function u(E,O){return ve(()=>{if(!E)return!1;const W=$(O)?O:h.value,z=w(W),de=N.messageResolver(z,E);return a?de!=null:Tn(de)||Je(de)||$(de)},()=>[E],"translate exists",W=>Reflect.apply(W.te,W,[E,O]),Ph,W=>J(W))}function c(E){let O=null;const W=Ka(N,d.value,h.value);for(let z=0;z<W.length;z++){const de=f.value[W[z]]||{},Ae=N.messageResolver(de,E);if(Ae!=null){O=Ae;break}}return O}function p(E){const O=c(E);return O??(n?n.tm(E)||{}:{})}function w(E){return f.value[E]||{}}function L(E,O){if(r){const W={[E]:O};for(const z in W)Ds(W,z)&&Yn(W[z]);O=W[E]}f.value[E]=O,N.messages=f.value}function x(E,O){f.value[E]=f.value[E]||{};const W={[E]:O};if(r)for(const z in W)Ds(W,z)&&Yn(W[z]);O=W[E],Us(O,f.value[E]),N.messages=f.value}function R(E){return m.value[E]||{}}function A(E,O){m.value[E]=O,N.datetimeFormats=m.value,fl(N,E,O)}function F(E,O){m.value[E]=Oe(m.value[E]||{},O),N.datetimeFormats=m.value,fl(N,E,O)}function P(E){return g.value[E]||{}}function j(E,O){g.value[E]=O,N.numberFormats=g.value,ml(N,E,O)}function H(E,O){g.value[E]=Oe(g.value[E]||{},O),N.numberFormats=g.value,ml(N,E,O)}Il++,n&&Ms&&(Gt(n.locale,E=>{l&&(h.value=E,N.locale=E,Gn(N,h.value,d.value))}),Gt(n.fallbackLocale,E=>{l&&(d.value=E,N.fallbackLocale=E,Gn(N,h.value,d.value))}));const U={id:Il,locale:oe,fallbackLocale:we,get inheritLocale(){return l},set inheritLocale(E){l=E,E&&n&&(h.value=n.locale.value,d.value=n.fallbackLocale.value,Gn(N,h.value,d.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:qe,get modifiers(){return M},get pluralRules(){return D||{}},get isGlobal(){return o},get missingWarn(){return y},set missingWarn(E){y=E,N.missingWarn=y},get fallbackWarn(){return I},set fallbackWarn(E){I=E,N.fallbackWarn=I},get fallbackRoot(){return T},set fallbackRoot(E){T=E},get fallbackFormat(){return _},set fallbackFormat(E){_=E,N.fallbackFormat=_},get warnHtmlMessage(){return S},set warnHtmlMessage(E){S=E,N.warnHtmlMessage=E},get escapeParameter(){return C},set escapeParameter(E){C=E,N.escapeParameter=E},t:Se,getLocaleMessage:w,setLocaleMessage:L,mergeLocaleMessage:x,getPostTranslationHandler:ie,setPostTranslationHandler:ne,getMissingHandler:Ke,setMissingHandler:mt,[_l]:It};return U.datetimeFormats=Ve,U.numberFormats=Z,U.rt=Ut,U.te=u,U.tm=p,U.d=jt,U.n=an,U.getDateTimeFormat=R,U.setDateTimeFormat=A,U.mergeDateTimeFormat=F,U.getNumberFormat=P,U.setNumberFormat=j,U.mergeNumberFormat=H,U[bl]=s,U[co]=pt,U[uo]=st,U[fo]=$e,U}function Rh(e){const t=$(e.locale)?e.locale:En,n=$(e.fallbackLocale)||me(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=he(e.missing)?e.missing:void 0,o=J(e.silentTranslationWarn)||Ft(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=J(e.silentFallbackWarn)||Ft(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=J(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=G(e.modifiers)?e.modifiers:{},h=e.pluralizationRules,d=he(e.postTranslation)?e.postTranslation:void 0,f=$(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,g=J(e.sync)?e.sync:!0;let y=e.messages;if(G(e.sharedMessages)){const C=e.sharedMessages;y=Object.keys(C).reduce((D,N)=>{const X=D[N]||(D[N]={});return Oe(X,C[N]),D},y||{})}const{__i18n:I,__root:T,__injectWithOption:_}=e,k=e.datetimeFormats,v=e.numberFormats,b=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:y,flatJson:b,datetimeFormats:k,numberFormats:v,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:h,postTranslation:d,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:S,__i18n:I,__root:T,__injectWithOption:_}}function po(e={},t){{const n=mo(Rh(e)),{__extender:s}=e,o={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return J(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=J(r)?!r:r},get silentFallbackWarn(){return J(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=J(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,a,l]=r,h={};let d=null,f=null;if(!$(i))throw Ie(ke.INVALID_ARGUMENT);const m=i;return $(a)?h.locale=a:me(a)?d=a:G(a)&&(f=a),me(l)?d=l:G(l)&&(f=l),Reflect.apply(n.t,n,[m,d||f||{},h])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,a,l]=r,h={plural:1};let d=null,f=null;if(!$(i))throw Ie(ke.INVALID_ARGUMENT);const m=i;return $(a)?h.locale=a:ye(a)?h.plural=a:me(a)?d=a:G(a)&&(f=a),$(l)?h.locale=l:me(l)?d=l:G(l)&&(f=l),Reflect.apply(n.t,n,[m,d||f||{},h])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1}};return o.__extender=s,o}}const go={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Mh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Le?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function Ll(e){return Le}const Ol=Xt({name:"i18n-t",props:Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ye(e)||!isNaN(e)}},go),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||sn({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(f=>f!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=$(e.plural)?+e.plural:e.plural);const a=Mh(t,r),l=o[co](e.keypath,a,i),h=Oe({},s),d=$(e.tag)||re(e.tag)?e.tag:Ll();return ea(d,h,l)}}});function Fh(e){return me(e)&&!$(e[0])}function Sl(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),$(e.format)?i.key=e.format:re(e.format)&&($(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((m,g)=>n.includes(g)?Oe({},m,{[g]:e.format[g]}):m,{}));const l=s(e.value,i,a);let h=[i.key];me(l)?h=l.map((m,g)=>{const y=o[m.type],I=y?y({[m.type]:m.value,index:g,parts:l}):[m.value];return Fh(I)&&(I[0].key=`${m.type}-${g}`),I}):$(l)&&(h=[l]);const d=Oe({},r),f=$(e.tag)||re(e.tag)?e.tag:Ll();return ea(f,d,h)}}const xl=Xt({name:"i18n-n",props:Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||sn({useScope:"parent",__useComponent:!0});return Sl(e,t,hl,(...s)=>n[fo](...s))}}),Cl=Xt({name:"i18n-d",props:Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||sn({useScope:"parent",__useComponent:!0});return Sl(e,t,ul,(...s)=>n[uo](...s))}});function Dh(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 $h(e){const t=i=>{const{instance:a,modifiers:l,value:h}=i;if(!a||!a.$)throw Ie(ke.UNEXPECTED_ERROR);const d=Dh(e,a.$),f=Nl(h);return[Reflect.apply(d.t,d,[...Pl(f)]),d]};return{created:(i,a)=>{const[l,h]=t(a);Ms&&e.global===h&&(i.__i18nWatcher=Gt(h.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=h,i.textContent=l},unmounted:i=>{Ms&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,h=Nl(a);i.textContent=Reflect.apply(l.t,l,[...Pl(h)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Nl(e){if($(e))return{path:e};if(G(e)){if(!("path"in e))throw Ie(ke.REQUIRED_VALUE,"path");return e}else throw Ie(ke.INVALID_VALUE)}function Pl(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return $(n)&&(i.locale=n),ye(o)&&(i.plural=o),ye(r)&&(i.plural=r),[t,a,i]}function Uh(e,t,...n){const s=G(n[0])?n[0]:{},o=!!s.useI18nComponentName;(J(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Ol.name,"I18nT"].forEach(i=>e.component(i,Ol)),[xl.name,"I18nN"].forEach(i=>e.component(i,xl)),[Cl.name,"I18nD"].forEach(i=>e.component(i,Cl))),e.directive("t",$h(t))}function jh(e,t,n){return{beforeCreate(){const s=Un();if(!s)throw Ie(ke.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Al(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=po(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Al(e,o);else{this.$i18n=po({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&kl(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Un();if(!s)throw Ie(ke.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Al(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[_l](t.pluralizationRules||e.pluralizationRules);const n=Ws(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 Wh=Mt("global-vue-i18n");function Hh(e={},t){const n=__VUE_I18N_LEGACY_API__&&J(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=J(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[i,a]=Vh(e,n),l=Mt("");function h(m){return r.get(m)||null}function d(m,g){r.set(m,g)}function f(m){r.delete(m)}{const m={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(g,...y){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,m),G(y[0])){const _=y[0];m.__composerExtend=_.__composerExtend,m.__vueI18nExtend=_.__vueI18nExtend}let I=null;!n&&s&&(I=qh(g,m.global)),__VUE_I18N_FULL_INSTALL__&&Uh(g,m,...y),__VUE_I18N_LEGACY_API__&&n&&g.mixin(jh(a,a.__composer,m));const T=g.unmount;g.unmount=()=>{I&&I(),m.dispose(),T()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:h,__setInstance:d,__deleteInstance:f};return m}}function sn(e={}){const t=Un();if(t==null)throw Ie(ke.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ie(ke.NOT_INSTALLED);const n=Kh(t),s=Gh(n),o=yl(t),r=zh(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Ie(ke.NOT_AVAILABLE_IN_LEGACY_MODE);return Zh(t,r,s,e)}if(r==="global")return kl(s,e,o),s;if(r==="parent"){let l=Yh(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Oe({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=mo(l),i.__composerExtend&&(a[ho]=i.__composerExtend(a)),Xh(i,t,a),i.__setInstance(t,a)}return a}function Vh(e,t,n){const s=ir();{const o=__VUE_I18N_LEGACY_API__&&t?s.run(()=>po(e)):s.run(()=>mo(e));if(o==null)throw Ie(ke.UNEXPECTED_ERROR);return[s,o]}}function Kh(e){{const t=Ze(e.isCE?Wh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ie(e.isCE?ke.NOT_INSTALLED_WITH_PROVIDE:ke.UNEXPECTED_ERROR);return t}}function zh(e,t){return Fs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Gh(e){return e.mode==="composition"?e.global:e.global.__composer}function Yh(e,t,n=!1){let s=null;const o=t.root;let r=Bh(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[bl]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Bh(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Xh(e,t,n){Es(()=>{},t),wr(()=>{const s=n;e.__deleteInstance(t);const o=s[ho];o&&(o(),delete s[ho])},t)}function Zh(e,t,n,s={}){const o=t==="local",r=oi(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Ie(ke.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=J(s.inheritLocale)?s.inheritLocale:!$(s.locale),a=te(!o||i?n.locale.value:$(s.locale)?s.locale:En),l=te(!o||i?n.fallbackLocale.value:$(s.fallbackLocale)||me(s.fallbackLocale)||G(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),h=te(Ws(a.value,s)),d=te(G(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),f=te(G(s.numberFormats)?s.numberFormats:{[a.value]:{}}),m=o?n.missingWarn:J(s.missingWarn)||Ft(s.missingWarn)?s.missingWarn:!0,g=o?n.fallbackWarn:J(s.fallbackWarn)||Ft(s.fallbackWarn)?s.fallbackWarn:!0,y=o?n.fallbackRoot:J(s.fallbackRoot)?s.fallbackRoot:!0,I=!!s.fallbackFormat,T=he(s.missing)?s.missing:null,_=he(s.postTranslation)?s.postTranslation:null,k=o?n.warnHtmlMessage:J(s.warnHtmlMessage)?s.warnHtmlMessage:!0,v=!!s.escapeParameter,b=o?n.modifiers:G(s.modifiers)?s.modifiers:{},S=s.pluralRules||o&&n.pluralRules;function C(){return[a.value,l.value,h.value,d.value,f.value]}const M=We({get:()=>r.value?r.value.locale.value:a.value,set:c=>{r.value&&(r.value.locale.value=c),a.value=c}}),D=We({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:c=>{r.value&&(r.value.fallbackLocale.value=c),l.value=c}}),N=We(()=>r.value?r.value.messages.value:h.value),X=We(()=>d.value),fe=We(()=>f.value);function oe(){return r.value?r.value.getPostTranslationHandler():_}function we(c){r.value&&r.value.setPostTranslationHandler(c)}function qe(){return r.value?r.value.getMissingHandler():T}function Ve(c){r.value&&r.value.setMissingHandler(c)}function Z(c){return C(),c()}function ie(...c){return r.value?Z(()=>Reflect.apply(r.value.t,null,[...c])):Z(()=>"")}function ne(...c){return r.value?Reflect.apply(r.value.rt,null,[...c]):""}function Ke(...c){return r.value?Z(()=>Reflect.apply(r.value.d,null,[...c])):Z(()=>"")}function mt(...c){return r.value?Z(()=>Reflect.apply(r.value.n,null,[...c])):Z(()=>"")}function ve(c){return r.value?r.value.tm(c):{}}function Se(c,p){return r.value?r.value.te(c,p):!1}function Ut(c){return r.value?r.value.getLocaleMessage(c):{}}function jt(c,p){r.value&&(r.value.setLocaleMessage(c,p),h.value[c]=p)}function an(c,p){r.value&&r.value.mergeLocaleMessage(c,p)}function De(c){return r.value?r.value.getDateTimeFormat(c):{}}function Et(c,p){r.value&&(r.value.setDateTimeFormat(c,p),d.value[c]=p)}function nt(c,p){r.value&&r.value.mergeDateTimeFormat(c,p)}function pt(c){return r.value?r.value.getNumberFormat(c):{}}function $e(c,p){r.value&&(r.value.setNumberFormat(c,p),f.value[c]=p)}function st(c,p){r.value&&r.value.mergeNumberFormat(c,p)}const It={get id(){return r.value?r.value.id:-1},locale:M,fallbackLocale:D,messages:N,datetimeFormats:X,numberFormats:fe,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(c){r.value&&(r.value.inheritLocale=c)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(h.value)},get modifiers(){return r.value?r.value.modifiers:b},get pluralRules(){return r.value?r.value.pluralRules:S},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:m},set missingWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackRoot(){return r.value?r.value.fallbackRoot:y},set fallbackRoot(c){r.value&&(r.value.fallbackRoot=c)},get fallbackFormat(){return r.value?r.value.fallbackFormat:I},set fallbackFormat(c){r.value&&(r.value.fallbackFormat=c)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:k},set warnHtmlMessage(c){r.value&&(r.value.warnHtmlMessage=c)},get escapeParameter(){return r.value?r.value.escapeParameter:v},set escapeParameter(c){r.value&&(r.value.escapeParameter=c)},t:ie,getPostTranslationHandler:oe,setPostTranslationHandler:we,getMissingHandler:qe,setMissingHandler:Ve,rt:ne,d:Ke,n:mt,tm:ve,te:Se,getLocaleMessage:Ut,setLocaleMessage:jt,mergeLocaleMessage:an,getDateTimeFormat:De,setDateTimeFormat:Et,mergeDateTimeFormat:nt,getNumberFormat:pt,setNumberFormat:$e,mergeNumberFormat:st};function u(c){c.locale.value=a.value,c.fallbackLocale.value=l.value,Object.keys(h.value).forEach(p=>{c.mergeLocaleMessage(p,h.value[p])}),Object.keys(d.value).forEach(p=>{c.mergeDateTimeFormat(p,d.value[p])}),Object.keys(f.value).forEach(p=>{c.mergeNumberFormat(p,f.value[p])}),c.escapeParameter=v,c.fallbackFormat=I,c.fallbackRoot=y,c.fallbackWarn=g,c.missingWarn=m,c.warnHtmlMessage=k}return Ii(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Ie(ke.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=c.locale.value,l.value=c.fallbackLocale.value,h.value=c.messages.value,d.value=c.datetimeFormats.value,f.value=c.numberFormats.value):o&&u(c)}),It}const Jh=["locale","fallbackLocale","availableLocales"],Rl=["t","rt","d","n","tm","te"];function qh(e,t){const n=Object.create(null);return Jh.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw Ie(ke.UNEXPECTED_ERROR);const i=_e(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Rl.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw Ie(ke.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Rl.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Nh(),__INTLIFY_JIT_COMPILATION__?Xa(Th):Xa(Ih),_h(qd),bh(Ka),__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,ah(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Qh={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 em(){return!!navigator.userAgent.match(/Macintosh/)}function tm(e,t){const n=em();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var Hs=(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))(Hs||{});function nm(e){const{id:t,created_at:n,parent_id:s,ancestor_id:o,user_id:r,...i}=e;return{...i,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(o),status:Number(e.status),createdAt:new Date(n)}}const _o="awesome-comment-comments",Ml=localStorage.getItem(_o),Ln=Ml?JSON.parse(Ml):{},Vs=Wf("store",()=>{const e=Ze("postId"),t=Ze("comments"),n=te(!!t?.length),s=te(0),o=te(""),r=te([]),i=te(0),a=Ze("ApiBaseUrl"),l=te(!1),h=te(!1);function d(y){const I={},T=[];y.forEach(k=>{g(Number(k.id));const v=nm(k);!k.ancestor_id||Number(k.ancestor_id)===0?I[k.id]=v:T.push(v)});const _=Ln[e];return _&&(_.createdAt=new Date(_.createdAt),!_.ancestorId||Number(_.ancestorId)===0?I[_.id]=_:T.push(_)),T.forEach(k=>{if(k.ancestorId in I){const v=I[k.ancestorId];v.children=[k,...v.children||[]]}}),I}async function f(y=!1){if(l.value)return;o.value="",l.value=!0;let I;if(y&&t?.length)I=d(t);else{const T=new URLSearchParams;T.append("postId",e),T.append("start",s.value.toString());const _=await fetch(`${a}/api/comments?${T}`);if(!_.ok){o.value="Load comments failed. "+_.statusText,n.value=!0,l.value=!1;return}const k=await _.json();if(k.code!==0){o.value="Load comments failed. "+k.message,n.value=!0,l.value=!1;return}I=d(k.data||[])}h.value=Object.keys(I).length>20,h.value&&delete I[Object.keys(I)[0]],Object.assign(r.value,I),i.value=Object.values(r.value).reduce((T,_)=>T+1+(_.children?.length||0),0),n.value=!0,l.value=!1}function m(y,I,T,_=Hs.Pending,k,v){const{sub:b="",name:S="",picture:C="",email:M="",nickname:D=""}=T,N={id:y,postId:e,content:I,createdAt:new Date,user:{avatar:C,email:M,name:D||S},userId:b,status:_,isNew:!0};if(k||v){N.ancestorId=k,N.parentId=v;const X=r.value[k];if(X.children||(X.children=[]),k===v)X.children.unshift(N);else{const fe=X.children.findIndex(oe=>Number(oe.id)===v);X.children.splice(fe+1,0,N)}}else N.ancestorId=0,N.parentId=0,r.value={[y]:N,...r.value};i.value++,_!==Hs.Approved&&(Ln[e]=N,localStorage.setItem(_o,JSON.stringify(Ln)))}function g(y){Ln[e]?.id===y&&(delete Ln[e],localStorage.setItem(_o,JSON.stringify(Ln)))}return{isLoaded:n,message:o,postId:e,comments:r,total:i,start:s,hasMore:h,loadingMore:l,loadComments:f,addComment:m}}),sm={class:"ac-form-control border border-neutral bg-base-200 rounded-lg"},rm={class:"sr-only",for:"ac-comment"},om=["placeholder"],im={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},am={key:0,class:"text-xs text-neutral-400/40"},lm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},cm=["disabled"],um={key:0,class:"ac-loading ac-loading-spinner"},Ks=Xt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,o=Jr(),r=Vs(),{t:i}=sn(),a=Ze("ApiBaseUrl"),l=Ze("Auth0Domain"),h="0.7.4",d=te(),f=te(!1),m=te(n.content||""),g=te("");async function y(k){if(!o.user.value)return I();if(k.target.matches(":invalid"))return;f.value=!0,g.value="";let v=a+"/api/comment",b="POST";n.currentId&&(v+="/"+n.currentId,b="PATCH");try{const S=await o.getAccessTokenSilently(),C=await fetch(v,{method:b,headers:{"Content-Type":"application/json",Authorization:`Bearer ${S}`},body:JSON.stringify({comment:m.value,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status})}),M=await C.json();if(!C.ok||M.message){g.value="Failed to post comment: "+(M.message||"Unknown"),f.value=!1;return}const{id:D,status:N}=M.data;n.ancestorId||n.parentId?r.addComment(D,m.value,o.user.value,n.ancestorId,n.parentId,N):n.currentId?s("update",m.value):r.addComment(D,m.value,o.user.value,N),m.value="",s("close")}catch(S){g.value=S.message||String(S)}f.value=!1}function I(){o.loginWithPopup()}function T(k){tm(k,"Enter")&&y(k)}function _(){s("close")}return Es(()=>{d.value?.focus()}),(k,v)=>(Q(),le("form",{class:"mb-6",onSubmit:Of(y,["prevent"])},[se("div",sm,[se("label",rm,ge(B(i)("your_comment")),1),uu(se("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:d,rows:"3",placeholder:B(i)("placeholder"),required:"",onKeydown:[fa(T,["enter"]),fa(_,["esc"])],"onUpdate:modelValue":v[0]||(v[0]=b=>m.value=b)},null,40,om),[[If,m.value]]),se("div",im,[k.noVersion?Me("",!0):(Q(),le("div",am,"v"+ge(B(h)),1)),g.value?(Q(),le("div",lm,ge(g.value),1)):Me("",!0),se("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:f.value},[f.value?(Q(),le("span",um)):Me("",!0),k.currentId?(Q(),le(Le,{key:1},[gn(ge(B(i)("save_editing")),1)],64)):k.parentId?(Q(),le(Le,{key:2},[gn(ge(B(i)("post_reply")),1)],64)):(Q(),le(Le,{key:3},[gn(ge(B(i)("post_comment")),1)],64))],8,cm)])])],32))}});function bo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let rn=bo();function Fl(e){rn=e}const Dl=/[&<>"']/,fm=new RegExp(Dl.source,"g"),$l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,dm=new RegExp($l.source,"g"),hm={"&":"&","<":"<",">":">",'"':""","'":"'"},Ul=e=>hm[e];function Ge(e,t){if(t){if(Dl.test(e))return e.replace(fm,Ul)}else if($l.test(e))return e.replace(dm,Ul);return e}const mm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function pm(e){return e.replace(mm,(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 gm=/(^|[^\[])\^/g;function ue(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(o,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(gm,"$1"),n=n.replace(o,i),s},getRegex:()=>new RegExp(n,t)};return s}function jl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Bn={exec:()=>null};function Wl(e,t){const n=e.replace(/\|/g,(r,i,a)=>{let l=!1,h=i;for(;--h>=0&&a[h]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let o=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(;o<s.length;o++)s[o]=s[o].trim().replace(/\\\|/g,"|");return s}function zs(e,t,n){const s=e.length;if(s===0)return"";let o=0;for(;o<s;){const r=e.charAt(s-o-1);if(r===t&&!n)o++;else if(r!==t&&n)o++;else break}return e.slice(0,s-o)}function _m(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 Hl(e,t,n,s){const o=t.href,r=t.title?Ge(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:o,title:r,text:i,tokens:s.inlineTokens(i)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:o,title:r,text:Ge(i)}}function bm(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
|
|
46
46
|
`).map(o=>{const r=o.match(/^\s+/);if(r===null)return o;const[i]=r;return i.length>=s.length?o.slice(s.length):o}).join(`
|
|
47
|
-
`)}class
|
|
48
|
-
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],o=
|
|
49
|
-
`),o=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(s);return this.lexer.state.top=o,{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 o=s.length>1,r={type:"list",raw:"",ordered:o,start:o?+s.slice(0,-1):"",loose:!1,items:[]};s=o?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=o?s:"[*+-]");const i=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",l="",h=!1;for(;t;){let
|
|
47
|
+
`)}class Gs{options;rules;lexer;constructor(t){this.options=t||rn}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:zs(s,`
|
|
48
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],o=bm(s,n[3]||"");return{type:"code",raw:s,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let s=n[2].trim();if(/#$/.test(s)){const o=zs(s,"#");(this.options.pedantic||!o||/ $/.test(o))&&(s=o.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){const s=zs(n[0].replace(/^ *>[ \t]?/gm,""),`
|
|
49
|
+
`),o=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(s);return this.lexer.state.top=o,{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 o=s.length>1,r={type:"list",raw:"",ordered:o,start:o?+s.slice(0,-1):"",loose:!1,items:[]};s=o?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=o?s:"[*+-]");const i=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",l="",h=!1;for(;t;){let d=!1;if(!(n=i.exec(t))||this.rules.block.hr.test(t))break;a=n[0],t=t.substring(a.length);let f=n[2].split(`
|
|
50
50
|
`,1)[0].replace(/^\t+/,_=>" ".repeat(3*_.length)),m=t.split(`
|
|
51
|
-
`,1)[0],g=0;this.options.pedantic?(g=2,l=
|
|
52
|
-
`,t=t.substring(m.length+1),
|
|
53
|
-
`,1)[0];if(m=
|
|
54
|
-
`+m.slice(g);else{if(y||
|
|
55
|
-
`+m}!y&&!m.trim()&&(y=!0),a+=
|
|
56
|
-
`,t=t.substring(
|
|
51
|
+
`,1)[0],g=0;this.options.pedantic?(g=2,l=f.trimStart()):(g=n[2].search(/[^ ]/),g=g>4?1:g,l=f.slice(g),g+=n[1].length);let y=!1;if(!f&&/^ *$/.test(m)&&(a+=m+`
|
|
52
|
+
`,t=t.substring(m.length+1),d=!0),!d){const _=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),k=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),v=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),b=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const S=t.split(`
|
|
53
|
+
`,1)[0];if(m=S,this.options.pedantic&&(m=m.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),v.test(m)||b.test(m)||_.test(m)||k.test(t))break;if(m.search(/[^ ]/)>=g||!m.trim())l+=`
|
|
54
|
+
`+m.slice(g);else{if(y||f.search(/[^ ]/)>=4||v.test(f)||b.test(f)||k.test(f))break;l+=`
|
|
55
|
+
`+m}!y&&!m.trim()&&(y=!0),a+=S+`
|
|
56
|
+
`,t=t.substring(S.length+1),f=m.slice(g)}}r.loose||(h?r.loose=!0:/\n *\n *$/.test(a)&&(h=!0));let I=null,T;this.options.gfm&&(I=/^\[[ xX]\] /.exec(l),I&&(T=I[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:a,task:!!I,checked:T,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 d=0;d<r.items.length;d++)if(this.lexer.state.top=!1,r.items[d].tokens=this.lexer.blockTokens(r.items[d].text,[]),!r.loose){const f=r.items[d].tokens.filter(g=>g.type==="space"),m=f.length>0&&f.some(g=>/\n.*\n/.test(g.raw));r.loose=m}if(r.loose)for(let d=0;d<r.items.length;d++)r.items[d].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," "),o=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:o,title:r}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const s=Wl(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),r=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
57
57
|
`):[],i={type:"table",raw:n[0],header:[],align:[],rows:[]};if(s.length===o.length){for(const a of o)/^ *-+: *$/.test(a)?i.align.push("right"):/^ *:-+: *$/.test(a)?i.align.push("center"):/^ *:-+ *$/.test(a)?i.align.push("left"):i.align.push(null);for(const a of s)i.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of r)i.rows.push(Wl(a,i.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return i}}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)===`
|
|
58
|
-
`?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:
|
|
59
|
-
]`).replace("lheading",Kl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Yl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
|
|
58
|
+
`?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:Ge(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 i=zs(s.slice(0,-1),"\\");if((s.length-i.length)%2===0)return}else{const i=_m(n[2],"()");if(i>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+i;n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let o=n[2],r="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);i&&(o=i[1],r=i[3])}else r=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(s)?o=o.slice(1):o=o.slice(1,-1)),Hl(n,{href:o&&o.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 o=(s[2]||s[1]).replace(/\s+/g," "),r=n[o.toLowerCase()];if(!r){const i=s[0].charAt(0);return{type:"text",raw:i,text:i}}return Hl(s,r,s[0],this.lexer)}}emStrong(t,n,s=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!o||o[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const i=[...o[0]].length-1;let a,l,h=i,d=0;const f=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+i);(o=f.exec(n))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=[...a].length,o[3]||o[4]){h+=l;continue}else if((o[5]||o[6])&&i%3&&!((i+l)%3)){d+=l;continue}if(h-=l,h>0)continue;l=Math.min(l,l+h+d);const m=[...o[0]][0].length,g=t.slice(0,i+o.index+m+l);if(Math.min(i,l)%2){const I=g.slice(1,-1);return{type:"em",raw:g,text:I,tokens:this.lexer.inlineTokens(I)}}const y=g.slice(2,-2);return{type:"strong",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let s=n[2].replace(/\n/g," ");const o=/[^ ]/.test(s),r=/^ /.test(s)&&/ $/.test(s);return o&&r&&(s=s.substring(1,s.length-1)),s=Ge(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,o;return n[2]==="@"?(s=Ge(n[1]),o="mailto:"+s):(s=Ge(n[1]),o=s),{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let s,o;if(n[2]==="@")s=Ge(n[0]),o="mailto:"+s;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(r!==n[0]);s=Ge(n[0]),n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:s,href:o,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=Ge(n[0]),{type:"text",raw:n[0],text:s}}}}const ym=/^(?: *(?:\n|$))+/,km=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,wm=/^ {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+|$)/,vm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vl=/(?:[*+-]|\d{1,9}[.)])/,Kl=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Vl).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(),yo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Em=/^[^\n]+/,ko=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Im=ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",ko).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Tm=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Vl).getRegex(),Ys="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",wo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lm=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",wo).replace("tag",Ys).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),zl=ue(yo).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",Ys).getRegex(),vo={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",zl).getRegex(),code:km,def:Im,fences:wm,heading:vm,hr:Xn,html:Lm,lheading:Kl,list:Tm,newline:ym,paragraph:zl,table:Bn,text:Em},Gl=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",Ys).getRegex(),Om={...vo,table:Gl,paragraph:ue(yo).replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Gl).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",Ys).getRegex()},Sm={...vo,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wo).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(yo).replace("hr",Xn).replace("heading",` *#{1,6} *[^
|
|
59
|
+
]`).replace("lheading",Kl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Yl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bl=/^( {2,}|\\)\n(?!\s*$)/,Cm=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Zn="\\p{P}\\p{S}",Nm=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Zn).getRegex(),Pm=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Am=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Zn).getRegex(),Rm=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(),Mm=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Zn).getRegex(),Fm=ue(/\\([punct])/,"gu").replace(/punct/g,Zn).getRegex(),Dm=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(),$m=ue(wo).replace("(?:-->|$)","-->").getRegex(),Um=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",$m).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,jm=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Bs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xl=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",Bs).replace("ref",ko).getRegex(),Zl=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",ko).getRegex(),Wm=ue("reflink|nolink(?!\\()","g").replace("reflink",Xl).replace("nolink",Zl).getRegex(),Eo={_backpedal:Bn,anyPunctuation:Fm,autolink:Dm,blockSkip:Pm,br:Bl,code:xm,del:Bn,emStrongLDelim:Am,emStrongRDelimAst:Rm,emStrongRDelimUnd:Mm,escape:Yl,link:jm,nolink:Zl,punctuation:Nm,reflink:Xl,reflinkSearch:Wm,tag:Um,text:Cm,url:Bn},Hm={...Eo,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",Bs).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bs).getRegex()},Io={...Eo,escape:ue(Yl).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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Vm={...Io,br:ue(Bl).replace("{2,}","*").getRegex(),text:ue(Io.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Xs={normal:vo,gfm:Om,pedantic:Sm},Jn={normal:Eo,gfm:Io,breaks:Vm,pedantic:Hm};class dt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||rn,this.options.tokenizer=this.options.tokenizer||new Gs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Xs.normal,inline:Jn.normal};this.options.pedantic?(n.block=Xs.pedantic,n.inline=Jn.pedantic):this.options.gfm&&(n.block=Xs.gfm,this.options.breaks?n.inline=Jn.breaks:n.inline=Jn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Xs,inline:Jn}}static lex(t,n){return new dt(n).lex(t)}static lexInline(t,n){return new dt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
60
60
|
`),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,h)=>l+" ".repeat(h.length));let s,o,r,i;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+=`
|
|
61
61
|
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
62
62
|
`+s.raw,o.text+=`
|
|
63
63
|
`+s.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
64
64
|
`+s.raw,o.text+=`
|
|
65
|
-
`+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(r=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let h;this.options.extensions.startBlock.forEach(
|
|
65
|
+
`+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(r=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},l),typeof h=="number"&&h>=0&&(a=Math.min(a,h))}),a<1/0&&a>=0&&(r=t.substring(0,a+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r))){o=n[n.length-1],i&&o.type==="paragraph"?(o.raw+=`
|
|
66
66
|
`+s.raw,o.text+=`
|
|
67
67
|
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s),i=r.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&o.type==="text"?(o.raw+=`
|
|
68
68
|
`+s.raw,o.text+=`
|
|
69
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let s,o,r,i=t,a,l,h;if(this.tokens.links){const
|
|
70
|
-
`,o?'<pre><code class="language-'+
|
|
71
|
-
`:"<pre><code>"+(s?t:
|
|
69
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let s,o,r,i=t,a,l,h;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(h=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(d=>(s=d.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&s.type==="text"&&o.type==="text"?(o.raw+=s.raw,o.text+=s.text):n.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length),o=n[n.length-1],o&&s.type==="text"&&o.type==="text"?(o.raw+=s.raw,o.text+=s.text):n.push(s);continue}if(s=this.tokenizer.emStrong(t,i,h)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.del(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),n.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),n.push(s);continue}if(r=t,this.options.extensions&&this.options.extensions.startInline){let d=1/0;const f=t.slice(1);let m;this.options.extensions.startInline.forEach(g=>{m=g.call({lexer:this},f),typeof m=="number"&&m>=0&&(d=Math.min(d,m))}),d<1/0&&d>=0&&(r=t.substring(0,d+1))}if(s=this.tokenizer.inlineText(r)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(h=s.raw.slice(-1)),l=!0,o=n[n.length-1],o&&o.type==="text"?(o.raw+=s.raw,o.text+=s.text):n.push(s);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class Zs{options;constructor(t){this.options=t||rn}code(t,n,s){const o=(n||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
|
|
70
|
+
`,o?'<pre><code class="language-'+Ge(o)+'">'+(s?t:Ge(t,!0))+`</code></pre>
|
|
71
|
+
`:"<pre><code>"+(s?t:Ge(t,!0))+`</code></pre>
|
|
72
72
|
`}blockquote(t){return`<blockquote>
|
|
73
73
|
${t}</blockquote>
|
|
74
74
|
`}html(t,n){return t}heading(t,n,s){return`<h${n}>${t}</h${n}>
|
|
@@ -84,6 +84,6 @@ ${t}</blockquote>
|
|
|
84
84
|
`}tablerow(t){return`<tr>
|
|
85
85
|
${t}</tr>
|
|
86
86
|
`}tablecell(t,n){const s=n.header?"th":"td";return(n.align?`<${s} align="${n.align}">`:`<${s}>`)+t+`</${s}>
|
|
87
|
-
`}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 o=jl(t);if(o===null)return s;t=o;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+s+"</a>",r}image(t,n,s){const o=jl(t);if(o===null)return s;t=o;let r=`<img src="${t}" alt="${s}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(t){return t}}class
|
|
88
|
-
`+(i.tokens?this.parseInline(i.tokens):i.text);s+=n?this.renderer.paragraph(a):a;continue}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}parseInline(t,n){n=n||this.renderer;let s="";for(let o=0;o<t.length;o++){const r=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=this.options.extensions.renderers[r.type].call({parser:this},r);if(i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=i||"";continue}}switch(r.type){case"escape":{const i=r;s+=n.text(i.text);break}case"html":{const i=r;s+=n.html(i.text);break}case"link":{const i=r;s+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break}case"image":{const i=r;s+=n.image(i.href,i.title,i.text);break}case"strong":{const i=r;s+=n.strong(this.parseInline(i.tokens,n));break}case"em":{const i=r;s+=n.em(this.parseInline(i.tokens,n));break}case"codespan":{const i=r;s+=n.codespan(i.text);break}case"br":{s+=n.br();break}case"del":{const i=r;s+=n.del(this.parseInline(i.tokens,n));break}case"text":{const i=r;s+=n.text(i.text);break}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}}class
|
|
89
|
-
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+
|
|
87
|
+
`}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 o=jl(t);if(o===null)return s;t=o;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+s+"</a>",r}image(t,n,s){const o=jl(t);if(o===null)return s;t=o;let r=`<img src="${t}" alt="${s}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(t){return t}}class To{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 ht{options;renderer;textRenderer;constructor(t){this.options=t||rn,this.options.renderer=this.options.renderer||new Zs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new To}static parse(t,n){return new ht(n).parse(t)}static parseInline(t,n){return new ht(n).parseInline(t)}parse(t,n=!0){let s="";for(let o=0;o<t.length;o++){const r=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=r,a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){s+=a||"";continue}}switch(r.type){case"space":continue;case"hr":{s+=this.renderer.hr();continue}case"heading":{const i=r;s+=this.renderer.heading(this.parseInline(i.tokens),i.depth,pm(this.parseInline(i.tokens,this.textRenderer)));continue}case"code":{const i=r;s+=this.renderer.code(i.text,i.lang,!!i.escaped);continue}case"table":{const i=r;let a="",l="";for(let d=0;d<i.header.length;d++)l+=this.renderer.tablecell(this.parseInline(i.header[d].tokens),{header:!0,align:i.align[d]});a+=this.renderer.tablerow(l);let h="";for(let d=0;d<i.rows.length;d++){const f=i.rows[d];l="";for(let m=0;m<f.length;m++)l+=this.renderer.tablecell(this.parseInline(f[m].tokens),{header:!1,align:i.align[m]});h+=this.renderer.tablerow(l)}s+=this.renderer.table(a,h);continue}case"blockquote":{const i=r,a=this.parse(i.tokens);s+=this.renderer.blockquote(a);continue}case"list":{const i=r,a=i.ordered,l=i.start,h=i.loose;let d="";for(let f=0;f<i.items.length;f++){const m=i.items[f],g=m.checked,y=m.task;let I="";if(m.task){const T=this.renderer.checkbox(!!g);h?m.tokens.length>0&&m.tokens[0].type==="paragraph"?(m.tokens[0].text=T+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&m.tokens[0].tokens[0].type==="text"&&(m.tokens[0].tokens[0].text=T+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:T+" "}):I+=T+" "}I+=this.parse(m.tokens,h),d+=this.renderer.listitem(I,y,!!g)}s+=this.renderer.list(d,a,l);continue}case"html":{const i=r;s+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=r;s+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=r,a=i.tokens?this.parseInline(i.tokens):i.text;for(;o+1<t.length&&t[o+1].type==="text";)i=t[++o],a+=`
|
|
88
|
+
`+(i.tokens?this.parseInline(i.tokens):i.text);s+=n?this.renderer.paragraph(a):a;continue}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}parseInline(t,n){n=n||this.renderer;let s="";for(let o=0;o<t.length;o++){const r=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=this.options.extensions.renderers[r.type].call({parser:this},r);if(i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=i||"";continue}}switch(r.type){case"escape":{const i=r;s+=n.text(i.text);break}case"html":{const i=r;s+=n.html(i.text);break}case"link":{const i=r;s+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break}case"image":{const i=r;s+=n.image(i.href,i.title,i.text);break}case"strong":{const i=r;s+=n.strong(this.parseInline(i.tokens,n));break}case"em":{const i=r;s+=n.em(this.parseInline(i.tokens,n));break}case"codespan":{const i=r;s+=n.codespan(i.text);break}case"br":{s+=n.br();break}case"del":{const i=r;s+=n.del(this.parseInline(i.tokens,n));break}case"text":{const i=r;s+=n.text(i.text);break}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}}class Js{options;constructor(t){this.options=t||rn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}class Km{defaults=bo();options=this.setOptions;parse=this.#e(dt.lex,ht.parse);parseInline=this.#e(dt.lexInline,ht.parseInline);Parser=ht;Renderer=Zs;TextRenderer=To;Lexer=dt;Tokenizer=Gs;Hooks=Js;constructor(...t){this.use(...t)}walkTokens(t,n){let s=[];for(const o of t)switch(s=s.concat(n.call(this,o)),o.type){case"table":{const r=o;for(const i of r.header)s=s.concat(this.walkTokens(i.tokens,n));for(const i of r.rows)for(const a of i)s=s.concat(this.walkTokens(a.tokens,n));break}case"list":{const r=o;s=s.concat(this.walkTokens(r.items,n));break}default:{const r=o;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{const a=r[i].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 o={...s};if(o.async=this.defaults.async||o.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const i=n.renderers[r.name];i?n.renderers[r.name]=function(...a){let l=r.renderer.apply(this,a);return l===!1&&(l=i.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 i=n[r.level];i?i.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)}),o.extensions=n),s.renderer){const r=this.defaults.renderer||new Zs(this.defaults);for(const i in s.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(i==="options")continue;const a=i,l=s.renderer[a],h=r[a];r[a]=(...d)=>{let f=l.apply(r,d);return f===!1&&(f=h.apply(r,d)),f||""}}o.renderer=r}if(s.tokenizer){const r=this.defaults.tokenizer||new Gs(this.defaults);for(const i in s.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const a=i,l=s.tokenizer[a],h=r[a];r[a]=(...d)=>{let f=l.apply(r,d);return f===!1&&(f=h.apply(r,d)),f}}o.tokenizer=r}if(s.hooks){const r=this.defaults.hooks||new Js;for(const i in s.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(i==="options")continue;const a=i,l=s.hooks[a],h=r[a];Js.passThroughHooks.has(i)?r[a]=d=>{if(this.defaults.async)return Promise.resolve(l.call(r,d)).then(m=>h.call(r,m));const f=l.call(r,d);return h.call(r,f)}:r[a]=(...d)=>{let f=l.apply(r,d);return f===!1&&(f=h.apply(r,d)),f}}o.hooks=r}if(s.walkTokens){const r=this.defaults.walkTokens,i=s.walkTokens;o.walkTokens=function(a){let l=[];return l.push(i.call(this,a)),r&&(l=l.concat(r.call(this,a))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return dt.lex(t,n??this.defaults)}parser(t,n){return ht.parse(t,n??this.defaults)}#e(t,n){return(s,o)=>{const r={...o},i={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const a=this.#t(!!i.silent,!!i.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(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(s):s).then(l=>t(l,i)).then(l=>i.hooks?i.hooks.processAllTokens(l):l).then(l=>i.walkTokens?Promise.all(this.walkTokens(l,i.walkTokens)).then(()=>l):l).then(l=>n(l,i)).then(l=>i.hooks?i.hooks.postprocess(l):l).catch(a);try{i.hooks&&(s=i.hooks.preprocess(s));let l=t(s,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let h=n(l,i);return i.hooks&&(h=i.hooks.postprocess(h)),h}catch(l){return a(l)}}}#t(t,n){return s=>{if(s.message+=`
|
|
89
|
+
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Ge(s.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(s);throw s}}}const on=new Km;function ce(e,t){return on.parse(e,t)}ce.options=ce.setOptions=function(e){return on.setOptions(e),ce.defaults=on.defaults,Fl(ce.defaults),ce},ce.getDefaults=bo,ce.defaults=rn,ce.use=function(...e){return on.use(...e),ce.defaults=on.defaults,Fl(ce.defaults),ce},ce.walkTokens=function(e,t){return on.walkTokens(e,t)},ce.parseInline=on.parseInline,ce.Parser=ht,ce.parser=ht.parse,ce.Renderer=Zs,ce.TextRenderer=To,ce.Lexer=dt,ce.lexer=dt.lex,ce.Tokenizer=Gs,ce.Hooks=Js,ce.parse=ce,ce.options,ce.setOptions,ce.use,ce.walkTokens,ce.parseInline,ht.parse,dt.lex;function zm(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const o=t>>s*8&255;n+=("00"+o.toString(16)).slice(-2)}return n}function qs(e){return e<10?`0${e}`:`${e}`}function Jl(e){e instanceof Date||(e=new Date(e));const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${qs(n)}-${qs(s)}`}function ql(e){e instanceof Date||(e=new Date(e));const t=new Date,n=Jl(e);if(Jl(t)===n){const s=e.getHours(),o=e.getMinutes();return`${qs(s)}:${qs(o)}`}return n}const Gm=["id"],Ym={class:"pt-2 ps-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},Bm={class:"flex justify-between items-center font-sans"},Xm={class:"flex items-center text-sm text-base-content dark:text-white"},Zm={class:"ac-avatar me-2"},Jm={key:0,class:"w-6 h-6"},qm=["src","alt"],Qm={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},ep=["data-tip"],tp=[se("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],np=["href"],sp=["datetime","title"],rp=["href"],op=se("button",{class:"ac-btn ac-btn-ghost ac-btn-xs ms-4"},null,-1),ip=["title","aria-label"],ap=[se("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],lp=["innerHTML"],cp={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},up=Xt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=sn(),s=Vs(),{user:o}=Jr();let r;const i=te(Date.now()),a=te(!1),l=We(()=>t.comment.userId===o.value?.sub&&i.value-t.comment.createdAt.getTime()<36e5);function h(f){return`${location.origin}${location.pathname}#awcm-${f}`}function d(f){return t.ancestorId&&s.comments[t.ancestorId]?.children?.find(y=>Number(y.id)===Number(f))?.user?.name||""}return Es(()=>{l.value&&(r=setInterval(()=>{i.value=Date.now(),l.value||clearInterval(r)},1e3))}),Ti(()=>{clearInterval(r)}),(f,m)=>{const g=nu("comment-item",!0);return Q(),le("div",{class:os(["comment-item rounded-lg my-4",{"animated flash":f.comment.isNew}]),id:"awcm-"+f.comment.id,onAnimationend:m[6]||(m[6]=y=>f.comment.isNew=!1)},[se("div",Ym,[se("header",Bm,[se("div",Xm,[se("div",Zm,[f.comment.user.avatar?(Q(),le("div",Jm,[se("img",{class:"rounded-full max-w-full max-h-full",src:f.comment.user.avatar,alt:f.comment.user.name},null,8,qm)])):(Q(),le("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:rs({"background-color":B(zm)(f.comment.user.name||B(n)("anonymous"))})},[se("span",Qm,ge((f.comment.user.name||B(n)("anonymous")).substring(0,1)),1)],4))]),gn(ge(f.comment.user.name),1),f.comment.isAdmin?(Q(),le("div",{key:0,class:"ac-tooltip ms-2","data-tip":B(n)("admin")},tp,8,ep)):Me("",!0),se("a",{class:"ms-4 no-underline hover:underline",href:h(f.comment.id)},[se("time",{class:"text-xs text-gray-600 dark:text-gray-400",pubdate:"",datetime:f.comment.createdAt,title:B(ql)(f.comment.createdAt)},ge(B(ql)(f.comment.createdAt)),9,sp)],8,np),!f.isFirstLevel&&f.comment.parent_id!==f.comment.ancestor_id?(Q(),le("a",{key:1,class:"text-xs link link-hover ms-4",href:"#awcm-"+f.comment.parent_id},ge(B(n)("reply_to"))+" "+ge(d(f.comment.parent_id))+"(#"+ge(f.comment.parent_id)+")",9,rp)):Me("",!0),l.value?(Q(),le("button",{key:2,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:m[0]||(m[0]=y=>a.value=!a.value)},ge(B(n)("edit")),1)):Me("",!0),op]),se("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 me-2.5",type:"button",title:B(n)("reply"),"aria-label":B(n)("reply"),onClick:m[1]||(m[1]=y=>f.comment.isReplying=!f.comment.isReplying)},ap,8,ip)]),se("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:B(ce)(f.comment.content)},null,8,lp),f.comment.status===B(Hs).Pending?(Q(),le("p",cp,ge(B(n)("approve_hint")),1)):Me("",!0)]),a.value?(Q(),mn(Ks,{key:0,class:"mt-3","no-version":"",content:f.comment.content,"current-id":f.comment.id,status:f.comment.status,onUpdate:m[2]||(m[2]=y=>f.comment.content=y),onClose:m[3]||(m[3]=y=>a.value=!1)},null,8,["content","current-id","status"])):Me("",!0),f.comment.isReplying&&f.isFirstLevel?(Q(),mn(Ks,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":f.ancestorId,"parent-id":Number(f.comment.id),onClose:m[4]||(m[4]=y=>f.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Me("",!0),f.comment.children?.length?(Q(!0),le(Le,{key:2},Li(f.comment.children,y=>(Q(),mn(g,{class:"ms-7 mt-2",key:y.id,comment:y,"ancestor-id":f.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):Me("",!0),f.comment.isReplying&&!f.isFirstLevel?(Q(),mn(Ks,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":f.ancestorId,"parent-id":f.comment.id,onClose:m[5]||(m[5]=y=>f.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Me("",!0)],42,Gm)}}}),fp={key:0,class:"comments-wrapper"},dp=["disabled"],hp={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},mp={key:1,class:"pt-8 text-center"},pp=[se("span",{class:"ac-loading ac-loading-spinner"},null,-1)],gp=Xt({...{name:"CommentSections"},setup(e){const{t}=sn(),n=Vs();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(o,r)=>B(n).isLoaded?(Q(),le("div",fp,[(Q(!0),le(Le,null,Li(Object.values(B(n).comments).reverse(),i=>(Q(),mn(up,{key:i.id,comment:i,"parent-id":i.parentId,"ancestor-id":i.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),B(n).hasMore?(Q(),le("button",{key:0,class:"ac-btn ac-btn-neutral ac-btn-sm ac-btn-block",type:"button",onClick:s,disabled:B(n).loadingMore},[B(n).loadingMore?(Q(),le("span",hp)):Me("",!0),gn(ge(B(t)("load_more")),1)],8,dp)):Me("",!0)])):(Q(),le("div",mp,pp))}}),_p={class:"awesome-comment"},bp={key:0,class:"ac-alert ac-alert-error mb-4"},yp={class:"flex justify-between items-center py-2"},kp={class:"text-lg font-bold text-base-content my-0"},wp={key:0,class:"ac-loading ac-loading-spinner"},vp={key:1,class:"ac-dropdown ac-dropdown-end"},Ep={key:0,class:"ac-avatar flex",tabindex:"0"},Ip={class:"w-6 h-6 rounded-full"},Tp=["alt","src"],Lp={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Op={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Sp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},xp={class:"text-base-content"},Cp=["disabled"],Np=["disabled"],Pp=Xt({__name:"App",setup(e){const t=Vs(),{t:n}=sn(),{isAuthenticated:s,isLoading:o,user:r,loginWithPopup:i,logout:a}=Jr(),l=We(()=>{const f=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const m=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(m),f});function h(){i()}function d(){a({openUrl:!1})}return(f,m)=>(Q(),le("div",_p,[B(t).message?(Q(),le("div",bp,[se("p",null,ge(B(t).message),1)])):Me("",!0),se("header",yp,[se("h2",kp,ge(B(n)("discussion"))+" ("+ge(l.value)+")",1),B(o)?(Q(),le("span",wp)):(Q(),le("div",vp,[B(s)&&B(r)?(Q(),le(Le,{key:0},[B(r).picture?(Q(),le("label",Ep,[se("div",Ip,[se("img",{class:"w-full h-full block",alt:B(r).name||B(r).email,src:B(r).picture},null,8,Tp)])])):(Q(),le("label",Lp,ge(B(r).email),1)),se("ul",Op,[B(r).picture?(Q(),le("li",Sp,[se("span",xp,ge(B(r).email),1)])):Me("",!0),se("li",null,[se("button",{class:"border-0 bg-base-100",type:"button",disabled:B(o),onClick:d},ge(B(n)("logout")),9,Cp)])])],64)):(Q(),le("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:B(o),onClick:h},ge(B(n)("login")),9,Np))]))]),Ne(Ks),Ne(gp)]))}}),Lo=[];let Ql=null;function Ap(e,t,n=navigator.language){const s=Nf(Pp),o=Mf(),r=Ql||xa({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),i=Hh({legacy:!1,locale:n,fallbackLocale:"en",messages:Qh});return s.use(r),s.use(o),s.use(i),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:o,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=Ap(s,o,r);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",Lo),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,Ql=xa({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await o.json();if(r.data){Lo.push(...r.data);const i=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Lo.length});document.body.dispatchEvent(i)}}}});
|