mokelay-editor 0.0.1 → 0.0.3
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/assets/EditorPanel-C1sfyxYP.js +1 -0
- package/assets/EditorPanel-vQbiWj6F.css +1 -0
- package/assets/MForm-IOgKE4fR.js +50 -0
- package/assets/MPage-okwcd_fI.js +1 -0
- package/assets/{storage-tTDw43ui.js → MPage.vue_vue_type_script_setup_true_lang-BfUuzlf-.js} +3 -3
- package/assets/PreviewPanel-BB0_i9aa.js +1 -0
- package/assets/index-CH5-XypS.css +1 -0
- package/assets/index-DKqdRiPk.js +26 -0
- package/index.html +2 -2
- package/package.json +1 -1
- package/assets/EditorPanel-B97wXLqG.js +0 -1
- package/assets/EditorPanel-bZ_ztq4l.css +0 -1
- package/assets/MForm-Ct41vjbV.js +0 -50
- package/assets/MPage-PbJKUfhk.js +0 -1
- package/assets/PreviewPanel-65RZ8CEI.js +0 -1
- package/assets/index-C0VPLP4t.js +0 -18
- package/assets/index-qSOXU8wC.css +0 -1
- /package/assets/{storage-DdQoXp86.css → MPage-DdQoXp86.css} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EditorPanel-C1sfyxYP.js","assets/MPage.vue_vue_type_script_setup_true_lang-BfUuzlf-.js","assets/editorjs-hCuh8vdW.js","assets/MPage-DdQoXp86.css","assets/EditorPanel-vQbiWj6F.css","assets/PreviewPanel-BB0_i9aa.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var zu=Object.defineProperty;var Pi=e=>{throw TypeError(e)};var Vu=(e,t,n)=>t in e?zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jr=(e,t,n)=>Vu(e,typeof t!="symbol"?t+"":t,n),Js=(e,t,n)=>t.has(e)||Pi("Cannot "+n);var x=(e,t,n)=>(Js(e,t,"read from private field"),n?n.call(e):t.get(e)),ue=(e,t,n)=>t.has(e)?Pi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),te=(e,t,n,r)=>(Js(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ie=(e,t,n)=>(Js(e,t,"access private method"),n);var Wr=(e,t,n,r)=>({set _(s){te(e,t,s,n)},get _(){return x(e,t,r)}});import{g as Y2}from"./editorjs-hCuh8vdW.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
|
|
3
|
+
* @vue/shared v3.5.33
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**/function Uo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ce={},Rn=[],dt=()=>{},pl=()=>!1,Cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ts=e=>e.startsWith("onUpdate:"),Ne=Object.assign,Ho=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ku=Object.prototype.hasOwnProperty,de=(e,t)=>Ku.call(e,t),G=Array.isArray,Mn=e=>Fr(e)==="[object Map]",ml=e=>Fr(e)==="[object Set]",Ai=e=>Fr(e)==="[object Date]",re=e=>typeof e=="function",be=e=>typeof e=="string",ot=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",gl=e=>(me(e)||re(e))&&re(e.then)&&re(e.catch),yl=Object.prototype.toString,Fr=e=>yl.call(e),Ju=e=>Fr(e).slice(8,-1),bl=e=>Fr(e)==="[object Object]",Es=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ur=Uo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Os=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Wu=/-\w/g,Ye=Os(e=>e.replace(Wu,t=>t.slice(1).toUpperCase())),Qu=/\B([A-Z])/g,Cn=Os(e=>e.replace(Qu,"-$1").toLowerCase()),Ps=Os(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ws=Os(e=>e?`on${Ps(e)}`:""),Mt=(e,t)=>!Object.is(e,t),Qs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},_l=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Gu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Yu=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let Ri;const As=()=>Ri||(Ri=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vn(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=be(r)?tf(r):Vn(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(be(e)||me(e))return e}const Xu=/;(?![^(]*\))/g,Zu=/:([^]+)/,ef=/\/\*[^]*?\*\//g;function tf(e){const t={};return e.replace(ef,"").split(Xu).forEach(n=>{if(n){const r=n.split(Zu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ft(e){let t="";if(be(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const r=ft(e[n]);r&&(t+=r+" ")}else if(me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function X2(e){if(!e)return null;let{class:t,style:n}=e;return t&&!be(t)&&(e.class=ft(t)),n&&(e.style=Vn(n)),e}const nf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",rf=Uo(nf);function vl(e){return!!e||e===""}function sf(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=qo(e[r],t[r]);return n}function qo(e,t){if(e===t)return!0;let n=Ai(e),r=Ai(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ot(e),r=ot(t),n||r)return e===t;if(n=G(e),r=G(t),n||r)return n&&r?sf(e,t):!1;if(n=me(e),r=me(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!qo(e[i],t[i]))return!1}}return String(e)===String(t)}const wl=e=>!!(e&&e.__v_isRef===!0),je=e=>be(e)?e:e==null?"":G(e)||me(e)&&(e.toString===yl||!re(e.toString))?wl(e)?je(e.value):JSON.stringify(e,Sl,2):String(e),Sl=(e,t)=>wl(t)?Sl(e,t.value):Mn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Gs(r,o)+" =>"]=s,n),{})}:ml(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Gs(n))}:ot(t)?Gs(t):me(t)&&!G(t)&&!bl(t)?String(t):t,Gs=(e,t="")=>{var n;return ot(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
|
+
* @vue/reactivity v3.5.33
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/let ke;class of{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ke,!t&&ke&&(this.index=(ke.scopes||(ke.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ke;try{return ke=this,t()}finally{ke=n}}}on(){++this._on===1&&(this.prevScope=ke,ke=this)}off(){if(this._on>0&&--this._on===0){if(ke===this)ke=this.prevScope;else{let t=ke;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function xl(){return ke}function af(e,t=!1){ke&&ke.cleanups.push(e)}let xe;const Ys=new WeakSet;class Cl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ke&&ke.active&&ke.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ys.has(this)&&(Ys.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||El(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Mi(this),Ol(this);const t=xe,n=ht;xe=this,ht=!0;try{return this.fn()}finally{Pl(this),xe=t,ht=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ko(t);this.deps=this.depsTail=void 0,Mi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ys.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){po(this)&&this.run()}get dirty(){return po(this)}}let Tl=0,fr,dr;function El(e,t=!1){if(e.flags|=8,t){e.next=dr,dr=e;return}e.next=fr,fr=e}function zo(){Tl++}function Vo(){if(--Tl>0)return;if(dr){let t=dr;for(dr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fr;){let t=fr;for(fr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ol(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pl(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Ko(r),lf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function po(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Al(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Al(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_r)||(e.globalVersion=_r,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!po(e))))return;e.flags|=2;const t=e.dep,n=xe,r=ht;xe=e,ht=!0;try{Ol(e);const s=e.fn(e._value);(t.version===0||Mt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{xe=n,ht=r,Pl(e),e.flags&=-3}}function Ko(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ko(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function lf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ht=!0;const Rl=[];function Ut(){Rl.push(ht),ht=!1}function Ht(){const e=Rl.pop();ht=e===void 0?!0:e}function Mi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=xe;xe=void 0;try{t()}finally{xe=n}}}let _r=0;class cf{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Jo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!xe||!ht||xe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==xe)n=this.activeLink=new cf(xe,this),xe.deps?(n.prevDep=xe.depsTail,xe.depsTail.nextDep=n,xe.depsTail=n):xe.deps=xe.depsTail=n,Ml(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=xe.depsTail,n.nextDep=void 0,xe.depsTail.nextDep=n,xe.depsTail=n,xe.deps===n&&(xe.deps=r)}return n}trigger(t){this.version++,_r++,this.notify(t)}notify(t){zo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Vo()}}}function Ml(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ml(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const us=new WeakMap,_n=Symbol(""),mo=Symbol(""),vr=Symbol("");function qe(e,t,n){if(ht&&xe){let r=us.get(e);r||us.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Jo),s.map=r,s.key=n),s.track()}}function Bt(e,t,n,r,s,o){const i=us.get(e);if(!i){_r++;return}const a=l=>{l&&l.trigger()};if(zo(),t==="clear")i.forEach(a);else{const l=G(e),u=l&&Es(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,g)=>{(g==="length"||g===vr||!ot(g)&&g>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(vr)),t){case"add":l?u&&a(i.get("length")):(a(i.get(_n)),Mn(e)&&a(i.get(mo)));break;case"delete":l||(a(i.get(_n)),Mn(e)&&a(i.get(mo)));break;case"set":Mn(e)&&a(i.get(_n));break}}Vo()}function uf(e,t){const n=us.get(e);return n&&n.get(t)}function En(e){const t=pe(e);return t===e?t:(qe(t,"iterate",vr),st(e)?t:t.map(mt))}function Rs(e){return qe(e=pe(e),"iterate",vr),e}function At(e,t){return qt(e)?Kn(vn(e)?mt(t):t):mt(t)}const ff={__proto__:null,[Symbol.iterator](){return Xs(this,Symbol.iterator,e=>At(this,e))},concat(...e){return En(this).concat(...e.map(t=>G(t)?En(t):t))},entries(){return Xs(this,"entries",e=>(e[1]=At(this,e[1]),e))},every(e,t){return Nt(this,"every",e,t,void 0,arguments)},filter(e,t){return Nt(this,"filter",e,t,n=>n.map(r=>At(this,r)),arguments)},find(e,t){return Nt(this,"find",e,t,n=>At(this,n),arguments)},findIndex(e,t){return Nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Nt(this,"findLast",e,t,n=>At(this,n),arguments)},findLastIndex(e,t){return Nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Zs(this,"includes",e)},indexOf(...e){return Zs(this,"indexOf",e)},join(e){return En(this).join(e)},lastIndexOf(...e){return Zs(this,"lastIndexOf",e)},map(e,t){return Nt(this,"map",e,t,void 0,arguments)},pop(){return nr(this,"pop")},push(...e){return nr(this,"push",e)},reduce(e,...t){return Di(this,"reduce",e,t)},reduceRight(e,...t){return Di(this,"reduceRight",e,t)},shift(){return nr(this,"shift")},some(e,t){return Nt(this,"some",e,t,void 0,arguments)},splice(...e){return nr(this,"splice",e)},toReversed(){return En(this).toReversed()},toSorted(e){return En(this).toSorted(e)},toSpliced(...e){return En(this).toSpliced(...e)},unshift(...e){return nr(this,"unshift",e)},values(){return Xs(this,"values",e=>At(this,e))}};function Xs(e,t,n){const r=Rs(e),s=r[t]();return r!==e&&!st(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const df=Array.prototype;function Nt(e,t,n,r,s,o){const i=Rs(e),a=i!==e&&!st(e),l=i[t];if(l!==df[t]){const f=l.apply(e,o);return a?mt(f):f}let u=n;i!==e&&(a?u=function(f,g){return n.call(this,At(e,f),g,e)}:n.length>2&&(u=function(f,g){return n.call(this,f,g,e)}));const c=l.call(i,u,r);return a&&s?s(c):c}function Di(e,t,n,r){const s=Rs(e),o=s!==e&&!st(e);let i=n,a=!1;s!==e&&(o?(a=r.length===0,i=function(u,c,f){return a&&(a=!1,u=At(e,u)),n.call(this,u,At(e,c),f,e)}):n.length>3&&(i=function(u,c,f){return n.call(this,u,c,f,e)}));const l=s[t](i,...r);return a?At(e,l):l}function Zs(e,t,n){const r=pe(e);qe(r,"iterate",vr);const s=r[t](...n);return(s===-1||s===!1)&&Fs(n[0])?(n[0]=pe(n[0]),r[t](...n)):s}function nr(e,t,n=[]){Ut(),zo();const r=pe(e)[t].apply(e,n);return Vo(),Ht(),r}const hf=Uo("__proto__,__v_isRef,__isVue"),Dl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ot));function pf(e){ot(e)||(e=String(e));const t=pe(this);return qe(t,"has",e),t.hasOwnProperty(e)}class Fl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?jl:Il:o?Ll:kl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=G(t);if(!s){let l;if(i&&(l=ff[n]))return l;if(n==="hasOwnProperty")return pf}const a=Reflect.get(t,n,Re(t)?t:r);if((ot(n)?Dl.has(n):hf(n))||(s||qe(t,"get",n),o))return a;if(Re(a)){const l=i&&Es(n)?a:a.value;return s&&me(l)?fs(l):l}return me(a)?s?fs(a):Wo(a):a}}class Nl extends Fl{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=G(t)&&Es(n);if(!this._isShallow){const u=qt(o);if(!st(r)&&!qt(r)&&(o=pe(o),r=pe(r)),!i&&Re(o)&&!Re(r))return u||(o.value=r),!0}const a=i?Number(n)<t.length:de(t,n),l=Reflect.set(t,n,r,Re(t)?t:s);return t===pe(s)&&(a?Mt(r,o)&&Bt(t,"set",n,r):Bt(t,"add",n,r)),l}deleteProperty(t,n){const r=de(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Bt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!ot(n)||!Dl.has(n))&&qe(t,"has",n),r}ownKeys(t){return qe(t,"iterate",G(t)?"length":_n),Reflect.ownKeys(t)}}class $l extends Fl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const mf=new Nl,gf=new $l,yf=new Nl(!0),bf=new $l(!0),go=e=>e,Qr=e=>Reflect.getPrototypeOf(e);function _f(e,t,n){return function(...r){const s=this.__v_raw,o=pe(s),i=Mn(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),c=n?go:t?Kn:mt;return!t&&qe(o,"iterate",l?mo:_n),Ne(Object.create(u),{next(){const{value:f,done:g}=u.next();return g?{value:f,done:g}:{value:a?[c(f[0]),c(f[1])]:c(f),done:g}}})}}function Gr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vf(e,t){const n={get(s){const o=this.__v_raw,i=pe(o),a=pe(s);e||(Mt(s,a)&&qe(i,"get",s),qe(i,"get",a));const{has:l}=Qr(i),u=t?go:e?Kn:mt;if(l.call(i,s))return u(o.get(s));if(l.call(i,a))return u(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&qe(pe(s),"iterate",_n),s.size},has(s){const o=this.__v_raw,i=pe(o),a=pe(s);return e||(Mt(s,a)&&qe(i,"has",s),qe(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=pe(a),u=t?go:e?Kn:mt;return!e&&qe(l,"iterate",_n),a.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return Ne(n,e?{add:Gr("add"),set:Gr("set"),delete:Gr("delete"),clear:Gr("clear")}:{add(s){const o=pe(this),i=Qr(o),a=pe(s),l=!t&&!st(s)&&!qt(s)?a:s;return i.has.call(o,l)||Mt(s,l)&&i.has.call(o,s)||Mt(a,l)&&i.has.call(o,a)||(o.add(l),Bt(o,"add",l,l)),this},set(s,o){!t&&!st(o)&&!qt(o)&&(o=pe(o));const i=pe(this),{has:a,get:l}=Qr(i);let u=a.call(i,s);u||(s=pe(s),u=a.call(i,s));const c=l.call(i,s);return i.set(s,o),u?Mt(o,c)&&Bt(i,"set",s,o):Bt(i,"add",s,o),this},delete(s){const o=pe(this),{has:i,get:a}=Qr(o);let l=i.call(o,s);l||(s=pe(s),l=i.call(o,s)),a&&a.call(o,s);const u=o.delete(s);return l&&Bt(o,"delete",s,void 0),u},clear(){const s=pe(this),o=s.size!==0,i=s.clear();return o&&Bt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=_f(s,e,t)}),n}function Ms(e,t){const n=vf(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(de(n,s)&&s in r?n:r,s,o)}const wf={get:Ms(!1,!1)},Sf={get:Ms(!1,!0)},xf={get:Ms(!0,!1)},Cf={get:Ms(!0,!0)},kl=new WeakMap,Ll=new WeakMap,Il=new WeakMap,jl=new WeakMap;function Tf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ef(e){return e.__v_skip||!Object.isExtensible(e)?0:Tf(Ju(e))}function Wo(e){return qt(e)?e:Ds(e,!1,mf,wf,kl)}function Of(e){return Ds(e,!1,yf,Sf,Ll)}function fs(e){return Ds(e,!0,gf,xf,Il)}function Pf(e){return Ds(e,!0,bf,Cf,jl)}function Ds(e,t,n,r,s){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Ef(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function vn(e){return qt(e)?vn(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function Fs(e){return e?!!e.__v_raw:!1}function pe(e){const t=e&&e.__v_raw;return t?pe(t):e}function ss(e){return!de(e,"__v_skip")&&Object.isExtensible(e)&&_l(e,"__v_skip",!0),e}const mt=e=>me(e)?Wo(e):e,Kn=e=>me(e)?fs(e):e;function Re(e){return e?e.__v_isRef===!0:!1}function ye(e){return Bl(e,!1)}function Af(e){return Bl(e,!0)}function Bl(e,t){return Re(e)?e:new Rf(e,t)}class Rf{constructor(t,n){this.dep=new Jo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:pe(t),this._value=n?t:mt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||st(t)||qt(t);t=r?t:pe(t),Mt(t,n)&&(this._rawValue=t,this._value=r?t:mt(t),this.dep.trigger())}}function Mf(e){e.dep&&e.dep.trigger()}function ae(e){return Re(e)?e.value:e}function Ul(e){return re(e)?e():ae(e)}const Df={get:(e,t,n)=>t==="__v_raw"?e:ae(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Re(s)&&!Re(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Hl(e){return vn(e)?e:new Proxy(e,Df)}function Ff(e){const t=G(e)?new Array(e.length):{};for(const n in e)t[n]=$f(e,n);return t}class Nf{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=ot(n)?n:String(n),this._raw=pe(t);let s=!0,o=t;if(!G(t)||ot(this._key)||!Es(this._key))do s=!Fs(o)||st(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=ae(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Re(this._raw[this._key])){const n=this._object[this._key];if(Re(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return uf(this._raw,this._key)}}function $f(e,t,n){return new Nf(e,t,n)}class kf{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Jo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_r-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&xe!==this)return El(this,!0),!0}get value(){const t=this.dep.track();return Al(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Lf(e,t,n=!1){let r,s;return re(e)?r=e:(r=e.get,s=e.set),new kf(r,s,n)}const Yr={},ds=new WeakMap;let cn;function If(e,t=!1,n=cn){if(n){let r=ds.get(n);r||ds.set(n,r=[]),r.push(e)}}function jf(e,t,n=Ce){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,u=b=>s?b:st(b)||s===!1||s===0?Wt(b,1):Wt(b);let c,f,g,v,y=!1,d=!1;if(Re(e)?(f=()=>e.value,y=st(e)):vn(e)?(f=()=>u(e),y=!0):G(e)?(d=!0,y=e.some(b=>vn(b)||st(b)),f=()=>e.map(b=>{if(Re(b))return b.value;if(vn(b))return u(b);if(re(b))return l?l(b,2):b()})):re(e)?t?f=l?()=>l(e,2):e:f=()=>{if(g){Ut();try{g()}finally{Ht()}}const b=cn;cn=c;try{return l?l(e,3,[v]):e(v)}finally{cn=b}}:f=dt,t&&s){const b=f,M=s===!0?1/0:s;f=()=>Wt(b(),M)}const m=xl(),w=()=>{c.stop(),m&&m.active&&Ho(m.effects,c)};if(o&&t){const b=t;t=(...M)=>{b(...M),w()}}let D=d?new Array(e.length).fill(Yr):Yr;const E=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const M=c.run();if(s||y||(d?M.some((q,W)=>Mt(q,D[W])):Mt(M,D))){g&&g();const q=cn;cn=c;try{const W=[M,D===Yr?void 0:d&&D[0]===Yr?[]:D,v];D=M,l?l(t,3,W):t(...W)}finally{cn=q}}}else c.run()};return a&&a(E),c=new Cl(f),c.scheduler=i?()=>i(E,!1):E,v=b=>If(b,!1,c),g=c.onStop=()=>{const b=ds.get(c);if(b){if(l)l(b,4);else for(const M of b)M();ds.delete(c)}},t?r?E(!0):D=c.run():i?i(E.bind(null,!0),!0):c.run(),w.pause=c.pause.bind(c),w.resume=c.resume.bind(c),w.stop=w,w}function Wt(e,t=1/0,n){if(t<=0||!me(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Re(e))Wt(e.value,t,n);else if(G(e))for(let r=0;r<e.length;r++)Wt(e[r],t,n);else if(ml(e)||Mn(e))e.forEach(r=>{Wt(r,t,n)});else if(bl(e)){for(const r in e)Wt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Wt(e[r],t,n)}return e}/**
|
|
11
|
+
* @vue/runtime-core v3.5.33
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/function Nr(e,t,n,r){try{return r?e(...r):e()}catch(s){$r(s,t,n)}}function gt(e,t,n,r){if(re(e)){const s=Nr(e,t,n,r);return s&&gl(s)&&s.catch(o=>{$r(o,t,n)}),s}if(G(e)){const s=[];for(let o=0;o<e.length;o++)s.push(gt(e[o],t,n,r));return s}}function $r(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ce;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(o){Ut(),Nr(o,null,10,[e,l,u]),Ht();return}}Bf(e,n,s,r,i)}function Bf(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const We=[];let Ct=-1;const Dn=[];let Jt=null,An=0;const ql=Promise.resolve();let hs=null;function Jn(e){const t=hs||ql;return e?t.then(this?e.bind(this):e):t}function Uf(e){let t=Ct+1,n=We.length;for(;t<n;){const r=t+n>>>1,s=We[r],o=wr(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Qo(e){if(!(e.flags&1)){const t=wr(e),n=We[We.length-1];!n||!(e.flags&2)&&t>=wr(n)?We.push(e):We.splice(Uf(t),0,e),e.flags|=1,zl()}}function zl(){hs||(hs=ql.then(Kl))}function Hf(e){G(e)?Dn.push(...e):Jt&&e.id===-1?Jt.splice(An+1,0,e):e.flags&1||(Dn.push(e),e.flags|=1),zl()}function Fi(e,t,n=Ct+1){for(;n<We.length;n++){const r=We[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;We.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Vl(e){if(Dn.length){const t=[...new Set(Dn)].sort((n,r)=>wr(n)-wr(r));if(Dn.length=0,Jt){Jt.push(...t);return}for(Jt=t,An=0;An<Jt.length;An++){const n=Jt[An];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Jt=null,An=0}}const wr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Kl(e){try{for(Ct=0;Ct<We.length;Ct++){const t=We[Ct];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Nr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ct<We.length;Ct++){const t=We[Ct];t&&(t.flags&=-2)}Ct=-1,We.length=0,Vl(),hs=null,(We.length||Dn.length)&&Kl()}}let Ge=null,Jl=null;function ps(e){const t=Ge;return Ge=e,Jl=e&&e.type.__scopeId||null,t}function Fn(e,t=Ge,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&bs(-1);const o=ps(t);let i;try{i=e(...s)}finally{ps(o),r._d&&bs(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function rn(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(Ut(),gt(l,n,8,[e.el,a,e,t]),Ht())}}function Wl(e,t){if(Ue){let n=Ue.provides;const r=Ue.parent&&Ue.parent.provides;r===n&&(n=Ue.provides=Object.create(r)),n[e]=t}}function Dt(e,t,n=!1){const r=jr();if(r||$n){let s=$n?$n._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&re(t)?t.call(r&&r.proxy):t}}const qf=Symbol.for("v-scx"),zf=()=>Dt(qf);function hr(e,t,n){return Ql(e,t,n)}function Ql(e,t,n=Ce){const{immediate:r,deep:s,flush:o,once:i}=n,a=Ne({},n),l=t&&r||!t&&o!=="post";let u;if(Wn){if(o==="sync"){const v=zf();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=dt,v.resume=dt,v.pause=dt,v}}const c=Ue;a.call=(v,y,d)=>gt(v,c,y,d);let f=!1;o==="post"?a.scheduler=v=>{Xe(v,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(v,y)=>{y?v():Qo(v)}),a.augmentJob=v=>{t&&(v.flags|=4),f&&(v.flags|=2,c&&(v.id=c.uid,v.i=c))};const g=jf(e,t,a);return Wn&&(u?u.push(g):l&&g()),g}function Vf(e,t,n){const r=this.proxy,s=be(e)?e.includes(".")?Gl(r,e):()=>r[e]:e.bind(r,r);let o;re(t)?o=t:(o=t.handler,n=t);const i=Br(this),a=Ql(s,o.bind(r),n);return i(),a}function Gl(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Kf=Symbol("_vte"),Yl=e=>e.__isTeleport;const Tt=Symbol("_leaveCb"),rr=Symbol("_enterCb");function Jf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Lr(()=>{e.isMounted=!0}),Ir(()=>{e.isUnmounting=!0}),e}const it=[Function,Array],Xl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:it,onEnter:it,onAfterEnter:it,onEnterCancelled:it,onBeforeLeave:it,onLeave:it,onAfterLeave:it,onLeaveCancelled:it,onBeforeAppear:it,onAppear:it,onAfterAppear:it,onAppearCancelled:it},Zl=e=>{const t=e.subTree;return t.component?Zl(t.component):t},Wf={name:"BaseTransition",props:Xl,setup(e,{slots:t}){const n=jr(),r=Jf();return()=>{const s=t.default&&nc(t.default(),!0),o=s&&s.length?ec(s):n.subTree?kn():void 0;if(!o)return;const i=pe(e),{mode:a}=i;if(r.isLeaving)return eo(o);const l=Ni(o);if(!l)return eo(o);let u=yo(l,i,r,n,f=>u=f);l.type!==ze&&Sr(l,u);let c=n.subTree&&Ni(n.subTree);if(c&&c.type!==ze&&!un(c,l)&&Zl(n).type!==ze){let f=yo(c,i,r,n);if(Sr(c,f),a==="out-in"&&l.type!==ze)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},eo(o);a==="in-out"&&l.type!==ze?f.delayLeave=(g,v,y)=>{const d=tc(r,c);d[String(c.key)]=c,g[Tt]=()=>{v(),g[Tt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{y(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function ec(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ze){t=n;break}}return t}const Qf=Wf;function tc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function yo(e,t,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:g,onLeave:v,onAfterLeave:y,onLeaveCancelled:d,onBeforeAppear:m,onAppear:w,onAfterAppear:D,onAppearCancelled:E}=t,b=String(e.key),M=tc(n,e),q=(H,V)=>{H&>(H,r,9,V)},W=(H,V)=>{const z=V[1];q(H,V),G(H)?H.every(I=>I.length<=1)&&z():H.length<=1&&z()},ne={mode:i,persisted:a,beforeEnter(H){let V=l;if(!n.isMounted)if(o)V=m||l;else return;H[Tt]&&H[Tt](!0);const z=M[b];z&&un(e,z)&&z.el[Tt]&&z.el[Tt](),q(V,[H])},enter(H){if(M[b]===e)return;let V=u,z=c,I=f;if(!n.isMounted)if(o)V=w||u,z=D||c,I=E||f;else return;let le=!1;H[rr]=k=>{le||(le=!0,k?q(I,[H]):q(z,[H]),ne.delayedLeave&&ne.delayedLeave(),H[rr]=void 0)};const B=H[rr].bind(null,!1);V?W(V,[H,B]):B()},leave(H,V){const z=String(e.key);if(H[rr]&&H[rr](!0),n.isUnmounting)return V();q(g,[H]);let I=!1;H[Tt]=B=>{I||(I=!0,V(),B?q(d,[H]):q(y,[H]),H[Tt]=void 0,M[z]===e&&delete M[z])};const le=H[Tt].bind(null,!1);M[z]=e,v?W(v,[H,le]):le()},clone(H){const V=yo(H,t,n,r,s);return s&&s(V),V}};return ne}function eo(e){if(kr(e))return e=nn(e),e.children=null,e}function Ni(e){if(!kr(e))return Yl(e.type)&&e.children?ec(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&re(n.default))return n.default()}}function Sr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Sr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nc(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===Be?(i.patchFlag&128&&s++,r=r.concat(nc(i.children,t,a))):(t||i.type!==ze)&&r.push(a!=null?nn(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function yt(e,t){return re(e)?Ne({name:e.name},t,{setup:e}):e}function Go(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $i(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ms=new WeakMap;function pr(e,t,n,r,s=!1){if(G(e)){e.forEach((d,m)=>pr(d,t&&(G(t)?t[m]:t),n,r,s));return}if(Nn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&pr(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?ni(r.component):r.el,i=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Ce?a.refs={}:a.refs,f=a.setupState,g=pe(f),v=f===Ce?pl:d=>$i(c,d)?!1:de(g,d),y=(d,m)=>!(m&&$i(c,m));if(u!=null&&u!==l){if(ki(t),be(u))c[u]=null,v(u)&&(f[u]=null);else if(Re(u)){const d=t;y(u,d.k)&&(u.value=null),d.k&&(c[d.k]=null)}}if(re(l))Nr(l,a,12,[i,c]);else{const d=be(l),m=Re(l);if(d||m){const w=()=>{if(e.f){const D=d?v(l)?f[l]:c[l]:y()||!e.k?l.value:c[e.k];if(s)G(D)&&Ho(D,o);else if(G(D))D.includes(o)||D.push(o);else if(d)c[l]=[o],v(l)&&(f[l]=c[l]);else{const E=[o];y(l,e.k)&&(l.value=E),e.k&&(c[e.k]=E)}}else d?(c[l]=i,v(l)&&(f[l]=i)):m&&(y(l,e.k)&&(l.value=i),e.k&&(c[e.k]=i))};if(i){const D=()=>{w(),ms.delete(e)};D.id=-1,ms.set(e,D),Xe(D,n)}else ki(e),w()}}}function ki(e){const t=ms.get(e);t&&(t.flags|=8,ms.delete(e))}const Li=e=>e.nodeType===8;As().requestIdleCallback;As().cancelIdleCallback;function Gf(e,t){if(Li(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Li(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Nn=e=>!!e.type.__asyncLoader;function Ii(e){re(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const g=()=>(f++,u=null,v()),v=()=>{let y;return u||(y=u=t().catch(d=>{if(d=d instanceof Error?d:new Error(String(d)),l)return new Promise((m,w)=>{l(d,()=>m(g()),()=>w(d),f+1)});throw d}).then(d=>y!==u&&u?u:(d&&(d.__esModule||d[Symbol.toStringTag]==="Module")&&(d=d.default),c=d,d)))};return yt({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(y,d,m){let w=!1;(d.bu||(d.bu=[])).push(()=>w=!0);const D=()=>{w||m()},E=o?()=>{const b=o(D,M=>Gf(y,M));b&&(d.bum||(d.bum=[])).push(b)}:D;c?E():v().then(()=>!d.isUnmounted&&E())},get __asyncResolved(){return c},setup(){const y=Ue;if(Go(y),c)return()=>Xr(c,y);const d=E=>{u=null,$r(E,y,13,!r)};if(a&&y.suspense||Wn)return v().then(E=>()=>Xr(E,y)).catch(E=>(d(E),()=>r?Ee(r,{error:E}):null));const m=ye(!1),w=ye(),D=ye(!!s);return s&&setTimeout(()=>{D.value=!1},s),i!=null&&setTimeout(()=>{if(!m.value&&!w.value){const E=new Error(`Async component timed out after ${i}ms.`);d(E),w.value=E}},i),v().then(()=>{m.value=!0,y.parent&&kr(y.parent.vnode)&&y.parent.update()}).catch(E=>{d(E),w.value=E}),()=>{if(m.value&&c)return Xr(c,y);if(w.value&&r)return Ee(r,{error:w.value});if(n&&!D.value)return Xr(n,y)}}})}function Xr(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=Ee(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const kr=e=>e.type.__isKeepAlive;function Yf(e,t){rc(e,"a",t)}function Xf(e,t){rc(e,"da",t)}function rc(e,t,n=Ue){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Ns(t,r,n),n){let s=n.parent;for(;s&&s.parent;)kr(s.parent.vnode)&&Zf(r,t,n,s),s=s.parent}}function Zf(e,t,n,r){const s=Ns(t,e,r,!0);Yo(()=>{Ho(r[t],s)},n)}function Ns(e,t,n=Ue,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ut();const a=Br(n),l=gt(t,n,e,i);return a(),Ht(),l});return r?s.unshift(o):s.push(o),o}}const zt=e=>(t,n=Ue)=>{(!Wn||e==="sp")&&Ns(e,(...r)=>t(...r),n)},ed=zt("bm"),Lr=zt("m"),td=zt("bu"),sc=zt("u"),Ir=zt("bum"),Yo=zt("um"),nd=zt("sp"),rd=zt("rtg"),sd=zt("rtc");function od(e,t=Ue){Ns("ec",e,t)}const oc="components";const ic=Symbol.for("v-ndc");function id(e){return be(e)?ad(oc,e,!1)||e:e||ic}function ad(e,t,n=!0,r=!1){const s=Ge||Ue;if(s){const o=s.type;if(e===oc){const a=zd(o,!1);if(a&&(a===t||a===Ye(t)||a===Ps(Ye(t))))return o}const i=ji(s[e]||o[e],t)||ji(s.appContext[e],t);return!i&&r?o:i}}function ji(e,t){return e&&(e[t]||e[Ye(t)]||e[Ps(Ye(t))])}function ac(e,t,n,r){let s;const o=n,i=G(e);if(i||be(e)){const a=i&&vn(e);let l=!1,u=!1;a&&(l=!st(e),u=qt(e),e=Rs(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Kn(mt(e[c])):mt(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o)}else if(me(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,o)}}else s=[];return s}function gs(e,t,n={},r,s){if(Ge.ce||Ge.parent&&Nn(Ge.parent)&&Ge.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),ge(),tn(Be,null,[Ee("slot",n,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),ge();const i=o&&lc(o(n)),a=n.key||i&&i.key,l=tn(Be,{key:(a&&!ot(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function lc(e){return e.some(t=>Cr(t)?!(t.type===ze||t.type===Be&&!lc(t.children)):!0)?e:null}const bo=e=>e?Ac(e)?ni(e):bo(e.parent):null,mr=Ne(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=>bo(e.parent),$root:e=>bo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>uc(e),$forceUpdate:e=>e.f||(e.f=()=>{Qo(e.update)}),$nextTick:e=>e.n||(e.n=Jn.bind(e.proxy)),$watch:e=>Vf.bind(e)}),to=(e,t)=>e!==Ce&&!e.__isScriptSetup&&de(e,t),ld={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(to(r,t))return i[t]=1,r[t];if(s!==Ce&&de(s,t))return i[t]=2,s[t];if(de(o,t))return i[t]=3,o[t];if(n!==Ce&&de(n,t))return i[t]=4,n[t];_o&&(i[t]=0)}}const u=mr[t];let c,f;if(u)return t==="$attrs"&&qe(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Ce&&de(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,de(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return to(s,t)?(s[t]=n,!0):r!==Ce&&de(r,t)?(r[t]=n,!0):de(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:i}},a){let l;return!!(n[a]||e!==Ce&&a[0]!=="$"&&de(e,a)||to(t,a)||de(o,a)||de(r,a)||de(mr,a)||de(s.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bi(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let _o=!0;function cd(e){const t=uc(e),n=e.proxy,r=e.ctx;_o=!1,t.beforeCreate&&Ui(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:g,beforeUpdate:v,updated:y,activated:d,deactivated:m,beforeDestroy:w,beforeUnmount:D,destroyed:E,unmounted:b,render:M,renderTracked:q,renderTriggered:W,errorCaptured:ne,serverPrefetch:H,expose:V,inheritAttrs:z,components:I,directives:le,filters:B}=t;if(u&&ud(u,r,null),i)for(const F in i){const T=i[F];re(T)&&(r[F]=T.bind(n))}if(s){const F=s.call(n,n);me(F)&&(e.data=Wo(F))}if(_o=!0,o)for(const F in o){const T=o[F],K=re(T)?T.bind(n,n):re(T.get)?T.get.bind(n,n):dt,Y=!re(T)&&re(T.set)?T.set.bind(n):dt,X=Pe({get:K,set:Y});Object.defineProperty(r,F,{enumerable:!0,configurable:!0,get:()=>X.value,set:ie=>X.value=ie})}if(a)for(const F in a)cc(a[F],r,n,F);if(l){const F=re(l)?l.call(n):l;Reflect.ownKeys(F).forEach(T=>{Wl(T,F[T])})}c&&Ui(c,e,"c");function C(F,T){G(T)?T.forEach(K=>F(K.bind(n))):T&&F(T.bind(n))}if(C(ed,f),C(Lr,g),C(td,v),C(sc,y),C(Yf,d),C(Xf,m),C(od,ne),C(sd,q),C(rd,W),C(Ir,D),C(Yo,b),C(nd,H),G(V))if(V.length){const F=e.exposed||(e.exposed={});V.forEach(T=>{Object.defineProperty(F,T,{get:()=>n[T],set:K=>n[T]=K,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===dt&&(e.render=M),z!=null&&(e.inheritAttrs=z),I&&(e.components=I),le&&(e.directives=le),H&&Go(e)}function ud(e,t,n=dt){G(e)&&(e=vo(e));for(const r in e){const s=e[r];let o;me(s)?"default"in s?o=Dt(s.from||r,s.default,!0):o=Dt(s.from||r):o=Dt(s),Re(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Ui(e,t,n){gt(G(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function cc(e,t,n,r){let s=r.includes(".")?Gl(n,r):()=>n[r];if(be(e)){const o=t[e];re(o)&&hr(s,o)}else if(re(e))hr(s,e.bind(n));else if(me(e))if(G(e))e.forEach(o=>cc(o,t,n,r));else{const o=re(e.handler)?e.handler.bind(n):t[e.handler];re(o)&&hr(s,o,e)}}function uc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>ys(l,u,i,!0)),ys(l,t,i)),me(t)&&o.set(t,l),l}function ys(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&ys(e,o,n,!0),s&&s.forEach(i=>ys(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=fd[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const fd={data:Hi,props:qi,emits:qi,methods:lr,computed:lr,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:lr,directives:lr,watch:hd,provide:Hi,inject:dd};function Hi(e,t){return t?e?function(){return Ne(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function dd(e,t){return lr(vo(e),vo(t))}function vo(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function lr(e,t){return e?Ne(Object.create(null),e,t):t}function qi(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Ne(Object.create(null),Bi(e),Bi(t??{})):t}function hd(e,t){if(!e)return t;if(!t)return e;const n=Ne(Object.create(null),e);for(const r in t)n[r]=Je(e[r],t[r]);return n}function fc(){return{app:null,config:{isNativeTag:pl,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 pd=0;function md(e,t){return function(r,s=null){re(r)||(r=Ne({},r)),s!=null&&!me(s)&&(s=null);const o=fc(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:pd++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Jd,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&re(c.install)?(i.add(c),c.install(u,...f)):re(c)&&(i.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,g){if(!l){const v=u._ceVNode||Ee(r,s);return v.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),e(v,c,g),l=!0,u._container=c,c.__vue_app__=u,ni(v.component)}},onUnmount(c){a.push(c)},unmount(){l&&(gt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=$n;$n=u;try{return c()}finally{$n=f}}};return u}}let $n=null;const gd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${Cn(t)}Modifiers`];function yd(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ce;let s=n;const o=t.startsWith("update:"),i=o&&gd(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>be(c)?c.trim():c)),i.number&&(s=n.map(Gu)));let a,l=r[a=Ws(t)]||r[a=Ws(Ye(t))];!l&&o&&(l=r[a=Ws(Cn(t))]),l&>(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,gt(u,e,6,s)}}const bd=new WeakMap;function dc(e,t,n=!1){const r=n?bd:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!re(e)){const l=u=>{const c=dc(u,t,!0);c&&(a=!0,Ne(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(me(e)&&r.set(e,null),null):(G(o)?o.forEach(l=>i[l]=null):Ne(i,o),me(e)&&r.set(e,i),i)}function $s(e,t){return!e||!Cs(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,Cn(t))||de(e,t))}function zi(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:f,data:g,setupState:v,ctx:y,inheritAttrs:d}=e,m=ps(e);let w,D;try{if(n.shapeFlag&4){const b=s||r,M=b;w=Rt(u.call(M,b,c,f,v,g,y)),D=a}else{const b=t;w=Rt(b.length>1?b(f,{attrs:a,slots:i,emit:l}):b(f,null)),D=t.props?a:_d(a)}}catch(b){gr.length=0,$r(b,e,1),w=Ee(ze)}let E=w;if(D&&d!==!1){const b=Object.keys(D),{shapeFlag:M}=E;b.length&&M&7&&(o&&b.some(Ts)&&(D=vd(D,o)),E=nn(E,D,!1,!0))}return n.dirs&&(E=nn(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Sr(E,n.transition),w=E,ps(m),w}const _d=e=>{let t;for(const n in e)(n==="class"||n==="style"||Cs(n))&&((t||(t={}))[n]=e[n]);return t},vd=(e,t)=>{const n={};for(const r in e)(!Ts(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function wd(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Vi(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const g=c[f];if(hc(i,r,g)&&!$s(u,g))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Vi(r,i,u):!0:!!i;return!1}function Vi(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(hc(t,e,o)&&!$s(n,o))return!0}return!1}function hc(e,t,n){const r=e[n],s=t[n];return n==="style"&&me(r)&&me(s)?!qo(r,s):r!==s}function Sd({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const pc={},mc=()=>Object.create(pc),gc=e=>Object.getPrototypeOf(e)===pc;function xd(e,t,n,r=!1){const s={},o=mc();e.propsDefaults=Object.create(null),yc(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Of(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Cd(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=pe(s),[l]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let g=c[f];if($s(e.emitsOptions,g))continue;const v=t[g];if(l)if(de(o,g))v!==o[g]&&(o[g]=v,u=!0);else{const y=Ye(g);s[y]=wo(l,a,y,v,e,!1)}else v!==o[g]&&(o[g]=v,u=!0)}}}else{yc(e,t,s,o)&&(u=!0);let c;for(const f in a)(!t||!de(t,f)&&((c=Cn(f))===f||!de(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=wo(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!de(t,f))&&(delete o[f],u=!0)}u&&Bt(e.attrs,"set","")}function yc(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(ur(l))continue;const u=t[l];let c;s&&de(s,c=Ye(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:$s(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=pe(n),u=a||Ce;for(let c=0;c<o.length;c++){const f=o[c];n[f]=wo(s,l,f,u[f],e,!de(u,f))}}return i}function wo(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=de(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&re(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=Br(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===Cn(n))&&(r=!0))}return r}const Td=new WeakMap;function bc(e,t,n=!1){const r=n?Td:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!re(e)){const c=f=>{l=!0;const[g,v]=bc(f,t,!0);Ne(i,g),v&&a.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return me(e)&&r.set(e,Rn),Rn;if(G(o))for(let c=0;c<o.length;c++){const f=Ye(o[c]);Ki(f)&&(i[f]=Ce)}else if(o)for(const c in o){const f=Ye(c);if(Ki(f)){const g=o[c],v=i[f]=G(g)||re(g)?{type:g}:Ne({},g),y=v.type;let d=!1,m=!0;if(G(y))for(let w=0;w<y.length;++w){const D=y[w],E=re(D)&&D.name;if(E==="Boolean"){d=!0;break}else E==="String"&&(m=!1)}else d=re(y)&&y.name==="Boolean";v[0]=d,v[1]=m,(d||de(v,"default"))&&a.push(f)}}const u=[i,a];return me(e)&&r.set(e,u),u}function Ki(e){return e[0]!=="$"&&!ur(e)}const Xo=e=>e==="_"||e==="_ctx"||e==="$stable",Zo=e=>G(e)?e.map(Rt):[Rt(e)],Ed=(e,t,n)=>{if(t._n)return t;const r=Fn((...s)=>Zo(t(...s)),n);return r._c=!1,r},_c=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Xo(s))continue;const o=e[s];if(re(o))t[s]=Ed(s,o,r);else if(o!=null){const i=Zo(o);t[s]=()=>i}}},vc=(e,t)=>{const n=Zo(t);e.slots.default=()=>n},wc=(e,t,n)=>{for(const r in t)(n||!Xo(r))&&(e[r]=t[r])},Od=(e,t,n)=>{const r=e.slots=mc();if(e.vnode.shapeFlag&32){const s=t._;s?(wc(r,t,n),n&&_l(r,"_",s,!0)):_c(t,r)}else t&&vc(e,t)},Pd=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Ce;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:wc(s,t,n):(o=!t.$stable,_c(t,s)),i=t}else t&&(vc(e,t),i={default:1});if(o)for(const a in s)!Xo(a)&&i[a]==null&&delete s[a]},Xe=Fd;function Ad(e){return Rd(e)}function Rd(e,t){const n=As();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:g,setScopeId:v=dt,insertStaticContent:y}=e,d=(h,p,S,R=null,O=null,P=null,j=void 0,L=null,$=!!p.dynamicChildren)=>{if(h===p)return;h&&!un(h,p)&&(R=fe(h),ie(h,O,P,!0),h=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:A,ref:Z,shapeFlag:U}=p;switch(A){case ks:m(h,p,S,R);break;case ze:w(h,p,S,R);break;case ro:h==null&&D(p,S,R,j);break;case Be:I(h,p,S,R,O,P,j,L,$);break;default:U&1?M(h,p,S,R,O,P,j,L,$):U&6?le(h,p,S,R,O,P,j,L,$):(U&64||U&128)&&A.process(h,p,S,R,O,P,j,L,$,De)}Z!=null&&O?pr(Z,h&&h.ref,P,p||h,!p):Z==null&&h&&h.ref!=null&&pr(h.ref,null,P,h,!0)},m=(h,p,S,R)=>{if(h==null)r(p.el=a(p.children),S,R);else{const O=p.el=h.el;p.children!==h.children&&u(O,p.children)}},w=(h,p,S,R)=>{h==null?r(p.el=l(p.children||""),S,R):p.el=h.el},D=(h,p,S,R)=>{[h.el,h.anchor]=y(h.children,p,S,R,h.el,h.anchor)},E=({el:h,anchor:p},S,R)=>{let O;for(;h&&h!==p;)O=g(h),r(h,S,R),h=O;r(p,S,R)},b=({el:h,anchor:p})=>{let S;for(;h&&h!==p;)S=g(h),s(h),h=S;s(p)},M=(h,p,S,R,O,P,j,L,$)=>{if(p.type==="svg"?j="svg":p.type==="math"&&(j="mathml"),h==null)q(p,S,R,O,P,j,L,$);else{const A=h.el&&h.el._isVueCE?h.el:null;try{A&&A._beginPatch(),H(h,p,O,P,j,L,$)}finally{A&&A._endPatch()}}},q=(h,p,S,R,O,P,j,L)=>{let $,A;const{props:Z,shapeFlag:U,transition:J,dirs:ee}=h;if($=h.el=i(h.type,P,Z&&Z.is,Z),U&8?c($,h.children):U&16&&ne(h.children,$,null,R,O,no(h,P),j,L),ee&&rn(h,null,R,"created"),W($,h,h.scopeId,j,R),Z){for(const ve in Z)ve!=="value"&&!ur(ve)&&o($,ve,null,Z[ve],P,R);"value"in Z&&o($,"value",null,Z.value,P),(A=Z.onVnodeBeforeMount)&&xt(A,R,h)}ee&&rn(h,null,R,"beforeMount");const he=Md(O,J);he&&J.beforeEnter($),r($,p,S),((A=Z&&Z.onVnodeMounted)||he||ee)&&Xe(()=>{try{A&&xt(A,R,h),he&&J.enter($),ee&&rn(h,null,R,"mounted")}finally{}},O)},W=(h,p,S,R,O)=>{if(S&&v(h,S),R)for(let P=0;P<R.length;P++)v(h,R[P]);if(O){let P=O.subTree;if(p===P||Tc(P.type)&&(P.ssContent===p||P.ssFallback===p)){const j=O.vnode;W(h,j,j.scopeId,j.slotScopeIds,O.parent)}}},ne=(h,p,S,R,O,P,j,L,$=0)=>{for(let A=$;A<h.length;A++){const Z=h[A]=L?It(h[A]):Rt(h[A]);d(null,Z,p,S,R,O,P,j,L)}},H=(h,p,S,R,O,P,j)=>{const L=p.el=h.el;let{patchFlag:$,dynamicChildren:A,dirs:Z}=p;$|=h.patchFlag&16;const U=h.props||Ce,J=p.props||Ce;let ee;if(S&&sn(S,!1),(ee=J.onVnodeBeforeUpdate)&&xt(ee,S,p,h),Z&&rn(p,h,S,"beforeUpdate"),S&&sn(S,!0),(U.innerHTML&&J.innerHTML==null||U.textContent&&J.textContent==null)&&c(L,""),A?V(h.dynamicChildren,A,L,S,R,no(p,O),P):j||T(h,p,L,null,S,R,no(p,O),P,!1),$>0){if($&16)z(L,U,J,S,O);else if($&2&&U.class!==J.class&&o(L,"class",null,J.class,O),$&4&&o(L,"style",U.style,J.style,O),$&8){const he=p.dynamicProps;for(let ve=0;ve<he.length;ve++){const Se=he[ve],Fe=U[Se],Le=J[Se];(Le!==Fe||Se==="value")&&o(L,Se,Fe,Le,O,S)}}$&1&&h.children!==p.children&&c(L,p.children)}else!j&&A==null&&z(L,U,J,S,O);((ee=J.onVnodeUpdated)||Z)&&Xe(()=>{ee&&xt(ee,S,p,h),Z&&rn(p,h,S,"updated")},R)},V=(h,p,S,R,O,P,j)=>{for(let L=0;L<p.length;L++){const $=h[L],A=p[L],Z=$.el&&($.type===Be||!un($,A)||$.shapeFlag&198)?f($.el):S;d($,A,Z,null,R,O,P,j,!0)}},z=(h,p,S,R,O)=>{if(p!==S){if(p!==Ce)for(const P in p)!ur(P)&&!(P in S)&&o(h,P,p[P],null,O,R);for(const P in S){if(ur(P))continue;const j=S[P],L=p[P];j!==L&&P!=="value"&&o(h,P,L,j,O,R)}"value"in S&&o(h,"value",p.value,S.value,O)}},I=(h,p,S,R,O,P,j,L,$)=>{const A=p.el=h?h.el:a(""),Z=p.anchor=h?h.anchor:a("");let{patchFlag:U,dynamicChildren:J,slotScopeIds:ee}=p;ee&&(L=L?L.concat(ee):ee),h==null?(r(A,S,R),r(Z,S,R),ne(p.children||[],S,Z,O,P,j,L,$)):U>0&&U&64&&J&&h.dynamicChildren&&h.dynamicChildren.length===J.length?(V(h.dynamicChildren,J,S,O,P,j,L),(p.key!=null||O&&p===O.subTree)&&Sc(h,p,!0)):T(h,p,S,Z,O,P,j,L,$)},le=(h,p,S,R,O,P,j,L,$)=>{p.slotScopeIds=L,h==null?p.shapeFlag&512?O.ctx.activate(p,S,R,j,$):B(p,S,R,O,P,j,$):k(h,p,$)},B=(h,p,S,R,O,P,j)=>{const L=h.component=jd(h,R,O);if(kr(h)&&(L.ctx.renderer=De),Bd(L,!1,j),L.asyncDep){if(O&&O.registerDep(L,C,j),!h.el){const $=L.subTree=Ee(ze);w(null,$,p,S),h.placeholder=$.el}}else C(L,h,p,S,O,P,j)},k=(h,p,S)=>{const R=p.component=h.component;if(wd(h,p,S))if(R.asyncDep&&!R.asyncResolved){F(R,p,S);return}else R.next=p,R.update();else p.el=h.el,R.vnode=p},C=(h,p,S,R,O,P,j)=>{const L=()=>{if(h.isMounted){let{next:U,bu:J,u:ee,parent:he,vnode:ve}=h;{const wt=xc(h);if(wt){U&&(U.el=ve.el,F(h,U,j)),wt.asyncDep.then(()=>{Xe(()=>{h.isUnmounted||A()},O)});return}}let Se=U,Fe;sn(h,!1),U?(U.el=ve.el,F(h,U,j)):U=ve,J&&Qs(J),(Fe=U.props&&U.props.onVnodeBeforeUpdate)&&xt(Fe,he,U,ve),sn(h,!0);const Le=zi(h),vt=h.subTree;h.subTree=Le,d(vt,Le,f(vt.el),fe(vt),h,O,P),U.el=Le.el,Se===null&&Sd(h,Le.el),ee&&Xe(ee,O),(Fe=U.props&&U.props.onVnodeUpdated)&&Xe(()=>xt(Fe,he,U,ve),O)}else{let U;const{el:J,props:ee}=p,{bm:he,m:ve,parent:Se,root:Fe,type:Le}=h,vt=Nn(p);sn(h,!1),he&&Qs(he),!vt&&(U=ee&&ee.onVnodeBeforeMount)&&xt(U,Se,p),sn(h,!0);{Fe.ce&&Fe.ce._hasShadowRoot()&&Fe.ce._injectChildStyle(Le,h.parent?h.parent.type:void 0);const wt=h.subTree=zi(h);d(null,wt,S,R,h,O,P),p.el=wt.el}if(ve&&Xe(ve,O),!vt&&(U=ee&&ee.onVnodeMounted)){const wt=p;Xe(()=>xt(U,Se,wt),O)}(p.shapeFlag&256||Se&&Nn(Se.vnode)&&Se.vnode.shapeFlag&256)&&h.a&&Xe(h.a,O),h.isMounted=!0,p=S=R=null}};h.scope.on();const $=h.effect=new Cl(L);h.scope.off();const A=h.update=$.run.bind($),Z=h.job=$.runIfDirty.bind($);Z.i=h,Z.id=h.uid,$.scheduler=()=>Qo(Z),sn(h,!0),A()},F=(h,p,S)=>{p.component=h;const R=h.vnode.props;h.vnode=p,h.next=null,Cd(h,p.props,R,S),Pd(h,p.children,S),Ut(),Fi(h),Ht()},T=(h,p,S,R,O,P,j,L,$=!1)=>{const A=h&&h.children,Z=h?h.shapeFlag:0,U=p.children,{patchFlag:J,shapeFlag:ee}=p;if(J>0){if(J&128){Y(A,U,S,R,O,P,j,L,$);return}else if(J&256){K(A,U,S,R,O,P,j,L,$);return}}ee&8?(Z&16&&se(A,O,P),U!==A&&c(S,U)):Z&16?ee&16?Y(A,U,S,R,O,P,j,L,$):se(A,O,P,!0):(Z&8&&c(S,""),ee&16&&ne(U,S,R,O,P,j,L,$))},K=(h,p,S,R,O,P,j,L,$)=>{h=h||Rn,p=p||Rn;const A=h.length,Z=p.length,U=Math.min(A,Z);let J;for(J=0;J<U;J++){const ee=p[J]=$?It(p[J]):Rt(p[J]);d(h[J],ee,S,null,O,P,j,L,$)}A>Z?se(h,O,P,!0,!1,U):ne(p,S,R,O,P,j,L,$,U)},Y=(h,p,S,R,O,P,j,L,$)=>{let A=0;const Z=p.length;let U=h.length-1,J=Z-1;for(;A<=U&&A<=J;){const ee=h[A],he=p[A]=$?It(p[A]):Rt(p[A]);if(un(ee,he))d(ee,he,S,null,O,P,j,L,$);else break;A++}for(;A<=U&&A<=J;){const ee=h[U],he=p[J]=$?It(p[J]):Rt(p[J]);if(un(ee,he))d(ee,he,S,null,O,P,j,L,$);else break;U--,J--}if(A>U){if(A<=J){const ee=J+1,he=ee<Z?p[ee].el:R;for(;A<=J;)d(null,p[A]=$?It(p[A]):Rt(p[A]),S,he,O,P,j,L,$),A++}}else if(A>J)for(;A<=U;)ie(h[A],O,P,!0),A++;else{const ee=A,he=A,ve=new Map;for(A=he;A<=J;A++){const tt=p[A]=$?It(p[A]):Rt(p[A]);tt.key!=null&&ve.set(tt.key,A)}let Se,Fe=0;const Le=J-he+1;let vt=!1,wt=0;const tr=new Array(Le);for(A=0;A<Le;A++)tr[A]=0;for(A=ee;A<=U;A++){const tt=h[A];if(Fe>=Le){ie(tt,O,P,!0);continue}let St;if(tt.key!=null)St=ve.get(tt.key);else for(Se=he;Se<=J;Se++)if(tr[Se-he]===0&&un(tt,p[Se])){St=Se;break}St===void 0?ie(tt,O,P,!0):(tr[St-he]=A+1,St>=wt?wt=St:vt=!0,d(tt,p[St],S,null,O,P,j,L,$),Fe++)}const Ti=vt?Dd(tr):Rn;for(Se=Ti.length-1,A=Le-1;A>=0;A--){const tt=he+A,St=p[tt],Ei=p[tt+1],Oi=tt+1<Z?Ei.el||Cc(Ei):R;tr[A]===0?d(null,St,S,Oi,O,P,j,L,$):vt&&(Se<0||A!==Ti[Se]?X(St,S,Oi,2):Se--)}}},X=(h,p,S,R,O=null)=>{const{el:P,type:j,transition:L,children:$,shapeFlag:A}=h;if(A&6){X(h.component.subTree,p,S,R);return}if(A&128){h.suspense.move(p,S,R);return}if(A&64){j.move(h,p,S,De);return}if(j===Be){r(P,p,S);for(let U=0;U<$.length;U++)X($[U],p,S,R);r(h.anchor,p,S);return}if(j===ro){E(h,p,S);return}if(R!==2&&A&1&&L)if(R===0)L.beforeEnter(P),r(P,p,S),Xe(()=>L.enter(P),O);else{const{leave:U,delayLeave:J,afterLeave:ee}=L,he=()=>{h.ctx.isUnmounted?s(P):r(P,p,S)},ve=()=>{P._isLeaving&&P[Tt](!0),U(P,()=>{he(),ee&&ee()})};J?J(P,he,ve):ve()}else r(P,p,S)},ie=(h,p,S,R=!1,O=!1)=>{const{type:P,props:j,ref:L,children:$,dynamicChildren:A,shapeFlag:Z,patchFlag:U,dirs:J,cacheIndex:ee,memo:he}=h;if(U===-2&&(O=!1),L!=null&&(Ut(),pr(L,null,S,h,!0),Ht()),ee!=null&&(p.renderCache[ee]=void 0),Z&256){p.ctx.deactivate(h);return}const ve=Z&1&&J,Se=!Nn(h);let Fe;if(Se&&(Fe=j&&j.onVnodeBeforeUnmount)&&xt(Fe,p,h),Z&6)N(h.component,S,R);else{if(Z&128){h.suspense.unmount(S,R);return}ve&&rn(h,null,p,"beforeUnmount"),Z&64?h.type.remove(h,p,S,De,R):A&&!A.hasOnce&&(P!==Be||U>0&&U&64)?se(A,p,S,!1,!0):(P===Be&&U&384||!O&&Z&16)&&se($,p,S),R&&_e(h)}const Le=he!=null&&ee==null;(Se&&(Fe=j&&j.onVnodeUnmounted)||ve||Le)&&Xe(()=>{Fe&&xt(Fe,p,h),ve&&rn(h,null,p,"unmounted"),Le&&(h.el=null)},S)},_e=h=>{const{type:p,el:S,anchor:R,transition:O}=h;if(p===Be){Te(S,R);return}if(p===ro){b(h);return}const P=()=>{s(S),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(h.shapeFlag&1&&O&&!O.persisted){const{leave:j,delayLeave:L}=O,$=()=>j(S,P);L?L(h.el,P,$):$()}else P()},Te=(h,p)=>{let S;for(;h!==p;)S=g(h),s(h),h=S;s(p)},N=(h,p,S)=>{const{bum:R,scope:O,job:P,subTree:j,um:L,m:$,a:A}=h;Ji($),Ji(A),R&&Qs(R),O.stop(),P&&(P.flags|=8,ie(j,h,p,S)),L&&Xe(L,p),Xe(()=>{h.isUnmounted=!0},p)},se=(h,p,S,R=!1,O=!1,P=0)=>{for(let j=P;j<h.length;j++)ie(h[j],p,S,R,O)},fe=h=>{if(h.shapeFlag&6)return fe(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const p=g(h.anchor||h.el),S=p&&p[Kf];return S?g(S):p};let Ke=!1;const _t=(h,p,S)=>{let R;h==null?p._vnode&&(ie(p._vnode,null,null,!0),R=p._vnode.component):d(p._vnode||null,h,p,null,null,null,S),p._vnode=h,Ke||(Ke=!0,Fi(R),Vl(),Ke=!1)},De={p:d,um:ie,m:X,r:_e,mt:B,mc:ne,pc:T,pbc:V,n:fe,o:e};return{render:_t,hydrate:void 0,createApp:md(_t)}}function no({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 sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Md(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Sc(e,t,n=!1){const r=e.children,s=t.children;if(G(r)&&G(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=It(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Sc(i,a)),a.type===ks&&(a.patchFlag===-1&&(a=s[o]=It(a)),a.el=i.el),a.type===ze&&!a.el&&(a.el=i.el)}}function Dd(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<u?o=a+1:i=a;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function xc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xc(t)}function Ji(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Cc(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Cc(t.subTree):null}const Tc=e=>e.__isSuspense;function Fd(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):Hf(e)}const Be=Symbol.for("v-fgt"),ks=Symbol.for("v-txt"),ze=Symbol.for("v-cmt"),ro=Symbol.for("v-stc"),gr=[];let rt=null;function ge(e=!1){gr.push(rt=e?null:[])}function Nd(){gr.pop(),rt=gr[gr.length-1]||null}let xr=1;function bs(e,t=!1){xr+=e,e<0&&rt&&t&&(rt.hasOnce=!0)}function Ec(e){return e.dynamicChildren=xr>0?rt||Rn:null,Nd(),xr>0&&rt&&rt.push(e),e}function Oe(e,t,n,r,s,o){return Ec(we(e,t,n,r,s,o,!0))}function tn(e,t,n,r,s){return Ec(Ee(e,t,n,r,s,!0))}function Cr(e){return e?e.__v_isVNode===!0:!1}function un(e,t){return e.type===t.type&&e.key===t.key}const Oc=({key:e})=>e??null,os=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Re(e)||re(e)?{i:Ge,r:e,k:t,f:!!n}:e:null);function we(e,t=null,n=null,r=0,s=null,o=e===Be?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Oc(t),ref:t&&os(t),scopeId:Jl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ge};return a?(ei(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),xr>0&&!i&&rt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&rt.push(l),l}const Ee=$d;function $d(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===ic)&&(e=ze),Cr(e)){const a=nn(e,t,!0);return n&&ei(a,n),xr>0&&!o&&rt&&(a.shapeFlag&6?rt[rt.indexOf(e)]=a:rt.push(a)),a.patchFlag=-2,a}if(Vd(e)&&(e=e.__vccOpts),t){t=kd(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=ft(a)),me(l)&&(Fs(l)&&!G(l)&&(l=Ne({},l)),t.style=Vn(l))}const i=be(e)?1:Tc(e)?128:Yl(e)?64:me(e)?4:re(e)?2:0;return we(e,t,n,r,s,i,o,!0)}function kd(e){return e?Fs(e)||gc(e)?Ne({},e):e:null}function nn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?ti(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Oc(u),ref:t&&t.ref?n&&o?G(o)?o.concat(os(t)):[o,os(t)]:os(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Be?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nn(e.ssContent),ssFallback:e.ssFallback&&nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Sr(c,l.clone(c)),c}function Pc(e=" ",t=0){return Ee(ks,null,e,t)}function kn(e="",t=!1){return t?(ge(),tn(ze,null,e)):Ee(ze,null,e)}function Rt(e){return e==null||typeof e=="boolean"?Ee(ze):G(e)?Ee(Be,null,e.slice()):Cr(e)?It(e):Ee(ks,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nn(e)}function ei(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),ei(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!gc(t)?t._ctx=Ge:s===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Ge},n=32):(t=String(t),r&64?(n=16,t=[Pc(t)]):n=8);e.children=t,e.shapeFlag|=n}function ti(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=ft([t.class,r.class]));else if(s==="style")t.style=Vn([t.style,r.style]);else if(Cs(s)){const o=t[s],i=r[s];i&&o!==i&&!(G(o)&&o.includes(i))?t[s]=o?[].concat(o,i):i:i==null&&o==null&&!Ts(s)&&(t[s]=i)}else s!==""&&(t[s]=r[s])}return t}function xt(e,t,n,r=null){gt(e,t,7,[n,r])}const Ld=fc();let Id=0;function jd(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Ld,o={uid:Id++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new of(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bc(r,s),emitsOptions:dc(r,s),emit:null,emitted:null,propsDefaults:Ce,inheritAttrs:r.inheritAttrs,ctx:Ce,data:Ce,props:Ce,attrs:Ce,slots:Ce,refs:Ce,setupState:Ce,setupContext:null,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=yd.bind(null,o),e.ce&&e.ce(o),o}let Ue=null;const jr=()=>Ue||Ge;let _s,So;{const e=As(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};_s=t("__VUE_INSTANCE_SETTERS__",n=>Ue=n),So=t("__VUE_SSR_SETTERS__",n=>Wn=n)}const Br=e=>{const t=Ue;return _s(e),e.scope.on(),()=>{e.scope.off(),_s(t)}},Wi=()=>{Ue&&Ue.scope.off(),_s(null)};function Ac(e){return e.vnode.shapeFlag&4}let Wn=!1;function Bd(e,t=!1,n=!1){t&&So(t);const{props:r,children:s}=e.vnode,o=Ac(e);xd(e,r,o,t),Od(e,s,n||t);const i=o?Ud(e,t):void 0;return t&&So(!1),i}function Ud(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ld);const{setup:r}=n;if(r){Ut();const s=e.setupContext=r.length>1?qd(e):null,o=Br(e),i=Nr(r,e,0,[e.props,s]),a=gl(i);if(Ht(),o(),(a||e.sp)&&!Nn(e)&&Go(e),a){if(i.then(Wi,Wi),t)return i.then(l=>{Qi(e,l)}).catch(l=>{$r(l,e,0)});e.asyncDep=i}else Qi(e,i)}else Rc(e)}function Qi(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=Hl(t)),Rc(e)}function Rc(e,t,n){const r=e.type;e.render||(e.render=r.render||dt);{const s=Br(e);Ut();try{cd(e)}finally{Ht(),s()}}}const Hd={get(e,t){return qe(e,"get",""),e[t]}};function qd(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Hd),slots:e.slots,emit:e.emit,expose:t}}function ni(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hl(ss(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mr)return mr[n](e)},has(t,n){return n in t||n in mr}})):e.proxy}function zd(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Vd(e){return re(e)&&"__vccOpts"in e}const Pe=(e,t)=>Lf(e,t,Wn);function Kd(e,t,n){try{bs(-1);const r=arguments.length;return r===2?me(t)&&!G(t)?Cr(t)?Ee(e,null,[t]):Ee(e,t):Ee(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Cr(n)&&(n=[n]),Ee(e,t,n))}finally{bs(1)}}const Jd="3.5.33",Wd=dt;/**
|
|
15
|
+
* @vue/runtime-dom v3.5.33
|
|
16
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
+
* @license MIT
|
|
18
|
+
**/let xo;const Gi=typeof window<"u"&&window.trustedTypes;if(Gi)try{xo=Gi.createPolicy("vue",{createHTML:e=>e})}catch{}const Mc=xo?e=>xo.createHTML(e):e=>e,Qd="http://www.w3.org/2000/svg",Gd="http://www.w3.org/1998/Math/MathML",Lt=typeof document<"u"?document:null,Yi=Lt&&Lt.createElement("template"),Yd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Lt.createElementNS(Qd,e):t==="mathml"?Lt.createElementNS(Gd,e):n?Lt.createElement(e,{is:n}):Lt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Lt.createTextNode(e),createComment:e=>Lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Yi.innerHTML=Mc(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Yi.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vt="transition",sr="animation",Tr=Symbol("_vtc"),Dc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Xd=Ne({},Xl,Dc),Zd=e=>(e.displayName="Transition",e.props=Xd,e),eh=Zd((e,{slots:t})=>Kd(Qf,th(e),t)),on=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xi=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function th(e){const t={};for(const I in e)I in Dc||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,y=nh(s),d=y&&y[0],m=y&&y[1],{onBeforeEnter:w,onEnter:D,onEnterCancelled:E,onLeave:b,onLeaveCancelled:M,onBeforeAppear:q=w,onAppear:W=D,onAppearCancelled:ne=E}=t,H=(I,le,B,k)=>{I._enterCancelled=k,an(I,le?c:a),an(I,le?u:i),B&&B()},V=(I,le)=>{I._isLeaving=!1,an(I,f),an(I,v),an(I,g),le&&le()},z=I=>(le,B)=>{const k=I?W:D,C=()=>H(le,I,B);on(k,[le,C]),Zi(()=>{an(le,I?l:o),$t(le,I?c:a),Xi(k)||ea(le,r,d,C)})};return Ne(t,{onBeforeEnter(I){on(w,[I]),$t(I,o),$t(I,i)},onBeforeAppear(I){on(q,[I]),$t(I,l),$t(I,u)},onEnter:z(!1),onAppear:z(!0),onLeave(I,le){I._isLeaving=!0;const B=()=>V(I,le);$t(I,f),I._enterCancelled?($t(I,g),ra(I)):(ra(I),$t(I,g)),Zi(()=>{I._isLeaving&&(an(I,f),$t(I,v),Xi(b)||ea(I,r,m,B))}),on(b,[I,B])},onEnterCancelled(I){H(I,!1,void 0,!0),on(E,[I])},onAppearCancelled(I){H(I,!0,void 0,!0),on(ne,[I])},onLeaveCancelled(I){V(I),on(M,[I])}})}function nh(e){if(e==null)return null;if(me(e))return[so(e.enter),so(e.leave)];{const t=so(e);return[t,t]}}function so(e){return Yu(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Tr]||(e[Tr]=new Set)).add(t)}function an(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Tr];n&&(n.delete(t),n.size||(e[Tr]=void 0))}function Zi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rh=0;function ea(e,t,n,r){const s=e._endId=++rh,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=sh(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,g),o()},g=v=>{v.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),e.addEventListener(u,g)}function sh(e,t){const n=window.getComputedStyle(e),r=y=>(n[y]||"").split(", "),s=r(`${Vt}Delay`),o=r(`${Vt}Duration`),i=ta(s,o),a=r(`${sr}Delay`),l=r(`${sr}Duration`),u=ta(a,l);let c=null,f=0,g=0;t===Vt?i>0&&(c=Vt,f=i,g=o.length):t===sr?u>0&&(c=sr,f=u,g=l.length):(f=Math.max(i,u),c=f>0?i>u?Vt:sr:null,g=c?c===Vt?o.length:l.length:0);const v=c===Vt&&/\b(?:transform|all)(?:,|$)/.test(r(`${Vt}Property`).toString());return{type:c,timeout:f,propCount:g,hasTransform:v}}function ta(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>na(n)+na(e[r])))}function na(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ra(e){return(e?e.ownerDocument:document).body.offsetHeight}function oh(e,t,n){const r=e[Tr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sa=Symbol("_vod"),ih=Symbol("_vsh");const ah=Symbol(""),lh=/(?:^|;)\s*display\s*:/;function ch(e,t,n){const r=e.style,s=be(n);let o=!1;if(n&&!s){if(t)if(be(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&cr(r,a,"")}else for(const i in t)n[i]==null&&cr(r,i,"");for(const i in n){i==="display"&&(o=!0);const a=n[i];a!=null?fh(e,i,!be(t)&&t?t[i]:void 0,a)||cr(r,i,a):cr(r,i,"")}}else if(s){if(t!==n){const i=r[ah];i&&(n+=";"+i),r.cssText=n,o=lh.test(n)}}else t&&e.removeAttribute("style");sa in e&&(e[sa]=o?r.display:"",e[ih]&&(r.display="none"))}const oa=/\s*!important$/;function cr(e,t,n){if(G(n))n.forEach(r=>cr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=uh(e,t);oa.test(n)?e.setProperty(Cn(r),n.replace(oa,""),"important"):e[r]=n}}const ia=["Webkit","Moz","ms"],oo={};function uh(e,t){const n=oo[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return oo[t]=r;r=Ps(r);for(let s=0;s<ia.length;s++){const o=ia[s]+r;if(o in e)return oo[t]=o}return t}function fh(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&be(r)&&n===r}const aa="http://www.w3.org/1999/xlink";function la(e,t,n,r,s,o=rf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(aa,t.slice(6,t.length)):e.setAttributeNS(aa,t,n):n==null||o&&!vl(n)?e.removeAttribute(t):e.setAttribute(t,o?"":ot(n)?String(n):n)}function ca(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Mc(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=vl(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function dh(e,t,n,r){e.addEventListener(t,n,r)}function hh(e,t,n,r){e.removeEventListener(t,n,r)}const ua=Symbol("_vei");function ph(e,t,n,r,s=null){const o=e[ua]||(e[ua]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=mh(t);if(r){const u=o[t]=bh(r,s);dh(e,a,u,l)}else i&&(hh(e,a,i,l),o[t]=void 0)}}const fa=/(?:Once|Passive|Capture)$/;function mh(e){let t;if(fa.test(e)){t={};let r;for(;r=e.match(fa);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Cn(e.slice(2)),t]}let io=0;const gh=Promise.resolve(),yh=()=>io||(gh.then(()=>io=0),io=Date.now());function bh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;gt(_h(r,n.value),t,5,[r])};return n.value=e,n.attached=yh(),n}function _h(e,t){if(G(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const da=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,vh=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?oh(e,r,i):t==="style"?ch(e,n,r):Cs(t)?Ts(t)||ph(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wh(e,t,r,i))?(ca(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&la(e,t,r,i,o,t!=="value")):e._isVueCE&&(Sh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!be(r)))?ca(e,Ye(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),la(e,t,r,i))};function wh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&da(t)&&re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return da(t)&&be(n)?!1:t in e}function Sh(e,t){const n=e._def.props;if(!n)return!1;const r=Ye(t);return Array.isArray(n)?n.some(s=>Ye(s)===r):Object.keys(n).some(s=>Ye(s)===r)}const xh=["ctrl","shift","alt","meta"],Ch={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)=>xh.some(n=>e[`${n}Key`]&&!t.includes(n))},ha=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let i=0;i<t.length;i++){const a=Ch[t[i]];if(a&&a(s,t))return}return e(s,...o)}))};const Th=Ne({patchProp:vh},Yd);let pa;function Eh(){return pa||(pa=Ad(Th))}const Fc=((...e)=>{const t=Eh().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Ph(r);if(!s)return;const o=t._component;!re(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Oh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function Oh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ph(e){return be(e)?document.querySelector(e):e}var Ls=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hn,Qt,Ln,ol,Ah=(ol=class extends Ls{constructor(){super();ue(this,hn);ue(this,Qt);ue(this,Ln);te(this,Ln,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,Qt)||this.setEventListener(x(this,Ln))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Qt))==null||t.call(this),te(this,Qt,void 0))}setEventListener(t){var n;te(this,Ln,t),(n=x(this,Qt))==null||n.call(this),te(this,Qt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){x(this,hn)!==t&&(te(this,hn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof x(this,hn)=="boolean"?x(this,hn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},hn=new WeakMap,Qt=new WeakMap,Ln=new WeakMap,ol),Nc=new Ah,Rh={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Gt,Bo,il,Mh=(il=class{constructor(){ue(this,Gt,Rh);ue(this,Bo,!1)}setTimeoutProvider(e){te(this,Gt,e)}setTimeout(e,t){return x(this,Gt).setTimeout(e,t)}clearTimeout(e){x(this,Gt).clearTimeout(e)}setInterval(e,t){return x(this,Gt).setInterval(e,t)}clearInterval(e){x(this,Gt).clearInterval(e)}},Gt=new WeakMap,Bo=new WeakMap,il),Co=new Mh;function Dh(e){setTimeout(e,0)}var $c=typeof window>"u"||"Deno"in globalThis;function ct(){}function Fh(e,t){return typeof e=="function"?e(t):e}function Nh(e){return typeof e=="number"&&e>=0&&e!==1/0}function $h(e,t){return Math.max(e+(t||0)-Date.now(),0)}function To(e,t){return typeof e=="function"?e(t):e}function kh(e,t){return typeof e=="function"?e(t):e}function ma(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==ri(i,t.options))return!1}else if(!Or(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||o&&!o(t))}function ga(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Er(t.options.mutationKey)!==Er(o))return!1}else if(!Or(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function ri(e,t){return((t==null?void 0:t.queryKeyHashFn)||Er)(e)}function Er(e){return JSON.stringify(e,(t,n)=>Eo(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Or(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Or(e[n],t[n])):!1}var Lh=Object.prototype.hasOwnProperty;function kc(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=ya(e)&&ya(t);if(!r&&!(Eo(e)&&Eo(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),a=i.length,l=r?new Array(a):{};let u=0;for(let c=0;c<a;c++){const f=r?c:i[c],g=e[f],v=t[f];if(g===v){l[f]=g,(r?c<o:Lh.call(e,f))&&u++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){l[f]=v;continue}const y=kc(g,v,n+1);l[f]=y,y===g&&u++}return o===a&&u===o?e:l}function ya(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Eo(e){if(!ba(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ba(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ba(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ih(e){return new Promise(t=>{Co.setTimeout(t,e)})}function jh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?kc(e,t):t}function Bh(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Uh(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var si=Symbol();function Lc(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===si?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Hh(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=t()),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var Ic=(()=>{let e=()=>$c;return{isServer(){return e()},setIsServer(t){e=t}}})();function qh(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var zh=Dh;function Vh(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=zh;const o=a=>{t?e.push(a):s(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Qe=Vh(),In,Yt,jn,al,Kh=(al=class extends Ls{constructor(){super();ue(this,In,!0);ue(this,Yt);ue(this,jn);te(this,jn,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){x(this,Yt)||this.setEventListener(x(this,jn))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Yt))==null||t.call(this),te(this,Yt,void 0))}setEventListener(t){var n;te(this,jn,t),(n=x(this,Yt))==null||n.call(this),te(this,Yt,t(this.setOnline.bind(this)))}setOnline(t){x(this,In)!==t&&(te(this,In,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return x(this,In)}},In=new WeakMap,Yt=new WeakMap,jn=new WeakMap,al),vs=new Kh;function Jh(e){return Math.min(1e3*2**e,3e4)}function jc(e){return(e??"online")==="online"?vs.isOnline():!0}var Oo=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Bc(e){let t=!1,n=0,r;const s=qh(),o=()=>s.status!=="pending",i=d=>{var m;if(!o()){const w=new Oo(d);g(w),(m=e.onCancel)==null||m.call(e,w)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>Nc.isFocused()&&(e.networkMode==="always"||vs.isOnline())&&e.canRun(),c=()=>jc(e.networkMode)&&e.canRun(),f=d=>{o()||(r==null||r(),s.resolve(d))},g=d=>{o()||(r==null||r(),s.reject(d))},v=()=>new Promise(d=>{var m;r=w=>{(o()||u())&&d(w)},(m=e.onPause)==null||m.call(e)}).then(()=>{var d;r=void 0,o()||(d=e.onContinue)==null||d.call(e)}),y=()=>{if(o())return;let d;const m=n===0?e.initialPromise:void 0;try{d=m??e.fn()}catch(w){d=Promise.reject(w)}Promise.resolve(d).then(f).catch(w=>{var q;if(o())return;const D=e.retry??(Ic.isServer()?0:3),E=e.retryDelay??Jh,b=typeof E=="function"?E(n,w):E,M=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,w);if(t||!M){g(w);return}n++,(q=e.onFail)==null||q.call(e,n,w),Ih(b).then(()=>u()?void 0:v()).then(()=>{t?g(w):y()})})};return{promise:s,status:()=>s.status,cancel:i,continue:()=>(r==null||r(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?y():v().then(y),s)}}var pn,ll,Uc=(ll=class{constructor(){ue(this,pn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nh(this.gcTime)&&te(this,pn,Co.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ic.isServer()?1/0:300*1e3))}clearGcTimeout(){x(this,pn)!==void 0&&(Co.clearTimeout(x(this,pn)),te(this,pn,void 0))}},pn=new WeakMap,ll),mn,Bn,lt,gn,$e,Rr,yn,nt,Hc,kt,cl,Wh=(cl=class extends Uc{constructor(t){super();ue(this,nt);ue(this,mn);ue(this,Bn);ue(this,lt);ue(this,gn);ue(this,$e);ue(this,Rr);ue(this,yn);te(this,yn,!1),te(this,Rr,t.defaultOptions),this.setOptions(t.options),this.observers=[],te(this,gn,t.client),te(this,lt,x(this,gn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,te(this,mn,va(this.options)),this.state=t.state??x(this,mn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=x(this,$e))==null?void 0:t.promise}setOptions(t){if(this.options={...x(this,Rr),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=va(this.options);n.data!==void 0&&(this.setState(_a(n.data,n.dataUpdatedAt)),te(this,mn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,lt).remove(this)}setData(t,n){const r=jh(this.state.data,t,this.options);return Ie(this,nt,kt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ie(this,nt,kt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=x(this,$e))==null?void 0:r.promise;return(s=x(this,$e))==null||s.cancel(t),n?n.then(ct).catch(ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return x(this,mn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>kh(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===si||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>To(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!$h(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,$e))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,$e))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),x(this,lt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(x(this,$e)&&(x(this,yn)||Ie(this,nt,Hc).call(this)?x(this,$e).cancel({revert:!0}):x(this,$e).cancelRetry()),this.scheduleGc()),x(this,lt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ie(this,nt,kt).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,c,f,g,v,y,d,m,w,D,E;if(this.state.fetchStatus!=="idle"&&((l=x(this,$e))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,$e))return x(this,$e).continueRetry(),x(this,$e).promise}if(t&&this.setOptions(t),!this.options.queryFn){const b=this.observers.find(M=>M.options.queryFn);b&&this.setOptions(b.options)}const r=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(te(this,yn,!0),r.signal)})},o=()=>{const b=Lc(this.options,n),q=(()=>{const W={client:x(this,gn),queryKey:this.queryKey,meta:this.meta};return s(W),W})();return te(this,yn,!1),this.options.persister?this.options.persister(b,q,this):b(q)},a=(()=>{const b={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:x(this,gn),state:this.state,fetchFn:o};return s(b),b})();(u=this.options.behavior)==null||u.onFetch(a,this),te(this,Bn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Ie(this,nt,kt).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta}),te(this,$e,Bc({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:b=>{b instanceof Oo&&b.revert&&this.setState({...x(this,Bn),fetchStatus:"idle"}),r.abort()},onFail:(b,M)=>{Ie(this,nt,kt).call(this,{type:"failed",failureCount:b,error:M})},onPause:()=>{Ie(this,nt,kt).call(this,{type:"pause"})},onContinue:()=>{Ie(this,nt,kt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const b=await x(this,$e).start();if(b===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(b),(v=(g=x(this,lt).config).onSuccess)==null||v.call(g,b,this),(d=(y=x(this,lt).config).onSettled)==null||d.call(y,b,this.state.error,this),b}catch(b){if(b instanceof Oo){if(b.silent)return x(this,$e).promise;if(b.revert){if(this.state.data===void 0)throw b;return this.state.data}}throw Ie(this,nt,kt).call(this,{type:"error",error:b}),(w=(m=x(this,lt).config).onError)==null||w.call(m,b,this),(E=(D=x(this,lt).config).onSettled)==null||E.call(D,this.state.data,b,this),b}finally{this.scheduleGc()}}},mn=new WeakMap,Bn=new WeakMap,lt=new WeakMap,gn=new WeakMap,$e=new WeakMap,Rr=new WeakMap,yn=new WeakMap,nt=new WeakSet,Hc=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},kt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Qh(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,..._a(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return te(this,Bn,t.manual?s:void 0),s;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),x(this,lt).notify({query:this,type:"updated",action:t})})},cl);function Qh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jc(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _a(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function va(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function wa(e){return{onFetch:(t,n)=>{var c,f,g,v,y;const r=t.options,s=(g=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:g.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],i=((y=t.state.data)==null?void 0:y.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let d=!1;const m=E=>{Hh(E,()=>t.signal,()=>d=!0)},w=Lc(t.options,t.fetchOptions),D=async(E,b,M)=>{if(d)return Promise.reject();if(b==null&&E.pages.length)return Promise.resolve(E);const W=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:b,direction:M?"backward":"forward",meta:t.options.meta};return m(z),z})(),ne=await w(W),{maxPages:H}=t.options,V=M?Uh:Bh;return{pages:V(E.pages,ne,H),pageParams:V(E.pageParams,b,H)}};if(s&&o.length){const E=s==="backward",b=E?Gh:Sa,M={pages:o,pageParams:i},q=b(r,M);a=await D(M,q,E)}else{const E=e??o.length;do{const b=l===0?i[0]??r.initialPageParam:Sa(r,a);if(l>0&&b==null)break;a=await D(a,b),l++}while(l<E)}return a};t.options.persister?t.fetchFn=()=>{var d,m;return(m=(d=t.options).persister)==null?void 0:m.call(d,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Sa(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gh(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Mr,Et,He,bn,Ot,Kt,ul,Yh=(ul=class extends Uc{constructor(t){super();ue(this,Ot);ue(this,Mr);ue(this,Et);ue(this,He);ue(this,bn);te(this,Mr,t.client),this.mutationId=t.mutationId,te(this,He,t.mutationCache),te(this,Et,[]),this.state=t.state||Xh(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){x(this,Et).includes(t)||(x(this,Et).push(t),this.clearGcTimeout(),x(this,He).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){te(this,Et,x(this,Et).filter(n=>n!==t)),this.scheduleGc(),x(this,He).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){x(this,Et).length||(this.state.status==="pending"?this.scheduleGc():x(this,He).remove(this))}continue(){var t;return((t=x(this,bn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,l,u,c,f,g,v,y,d,m,w,D,E,b,M,q,W;const n=()=>{Ie(this,Ot,Kt).call(this,{type:"continue"})},r={client:x(this,Mr),meta:this.options.meta,mutationKey:this.options.mutationKey};te(this,bn,Bc({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(ne,H)=>{Ie(this,Ot,Kt).call(this,{type:"failed",failureCount:ne,error:H})},onPause:()=>{Ie(this,Ot,Kt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,He).canRun(this)}));const s=this.state.status==="pending",o=!x(this,bn).canStart();try{if(s)n();else{Ie(this,Ot,Kt).call(this,{type:"pending",variables:t,isPaused:o}),x(this,He).config.onMutate&&await x(this,He).config.onMutate(t,this,r);const H=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t,r));H!==this.state.context&&Ie(this,Ot,Kt).call(this,{type:"pending",context:H,variables:t,isPaused:o})}const ne=await x(this,bn).start();return await((u=(l=x(this,He).config).onSuccess)==null?void 0:u.call(l,ne,t,this.state.context,this,r)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,ne,t,this.state.context,r)),await((v=(g=x(this,He).config).onSettled)==null?void 0:v.call(g,ne,null,this.state.variables,this.state.context,this,r)),await((d=(y=this.options).onSettled)==null?void 0:d.call(y,ne,null,t,this.state.context,r)),Ie(this,Ot,Kt).call(this,{type:"success",data:ne}),ne}catch(ne){try{await((w=(m=x(this,He).config).onError)==null?void 0:w.call(m,ne,t,this.state.context,this,r))}catch(H){Promise.reject(H)}try{await((E=(D=this.options).onError)==null?void 0:E.call(D,ne,t,this.state.context,r))}catch(H){Promise.reject(H)}try{await((M=(b=x(this,He).config).onSettled)==null?void 0:M.call(b,void 0,ne,this.state.variables,this.state.context,this,r))}catch(H){Promise.reject(H)}try{await((W=(q=this.options).onSettled)==null?void 0:W.call(q,void 0,ne,t,this.state.context,r))}catch(H){Promise.reject(H)}throw Ie(this,Ot,Kt).call(this,{type:"error",error:ne}),ne}finally{x(this,He).runNext(this)}}},Mr=new WeakMap,Et=new WeakMap,He=new WeakMap,bn=new WeakMap,Ot=new WeakSet,Kt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qe.batch(()=>{x(this,Et).forEach(r=>{r.onMutationUpdate(t)}),x(this,He).notify({mutation:this,type:"updated",action:t})})},ul);function Xh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jt,ut,Dr,fl,qc=(fl=class extends Ls{constructor(n={}){super();ue(this,jt);ue(this,ut);ue(this,Dr);this.config=n,te(this,jt,new Set),te(this,ut,new Map),te(this,Dr,0)}build(n,r,s){const o=new Yh({client:n,mutationCache:this,mutationId:++Wr(this,Dr)._,options:n.defaultMutationOptions(r),state:s});return this.add(o),o}add(n){x(this,jt).add(n);const r=Zr(n);if(typeof r=="string"){const s=x(this,ut).get(r);s?s.push(n):x(this,ut).set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(x(this,jt).delete(n)){const r=Zr(n);if(typeof r=="string"){const s=x(this,ut).get(r);if(s)if(s.length>1){const o=s.indexOf(n);o!==-1&&s.splice(o,1)}else s[0]===n&&x(this,ut).delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=Zr(n);if(typeof r=="string"){const s=x(this,ut).get(r),o=s==null?void 0:s.find(i=>i.state.status==="pending");return!o||o===n}else return!0}runNext(n){var s;const r=Zr(n);if(typeof r=="string"){const o=(s=x(this,ut).get(r))==null?void 0:s.find(i=>i!==n&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qe.batch(()=>{x(this,jt).forEach(n=>{this.notify({type:"removed",mutation:n})}),x(this,jt).clear(),x(this,ut).clear()})}getAll(){return Array.from(x(this,jt))}find(n){const r={exact:!0,...n};return this.getAll().find(s=>ga(r,s))}findAll(n={}){return this.getAll().filter(r=>ga(n,r))}notify(n){Qe.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return Qe.batch(()=>Promise.all(n.map(r=>r.continue().catch(ct))))}},jt=new WeakMap,ut=new WeakMap,Dr=new WeakMap,fl);function Zr(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Pt,dl,zc=(dl=class extends Ls{constructor(n={}){super();ue(this,Pt);this.config=n,te(this,Pt,new Map)}build(n,r,s){const o=r.queryKey,i=r.queryHash??ri(o,r);let a=this.get(i);return a||(a=new Wh({client:n,queryKey:o,queryHash:i,options:n.defaultQueryOptions(r),state:s,defaultOptions:n.getQueryDefaults(o)}),this.add(a)),a}add(n){x(this,Pt).has(n.queryHash)||(x(this,Pt).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=x(this,Pt).get(n.queryHash);r&&(n.destroy(),r===n&&x(this,Pt).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Qe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return x(this,Pt).get(n)}getAll(){return[...x(this,Pt).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(s=>ma(r,s))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(s=>ma(n,s)):r}notify(n){Qe.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){Qe.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Qe.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Pt=new WeakMap,dl),Ae,Xt,Zt,Un,Hn,en,qn,zn,hl,Zh=(hl=class{constructor(t={}){ue(this,Ae);ue(this,Xt);ue(this,Zt);ue(this,Un);ue(this,Hn);ue(this,en);ue(this,qn);ue(this,zn);te(this,Ae,t.queryCache||new zc),te(this,Xt,t.mutationCache||new qc),te(this,Zt,t.defaultOptions||{}),te(this,Un,new Map),te(this,Hn,new Map),te(this,en,0)}mount(){Wr(this,en)._++,x(this,en)===1&&(te(this,qn,Nc.subscribe(async t=>{t&&(await this.resumePausedMutations(),x(this,Ae).onFocus())})),te(this,zn,vs.subscribe(async t=>{t&&(await this.resumePausedMutations(),x(this,Ae).onOnline())})))}unmount(){var t,n;Wr(this,en)._--,x(this,en)===0&&((t=x(this,qn))==null||t.call(this),te(this,qn,void 0),(n=x(this,zn))==null||n.call(this),te(this,zn,void 0))}isFetching(t){return x(this,Ae).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return x(this,Xt).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const n=this.defaultQueryOptions({queryKey:t});return(r=x(this,Ae).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=x(this,Ae).build(this,n),s=r.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(To(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(t){return x(this,Ae).findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.defaultQueryOptions({queryKey:t}),o=x(this,Ae).get(s.queryHash),i=o==null?void 0:o.state.data,a=Fh(n,i);if(a!==void 0)return x(this,Ae).build(this,s).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Qe.batch(()=>x(this,Ae).findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t){var r;const n=this.defaultQueryOptions({queryKey:t});return(r=x(this,Ae).get(n.queryHash))==null?void 0:r.state}removeQueries(t){const n=x(this,Ae);Qe.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=x(this,Ae);return Qe.batch(()=>(r.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},s=Qe.batch(()=>x(this,Ae).findAll(t).map(o=>o.cancel(r)));return Promise.all(s).then(ct).catch(ct)}invalidateQueries(t,n={}){return Qe.batch(()=>(x(this,Ae).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},s=Qe.batch(()=>x(this,Ae).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(ct)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(ct)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=x(this,Ae).build(this,n);return r.isStaleByTime(To(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(ct).catch(ct)}fetchInfiniteQuery(t){return t.behavior=wa(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(ct).catch(ct)}ensureInfiniteQueryData(t){return t.behavior=wa(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return vs.isOnline()?x(this,Xt).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,Ae)}getMutationCache(){return x(this,Xt)}getDefaultOptions(){return x(this,Zt)}setDefaultOptions(t){te(this,Zt,t)}setQueryDefaults(t,n){x(this,Un).set(Er(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...x(this,Un).values()],r={};return n.forEach(s=>{Or(t,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(t,n){x(this,Hn).set(Er(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...x(this,Hn).values()],r={};return n.forEach(s=>{Or(t,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...x(this,Zt).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=ri(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===si&&(n.enabled=!1),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...x(this,Zt).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){x(this,Ae).clear(),x(this,Xt).clear()}},Ae=new WeakMap,Xt=new WeakMap,Zt=new WeakMap,Un=new WeakMap,Hn=new WeakMap,en=new WeakMap,qn=new WeakMap,zn=new WeakMap,hl),ep="VUE_QUERY_CLIENT";function tp(e){const t=e?`:${e}`:"";return`${ep}${t}`}function Po(e,t,n="",r=0){if(t){const s=t(e,n,r);if(s===void 0&&Re(e)||s!==void 0)return s}if(Array.isArray(e))return e.map((s,o)=>Po(s,t,String(o),r+1));if(typeof e=="object"&&rp(e)){const s=Object.entries(e).map(([o,i])=>[o,Po(i,t,o,r+1)]);return Object.fromEntries(s)}return e}function np(e,t){return Po(e,t)}function ce(e,t=!1){return np(e,(n,r,s)=>{if(s===1&&r==="queryKey")return ce(n,!0);if(t&&sp(n))return ce(n(),t);if(Re(n))return ce(ae(n),t)})}function rp(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function sp(e){return typeof e=="function"}var op=class extends zc{find(e){return super.find(ce(e))}findAll(e={}){return super.findAll(ce(e))}},ip=class extends qc{find(e){return super.find(ce(e))}findAll(e={}){return super.findAll(ce(e))}},Vc=class extends Zh{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new op,mutationCache:e.mutationCache||new ip};super(t),this.isRestoring=ye(!1)}isFetching(e={}){return super.isFetching(ce(e))}isMutating(e={}){return super.isMutating(ce(e))}getQueryData(e){return super.getQueryData(ce(e))}ensureQueryData(e){return super.ensureQueryData(ce(e))}getQueriesData(e){return super.getQueriesData(ce(e))}setQueryData(e,t,n={}){return super.setQueryData(ce(e),t,ce(n))}setQueriesData(e,t,n={}){return super.setQueriesData(ce(e),t,ce(n))}getQueryState(e){return super.getQueryState(ce(e))}removeQueries(e={}){return super.removeQueries(ce(e))}resetQueries(e={},t={}){return super.resetQueries(ce(e),ce(t))}cancelQueries(e={},t={}){return super.cancelQueries(ce(e),ce(t))}invalidateQueries(e={},t={}){const n=ce(e),r=ce(t);if(super.invalidateQueries({...n,refetchType:"none"},r),n.refetchType==="none")return Promise.resolve();const s={...n,type:n.refetchType??n.type??"active"};return Jn().then(()=>super.refetchQueries(s,r))}refetchQueries(e={},t={}){return super.refetchQueries(ce(e),ce(t))}fetchQuery(e){return super.fetchQuery(ce(e))}prefetchQuery(e){return super.prefetchQuery(ce(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(ce(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(ce(e))}setDefaultOptions(e){super.setDefaultOptions(ce(e))}setQueryDefaults(e,t){super.setQueryDefaults(ce(e),ce(t))}getQueryDefaults(e){return super.getQueryDefaults(ce(e))}setMutationDefaults(e,t){super.setMutationDefaults(ce(e),ce(t))}getMutationDefaults(e){return super.getMutationDefaults(ce(e))}},ap={install:(e,t={})=>{const n=tp(t.queryClientKey);let r;if("queryClient"in t&&t.queryClient)r=t.queryClient;else{const i="queryClientConfig"in t?t.queryClientConfig:void 0;r=new Vc(i)}$c||r.mount();let s=()=>{};if(t.clientPersister){r.isRestoring&&(r.isRestoring.value=!0);const[i,a]=t.clientPersister(r);s=i,a.then(()=>{var l;r.isRestoring&&(r.isRestoring.value=!1),(l=t.clientPersisterOnSuccess)==null||l.call(t,r)})}const o=()=>{r.unmount(),s()};if(e.onUnmount)e.onUnmount(o);else{const i=e.unmount;e.unmount=function(){o(),i()}}e.provide(n,r)}};const lp="modulepreload",cp=function(e){return"/"+e},xa={},Ca=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=i(n.map(u=>{if(u=cp(u),u in xa)return;xa[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const g=document.createElement("link");if(g.rel=c?"stylesheet":lp,c||(g.as="script"),g.crossOrigin="",g.href=u,l&&g.setAttribute("nonce",l),document.head.appendChild(g),c)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};function up(e,t){const n=`${e}Context`,r=Symbol(n);return[i=>{const a=Dt(r,i);if(a||a===null)return a;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(Wl(r,i),i)]}function fp(e,t){return xl()?(af(e,t),!0):!1}const dp=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function hp(e,t,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n,o=Af(!1);let i;function a(){i&&(clearTimeout(i),i=void 0)}function l(){o.value=!1,a()}function u(...c){s&&e(),a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=void 0,e(...c)},Ul(t))}return r&&(o.value=!0,dp&&u()),fp(l),{isPending:Pf(o),start:u,stop:l}}function pp(e){var t;const n=Ul(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function mp(){const e=jr(),t=ye(),n=Pe(()=>r());sc(()=>{n.value!==r()&&Mf(t)});function r(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:pp(t)}const s=Object.assign({},e.exposed),o={};for(const a in e.props)Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(s).length>0)for(const a in s)Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>s[a]});Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function i(a){if(t.value=a,!!a&&(Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.hasOwn(a,"$el"))){const l=a.$.exposed,u=Object.assign({},o);for(const c in l)Object.defineProperty(u,c,{enumerable:!0,configurable:!0,get:()=>l[c]});e.exposed=u}}return{forwardRef:i,currentRef:t,currentElement:n}}const[n1,gp]=up("TooltipProvider");var yp=yt({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:s,disableClosingTrigger:o,ignoreNonKeyboardFocus:i,disabled:a,content:l}=Ff(t);mp();const u=ye(!0),c=ye(!1),{start:f,stop:g}=hp(()=>{u.value=!0},r,{immediate:!1});return gp({isOpenDelayed:u,delayDuration:n,onOpen(){g(),u.value=!1},onClose(){f()},isPointerInTransitRef:c,disableHoverableContent:s,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:i,content:l}),(v,y)=>gs(v.$slots,"default")}}),bp=yp;const _p={app:{title:"Mokelay Editor",subtitle:"Mokelay page configurator",darkMode:"Dark mode",dark:"Dark",light:"Light",language:"Language",chinese:"中文",english:"English"},editor:{placeholder:"Start typing your content...",defaultParagraph:"Welcome to the Mokelay editor starter template.",fullscreenEdit:"Fullscreen",saveContent:"Save",saving:"Saving...",saveSuccess:"Saved",saveFailed:"Save failed. Please try again.",previewPage:"Preview",properties:"Properties",propertyDialogTitle:"Property Settings",configJson:"Config JSON",close:"Close"},preview:{title:"Config Preview",backToEditor:"Back",emptyState:"No page content yet."},globalCalls:{ok:"OK",cancel:"Cancel",alertRoleLabel:"Alert",confirmRoleLabel:"Confirm",messageRoleLabel:"Message"},input:{toolboxTitle:"Input",defaultPlaceholder:"Please enter...",propertyPanelTitle:"Input Properties",properties:{placeholder:"Placeholder",value:"Default value",valuePlaceholder:"Please enter a default value"}},link:{toolboxTitle:"Link",defaultText:"Link",defaultUrl:"https://mokelay.com",propertyPanelTitle:"Link Properties",properties:{text:"Link text",url:"Link URL",open:"Open in new page"}},advanceInput:{toolboxTitle:"Advanced Input"},editorSelector:{toolboxTitle:"Component Selector",placeholder:"Select a component"},form:{toolboxTitle:"Form",placeholder:"Add a form item"},advanceTable:{toolboxTitle:"Advanced Table",propertyPanelTitle:"Advanced Table Properties",defaultColumnName:"Column",empty:"No data",selectAll:"Select all",selectRow:"Select row",properties:{index:"Show index column",selection:"Show selection column"},defaultColumns:{name:"Name",status:"Status",tag:"Tag",owner:"Owner",link:"Link"},defaultRows:{first:{name:"Mokelay Page",status:"Designing",tag:"Design",owner:"Product Team",linkText:"Website",linkUrl:"https://mokelay.com"},second:{name:"Advanced Table",status:"Previewable",tag:"Preview",owner:"Editor Team",linkText:"Docs",linkUrl:"https://editor.mokelay.com"}}},datasource:{toolboxTitle:"Datasource Editor",title:"Datasource",empty:"No items",emptySchema:'No field config yet. Click "Generate field config" first.',noListRecord:"This schema does not contain an array field for list data.",noFormFields:"This schema does not contain simple fields for a form.",fields:{type:"Datasource type",rawData:"JSON data",domain:"API domain",path:"API path",method:"Method",key:"Key",mock:"Mock data",jsonSchema:"JSON Schema",generatedFields:"Fields",searchFields:"Search fields or paths",recordPath:"List data path",rootRecordPath:"Root data",selectedFields:"Selected fields",required:"Required"},sections:{headers:"Header",queries:"Query",body:"Body",generateFields:"Generate field config",fieldSelection:"Field selection"},actions:{add:"Add",remove:"Remove",parseJsonSchema:"Parse JSON Schema",parsingJsonSchema:"Parsing...",generateFields:"Generate field config",generatingFields:"Generating..."},tabs:{list:"List fields",form:"Form fields",advanced:"Advanced Schema"},help:{generateFields:"Detect fields from JSON data or an API response, then prepare them for list and form components.",fieldSelection:"Choose the fields components should use, and rename them with business-friendly labels."},schemaTypes:{object:"Object",array:"List",string:"Text",number:"Number",boolean:"Switch",null:"Empty"},componentHints:{text:"Text",number:"Number",switch:"Switch",object:"Object",array:"List"},validation:{invalidJson:"Enter valid JSON.",invalidJsonSchema:"Enter a JSON Schema that matches the supported format.",invalidNumber:"Enter a valid number.",invalidObject:"Enter a valid JSON object.",invalidArray:"Enter a valid JSON array.",fixJsonBeforeSchema:"Fix JSON data before parsing JSON Schema.",fixBodyBeforeSchema:"Fix Body mock data before parsing JSON Schema.",nonJsonResponse:"The API response is not JSON.",invalidJsonResponse:"The API response is not valid JSON.",apiRequestFailed:"API request failed:",emptyArraySchema:"Cannot infer JSON Schema from an empty array.",mixedArraySchema:"The array contains incompatible types, so JSON Schema cannot be inferred."}},formItem:{toolboxTitle:"Form Item",defaultLabelName:"Field",propertyPanelTitle:"Form Item Properties",emptyEditor:"No editor selected",properties:{labelName:"Field label",variableName:"Variable name",editor:"Editor",layout:"Layout"},placeholders:{labelName:"Enter field label",variableName:"Enter variable name"},layouts:{vertical:"Vertical",horizontal:"Horizontal"}},tag:{toolboxTitle:"Tag",defaultTagName:"Tag",propertyPanelTitle:"Tag Properties",properties:{tagName:"Tag name",type:"Type",size:"Size",color:"Custom color",colorPlaceholder:"e.g. #409EFF",closable:"Closable"},types:{default:"Default",primary:"Primary",success:"Success",info:"Info",warning:"Warning",danger:"Danger"},sizes:{default:"Default",large:"Large",medium:"Medium",small:"Small"}},page:{toolboxTitle:"Page",loading:"Loading page...",loadFailed:"Failed to load page. Please try again."}},vp={},wp={app:{title:"Mokelay Editor",subtitle:"Mokelay页面配置器",darkMode:"深色模式",dark:"深色",light:"浅色",language:"语言",chinese:"中文",english:"English"},editor:{placeholder:"开始输入你的内容...",defaultParagraph:"欢迎使用 Mokelay 编辑器初始化模板。",fullscreenEdit:"全屏编辑",saveContent:"保存",saving:"保存中...",saveSuccess:"保存成功",saveFailed:"保存失败,请稍后重试",previewPage:"预览",properties:"属性",propertyDialogTitle:"属性设置",configJson:"配置 JSON",close:"关闭"},preview:{title:"配置预览",backToEditor:"返回",emptyState:"暂无页面内容。"},globalCalls:{ok:"确定",cancel:"取消",alertRoleLabel:"提示",confirmRoleLabel:"确认",messageRoleLabel:"消息"},input:{toolboxTitle:"输入框",defaultPlaceholder:"请输入.....",propertyPanelTitle:"输入框属性",properties:{placeholder:"占位提示",value:"默认值",valuePlaceholder:"请输入默认值"}},link:{toolboxTitle:"链接",defaultText:"链接",defaultUrl:"https://mokelay.com",propertyPanelTitle:"链接属性",properties:{text:"链接文本",url:"链接地址",open:"新页面打开"}},advanceInput:{toolboxTitle:"高级输入框"},editorSelector:{toolboxTitle:"组件选择器",placeholder:"选择组件"},form:{toolboxTitle:"表单",placeholder:"添加表单项"},advanceTable:{toolboxTitle:"高级表格",propertyPanelTitle:"高级表格属性",defaultColumnName:"列",empty:"暂无数据",selectAll:"全选",selectRow:"选择行",properties:{index:"显示序号列",selection:"显示多选列"},defaultColumns:{name:"名称",status:"状态",tag:"标签",owner:"负责人",link:"链接"},defaultRows:{first:{name:"Mokelay 页面",status:"设计中",tag:"设计",owner:"产品团队",linkText:"官网",linkUrl:"https://mokelay.com"},second:{name:"高级表格",status:"可预览",tag:"预览",owner:"编辑器团队",linkText:"文档",linkUrl:"https://editor.mokelay.com"}}},datasource:{toolboxTitle:"数据源编辑器",title:"数据源",empty:"暂无配置项",emptySchema:"还没有字段配置,请先点击“生成字段配置”。",noListRecord:"当前 Schema 中没有可作为列表数据的数组字段。",noFormFields:"当前 Schema 中没有可用于表单的普通字段。",fields:{type:"数据源类型",rawData:"JSON 数据",domain:"API 域名",path:"API Path",method:"调用方法",key:"Key",mock:"Mock 数据",jsonSchema:"JSON Schema",generatedFields:"字段数",searchFields:"搜索字段名称或路径",recordPath:"列表数据位置",rootRecordPath:"根数据",selectedFields:"已选择字段",required:"必填"},sections:{headers:"Header",queries:"Query",body:"Body",generateFields:"生成字段配置",fieldSelection:"字段选择"},actions:{add:"添加",remove:"删除",parseJsonSchema:"解析JSON Schema",parsingJsonSchema:"解析中...",generateFields:"生成字段配置",generatingFields:"生成中..."},tabs:{list:"列表字段",form:"表单字段",advanced:"高级 Schema"},help:{generateFields:"从 JSON 数据或 API 响应中识别字段,生成给列表和表单使用的配置。",fieldSelection:"勾选需要给组件使用的字段,可以直接改成业务同学看得懂的名称。"},schemaTypes:{object:"对象",array:"列表",string:"文本",number:"数字",boolean:"开关",null:"空值"},componentHints:{text:"文本",number:"数字",switch:"开关",object:"对象",array:"列表"},validation:{invalidJson:"请输入标准 JSON 结构。",invalidJsonSchema:"请输入符合数据格式的 JSON Schema。",invalidNumber:"请输入有效数字。",invalidObject:"请输入标准 JSON 对象。",invalidArray:"请输入标准 JSON 数组。",fixJsonBeforeSchema:"请先修正 JSON 数据。",fixBodyBeforeSchema:"请先修正 Body 中的 Mock 数据。",nonJsonResponse:"API 响应不是 JSON 数据。",invalidJsonResponse:"API 响应不是有效 JSON 数据。",apiRequestFailed:"API 请求失败:",emptyArraySchema:"空数组无法推断 JSON Schema。",mixedArraySchema:"数组中包含无法合并的类型,无法推断 JSON Schema。"}},formItem:{toolboxTitle:"表单项",defaultLabelName:"字段",propertyPanelTitle:"表单项属性",emptyEditor:"未选择编辑器",properties:{labelName:"字段文本",variableName:"变量名",editor:"编辑器",layout:"布局方式"},placeholders:{labelName:"请输入字段文本",variableName:"请输入变量名"},layouts:{vertical:"垂直",horizontal:"水平"}},tag:{toolboxTitle:"标签",defaultTagName:"标签",propertyPanelTitle:"标签属性",properties:{tagName:"标签内容",type:"标签类型",size:"标签尺寸",color:"自定义颜色",colorPlaceholder:"例如:#409EFF",closable:"可关闭"},types:{default:"默认",primary:"主要",success:"成功",info:"信息",warning:"警告",danger:"危险"},sizes:{default:"默认",large:"大",medium:"中",small:"小"}},page:{toolboxTitle:"页面",loading:"正在读取页面...",loadFailed:"页面读取失败,请稍后重试。"}},Sp={ui:{blockTunes:{toggler:{"Click to tune":"点击设置","or drag to move":"或拖拽移动"}},inlineToolbar:{converter:{"Convert to":"转换为"}},toolbar:{toolbox:{Add:"添加"}},popover:{Filter:"筛选","Nothing found":"未找到结果"}},blockTunes:{delete:{Delete:"删除"},moveUp:{"Move up":"上移"},moveDown:{"Move down":"下移"}},toolNames:{Text:"文本",Heading:"标题",List:"列表",Warning:"提示",Checklist:"清单",Quote:"引用",Delimiter:"分割线",Table:"表格",Link:"链接",Columns:"分栏"}},xp={zh:wp,en:_p},Cp={zh:Sp,en:vp},Kc="mokelay-editor-locale";function Tp(e){const n=(document.cookie?document.cookie.split("; "):[]).find(r=>r.startsWith(`${e}=`));return n?decodeURIComponent(n.slice(e.length+1)):null}function Ep(e,t){document.cookie=`${e}=${encodeURIComponent(t)}; path=/; max-age=31536000; samesite=lax`}function Op(){return navigator.language.toLowerCase().startsWith("zh")?"zh":"en"}function Pp(){const e=Tp(Kc);return e==="zh"||e==="en"?e:Op()}const Pr=ye(Pp());function Jc(e){const t=e.split(".");let n=xp[Pr.value];for(const r of t){if(typeof n=="object"&&n!==null&&r in n){n=n[r];continue}n=void 0;break}return typeof n=="string"?n:e}function Wc(e){Pr.value=e,Ep(Kc,e)}function oi(){return{locale:fs(Pr),t:Jc,setLocale:Wc,localeValue:Pe(()=>Pr.value)}}function r1(e){return Cp[e]}const oe={t:Jc,get locale(){return Pr.value},setLocale:Wc},Qc="mokelay-editor-config";function s1(e){return e}const Ap={class:"ce-input-tool","data-testid":"editor-input-tool"},Rp=["placeholder","value"],Mp={toolbox:{get title(){return oe.t("input.toolboxTitle")},icon:'<svg width="18" height="18" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="6" width="18" height="12" rx="2" ry="2" fill="none" stroke="currentColor" stroke-width="2"/><path d="M8 12h8" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>'},propertyPanel:{get title(){return oe.t("input.propertyPanelTitle")},get fields(){return[{key:"placeholder",label:oe.t("input.properties.placeholder"),placeholder:oe.t("input.defaultPlaceholder")},{key:"value",label:oe.t("input.properties.value"),placeholder:oe.t("input.properties.valuePlaceholder")}]}},createInitialProps:()=>({placeholder:oe.t("input.defaultPlaceholder"),value:""}),normalizeProps:e=>({edit:e.edit??!1,placeholder:e.placeholder??"",value:e.value??""}),serialize:e=>({placeholder:e.placeholder??"",value:e.value??""})},Dp=yt({__name:"MInput",props:{edit:{type:Boolean},placeholder:{},value:{},onChange:{type:Function},onToolChange:{type:Function}},setup(e){const t=e;function n(r){var o,i;const s={edit:t.edit,placeholder:t.placeholder??"",value:t.value??"",...r};(o=t.onToolChange)==null||o.call(t,s),(i=t.onChange)==null||i.call(t,s)}return(r,s)=>(ge(),Oe("div",Ap,[we("input",{"data-testid":"editor-input-control",class:"ce-input-tool__control",type:"text",placeholder:e.placeholder,value:e.value,onInput:s[0]||(s[0]=o=>n({value:o.target.value}))},null,40,Rp)]))}}),Ur=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Fp=Ur(Dp,[["__scopeId","data-v-38751236"]]),Np=["href","target","rel"],$p={toolbox:{get title(){return oe.t("link.toolboxTitle")},icon:'<svg width="18" height="18" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10.6 13.4a4 4 0 0 0 5.7 0l2.1-2.1a4 4 0 0 0-5.7-5.7l-1.2 1.2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/><path d="M13.4 10.6a4 4 0 0 0-5.7 0l-2.1 2.1a4 4 0 0 0 5.7 5.7l1.2-1.2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>'},propertyPanel:{get title(){return oe.t("link.propertyPanelTitle")},get fields(){return[{key:"text",label:oe.t("link.properties.text"),placeholder:oe.t("link.defaultText")},{key:"url",label:oe.t("link.properties.url"),placeholder:oe.t("link.defaultUrl")},{key:"open",label:oe.t("link.properties.open"),type:"checkbox"}]}},createInitialProps:()=>({text:oe.t("link.defaultText"),url:oe.t("link.defaultUrl"),open:!1}),normalizeProps:e=>{var t,n;return{edit:e.edit??!1,text:((t=e.text)==null?void 0:t.trim())||oe.t("link.defaultText"),url:((n=e.url)==null?void 0:n.trim())||oe.t("link.defaultUrl"),open:e.open===!0}},serialize:e=>{var t,n;return{text:((t=e.text)==null?void 0:t.trim())||oe.t("link.defaultText"),url:((n=e.url)==null?void 0:n.trim())||oe.t("link.defaultUrl"),open:e.open===!0}}},kp=yt({__name:"MLink",props:{edit:{type:Boolean},text:{},url:{},open:{type:Boolean},onChange:{type:Function},onToolChange:{type:Function}},setup(e){const t=e,{t:n}=oi(),r=ye(null),s=Pe(()=>{var d;return((d=t.text)==null?void 0:d.trim())||n("link.defaultText")}),o=Pe(()=>g(t.url??"")),i=Pe(()=>t.open?"_blank":void 0),a=Pe(()=>t.open?"noopener noreferrer":void 0);let l=null;function u(){l!==null&&(window.clearTimeout(l),l=null)}function c(){var W;const d=r.value;if(!d)return;const m=d.closest(".ce-block"),w=(W=d.closest(".codex-editor"))==null?void 0:W.querySelector(".ce-toolbar"),D=w==null?void 0:w.querySelector(".ce-toolbar__plus");if(!m||!w||!D)return;const E=m.getBoundingClientRect(),b=d.getBoundingClientRect(),M=D.getBoundingClientRect().height||26,q=m.offsetTop+(b.top-E.top)+(b.height-M)/2;w.style.top=`${Math.round(q)}px`}function f(){u(),l=window.setTimeout(()=>{c()},0)}function g(d){const m=d.trim();if(!m)return"#";if(m.startsWith("//"))return`https:${m}`;const w=m.match(/^([a-z][a-z\d+.-]*):/i);if(!w)return m;const D=w[1].toLowerCase();return["http","https","mailto","tel"].includes(D)?m:"#"}function v(d){var w,D;const m={edit:t.edit,text:t.text??"",url:t.url??"",open:t.open??!1,...d};(w=t.onToolChange)==null||w.call(t,m),(D=t.onChange)==null||D.call(t,m)}function y(d){(t.edit||o.value==="#")&&d.preventDefault(),v({text:s.value,url:t.url??"",open:t.open??!1})}return Lr(()=>{Jn(()=>{var d,m;(d=r.value)==null||d.addEventListener("mouseenter",f),(m=r.value)==null||m.addEventListener("mousemove",f)})}),Ir(()=>{var d,m;u(),(d=r.value)==null||d.removeEventListener("mouseenter",f),(m=r.value)==null||m.removeEventListener("mousemove",f)}),(d,m)=>(ge(),Oe("span",{ref_key:"rootRef",ref:r,class:"ce-link-tool","data-testid":"editor-link-tool"},[we("a",{class:"ce-link-tool__anchor","data-testid":"editor-link-value",href:o.value,target:i.value,rel:a.value,onClick:y},je(s.value),9,Np)],512))}}),Lp=Ur(kp,[["__scopeId","data-v-e56db1bc"]]),Gc=["","default","small","large"];typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;var Ip=typeof global=="object"&&global&&global.Object===Object&&global,jp=typeof self=="object"&&self&&self.Object===Object&&self,ii=Ip||jp||Function("return this")(),Qn=ii.Symbol,Yc=Object.prototype,Bp=Yc.hasOwnProperty,Up=Yc.toString,or=Qn?Qn.toStringTag:void 0;function Hp(e){var t=Bp.call(e,or),n=e[or];try{e[or]=void 0;var r=!0}catch{}var s=Up.call(e);return r&&(t?e[or]=n:delete e[or]),s}var qp=Object.prototype,zp=qp.toString;function Vp(e){return zp.call(e)}var Kp="[object Null]",Jp="[object Undefined]",Ta=Qn?Qn.toStringTag:void 0;function ai(e){return e==null?e===void 0?Jp:Kp:Ta&&Ta in Object(e)?Hp(e):Vp(e)}function Xc(e){return e!=null&&typeof e=="object"}var Wp="[object Symbol]";function li(e){return typeof e=="symbol"||Xc(e)&&ai(e)==Wp}function Qp(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}var ci=Array.isArray,Ea=Qn?Qn.prototype:void 0,Oa=Ea?Ea.toString:void 0;function Zc(e){if(typeof e=="string")return e;if(ci(e))return Qp(e,Zc)+"";if(li(e))return Oa?Oa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function eu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gp="[object AsyncFunction]",Yp="[object Function]",Xp="[object GeneratorFunction]",Zp="[object Proxy]";function e0(e){if(!eu(e))return!1;var t=ai(e);return t==Yp||t==Xp||t==Gp||t==Zp}var ao=ii["__core-js_shared__"],Pa=(function(){var e=/[^.]+$/.exec(ao&&ao.keys&&ao.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function t0(e){return!!Pa&&Pa in e}var n0=Function.prototype,r0=n0.toString;function s0(e){if(e!=null){try{return r0.call(e)}catch{}try{return e+""}catch{}}return""}var o0=/[\\^$.*+?()[\]{}|]/g,i0=/^\[object .+?Constructor\]$/,a0=Function.prototype,l0=Object.prototype,c0=a0.toString,u0=l0.hasOwnProperty,f0=RegExp("^"+c0.call(u0).replace(o0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d0(e){if(!eu(e)||t0(e))return!1;var t=e0(e)?f0:i0;return t.test(s0(e))}function h0(e,t){return e==null?void 0:e[t]}function ui(e,t){var n=h0(e,t);return d0(n)?n:void 0}var Aa=(function(){try{var e=ui(Object,"defineProperty");return e({},"",{}),e}catch{}})();function p0(e,t,n){t=="__proto__"&&Aa?Aa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function m0(e,t){return e===t||e!==e&&t!==t}var g0=Object.prototype,o1=g0.hasOwnProperty;function y0(e,t){return function(n){return e(t(n))}}var b0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_0=/^\w*$/;function v0(e,t){if(ci(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||li(e)?!0:_0.test(e)||!b0.test(e)||t!=null&&e in Object(t)}var Ar=ui(Object,"create");function w0(){this.__data__=Ar?Ar(null):{},this.size=0}function S0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var x0="__lodash_hash_undefined__",C0=Object.prototype,T0=C0.hasOwnProperty;function E0(e){var t=this.__data__;if(Ar){var n=t[e];return n===x0?void 0:n}return T0.call(t,e)?t[e]:void 0}var O0=Object.prototype,P0=O0.hasOwnProperty;function A0(e){var t=this.__data__;return Ar?t[e]!==void 0:P0.call(t,e)}var R0="__lodash_hash_undefined__";function M0(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ar&&t===void 0?R0:t,this}function Sn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sn.prototype.clear=w0;Sn.prototype.delete=S0;Sn.prototype.get=E0;Sn.prototype.has=A0;Sn.prototype.set=M0;function D0(){this.__data__=[],this.size=0}function Is(e,t){for(var n=e.length;n--;)if(m0(e[n][0],t))return n;return-1}var F0=Array.prototype,N0=F0.splice;function $0(e){var t=this.__data__,n=Is(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():N0.call(t,n,1),--this.size,!0}function k0(e){var t=this.__data__,n=Is(t,e);return n<0?void 0:t[n][1]}function L0(e){return Is(this.__data__,e)>-1}function I0(e,t){var n=this.__data__,r=Is(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Zn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zn.prototype.clear=D0;Zn.prototype.delete=$0;Zn.prototype.get=k0;Zn.prototype.has=L0;Zn.prototype.set=I0;var j0=ui(ii,"Map");function B0(){this.size=0,this.__data__={hash:new Sn,map:new(j0||Zn),string:new Sn}}function U0(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function js(e,t){var n=e.__data__;return U0(t)?n[typeof t=="string"?"string":"hash"]:n.map}function H0(e){var t=js(this,e).delete(e);return this.size-=t?1:0,t}function q0(e){return js(this,e).get(e)}function z0(e){return js(this,e).has(e)}function V0(e,t){var n=js(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Tn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tn.prototype.clear=B0;Tn.prototype.delete=H0;Tn.prototype.get=q0;Tn.prototype.has=z0;Tn.prototype.set=V0;var K0="Expected a function";function fi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(K0);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],o=n.cache;if(o.has(s))return o.get(s);var i=e.apply(this,r);return n.cache=o.set(s,i)||o,i};return n.cache=new(fi.Cache||Tn),n}fi.Cache=Tn;var J0=500;function W0(e){var t=fi(e,function(r){return n.size===J0&&n.clear(),r}),n=t.cache;return t}var Q0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G0=/\\(\\)?/g,Y0=W0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Q0,function(n,r,s,o){t.push(s?o.replace(G0,"$1"):r||n)}),t});function X0(e){return e==null?"":Zc(e)}function Z0(e,t){return ci(e)?e:v0(e,t)?[e]:Y0(X0(e))}function em(e){if(typeof e=="string"||li(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tm(e,t){t=Z0(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[em(t[n++])];return n&&n==r?e:void 0}function nm(e,t,n){var r=e==null?void 0:tm(e,t);return r===void 0?n:r}var rm=y0(Object.getPrototypeOf,Object),sm="[object Object]",om=Function.prototype,im=Object.prototype,tu=om.toString,am=im.hasOwnProperty,lm=tu.call(Object);function cm(e){if(!Xc(e)||ai(e)!=sm)return!1;var t=rm(e);if(t===null)return!0;var n=am.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&tu.call(n)==lm}function nu(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var s=e[t];p0(r,s[0],s[1])}return r}const um=e=>typeof e=="number";const fm=e=>be(e)?!Number.isNaN(Number(e)):!1;const ru="__epPropKey",dm=e=>e,hm=e=>me(e)&&!!e[ru],su=(e,t)=>{if(!me(e)||hm(e))return e;const{values:n,required:r,default:s,type:o,validator:i}=e,a={type:o,required:!!r,validator:n||i?l=>{let u=!1,c=[];if(n&&(c=Array.from(n),de(e,"default")&&c.push(s),u||(u=c.includes(l))),i&&(u||(u=i(l))),!u&&c.length>0){const f=[...new Set(c)].map(g=>JSON.stringify(g)).join(", ");Wd(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[ru]:!0};return de(e,"default")&&(a.default=s),a},ou=e=>nu(Object.entries(e).map(([t,n])=>[t,su(n,t)]));var pm=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function mm(e,t){{const n=be(e)?new pm(`[${e}] ${t}`):e;console.warn(n)}}const gm="utils/dom/style";function ym(e,t="px"){if(!e&&e!==0)return"";if(um(e)||fm(e))return`${e}${t}`;if(be(e))return e;mm(gm,"binding value must be a string or number")}var bm={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const _m=e=>(t,n)=>vm(t,n,ae(e)),vm=(e,t,n)=>nm(n,e,e).replace(/\{(\w+)\}/g,(r,s)=>`${(t==null?void 0:t[s])??`{${s}}`}`),wm=e=>({lang:Pe(()=>ae(e).name),locale:Re(e)?e:ye(e),t:_m(e)}),Sm=Symbol("localeContextKey"),xm=e=>{const t=e||Dt(Sm,ye());return wm(Pe(()=>t.value||bm))},lo="el",Cm="is-",ln=(e,t,n,r,s)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),s&&(o+=`--${s}`),o},Tm=Symbol("namespaceContextKey"),Em=e=>{const t=e||(jr()?Dt(Tm,ye(lo)):ye(lo));return Pe(()=>ae(t)||lo)},iu=(e,t)=>{const n=Em(t);return{namespace:n,b:(d="")=>ln(n.value,e,d,"",""),e:d=>d?ln(n.value,e,"",d,""):"",m:d=>d?ln(n.value,e,"","",d):"",be:(d,m)=>d&&m?ln(n.value,e,d,m,""):"",em:(d,m)=>d&&m?ln(n.value,e,"",d,m):"",bm:(d,m)=>d&&m?ln(n.value,e,d,"",m):"",bem:(d,m,w)=>d&&m&&w?ln(n.value,e,d,m,w):"",is:(d,...m)=>{const w=m.length>=1?m[0]:!0;return d&&w?`${Cm}${d}`:""},cssVar:d=>{const m={};for(const w in d)d[w]&&(m[`--${n.value}-${w}`]=d[w]);return m},cssVarName:d=>`--${n.value}-${d}`,cssVarBlock:d=>{const m={};for(const w in d)d[w]&&(m[`--${n.value}-${e}-${w}`]=d[w]);return m},cssVarBlockName:d=>`--${n.value}-${e}-${d}`}},Om=e=>{const t=jr();return Pe(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},i1=su({type:String,values:Gc,required:!1}),Pm=Symbol("size"),Am=()=>{const e=Dt(Pm,{});return Pe(()=>ae(e.size)||"")},Rm=e=>{const t=e.props,n=G(t)?nu(t.map(r=>[r,{}])):t;e.setPropsDefaults=r=>{if(n){for(const[s,o]of Object.entries(r)){const i=n[s];if(de(n,s)){if(cm(i)){n[s]={...i,default:o};continue}n[s]={type:i,default:o}}}e.props=n}}},au=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return Rm(e),e};/*! Element Plus Icons Vue v2.3.2 */var Mm=yt({name:"Close",__name:"close",setup(e){return(t,n)=>(ge(),Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[we("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ra=Mm;const Dm=ou({size:{type:dm([Number,String])},color:{type:String}});var Fm=yt({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:Dm,setup(e){const t=e,n=iu("icon"),r=Pe(()=>{const{size:s,color:o}=t,i=ym(s);return!i&&!o?{}:{fontSize:i,"--color":o}});return(s,o)=>(ge(),Oe("i",ti({class:ae(n).b(),style:r.value},s.$attrs),[gs(s.$slots,"default")],16))}}),Nm=Fm;const Ma=au(Nm),$m=Symbol("formContextKey"),km=Symbol("formItemContextKey"),Lm=(e,t={})=>{const n=ye(void 0),r=t.prop?n:Om("size"),s=t.global?n:Am(),o=t.form?{size:void 0}:Dt($m,void 0),i=t.formItem?{size:void 0}:Dt(km,void 0);return Pe(()=>r.value||ae(e)||(i==null?void 0:i.size)||(o==null?void 0:o.size)||s.value||"")};var is={exports:{}},Im=is.exports,Da;function jm(){return Da||(Da=1,(function(e,t){(function(n,r){e.exports=r()})(Im,(function(){var n=1e3,r=6e4,s=36e5,o="millisecond",i="second",a="minute",l="hour",u="day",c="week",f="month",g="quarter",v="year",y="date",d="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var k=["th","st","nd","rd"],C=B%100;return"["+B+(k[(C-20)%10]||k[C]||k[0])+"]"}},E=function(B,k,C){var F=String(B);return!F||F.length>=k?B:""+Array(k+1-F.length).join(C)+B},b={s:E,z:function(B){var k=-B.utcOffset(),C=Math.abs(k),F=Math.floor(C/60),T=C%60;return(k<=0?"+":"-")+E(F,2,"0")+":"+E(T,2,"0")},m:function B(k,C){if(k.date()<C.date())return-B(C,k);var F=12*(C.year()-k.year())+(C.month()-k.month()),T=k.clone().add(F,f),K=C-T<0,Y=k.clone().add(F+(K?-1:1),f);return+(-(F+(C-T)/(K?T-Y:Y-T))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:f,y:v,w:c,d:u,D:y,h:l,m:a,s:i,ms:o,Q:g}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},M="en",q={};q[M]=D;var W="$isDayjsObject",ne=function(B){return B instanceof I||!(!B||!B[W])},H=function B(k,C,F){var T;if(!k)return M;if(typeof k=="string"){var K=k.toLowerCase();q[K]&&(T=K),C&&(q[K]=C,T=K);var Y=k.split("-");if(!T&&Y.length>1)return B(Y[0])}else{var X=k.name;q[X]=k,T=X}return!F&&T&&(M=T),T||!F&&M},V=function(B,k){if(ne(B))return B.clone();var C=typeof k=="object"?k:{};return C.date=B,C.args=arguments,new I(C)},z=b;z.l=H,z.i=ne,z.w=function(B,k){return V(B,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var I=(function(){function B(C){this.$L=H(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[W]=!0}var k=B.prototype;return k.parse=function(C){this.$d=(function(F){var T=F.date,K=F.utc;if(T===null)return new Date(NaN);if(z.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var Y=T.match(m);if(Y){var X=Y[2]-1||0,ie=(Y[7]||"0").substring(0,3);return K?new Date(Date.UTC(Y[1],X,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ie)):new Date(Y[1],X,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ie)}}return new Date(T)})(C),this.init()},k.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},k.$utils=function(){return z},k.isValid=function(){return this.$d.toString()!==d},k.isSame=function(C,F){var T=V(C);return this.startOf(F)<=T&&T<=this.endOf(F)},k.isAfter=function(C,F){return V(C)<this.startOf(F)},k.isBefore=function(C,F){return this.endOf(F)<V(C)},k.$g=function(C,F,T){return z.u(C)?this[F]:this.set(T,C)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(C,F){var T=this,K=!!z.u(F)||F,Y=z.p(C),X=function(_t,De){var Ft=z.w(T.$u?Date.UTC(T.$y,De,_t):new Date(T.$y,De,_t),T);return K?Ft:Ft.endOf(u)},ie=function(_t,De){return z.w(T.toDate()[_t].apply(T.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(De)),T)},_e=this.$W,Te=this.$M,N=this.$D,se="set"+(this.$u?"UTC":"");switch(Y){case v:return K?X(1,0):X(31,11);case f:return K?X(1,Te):X(0,Te+1);case c:var fe=this.$locale().weekStart||0,Ke=(_e<fe?_e+7:_e)-fe;return X(K?N-Ke:N+(6-Ke),Te);case u:case y:return ie(se+"Hours",0);case l:return ie(se+"Minutes",1);case a:return ie(se+"Seconds",2);case i:return ie(se+"Milliseconds",3);default:return this.clone()}},k.endOf=function(C){return this.startOf(C,!1)},k.$set=function(C,F){var T,K=z.p(C),Y="set"+(this.$u?"UTC":""),X=(T={},T[u]=Y+"Date",T[y]=Y+"Date",T[f]=Y+"Month",T[v]=Y+"FullYear",T[l]=Y+"Hours",T[a]=Y+"Minutes",T[i]=Y+"Seconds",T[o]=Y+"Milliseconds",T)[K],ie=K===u?this.$D+(F-this.$W):F;if(K===f||K===v){var _e=this.clone().set(y,1);_e.$d[X](ie),_e.init(),this.$d=_e.set(y,Math.min(this.$D,_e.daysInMonth())).$d}else X&&this.$d[X](ie);return this.init(),this},k.set=function(C,F){return this.clone().$set(C,F)},k.get=function(C){return this[z.p(C)]()},k.add=function(C,F){var T,K=this;C=Number(C);var Y=z.p(F),X=function(Te){var N=V(K);return z.w(N.date(N.date()+Math.round(Te*C)),K)};if(Y===f)return this.set(f,this.$M+C);if(Y===v)return this.set(v,this.$y+C);if(Y===u)return X(1);if(Y===c)return X(7);var ie=(T={},T[a]=r,T[l]=s,T[i]=n,T)[Y]||1,_e=this.$d.getTime()+C*ie;return z.w(_e,this)},k.subtract=function(C,F){return this.add(-1*C,F)},k.format=function(C){var F=this,T=this.$locale();if(!this.isValid())return T.invalidDate||d;var K=C||"YYYY-MM-DDTHH:mm:ssZ",Y=z.z(this),X=this.$H,ie=this.$m,_e=this.$M,Te=T.weekdays,N=T.months,se=T.meridiem,fe=function(De,Ft,h,p){return De&&(De[Ft]||De(F,K))||h[Ft].slice(0,p)},Ke=function(De){return z.s(X%12||12,De,"0")},_t=se||function(De,Ft,h){var p=De<12?"AM":"PM";return h?p.toLowerCase():p};return K.replace(w,(function(De,Ft){return Ft||(function(h){switch(h){case"YY":return String(F.$y).slice(-2);case"YYYY":return z.s(F.$y,4,"0");case"M":return _e+1;case"MM":return z.s(_e+1,2,"0");case"MMM":return fe(T.monthsShort,_e,N,3);case"MMMM":return fe(N,_e);case"D":return F.$D;case"DD":return z.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return fe(T.weekdaysMin,F.$W,Te,2);case"ddd":return fe(T.weekdaysShort,F.$W,Te,3);case"dddd":return Te[F.$W];case"H":return String(X);case"HH":return z.s(X,2,"0");case"h":return Ke(1);case"hh":return Ke(2);case"a":return _t(X,ie,!0);case"A":return _t(X,ie,!1);case"m":return String(ie);case"mm":return z.s(ie,2,"0");case"s":return String(F.$s);case"ss":return z.s(F.$s,2,"0");case"SSS":return z.s(F.$ms,3,"0");case"Z":return Y}return null})(De)||Y.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(C,F,T){var K,Y=this,X=z.p(F),ie=V(C),_e=(ie.utcOffset()-this.utcOffset())*r,Te=this-ie,N=function(){return z.m(Y,ie)};switch(X){case v:K=N()/12;break;case f:K=N();break;case g:K=N()/3;break;case c:K=(Te-_e)/6048e5;break;case u:K=(Te-_e)/864e5;break;case l:K=Te/s;break;case a:K=Te/r;break;case i:K=Te/n;break;default:K=Te}return T?K:z.a(K)},k.daysInMonth=function(){return this.endOf(f).$D},k.$locale=function(){return q[this.$L]},k.locale=function(C,F){if(!C)return this.$L;var T=this.clone(),K=H(C,F,!0);return K&&(T.$L=K),T},k.clone=function(){return z.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},B})(),le=I.prototype;return V.prototype=le,[["$ms",o],["$s",i],["$m",a],["$H",l],["$W",u],["$M",f],["$y",v],["$D",y]].forEach((function(B){le[B[1]]=function(k){return this.$g(k,B[0],B[1])}})),V.extend=function(B,k){return B.$i||(B(k,I,V),B.$i=!0),V},V.locale=H,V.isDayjs=ne,V.unix=function(B){return V(1e3*B)},V.en=q[M],V.Ls=q,V.p={},V}))})(is)),is.exports}var a1=jm();const Bm=ou({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Gc},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Um={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Hm=["aria-label"],qm=["aria-label"];var zm=yt({name:"ElTag",__name:"tag",props:Bm,emits:Um,setup(e,{emit:t}){const n=e,r=t,s=Lm(),{t:o}=xm(),i=iu("tag"),a=Pe(()=>{const{type:f,hit:g,effect:v,closable:y,round:d}=n;return[i.b(),i.is("closable",y),i.m(f||"primary"),i.m(s.value),i.m(v),i.is("hit",g),i.is("round",d)]}),l=f=>{r("close",f)},u=f=>{r("click",f)},c=f=>{var g,v,y;(y=(v=(g=f==null?void 0:f.component)==null?void 0:g.subTree)==null?void 0:v.component)!=null&&y.bum&&(f.component.subTree.component.bum=null)};return(f,g)=>e.disableTransitions?(ge(),Oe("span",{key:0,class:ft(a.value),style:Vn({backgroundColor:e.color}),onClick:u},[we("span",{class:ft(ae(i).e("content"))},[gs(f.$slots,"default")],2),e.closable?(ge(),Oe("button",{key:0,"aria-label":ae(o)("el.tag.close"),class:ft(ae(i).e("close")),type:"button",onClick:ha(l,["stop"])},[Ee(ae(Ma),null,{default:Fn(()=>[Ee(ae(Ra))]),_:1})],10,Hm)):kn("v-if",!0)],6)):(ge(),tn(eh,{key:1,name:`${ae(i).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:Fn(()=>[we("span",{class:ft(a.value),style:Vn({backgroundColor:e.color}),onClick:u},[we("span",{class:ft(ae(i).e("content"))},[gs(f.$slots,"default")],2),e.closable?(ge(),Oe("button",{key:0,"aria-label":ae(o)("el.tag.close"),class:ft(ae(i).e("close")),type:"button",onClick:ha(l,["stop"])},[Ee(ae(Ma),null,{default:Fn(()=>[Ee(ae(Ra))]),_:1})],10,qm)):kn("v-if",!0)],6)]),_:3},8,["name"]))}}),Vm=zm;const Km=au(Vm),Jm={toolbox:{get title(){return oe.t("tag.toolboxTitle")},icon:'<svg width="18" height="18" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="7" width="16" height="10" rx="5" ry="5" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="8" cy="12" r="1.4" fill="currentColor"/></svg>'},propertyPanel:{get title(){return oe.t("tag.propertyPanelTitle")},get fields(){return[{key:"tagName",label:oe.t("tag.properties.tagName"),placeholder:oe.t("tag.defaultTagName")},{key:"type",label:oe.t("tag.properties.type"),type:"select",options:[{label:oe.t("tag.types.default"),value:""},{label:oe.t("tag.types.primary"),value:"primary"},{label:oe.t("tag.types.success"),value:"success"},{label:oe.t("tag.types.info"),value:"info"},{label:oe.t("tag.types.warning"),value:"warning"},{label:oe.t("tag.types.danger"),value:"danger"}]},{key:"size",label:oe.t("tag.properties.size"),type:"select",options:[{label:oe.t("tag.sizes.default"),value:""},{label:oe.t("tag.sizes.large"),value:"large"},{label:oe.t("tag.sizes.medium"),value:"default"},{label:oe.t("tag.sizes.small"),value:"small"}]},{key:"color",label:oe.t("tag.properties.color"),placeholder:oe.t("tag.properties.colorPlaceholder")},{key:"closable",label:oe.t("tag.properties.closable"),type:"checkbox"}]}},createInitialProps:()=>({tagName:oe.t("tag.defaultTagName"),closable:!1,size:"",color:"",type:"success"}),normalizeProps:e=>{var t;return{edit:e.edit??!1,tagName:((t=e.tagName)==null?void 0:t.trim())||oe.t("tag.defaultTagName"),closable:e.closable===!0,size:e.size??"",color:e.color??"",type:e.type??"success"}},serialize:e=>{var t;return{tagName:((t=e.tagName)==null?void 0:t.trim())||oe.t("tag.defaultTagName"),closable:e.closable??!1,size:e.size??"",color:e.color??"",type:e.type??""}}},Wm=yt({__name:"MTag",props:{edit:{type:Boolean},tagName:{},closable:{type:Boolean},size:{},color:{},type:{},onChange:{type:Function},onToolChange:{type:Function}},setup(e){const t=e,n=ye(null);let r=null;function s(u){var f,g;const c={edit:t.edit,tagName:t.tagName??"",closable:t.closable??!1,size:t.size??"",color:t.color??"",type:t.type??"",...u};(f=t.onToolChange)==null||f.call(t,c),(g=t.onChange)==null||g.call(t,c)}function o(){s({closable:t.closable??!1})}function i(){r!==null&&(window.clearTimeout(r),r=null)}function a(){var w;const u=n.value;if(!u)return;const c=u.closest(".ce-block"),f=(w=u.closest(".codex-editor"))==null?void 0:w.querySelector(".ce-toolbar"),g=f==null?void 0:f.querySelector(".ce-toolbar__plus");if(!c||!f||!g)return;const v=c.getBoundingClientRect(),y=u.getBoundingClientRect(),d=g.getBoundingClientRect().height||26,m=c.offsetTop+(y.top-v.top)+(y.height-d)/2;f.style.top=`${Math.round(m)}px`}function l(){i(),r=window.setTimeout(()=>{a()},0)}return Lr(()=>{Jn(()=>{var u,c;(u=n.value)==null||u.addEventListener("mouseenter",l),(c=n.value)==null||c.addEventListener("mousemove",l)})}),Ir(()=>{var u,c;i(),(u=n.value)==null||u.removeEventListener("mouseenter",l),(c=n.value)==null||c.removeEventListener("mousemove",l)}),(u,c)=>(ge(),Oe("div",{ref_key:"rootRef",ref:n,class:"ce-tag-tool","data-testid":"editor-tag-tool"},[Ee(ae(Km),{"data-testid":"editor-tag-value",closable:e.closable,size:e.size||void 0,color:e.color||void 0,type:e.type||void 0,onClose:o},{default:Fn(()=>[Pc(je(e.tagName),1)]),_:1},8,["closable","size","color","type"])],512))}}),Qm=Ur(Wm,[["__scopeId","data-v-f62600c2"]]),lu={MInput:{component:ss(Fp),...Mp},MLink:{component:ss(Lp),...$p},MTag:{component:ss(Qm),...Jm}};function l1(){return Object.entries(lu)}function Fa(e){return lu[e]}function Gm(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID().slice(0,10):Math.random().toString(36).slice(2,12)}function di(e,t=Gm()){return{id:t,type:"paragraph",data:{text:e}}}function yr(e){return typeof e.data.text=="string"?e.data.text:""}function cu(){return[di("")]}function Ym(e){return JSON.parse(JSON.stringify(e))}function uu(e){return typeof e!="object"||e===null||Array.isArray(e)?{}:Ym(e)}function Xm(e){return{id:e.id,type:e.type,data:uu(e.data)}}function Zm(e){const t=[];for(const n of e){if(n.type==="paragraph"){const r=t[t.length-1];(r==null?void 0:r.type)==="paragraph"?r.data.text=yr(r)+yr(n):t.push(di(yr(n),n.id));continue}t.push(Xm(n))}return t.length?t:cu()}function eg(e){if(!Array.isArray(e))return cu();const t=[];return e.forEach(n=>{if(typeof n!="object"||n===null)return;const r=n;if(typeof r.id!="string"||typeof r.type!="string"||typeof r.data!="object"||r.data===null||Array.isArray(r.data))return;const s={id:r.id,type:r.type,data:uu(r.data)};t.push(s.type==="paragraph"?di(yr(s),s.id):s)}),Zm(t)}const tg={class:"global-call-content","data-testid":"global-call-content"},ng={key:0,class:"global-call-content__text"},rg={key:0,class:"global-call-content__text"},sg={key:1,class:"global-call-content__token"},og={key:2,class:"global-call-content__unknown"},ig=yt({__name:"GlobalCallContentRenderer",props:{content:{}},setup(e){const t=e,n=Pe(()=>typeof t.content=="string"),r=Pe(()=>typeof t.content=="string"?t.content:""),s=Pe(()=>Array.isArray(t.content)?eg(t.content):[]);function o(l){var u;return((u=Fa(l))==null?void 0:u.component)??null}function i(l){return yr(l)}function a(l){var c;const u=Fa(l.type);return u?u.normalizeProps({...((c=u.createInitialProps)==null?void 0:c.call(u))??{},...l.data,edit:!1}):{edit:!1}}return(l,u)=>(ge(),Oe("div",tg,[n.value?(ge(),Oe("span",ng,je(r.value),1)):(ge(!0),Oe(Be,{key:1},ac(s.value,(c,f)=>(ge(),Oe(Be,{key:`${c.id}-${c.type}-${f}`},[c.type==="paragraph"?(ge(),Oe("span",rg,je(i(c)),1)):o(c.type)?(ge(),Oe("span",sg,[(ge(),tn(id(o(c.type)),ti({ref_for:!0},a(c)),null,16))])):(ge(),Oe("span",og,je(c.type),1))],64))),128))]))}}),Na=Ur(ig,[["__scopeId","data-v-66a3e1c9"]]),ag={class:"global-call-host","data-testid":"global-call-host"},lg={key:0,class:"global-call-dialog-overlay","data-testid":"global-call-dialog-overlay"},cg=["aria-label","aria-labelledby","data-testid"],ug=["id"],fg={class:"global-call-dialog__body","data-testid":"global-call-dialog-content"},dg={class:"global-call-dialog__actions"},hg=["aria-label"],pg=["data-type"],mg=3e3,gg=yt({__name:"GlobalCallHost",setup(e,{expose:t}){const{t:n}=oi(),r=ye(null),s=ye([]),o=ye(null),i=ye([]),a=new Map;let l=0;const u=Pe(()=>o.value?`global-call-dialog-title-${o.value.id}`:void 0);function c(b){return new Promise(M=>{s.value.push({id:v(),kind:"alert",title:b.title,content:b.content,resolve:M}),y()})}function f(b){return new Promise(M=>{s.value.push({id:v(),kind:"confirm",title:b.title,content:b.content,resolve:M}),y()})}function g(b){return new Promise(M=>{const q=v(),W={id:q,type:b.type,content:b.content,resolve:M};i.value=[...i.value,W],a.set(q,window.setTimeout(()=>{m(q)},mg))})}function v(){return l+=1,l}function y(){o.value||!s.value.length||(o.value=s.value.shift()??null,Jn(()=>{var b;(b=r.value)==null||b.focus()}))}function d(b){const M=o.value;M&&(o.value=null,M.kind==="confirm"?M.resolve(b):M.resolve(),Jn(()=>{y()}))}function m(b){const M=i.value.find(W=>W.id===b);if(!M)return;const q=a.get(b);q!==void 0&&(window.clearTimeout(q),a.delete(b)),i.value=i.value.filter(W=>W.id!==b),M.resolve()}function w(b){b.key==="Escape"&&(b.preventDefault(),d(!1))}function D(){var b;return((b=o.value)==null?void 0:b.kind)==="confirm"?n("globalCalls.confirmRoleLabel"):n("globalCalls.alertRoleLabel")}function E(b){return`global-call-message--${b}`}return Ir(()=>{a.forEach(b=>{window.clearTimeout(b)}),a.clear()}),t({showAlert:c,showConfirm:f,showMessage:g}),(b,M)=>(ge(),Oe("div",ag,[o.value?(ge(),Oe("div",lg,[we("section",{ref_key:"dialogPanelRef",ref:r,class:"global-call-dialog",role:"dialog","aria-modal":"true","aria-label":D(),"aria-labelledby":u.value,tabindex:"-1","data-testid":`global-call-${o.value.kind}`,onKeydown:w},[we("h2",{id:u.value,class:"global-call-dialog__title","data-testid":"global-call-dialog-title"},je(o.value.title),9,ug),we("div",fg,[Ee(Na,{content:o.value.content},null,8,["content"])]),we("div",dg,[o.value.kind==="confirm"?(ge(),Oe("button",{key:0,type:"button",class:"global-call-dialog__button global-call-dialog__button--secondary","data-testid":"global-call-cancel",onClick:M[0]||(M[0]=q=>d(!1))},je(ae(n)("globalCalls.cancel")),1)):kn("",!0),we("button",{type:"button",class:"global-call-dialog__button global-call-dialog__button--primary","data-testid":"global-call-ok",onClick:M[1]||(M[1]=q=>d(!0))},je(ae(n)("globalCalls.ok")),1)])],40,cg)])):kn("",!0),i.value.length?(ge(),Oe("div",{key:1,class:"global-call-message-stack","data-testid":"global-call-message-stack","aria-label":ae(n)("globalCalls.messageRoleLabel")},[(ge(!0),Oe(Be,null,ac(i.value,q=>(ge(),Oe("div",{key:q.id,class:ft(["global-call-message",E(q.type)]),role:"status","data-type":q.type,"data-testid":"global-call-message"},[Ee(Na,{content:q.content},null,8,["content"])],10,pg))),128))],8,hg)):kn("",!0)]))}}),yg=Ur(gg,[["__scopeId","data-v-81ffa7d1"]]);function pt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Gn(e){return e===null||typeof e=="string"||typeof e=="boolean"?!0:typeof e=="number"?Number.isFinite(e):Array.isArray(e)?e.every(t=>Gn(t)):pt(e)?Object.values(e).every(t=>Gn(t)):!1}function bg(e){return pt(e)&&Gn(e)}function ws(e){return JSON.parse(JSON.stringify(e))}function _g(e){return JSON.parse(JSON.stringify(e))}function hi(e){return JSON.parse(JSON.stringify(e))}function On(e,t){return Object.keys(e).every(n=>t.includes(n))}function ir(e,t){if(t===void 0)return e;if(typeof t=="string")return{...e,description:t}}function Ao(e){if(!(!pt(e)||typeof e.type!="string")){if(e.type==="object"){if(!On(e,["type","properties","required","description"])||!pt(e.properties))return;const t={};for(const[r,s]of Object.entries(e.properties)){const o=Ao(s);if(!o)return;t[r]=o}const n={type:"object",properties:t};if(e.required!==void 0){if(!Array.isArray(e.required)||!e.required.every(r=>typeof r=="string"))return;n.required=[...e.required]}return ir(n,e.description)}if(e.type==="array"){if(!On(e,["type","items","description"]))return;const t=Ao(e.items);return t?ir({type:"array",items:t},e.description):void 0}if(e.type==="string"){if(!On(e,["type","enum","description"]))return;const t={type:"string"};if(e.enum!==void 0){if(!Array.isArray(e.enum)||!e.enum.every(n=>typeof n=="string"))return;t.enum=[...e.enum]}return ir(t,e.description)}if(e.type==="number"){if(!On(e,["type","minimum","maximum","description"]))return;const t={type:"number"};if(e.minimum!==void 0){if(typeof e.minimum!="number"||!Number.isFinite(e.minimum))return;t.minimum=e.minimum}if(e.maximum!==void 0){if(typeof e.maximum!="number"||!Number.isFinite(e.maximum))return;t.maximum=e.maximum}return ir(t,e.description)}if(e.type==="boolean")return On(e,["type","description"])?ir({type:"boolean"},e.description):void 0;if(e.type==="null"&&On(e,["type"]))return{type:"null"}}}function Ro(e){return e.type==="unknown"}function es(e){return hi(e)}function vg(){return{type:"unknown"}}function wg(){return{type:"object",properties:{}}}function Mo(e){if(Ro(e))return wg();if(e.type==="array")return{...e,items:Mo(e.items)};if(e.type==="object"){const t={};return Object.entries(e.properties).forEach(([n,r])=>{t[n]=Mo(r)}),{...e,properties:t}}return _g(e)}function Do(e,t){if(Ro(e))return es(t);if(Ro(t))return es(e);if(e.type===t.type){if(e.type==="object"&&t.type==="object"){const n={},r=new Set([...Object.keys(e.properties),...Object.keys(t.properties)]);for(const s of r){const o=e.properties[s],i=t.properties[s];if(o&&i){const a=Do(o,i);if(!a)return;n[s]=a;continue}n[s]=es(o??i)}return{type:"object",properties:n}}if(e.type==="array"&&t.type==="array"){const n=Do(e.items,t.items);return n?{type:"array",items:n}:void 0}return es(e)}}function Fo(e){if(e===null)return{ok:!0,schema:{type:"null"}};if(typeof e=="string")return{ok:!0,schema:{type:"string"}};if(typeof e=="number")return{ok:!0,schema:{type:"number"}};if(typeof e=="boolean")return{ok:!0,schema:{type:"boolean"}};if(Array.isArray(e)){if(!e.length)return{ok:!0,schema:{type:"array",items:vg()}};let n;for(const r of e){const s=Fo(r);if(!s.ok)return s;if(!n){n=s.schema;continue}const o=Do(n,s.schema);if(!o)return{ok:!1,reason:"mixedArray"};n=o}return{ok:!0,schema:{type:"array",items:n}}}const t={};for(const[n,r]of Object.entries(e)){const s=Fo(r);if(!s.ok)return s;t[n]=s.schema}return{ok:!0,schema:{type:"object",properties:t}}}function Sg(e){if(Array.isArray(e)&&!e.length)return{ok:!1,reason:"emptyArray"};const t=Fo(e);return t.ok?{ok:!0,schema:Mo(t.schema)}:t}function pi(e,t){return e?`${e}.${t}`:t}function fu(e){return e?`${e}[]`:"[]"}function Bs(e){return e.replace(/\[\]/g,"").split(".").filter(Boolean).pop()||e||"root"}function mi(e){return e==="number"?"number":e==="boolean"?"switch":e==="object"?"object":e==="array"?"array":"text"}function du(e){return e==="string"||e==="number"||e==="boolean"||e==="null"}function hu(e,t,n=Bs(e.path)){return{path:e.path,label:n,type:e.type,required:e.required,enabled:t,componentHint:e.componentHint}}function No(e,t="",n=0,r=!1){if(!e)return[];const s=t?Bs(t):"root",o={path:t,displayPath:t||"root",name:s,type:e.type,required:r,selectable:du(e.type),componentHint:mi(e.type),depth:n,children:[]};if(e.type==="object"){const i=new Set(e.required??[]);o.children=Object.entries(e.properties).flatMap(([a,l])=>No(l,pi(t,a),n+1,i.has(a)))}if(e.type==="array"){const i=fu(t);o.children=No(e.items,i,n+1,r)}return[o]}function pu(e){return e.flatMap(t=>[t,...pu(t.children)])}function mu(e){if(!e)return[];const t=[];function n(r,s){if(r.type==="array"){t.push({path:s,label:s?`${s}[]`:"root[]"}),n(r.items,fu(s));return}r.type==="object"&&Object.entries(r.properties).forEach(([o,i])=>{n(i,pi(s,o))})}return n(e,""),t}function xg(e,t){if(!e)return;if(!t)return e.type==="array"?e.items:void 0;const n=t.split(".").filter(Boolean);let r=e;for(const s of n){if(!r||r.type!=="object")return;r=r.properties[s]}return(r==null?void 0:r.type)==="array"?r.items:void 0}function Cg(e,t="",n=!1){return pu(No(e,t)).filter(r=>(n||r.path!==t)&&r.selectable)}function gu(e,t){const n=xg(e,t),r=t?`${t}[]`:"[]";return Cg(n,r,!0).map(s=>hu(s,!0))}function Tg(e){const t=(e==null?void 0:e.type)==="array"?e.items:e;if((t==null?void 0:t.type)!=="object")return[];const n=[];function r(s,o,i){if(du(s.type)){n.push(hu({path:o,name:Bs(o),type:s.type,required:i,componentHint:mi(s.type)},!0));return}if(s.type!=="object")return;const a=new Set(s.required??[]);Object.entries(s.properties).forEach(([l,u])=>{r(u,pi(o,l),a.has(l))})}return Object.entries(t.properties).forEach(([s,o])=>{r(o,s,(t.required??[]).includes(s))}),n}function $o(e,t){if(!pt(e))return t?hi(t):void 0;const n=typeof e.path=="string"&&e.path?e.path:t==null?void 0:t.path;if(!n)return;const r=e.type==="object"||e.type==="array"||e.type==="string"||e.type==="number"||e.type==="boolean"||e.type==="null"?e.type:(t==null?void 0:t.type)??"string",s=typeof e.label=="string"&&e.label.trim()?e.label.trim():(t==null?void 0:t.label)??Bs(n),o=typeof e.required=="boolean"?e.required:(t==null?void 0:t.required)??!1,i=typeof e.enabled=="boolean"?e.enabled:(t==null?void 0:t.enabled)??!0,a=e.componentHint==="text"||e.componentHint==="number"||e.componentHint==="switch"||e.componentHint==="object"||e.componentHint==="array"?e.componentHint:(t==null?void 0:t.componentHint)??mi(r);return{path:n,label:s,type:r,required:o,enabled:i,componentHint:a}}function $a(e,t){const n=new Map;return Array.isArray(t)&&t.forEach(r=>{const s=$o(r);s&&n.set(s.path,s)}),e.map(r=>{const s=n.get(r.path);return s?{...r,label:s.label||r.label,enabled:s.enabled}:hi(r)})}function Eg(e){var r;const t=mu(e),n=t.find(s=>gu(e,s.path).length>0);return(n==null?void 0:n.path)??((r=t[0])==null?void 0:r.path)??""}function ka(e,t){var l,u,c;if(!e)return;const n=mu(e),r=((l=t==null?void 0:t.list)==null?void 0:l.recordPath)??"",s=n.some(f=>f.path===r)?r:Eg(e),o=n.length?$a(gu(e,s),(u=t==null?void 0:t.list)==null?void 0:u.fields):[],i=$a(Tg(e),(c=t==null?void 0:t.form)==null?void 0:c.fields),a={};return n.length&&(a.list={recordPath:s,fields:o}),i.length&&(a.form={fields:i}),a.list||a.form?a:void 0}function Og(e,t){if(!pt(e))return t?ka(t):void 0;const n={};return pt(e.list)&&(n.list={recordPath:typeof e.list.recordPath=="string"?e.list.recordPath:"",fields:Array.isArray(e.list.fields)?e.list.fields.map(r=>$o(r)).filter(r=>r!==void 0):[]}),pt(e.form)&&(n.form={fields:Array.isArray(e.form.fields)?e.form.fields.map(r=>$o(r)).filter(r=>r!==void 0):[]}),t?ka(t,n):n.list||n.form?n:void 0}class fn extends Error{constructor(n,r,s){super(r);Jr(this,"code");Jr(this,"status");Jr(this,"statusText");this.name="DatasourceError",this.code=n,this.status=s==null?void 0:s.status,this.statusText=s==null?void 0:s.statusText}}const Pg=["string","number","boolean","null","object","array"];function Yn(e){return typeof e=="string"?e:""}function Ag(e){return e==="POST"?"POST":"GET"}function Rg(e){return Pg.includes(e)?e:"string"}function Mg(e,t={}){return Gn(e)?ws(e):t}function c1(e){return e==="number"?0:e==="boolean"?!1:e==="null"?null:e==="object"?{}:e==="array"?[]:""}function yu(e,t){return e==="string"?typeof t=="string"?t:Yn(t):e==="number"?typeof t=="number"&&Number.isFinite(t)?t:0:e==="boolean"?typeof t=="boolean"?t:!1:e==="null"?null:e==="object"?bg(t)?ws(t):{}:Array.isArray(t)&&Gn(t)?ws(t):[]}function La(e){return Array.isArray(e)?e.filter(t=>pt(t)).map(t=>({key:Yn(t.key),mock:Yn(t.mock)})):[]}function Dg(e){return Array.isArray(e)?e.filter(t=>pt(t)).map(t=>{const n=Rg(t.dataType);return{key:Yn(t.key),dataType:n,mock:yu(n,t.mock)}}):[]}function u1(){return{type:"API",domain:"",path:"",method:"GET",headerData:[],bodyData:[],queryData:[]}}function Fg(){return{type:"JSON",rawData:{}}}function Ng(e){if(!pt(e))return Fg();const t=Ao(e.jsonSchema),n=Og(e.schemaSelections,t);if(e.type==="API"){const s={type:"API",domain:Yn(e.domain),path:Yn(e.path),method:Ag(e.method),headerData:La(e.headerData),bodyData:Dg(e.bodyData),queryData:La(e.queryData)};return t&&(s.jsonSchema=t),n&&(s.schemaSelections=n),s}const r={type:"JSON",rawData:Mg(e.rawData,{})};return t&&(r.jsonSchema=t),n&&(r.schemaSelections=n),r}function $g(e){const t=e.domain.trim(),n=e.path.trim(),r=/^[a-z][a-z\d+\-.]*:/i.test(n),s=t||(typeof window<"u"?window.location.origin:"");if(!s&&!r)throw new TypeError("API domain is required when calling a relative datasource path outside the browser.");const o=s?new URL(n||"/",s.endsWith("/")?s:`${s}/`):new URL(n||"/");return e.queryData.forEach(i=>{const a=i.key.trim();a&&o.searchParams.append(a,i.mock)}),o.toString()}function kg(e){const t=new Headers;return e.headerData.forEach(n=>{const r=n.key.trim();r&&t.set(r,n.mock)}),e.method==="POST"&&!t.has("Content-Type")&&t.set("Content-Type","application/json"),t}function Lg(e){if(e.method!=="POST")return;const t=e.bodyData.reduce((n,r)=>{const s=r.key.trim();return s&&(n[s]=yu(r.dataType,r.mock)),n},{});return JSON.stringify(t)}async function Ig(e){if(!(e.headers.get("content-type")??"").toLowerCase().includes("json"))throw new fn("nonJsonResponse","The API response is not JSON.");try{const n=await e.json();if(!Gn(n))throw new fn("invalidJsonResponse","The API response is not valid JSON.");return n}catch(n){throw n instanceof fn?n:new fn("invalidJsonResponse","The API response is not valid JSON.")}}const gi=async e=>{const t=Ng(e);if(t.type==="JSON")return ws(t.rawData);const n=await fetch($g(t),{method:t.method,headers:kg(t),body:Lg(t)});if(!n.ok)throw new fn("apiRequestFailed",`API request failed: ${n.status} ${n.statusText}`.trim(),{status:n.status,statusText:n.statusText});return await Ig(n)},bu=async e=>{const t=await gi(e),n=Sg(t);if(n.ok)return n.schema;throw n.reason==="emptyArray"?new fn("emptyArraySchema","Cannot infer JSON Schema from an empty array."):new fn("mixedArraySchema","The array contains incompatible types, so JSON Schema cannot be inferred.")},jg=new Set(["success","warning","info","error"]);let Ia=null,ts=null,ns=null;const _u=(function(t,n){return yi(r=>r.showAlert(wu(t,n)))}),vu=(function(t,n){return yi(r=>r.showConfirm(wu(t,n)))}),br=(function(t,n){return yi(r=>r.showMessage(zg(t,n)))});function Bg(e){e.config.globalProperties.$alert=_u,e.config.globalProperties.$confirm=vu,e.config.globalProperties.$message=br,e.config.globalProperties.$remote=gi,e.config.globalProperties.$schema=bu,Hg()}const Ug={install:Bg};function Hg(){if(typeof window>"u")return;const e=window;e.$alert=_u,e.$confirm=vu,e.$message=br,e.$remote=gi,e.$schema=bu}function yi(e){try{return e(qg())}catch(t){return Promise.reject(t)}}function qg(){if(ts)return ts;if(typeof document>"u")throw new Error("Global call functions require a browser document.");return ns=document.createElement("div"),ns.setAttribute("data-testid","global-call-host-container"),document.body.appendChild(ns),Ia=Fc(yg),ts=Ia.mount(ns),ts}function wu(e,t){return typeof e=="object"&&e!==null?{title:String(e.title??""),content:Ss(e.content)}:{title:e,content:Ss(t)}}function zg(e,t){return typeof e=="object"&&e!==null?{type:ja(e.type),content:Ss(e.content)}:{type:ja(e),content:Ss(t)}}function Ss(e){return typeof e=="string"||Array.isArray(e)?e:""}function ja(e){return jg.has(e)?e:"info"}function Ba(e){const t=localStorage.getItem(Qc);if(!t)return[{type:"paragraph",data:{text:e("editor.defaultParagraph")}}];try{const n=JSON.parse(t);return Array.isArray(n.blocks)?n.blocks:[]}catch{return[{type:"paragraph",data:{text:e("editor.defaultParagraph")}}]}}function Su(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vg}=Object.prototype,{getPrototypeOf:Us}=Object,{iterator:Hs,toStringTag:xu}=Symbol,qs=(e=>t=>{const n=Vg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),bt=e=>(e=e.toLowerCase(),t=>qs(t)===e),zs=e=>t=>typeof t===e,{isArray:er}=Array,Xn=zs("undefined");function Hr(e){return e!==null&&!Xn(e)&&e.constructor!==null&&!Xn(e.constructor)&&Ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cu=bt("ArrayBuffer");function Kg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cu(e.buffer),t}const Jg=zs("string"),Ze=zs("function"),Tu=zs("number"),qr=e=>e!==null&&typeof e=="object",Wg=e=>e===!0||e===!1,as=e=>{if(qs(e)!=="object")return!1;const t=Us(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(xu in e)&&!(Hs in e)},Qg=e=>{if(!qr(e)||Hr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gg=bt("Date"),Yg=bt("File"),Xg=e=>!!(e&&typeof e.uri<"u"),Zg=e=>e&&typeof e.getParts<"u",ey=bt("Blob"),ty=bt("FileList"),ny=e=>qr(e)&&Ze(e.pipe);function ry(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ua=ry(),Ha=typeof Ua.FormData<"u"?Ua.FormData:void 0,sy=e=>{if(!e)return!1;if(Ha&&e instanceof Ha)return!0;const t=Us(e);if(!t||t===Object.prototype||!Ze(e.append))return!1;const n=qs(e);return n==="formdata"||n==="object"&&Ze(e.toString)&&e.toString()==="[object FormData]"},oy=bt("URLSearchParams"),[iy,ay,ly,cy]=["ReadableStream","Request","Response","Headers"].map(bt),uy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),er(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Hr(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Eu(e,t){if(Hr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const dn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ou=e=>!Xn(e)&&e!==dn;function ko(){const{caseless:e,skipUndefined:t}=Ou(this)&&this||{},n={},r=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=e&&Eu(n,o)||o;as(n[i])&&as(s)?n[i]=ko(n[i],s):as(s)?n[i]=ko({},s):er(s)?n[i]=s.slice():(!t||!Xn(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&zr(arguments[s],r);return n}const fy=(e,t,n,{allOwnKeys:r}={})=>(zr(t,(s,o)=>{n&&Ze(s)?Object.defineProperty(e,o,{value:Su(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),dy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hy=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},py=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Us(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},my=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},gy=e=>{if(!e)return null;if(er(e))return e;let t=e.length;if(!Tu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},yy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Us(Uint8Array)),by=(e,t)=>{const r=(e&&e[Hs]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},_y=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vy=bt("HTMLFormElement"),wy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),qa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Sy=bt("RegExp"),Pu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zr(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},xy=e=>{Pu(e,(t,n)=>{if(Ze(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ze(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Cy=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return er(e)?r(e):r(String(e).split(t)),n},Ty=()=>{},Ey=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Oy(e){return!!(e&&Ze(e.append)&&e[xu]==="FormData"&&e[Hs])}const Py=e=>{const t=new Array(10),n=(r,s)=>{if(qr(r)){if(t.indexOf(r)>=0)return;if(Hr(r))return r;if(!("toJSON"in r)){t[s]=r;const o=er(r)?[]:{};return zr(r,(i,a)=>{const l=n(i,s+1);!Xn(l)&&(o[a]=l)}),t[s]=void 0,o}}return r};return n(e,0)},Ay=bt("AsyncFunction"),Ry=e=>e&&(qr(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),Au=((e,t)=>e?setImmediate:t?((n,r)=>(dn.addEventListener("message",({source:s,data:o})=>{s===dn&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),dn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ze(dn.postMessage)),My=typeof queueMicrotask<"u"?queueMicrotask.bind(dn):typeof process<"u"&&process.nextTick||Au,Dy=e=>e!=null&&Ze(e[Hs]),_={isArray:er,isArrayBuffer:Cu,isBuffer:Hr,isFormData:sy,isArrayBufferView:Kg,isString:Jg,isNumber:Tu,isBoolean:Wg,isObject:qr,isPlainObject:as,isEmptyObject:Qg,isReadableStream:iy,isRequest:ay,isResponse:ly,isHeaders:cy,isUndefined:Xn,isDate:Gg,isFile:Yg,isReactNativeBlob:Xg,isReactNative:Zg,isBlob:ey,isRegExp:Sy,isFunction:Ze,isStream:ny,isURLSearchParams:oy,isTypedArray:yy,isFileList:ty,forEach:zr,merge:ko,extend:fy,trim:uy,stripBOM:dy,inherits:hy,toFlatObject:py,kindOf:qs,kindOfTest:bt,endsWith:my,toArray:gy,forEachEntry:by,matchAll:_y,isHTMLForm:vy,hasOwnProperty:qa,hasOwnProp:qa,reduceDescriptors:Pu,freezeMethods:xy,toObjectSet:Cy,toCamelCase:wy,noop:Ty,toFiniteNumber:Ey,findKey:Eu,global:dn,isContextDefined:Ou,isSpecCompliantForm:Oy,toJSONObject:Py,isAsyncFn:Ay,isThenable:Ry,setImmediate:Au,asap:My,isIterable:Dy};let Q=class Ru extends Error{static from(t,n,r,s,o,i){const a=new Ru(t.message,n||t.code,r,s,o);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}};Q.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Q.ERR_BAD_OPTION="ERR_BAD_OPTION";Q.ECONNABORTED="ECONNABORTED";Q.ETIMEDOUT="ETIMEDOUT";Q.ERR_NETWORK="ERR_NETWORK";Q.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Q.ERR_DEPRECATED="ERR_DEPRECATED";Q.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Q.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Q.ERR_CANCELED="ERR_CANCELED";Q.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Q.ERR_INVALID_URL="ERR_INVALID_URL";Q.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Fy=null;function Lo(e){return _.isPlainObject(e)||_.isArray(e)}function Mu(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function co(e,t,n){return e?e.concat(t).map(function(s,o){return s=Mu(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Ny(e){return _.isArray(e)&&!e.some(Lo)}const $y=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function Vs(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,w){return!_.isUndefined(w[m])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,u=a&&_.isSpecCompliantForm(t);if(!_.isFunction(s))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(_.isDate(d))return d.toISOString();if(_.isBoolean(d))return d.toString();if(!u&&_.isBlob(d))throw new Q("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(d)||_.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,w){let D=d;if(_.isReactNative(t)&&_.isReactNativeBlob(d))return t.append(co(w,m,o),c(d)),!1;if(d&&!w&&typeof d=="object"){if(_.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(_.isArray(d)&&Ny(d)||(_.isFileList(d)||_.endsWith(m,"[]"))&&(D=_.toArray(d)))return m=Mu(m),D.forEach(function(b,M){!(_.isUndefined(b)||b===null)&&t.append(i===!0?co([m],M,o):i===null?m:m+"[]",c(b))}),!1}return Lo(d)?!0:(t.append(co(w,m,o),c(d)),!1)}const g=[],v=Object.assign($y,{defaultVisitor:f,convertValue:c,isVisitable:Lo});function y(d,m,w=0){if(!_.isUndefined(d)){if(w>l)throw new Q("Object is too deeply nested ("+w+" levels). Max depth: "+l,Q.ERR_FORM_DATA_DEPTH_EXCEEDED);if(g.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));g.push(d),_.forEach(d,function(E,b){(!(_.isUndefined(E)||E===null)&&s.call(t,E,_.isString(b)?b.trim():b,m,v))===!0&&y(E,m?m.concat(b):[b],w+1)}),g.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return y(e),t}function za(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function bi(e,t){this._pairs=[],e&&Vs(e,this,t)}const Du=bi.prototype;Du.append=function(t,n){this._pairs.push([t,n])};Du.toString=function(t){const n=t?function(r){return t.call(this,r,za)}:za;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function ky(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Fu(e,t,n){if(!t)return e;const r=n&&n.encode||ky,s=_.isFunction(n)?{serialize:n}:n,o=s&&s.serialize;let i;if(o?i=o(t,s):i=_.isURLSearchParams(t)?t.toString():new bi(t,s).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Va{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _i={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Ly=typeof URLSearchParams<"u"?URLSearchParams:bi,Iy=typeof FormData<"u"?FormData:null,jy=typeof Blob<"u"?Blob:null,By={isBrowser:!0,classes:{URLSearchParams:Ly,FormData:Iy,Blob:jy},protocols:["http","https","file","blob","url","data"]},vi=typeof window<"u"&&typeof document<"u",Io=typeof navigator=="object"&&navigator||void 0,Uy=vi&&(!Io||["ReactNative","NativeScript","NS"].indexOf(Io.product)<0),Hy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qy=vi&&window.location.href||"http://localhost",zy=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vi,hasStandardBrowserEnv:Uy,hasStandardBrowserWebWorkerEnv:Hy,navigator:Io,origin:qy},Symbol.toStringTag,{value:"Module"})),Ve={...zy,...By};function Vy(e,t){return Vs(e,new Ve.classes.URLSearchParams,{visitor:function(n,r,s,o){return Ve.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Ky(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jy(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Nu(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&_.isArray(s)?s.length:i,l?(_.hasOwnProp(s,i)?s[i]=_.isArray(s[i])?s[i].concat(r):[s[i],r]:s[i]=r,!a):((!s[i]||!_.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&_.isArray(s[i])&&(s[i]=Jy(s[i])),!a)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,s)=>{t(Ky(r),s,n,0)}),n}return null}const Pn=(e,t)=>e!=null&&_.hasOwnProp(e,t)?e[t]:void 0;function Wy(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Vr={transitional:_i,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return s?JSON.stringify(Nu(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){const l=Pn(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vy(t,l).toString();if((a=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=Pn(this,"env"),c=u&&u.FormData;return Vs(a?{"files[]":t}:t,c&&new c,l)}}return o||s?(n.setContentType("application/json",!1),Wy(t)):t}],transformResponse:[function(t){const n=Pn(this,"transitional")||Vr.transitional,r=n&&n.forcedJSONParsing,s=Pn(this,"responseType"),o=s==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(r&&!s||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,Pn(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?Q.from(l,Q.ERR_BAD_RESPONSE,this,null,Pn(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{Vr.headers[e]={}});const Qy=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gy=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
19
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Qy[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ka=Symbol("internals"),Yy=/[^\x09\x20-\x7E\x80-\xFF]/g;function Xy(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function ar(e){return e&&String(e).trim().toLowerCase()}function Zy(e){return Xy(e.replace(Yy,""))}function ls(e){return e===!1||e==null?e:_.isArray(e)?e.map(ls):Zy(String(e))}function e2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const t2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uo(e,t,n,r,s){if(_.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!_.isString(t)){if(_.isString(r))return t.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(t)}}function n2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function r2(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let et=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,l,u){const c=ar(l);if(!c)throw new Error("header name must be a non-empty string");const f=_.findKey(s,c);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||l]=ls(a))}const i=(a,l)=>_.forEach(a,(u,c)=>o(u,c,l));if(_.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(_.isString(t)&&(t=t.trim())&&!t2(t))i(Gy(t),n);else if(_.isObject(t)&&_.isIterable(t)){let a={},l,u;for(const c of t){if(!_.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?_.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}i(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=ar(t),t){const r=_.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return e2(s);if(_.isFunction(n))return n.call(this,s,r);if(_.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ar(t),t){const r=_.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||uo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=ar(i),i){const a=_.findKey(r,i);a&&(!n||uo(r,r[a],a,n))&&(delete r[a],s=!0)}}return _.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||uo(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return _.forEach(this,(s,o)=>{const i=_.findKey(r,o);if(i){n[i]=ls(s),delete n[o];return}const a=t?n2(o):String(o).trim();a!==o&&delete n[o],n[a]=ls(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&_.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
20
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ka]=this[Ka]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=ar(i);r[a]||(r2(s,i),r[a]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}};et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(et.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});_.freezeMethods(et);function fo(e,t){const n=this||Vr,r=t||n,s=et.from(r.headers);let o=r.data;return _.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function $u(e){return!!(e&&e.__CANCEL__)}let Kr=class extends Q{constructor(t,n,r){super(t??"canceled",Q.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function ku(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function s2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function o2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];i||(i=u),n[s]=l,r[s]=u;let f=o,g=0;for(;f!==s;)g+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const v=c&&u-c;return v?Math.round(g*1e3/v):void 0}}function i2(e,t){let n=0,r=1e3/t,s,o;const i=(u,c=Date.now())=>{n=c,s=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?i(u,c):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-f)))},()=>s&&i(s)]}const xs=(e,t,n=3)=>{let r=0;const s=o2(50,250);return i2(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=a!=null?Math.min(i,a):i,u=Math.max(0,l-r),c=s(u);r=Math.max(r,l);const f={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a?(a-l)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},Ja=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Wa=e=>(...t)=>_.asap(()=>e(...t)),a2=Ve.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ve.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,l2=Ve.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];_.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),_.isString(r)&&a.push(`path=${r}`),_.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),_.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function c2(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function u2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Lu(e,t,n){let r=!c2(t);return e&&(r||n===!1)?u2(e,t):t}const Qa=e=>e instanceof et?{...e}:e;function xn(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,c,f,g){return _.isPlainObject(u)&&_.isPlainObject(c)?_.merge.call({caseless:g},u,c):_.isPlainObject(c)?_.merge({},c):_.isArray(c)?c.slice():c}function s(u,c,f,g){if(_.isUndefined(c)){if(!_.isUndefined(u))return r(void 0,u,f,g)}else return r(u,c,f,g)}function o(u,c){if(!_.isUndefined(c))return r(void 0,c)}function i(u,c){if(_.isUndefined(c)){if(!_.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(_.hasOwnProp(t,f))return r(u,c);if(_.hasOwnProp(e,f))return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(u,c,f)=>s(Qa(u),Qa(c),f,!0)};return _.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=_.hasOwnProp(l,c)?l[c]:s,g=_.hasOwnProp(e,c)?e[c]:void 0,v=_.hasOwnProp(t,c)?t[c]:void 0,y=f(g,v,c);_.isUndefined(y)&&f!==a||(n[c]=y)}),n}const Iu=e=>{const t=xn({},e),n=g=>_.hasOwnProp(t,g)?t[g]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),f=n("url");if(t.headers=a=et.from(a),t.url=Fu(Lu(u,f,c),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),_.isFormData(r)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(_.isFunction(r.getHeaders)){const g=r.getHeaders(),v=["content-type","content-length"];Object.entries(g).forEach(([y,d])=>{v.includes(y.toLowerCase())&&a.set(y,d)})}}if(Ve.hasStandardBrowserEnv&&(_.isFunction(s)&&(s=s(t)),s===!0||s==null&&a2(t.url))){const v=o&&i&&l2.read(i);v&&a.set(o,v)}return t},f2=typeof XMLHttpRequest<"u",d2=f2&&function(e){return new Promise(function(n,r){const s=Iu(e);let o=s.data;const i=et.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=s,c,f,g,v,y;function d(){v&&v(),y&&y(),s.cancelToken&&s.cancelToken.unsubscribe(c),s.signal&&s.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout;function w(){if(!m)return;const E=et.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),M={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:E,config:e,request:m};ku(function(W){n(W),d()},function(W){r(W),d()},M),m=null}"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(w)},m.onabort=function(){m&&(r(new Q("Request aborted",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(b){const M=b&&b.message?b.message:"Network Error",q=new Q(M,Q.ERR_NETWORK,e,m);q.event=b||null,r(q),m=null},m.ontimeout=function(){let b=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||_i;s.timeoutErrorMessage&&(b=s.timeoutErrorMessage),r(new Q(b,M.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},o===void 0&&i.setContentType(null),"setRequestHeader"in m&&_.forEach(i.toJSON(),function(b,M){m.setRequestHeader(M,b)}),_.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),a&&a!=="json"&&(m.responseType=s.responseType),u&&([g,y]=xs(u,!0),m.addEventListener("progress",g)),l&&m.upload&&([f,v]=xs(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",v)),(s.cancelToken||s.signal)&&(c=E=>{m&&(r(!E||E.type?new Kr(null,e,m):E),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(c),s.signal&&(s.signal.aborted?c():s.signal.addEventListener("abort",c)));const D=s2(s.url);if(D&&Ve.protocols.indexOf(D)===-1){r(new Q("Unsupported protocol "+D+":",Q.ERR_BAD_REQUEST,e));return}m.send(o||null)})},h2=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof Q?c:new Kr(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,o(new Q(`timeout of ${t}ms exceeded`,Q.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>_.asap(a),l}},p2=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},m2=async function*(e,t){for await(const n of g2(e))yield*p2(n,t)},g2=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ga=(e,t,n,r)=>{const s=m2(e,t);let o=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await s.next();if(u){a(),l.close();return}let f=c.byteLength;if(n){let g=o+=f;n(g)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},Ya=64*1024,{isFunction:rs}=_,y2=(({Request:e,Response:t})=>({Request:e,Response:t}))(_.global),{ReadableStream:Xa,TextEncoder:Za}=_.global,el=(e,...t)=>{try{return!!e(...t)}catch{return!1}},b2=e=>{e=_.merge.call({skipUndefined:!0},y2,e);const{fetch:t,Request:n,Response:r}=e,s=t?rs(t):typeof fetch=="function",o=rs(n),i=rs(r);if(!s)return!1;const a=s&&rs(Xa),l=s&&(typeof Za=="function"?(y=>d=>y.encode(d))(new Za):async y=>new Uint8Array(await new n(y).arrayBuffer())),u=o&&a&&el(()=>{let y=!1;const d=new n(Ve.origin,{body:new Xa,method:"POST",get duplex(){return y=!0,"half"}}),m=d.headers.has("Content-Type");return d.body!=null&&d.body.cancel(),y&&!m}),c=i&&a&&el(()=>_.isReadableStream(new r("").body)),f={stream:c&&(y=>y.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!f[y]&&(f[y]=(d,m)=>{let w=d&&d[y];if(w)return w.call(d);throw new Q(`Response type '${y}' is not supported`,Q.ERR_NOT_SUPPORT,m)})});const g=async y=>{if(y==null)return 0;if(_.isBlob(y))return y.size;if(_.isSpecCompliantForm(y))return(await new n(Ve.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(_.isArrayBufferView(y)||_.isArrayBuffer(y))return y.byteLength;if(_.isURLSearchParams(y)&&(y=y+""),_.isString(y))return(await l(y)).byteLength},v=async(y,d)=>{const m=_.toFiniteNumber(y.getContentLength());return m??g(d)};return async y=>{let{url:d,method:m,data:w,signal:D,cancelToken:E,timeout:b,onDownloadProgress:M,onUploadProgress:q,responseType:W,headers:ne,withCredentials:H="same-origin",fetchOptions:V}=Iu(y),z=t||fetch;W=W?(W+"").toLowerCase():"text";let I=h2([D,E&&E.toAbortSignal()],b),le=null;const B=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let k;try{if(q&&u&&m!=="get"&&m!=="head"&&(k=await v(ne,w))!==0){let X=new n(d,{method:"POST",body:w,duplex:"half"}),ie;if(_.isFormData(w)&&(ie=X.headers.get("content-type"))&&ne.setContentType(ie),X.body){const[_e,Te]=Ja(k,xs(Wa(q)));w=Ga(X.body,Ya,_e,Te)}}_.isString(H)||(H=H?"include":"omit");const C=o&&"credentials"in n.prototype;if(_.isFormData(w)){const X=ne.getContentType();X&&/^multipart\/form-data/i.test(X)&&!/boundary=/i.test(X)&&ne.delete("content-type")}const F={...V,signal:I,method:m.toUpperCase(),headers:ne.normalize().toJSON(),body:w,duplex:"half",credentials:C?H:void 0};le=o&&new n(d,F);let T=await(o?z(le,V):z(d,F));const K=c&&(W==="stream"||W==="response");if(c&&(M||K&&B)){const X={};["status","statusText","headers"].forEach(N=>{X[N]=T[N]});const ie=_.toFiniteNumber(T.headers.get("content-length")),[_e,Te]=M&&Ja(ie,xs(Wa(M),!0))||[];T=new r(Ga(T.body,Ya,_e,()=>{Te&&Te(),B&&B()}),X)}W=W||"text";let Y=await f[_.findKey(f,W)||"text"](T,y);return!K&&B&&B(),await new Promise((X,ie)=>{ku(X,ie,{data:Y,headers:et.from(T.headers),status:T.status,statusText:T.statusText,config:y,request:le})})}catch(C){throw B&&B(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,y,le,C&&C.response),{cause:C.cause||C}):Q.from(C,C&&C.code,y,le,C&&C.response)}}},_2=new Map,ju=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,a=i,l,u,c=_2;for(;a--;)l=o[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:b2(t)),c=u;return u};ju();const wi={http:Fy,xhr:d2,fetch:{get:ju}};_.forEach(wi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const tl=e=>`- ${e}`,v2=e=>_.isFunction(e)||e===null||e===!1;function w2(e,t){e=_.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let a;if(s=r,!v2(r)&&(s=wi[(a=String(r)).toLowerCase()],s===void 0))throw new Q(`Unknown adapter '${a}'`);if(s&&(_.isFunction(s)||(s=s.get(t))))break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
|
|
21
|
+
`+i.map(tl).join(`
|
|
22
|
+
`):" "+tl(i[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Bu={getAdapter:w2,adapters:wi};function ho(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kr(null,e)}function nl(e){return ho(e),e.headers=et.from(e.headers),e.data=fo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bu.getAdapter(e.adapter||Vr.adapter,e)(e).then(function(r){return ho(e),r.data=fo.call(e,e.transformResponse,r),r.headers=et.from(r.headers),r},function(r){return $u(r)||(ho(e),r&&r.response&&(r.response.data=fo.call(e,e.transformResponse,r.response),r.response.headers=et.from(r.response.headers))),Promise.reject(r)})}const Uu="1.15.2",Ks={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ks[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rl={};Ks.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Uu+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new Q(s(i," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!rl[i]&&(rl[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};Ks.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function S2(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new Q("option "+o+" must be "+l,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}}const cs={assertOptions:S2,validators:Ks},at=cs.validators;let wn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Va,response:new Va}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=(()=>{if(!s.stack)return"";const i=s.stack.indexOf(`
|
|
23
|
+
`);return i===-1?"":s.stack.slice(i+1)})();try{if(!r.stack)r.stack=o;else if(o){const i=o.indexOf(`
|
|
24
|
+
`),a=i===-1?-1:o.indexOf(`
|
|
25
|
+
`,i+1),l=a===-1?"":o.slice(a+1);String(r.stack).endsWith(l)||(r.stack+=`
|
|
26
|
+
`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=xn(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&cs.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean),legacyInterceptorReqResOrdering:at.transitional(at.boolean)},!1),s!=null&&(_.isFunction(s)?n.paramsSerializer={serialize:s}:cs.assertOptions(s,{encode:at.function,serialize:at.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),cs.assertOptions(n,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&_.merge(o.common,o[n.method]);o&&_.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=et.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(d){if(typeof d.runWhen=="function"&&d.runWhen(n)===!1)return;l=l&&d.synchronous;const m=n.transitional||_i;m&&m.legacyInterceptorReqResOrdering?a.unshift(d.fulfilled,d.rejected):a.push(d.fulfilled,d.rejected)});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let c,f=0,g;if(!l){const y=[nl.bind(this),void 0];for(y.unshift(...a),y.push(...u),g=y.length,c=Promise.resolve(n);f<g;)c=c.then(y[f++],y[f++]);return c}g=a.length;let v=n;for(;f<g;){const y=a[f++],d=a[f++];try{v=y(v)}catch(m){d.call(this,m);break}}try{c=nl.call(this,v)}catch(y){return Promise.reject(y)}for(f=0,g=u.length;f<g;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=xn(this.defaults,t);const n=Lu(t.baseURL,t.url,t.allowAbsoluteUrls);return Fu(n,t.params,t.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(t){wn.prototype[t]=function(n,r){return this.request(xn(r||{},{method:t,url:n,data:(r||{}).data}))}});_.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,a){return this.request(xn(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}wn.prototype[t]=n(),wn.prototype[t+"Form"]=n(!0)});let x2=class Hu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new Kr(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Hu(function(s){t=s}),cancel:t}}};function C2(e){return function(n){return e.apply(null,n)}}function T2(e){return _.isObject(e)&&e.isAxiosError===!0}const jo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(jo).forEach(([e,t])=>{jo[t]=e});function qu(e){const t=new wn(e),n=Su(wn.prototype.request,t);return _.extend(n,wn.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return qu(xn(e,s))},n}const Me=qu(Vr);Me.Axios=wn;Me.CanceledError=Kr;Me.CancelToken=x2;Me.isCancel=$u;Me.VERSION=Uu;Me.toFormData=Vs;Me.AxiosError=Q;Me.Cancel=Me.CanceledError;Me.all=function(t){return Promise.all(t)};Me.spread=C2;Me.isAxiosError=T2;Me.mergeConfig=xn;Me.AxiosHeaders=et;Me.formToJSON=e=>Nu(_.isHTMLForm(e)?new FormData(e):e);Me.getAdapter=Bu.getAdapter;Me.HttpStatusCode=jo;Me.default=Me;const{Axios:p1,AxiosError:m1,CanceledError:g1,isCancel:y1,CancelToken:b1,VERSION:_1,all:v1,Cancel:w1,isAxiosError:S1,spread:x1,toFormData:C1,AxiosHeaders:T1,HttpStatusCode:E1,formToJSON:O1,getAdapter:P1,mergeConfig:A1}=Me,E2="https://api.mokelay.com";function O2(e){return e.replace(/\/+$/,"")}function P2(){return E2}const Si=Me.create({baseURL:O2(P2()),timeout:1e4});async function A2(e){const t=await Si.post("/api/pages",e);return xi(t.data)}async function R2(e){const t=await Si.get(`/api/pages/${encodeURIComponent(e)}`);return xi(t.data)}async function M2(e,t){const n=await Si.patch(`/api/pages/${encodeURIComponent(e)}`,t);return xi(n.data)}function xi(e){const t=e.page;if(typeof t!="object"||t===null||Array.isArray(t))throw new Error("Invalid page response.");const n=t,r=typeof n.uuid=="string"?n.uuid:"";if(!r)throw new Error("Invalid page response.");return{uuid:r,name:typeof n.name=="string"?n.name:"",blocks:Array.isArray(n.blocks)?n.blocks:[],createdAt:typeof n.createdAt=="string"?n.createdAt:void 0,updatedAt:typeof n.updatedAt=="string"?n.updatedAt:void 0}}const D2={"data-testid":"app-root",class:"flex min-h-screen flex-col bg-slate-100 p-4 text-slate-900 transition-colors dark:bg-slate-950 dark:text-slate-100"},F2={"data-testid":"app-header",class:"mb-4 flex flex-wrap items-center justify-between gap-3 rounded-xl border border-slate-200 bg-white px-4 py-3 shadow-sm dark:border-slate-700 dark:bg-slate-900"},N2={"data-testid":"app-title",class:"text-xl font-semibold"},$2={class:"flex flex-wrap items-center gap-3"},k2={class:"flex items-center gap-2 text-sm"},L2=["value"],I2={value:"dark"},j2={value:"light"},B2={class:"flex items-center gap-2 text-sm"},U2=["value"],H2={value:"zh"},q2={value:"en"},z2=["disabled"],V2=["disabled"],sl="mokelay-editor-theme-mode",K2=yt({__name:"App",setup(e){const t=Ii(()=>Ca(()=>import("./EditorPanel-C1sfyxYP.js"),__vite__mapDeps([0,1,2,3,4]))),n=Ii(()=>Ca(()=>import("./PreviewPanel-BB0_i9aa.js"),__vite__mapDeps([5,1,2,3])));function r(N){const fe=(document.cookie?document.cookie.split("; "):[]).find(Ke=>Ke.startsWith(`${N}=`));return fe?decodeURIComponent(fe.slice(N.length+1)):null}function s(N,se){document.cookie=`${N}=${encodeURIComponent(se)}; path=/; max-age=31536000; samesite=lax`}function o(){const N=r(sl);return N==="dark"}const i=ye(o()),a=ye(window.location.hash||"#/"),{t:l,localeValue:u,setLocale:c}=oi(),f=ye(null),g=ye(null),v=ye(""),y=ye(Ba(l)),d=ye(!1),m=ye(!1),w=ye("");let D=0;const E=Pe(()=>H(a.value)),b=Pe(()=>E.value.uuid),M=Pe(()=>E.value.preview),q=Pe(()=>f.value!==null&&!d.value&&!m.value);function W(N){document.documentElement.classList.toggle("dark",N)}function ne(){a.value=window.location.hash||"#/"}function H(N){const se=N.replace(/^#/,"")||"/",fe=se.startsWith("/")?se:`/${se}`,Ke=fe.match(/^\/pages\/([^/]+)(\/preview)?\/?$/);return Ke?{uuid:V(Ke[1]),preview:!!Ke[2]}:{uuid:null,preview:fe==="/preview"}}function V(N){try{return decodeURIComponent(N)}catch{return N}}function z(N){return`/pages/${encodeURIComponent(N)}`}function I(N){return`/pages/${encodeURIComponent(N)}/preview`}function le(N){localStorage.setItem(Qc,JSON.stringify({blocks:N}))}function B(N){g.value=N.uuid,v.value=N.name,y.value=N.blocks,w.value="",le(N.blocks)}function k(){D+=1,g.value=null,v.value="",w.value="",d.value=!1,y.value=Ba(l)}async function C(N){const se=D+1;D=se,d.value=!0,w.value="";try{const fe=await R2(N);if(se!==D)return;B(fe)}catch(fe){if(se!==D)return;g.value=N,v.value="",y.value=[],w.value=F(fe)||l("page.loadFailed"),br("error",l("page.loadFailed"))}finally{se===D&&(d.value=!1)}}function F(N){return N instanceof Error?N.message:""}function T(N){const se=fe=>String(fe).padStart(2,"0");return[N.getFullYear(),se(N.getMonth()+1),se(N.getDate())].join("-")+` ${se(N.getHours())}:${se(N.getMinutes())}:${se(N.getSeconds())}`}Lr(()=>{W(i.value),window.addEventListener("hashchange",ne)}),Yo(()=>{window.removeEventListener("hashchange",ne)}),hr(i,N=>{W(N),s(sl,N?"dark":"light")}),hr(b,N=>{if(!N){k();return}N!==g.value&&C(N)},{immediate:!0});function K(N){i.value=N==="dark"}function Y(N){y.value=N,le(N)}async function X(){var fe;const N=await((fe=f.value)==null?void 0:fe.save()),se=(N==null?void 0:N.blocks)??y.value;return y.value=se,le(se),se}async function ie(){if(!(m.value||d.value)){m.value=!0,w.value="";try{const N=await X(),se=g.value,fe=se?await M2(se,{blocks:N}):await A2({name:T(new Date),blocks:N});B(fe),br("success",l("editor.saveSuccess")),se||(window.location.hash=z(fe.uuid))}catch(N){w.value=F(N)||l("editor.saveFailed"),br("error",l("editor.saveFailed"))}finally{m.value=!1}}}async function _e(){d.value||m.value||(await X(),window.location.hash=g.value?I(g.value):"/preview")}function Te(){const N=b.value??g.value;window.location.hash=N?z(N):"/"}return(N,se)=>(ge(),tn(ae(bp),null,{default:Fn(()=>[we("main",D2,[we("header",F2,[we("h1",N2,je(ae(l)("app.title")),1),we("div",$2,[we("label",k2,[we("select",{"data-testid":"theme-select",value:i.value?"dark":"light",class:"rounded-lg border border-slate-300 bg-white px-3 py-1.5 text-sm dark:border-slate-600 dark:bg-slate-800",onChange:se[0]||(se[0]=fe=>K(fe.target.value))},[we("option",I2,je(ae(l)("app.dark")),1),we("option",j2,je(ae(l)("app.light")),1)],40,L2)]),we("label",B2,[we("select",{"data-testid":"locale-select",value:ae(u),class:"rounded-lg border border-slate-300 bg-white px-3 py-1.5 text-sm dark:border-slate-600 dark:bg-slate-800",onChange:se[1]||(se[1]=fe=>ae(c)(fe.target.value))},[we("option",H2,je(ae(l)("app.chinese")),1),we("option",q2,je(ae(l)("app.english")),1)],40,U2)]),M.value?(ge(),Oe("button",{key:1,"data-testid":"back-to-editor-button",class:"rounded-lg bg-slate-200 px-3 py-1.5 text-sm font-medium text-slate-800 hover:bg-slate-300 dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600",onClick:Te},je(ae(l)("preview.backToEditor")),1)):(ge(),Oe(Be,{key:0},[we("button",{"data-testid":"save-button",class:"rounded-lg bg-indigo-500 px-3 py-1.5 text-sm font-medium text-white hover:bg-indigo-400 disabled:cursor-not-allowed disabled:opacity-50",disabled:!q.value,onClick:ie},je(m.value?ae(l)("editor.saving"):ae(l)("editor.saveContent")),9,z2),we("button",{"data-testid":"preview-button",class:"rounded-lg bg-emerald-500 px-3 py-1.5 text-sm font-medium text-white hover:bg-emerald-400 disabled:cursor-not-allowed disabled:opacity-50",disabled:!q.value,onClick:_e},je(ae(l)("editor.previewPage")),9,V2)],64))])]),M.value?(ge(),tn(ae(n),{key:0,blocks:y.value,loading:d.value,error:w.value},null,8,["blocks","loading","error"])):(ge(),tn(ae(t),{key:1,ref_key:"editorPanelRef",ref:f,blocks:y.value,loading:d.value,error:w.value,onChange:Y},null,8,["blocks","loading","error"]))])]),_:1}))}}),Ci=Fc(K2),J2=new Vc;Ci.use(ap,{queryClient:J2});Ci.use(Ug);Ci.mount("#app");function W2(){if(!("serviceWorker"in navigator))return;const e=`/sw.js?v=${encodeURIComponent("2026-05-06T13:45:21.750Z")}`;let t=!1;const n=r=>{r.waiting&&r.waiting.postMessage({type:"SKIP_WAITING"})};navigator.serviceWorker.addEventListener("controllerchange",()=>{t||(t=!0,window.location.reload())}),window.addEventListener("load",async()=>{try{const r=await navigator.serviceWorker.register(e);n(r),r.addEventListener("updatefound",()=>{const s=r.installing;s&&s.addEventListener("statechange",()=>{s.state==="installed"&&navigator.serviceWorker.controller&&n(r)})}),window.setInterval(()=>{r.update().catch(()=>{})},60*1e3)}catch(r){console.error("Service worker registration failed:",r)}})}W2();export{bu as $,s1 as A,cu as B,oe as C,Zm as D,Gm as E,Be as F,Xm as G,di as H,Pe as I,Ng as J,Af as K,Wo as L,u1 as M,yu as N,Pg as O,pu as P,mu as Q,Gn as R,ws as S,Ao as T,ka as U,Ag as V,Rg as W,c1 as X,bg as Y,Fg as Z,Ur as _,kn as a,No as a0,Mg as a1,_g as a2,Og as a3,fn as a4,X2 as a5,r1 as a6,Ee as a7,Jm as a8,$p as a9,Mp as aa,ss as ab,Qm as ac,Lp as ad,Fp as ae,Ii as af,Ca as ag,Kd as ah,tn as b,Oe as c,yt as d,oi as e,we as f,Lr as g,Ir as h,eg as i,Vn as j,ac as k,ha as l,l1 as m,Jn as n,ge as o,ti as p,id as q,ye as r,ft as s,je as t,ae as u,yr as v,hr as w,Fa as x,uu as y,Fc as z};
|