@vtj/pro 0.9.4 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BvLtH7Ej.js","./vue-router-70esBOLy.js","./vue-MNNkR0KN.js","./element-plus-YyQpMNX9.js","./lodash-es-Cmvm8wvQ.js","./@vueuse-lzvNycZY.js","./@element-plus-icons-vue-Cffh5gMs.js","./shared-BAqo0W56.js","./dayjs-DO-COJPZ.js","./element-plus-BbdgoGGn.css","./vxe-y57a8oB3.js","./vxe-BAb1d5vW.css","./extension-C8ZhAfEn.js","./monaco-editor-Lba3v2gb.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-BiYWQEnZ.js","./extension-R1YTJeE6.css","./_plugin-vue_export-helper-DlAUqK2U.js","./index-DmXmiv30.css","./preview-BovWIv7Z.js","./page-Cgw1GDNx.js","./auth-dRF3ivor.js","./auth-rAe8S_7e.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-rSjlM276.js","./vue-router-70esBOLy.js","./vue-MNNkR0KN.js","./element-plus-YyQpMNX9.js","./lodash-es-Cmvm8wvQ.js","./@vueuse-lzvNycZY.js","./@element-plus-icons-vue-Cffh5gMs.js","./shared-BAqo0W56.js","./dayjs-DO-COJPZ.js","./element-plus-BbdgoGGn.css","./vxe-y57a8oB3.js","./vxe-BAb1d5vW.css","./extension-BebaSne3.js","./monaco-editor-Lba3v2gb.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-BiYWQEnZ.js","./extension-R1YTJeE6.css","./_plugin-vue_export-helper-DlAUqK2U.js","./index-DmXmiv30.css","./preview-CS81WHn_.js","./page-BPUmAD5D.js","./auth-Ba1ZKjZT.js","./auth-rAe8S_7e.css"])))=>i.map(i=>d[i]);
2
2
  var xl=Object.defineProperty,Tl=Object.defineProperties;var $l=Object.getOwnPropertyDescriptors;var gr=Object.getOwnPropertySymbols;var Ss=Object.prototype.hasOwnProperty,xs=Object.prototype.propertyIsEnumerable;var de=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ol=e=>{throw TypeError(e)};var xn=(e,t,r)=>t in e?xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t)=>{for(var r in t||(t={}))Ss.call(t,r)&&xn(e,r,t[r]);if(gr)for(var r of gr(t))xs.call(t,r)&&xn(e,r,t[r]);return e},ct=(e,t)=>Tl(e,$l(t));var Tn=(e,t)=>{var r={};for(var n in e)Ss.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gr)for(var n of gr(e))t.indexOf(n)<0&&xs.call(e,n)&&(r[n]=e[n]);return r};var j=(e,t,r)=>xn(e,typeof t!="symbol"?t+"":t,r);var L=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())}),Gt=function(e,t){this[0]=e,this[1]=t},$n=(e,t,r)=>{var n=(o,a,u,c)=>{try{var l=r[o](a),h=(a=l.value)instanceof Gt,f=l.done;Promise.resolve(h?a[0]:a).then(p=>h?n(o==="return"?o:"next",a[1]?{done:p.done,value:p.value}:p,u,c):u({value:p,done:f})).catch(p=>n("throw",p,u,c))}catch(p){c(p)}},i=o=>s[o]=a=>new Promise((u,c)=>n(o,a,u,c)),s={};return r=r.apply(e,t),s[de("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},On=e=>{var t=e[de("asyncIterator")],r=!1,n,i={};return t==null?(t=e[de("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new Gt(new Promise(a=>{var u=t[s](o);u instanceof Object||Ol("Object expected"),a(u)}),1)}}),i[de("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},Ts=(e,t,r)=>(t=e[de("asyncIterator")])?t.call(e):(e=e[de("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,a,u)=>(s=i.call(e,s),u=s.done,Promise.resolve(s.value).then(c=>o({value:c,done:u}),a)))),r("next"),r("return"),t);import{ay as $s,az as tn,d as en,e as tr,ah as Wn,v as ea,f as ra,o as Yn,c as Al,a as me,R as An,w as jl,p as Rl,r as Dl,j as Cl,Z as Pl,k as na,m as Di,g as kl,b as Nl,h as ia,i as Bl,ai as Il,K as Os,u as As,L as js,aA as Ml,T as Fl,av as Ll}from"./vue-MNNkR0KN.js";import{t as oe}from"./mockjs-BiYWQEnZ.js";import{useRoute as sa,createRouter as Vl,createWebHashHistory as Hl}from"./vue-router-70esBOLy.js";import{E as rn,a as Ul,z as zl,b as ql}from"./element-plus-YyQpMNX9.js";import{_ as vr}from"./monaco-editor-Lba3v2gb.js";import"./dayjs-DO-COJPZ.js";import"./lodash-es-Cmvm8wvQ.js";import"./@vueuse-lzvNycZY.js";import"./@element-plus-icons-vue-Cffh5gMs.js";import"./shared-BAqo0W56.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var Kl={ENV_TYPE:"live",NODE_ENV:"production"},Jl=typeof global=="object"&&global&&global.Object===Object&&global;const oa=Jl;var Wl=typeof self=="object"&&self&&self.Object===Object&&self,Yl=oa||Wl||Function("return this")();const At=Yl;var Gl=At.Symbol;const Ct=Gl;var aa=Object.prototype,Zl=aa.hasOwnProperty,Ql=aa.toString,He=Ct?Ct.toStringTag:void 0;function Xl(e){var t=Zl.call(e,He),r=e[He];try{e[He]=void 0;var n=!0}catch(s){}var i=Ql.call(e);return n&&(t?e[He]=r:delete e[He]),i}var th=Object.prototype,eh=th.toString;function rh(e){return eh.call(e)}var nh="[object Null]",ih="[object Undefined]",Rs=Ct?Ct.toStringTag:void 0;function Et(e){return e==null?e===void 0?ih:nh:Rs&&Rs in Object(e)?Xl(e):rh(e)}function ot(e){return e!=null&&typeof e=="object"}var sh="[object Symbol]";function cr(e){return typeof e=="symbol"||ot(e)&&Et(e)==sh}function ca(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var oh=Array.isArray;const pt=oh;var ah=1/0,Ds=Ct?Ct.prototype:void 0,Cs=Ds?Ds.toString:void 0;function ua(e){if(typeof e=="string")return e;if(pt(e))return ca(e,ua)+"";if(cr(e))return Cs?Cs.call(e):"";var t=e+"";return t=="0"&&1/e==-ah?"-0":t}var ch=/\s/;function uh(e){for(var t=e.length;t--&&ch.test(e.charAt(t)););return t}var lh=/^\s+/;function hh(e){return e&&e.slice(0,uh(e)+1).replace(lh,"")}function at(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ps=NaN,fh=/^[-+]0x[0-9a-f]+$/i,ph=/^0b[01]+$/i,dh=/^0o[0-7]+$/i,mh=parseInt;function ks(e){if(typeof e=="number")return e;if(cr(e))return Ps;if(at(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=at(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hh(e);var r=ph.test(e);return r||dh.test(e)?mh(e.slice(2),r?2:8):fh.test(e)?Ps:+e}function Ci(e){return e}var gh="[object AsyncFunction]",vh="[object Function]",yh="[object GeneratorFunction]",bh="[object Proxy]";function ae(e){if(!at(e))return!1;var t=Et(e);return t==vh||t==yh||t==gh||t==bh}var _h=At["__core-js_shared__"];const jn=_h;var Ns=function(){var e=/[^.]+$/.exec(jn&&jn.keys&&jn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wh(e){return!!Ns&&Ns in e}var Eh=Function.prototype,Sh=Eh.toString;function le(e){if(e!=null){try{return Sh.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var xh=/[\\^$.*+?()[\]{}|]/g,Th=/^\[object .+?Constructor\]$/,$h=Function.prototype,Oh=Object.prototype,Ah=$h.toString,jh=Oh.hasOwnProperty,Rh=RegExp("^"+Ah.call(jh).replace(xh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dh(e){if(!at(e)||wh(e))return!1;var t=ae(e)?Rh:Th;return t.test(le(e))}function Ch(e,t){return e==null?void 0:e[t]}function he(e,t){var r=Ch(e,t);return Dh(r)?r:void 0}var Ph=he(At,"WeakMap");const Gn=Ph;var Bs=Object.create,kh=function(){function e(){}return function(t){if(!at(t))return{};if(Bs)return Bs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Nh=kh;function la(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Bh(){}function Ih(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Mh=800,Fh=16,Lh=Date.now;function Vh(e){var t=0,r=0;return function(){var n=Lh(),i=Fh-(n-r);if(r=n,i>0){if(++t>=Mh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Hh(e){return function(){return e}}var Uh=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Ur=Uh;var zh=Ur?function(e,t){return Ur(e,"toString",{configurable:!0,enumerable:!1,value:Hh(t),writable:!0})}:Ci;const qh=zh;var Kh=Vh(qh);const Jh=Kh;function Wh(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Yh=9007199254740991,Gh=/^(?:0|[1-9]\d*)$/;function nn(e,t){var r=typeof e;return t=t!=null?t:Yh,!!t&&(r=="number"||r!="symbol"&&Gh.test(e))&&e>-1&&e%1==0&&e<t}function sn(e,t,r){t=="__proto__"&&Ur?Ur(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ne(e,t){return e===t||e!==e&&t!==t}var Zh=Object.prototype,Qh=Zh.hasOwnProperty;function Pi(e,t,r){var n=e[t];(!(Qh.call(e,t)&&Ne(n,r))||r===void 0&&!(t in e))&&sn(e,t,r)}function ha(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],u=n?n(r[a],e[a],a,r,e):void 0;u===void 0&&(u=e[a]),i?sn(r,a,u):Pi(r,a,u)}return r}var Is=Math.max;function Xh(e,t,r){return t=Is(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Is(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(o),la(e,this,a)}}function fa(e,t){return Jh(Xh(e,t,Ci),e+"")}var tf=9007199254740991;function ki(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tf}function ur(e){return e!=null&&ki(e.length)&&!ae(e)}function pa(e,t,r){if(!at(r))return!1;var n=typeof t;return(n=="number"?ur(r)&&nn(t,r.length):n=="string"&&t in r)?Ne(r[t],e):!1}function da(e){return fa(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&pa(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t})}var ef=Object.prototype;function Ni(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ef;return e===r}function rf(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var nf="[object Arguments]";function Ms(e){return ot(e)&&Et(e)==nf}var ma=Object.prototype,sf=ma.hasOwnProperty,of=ma.propertyIsEnumerable,af=Ms(function(){return arguments}())?Ms:function(e){return ot(e)&&sf.call(e,"callee")&&!of.call(e,"callee")};const zr=af;function cf(){return!1}var ga=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fs=ga&&typeof module=="object"&&module&&!module.nodeType&&module,uf=Fs&&Fs.exports===ga,Ls=uf?At.Buffer:void 0,lf=Ls?Ls.isBuffer:void 0,hf=lf||cf;const Re=hf;var ff="[object Arguments]",pf="[object Array]",df="[object Boolean]",mf="[object Date]",gf="[object Error]",vf="[object Function]",yf="[object Map]",bf="[object Number]",_f="[object Object]",wf="[object RegExp]",Ef="[object Set]",Sf="[object String]",xf="[object WeakMap]",Tf="[object ArrayBuffer]",$f="[object DataView]",Of="[object Float32Array]",Af="[object Float64Array]",jf="[object Int8Array]",Rf="[object Int16Array]",Df="[object Int32Array]",Cf="[object Uint8Array]",Pf="[object Uint8ClampedArray]",kf="[object Uint16Array]",Nf="[object Uint32Array]",X={};X[Of]=X[Af]=X[jf]=X[Rf]=X[Df]=X[Cf]=X[Pf]=X[kf]=X[Nf]=!0,X[ff]=X[pf]=X[Tf]=X[df]=X[$f]=X[mf]=X[gf]=X[vf]=X[yf]=X[bf]=X[_f]=X[wf]=X[Ef]=X[Sf]=X[xf]=!1;function Bf(e){return ot(e)&&ki(e.length)&&!!X[Et(e)]}function lr(e){return function(t){return e(t)}}var va=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ge=va&&typeof module=="object"&&module&&!module.nodeType&&module,If=Ge&&Ge.exports===va,Rn=If&&oa.process,Mf=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||Rn&&Rn.binding&&Rn.binding("util")}catch(t){}}();const Pt=Mf;var Vs=Pt&&Pt.isTypedArray,Ff=Vs?lr(Vs):Bf;const Bi=Ff;var Lf=Object.prototype,Vf=Lf.hasOwnProperty;function ya(e,t){var r=pt(e),n=!r&&zr(e),i=!r&&!n&&Re(e),s=!r&&!n&&!i&&Bi(e),o=r||n||i||s,a=o?rf(e.length,String):[],u=a.length;for(var c in e)(t||Vf.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||nn(c,u)))&&a.push(c);return a}function ba(e,t){return function(r){return e(t(r))}}var Hf=ba(Object.keys,Object);const Uf=Hf;var zf=Object.prototype,qf=zf.hasOwnProperty;function Kf(e){if(!Ni(e))return Uf(e);var t=[];for(var r in Object(e))qf.call(e,r)&&r!="constructor"&&t.push(r);return t}function on(e){return ur(e)?ya(e):Kf(e)}function Jf(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Wf=Object.prototype,Yf=Wf.hasOwnProperty;function Gf(e){if(!at(e))return Jf(e);var t=Ni(e),r=[];for(var n in e)n=="constructor"&&(t||!Yf.call(e,n))||r.push(n);return r}function Ii(e){return ur(e)?ya(e,!0):Gf(e)}var Zf=da(function(e,t,r,n){ha(t,Ii(t),e,n)});const Hs=Zf;var Qf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xf=/^\w*$/;function Mi(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||cr(e)?!0:Xf.test(e)||!Qf.test(e)||t!=null&&e in Object(t)}var tp=he(Object,"create");const er=tp;function ep(){this.__data__=er?er(null):{},this.size=0}function rp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var np="__lodash_hash_undefined__",ip=Object.prototype,sp=ip.hasOwnProperty;function op(e){var t=this.__data__;if(er){var r=t[e];return r===np?void 0:r}return sp.call(t,e)?t[e]:void 0}var ap=Object.prototype,cp=ap.hasOwnProperty;function up(e){var t=this.__data__;return er?t[e]!==void 0:cp.call(t,e)}var lp="__lodash_hash_undefined__";function hp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=er&&t===void 0?lp:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=ep,Xt.prototype.delete=rp,Xt.prototype.get=op,Xt.prototype.has=up,Xt.prototype.set=hp;function fp(){this.__data__=[],this.size=0}function an(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1}var pp=Array.prototype,dp=pp.splice;function mp(e){var t=this.__data__,r=an(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():dp.call(t,r,1),--this.size,!0}function gp(e){var t=this.__data__,r=an(t,e);return r<0?void 0:t[r][1]}function vp(e){return an(this.__data__,e)>-1}function yp(e,t){var r=this.__data__,n=an(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function It(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}It.prototype.clear=fp,It.prototype.delete=mp,It.prototype.get=gp,It.prototype.has=vp,It.prototype.set=yp;var bp=he(At,"Map");const rr=bp;function _p(){this.size=0,this.__data__={hash:new Xt,map:new(rr||It),string:new Xt}}function wp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cn(e,t){var r=e.__data__;return wp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ep(e){var t=cn(this,e).delete(e);return this.size-=t?1:0,t}function Sp(e){return cn(this,e).get(e)}function xp(e){return cn(this,e).has(e)}function Tp(e,t){var r=cn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Mt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mt.prototype.clear=_p,Mt.prototype.delete=Ep,Mt.prototype.get=Sp,Mt.prototype.has=xp,Mt.prototype.set=Tp;var $p="Expected a function";function Fi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($p);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(Fi.Cache||Mt),r}Fi.Cache=Mt;var Op=500;function Ap(e){var t=Fi(e,function(n){return r.size===Op&&r.clear(),n}),r=t.cache;return t}var jp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rp=/\\(\\)?/g,Dp=Ap(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jp,function(r,n,i,s){t.push(i?s.replace(Rp,"$1"):n||r)}),t});const Cp=Dp;function fe(e){return e==null?"":ua(e)}function Li(e,t){return pt(e)?e:Mi(e,t)?[e]:Cp(fe(e))}var Pp=1/0;function hr(e){if(typeof e=="string"||cr(e))return e;var t=e+"";return t=="0"&&1/e==-Pp?"-0":t}function _a(e,t){t=Li(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[hr(t[r++])];return r&&r==n?e:void 0}function wa(e,t,r){var n=e==null?void 0:_a(e,t);return n===void 0?r:n}function kp(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Np=ba(Object.getPrototypeOf,Object);const Ea=Np;var Bp="[object Object]",Ip=Function.prototype,Mp=Object.prototype,Sa=Ip.toString,Fp=Mp.hasOwnProperty,Lp=Sa.call(Object);function Vi(e){if(!ot(e)||Et(e)!=Bp)return!1;var t=Ea(e);if(t===null)return!0;var r=Fp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Sa.call(r)==Lp}var Vp="[object DOMException]",Hp="[object Error]";function xa(e){if(!ot(e))return!1;var t=Et(e);return t==Hp||t==Vp||typeof e.message=="string"&&typeof e.name=="string"&&!Vi(e)}var Up=fa(function(e,t){try{return la(e,void 0,t)}catch(r){return xa(r)?r:new Error(r)}});const zp=Up;function qp(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}function Kp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:qp(e,t,r)}var Jp="\\ud800-\\udfff",Wp="\\u0300-\\u036f",Yp="\\ufe20-\\ufe2f",Gp="\\u20d0-\\u20ff",Zp=Wp+Yp+Gp,Qp="\\ufe0e\\ufe0f",Xp="\\u200d",td=RegExp("["+Xp+Jp+Zp+Qp+"]");function Ta(e){return td.test(e)}function ed(e){return e.split("")}var $a="\\ud800-\\udfff",rd="\\u0300-\\u036f",nd="\\ufe20-\\ufe2f",id="\\u20d0-\\u20ff",sd=rd+nd+id,od="\\ufe0e\\ufe0f",ad="["+$a+"]",Zn="["+sd+"]",Qn="\\ud83c[\\udffb-\\udfff]",cd="(?:"+Zn+"|"+Qn+")",Oa="[^"+$a+"]",Aa="(?:\\ud83c[\\udde6-\\uddff]){2}",ja="[\\ud800-\\udbff][\\udc00-\\udfff]",ud="\\u200d",Ra=cd+"?",Da="["+od+"]?",ld="(?:"+ud+"(?:"+[Oa,Aa,ja].join("|")+")"+Da+Ra+")*",hd=Da+Ra+ld,fd="(?:"+[Oa+Zn+"?",Zn,Aa,ja,ad].join("|")+")",pd=RegExp(Qn+"(?="+Qn+")|"+fd+hd,"g");function dd(e){return e.match(pd)||[]}function md(e){return Ta(e)?dd(e):ed(e)}function Ca(e){return function(t){t=fe(t);var r=Ta(t)?md(t):void 0,n=r?r[0]:t.charAt(0),i=r?Kp(r,1).join(""):t.slice(1);return n[e]()+i}}var gd=Ca("toUpperCase");const un=gd;function vd(e){return un(fe(e).toLowerCase())}function yd(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n;++i<s;)r=t(r,e[i],i,e);return r}function Pa(e){return function(t){return e==null?void 0:e[t]}}var bd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},_d=Pa(bd);const wd=_d;var Ed=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sd="\\u0300-\\u036f",xd="\\ufe20-\\ufe2f",Td="\\u20d0-\\u20ff",$d=Sd+xd+Td,Od="["+$d+"]",Ad=RegExp(Od,"g");function jd(e){return e=fe(e),e&&e.replace(Ed,wd).replace(Ad,"")}var Rd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Dd(e){return e.match(Rd)||[]}var Cd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Pd(e){return Cd.test(e)}var ka="\\ud800-\\udfff",kd="\\u0300-\\u036f",Nd="\\ufe20-\\ufe2f",Bd="\\u20d0-\\u20ff",Id=kd+Nd+Bd,Na="\\u2700-\\u27bf",Ba="a-z\\xdf-\\xf6\\xf8-\\xff",Md="\\xac\\xb1\\xd7\\xf7",Fd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ld="\\u2000-\\u206f",Vd=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ia="A-Z\\xc0-\\xd6\\xd8-\\xde",Hd="\\ufe0e\\ufe0f",Ma=Md+Fd+Ld+Vd,Fa="['’]",Us="["+Ma+"]",Ud="["+Id+"]",La="\\d+",zd="["+Na+"]",Va="["+Ba+"]",Ha="[^"+ka+Ma+La+Na+Ba+Ia+"]",qd="\\ud83c[\\udffb-\\udfff]",Kd="(?:"+Ud+"|"+qd+")",Jd="[^"+ka+"]",Ua="(?:\\ud83c[\\udde6-\\uddff]){2}",za="[\\ud800-\\udbff][\\udc00-\\udfff]",_e="["+Ia+"]",Wd="\\u200d",zs="(?:"+Va+"|"+Ha+")",Yd="(?:"+_e+"|"+Ha+")",qs="(?:"+Fa+"(?:d|ll|m|re|s|t|ve))?",Ks="(?:"+Fa+"(?:D|LL|M|RE|S|T|VE))?",qa=Kd+"?",Ka="["+Hd+"]?",Gd="(?:"+Wd+"(?:"+[Jd,Ua,za].join("|")+")"+Ka+qa+")*",Zd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xd=Ka+qa+Gd,tm="(?:"+[zd,Ua,za].join("|")+")"+Xd,em=RegExp([_e+"?"+Va+"+"+qs+"(?="+[Us,_e,"$"].join("|")+")",Yd+"+"+Ks+"(?="+[Us,_e+zs,"$"].join("|")+")",_e+"?"+zs+"+"+qs,_e+"+"+Ks,Qd,Zd,La,tm].join("|"),"g");function rm(e){return e.match(em)||[]}function nm(e,t,r){return e=fe(e),t=t,t===void 0?Pd(e)?rm(e):Dd(e):e.match(t)||[]}var im="['’]",sm=RegExp(im,"g");function Hi(e){return function(t){return yd(nm(jd(t).replace(sm,"")),e,"")}}var om=Hi(function(e,t,r){return t=t.toLowerCase(),e+(r?vd(t):t)});const Nt=om;function am(){this.__data__=new It,this.size=0}function cm(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function um(e){return this.__data__.get(e)}function lm(e){return this.__data__.has(e)}var hm=200;function fm(e,t){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!rr||n.length<hm-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Mt(n)}return r.set(e,t),this.size=r.size,this}function Ot(e){var t=this.__data__=new It(e);this.size=t.size}Ot.prototype.clear=am,Ot.prototype.delete=cm,Ot.prototype.get=um,Ot.prototype.has=lm,Ot.prototype.set=fm;var Ja=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Js=Ja&&typeof module=="object"&&module&&!module.nodeType&&module,pm=Js&&Js.exports===Ja,Ws=pm?At.Buffer:void 0,Ys=Ws?Ws.allocUnsafe:void 0;function Wa(e,t){if(t)return e.slice();var r=e.length,n=Ys?Ys(r):new e.constructor(r);return e.copy(n),n}function dm(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function mm(){return[]}var gm=Object.prototype,vm=gm.propertyIsEnumerable,Gs=Object.getOwnPropertySymbols,ym=Gs?function(e){return e==null?[]:(e=Object(e),dm(Gs(e),function(t){return vm.call(e,t)}))}:mm;const bm=ym;function _m(e,t,r){var n=t(e);return pt(e)?n:kp(n,r(e))}function Xn(e){return _m(e,on,bm)}var wm=he(At,"DataView");const ti=wm;var Em=he(At,"Promise");const ei=Em;var Sm=he(At,"Set");const ri=Sm;var Zs="[object Map]",xm="[object Object]",Qs="[object Promise]",Xs="[object Set]",to="[object WeakMap]",eo="[object DataView]",Tm=le(ti),$m=le(rr),Om=le(ei),Am=le(ri),jm=le(Gn),Qt=Et;(ti&&Qt(new ti(new ArrayBuffer(1)))!=eo||rr&&Qt(new rr)!=Zs||ei&&Qt(ei.resolve())!=Qs||ri&&Qt(new ri)!=Xs||Gn&&Qt(new Gn)!=to)&&(Qt=function(e){var t=Et(e),r=t==xm?e.constructor:void 0,n=r?le(r):"";if(n)switch(n){case Tm:return eo;case $m:return Zs;case Om:return Qs;case Am:return Xs;case jm:return to}return t});const nr=Qt;var Rm=Object.prototype,Dm=Rm.hasOwnProperty;function Cm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Dm.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Pm=At.Uint8Array;const qr=Pm;function Ui(e){var t=new e.constructor(e.byteLength);return new qr(t).set(new qr(e)),t}function km(e,t){var r=Ui(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var Nm=/\w*$/;function Bm(e){var t=new e.constructor(e.source,Nm.exec(e));return t.lastIndex=e.lastIndex,t}var ro=Ct?Ct.prototype:void 0,no=ro?ro.valueOf:void 0;function Im(e){return no?Object(no.call(e)):{}}function Ya(e,t){var r=t?Ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Mm="[object Boolean]",Fm="[object Date]",Lm="[object Map]",Vm="[object Number]",Hm="[object RegExp]",Um="[object Set]",zm="[object String]",qm="[object Symbol]",Km="[object ArrayBuffer]",Jm="[object DataView]",Wm="[object Float32Array]",Ym="[object Float64Array]",Gm="[object Int8Array]",Zm="[object Int16Array]",Qm="[object Int32Array]",Xm="[object Uint8Array]",tg="[object Uint8ClampedArray]",eg="[object Uint16Array]",rg="[object Uint32Array]";function ng(e,t,r){var n=e.constructor;switch(t){case Km:return Ui(e);case Mm:case Fm:return new n(+e);case Jm:return km(e);case Wm:case Ym:case Gm:case Zm:case Qm:case Xm:case tg:case eg:case rg:return Ya(e,r);case Lm:return new n;case Vm:case zm:return new n(e);case Hm:return Bm(e);case Um:return new n;case qm:return Im(e)}}function Ga(e){return typeof e.constructor=="function"&&!Ni(e)?Nh(Ea(e)):{}}var ig="[object Map]";function sg(e){return ot(e)&&nr(e)==ig}var io=Pt&&Pt.isMap,og=io?lr(io):sg;const ag=og;var cg="[object Set]";function ug(e){return ot(e)&&nr(e)==cg}var so=Pt&&Pt.isSet,lg=so?lr(so):ug;const hg=lg;var fg=1,Za="[object Arguments]",pg="[object Array]",dg="[object Boolean]",mg="[object Date]",gg="[object Error]",Qa="[object Function]",vg="[object GeneratorFunction]",yg="[object Map]",bg="[object Number]",Xa="[object Object]",_g="[object RegExp]",wg="[object Set]",Eg="[object String]",Sg="[object Symbol]",xg="[object WeakMap]",Tg="[object ArrayBuffer]",$g="[object DataView]",Og="[object Float32Array]",Ag="[object Float64Array]",jg="[object Int8Array]",Rg="[object Int16Array]",Dg="[object Int32Array]",Cg="[object Uint8Array]",Pg="[object Uint8ClampedArray]",kg="[object Uint16Array]",Ng="[object Uint32Array]",Q={};Q[Za]=Q[pg]=Q[Tg]=Q[$g]=Q[dg]=Q[mg]=Q[Og]=Q[Ag]=Q[jg]=Q[Rg]=Q[Dg]=Q[yg]=Q[bg]=Q[Xa]=Q[_g]=Q[wg]=Q[Eg]=Q[Sg]=Q[Cg]=Q[Pg]=Q[kg]=Q[Ng]=!0,Q[gg]=Q[Qa]=Q[xg]=!1;function jr(e,t,r,n,i,s){var o,a=t&fg;if(o!==void 0)return o;if(!at(e))return e;var u=pt(e);if(u)o=Cm(e);else{var c=nr(e),l=c==Qa||c==vg;if(Re(e))return Wa(e,a);if(c==Xa||c==Za||l&&!i)o=l?{}:Ga(e);else{if(!Q[c])return i?e:{};o=ng(e,c,a)}}s||(s=new Ot);var h=s.get(e);if(h)return h;s.set(e,o),hg(e)?e.forEach(function(d){o.add(jr(d,t,r,d,e,s))}):ag(e)&&e.forEach(function(d,m){o.set(m,jr(d,t,r,m,e,s))});var f=Xn,p=u?void 0:f(e);return Wh(p||e,function(d,m){p&&(m=d,d=e[m]),Pi(o,m,jr(d,t,r,m,e,s))}),o}var Bg=1,Ig=4;function ir(e){return jr(e,Bg|Ig)}var Mg="__lodash_hash_undefined__";function Fg(e){return this.__data__.set(e,Mg),this}function Lg(e){return this.__data__.has(e)}function Rr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Mt;++t<r;)this.add(e[t])}Rr.prototype.add=Rr.prototype.push=Fg,Rr.prototype.has=Lg;function Vg(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Hg(e,t){return e.has(t)}var Ug=1,zg=2;function tc(e,t,r,n,i,s){var o=r&Ug,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var h=-1,f=!0,p=r&zg?new Rr:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var d=e[h],m=t[h];if(n)var b=o?n(m,d,h,t,e,s):n(d,m,h,e,t,s);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!Vg(t,function(E,g){if(!Hg(p,g)&&(d===E||i(d,E,r,n,s)))return p.push(g)})){f=!1;break}}else if(!(d===m||i(d,m,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function qg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function Kg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Jg=1,Wg=2,Yg="[object Boolean]",Gg="[object Date]",Zg="[object Error]",Qg="[object Map]",Xg="[object Number]",t1="[object RegExp]",e1="[object Set]",r1="[object String]",n1="[object Symbol]",i1="[object ArrayBuffer]",s1="[object DataView]",oo=Ct?Ct.prototype:void 0,Dn=oo?oo.valueOf:void 0;function o1(e,t,r,n,i,s,o){switch(r){case s1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case i1:return!(e.byteLength!=t.byteLength||!s(new qr(e),new qr(t)));case Yg:case Gg:case Xg:return Ne(+e,+t);case Zg:return e.name==t.name&&e.message==t.message;case t1:case r1:return e==t+"";case Qg:var a=qg;case e1:var u=n&Jg;if(a||(a=Kg),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Wg,o.set(e,t);var l=tc(a(e),a(t),n,i,s,o);return o.delete(e),l;case n1:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}var a1=1,c1=Object.prototype,u1=c1.hasOwnProperty;function l1(e,t,r,n,i,s){var o=r&a1,a=Xn(e),u=a.length,c=Xn(t),l=c.length;if(u!=l&&!o)return!1;for(var h=u;h--;){var f=a[h];if(!(o?f in t:u1.call(t,f)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var b=o;++h<u;){f=a[h];var E=e[f],g=t[f];if(n)var y=o?n(g,E,f,t,e,s):n(E,g,f,e,t,s);if(!(y===void 0?E===g||i(E,g,r,n,s):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(m=!1)}return s.delete(e),s.delete(t),m}var h1=1,ao="[object Arguments]",co="[object Array]",yr="[object Object]",f1=Object.prototype,uo=f1.hasOwnProperty;function p1(e,t,r,n,i,s){var o=pt(e),a=pt(t),u=o?co:nr(e),c=a?co:nr(t);u=u==ao?yr:u,c=c==ao?yr:c;var l=u==yr,h=c==yr,f=u==c;if(f&&Re(e)){if(!Re(t))return!1;o=!0,l=!1}if(f&&!l)return s||(s=new Ot),o||Bi(e)?tc(e,t,r,n,i,s):o1(e,t,u,r,n,i,s);if(!(r&h1)){var p=l&&uo.call(e,"__wrapped__"),d=h&&uo.call(t,"__wrapped__");if(p||d){var m=p?e.value():e,b=d?t.value():t;return s||(s=new Ot),i(m,b,r,n,s)}}return f?(s||(s=new Ot),l1(e,t,r,n,i,s)):!1}function ln(e,t,r,n,i){return e===t?!0:e==null||t==null||!ot(e)&&!ot(t)?e!==e&&t!==t:p1(e,t,r,n,ln,i)}var d1=1,m1=2;function g1(e,t,r,n){var i=r.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=r[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=r[i];var a=o[0],u=e[a],c=o[1];if(o[2]){if(u===void 0&&!(a in e))return!1}else{var l=new Ot,h;if(!(h===void 0?ln(c,u,d1|m1,n,l):h))return!1}}return!0}function ec(e){return e===e&&!at(e)}function v1(e){for(var t=on(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ec(i)]}return t}function rc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function y1(e){var t=v1(e);return t.length==1&&t[0][2]?rc(t[0][0],t[0][1]):function(r){return r===e||g1(r,e,t)}}function b1(e,t){return e!=null&&t in Object(e)}function _1(e,t,r){t=Li(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=hr(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&ki(i)&&nn(o,i)&&(pt(e)||zr(e)))}function w1(e,t){return e!=null&&_1(e,t,b1)}var E1=1,S1=2;function x1(e,t){return Mi(e)&&ec(t)?rc(hr(e),t):function(r){var n=wa(r,e);return n===void 0&&n===t?w1(r,e):ln(t,n,E1|S1)}}function T1(e){return function(t){return t==null?void 0:t[e]}}function $1(e){return function(t){return _a(t,e)}}function O1(e){return Mi(e)?T1(hr(e)):$1(e)}function A1(e){return typeof e=="function"?e:e==null?Ci:typeof e=="object"?pt(e)?x1(e[0],e[1]):y1(e):O1(e)}function j1(e,t,r,n){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(n,o,r(o),e)}return n}function R1(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var u=o[++i];if(r(s[u],u,s)===!1)break}return t}}var D1=R1();const nc=D1;function C1(e,t){return e&&nc(e,t,on)}function P1(e,t){return function(r,n){if(r==null)return r;if(!ur(r))return e(r,n);for(var i=r.length,s=-1,o=Object(r);++s<i&&n(o[s],s,o)!==!1;);return r}}var k1=P1(C1);const N1=k1;function B1(e,t,r,n){return N1(e,function(i,s,o){t(n,i,r(i),o)}),n}function I1(e,t){return function(r,n){var i=pt(r)?j1:B1,s={};return i(r,e,A1(n),s)}}var M1=function(){return At.Date.now()};const Cn=M1;var F1="Expected a function",L1=Math.max,V1=Math.min;function zi(e,t,r){var n,i,s,o,a,u,c=0,l=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(F1);t=ks(t)||0,at(r)&&(l=!!r.leading,h="maxWait"in r,s=h?L1(ks(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(v){var x=n,O=i;return n=i=void 0,c=v,o=e.apply(O,x),o}function d(v){return c=v,a=setTimeout(E,t),l?p(v):o}function m(v){var x=v-u,O=v-c,V=t-x;return h?V1(V,s-O):V}function b(v){var x=v-u,O=v-c;return u===void 0||x>=t||x<0||h&&O>=s}function E(){var v=Cn();if(b(v))return g(v);a=setTimeout(E,m(v))}function g(v){return a=void 0,f&&n?p(v):(n=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,n=u=i=a=void 0}function _(){return a===void 0?o:g(Cn())}function S(){var v=Cn(),x=b(v);if(n=arguments,i=this,u=v,x){if(a===void 0)return d(u);if(h)return clearTimeout(a),a=setTimeout(E,t),p(u)}return a===void 0&&(a=setTimeout(E,t)),o}return S.cancel=y,S.flush=_,S}function ni(e,t,r){(r!==void 0&&!Ne(e[t],r)||r===void 0&&!(t in e))&&sn(e,t,r)}function H1(e){return ot(e)&&ur(e)}function ii(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function U1(e){return ha(e,Ii(e))}function z1(e,t,r,n,i,s,o){var a=ii(e,r),u=ii(t,r),c=o.get(u);if(c){ni(e,r,c);return}var l=s?s(a,u,r+"",e,t,o):void 0,h=l===void 0;if(h){var f=pt(u),p=!f&&Re(u),d=!f&&!p&&Bi(u);l=u,f||p||d?pt(a)?l=a:H1(a)?l=Ih(a):p?(h=!1,l=Wa(u,!0)):d?(h=!1,l=Ya(u,!0)):l=[]:Vi(u)||zr(u)?(l=a,zr(a)?l=U1(a):(!at(a)||ae(a))&&(l=Ga(u))):h=!1}h&&(o.set(u,l),i(l,u,n,s,o),o.delete(u)),ni(e,r,l)}function ic(e,t,r,n,i){e!==t&&nc(t,function(s,o){if(i||(i=new Ot),at(s))z1(e,t,o,r,ic,n,i);else{var a=n?n(ii(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),ni(e,o,a)}},Ii)}var q1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},K1=Pa(q1);const J1=K1;var sc=/[&<>"']/g,W1=RegExp(sc.source);function Y1(e){return e=fe(e),e&&W1.test(e)?e.replace(sc,J1):e}var G1=Object.prototype,Z1=G1.hasOwnProperty,Q1=I1(function(e,t,r){Z1.call(e,r)?e[r].push(t):sn(e,r,[t])});const oc=Q1;var X1="[object String]";function bt(e){return typeof e=="string"||!pt(e)&&ot(e)&&Et(e)==X1}function t0(e,t){return ca(t,function(r){return e[r]})}var e0="[object ArrayBuffer]";function r0(e){return ot(e)&&Et(e)==e0}var lo=Pt&&Pt.isArrayBuffer,n0=lo?lr(lo):r0;const i0=n0;var s0="[object Boolean]";function o0(e){return e===!0||e===!1||ot(e)&&Et(e)==s0}var a0="[object Date]";function c0(e){return ot(e)&&Et(e)==a0}var ho=Pt&&Pt.isDate,u0=ho?lr(ho):c0;const l0=u0;function h0(e,t){return ln(e,t)}var f0="[object Number]";function ac(e){return typeof e=="number"||ot(e)&&Et(e)==f0}function p0(e){return ac(e)&&e!=+e}function d0(e){return e===null}function m0(e){return e===void 0}var g0=Hi(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const v0=g0;var y0=Ca("toLowerCase");const b0=y0;var _0=da(function(e,t,r){ic(e,t,r)});const Dt=_0;function w0(e,t,r,n){if(!at(e))return e;t=Li(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=hr(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var l=a[u];c=void 0,c===void 0&&(c=at(l)?l:nn(t[i+1])?[]:{})}Pi(a,u,c),a=a[u]}return e}function E0(e,t,r){return e==null?e:w0(e,t,r)}var S0=Hi(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const x0=S0;var cc=Object.prototype,T0=cc.hasOwnProperty;function fo(e,t,r,n){return e===void 0||Ne(e,cc[r])&&!T0.call(n,r)?t:e}var $0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function O0(e){return"\\"+$0[e]}var A0=/<%=([\s\S]+?)%>/g;const uc=A0;var j0=/<%-([\s\S]+?)%>/g;const R0=j0;var D0=/<%([\s\S]+?)%>/g;const C0=D0;var P0={escape:R0,evaluate:C0,interpolate:uc,variable:"",imports:{_:{escape:Y1}}};const po=P0;var k0="Invalid `variable` option passed into `_.template`",N0=/\b__p \+= '';/g,B0=/\b(__p \+=) '' \+/g,I0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,M0=/[()=,{}\[\]\/\s]/,F0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,br=/($^)/,L0=/['\n\r\u2028\u2029\\]/g,V0=Object.prototype,mo=V0.hasOwnProperty;function lc(e,t,r){var n=po.imports._.templateSettings||po;r&&pa(e,t,r)&&(t=void 0),e=fe(e),t=Hs({},t,n,fo);var i=Hs({},t.imports,n.imports,fo),s=on(i),o=t0(i,s),a,u,c=0,l=t.interpolate||br,h="__p += '",f=RegExp((t.escape||br).source+"|"+l.source+"|"+(l===uc?F0:br).source+"|"+(t.evaluate||br).source+"|$","g"),p=mo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
3
  `:"";e.replace(f,function(b,E,g,y,_,S){return g||(g=y),h+=e.slice(c,S).replace(L0,O0),E&&(a=!0,h+=`' +
4
4
  __e(`+E+`) +
@@ -47,37 +47,37 @@ version: 2.9.0
47
47
  * author : Adam Draper
48
48
  * license : MIT
49
49
  * http://adamwdraper.github.com/Numeral-js/
50
- */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ht,function(){var t,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(c,l){this._input=c,this._value=l}return t=function(c){var l,h,f,p;if(t.isNumeral(c))l=c.value();else if(c===0||typeof c>"u")l=0;else if(c===null||r.isNaN(c))l=null;else if(typeof c=="string")if(a.zeroFormat&&c===a.zeroFormat)l=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)l=null;else{for(h in i)if(p=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,p&&c.match(p)){f=i[h].unformat;break}f=f||t._.stringToNumber,l=f(c)}else l=Number(c)||null;return new u(c,l)},t.version=n,t.isNumeral=function(c){return c instanceof u},t._=r={numberToFormat:function(c,l,h){var f=s[t.options.currentLocale],p=!1,d=!1,m=0,b="",E=1e12,g=1e9,y=1e6,_=1e3,S="",v=!1,x,O,V,w,T,M,C;if(c=c||0,O=Math.abs(c),t._.includes(l,"(")?(p=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):c<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),t._.includes(l,"a")&&(x=l.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(l," a")&&(b=" "),l=l.replace(new RegExp(b+"a[kmbt]?"),""),O>=E&&!x||x==="t"?(b+=f.abbreviations.trillion,c=c/E):O<E&&O>=g&&!x||x==="b"?(b+=f.abbreviations.billion,c=c/g):O<g&&O>=y&&!x||x==="m"?(b+=f.abbreviations.million,c=c/y):(O<y&&O>=_&&!x||x==="k")&&(b+=f.abbreviations.thousand,c=c/_)),t._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),V=c.toString().split(".")[0],w=l.split(".")[1],M=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),S=t._.toFixed(c,w[0].length+w[1].length,h,w[1].length)):S=t._.toFixed(c,w.length,h),V=S.split(".")[0],t._.includes(S,".")?S=f.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):V=t._.toFixed(c,0,h),b&&!x&&Number(V)>=1e3&&b!==f.abbreviations.trillion)switch(V=String(Number(V)/1e3),b){case f.abbreviations.thousand:b=f.abbreviations.million;break;case f.abbreviations.million:b=f.abbreviations.billion;break;case f.abbreviations.billion:b=f.abbreviations.trillion;break}if(t._.includes(V,"-")&&(V=V.slice(1),v=!0),V.length<m)for(var I=m-V.length;I>0;I--)V="0"+V;return M>-1&&(V=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),l.indexOf(".")===0&&(V=""),C=V+S+(b||""),p?C=(p&&v?"(":"")+C+(p&&v?")":""):T>=0?C=T===0?(v?"-":"+")+C:C+(v?"-":"+"):v&&(C="-"+C),C},stringToNumber:function(c){var l=s[a.currentLocale],h=c,f={thousand:3,million:6,billion:9,trillion:12},p,d,m;if(a.zeroFormat&&c===a.zeroFormat)d=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(p in f)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[p]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),h.match(m)){d*=Math.pow(10,f[p]);break}d*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),d*=Number(c)}return d},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,l){return c.indexOf(l)!==-1},insert:function(c,l,h){return c.slice(0,h)+l+c.slice(h)},reduce:function(c,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var h=Object(c),f=h.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<f&&!(p in h);)p++;if(p>=f)throw new TypeError("Reduce of empty array with no initial value");d=h[p++]}for(;p<f;p++)p in h&&(d=l(d,h[p],p,h));return d},multiplier:function(c){var l=c.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(l,h){var f=r.multiplier(h);return l>f?l:f},1)},toFixed:function(c,l,h,f){var p=c.toString().split("."),d=l-(f||0),m,b,E,g;return p.length===2?m=Math.min(Math.max(p[1].length,d),l):m=d,E=Math.pow(10,m),g=(h(c+"e+"+m)/E).toFixed(m),f>l-m&&(b=new RegExp("\\.?0{1,"+(f-(l-m))+"}$"),g=g.replace(b,"")),g}},t.options=a,t.formats=i,t.locales=s,t.locale=function(c){return c&&(a.currentLocale=c.toLowerCase()),a.currentLocale},t.localeData=function(c){if(!c)return s[a.currentLocale];if(c=c.toLowerCase(),!s[c])throw new Error("Unknown locale : "+c);return s[c]},t.reset=function(){for(var c in o)a[c]=o[c]},t.zeroFormat=function(c){a.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){a.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){a.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,l,h){if(l=l.toLowerCase(),this[c+"s"][l])throw new TypeError(l+" "+c+" already registered.");return this[c+"s"][l]=h,h},t.validate=function(c,l){var h,f,p,d,m,b,E,g;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{E=t.localeData(l)}catch(y){E=t.localeData(t.locale())}return p=E.currency.symbol,m=E.abbreviations,h=E.delimiters.decimal,E.delimiters.thousands==="."?f="\\.":f=E.delimiters.thousands,g=c.match(/^[^\d]+/),g!==null&&(c=c.substr(1),g[0]!==p)||(g=c.match(/[^\d]+$/),g!==null&&(c=c.slice(0,-1),g[0]!==m.thousand&&g[0]!==m.million&&g[0]!==m.billion&&g[0]!==m.trillion))?!1:(b=new RegExp(f+"{2}"),c.match(/[^\d.,]/g)?!1:(d=c.split(h),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(c,l){var h=this._value,f=c||a.defaultFormat,p,d,m;if(l=l||Math.round,h===0&&a.zeroFormat!==null)d=a.zeroFormat;else if(h===null&&a.nullFormat!==null)d=a.nullFormat;else{for(p in i)if(f.match(i[p].regexps.format)){m=i[p].format;break}m=m||t._.numberToFormat,d=m(h,f,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f+Math.round(l*p)}return this._value=r.reduce([this._value,c],h,0)/l,this},subtract:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f-Math.round(l*p)}return this._value=r.reduce([c],h,Math.round(this._value*l))/l,this},multiply:function(c){function l(h,f,p,d){var m=r.correctionFactor(h,f);return Math.round(h*m)*Math.round(f*m)/Math.round(m*m)}return this._value=r.reduce([this._value,c],l,1),this},divide:function(c){function l(h,f,p,d){var m=r.correctionFactor(h,f);return Math.round(h*m)/Math.round(f*m)}return this._value=r.reduce([this._value,c],l),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var l=c%10;return~~(c%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,l,h){var f=t._.includes(l," BPS")?" ":"",p;return c=c*1e4,l=l.replace(/\s?BPS/,""),p=t._.numberToFormat(c,l,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"BPS"),p=p.join("")):p=p+f+"BPS",p},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(l.suffixes.filter(function(p){return c.suffixes.indexOf(p)<0})),f=h.join("|");f="("+f.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(p,d,m){var b,E=t._.includes(d,"ib")?l:c,g=t._.includes(d," b")||t._.includes(d," ib")?" ":"",y,_,S;for(d=d.replace(/\s?i?b/,""),y=0;y<=E.suffixes.length;y++)if(_=Math.pow(E.base,y),S=Math.pow(E.base,y+1),p===null||p===0||p>=_&&p<S){g+=E.suffixes[y],_>0&&(p=p/_);break}return b=t._.numberToFormat(p,d,m),b+g},unformat:function(p){var d=t._.stringToNumber(p),m,b;if(d){for(m=c.suffixes.length-1;m>=0;m--){if(t._.includes(p,c.suffixes[m])){b=Math.pow(c.base,m);break}if(t._.includes(p,l.suffixes[m])){b=Math.pow(l.base,m);break}}d*=b||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,l,h){var f=t.locales[t.options.currentLocale],p={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(l=l.replace(/\s?\$\s?/,""),d=t._.numberToFormat(c,l,h),c>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(p.before,"-")&&!t._.includes(p.before,"(")&&(p.before="-"+p.before),b=0;b<p.before.length;b++)switch(m=p.before[b],m){case"$":d=t._.insert(d,f.currency.symbol,b);break;case" ":d=t._.insert(d," ",b+f.currency.symbol.length-1);break}for(b=p.after.length-1;b>=0;b--)switch(m=p.after[b],m){case"$":d=b===p.after.length-1?d+f.currency.symbol:t._.insert(d,f.currency.symbol,-(p.after.length-(1+b)));break;case" ":d=b===p.after.length-1?d+" ":t._.insert(d," ",-(p.after.length-(1+b)+f.currency.symbol.length-1));break}return d}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,l,h){var f,p=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",d=p.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(d[0]),l,h),f+"e"+d[1]},unformat:function(c){var l=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(l[0]),f=Number(l[1]);f=t._.includes(c,"e-")?f*=-1:f;function p(d,m,b,E){var g=t._.correctionFactor(d,m),y=d*g*(m*g)/(g*g);return y}return t._.reduce([h,Math.pow(10,f)],p,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,l,h){var f=t.locales[t.options.currentLocale],p,d=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=f.ordinal(c),p=t._.numberToFormat(c,l,h),p+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,l,h){var f=t._.includes(l," %")?" ":"",p;return t.options.scalePercentBy100&&(c=c*100),l=l.replace(/\s?\%/,""),p=t._.numberToFormat(c,l,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"%"),p=p.join("")):p=p+f+"%",p},unformat:function(c){var l=t._.stringToNumber(c);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,l,h){var f=Math.floor(c/60/60),p=Math.floor((c-f*60*60)/60),d=Math.round(c-f*60*60-p*60);return f+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(c){var l=c.split(":"),h=0;return l.length===3?(h=h+Number(l[0])*60*60,h=h+Number(l[1])*60,h=h+Number(l[2])):l.length===2&&(h=h+Number(l[0])*60,h=h+Number(l[1])),Number(h)}})}(),t})})(Rc);var Dv=Rc.exports;const Dc=Be(Dv);function Cv(e,t="0.00"){return Dc(e).format(t)}function Pv(e,t=2,r){return(r?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var Cc={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ht,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",c="day",l="week",h="month",f="quarter",p="year",d="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|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,g={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(I){var D=["th","st","nd","rd"],k=I%100;return"["+I+(D[(k-20)%10]||D[k]||D[0])+"]"}},y=function(I,D,k){var U=String(I);return!U||U.length>=D?I:""+Array(D+1-U.length).join(k)+I},_={s:y,z:function(I){var D=-I.utcOffset(),k=Math.abs(D),U=Math.floor(k/60),H=k%60;return(D<=0?"+":"-")+y(U,2,"0")+":"+y(H,2,"0")},m:function I(D,k){if(D.date()<k.date())return-I(k,D);var U=12*(k.year()-D.year())+(k.month()-D.month()),H=D.clone().add(U,h),q=k-H<0,K=D.clone().add(U+(q?-1:1),h);return+(-(U+(k-H)/(q?H-K:K-H))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:h,y:p,w:l,d:c,D:d,h:u,m:a,s:o,ms:s,Q:f}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",v={};v[S]=g;var x="$isDayjsObject",O=function(I){return I instanceof M||!(!I||!I[x])},V=function I(D,k,U){var H;if(!D)return S;if(typeof D=="string"){var q=D.toLowerCase();v[q]&&(H=q),k&&(v[q]=k,H=q);var K=D.split("-");if(!H&&K.length>1)return I(K[0])}else{var A=D.name;v[A]=D,H=A}return!U&&H&&(S=H),H||!U&&S},w=function(I,D){if(O(I))return I.clone();var k=typeof D=="object"?D:{};return k.date=I,k.args=arguments,new M(k)},T=_;T.l=V,T.i=O,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var M=function(){function I(k){this.$L=V(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(k){this.$d=function(U){var H=U.date,q=U.utc;if(H===null)return new Date(NaN);if(T.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var K=H.match(b);if(K){var A=K[2]-1||0,P=(K[7]||"0").substring(0,3);return q?new Date(Date.UTC(K[1],A,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)):new Date(K[1],A,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)}}return new Date(H)}(k),this.init()},D.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(k,U){var H=w(k);return this.startOf(U)<=H&&H<=this.endOf(U)},D.isAfter=function(k,U){return w(k)<this.startOf(U)},D.isBefore=function(k,U){return this.endOf(U)<w(k)},D.$g=function(k,U,H){return T.u(k)?this[U]:this.set(H,k)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(k,U){var H=this,q=!!T.u(U)||U,K=T.p(k),A=function(Yt,dt){var Lt=T.w(H.$u?Date.UTC(H.$y,dt,Yt):new Date(H.$y,dt,Yt),H);return q?Lt:Lt.endOf(c)},P=function(Yt,dt){return T.w(H.toDate()[Yt].apply(H.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(dt)),H)},N=this.$W,B=this.$M,St=this.$D,pe="set"+(this.$u?"UTC":"");switch(K){case p:return q?A(1,0):A(31,11);case h:return q?A(1,B):A(0,B+1);case l:var Wt=this.$locale().weekStart||0,Le=(N<Wt?N+7:N)-Wt;return A(q?St-Le:St+(6-Le),B);case c:case d:return P(pe+"Hours",0);case u:return P(pe+"Minutes",1);case a:return P(pe+"Seconds",2);case o:return P(pe+"Milliseconds",3);default:return this.clone()}},D.endOf=function(k){return this.startOf(k,!1)},D.$set=function(k,U){var H,q=T.p(k),K="set"+(this.$u?"UTC":""),A=(H={},H[c]=K+"Date",H[d]=K+"Date",H[h]=K+"Month",H[p]=K+"FullYear",H[u]=K+"Hours",H[a]=K+"Minutes",H[o]=K+"Seconds",H[s]=K+"Milliseconds",H)[q],P=q===c?this.$D+(U-this.$W):U;if(q===h||q===p){var N=this.clone().set(d,1);N.$d[A](P),N.init(),this.$d=N.set(d,Math.min(this.$D,N.daysInMonth())).$d}else A&&this.$d[A](P);return this.init(),this},D.set=function(k,U){return this.clone().$set(k,U)},D.get=function(k){return this[T.p(k)]()},D.add=function(k,U){var H,q=this;k=Number(k);var K=T.p(U),A=function(B){var St=w(q);return T.w(St.date(St.date()+Math.round(B*k)),q)};if(K===h)return this.set(h,this.$M+k);if(K===p)return this.set(p,this.$y+k);if(K===c)return A(1);if(K===l)return A(7);var P=(H={},H[a]=n,H[u]=i,H[o]=r,H)[K]||1,N=this.$d.getTime()+k*P;return T.w(N,this)},D.subtract=function(k,U){return this.add(-1*k,U)},D.format=function(k){var U=this,H=this.$locale();if(!this.isValid())return H.invalidDate||m;var q=k||"YYYY-MM-DDTHH:mm:ssZ",K=T.z(this),A=this.$H,P=this.$m,N=this.$M,B=H.weekdays,St=H.months,pe=H.meridiem,Wt=function(dt,Lt,Ve,mr){return dt&&(dt[Lt]||dt(U,q))||Ve[Lt].slice(0,mr)},Le=function(dt){return T.s(A%12||12,dt,"0")},Yt=pe||function(dt,Lt,Ve){var mr=dt<12?"AM":"PM";return Ve?mr.toLowerCase():mr};return q.replace(E,function(dt,Lt){return Lt||function(Ve){switch(Ve){case"YY":return String(U.$y).slice(-2);case"YYYY":return T.s(U.$y,4,"0");case"M":return N+1;case"MM":return T.s(N+1,2,"0");case"MMM":return Wt(H.monthsShort,N,St,3);case"MMMM":return Wt(St,N);case"D":return U.$D;case"DD":return T.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Wt(H.weekdaysMin,U.$W,B,2);case"ddd":return Wt(H.weekdaysShort,U.$W,B,3);case"dddd":return B[U.$W];case"H":return String(A);case"HH":return T.s(A,2,"0");case"h":return Le(1);case"hh":return Le(2);case"a":return Yt(A,P,!0);case"A":return Yt(A,P,!1);case"m":return String(P);case"mm":return T.s(P,2,"0");case"s":return String(U.$s);case"ss":return T.s(U.$s,2,"0");case"SSS":return T.s(U.$ms,3,"0");case"Z":return K}return null}(dt)||K.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(k,U,H){var q,K=this,A=T.p(U),P=w(k),N=(P.utcOffset()-this.utcOffset())*n,B=this-P,St=function(){return T.m(K,P)};switch(A){case p:q=St()/12;break;case h:q=St();break;case f:q=St()/3;break;case l:q=(B-N)/6048e5;break;case c:q=(B-N)/864e5;break;case u:q=B/i;break;case a:q=B/n;break;case o:q=B/r;break;default:q=B}return H?q:T.a(q)},D.daysInMonth=function(){return this.endOf(h).$D},D.$locale=function(){return v[this.$L]},D.locale=function(k,U){if(!k)return this.$L;var H=this.clone(),q=V(k,U,!0);return q&&(H.$L=q),H},D.clone=function(){return T.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},I}(),C=M.prototype;return w.prototype=C,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",c],["$M",h],["$y",p],["$D",d]].forEach(function(I){C[I[1]]=function(D){return this.$g(D,I[0],I[1])}}),w.extend=function(I,D){return I.$i||(I(D,M,w),I.$i=!0),w},w.locale=V,w.isDayjs=O,w.unix=function(I){return w(1e3*I)},w.en=v[S],w.Ls=v,w.p={},w})})(Cc);var Pc=Cc.exports;const Ji=Be(Pc);var kv={exports:{}};(function(e,t){(function(r,n){e.exports=n(Pc)})(ht,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,a){return a==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,a){var u=100*o+a;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(kv),Ji.locale("zh-cn");function Nv(e,t="YYYY-MM-DD HH:mm:ss"){return Ji(e).format(t)}const kc=e=>Object.prototype.toString.call(e),Bv=e=>kc(e).slice(8,-1),Iv=e=>typeof e<"u",Mv=()=>Date.now(),Nc=()=>+Date.now(),Fv=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function gt(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function Bc(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function Te(e=0){return L(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Ic(e,t){return e.reduce((r,n)=>{const i=n[t];return r.set(i,n),r},new Map)}function fn(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function Lv(e=[],t="key",r="value"){const n={};for(const i of e)n[i[t]]=i[r];return n}function Vv(e={},t="key",r="value"){return Object.entries(e).map(([n,i])=>({[t]:n,[r]:i}))}function Mc(e,t){if(t){const r=Ic(e,t);return Array.from(r.values())}else return Array.from(new Set(e))}function ui(e){return e?[].concat(e):[]}function Hv(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function Cr(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Fc(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}function li(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>li(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=li(n)}),e)}function Lc(e=[],t){return t?e.reduce((r,n)=>r+Number(n[t]),0):e.reduce((r,n)=>r+Number(n),0)}function Uv(e=[],t){const r=Lc(e,t);return e.length?r/e.length:0}function zv(e,t=","){return e?e.split(t):[]}function qv(e,t=","){return e?e.join(t):""}function Kv(e,t="id",r="parentId",n="children",i="null"){const s=oc(e,r);for(const o of Object.values(s))o.forEach(a=>{a[n]=s[a[t]]||[]});return s[i]}function Vc(e=[]){let t=[];return e.forEach(r=>{const s=r,{children:n}=s,i=Tn(s,["children"]);r.children&&r.children.length>0&&(t=t.concat(Vc(r.children))),t.push(i)}),t}var hi={exports:{}};hi.exports,function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(u,c){if(!s[u]){s[u]={};for(var l=0;l<u.length;l++)s[u][u.charAt(l)]=l}return s[u][c]}var a={compressToBase64:function(u){if(u==null)return"";var c=a._compress(u,6,function(l){return n.charAt(l)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:a._decompress(u.length,32,function(c){return o(n,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":a._compress(u,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:a._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=a.compress(u),l=new Uint8Array(c.length*2),h=0,f=c.length;h<f;h++){var p=c.charCodeAt(h);l[h*2]=p>>>8,l[h*2+1]=p%256}return l},decompressFromUint8Array:function(u){if(u==null)return a.decompress(u);for(var c=new Array(u.length/2),l=0,h=c.length;l<h;l++)c[l]=u[l*2]*256+u[l*2+1];var f=[];return c.forEach(function(p){f.push(r(p))}),a.decompress(f.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":a._compress(u,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),a._decompress(u.length,32,function(c){return o(i,u.charAt(c))}))},compress:function(u){return a._compress(u,16,function(c){return r(c)})},_compress:function(u,c,l){if(u==null)return"";var h,f,p={},d={},m="",b="",E="",g=2,y=3,_=2,S=[],v=0,x=0,O;for(O=0;O<u.length;O+=1)if(m=u.charAt(O),Object.prototype.hasOwnProperty.call(p,m)||(p[m]=y++,d[m]=!0),b=E+m,Object.prototype.hasOwnProperty.call(p,b))E=b;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(h=0;h<_;h++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(f=E.charCodeAt(0),h=0;h<8;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)v=v<<1|f,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=0;for(f=E.charCodeAt(0),h=0;h<16;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete d[E]}else for(f=p[E],h=0;h<_;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1;g--,g==0&&(g=Math.pow(2,_),_++),p[b]=y++,E=String(m)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(h=0;h<_;h++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(f=E.charCodeAt(0),h=0;h<8;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)v=v<<1|f,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=0;for(f=E.charCodeAt(0),h=0;h<16;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete d[E]}else for(f=p[E],h=0;h<_;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1;g--,g==0&&(g=Math.pow(2,_),_++)}for(f=2,h=0;h<_;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1;for(;;)if(v=v<<1,x==c-1){S.push(l(v));break}else x++;return S.join("")},decompress:function(u){return u==null?"":u==""?null:a._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,l){var h=[],f=4,p=4,d=3,m="",b=[],E,g,y,_,S,v,x,O={val:l(0),position:c,index:1};for(E=0;E<3;E+=1)h[E]=E;for(y=0,S=Math.pow(2,2),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;switch(y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 2:return""}for(h[3]=x,g=x,b.push(x);;){if(O.index>u)return"";for(y=0,S=Math.pow(2,d),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;switch(x=y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;h[p++]=r(y),x=p-1,f--;break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;h[p++]=r(y),x=p-1,f--;break;case 2:return b.join("")}if(f==0&&(f=Math.pow(2,d),d++),h[x])m=h[x];else if(x===p)m=g+g.charAt(0);else return null;b.push(m),h[p++]=g+m.charAt(0),f--,g=m,f==0&&(f=Math.pow(2,d),d++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(hi);var Hc=hi.exports;function Uc(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}function Jv(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var a=1,u="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){u+=e[s++]+e[s++];continue}if(e[s]===")"){if(a--,a===0){s++;break}}else if(e[s]==="("&&(a++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));u+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:u}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Wi(e,t){t===void 0&&(t={});for(var r=Jv(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(Ee(t.delimiter||"/#?"),"]+?"),o=[],a=0,u=0,c="",l=function(v){if(u<r.length&&r[u].type===v)return r[u++].value},h=function(v){var x=l(v);if(x!==void 0)return x;var O=r[u],V=O.type,w=O.index;throw new TypeError("Unexpected ".concat(V," at ").concat(w,", expected ").concat(v))},f=function(){for(var v="",x;x=l("CHAR")||l("ESCAPED_CHAR");)v+=x;return v};u<r.length;){var p=l("CHAR"),d=l("NAME"),m=l("PATTERN");if(d||m){var b=p||"";i.indexOf(b)===-1&&(c+=b,b=""),c&&(o.push(c),c=""),o.push({name:d||a++,prefix:b,suffix:"",pattern:m||s,modifier:l("MODIFIER")||""});continue}var E=p||l("ESCAPED_CHAR");if(E){c+=E;continue}c&&(o.push(c),c="");var g=l("OPEN");if(g){var b=f(),y=l("NAME")||"",_=l("PATTERN")||"",S=f();h("CLOSE"),o.push({name:y||(_?a++:""),pattern:y&&!_?s:_,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}h("END")}return o}function zc(e,t){return Wv(Wi(e,t),t)}function Wv(e,t){t===void 0&&(t={});var r=Yi(t),n=t.encode,i=n===void 0?function(u){return u}:n,s=t.validate,o=s===void 0?!0:s,a=e.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<e.length;l++){var h=e[l];if(typeof h=="string"){c+=h;continue}var f=u?u[h.name]:void 0,p=h.modifier==="?"||h.modifier==="*",d=h.modifier==="*"||h.modifier==="+";if(Array.isArray(f)){if(!d)throw new TypeError('Expected "'.concat(h.name,'" to not repeat, but got an array'));if(f.length===0){if(p)continue;throw new TypeError('Expected "'.concat(h.name,'" to not be empty'))}for(var m=0;m<f.length;m++){var b=i(f[m],h);if(o&&!a[l].test(b))throw new TypeError('Expected all "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(b,'"'));c+=h.prefix+b+h.suffix}continue}if(typeof f=="string"||typeof f=="number"){var b=i(String(f),h);if(o&&!a[l].test(b))throw new TypeError('Expected "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(b,'"'));c+=h.prefix+b+h.suffix;continue}if(!p){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(h.name,'" to be ').concat(E))}}return c}}function qc(e,t){var r=[],n=pn(e,r,t);return Yv(n,r,t)}function Yv(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.exec(s);if(!o)return!1;for(var a=o[0],u=o.index,c=Object.create(null),l=function(f){if(o[f]===void 0)return"continue";var p=t[f-1];p.modifier==="*"||p.modifier==="+"?c[p.name]=o[f].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):c[p.name]=i(o[f],p)},h=1;h<o.length;h++)l(h);return{path:a,index:u,params:c}}}function Ee(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Yi(e){return e&&e.sensitive?"":"i"}function Gv(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function Zv(e,t,r){var n=e.map(function(i){return pn(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Yi(r))}function Qv(e,t,r){return Xv(Wi(e,r),t,r)}function Xv(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,a=r.end,u=a===void 0?!0:a,c=r.encode,l=c===void 0?function(w){return w}:c,h=r.delimiter,f=h===void 0?"/#?":h,p=r.endsWith,d=p===void 0?"":p,m="[".concat(Ee(d),"]|$"),b="[".concat(Ee(f),"]"),E=o?"^":"",g=0,y=e;g<y.length;g++){var _=y[g];if(typeof _=="string")E+=Ee(l(_));else{var S=Ee(l(_.prefix)),v=Ee(l(_.suffix));if(_.pattern)if(t&&t.push(_),S||v)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(v).concat(S,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(x)}else E+="(?:".concat(S,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(S).concat(v,")").concat(_.modifier)}}if(u)i||(E+="".concat(b,"?")),E+=r.endsWith?"(?=".concat(m,")"):"$";else{var O=e[e.length-1],V=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(b,"(?=").concat(m,"))?")),V||(E+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(E,Yi(r))}function pn(e,t,r){return e instanceof RegExp?Gv(e,t):Array.isArray(e)?Zv(e,t,r):Qv(e,t,r)}const ty=Hc.compress,ey=Hc.decompress;/**!
50
+ */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ht,function(){var t,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(c,l){this._input=c,this._value=l}return t=function(c){var l,h,f,p;if(t.isNumeral(c))l=c.value();else if(c===0||typeof c>"u")l=0;else if(c===null||r.isNaN(c))l=null;else if(typeof c=="string")if(a.zeroFormat&&c===a.zeroFormat)l=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)l=null;else{for(h in i)if(p=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,p&&c.match(p)){f=i[h].unformat;break}f=f||t._.stringToNumber,l=f(c)}else l=Number(c)||null;return new u(c,l)},t.version=n,t.isNumeral=function(c){return c instanceof u},t._=r={numberToFormat:function(c,l,h){var f=s[t.options.currentLocale],p=!1,d=!1,m=0,b="",E=1e12,g=1e9,y=1e6,_=1e3,S="",v=!1,x,O,V,w,T,M,C;if(c=c||0,O=Math.abs(c),t._.includes(l,"(")?(p=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):c<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),t._.includes(l,"a")&&(x=l.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(l," a")&&(b=" "),l=l.replace(new RegExp(b+"a[kmbt]?"),""),O>=E&&!x||x==="t"?(b+=f.abbreviations.trillion,c=c/E):O<E&&O>=g&&!x||x==="b"?(b+=f.abbreviations.billion,c=c/g):O<g&&O>=y&&!x||x==="m"?(b+=f.abbreviations.million,c=c/y):(O<y&&O>=_&&!x||x==="k")&&(b+=f.abbreviations.thousand,c=c/_)),t._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),V=c.toString().split(".")[0],w=l.split(".")[1],M=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),S=t._.toFixed(c,w[0].length+w[1].length,h,w[1].length)):S=t._.toFixed(c,w.length,h),V=S.split(".")[0],t._.includes(S,".")?S=f.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):V=t._.toFixed(c,0,h),b&&!x&&Number(V)>=1e3&&b!==f.abbreviations.trillion)switch(V=String(Number(V)/1e3),b){case f.abbreviations.thousand:b=f.abbreviations.million;break;case f.abbreviations.million:b=f.abbreviations.billion;break;case f.abbreviations.billion:b=f.abbreviations.trillion;break}if(t._.includes(V,"-")&&(V=V.slice(1),v=!0),V.length<m)for(var I=m-V.length;I>0;I--)V="0"+V;return M>-1&&(V=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),l.indexOf(".")===0&&(V=""),C=V+S+(b||""),p?C=(p&&v?"(":"")+C+(p&&v?")":""):T>=0?C=T===0?(v?"-":"+")+C:C+(v?"-":"+"):v&&(C="-"+C),C},stringToNumber:function(c){var l=s[a.currentLocale],h=c,f={thousand:3,million:6,billion:9,trillion:12},p,d,m;if(a.zeroFormat&&c===a.zeroFormat)d=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(p in f)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[p]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),h.match(m)){d*=Math.pow(10,f[p]);break}d*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),d*=Number(c)}return d},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,l){return c.indexOf(l)!==-1},insert:function(c,l,h){return c.slice(0,h)+l+c.slice(h)},reduce:function(c,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var h=Object(c),f=h.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<f&&!(p in h);)p++;if(p>=f)throw new TypeError("Reduce of empty array with no initial value");d=h[p++]}for(;p<f;p++)p in h&&(d=l(d,h[p],p,h));return d},multiplier:function(c){var l=c.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(l,h){var f=r.multiplier(h);return l>f?l:f},1)},toFixed:function(c,l,h,f){var p=c.toString().split("."),d=l-(f||0),m,b,E,g;return p.length===2?m=Math.min(Math.max(p[1].length,d),l):m=d,E=Math.pow(10,m),g=(h(c+"e+"+m)/E).toFixed(m),f>l-m&&(b=new RegExp("\\.?0{1,"+(f-(l-m))+"}$"),g=g.replace(b,"")),g}},t.options=a,t.formats=i,t.locales=s,t.locale=function(c){return c&&(a.currentLocale=c.toLowerCase()),a.currentLocale},t.localeData=function(c){if(!c)return s[a.currentLocale];if(c=c.toLowerCase(),!s[c])throw new Error("Unknown locale : "+c);return s[c]},t.reset=function(){for(var c in o)a[c]=o[c]},t.zeroFormat=function(c){a.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){a.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){a.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,l,h){if(l=l.toLowerCase(),this[c+"s"][l])throw new TypeError(l+" "+c+" already registered.");return this[c+"s"][l]=h,h},t.validate=function(c,l){var h,f,p,d,m,b,E,g;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{E=t.localeData(l)}catch(y){E=t.localeData(t.locale())}return p=E.currency.symbol,m=E.abbreviations,h=E.delimiters.decimal,E.delimiters.thousands==="."?f="\\.":f=E.delimiters.thousands,g=c.match(/^[^\d]+/),g!==null&&(c=c.substr(1),g[0]!==p)||(g=c.match(/[^\d]+$/),g!==null&&(c=c.slice(0,-1),g[0]!==m.thousand&&g[0]!==m.million&&g[0]!==m.billion&&g[0]!==m.trillion))?!1:(b=new RegExp(f+"{2}"),c.match(/[^\d.,]/g)?!1:(d=c.split(h),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(c,l){var h=this._value,f=c||a.defaultFormat,p,d,m;if(l=l||Math.round,h===0&&a.zeroFormat!==null)d=a.zeroFormat;else if(h===null&&a.nullFormat!==null)d=a.nullFormat;else{for(p in i)if(f.match(i[p].regexps.format)){m=i[p].format;break}m=m||t._.numberToFormat,d=m(h,f,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f+Math.round(l*p)}return this._value=r.reduce([this._value,c],h,0)/l,this},subtract:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f-Math.round(l*p)}return this._value=r.reduce([c],h,Math.round(this._value*l))/l,this},multiply:function(c){function l(h,f,p,d){var m=r.correctionFactor(h,f);return Math.round(h*m)*Math.round(f*m)/Math.round(m*m)}return this._value=r.reduce([this._value,c],l,1),this},divide:function(c){function l(h,f,p,d){var m=r.correctionFactor(h,f);return Math.round(h*m)/Math.round(f*m)}return this._value=r.reduce([this._value,c],l),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var l=c%10;return~~(c%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,l,h){var f=t._.includes(l," BPS")?" ":"",p;return c=c*1e4,l=l.replace(/\s?BPS/,""),p=t._.numberToFormat(c,l,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"BPS"),p=p.join("")):p=p+f+"BPS",p},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(l.suffixes.filter(function(p){return c.suffixes.indexOf(p)<0})),f=h.join("|");f="("+f.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(p,d,m){var b,E=t._.includes(d,"ib")?l:c,g=t._.includes(d," b")||t._.includes(d," ib")?" ":"",y,_,S;for(d=d.replace(/\s?i?b/,""),y=0;y<=E.suffixes.length;y++)if(_=Math.pow(E.base,y),S=Math.pow(E.base,y+1),p===null||p===0||p>=_&&p<S){g+=E.suffixes[y],_>0&&(p=p/_);break}return b=t._.numberToFormat(p,d,m),b+g},unformat:function(p){var d=t._.stringToNumber(p),m,b;if(d){for(m=c.suffixes.length-1;m>=0;m--){if(t._.includes(p,c.suffixes[m])){b=Math.pow(c.base,m);break}if(t._.includes(p,l.suffixes[m])){b=Math.pow(l.base,m);break}}d*=b||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,l,h){var f=t.locales[t.options.currentLocale],p={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(l=l.replace(/\s?\$\s?/,""),d=t._.numberToFormat(c,l,h),c>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(p.before,"-")&&!t._.includes(p.before,"(")&&(p.before="-"+p.before),b=0;b<p.before.length;b++)switch(m=p.before[b],m){case"$":d=t._.insert(d,f.currency.symbol,b);break;case" ":d=t._.insert(d," ",b+f.currency.symbol.length-1);break}for(b=p.after.length-1;b>=0;b--)switch(m=p.after[b],m){case"$":d=b===p.after.length-1?d+f.currency.symbol:t._.insert(d,f.currency.symbol,-(p.after.length-(1+b)));break;case" ":d=b===p.after.length-1?d+" ":t._.insert(d," ",-(p.after.length-(1+b)+f.currency.symbol.length-1));break}return d}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,l,h){var f,p=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",d=p.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(d[0]),l,h),f+"e"+d[1]},unformat:function(c){var l=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(l[0]),f=Number(l[1]);f=t._.includes(c,"e-")?f*=-1:f;function p(d,m,b,E){var g=t._.correctionFactor(d,m),y=d*g*(m*g)/(g*g);return y}return t._.reduce([h,Math.pow(10,f)],p,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,l,h){var f=t.locales[t.options.currentLocale],p,d=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=f.ordinal(c),p=t._.numberToFormat(c,l,h),p+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,l,h){var f=t._.includes(l," %")?" ":"",p;return t.options.scalePercentBy100&&(c=c*100),l=l.replace(/\s?\%/,""),p=t._.numberToFormat(c,l,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"%"),p=p.join("")):p=p+f+"%",p},unformat:function(c){var l=t._.stringToNumber(c);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,l,h){var f=Math.floor(c/60/60),p=Math.floor((c-f*60*60)/60),d=Math.round(c-f*60*60-p*60);return f+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(c){var l=c.split(":"),h=0;return l.length===3?(h=h+Number(l[0])*60*60,h=h+Number(l[1])*60,h=h+Number(l[2])):l.length===2&&(h=h+Number(l[0])*60,h=h+Number(l[1])),Number(h)}})}(),t})})(Rc);var Dv=Rc.exports;const Dc=Be(Dv);function Cv(e,t="0.00"){return Dc(e).format(t)}function Pv(e,t=2,r){return(r?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var Cc={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ht,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",c="day",l="week",h="month",f="quarter",p="year",d="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|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,g={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(I){var D=["th","st","nd","rd"],k=I%100;return"["+I+(D[(k-20)%10]||D[k]||D[0])+"]"}},y=function(I,D,k){var U=String(I);return!U||U.length>=D?I:""+Array(D+1-U.length).join(k)+I},_={s:y,z:function(I){var D=-I.utcOffset(),k=Math.abs(D),U=Math.floor(k/60),H=k%60;return(D<=0?"+":"-")+y(U,2,"0")+":"+y(H,2,"0")},m:function I(D,k){if(D.date()<k.date())return-I(k,D);var U=12*(k.year()-D.year())+(k.month()-D.month()),H=D.clone().add(U,h),q=k-H<0,K=D.clone().add(U+(q?-1:1),h);return+(-(U+(k-H)/(q?H-K:K-H))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:h,y:p,w:l,d:c,D:d,h:u,m:a,s:o,ms:s,Q:f}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",v={};v[S]=g;var x="$isDayjsObject",O=function(I){return I instanceof M||!(!I||!I[x])},V=function I(D,k,U){var H;if(!D)return S;if(typeof D=="string"){var q=D.toLowerCase();v[q]&&(H=q),k&&(v[q]=k,H=q);var K=D.split("-");if(!H&&K.length>1)return I(K[0])}else{var A=D.name;v[A]=D,H=A}return!U&&H&&(S=H),H||!U&&S},w=function(I,D){if(O(I))return I.clone();var k=typeof D=="object"?D:{};return k.date=I,k.args=arguments,new M(k)},T=_;T.l=V,T.i=O,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var M=function(){function I(k){this.$L=V(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(k){this.$d=function(U){var H=U.date,q=U.utc;if(H===null)return new Date(NaN);if(T.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var K=H.match(b);if(K){var A=K[2]-1||0,P=(K[7]||"0").substring(0,3);return q?new Date(Date.UTC(K[1],A,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)):new Date(K[1],A,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)}}return new Date(H)}(k),this.init()},D.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(k,U){var H=w(k);return this.startOf(U)<=H&&H<=this.endOf(U)},D.isAfter=function(k,U){return w(k)<this.startOf(U)},D.isBefore=function(k,U){return this.endOf(U)<w(k)},D.$g=function(k,U,H){return T.u(k)?this[U]:this.set(H,k)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(k,U){var H=this,q=!!T.u(U)||U,K=T.p(k),A=function(Yt,dt){var Lt=T.w(H.$u?Date.UTC(H.$y,dt,Yt):new Date(H.$y,dt,Yt),H);return q?Lt:Lt.endOf(c)},P=function(Yt,dt){return T.w(H.toDate()[Yt].apply(H.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(dt)),H)},N=this.$W,B=this.$M,St=this.$D,pe="set"+(this.$u?"UTC":"");switch(K){case p:return q?A(1,0):A(31,11);case h:return q?A(1,B):A(0,B+1);case l:var Wt=this.$locale().weekStart||0,Le=(N<Wt?N+7:N)-Wt;return A(q?St-Le:St+(6-Le),B);case c:case d:return P(pe+"Hours",0);case u:return P(pe+"Minutes",1);case a:return P(pe+"Seconds",2);case o:return P(pe+"Milliseconds",3);default:return this.clone()}},D.endOf=function(k){return this.startOf(k,!1)},D.$set=function(k,U){var H,q=T.p(k),K="set"+(this.$u?"UTC":""),A=(H={},H[c]=K+"Date",H[d]=K+"Date",H[h]=K+"Month",H[p]=K+"FullYear",H[u]=K+"Hours",H[a]=K+"Minutes",H[o]=K+"Seconds",H[s]=K+"Milliseconds",H)[q],P=q===c?this.$D+(U-this.$W):U;if(q===h||q===p){var N=this.clone().set(d,1);N.$d[A](P),N.init(),this.$d=N.set(d,Math.min(this.$D,N.daysInMonth())).$d}else A&&this.$d[A](P);return this.init(),this},D.set=function(k,U){return this.clone().$set(k,U)},D.get=function(k){return this[T.p(k)]()},D.add=function(k,U){var H,q=this;k=Number(k);var K=T.p(U),A=function(B){var St=w(q);return T.w(St.date(St.date()+Math.round(B*k)),q)};if(K===h)return this.set(h,this.$M+k);if(K===p)return this.set(p,this.$y+k);if(K===c)return A(1);if(K===l)return A(7);var P=(H={},H[a]=n,H[u]=i,H[o]=r,H)[K]||1,N=this.$d.getTime()+k*P;return T.w(N,this)},D.subtract=function(k,U){return this.add(-1*k,U)},D.format=function(k){var U=this,H=this.$locale();if(!this.isValid())return H.invalidDate||m;var q=k||"YYYY-MM-DDTHH:mm:ssZ",K=T.z(this),A=this.$H,P=this.$m,N=this.$M,B=H.weekdays,St=H.months,pe=H.meridiem,Wt=function(dt,Lt,Ve,mr){return dt&&(dt[Lt]||dt(U,q))||Ve[Lt].slice(0,mr)},Le=function(dt){return T.s(A%12||12,dt,"0")},Yt=pe||function(dt,Lt,Ve){var mr=dt<12?"AM":"PM";return Ve?mr.toLowerCase():mr};return q.replace(E,function(dt,Lt){return Lt||function(Ve){switch(Ve){case"YY":return String(U.$y).slice(-2);case"YYYY":return T.s(U.$y,4,"0");case"M":return N+1;case"MM":return T.s(N+1,2,"0");case"MMM":return Wt(H.monthsShort,N,St,3);case"MMMM":return Wt(St,N);case"D":return U.$D;case"DD":return T.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Wt(H.weekdaysMin,U.$W,B,2);case"ddd":return Wt(H.weekdaysShort,U.$W,B,3);case"dddd":return B[U.$W];case"H":return String(A);case"HH":return T.s(A,2,"0");case"h":return Le(1);case"hh":return Le(2);case"a":return Yt(A,P,!0);case"A":return Yt(A,P,!1);case"m":return String(P);case"mm":return T.s(P,2,"0");case"s":return String(U.$s);case"ss":return T.s(U.$s,2,"0");case"SSS":return T.s(U.$ms,3,"0");case"Z":return K}return null}(dt)||K.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(k,U,H){var q,K=this,A=T.p(U),P=w(k),N=(P.utcOffset()-this.utcOffset())*n,B=this-P,St=function(){return T.m(K,P)};switch(A){case p:q=St()/12;break;case h:q=St();break;case f:q=St()/3;break;case l:q=(B-N)/6048e5;break;case c:q=(B-N)/864e5;break;case u:q=B/i;break;case a:q=B/n;break;case o:q=B/r;break;default:q=B}return H?q:T.a(q)},D.daysInMonth=function(){return this.endOf(h).$D},D.$locale=function(){return v[this.$L]},D.locale=function(k,U){if(!k)return this.$L;var H=this.clone(),q=V(k,U,!0);return q&&(H.$L=q),H},D.clone=function(){return T.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},I}(),C=M.prototype;return w.prototype=C,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",c],["$M",h],["$y",p],["$D",d]].forEach(function(I){C[I[1]]=function(D){return this.$g(D,I[0],I[1])}}),w.extend=function(I,D){return I.$i||(I(D,M,w),I.$i=!0),w},w.locale=V,w.isDayjs=O,w.unix=function(I){return w(1e3*I)},w.en=v[S],w.Ls=v,w.p={},w})})(Cc);var Pc=Cc.exports;const Ji=Be(Pc);var kv={exports:{}};(function(e,t){(function(r,n){e.exports=n(Pc)})(ht,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,a){return a==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,a){var u=100*o+a;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(kv),Ji.locale("zh-cn");function Nv(e,t="YYYY-MM-DD HH:mm:ss"){return Ji(e).format(t)}let Bv=0;const kc=e=>Object.prototype.toString.call(e),Iv=e=>kc(e).slice(8,-1),Mv=e=>typeof e<"u",Fv=()=>Date.now(),Nc=()=>+Date.now(),Lv=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function gt(){return Number((++Bv).toString()+Date.now()).toString(36)}function Bc(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function Te(e=0){return L(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Ic(e,t){return e.reduce((r,n)=>{const i=n[t];return r.set(i,n),r},new Map)}function fn(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function Vv(e=[],t="key",r="value"){const n={};for(const i of e)n[i[t]]=i[r];return n}function Hv(e={},t="key",r="value"){return Object.entries(e).map(([n,i])=>({[t]:n,[r]:i}))}function Mc(e,t){if(t){const r=Ic(e,t);return Array.from(r.values())}else return Array.from(new Set(e))}function ui(e){return e?[].concat(e):[]}function Uv(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function Cr(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function Fc(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}function li(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>li(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=li(n)}),e)}function Lc(e=[],t){return t?e.reduce((r,n)=>r+Number(n[t]),0):e.reduce((r,n)=>r+Number(n),0)}function zv(e=[],t){const r=Lc(e,t);return e.length?r/e.length:0}function qv(e,t=","){return e?e.split(t):[]}function Kv(e,t=","){return e?e.join(t):""}function Jv(e,t="id",r="parentId",n="children",i="null"){const s=oc(e,r);for(const o of Object.values(s))o.forEach(a=>{a[n]=s[a[t]]||[]});return s[i]}function Vc(e=[]){let t=[];return e.forEach(r=>{const s=r,{children:n}=s,i=Tn(s,["children"]);r.children&&r.children.length>0&&(t=t.concat(Vc(r.children))),t.push(i)}),t}var hi={exports:{}};hi.exports,function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(u,c){if(!s[u]){s[u]={};for(var l=0;l<u.length;l++)s[u][u.charAt(l)]=l}return s[u][c]}var a={compressToBase64:function(u){if(u==null)return"";var c=a._compress(u,6,function(l){return n.charAt(l)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:a._decompress(u.length,32,function(c){return o(n,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":a._compress(u,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:a._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=a.compress(u),l=new Uint8Array(c.length*2),h=0,f=c.length;h<f;h++){var p=c.charCodeAt(h);l[h*2]=p>>>8,l[h*2+1]=p%256}return l},decompressFromUint8Array:function(u){if(u==null)return a.decompress(u);for(var c=new Array(u.length/2),l=0,h=c.length;l<h;l++)c[l]=u[l*2]*256+u[l*2+1];var f=[];return c.forEach(function(p){f.push(r(p))}),a.decompress(f.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":a._compress(u,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),a._decompress(u.length,32,function(c){return o(i,u.charAt(c))}))},compress:function(u){return a._compress(u,16,function(c){return r(c)})},_compress:function(u,c,l){if(u==null)return"";var h,f,p={},d={},m="",b="",E="",g=2,y=3,_=2,S=[],v=0,x=0,O;for(O=0;O<u.length;O+=1)if(m=u.charAt(O),Object.prototype.hasOwnProperty.call(p,m)||(p[m]=y++,d[m]=!0),b=E+m,Object.prototype.hasOwnProperty.call(p,b))E=b;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(h=0;h<_;h++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(f=E.charCodeAt(0),h=0;h<8;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)v=v<<1|f,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=0;for(f=E.charCodeAt(0),h=0;h<16;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete d[E]}else for(f=p[E],h=0;h<_;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1;g--,g==0&&(g=Math.pow(2,_),_++),p[b]=y++,E=String(m)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(h=0;h<_;h++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(f=E.charCodeAt(0),h=0;h<8;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)v=v<<1|f,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=0;for(f=E.charCodeAt(0),h=0;h<16;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete d[E]}else for(f=p[E],h=0;h<_;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1;g--,g==0&&(g=Math.pow(2,_),_++)}for(f=2,h=0;h<_;h++)v=v<<1|f&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,f=f>>1;for(;;)if(v=v<<1,x==c-1){S.push(l(v));break}else x++;return S.join("")},decompress:function(u){return u==null?"":u==""?null:a._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,l){var h=[],f=4,p=4,d=3,m="",b=[],E,g,y,_,S,v,x,O={val:l(0),position:c,index:1};for(E=0;E<3;E+=1)h[E]=E;for(y=0,S=Math.pow(2,2),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;switch(y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 2:return""}for(h[3]=x,g=x,b.push(x);;){if(O.index>u)return"";for(y=0,S=Math.pow(2,d),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;switch(x=y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;h[p++]=r(y),x=p-1,f--;break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*v,v<<=1;h[p++]=r(y),x=p-1,f--;break;case 2:return b.join("")}if(f==0&&(f=Math.pow(2,d),d++),h[x])m=h[x];else if(x===p)m=g+g.charAt(0);else return null;b.push(m),h[p++]=g+m.charAt(0),f--,g=m,f==0&&(f=Math.pow(2,d),d++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(hi);var Hc=hi.exports;function Uc(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}function Wv(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var a=1,u="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){u+=e[s++]+e[s++];continue}if(e[s]===")"){if(a--,a===0){s++;break}}else if(e[s]==="("&&(a++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));u+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:u}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Wi(e,t){t===void 0&&(t={});for(var r=Wv(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(Ee(t.delimiter||"/#?"),"]+?"),o=[],a=0,u=0,c="",l=function(v){if(u<r.length&&r[u].type===v)return r[u++].value},h=function(v){var x=l(v);if(x!==void 0)return x;var O=r[u],V=O.type,w=O.index;throw new TypeError("Unexpected ".concat(V," at ").concat(w,", expected ").concat(v))},f=function(){for(var v="",x;x=l("CHAR")||l("ESCAPED_CHAR");)v+=x;return v};u<r.length;){var p=l("CHAR"),d=l("NAME"),m=l("PATTERN");if(d||m){var b=p||"";i.indexOf(b)===-1&&(c+=b,b=""),c&&(o.push(c),c=""),o.push({name:d||a++,prefix:b,suffix:"",pattern:m||s,modifier:l("MODIFIER")||""});continue}var E=p||l("ESCAPED_CHAR");if(E){c+=E;continue}c&&(o.push(c),c="");var g=l("OPEN");if(g){var b=f(),y=l("NAME")||"",_=l("PATTERN")||"",S=f();h("CLOSE"),o.push({name:y||(_?a++:""),pattern:y&&!_?s:_,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}h("END")}return o}function zc(e,t){return Yv(Wi(e,t),t)}function Yv(e,t){t===void 0&&(t={});var r=Yi(t),n=t.encode,i=n===void 0?function(u){return u}:n,s=t.validate,o=s===void 0?!0:s,a=e.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<e.length;l++){var h=e[l];if(typeof h=="string"){c+=h;continue}var f=u?u[h.name]:void 0,p=h.modifier==="?"||h.modifier==="*",d=h.modifier==="*"||h.modifier==="+";if(Array.isArray(f)){if(!d)throw new TypeError('Expected "'.concat(h.name,'" to not repeat, but got an array'));if(f.length===0){if(p)continue;throw new TypeError('Expected "'.concat(h.name,'" to not be empty'))}for(var m=0;m<f.length;m++){var b=i(f[m],h);if(o&&!a[l].test(b))throw new TypeError('Expected all "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(b,'"'));c+=h.prefix+b+h.suffix}continue}if(typeof f=="string"||typeof f=="number"){var b=i(String(f),h);if(o&&!a[l].test(b))throw new TypeError('Expected "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(b,'"'));c+=h.prefix+b+h.suffix;continue}if(!p){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(h.name,'" to be ').concat(E))}}return c}}function qc(e,t){var r=[],n=pn(e,r,t);return Gv(n,r,t)}function Gv(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.exec(s);if(!o)return!1;for(var a=o[0],u=o.index,c=Object.create(null),l=function(f){if(o[f]===void 0)return"continue";var p=t[f-1];p.modifier==="*"||p.modifier==="+"?c[p.name]=o[f].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):c[p.name]=i(o[f],p)},h=1;h<o.length;h++)l(h);return{path:a,index:u,params:c}}}function Ee(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Yi(e){return e&&e.sensitive?"":"i"}function Zv(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function Qv(e,t,r){var n=e.map(function(i){return pn(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Yi(r))}function Xv(e,t,r){return ty(Wi(e,r),t,r)}function ty(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,a=r.end,u=a===void 0?!0:a,c=r.encode,l=c===void 0?function(w){return w}:c,h=r.delimiter,f=h===void 0?"/#?":h,p=r.endsWith,d=p===void 0?"":p,m="[".concat(Ee(d),"]|$"),b="[".concat(Ee(f),"]"),E=o?"^":"",g=0,y=e;g<y.length;g++){var _=y[g];if(typeof _=="string")E+=Ee(l(_));else{var S=Ee(l(_.prefix)),v=Ee(l(_.suffix));if(_.pattern)if(t&&t.push(_),S||v)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(v).concat(S,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(x)}else E+="(?:".concat(S,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(S).concat(v,")").concat(_.modifier)}}if(u)i||(E+="".concat(b,"?")),E+=r.endsWith?"(?=".concat(m,")"):"$";else{var O=e[e.length-1],V=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(b,"(?=").concat(m,"))?")),V||(E+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(E,Yi(r))}function pn(e,t,r){return e instanceof RegExp?Zv(e,t):Array.isArray(e)?Qv(e,t,r):Xv(e,t,r)}const ey=Hc.compress,ry=Hc.decompress;/**!
51
51
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
52
  * @name @vtj/core
53
53
  * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.9.4
54
+ * @version 0.9.5
55
55
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
- */const ry="0.9.4",ny="BuiltIn",Gi="VueMaterial",Zi="VueRouterMaterial",iy=[Gi,Zi],sy={vue:"Vue","vue-router":"VueRouter"},Kc={[Gi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zi]:["RouterView","RouterLink"]},oy=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let ay=class{},Jc=class{constructor(){j(this,"listeners",[]);j(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}},Pr=class Wc{constructor(t,r,n){j(this,"isUnset",!1);this.name=t,this.value=r,this.defaultValue=n,this.setValue(r)}setValue(t){this.value=t,this.isUnset=this.value===this.defaultValue}getValue(){var t;return(t=this.value)!=null?t:this.defaultValue}static toDsl(t={}){return Object.entries(t).reduce((r,[n,i])=>(i.isUnset||(r[n]=i.getValue()),r),{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new Wc(n,i),r),{})}},kr=class Yc{constructor(t){j(this,"name");j(this,"handler");j(this,"modifiers",{});this.schema=t;const{name:r,handler:n}=this.schema;this.name=r,this.handler=n,this.update(t)}update(t){Object.assign(this.schema,t);const{handler:r,modifiers:n={}}=this.schema;this.handler=r,this.modifiers=n}static toDsl(t){return Object.entries(t).reduce((r,[n,i])=>{const{handler:s,modifiers:o}=i;return r[n]={name:n,handler:s,modifiers:o},r},{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new Yc(i),r),{})}},Ke=class Gc{constructor(t){j(this,"id");j(this,"name","");j(this,"arg");j(this,"modifiers");j(this,"value");j(this,"iterator");this.schema=t,this.id=t.id||gt(),this.update(t)}update(t){Object.assign(this.schema,t);const{name:r,arg:n,modifiers:i,value:s,iterator:o}=this.schema;this.name=r,this.arg=n,this.modifiers=i,this.value=s,this.iterator=o}static parse(t=[]){return t.map(r=>new Gc(r))}static toDsl(t=[]){return t.map(r=>{const{name:n,arg:i,modifiers:s,value:o,iterator:a,id:u}=r;return{id:u,name:n,arg:i,modifiers:s,value:o,iterator:a}})}};const nt="EVENT_NODE_CHANGE";var Ft;let Jr=(Ft=class{constructor(t,r=null){j(this,"__VTJ_NODE__",!0);j(this,"locked",!1);j(this,"id");j(this,"name");j(this,"from");j(this,"invisible",!1);j(this,"children","");j(this,"slot");j(this,"props",{});j(this,"events",{});j(this,"directives",[]);j(this,"disposed",!1);this.parent=r;const{id:n=gt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Ft.nodes[this.id]=this}update(t,r=!1){const{invisible:n=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:u={},directives:c=[]}=t;this.invisible=n,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=Pr.parse(a),this.events=kr.parse(u),this.directives=Ke.parse(c),r||F.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Ft(n,this)):this.children=t,r||F.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||F.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new Pr(t,r,n),i||F.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||F.emit(nt,this)}getPropValue(t){const r=this.props[t];if(r)return r.getValue()}setEvent(t,r=!1){const n=this.events[t.name];n?n.update(t):this.events[t.name]=new kr(t),r||F.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||F.emit(nt,this)}setDirective(t,r=!1){const n=t instanceof Ke?t:new Ke(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,n):this.directives.push(n),r||F.emit(nt,this)}removeDirective(t,r=!1){const n=this.directives.findIndex(i=>i===t||i.id===t.id);n>=0&&this.directives.splice(n,1),r||F.emit(nt,this)}removeChild(t,r=!1){const{children:n,disposed:i}=this;if(i||!Array.isArray(n))return;const s=n.findIndex(o=>o===t);t.parent=null,n.splice(s,1),r||F.emit(nt,this)}appendChild(t,r=!1){const{children:n,disposed:i}=this;i||(t.parent=this,Array.isArray(n)?n.push(t):this.children=[t],r||F.emit(nt,this))}insertAfter(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i+1,0,t),r||F.emit(nt,this.parent)}}insertBefore(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i,0,t),r||F.emit(nt,this.parent)}}movePrev(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>0&&(n.splice(i,1),n.splice(i-1,0,this),t||F.emit(nt,r))}}moveNext(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,this),t||F.emit(nt,r))}}toDsl(){const{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:a,props:u,directives:c,events:l}=this,h=Array.isArray(a)?a.map(f=>f.toDsl()):a;return{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:h,props:Pr.toDsl(u),directives:Ke.toDsl(c),events:kr.toDsl(l)}}dispose(t=!1){const{children:r,disposed:n}=this;n||(Array.isArray(r)&&r.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,t):t||F.emit(nt,this),this.parent=null,this.disposed=!0,delete Ft.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||F.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||F.emit(nt,this)}setVisible(t,r=!1){if(this.invisible=!t,Array.isArray(this.children))for(const n of this.children)n.setVisible(t,!0);r||F.emit(nt,this)}isChild(t){let r=!1;if(Array.isArray(this.children)){for(const n of this.children)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break}return r}},j(Ft,"nodes",{}),Ft);const G="EVENT_BLOCK_CHANGE";var qt;let te=(qt=class{constructor(t){j(this,"__VTJ_BLOCK__",!0);j(this,"id");j(this,"name","");j(this,"inject",[]);j(this,"state",{});j(this,"lifeCycles",{});j(this,"methods",{});j(this,"computed",{});j(this,"watch",[]);j(this,"css","");j(this,"props",[]);j(this,"emits",[]);j(this,"slots",[]);j(this,"dataSources",{});j(this,"nodes",[]);j(this,"locked",!1);j(this,"disposed",!1);const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const i of qt.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Jr(i))),r||F.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return ct(z({},qt.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||Nc().toString(),id:n,nodes:i.map(s=>s.toDsl())})}dispose(){this.nodes.map(t=>t.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(t,r,n,i=!1){this[t][r]=n,i||F.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||F.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||F.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||F.emit(G,this)}setCss(t,r=!1){this.css=t,r||F.emit(G,this)}setWatch(t,r=!1){t.id=t.id||gt();const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1?this.watch.splice(n,1,t):this.watch.push(t),r||F.emit(G,this)}removeWatch(t,r=!1){const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1&&(this.watch.splice(n,1),r||F.emit(G,this))}setProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1?this.props.splice(n,1,t):this.props.push(t),r||F.emit(G,this)}removeProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1&&(this.props.splice(n,1),r||F.emit(G,this))}setEmit(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.emits.findIndex(s=>s===n.name||s===n);i>-1?this.emits.splice(i,1,n):this.emits.push(n),r||F.emit(G,this)}removeEmit(t,r=!1){const n=this.emits.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||F.emit(G,this))}setSlot(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.slots.findIndex(s=>s===n.name||s===n);i>-1?this.slots.splice(i,1,n):this.slots.push(n),r||F.emit(G,this)}removeSlot(t,r=!1){const n=this.slots.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.slots.splice(n,1),r||F.emit(G,this))}setInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1?this.inject.splice(n,1,t):this.inject.push(t),r||F.emit(G,this)}removeInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1&&(this.inject.splice(n,1),r||F.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||F.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||F.emit(G,this)}insertAfter(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i+1,0,t),n||F.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||F.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||F.emit(G,this)}addNode(t,r,n="inner",i=!1){r?["left","top"].includes(n)?r.parent?r.insertAfter(t,i):this.insertBefore(t,r,i):["right","bottom"].includes(n)?r.parent?r.insertAfter(t,i):this.insertAfter(t,r,i):r.appendChild(t,i):this.appendNode(t,i)}__removeNode(t,r=!1){const n=this.nodes.findIndex(i=>i.id===t.id);n>-1&&(this.nodes.splice(n,1),r||F.emit(G,this))}removeNode(t,r=!1){t.parent?t.dispose(r):(t.dispose(!0),this.__removeNode(t,r))}move(t,r,n="inner",i=!1){t.parent?t.parent.removeChild(t,!0):this.__removeNode(t,!0),this.addNode(t,r,n,i)}movePrev(t,r=!1){if(t.parent)t.movePrev(r);else{const n=this.nodes,i=n.indexOf(t);i>0&&(n.splice(i,1),n.splice(i-1,0,t),r||F.emit(G,this))}}moveNext(t,r=!1){if(t.parent)t.moveNext(r);else{const n=this.nodes,i=n.indexOf(t);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,t),r||F.emit(G,this))}}cloneNode(t,r=!1){const n=Xi(t.toDsl()),i=new Jr(n);return this.addNode(i,t,"bottom",r),i}lock(t=!1){this.locked=!0;for(const r of this.nodes)r.lock(!0);t||F.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||F.emit(G,this)}isChild(t){let r=!1;for(const n of this.nodes)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break;return r}},j(qt,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]),qt);const it="EVENT_PROJECT_CHANGE",fi="EVENT_PROJECT_ACTIVED",pi="EVENT_PROJECT_DEPS_CHANGE",Je="EVENT_PROJECT_PAGES_CHANGE",Se="EVENT_PROJECT_BLOCKS_CHANGE",di="EVENT_PROJECT_APIS_CHANGE",mi="EVENT_PROJECT_META_CHANGE",Zc="EVENT_PROJECT_PUBLISH",Qc="EVENT_PROJECT_FILE_PUBLISH",Xc="EVENT_PROJECT_GEN_SOURCE",Xe=class Xe{constructor(t){j(this,"id","");j(this,"name","");j(this,"description","");j(this,"homepage","");j(this,"dependencies",[]);j(this,"pages",[]);j(this,"blocks",[]);j(this,"apis",[]);j(this,"meta",[]);j(this,"currentFile",null);j(this,"config",{});j(this,"__BASE_PATH__","/");const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const n of Xe.attrs){const i=t[n];i&&(this[n]=i)}r||F.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const r of t)delete r.dsl,r.children&&r.children.length&&this.cleanPagesDsl(r.children)}toDsl(t){const{id:r}=this,n=Xe.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>ir(ct(z({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>ir(ct(z({},i),{dsl:void 0})))),z({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||F.emit(fi,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||F.emit(fi,{model:this,type:"update",data:null})}setDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(o=>o.package===t.package);let s;if(i>-1?(s="update",n.splice(i,1,z(z({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};F.emit(pi,o),F.emit(it,o)}}removeDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(s=>s.package===t.package);if(i>-1&&n.splice(i,1),!r){const s={model:this,type:"delete",data:t};F.emit(pi,s),F.emit(it,s)}}getPage(t){const r=(n,i=[])=>{for(const s of i){if(s.id===n)return s;if(s.children&&s.children.length){const o=r(n,s.children);if(o)return o}}};return r(t,this.pages)}getPages(){const t=(r=[])=>{let n=[];for(const i of r)i.dir?i.children&&i.children.length&&(n=n.concat(t(i.children))):n.push(i);return n};return t(this.pages)}createPage(t,r,n=!1){return L(this,null,function*(){if(t.id=t.raw?t.name:t.id||gt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new te({id:t.id,name:si(t.name)}).toDsl(),r){const i=this.getPage(r);i?i.children?i.children.push(t):i.children=[t]:console.warn(`not found PageFile for id: ${r} `)}else this.pages.push(t);if(!n){const i={model:this,type:"create",data:t};F.emit(Je,i),F.emit(it,i)}!this.currentFile&&!t.dir&&(yield Te(1e3),this.active(t,n))})}updatePage(t,r=!1){const n=this.getPage(t.id);if(n?Object.assign(n,t):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};F.emit(Je,i),F.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=gt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new te({id:i,name:s}).toDsl(),u=Dt({},t,{id:i,name:s,title:o,dsl:a}),c=r?((h=this.getPage(r))==null?void 0:h.children)||[]:this.pages,l=c.findIndex(f=>f.id===t.id);if(c.splice(l+1,0,u),!n){const f={model:this,type:"clone",data:{source:t,target:u}};F.emit(Je,f),F.emit(it,f)}}saveToBlock(t,r=!1){return L(this,null,function*(){this.active(t,r),yield Te(1e3);const n=gt(),i=t.name,s=t.title,o=new te({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!r){const u={model:this,type:"create",data:a};F.emit(Se,u),F.emit(it,u)}})}removePage(t,r=!1){var s;const n=this.getPage(t),i=(o,a)=>{const u=a.findIndex(c=>c.id===o);if(u>=0){a.splice(u,1);return}for(const c of a)c.children&&c.children.length&&i(o,c.children)};if(i(t,this.pages),t===this.homepage&&(this.homepage=""),((s=this.currentFile)==null?void 0:s.id)===t&&this.deactivate(r),!r){const o={model:this,type:"delete",data:n};F.emit(Je,o),F.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return L(this,null,function*(){const n=t.id||gt(),i=si(t.name);t.id=n,t.type="block",t.dsl=new te({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};F.emit(Se,o),F.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield Te(1e3),this.active(t,r))})}updateBlock(t,r=!1){const n=this.getBlock(t.id);if(n?(Object.assign(n,t),n.dsl&&(n.dsl.name=t.name)):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};F.emit(Se,i),F.emit(it,i)}}cloneBlock(t,r=!1){const n=gt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new te({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o}),u=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(u+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};F.emit(Se,c),F.emit(it,c)}}removeBlock(t,r=!1){var o;const n=this.getBlock(t),i=this.blocks,s=i.findIndex(a=>a.id===t);if(s>-1?(i.splice(s,1),((o=this.currentFile)==null?void 0:o.id)===t&&this.deactivate(r)):console.warn(`not found PageFile for id: ${t} `),!r){const a={model:this,type:"delete",data:n};F.emit(Se,a),F.emit(it,a)}}existBlockName(t,r=[]){return this.blocks.some(n=>n.name===t&&!r.includes(n.id))}existPageName(t,r=[]){return this.getPages().some(n=>n.name===t&&!r.includes(n.id))}setApi(t,r=!1){const n=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};F.emit(di,s),F.emit(it,s)}}removeApi(t,r=!1){const n=this.apis.findIndex(i=>i.name===t||i.id===t);if(n>-1?this.apis.splice(n,1):console.warn(`not found Api for name: ${t} `),!r){const i={model:this,type:"delete",data:t};F.emit(di,i),F.emit(it,i)}}existApiName(t,r=[]){return this.apis.some(n=>n.name===t&&!r.includes(n.id))}setMeta(t,r=!1){const n=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};F.emit(mi,s),F.emit(it,s)}}removeMeta(t,r=!1){const n=this.meta.findIndex(i=>i.code===t||i.id===t);if(n>-1?this.meta.splice(n,1):console.warn(`not found meta for name: ${name} `),!r){const i={model:this,type:"delete",data:t};F.emit(mi,i),F.emit(it,i)}}existMetaCode(t,r=[]){return this.meta.some(n=>n.code===t&&!r.includes(n.id))}setHomepage(t,r=!1){if(this.homepage=t,!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}publish(t){const r={model:this,type:"publish",data:t||this};t?F.emit(Qc,r):F.emit(Zc,r)}genSource(){const t={model:this,type:"gen",data:null};F.emit(Xc,t)}};j(Xe,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]);let ce=Xe;const We="EVENT_HISTORY_CHANGE",Nr="EVENT_HISTORY_LOAD";let Qi=class{constructor(t,r={}){j(this,"options",{max:50});j(this,"index",-1);j(this,"id");j(this,"items");Object.assign(this.options,r);const{id:n,items:i=[]}=t;this.id=n,this.items=i}toDsl(){const{id:t,items:r}=this;return{id:t,items:r.map(n=>({id:n.id,label:n.label}))}}get(t){return this.items.find(r=>r.id===t)}add(t,r=!1){const{max:n}=this.options,i={id:gt(),label:new Date().toLocaleString(),dsl:ir(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||F.emit(We,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||F.emit(We,{model:this,type:"create",data:i})}remove(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>-1?(this.items.splice(n,1),n===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${t} `),r||F.emit(We,{model:this,type:"delete",data:[t]})}forward(t=!1){const{index:r,items:n}=this;if(r<0)return;--this.index;const i=n[this.index];i&&!t&&F.emit(Nr,{model:this,type:"load",data:i})}backward(t=!1){const{index:r,items:n}=this;if(r>=n.length-1)return;r<0&&(this.index=0),++this.index;const i=n[this.index];i&&!t&&F.emit(Nr,{model:this,type:"load",data:i})}load(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>=0&&(this.index=n,r||F.emit(Nr,{model:this,type:"load",data:this.items[n]}))}clear(t=!1){this.index=-1;const r=this.items.map(n=>n.id);this.items=[],t||F.emit(We,{model:this,type:"clear",data:r})}};const F=Uc();function cy(e){return e instanceof te}function uy(e){return e instanceof Jr}function ly(e){return!!e.__VTJ_BLOCK__}function Xi(e){const t=ir(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Xi(r))),t}function hy(e){const t=e.fromType||"Schema";return t==="Schema"?{type:"Schema",id:e.id}:t==="UrlSchema"?{type:"UrlSchema",url:(e.urls||"").split(",")[0]||""}:t==="Plugin"?{type:"Plugin",urls:(e.urls||"").split(","),library:e.library}:""}const y2=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:Kc,BUILT_IN_LIBRARAY_MAP:sy,BUILT_IN_MATERIALS:iy,BUILT_IN_NAME:ny,BUILT_IN_TAGS:oy,BUILT_IN_VUE:Gi,BUILT_IN_VUE_ROUTER:Zi,Base:Jc,BlockModel:te,DirectiveModel:Ke,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:We,EVENT_HISTORY_LOAD:Nr,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:fi,EVENT_PROJECT_APIS_CHANGE:di,EVENT_PROJECT_BLOCKS_CHANGE:Se,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:pi,EVENT_PROJECT_FILE_PUBLISH:Qc,EVENT_PROJECT_GEN_SOURCE:Xc,EVENT_PROJECT_META_CHANGE:mi,EVENT_PROJECT_PAGES_CHANGE:Je,EVENT_PROJECT_PUBLISH:Zc,EventModel:kr,HistoryModel:Qi,NodeModel:Jr,ProjectModel:ce,PropModel:Pr,Service:ay,VTJ_CORE_VERSION:ry,cloneDsl:Xi,createNodeFrom:hy,emitter:F,isBlock:cy,isBlockSchema:ly,isNode:uy},Symbol.toStringTag,{value:"Module"}));var fy=Object.defineProperty,py=(e,t,r)=>t in e?fy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xt=(e,t,r)=>py(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();/**!
56
+ */const ny="0.9.5",iy="BuiltIn",Gi="VueMaterial",Zi="VueRouterMaterial",sy=[Gi,Zi],oy={vue:"Vue","vue-router":"VueRouter"},Kc={[Gi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zi]:["RouterView","RouterLink"]},ay=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let cy=class{},Jc=class{constructor(){j(this,"listeners",[]);j(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}},Pr=class Wc{constructor(t,r,n){j(this,"isUnset",!1);this.name=t,this.value=r,this.defaultValue=n,this.setValue(r)}setValue(t){this.value=t,this.isUnset=this.value===this.defaultValue}getValue(){var t;return(t=this.value)!=null?t:this.defaultValue}static toDsl(t={}){return Object.entries(t).reduce((r,[n,i])=>(i.isUnset||(r[n]=i.getValue()),r),{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new Wc(n,i),r),{})}},kr=class Yc{constructor(t){j(this,"name");j(this,"handler");j(this,"modifiers",{});this.schema=t;const{name:r,handler:n}=this.schema;this.name=r,this.handler=n,this.update(t)}update(t){Object.assign(this.schema,t);const{handler:r,modifiers:n={}}=this.schema;this.handler=r,this.modifiers=n}static toDsl(t){return Object.entries(t).reduce((r,[n,i])=>{const{handler:s,modifiers:o}=i;return r[n]={name:n,handler:s,modifiers:o},r},{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new Yc(i),r),{})}},Ke=class Gc{constructor(t){j(this,"id");j(this,"name","");j(this,"arg");j(this,"modifiers");j(this,"value");j(this,"iterator");this.schema=t,this.id=t.id||gt(),this.update(t)}update(t){Object.assign(this.schema,t);const{name:r,arg:n,modifiers:i,value:s,iterator:o}=this.schema;this.name=r,this.arg=n,this.modifiers=i,this.value=s,this.iterator=o}static parse(t=[]){return t.map(r=>new Gc(r))}static toDsl(t=[]){return t.map(r=>{const{name:n,arg:i,modifiers:s,value:o,iterator:a,id:u}=r;return{id:u,name:n,arg:i,modifiers:s,value:o,iterator:a}})}};const nt="EVENT_NODE_CHANGE";var Ft;let Jr=(Ft=class{constructor(t,r=null){j(this,"__VTJ_NODE__",!0);j(this,"locked",!1);j(this,"id");j(this,"name");j(this,"from");j(this,"invisible",!1);j(this,"children","");j(this,"slot");j(this,"props",{});j(this,"events",{});j(this,"directives",[]);j(this,"disposed",!1);this.parent=r;const{id:n=gt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Ft.nodes[this.id]=this}update(t,r=!1){const{invisible:n=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:u={},directives:c=[]}=t;this.invisible=n,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=Pr.parse(a),this.events=kr.parse(u),this.directives=Ke.parse(c),r||F.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Ft(n,this)):this.children=t,r||F.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||F.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new Pr(t,r,n),i||F.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||F.emit(nt,this)}getPropValue(t){const r=this.props[t];if(r)return r.getValue()}setEvent(t,r=!1){const n=this.events[t.name];n?n.update(t):this.events[t.name]=new kr(t),r||F.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||F.emit(nt,this)}setDirective(t,r=!1){const n=t instanceof Ke?t:new Ke(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,n):this.directives.push(n),r||F.emit(nt,this)}removeDirective(t,r=!1){const n=this.directives.findIndex(i=>i===t||i.id===t.id);n>=0&&this.directives.splice(n,1),r||F.emit(nt,this)}removeChild(t,r=!1){const{children:n,disposed:i}=this;if(i||!Array.isArray(n))return;const s=n.findIndex(o=>o===t);t.parent=null,n.splice(s,1),r||F.emit(nt,this)}appendChild(t,r=!1){const{children:n,disposed:i}=this;i||(t.parent=this,Array.isArray(n)?n.push(t):this.children=[t],r||F.emit(nt,this))}insertAfter(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i+1,0,t),r||F.emit(nt,this.parent)}}insertBefore(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i,0,t),r||F.emit(nt,this.parent)}}movePrev(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>0&&(n.splice(i,1),n.splice(i-1,0,this),t||F.emit(nt,r))}}moveNext(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,this),t||F.emit(nt,r))}}toDsl(){const{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:a,props:u,directives:c,events:l}=this,h=Array.isArray(a)?a.map(f=>f.toDsl()):a;return{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:h,props:Pr.toDsl(u),directives:Ke.toDsl(c),events:kr.toDsl(l)}}dispose(t=!1){const{children:r,disposed:n}=this;n||(Array.isArray(r)&&r.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,t):t||F.emit(nt,this),this.parent=null,this.disposed=!0,delete Ft.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||F.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||F.emit(nt,this)}setVisible(t,r=!1){if(this.invisible=!t,Array.isArray(this.children))for(const n of this.children)n.setVisible(t,!0);r||F.emit(nt,this)}isChild(t){let r=!1;if(Array.isArray(this.children)){for(const n of this.children)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break}return r}},j(Ft,"nodes",{}),Ft);const G="EVENT_BLOCK_CHANGE";var qt;let te=(qt=class{constructor(t){j(this,"__VTJ_BLOCK__",!0);j(this,"id");j(this,"name","");j(this,"inject",[]);j(this,"state",{});j(this,"lifeCycles",{});j(this,"methods",{});j(this,"computed",{});j(this,"watch",[]);j(this,"css","");j(this,"props",[]);j(this,"emits",[]);j(this,"slots",[]);j(this,"dataSources",{});j(this,"nodes",[]);j(this,"locked",!1);j(this,"disposed",!1);const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const i of qt.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Jr(i))),r||F.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return ct(z({},qt.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||Nc().toString(),id:n,nodes:i.map(s=>s.toDsl())})}dispose(){this.nodes.map(t=>t.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(t,r,n,i=!1){this[t][r]=n,i||F.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||F.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||F.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||F.emit(G,this)}setCss(t,r=!1){this.css=t,r||F.emit(G,this)}setWatch(t,r=!1){t.id=t.id||gt();const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1?this.watch.splice(n,1,t):this.watch.push(t),r||F.emit(G,this)}removeWatch(t,r=!1){const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1&&(this.watch.splice(n,1),r||F.emit(G,this))}setProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1?this.props.splice(n,1,t):this.props.push(t),r||F.emit(G,this)}removeProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1&&(this.props.splice(n,1),r||F.emit(G,this))}setEmit(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.emits.findIndex(s=>s===n.name||s===n);i>-1?this.emits.splice(i,1,n):this.emits.push(n),r||F.emit(G,this)}removeEmit(t,r=!1){const n=this.emits.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||F.emit(G,this))}setSlot(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.slots.findIndex(s=>s===n.name||s===n);i>-1?this.slots.splice(i,1,n):this.slots.push(n),r||F.emit(G,this)}removeSlot(t,r=!1){const n=this.slots.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.slots.splice(n,1),r||F.emit(G,this))}setInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1?this.inject.splice(n,1,t):this.inject.push(t),r||F.emit(G,this)}removeInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1&&(this.inject.splice(n,1),r||F.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||F.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||F.emit(G,this)}insertAfter(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i+1,0,t),n||F.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||F.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||F.emit(G,this)}addNode(t,r,n="inner",i=!1){r?["left","top"].includes(n)?r.parent?r.insertAfter(t,i):this.insertBefore(t,r,i):["right","bottom"].includes(n)?r.parent?r.insertAfter(t,i):this.insertAfter(t,r,i):r.appendChild(t,i):this.appendNode(t,i)}__removeNode(t,r=!1){const n=this.nodes.findIndex(i=>i.id===t.id);n>-1&&(this.nodes.splice(n,1),r||F.emit(G,this))}removeNode(t,r=!1){t.parent?t.dispose(r):(t.dispose(!0),this.__removeNode(t,r))}move(t,r,n="inner",i=!1){t.parent?t.parent.removeChild(t,!0):this.__removeNode(t,!0),this.addNode(t,r,n,i)}movePrev(t,r=!1){if(t.parent)t.movePrev(r);else{const n=this.nodes,i=n.indexOf(t);i>0&&(n.splice(i,1),n.splice(i-1,0,t),r||F.emit(G,this))}}moveNext(t,r=!1){if(t.parent)t.moveNext(r);else{const n=this.nodes,i=n.indexOf(t);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,t),r||F.emit(G,this))}}cloneNode(t,r=!1){const n=Xi(t.toDsl()),i=new Jr(n);return this.addNode(i,t,"bottom",r),i}lock(t=!1){this.locked=!0;for(const r of this.nodes)r.lock(!0);t||F.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||F.emit(G,this)}isChild(t){let r=!1;for(const n of this.nodes)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break;return r}},j(qt,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]),qt);const it="EVENT_PROJECT_CHANGE",fi="EVENT_PROJECT_ACTIVED",pi="EVENT_PROJECT_DEPS_CHANGE",Je="EVENT_PROJECT_PAGES_CHANGE",Se="EVENT_PROJECT_BLOCKS_CHANGE",di="EVENT_PROJECT_APIS_CHANGE",mi="EVENT_PROJECT_META_CHANGE",Zc="EVENT_PROJECT_PUBLISH",Qc="EVENT_PROJECT_FILE_PUBLISH",Xc="EVENT_PROJECT_GEN_SOURCE",Xe=class Xe{constructor(t){j(this,"id","");j(this,"name","");j(this,"description","");j(this,"homepage","");j(this,"dependencies",[]);j(this,"pages",[]);j(this,"blocks",[]);j(this,"apis",[]);j(this,"meta",[]);j(this,"currentFile",null);j(this,"config",{});j(this,"__BASE_PATH__","/");const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const n of Xe.attrs){const i=t[n];i&&(this[n]=i)}r||F.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const r of t)delete r.dsl,r.children&&r.children.length&&this.cleanPagesDsl(r.children)}toDsl(t){const{id:r}=this,n=Xe.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>ir(ct(z({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>ir(ct(z({},i),{dsl:void 0})))),z({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||F.emit(fi,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||F.emit(fi,{model:this,type:"update",data:null})}setDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(o=>o.package===t.package);let s;if(i>-1?(s="update",n.splice(i,1,z(z({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};F.emit(pi,o),F.emit(it,o)}}removeDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(s=>s.package===t.package);if(i>-1&&n.splice(i,1),!r){const s={model:this,type:"delete",data:t};F.emit(pi,s),F.emit(it,s)}}getPage(t){const r=(n,i=[])=>{for(const s of i){if(s.id===n)return s;if(s.children&&s.children.length){const o=r(n,s.children);if(o)return o}}};return r(t,this.pages)}getPages(){const t=(r=[])=>{let n=[];for(const i of r)i.dir?i.children&&i.children.length&&(n=n.concat(t(i.children))):n.push(i);return n};return t(this.pages)}createPage(t,r,n=!1){return L(this,null,function*(){if(t.id=t.raw?t.name:t.id||gt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new te({id:t.id,name:si(t.name)}).toDsl(),r){const i=this.getPage(r);i?i.children?i.children.push(t):i.children=[t]:console.warn(`not found PageFile for id: ${r} `)}else this.pages.push(t);if(!n){const i={model:this,type:"create",data:t};F.emit(Je,i),F.emit(it,i)}!this.currentFile&&!t.dir&&(yield Te(1e3),this.active(t,n))})}updatePage(t,r=!1){const n=this.getPage(t.id);if(n?Object.assign(n,t):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};F.emit(Je,i),F.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=gt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new te({id:i,name:s}).toDsl(),u=Dt({},t,{id:i,name:s,title:o,dsl:a}),c=r?((h=this.getPage(r))==null?void 0:h.children)||[]:this.pages,l=c.findIndex(f=>f.id===t.id);if(c.splice(l+1,0,u),!n){const f={model:this,type:"clone",data:{source:t,target:u}};F.emit(Je,f),F.emit(it,f)}}saveToBlock(t,r=!1){return L(this,null,function*(){this.active(t,r),yield Te(1e3);const n=gt(),i=t.name,s=t.title,o=new te({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!r){const u={model:this,type:"create",data:a};F.emit(Se,u),F.emit(it,u)}})}removePage(t,r=!1){var s;const n=this.getPage(t),i=(o,a)=>{const u=a.findIndex(c=>c.id===o);if(u>=0){a.splice(u,1);return}for(const c of a)c.children&&c.children.length&&i(o,c.children)};if(i(t,this.pages),t===this.homepage&&(this.homepage=""),((s=this.currentFile)==null?void 0:s.id)===t&&this.deactivate(r),!r){const o={model:this,type:"delete",data:n};F.emit(Je,o),F.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return L(this,null,function*(){const n=t.id||gt(),i=si(t.name);t.id=n,t.type="block",t.dsl=new te({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};F.emit(Se,o),F.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield Te(1e3),this.active(t,r))})}updateBlock(t,r=!1){const n=this.getBlock(t.id);if(n?(Object.assign(n,t),n.dsl&&(n.dsl.name=t.name)):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};F.emit(Se,i),F.emit(it,i)}}cloneBlock(t,r=!1){const n=gt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new te({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o}),u=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(u+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};F.emit(Se,c),F.emit(it,c)}}removeBlock(t,r=!1){var o;const n=this.getBlock(t),i=this.blocks,s=i.findIndex(a=>a.id===t);if(s>-1?(i.splice(s,1),((o=this.currentFile)==null?void 0:o.id)===t&&this.deactivate(r)):console.warn(`not found PageFile for id: ${t} `),!r){const a={model:this,type:"delete",data:n};F.emit(Se,a),F.emit(it,a)}}existBlockName(t,r=[]){return this.blocks.some(n=>n.name===t&&!r.includes(n.id))}existPageName(t,r=[]){return this.getPages().some(n=>n.name===t&&!r.includes(n.id))}setApi(t,r=!1){const n=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};F.emit(di,s),F.emit(it,s)}}removeApi(t,r=!1){const n=this.apis.findIndex(i=>i.name===t||i.id===t);if(n>-1?this.apis.splice(n,1):console.warn(`not found Api for name: ${t} `),!r){const i={model:this,type:"delete",data:t};F.emit(di,i),F.emit(it,i)}}existApiName(t,r=[]){return this.apis.some(n=>n.name===t&&!r.includes(n.id))}setMeta(t,r=!1){const n=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};F.emit(mi,s),F.emit(it,s)}}removeMeta(t,r=!1){const n=this.meta.findIndex(i=>i.code===t||i.id===t);if(n>-1?this.meta.splice(n,1):console.warn(`not found meta for name: ${name} `),!r){const i={model:this,type:"delete",data:t};F.emit(mi,i),F.emit(it,i)}}existMetaCode(t,r=[]){return this.meta.some(n=>n.code===t&&!r.includes(n.id))}setHomepage(t,r=!1){if(this.homepage=t,!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}publish(t){const r={model:this,type:"publish",data:t||this};t?F.emit(Qc,r):F.emit(Zc,r)}genSource(){const t={model:this,type:"gen",data:null};F.emit(Xc,t)}};j(Xe,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]);let ce=Xe;const We="EVENT_HISTORY_CHANGE",Nr="EVENT_HISTORY_LOAD";let Qi=class{constructor(t,r={}){j(this,"options",{max:50});j(this,"index",-1);j(this,"id");j(this,"items");Object.assign(this.options,r);const{id:n,items:i=[]}=t;this.id=n,this.items=i}toDsl(){const{id:t,items:r}=this;return{id:t,items:r.map(n=>({id:n.id,label:n.label}))}}get(t){return this.items.find(r=>r.id===t)}add(t,r=!1){const{max:n}=this.options,i={id:gt(),label:new Date().toLocaleString(),dsl:ir(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||F.emit(We,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||F.emit(We,{model:this,type:"create",data:i})}remove(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>-1?(this.items.splice(n,1),n===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${t} `),r||F.emit(We,{model:this,type:"delete",data:[t]})}forward(t=!1){const{index:r,items:n}=this;if(r<0)return;--this.index;const i=n[this.index];i&&!t&&F.emit(Nr,{model:this,type:"load",data:i})}backward(t=!1){const{index:r,items:n}=this;if(r>=n.length-1)return;r<0&&(this.index=0),++this.index;const i=n[this.index];i&&!t&&F.emit(Nr,{model:this,type:"load",data:i})}load(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>=0&&(this.index=n,r||F.emit(Nr,{model:this,type:"load",data:this.items[n]}))}clear(t=!1){this.index=-1;const r=this.items.map(n=>n.id);this.items=[],t||F.emit(We,{model:this,type:"clear",data:r})}};const F=Uc();function uy(e){return e instanceof te}function ly(e){return e instanceof Jr}function hy(e){return!!e.__VTJ_BLOCK__}function Xi(e){const t=ir(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Xi(r))),t}function fy(e){const t=e.fromType||"Schema";return t==="Schema"?{type:"Schema",id:e.id}:t==="UrlSchema"?{type:"UrlSchema",url:(e.urls||"").split(",")[0]||""}:t==="Plugin"?{type:"Plugin",urls:(e.urls||"").split(","),library:e.library}:""}const b2=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:Kc,BUILT_IN_LIBRARAY_MAP:oy,BUILT_IN_MATERIALS:sy,BUILT_IN_NAME:iy,BUILT_IN_TAGS:ay,BUILT_IN_VUE:Gi,BUILT_IN_VUE_ROUTER:Zi,Base:Jc,BlockModel:te,DirectiveModel:Ke,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:We,EVENT_HISTORY_LOAD:Nr,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:fi,EVENT_PROJECT_APIS_CHANGE:di,EVENT_PROJECT_BLOCKS_CHANGE:Se,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:pi,EVENT_PROJECT_FILE_PUBLISH:Qc,EVENT_PROJECT_GEN_SOURCE:Xc,EVENT_PROJECT_META_CHANGE:mi,EVENT_PROJECT_PAGES_CHANGE:Je,EVENT_PROJECT_PUBLISH:Zc,EventModel:kr,HistoryModel:Qi,NodeModel:Jr,ProjectModel:ce,PropModel:Pr,Service:cy,VTJ_CORE_VERSION:ny,cloneDsl:Xi,createNodeFrom:fy,emitter:F,isBlock:uy,isBlockSchema:hy,isNode:ly},Symbol.toStringTag,{value:"Module"}));var py=Object.defineProperty,dy=(e,t,r)=>t in e?py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xt=(e,t,r)=>dy(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();/**!
57
57
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
58
58
  * @name @vtj/utils
59
59
  * @author CHC chenhuachun1549@dingtalk.com
60
- * @version 0.9.4
60
+ * @version 0.9.5
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const dy="0.9.4";/**
62
+ */const my="0.9.5";/**
63
63
  * @vue/shared v3.5.13
64
64
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
65
65
  * @license MIT
66
- **//*! #__NO_SIDE_EFFECTS__ */function my(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const gy=Object.assign,vy=Object.prototype.hasOwnProperty,gi=(e,t)=>vy.call(e,t),$e=Array.isArray,Br=e=>tu(e)==="[object Map]",yy=e=>typeof e=="string",fr=e=>typeof e=="symbol",dn=e=>e!==null&&typeof e=="object",by=Object.prototype.toString,tu=e=>by.call(e),_y=e=>tu(e).slice(8,-1),ts=e=>yy(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ze=(e,t)=>!Object.is(e,t);var wy={ENV_TYPE:"local",NODE_ENV:"production"};let Ey,eu=0,In;function es(){eu++}function rs(){if(--eu>0)return;let e;for(;In;){let t=In;for(In=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}let Wr=!0;const ru=[];function Sy(){ru.push(Wr),Wr=!1}function xy(){const e=ru.pop();Wr=e===void 0?!0:e}let nu=class{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}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){es();try{wy.NODE_ENV;for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{rs()}}};const vi=new WeakMap,re=Symbol(""),yi=Symbol(""),sr=Symbol("");function vt(e,t,r){if(Wr&&Ey){let n=vi.get(e);n||vi.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new nu),i.map=n,i.key=r),i.track()}}function Ut(e,t,r,n,i,s){const o=vi.get(e);if(!o)return;const a=u=>{u&&u.trigger()};if(es(),t==="clear")o.forEach(a);else{const u=$e(e),c=u&&ts(r);if(u&&r==="length"){const l=Number(n);o.forEach((h,f)=>{(f==="length"||f===sr||!fr(f)&&f>=l)&&a(h)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(sr)),t){case"add":u?c&&a(o.get("length")):(a(o.get(re)),Br(e)&&a(o.get(yi)));break;case"delete":u||(a(o.get(re)),Br(e)&&a(o.get(yi)));break;case"set":Br(e)&&a(o.get(re));break}}rs()}function ye(e){const t=Z(e);return t===e?t:(vt(t,"iterate",sr),Kt(e)?t:t.map(lt))}function ns(e){return vt(e=Z(e),"iterate",sr),e}const Ty={__proto__:null,[Symbol.iterator](){return Mn(this,Symbol.iterator,lt)},concat(...e){return ye(this).concat(...e.map(t=>$e(t)?ye(t):t))},entries(){return Mn(this,"entries",e=>(e[1]=lt(e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,r=>r.map(lt),arguments)},find(e,t){return kt(this,"find",e,t,lt,arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,lt,arguments)},findLastIndex(e,t){return kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fn(this,"includes",e)},indexOf(...e){return Fn(this,"indexOf",e)},join(e){return ye(this).join(e)},lastIndexOf(...e){return Fn(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return Ue(this,"pop")},push(...e){return Ue(this,"push",e)},reduce(e,...t){return Bo(this,"reduce",e,t)},reduceRight(e,...t){return Bo(this,"reduceRight",e,t)},shift(){return Ue(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return Ue(this,"splice",e)},toReversed(){return ye(this).toReversed()},toSorted(e){return ye(this).toSorted(e)},toSpliced(...e){return ye(this).toSpliced(...e)},unshift(...e){return Ue(this,"unshift",e)},values(){return Mn(this,"values",lt)}};function Mn(e,t,r){const n=ns(e),i=n[t]();return n!==e&&!Kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=r(s.value)),s}),i}const $y=Array.prototype;function kt(e,t,r,n,i,s){const o=ns(e),a=o!==e&&!Kt(e),u=o[t];if(u!==$y[t]){const h=u.apply(e,s);return a?lt(h):h}let c=r;o!==e&&(a?c=function(h,f){return r.call(this,lt(h),f,e)}:r.length>2&&(c=function(h,f){return r.call(this,h,f,e)}));const l=u.call(o,c,n);return a&&i?i(l):l}function Bo(e,t,r,n){const i=ns(e);let s=r;return i!==e&&(Kt(e)?r.length>3&&(s=function(o,a,u){return r.call(this,o,a,u,e)}):s=function(o,a,u){return r.call(this,o,lt(a),u,e)}),i[t](s,...n)}function Fn(e,t,r){const n=Z(e);vt(n,"iterate",sr);const i=n[t](...r);return(i===-1||i===!1)&&Vy(r[0])?(r[0]=Z(r[0]),n[t](...r)):i}function Ue(e,t,r=[]){Sy(),es();const n=Z(e)[t].apply(e,r);return rs(),xy(),n}const Oy=my("__proto__,__v_isRef,__isVue"),iu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(fr));function Ay(e){fr(e)||(e=String(e));const t=Z(this);return vt(t,"has",e),t.hasOwnProperty(e)}let su=class{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(i?s?My:cu:s?Iy:au).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=$e(t);if(!i){let u;if(o&&(u=Ty[r]))return u;if(r==="hasOwnProperty")return Ay}const a=Reflect.get(t,r,Oe(t)?t:n);return(fr(r)?iu.has(r):Oy(r))||(i||vt(t,"get",r),s)?a:Oe(a)?o&&ts(r)?a:a.value:dn(a)?i?lu(a):uu(a):a}};class jy extends su{constructor(t=!1){super(!1,t)}set(t,r,n,i){let s=t[r];if(!this._isShallow){const u=Ce(s);if(!Kt(n)&&!Ce(n)&&(s=Z(s),n=Z(n)),!$e(t)&&Oe(s)&&!Oe(n))return u?!1:(s.value=n,!0)}const o=$e(t)&&ts(r)?Number(r)<t.length:gi(t,r),a=Reflect.set(t,r,n,Oe(t)?t:i);return t===Z(i)&&(o?Ze(n,s)&&Ut(t,"set",r,n):Ut(t,"add",r,n)),a}deleteProperty(t,r){const n=gi(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&Ut(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!fr(r)||!iu.has(r))&&vt(t,"has",r),n}ownKeys(t){return vt(t,"iterate",$e(t)?"length":re),Reflect.ownKeys(t)}}class Ry extends su{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const Dy=new jy,Cy=new Ry,$r=e=>Reflect.getPrototypeOf(e);function Py(e,t,r){return function(...n){const i=this.__v_raw,s=Z(i),o=Br(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...n),l=t?bi:lt;return!t&&vt(s,"iterate",u?yi:re),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[l(h[0]),l(h[1])]:l(h),done:f}},[Symbol.iterator](){return this}}}}function Or(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ky(e,t){const r={get(n){const i=this.__v_raw,s=Z(i),o=Z(n);e||(Ze(n,o)&&vt(s,"get",n),vt(s,"get",o));const{has:a}=$r(s),u=e?bi:lt;if(a.call(s,n))return u(i.get(n));if(a.call(s,o))return u(i.get(o));i!==s&&i.get(n)},get size(){const n=this.__v_raw;return!e&&vt(Z(n),"iterate",re),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,s=Z(i),o=Z(n);return e||(Ze(n,o)&&vt(s,"has",n),vt(s,"has",o)),n===o?i.has(n):i.has(n)||i.has(o)},forEach(n,i){const s=this,o=s.__v_raw,a=Z(o),u=e?bi:lt;return!e&&vt(a,"iterate",re),o.forEach((c,l)=>n.call(i,u(c),u(l),s))}};return gy(r,e?{add:Or("add"),set:Or("set"),delete:Or("delete"),clear:Or("clear")}:{add(n){!Kt(n)&&!Ce(n)&&(n=Z(n));const i=Z(this);return $r(i).has.call(i,n)||(i.add(n),Ut(i,"add",n,n)),this},set(n,i){!Kt(i)&&!Ce(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=$r(s);let u=o.call(s,n);u||(n=Z(n),u=o.call(s,n));const c=a.call(s,n);return s.set(n,i),u?Ze(i,c)&&Ut(s,"set",n,i):Ut(s,"add",n,i),this},delete(n){const i=Z(this),{has:s,get:o}=$r(i);let a=s.call(i,n);a||(n=Z(n),a=s.call(i,n)),o&&o.call(i,n);const u=i.delete(n);return a&&Ut(i,"delete",n,void 0),u},clear(){const n=Z(this),i=n.size!==0,s=n.clear();return i&&Ut(n,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=Py(n,e)}),r}function ou(e,t){const r=ky(e);return(n,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(gi(r,i)&&i in n?r:n,i,s)}const Ny={get:ou(!1)},By={get:ou(!0)},au=new WeakMap,Iy=new WeakMap,cu=new WeakMap,My=new WeakMap;function Fy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ly(e){return e.__v_skip||!Object.isExtensible(e)?0:Fy(_y(e))}function uu(e){return Ce(e)?e:hu(e,!1,Dy,Ny,au)}function lu(e){return hu(e,!0,Cy,By,cu)}function hu(e,t,r,n,i){if(!dn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=Ly(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function Ce(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function Vy(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const lt=e=>dn(e)?uu(e):e,bi=e=>dn(e)?lu(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function Ln(e){return Hy(e,!1)}function Hy(e,t){return Oe(e)?e:new Uy(e,t)}class Uy{constructor(t,r){this.dep=new nu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Z(t),this._value=r?t:lt(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Kt(t)||Ce(t);t=n?t:Z(t),Ze(t,r)&&(this._rawValue=t,this._value=n?t:lt(t),this.dep.trigger())}}function fu(e,t){return function(){return e.apply(t,arguments)}}const{toString:zy}=Object.prototype,{getPrototypeOf:is}=Object,mn=(e=>t=>{const r=zy.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>mn(t)===e),gn=e=>t=>typeof t===e,{isArray:Ie}=Array,or=gn("undefined");function qy(e){return e!==null&&!or(e)&&e.constructor!==null&&!or(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pu=jt("ArrayBuffer");function Ky(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pu(e.buffer),t}const Jy=gn("string"),_t=gn("function"),du=gn("number"),vn=e=>e!==null&&typeof e=="object",Wy=e=>e===!0||e===!1,Ir=e=>{if(mn(e)!=="object")return!1;const t=is(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Yy=jt("Date"),Gy=jt("File"),Zy=jt("Blob"),Qy=jt("FileList"),Xy=e=>vn(e)&&_t(e.pipe),tb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=mn(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},eb=jt("URLSearchParams"),[rb,nb,ib,sb]=["ReadableStream","Request","Response","Headers"].map(jt),ob=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ie(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(n=0;n<o;n++)a=s[n],t.call(null,e[a],a,e)}}function mu(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gu=e=>!or(e)&&e!==ee;function _i(){const{caseless:e}=gu(this)&&this||{},t={},r=(n,i)=>{const s=e&&mu(t,i)||i;Ir(t[s])&&Ir(n)?t[s]=_i(t[s],n):Ir(n)?t[s]=_i({},n):Ie(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&pr(arguments[n],r);return t}const ab=(e,t,r,{allOwnKeys:n}={})=>(pr(t,(i,s)=>{r&&_t(i)?e[s]=fu(i,r):e[s]=i},{allOwnKeys:n}),e),cb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ub=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},lb=(e,t,r,n)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&is(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},hb=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},fb=e=>{if(!e)return null;if(Ie(e))return e;let t=e.length;if(!du(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},pb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&is(Uint8Array)),db=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},mb=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},gb=jt("HTMLFormElement"),vb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Io=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),yb=jt("RegExp"),vu=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};pr(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},bb=e=>{vu(e,(t,r)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(_t(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_b=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Ie(e)?n(e):n(String(e).split(t)),r},wb=()=>{},Eb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vn="abcdefghijklmnopqrstuvwxyz",Mo="0123456789",yu={DIGIT:Mo,ALPHA:Vn,ALPHA_DIGIT:Vn+Vn.toUpperCase()+Mo},Sb=(e=16,t=yu.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function xb(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Tb=e=>{const t=new Array(10),r=(n,i)=>{if(vn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=Ie(n)?[]:{};return pr(n,(o,a)=>{const u=r(o,i+1);!or(u)&&(s[a]=u)}),t[i]=void 0,s}}return n};return r(e,0)},$b=jt("AsyncFunction"),Ob=e=>e&&(vn(e)||_t(e))&&_t(e.then)&&_t(e.catch),bu=((e,t)=>e?setImmediate:t?((r,n)=>(ee.addEventListener("message",({source:i,data:s})=>{i===ee&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ee.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",_t(ee.postMessage)),Ab=typeof queueMicrotask<"u"?queueMicrotask.bind(ee):typeof process<"u"&&process.nextTick||bu,$={isArray:Ie,isArrayBuffer:pu,isBuffer:qy,isFormData:tb,isArrayBufferView:Ky,isString:Jy,isNumber:du,isBoolean:Wy,isObject:vn,isPlainObject:Ir,isReadableStream:rb,isRequest:nb,isResponse:ib,isHeaders:sb,isUndefined:or,isDate:Yy,isFile:Gy,isBlob:Zy,isRegExp:yb,isFunction:_t,isStream:Xy,isURLSearchParams:eb,isTypedArray:pb,isFileList:Qy,forEach:pr,merge:_i,extend:ab,trim:ob,stripBOM:cb,inherits:ub,toFlatObject:lb,kindOf:mn,kindOfTest:jt,endsWith:hb,toArray:fb,forEachEntry:db,matchAll:mb,isHTMLForm:gb,hasOwnProperty:Io,hasOwnProp:Io,reduceDescriptors:vu,freezeMethods:bb,toObjectSet:_b,toCamelCase:vb,noop:wb,toFiniteNumber:Eb,findKey:mu,global:ee,isContextDefined:gu,ALPHABET:yu,generateString:Sb,isSpecCompliantForm:xb,toJSONObject:Tb,isAsyncFn:$b,isThenable:Ob,setImmediate:bu,asap:Ab};function J(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}$.inherits(J,Error,{toJSON:function(){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}}});const _u=J.prototype,wu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{wu[e]={value:e}});Object.defineProperties(J,wu);Object.defineProperty(_u,"isAxiosError",{value:!0});J.from=(e,t,r,n,i,s)=>{const o=Object.create(_u);return $.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),J.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const jb=null;function wi(e){return $.isPlainObject(e)||$.isArray(e)}function Eu(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Fo(e,t,r){return e?e.concat(t).map(function(n,i){return n=Eu(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Rb(e){return $.isArray(e)&&!e.some(wi)}const Db=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function yn(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!$.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||c,s=r.dots,o=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if($.isDate(p))return p.toISOString();if(!a&&$.isBlob(p))throw new J("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(p)||$.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,d,m){let b=p;if(p&&!m&&typeof p=="object"){if($.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if($.isArray(p)&&Rb(p)||($.isFileList(p)||$.endsWith(d,"[]"))&&(b=$.toArray(p)))return d=Eu(d),b.forEach(function(E,g){!($.isUndefined(E)||E===null)&&t.append(o===!0?Fo([d],g,s):o===null?d:d+"[]",u(E))}),!1}return wi(p)?!0:(t.append(Fo(m,d,s),u(p)),!1)}const l=[],h=Object.assign(Db,{defaultVisitor:c,convertValue:u,isVisitable:wi});function f(p,d){if(!$.isUndefined(p)){if(l.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(p),$.forEach(p,function(m,b){(!($.isUndefined(m)||m===null)&&i.call(t,m,$.isString(b)?b.trim():b,d,h))===!0&&f(m,d?d.concat(b):[b])}),l.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Lo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ss(e,t){this._pairs=[],e&&yn(e,this,t)}const Su=ss.prototype;Su.append=function(e,t){this._pairs.push([e,t])};Su.toString=function(e){const t=e?function(r){return e.call(this,r,Lo)}:Lo;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Cb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xu(e,t,r){if(!t)return e;const n=r&&r.encode||Cb;$.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=$.isURLSearchParams(t)?t.toString():new ss(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Vo=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.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 Tu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pb=typeof URLSearchParams<"u"?URLSearchParams:ss,kb=typeof FormData<"u"?FormData:null,Nb=typeof Blob<"u"?Blob:null,Bb={isBrowser:!0,classes:{URLSearchParams:Pb,FormData:kb,Blob:Nb},protocols:["http","https","file","blob","url","data"]},os=typeof window<"u"&&typeof document<"u",Ei=typeof navigator=="object"&&navigator||void 0,Ib=os&&(!Ei||["ReactNative","NativeScript","NS"].indexOf(Ei.product)<0),Mb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fb=os&&window.location.href||"http://localhost",Lb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:os,hasStandardBrowserEnv:Ib,hasStandardBrowserWebWorkerEnv:Mb,navigator:Ei,origin:Fb},Symbol.toStringTag,{value:"Module"})),st=z(z({},Lb),Bb);function Vb(e,t){return yn(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return st.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Hb(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ub(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function $u(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=s>=r.length;return o=!o&&$.isArray(i)?i.length:o,u?($.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!$.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&$.isArray(i[o])&&(i[o]=Ub(i[o])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,(n,i)=>{t(Hb(n),i,r,0)}),r}return null}function zb(e,t,r){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const dr={transitional:Tu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=$.isObject(e);if(i&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return n?JSON.stringify($u(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vb(e,this.formSerializer).toString();if((s=$.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return yn(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),zb(e)):e}],transformResponse:[function(e){const t=this.transitional||dr.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?J.from(s,J.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{dr.headers[e]={}});const qb=$.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"]),Kb=e=>{const t={};let r,n,i;return e&&e.split(`
67
- `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&qb[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ho=Symbol("internals");function ze(e){return e&&String(e).trim().toLowerCase()}function Mr(e){return e===!1||e==null?e:$.isArray(e)?e.map(Mr):String(e)}function Jb(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Wb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hn(e,t,r,n,i){if($.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!$.isString(t)){if($.isString(n))return t.indexOf(n)!==-1;if($.isRegExp(n))return n.test(t)}}function Yb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Gb(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let yt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,u,c){const l=ze(u);if(!l)throw new Error("header name must be a non-empty string");const h=$.findKey(i,l);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||u]=Mr(a))}const o=(a,u)=>$.forEach(a,(c,l)=>s(c,l,u));if($.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if($.isString(t)&&(t=t.trim())&&!Wb(t))o(Kb(t),r);else if($.isHeaders(t))for(const[a,u]of t.entries())s(u,a,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=ze(t),t){const n=$.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Jb(i);if($.isFunction(r))return r.call(this,i,n);if($.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ze(t),t){const n=$.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Hn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=ze(o),o){const a=$.findKey(n,o);a&&(!r||Hn(n,n[a],a,r))&&(delete n[a],i=!0)}}return $.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||Hn(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return $.forEach(this,(i,s)=>{const o=$.findKey(n,s);if(o){r[o]=Mr(i),delete r[s];return}const a=t?Yb(s):String(s).trim();a!==s&&delete r[s],r[a]=Mr(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return $.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
68
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[Ho]=this[Ho]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ze(s);r[o]||(Gb(n,s),r[o]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});$.freezeMethods(yt);function Un(e,t){const r=this||dr,n=t||r,i=yt.from(n.headers);let s=n.data;return $.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Ou(e){return!!(e&&e.__CANCEL__)}function Me(e,t,r){J.call(this,e!=null?e:"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}$.inherits(Me,J,{__CANCEL__:!0});function Au(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Zb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Qb(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=n[s];o||(o=u),r[i]=a,n[i]=u;let l=s,h=0;for(;l!==i;)h+=r[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function Xb(e,t){let r=0,n=1e3/t,i,s;const o=(a,u=Date.now())=>{r=u,i=null,s&&(clearTimeout(s),s=null),e.apply(null,a)};return[(...a)=>{const u=Date.now(),c=u-r;c>=n?o(a,u):(i=a,s||(s=setTimeout(()=>{s=null,o(i)},n-c)))},()=>i&&o(i)]}const Yr=(e,t,r=3)=>{let n=0;const i=Qb(50,250);return Xb(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,u=o-n,c=i(u),l=o<=a;n=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&l?(a-o)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},r)},Uo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},zo=e=>(...t)=>$.asap(()=>e(...t)),t_=st.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,st.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(st.origin),st.navigator&&/(msie|trident)/i.test(st.navigator.userAgent)):()=>!0,e_=st.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];$.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),$.isString(n)&&o.push("path="+n),$.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function r_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function n_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ju(e,t){return e&&!r_(t)?n_(e,t):t}const qo=e=>e instanceof yt?z({},e):e;function ue(e,t){t=t||{};const r={};function n(c,l,h,f){return $.isPlainObject(c)&&$.isPlainObject(l)?$.merge.call({caseless:f},c,l):$.isPlainObject(l)?$.merge({},l):$.isArray(l)?l.slice():l}function i(c,l,h,f){if($.isUndefined(l)){if(!$.isUndefined(c))return n(void 0,c,h,f)}else return n(c,l,h,f)}function s(c,l){if(!$.isUndefined(l))return n(void 0,l)}function o(c,l){if($.isUndefined(l)){if(!$.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function a(c,l,h){if(h in t)return n(c,l);if(h in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,l,h)=>i(qo(c),qo(l),h,!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(c){const l=u[c]||i,h=l(e[c],t[c],c);$.isUndefined(h)&&l!==a||(r[c]=h)}),r}const Ru=e=>{const t=ue({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=yt.from(o),t.url=xu(ju(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if($.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[c,...l]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...l].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&$.isFunction(n)&&(n=n(t)),n||n!==!1&&t_(t.url))){const c=i&&s&&e_.read(s);c&&o.set(i,c)}return t},i_=typeof XMLHttpRequest<"u",s_=i_&&function(e){return new Promise(function(t,r){const n=Ru(e);let i=n.data;const s=yt.from(n.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:u}=n,c,l,h,f,p;function d(){f&&f(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const g=yt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:g,config:e,request:m};Au(function(_){t(_),d()},function(_){r(_),d()},y),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let g=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||Tu;n.timeoutErrorMessage&&(g=n.timeoutErrorMessage),r(new J(g,y.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&$.forEach(s.toJSON(),function(g,y){m.setRequestHeader(y,g)}),$.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),o&&o!=="json"&&(m.responseType=n.responseType),u&&([h,p]=Yr(u,!0),m.addEventListener("progress",h)),a&&m.upload&&([l,f]=Yr(a),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(c=g=>{m&&(r(!g||g.type?new Me(null,e,m):g),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const E=Zb(n.url);if(E&&st.protocols.indexOf(E)===-1){r(new J("Unsupported protocol "+E+":",J.ERR_BAD_REQUEST,e));return}m.send(i||null)})},o_=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(c){if(!i){i=!0,a();const l=c instanceof Error?c:this.reason;n.abort(l instanceof J?l:new Me(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,s(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=n;return u.unsubscribe=()=>$.asap(a),u}},a_=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},c_=function(e,t){return $n(this,null,function*(){try{for(var r=Ts(u_(e)),n,i,s;n=!(i=yield new Gt(r.next())).done;n=!1){const o=i.value;yield*On(a_(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Gt(i.call(r)))}finally{if(s)throw s[0]}}})},u_=function(e){return $n(this,null,function*(){if(e[Symbol.asyncIterator]){yield*On(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Gt(t.read());if(r)break;yield n}}finally{yield new Gt(t.cancel())}})},Ko=(e,t,r,n)=>{const i=c_(e,t);let s=0,o,a=c=>{o||(o=!0,n&&n(c))};return new ReadableStream({pull(c){return L(this,null,function*(){try{const{done:l,value:h}=yield i.next();if(l){a(),c.close();return}let f=h.byteLength;if(r){let p=s+=f;r(p)}c.enqueue(new Uint8Array(h))}catch(l){throw a(l),l}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})},bn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Du=bn&&typeof ReadableStream=="function",l_=bn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>L(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Cu=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},h_=Du&&Cu(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Jo=64*1024,Si=Du&&Cu(()=>$.isReadableStream(new Response("").body)),Gr={stream:Si&&(e=>e.body)};bn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Gr[t]&&(Gr[t]=$.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const f_=e=>L(void 0,null,function*(){if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(yield new Request(st.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(yield l_(e)).byteLength}),p_=(e,t)=>L(void 0,null,function*(){const r=$.toFiniteNumber(e.getContentLength());return r!=null?r:f_(t)}),d_=bn&&(e=>L(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:h="same-origin",fetchOptions:f}=Ru(e);c=c?(c+"").toLowerCase():"text";let p=o_([i,s&&s.toAbortSignal()],o),d;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(u&&h_&&r!=="get"&&r!=="head"&&(b=yield p_(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),v;if($.isFormData(n)&&(v=S.headers.get("content-type"))&&l.setContentType(v),S.body){const[x,O]=Uo(b,Yr(zo(u)));n=Ko(S.body,Jo,x,O)}}$.isString(h)||(h=h?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,ct(z({},f),{signal:p,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?h:void 0}));let g=yield fetch(d);const y=Si&&(c==="stream"||c==="response");if(Si&&(a||y&&m)){const S={};["status","statusText","headers"].forEach(V=>{S[V]=g[V]});const v=$.toFiniteNumber(g.headers.get("content-length")),[x,O]=a&&Uo(v,Yr(zo(a),!0))||[];g=new Response(Ko(g.body,Jo,x,()=>{O&&O(),m&&m()}),S)}c=c||"text";let _=yield Gr[$.findKey(Gr,c)||"text"](g,e);return!y&&m&&m(),yield new Promise((S,v)=>{Au(S,v,{data:_,headers:yt.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:d})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,d),{cause:E.cause||E}):J.from(E,E&&E.code,e,d)}})),xi={http:jb,xhr:s_,fetch:d_};$.forEach(xi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Wo=e=>`- ${e}`,m_=e=>$.isFunction(e)||e===null||e===!1,Pu={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!m_(r)&&(n=xi[(o=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
66
+ **//*! #__NO_SIDE_EFFECTS__ */function gy(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vy=Object.assign,yy=Object.prototype.hasOwnProperty,gi=(e,t)=>yy.call(e,t),$e=Array.isArray,Br=e=>tu(e)==="[object Map]",by=e=>typeof e=="string",fr=e=>typeof e=="symbol",dn=e=>e!==null&&typeof e=="object",_y=Object.prototype.toString,tu=e=>_y.call(e),wy=e=>tu(e).slice(8,-1),ts=e=>by(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ze=(e,t)=>!Object.is(e,t);var Ey={ENV_TYPE:"local",NODE_ENV:"production"};let Sy,eu=0,In;function es(){eu++}function rs(){if(--eu>0)return;let e;for(;In;){let t=In;for(In=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}let Wr=!0;const ru=[];function xy(){ru.push(Wr),Wr=!1}function Ty(){const e=ru.pop();Wr=e===void 0?!0:e}let nu=class{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}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){es();try{Ey.NODE_ENV;for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{rs()}}};const vi=new WeakMap,re=Symbol(""),yi=Symbol(""),sr=Symbol("");function vt(e,t,r){if(Wr&&Sy){let n=vi.get(e);n||vi.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new nu),i.map=n,i.key=r),i.track()}}function Ut(e,t,r,n,i,s){const o=vi.get(e);if(!o)return;const a=u=>{u&&u.trigger()};if(es(),t==="clear")o.forEach(a);else{const u=$e(e),c=u&&ts(r);if(u&&r==="length"){const l=Number(n);o.forEach((h,f)=>{(f==="length"||f===sr||!fr(f)&&f>=l)&&a(h)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(sr)),t){case"add":u?c&&a(o.get("length")):(a(o.get(re)),Br(e)&&a(o.get(yi)));break;case"delete":u||(a(o.get(re)),Br(e)&&a(o.get(yi)));break;case"set":Br(e)&&a(o.get(re));break}}rs()}function ye(e){const t=Z(e);return t===e?t:(vt(t,"iterate",sr),Kt(e)?t:t.map(lt))}function ns(e){return vt(e=Z(e),"iterate",sr),e}const $y={__proto__:null,[Symbol.iterator](){return Mn(this,Symbol.iterator,lt)},concat(...e){return ye(this).concat(...e.map(t=>$e(t)?ye(t):t))},entries(){return Mn(this,"entries",e=>(e[1]=lt(e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,r=>r.map(lt),arguments)},find(e,t){return kt(this,"find",e,t,lt,arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,lt,arguments)},findLastIndex(e,t){return kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fn(this,"includes",e)},indexOf(...e){return Fn(this,"indexOf",e)},join(e){return ye(this).join(e)},lastIndexOf(...e){return Fn(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return Ue(this,"pop")},push(...e){return Ue(this,"push",e)},reduce(e,...t){return Bo(this,"reduce",e,t)},reduceRight(e,...t){return Bo(this,"reduceRight",e,t)},shift(){return Ue(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return Ue(this,"splice",e)},toReversed(){return ye(this).toReversed()},toSorted(e){return ye(this).toSorted(e)},toSpliced(...e){return ye(this).toSpliced(...e)},unshift(...e){return Ue(this,"unshift",e)},values(){return Mn(this,"values",lt)}};function Mn(e,t,r){const n=ns(e),i=n[t]();return n!==e&&!Kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=r(s.value)),s}),i}const Oy=Array.prototype;function kt(e,t,r,n,i,s){const o=ns(e),a=o!==e&&!Kt(e),u=o[t];if(u!==Oy[t]){const h=u.apply(e,s);return a?lt(h):h}let c=r;o!==e&&(a?c=function(h,f){return r.call(this,lt(h),f,e)}:r.length>2&&(c=function(h,f){return r.call(this,h,f,e)}));const l=u.call(o,c,n);return a&&i?i(l):l}function Bo(e,t,r,n){const i=ns(e);let s=r;return i!==e&&(Kt(e)?r.length>3&&(s=function(o,a,u){return r.call(this,o,a,u,e)}):s=function(o,a,u){return r.call(this,o,lt(a),u,e)}),i[t](s,...n)}function Fn(e,t,r){const n=Z(e);vt(n,"iterate",sr);const i=n[t](...r);return(i===-1||i===!1)&&Hy(r[0])?(r[0]=Z(r[0]),n[t](...r)):i}function Ue(e,t,r=[]){xy(),es();const n=Z(e)[t].apply(e,r);return rs(),Ty(),n}const Ay=gy("__proto__,__v_isRef,__isVue"),iu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(fr));function jy(e){fr(e)||(e=String(e));const t=Z(this);return vt(t,"has",e),t.hasOwnProperty(e)}let su=class{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(i?s?Fy:cu:s?My:au).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=$e(t);if(!i){let u;if(o&&(u=$y[r]))return u;if(r==="hasOwnProperty")return jy}const a=Reflect.get(t,r,Oe(t)?t:n);return(fr(r)?iu.has(r):Ay(r))||(i||vt(t,"get",r),s)?a:Oe(a)?o&&ts(r)?a:a.value:dn(a)?i?lu(a):uu(a):a}};class Ry extends su{constructor(t=!1){super(!1,t)}set(t,r,n,i){let s=t[r];if(!this._isShallow){const u=Ce(s);if(!Kt(n)&&!Ce(n)&&(s=Z(s),n=Z(n)),!$e(t)&&Oe(s)&&!Oe(n))return u?!1:(s.value=n,!0)}const o=$e(t)&&ts(r)?Number(r)<t.length:gi(t,r),a=Reflect.set(t,r,n,Oe(t)?t:i);return t===Z(i)&&(o?Ze(n,s)&&Ut(t,"set",r,n):Ut(t,"add",r,n)),a}deleteProperty(t,r){const n=gi(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&Ut(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!fr(r)||!iu.has(r))&&vt(t,"has",r),n}ownKeys(t){return vt(t,"iterate",$e(t)?"length":re),Reflect.ownKeys(t)}}class Dy extends su{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const Cy=new Ry,Py=new Dy,$r=e=>Reflect.getPrototypeOf(e);function ky(e,t,r){return function(...n){const i=this.__v_raw,s=Z(i),o=Br(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...n),l=t?bi:lt;return!t&&vt(s,"iterate",u?yi:re),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[l(h[0]),l(h[1])]:l(h),done:f}},[Symbol.iterator](){return this}}}}function Or(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ny(e,t){const r={get(n){const i=this.__v_raw,s=Z(i),o=Z(n);e||(Ze(n,o)&&vt(s,"get",n),vt(s,"get",o));const{has:a}=$r(s),u=e?bi:lt;if(a.call(s,n))return u(i.get(n));if(a.call(s,o))return u(i.get(o));i!==s&&i.get(n)},get size(){const n=this.__v_raw;return!e&&vt(Z(n),"iterate",re),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,s=Z(i),o=Z(n);return e||(Ze(n,o)&&vt(s,"has",n),vt(s,"has",o)),n===o?i.has(n):i.has(n)||i.has(o)},forEach(n,i){const s=this,o=s.__v_raw,a=Z(o),u=e?bi:lt;return!e&&vt(a,"iterate",re),o.forEach((c,l)=>n.call(i,u(c),u(l),s))}};return vy(r,e?{add:Or("add"),set:Or("set"),delete:Or("delete"),clear:Or("clear")}:{add(n){!Kt(n)&&!Ce(n)&&(n=Z(n));const i=Z(this);return $r(i).has.call(i,n)||(i.add(n),Ut(i,"add",n,n)),this},set(n,i){!Kt(i)&&!Ce(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=$r(s);let u=o.call(s,n);u||(n=Z(n),u=o.call(s,n));const c=a.call(s,n);return s.set(n,i),u?Ze(i,c)&&Ut(s,"set",n,i):Ut(s,"add",n,i),this},delete(n){const i=Z(this),{has:s,get:o}=$r(i);let a=s.call(i,n);a||(n=Z(n),a=s.call(i,n)),o&&o.call(i,n);const u=i.delete(n);return a&&Ut(i,"delete",n,void 0),u},clear(){const n=Z(this),i=n.size!==0,s=n.clear();return i&&Ut(n,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=ky(n,e)}),r}function ou(e,t){const r=Ny(e);return(n,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(gi(r,i)&&i in n?r:n,i,s)}const By={get:ou(!1)},Iy={get:ou(!0)},au=new WeakMap,My=new WeakMap,cu=new WeakMap,Fy=new WeakMap;function Ly(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vy(e){return e.__v_skip||!Object.isExtensible(e)?0:Ly(wy(e))}function uu(e){return Ce(e)?e:hu(e,!1,Cy,By,au)}function lu(e){return hu(e,!0,Py,Iy,cu)}function hu(e,t,r,n,i){if(!dn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=Vy(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function Ce(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function Hy(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const lt=e=>dn(e)?uu(e):e,bi=e=>dn(e)?lu(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function Ln(e){return Uy(e,!1)}function Uy(e,t){return Oe(e)?e:new zy(e,t)}class zy{constructor(t,r){this.dep=new nu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Z(t),this._value=r?t:lt(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Kt(t)||Ce(t);t=n?t:Z(t),Ze(t,r)&&(this._rawValue=t,this._value=n?t:lt(t),this.dep.trigger())}}function fu(e,t){return function(){return e.apply(t,arguments)}}const{toString:qy}=Object.prototype,{getPrototypeOf:is}=Object,mn=(e=>t=>{const r=qy.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>mn(t)===e),gn=e=>t=>typeof t===e,{isArray:Ie}=Array,or=gn("undefined");function Ky(e){return e!==null&&!or(e)&&e.constructor!==null&&!or(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pu=jt("ArrayBuffer");function Jy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pu(e.buffer),t}const Wy=gn("string"),_t=gn("function"),du=gn("number"),vn=e=>e!==null&&typeof e=="object",Yy=e=>e===!0||e===!1,Ir=e=>{if(mn(e)!=="object")return!1;const t=is(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Gy=jt("Date"),Zy=jt("File"),Qy=jt("Blob"),Xy=jt("FileList"),tb=e=>vn(e)&&_t(e.pipe),eb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=mn(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},rb=jt("URLSearchParams"),[nb,ib,sb,ob]=["ReadableStream","Request","Response","Headers"].map(jt),ab=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ie(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(n=0;n<o;n++)a=s[n],t.call(null,e[a],a,e)}}function mu(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gu=e=>!or(e)&&e!==ee;function _i(){const{caseless:e}=gu(this)&&this||{},t={},r=(n,i)=>{const s=e&&mu(t,i)||i;Ir(t[s])&&Ir(n)?t[s]=_i(t[s],n):Ir(n)?t[s]=_i({},n):Ie(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&pr(arguments[n],r);return t}const cb=(e,t,r,{allOwnKeys:n}={})=>(pr(t,(i,s)=>{r&&_t(i)?e[s]=fu(i,r):e[s]=i},{allOwnKeys:n}),e),ub=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lb=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},hb=(e,t,r,n)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&is(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},fb=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},pb=e=>{if(!e)return null;if(Ie(e))return e;let t=e.length;if(!du(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},db=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&is(Uint8Array)),mb=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},gb=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},vb=jt("HTMLFormElement"),yb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Io=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),bb=jt("RegExp"),vu=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};pr(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},_b=e=>{vu(e,(t,r)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(_t(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},wb=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Ie(e)?n(e):n(String(e).split(t)),r},Eb=()=>{},Sb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vn="abcdefghijklmnopqrstuvwxyz",Mo="0123456789",yu={DIGIT:Mo,ALPHA:Vn,ALPHA_DIGIT:Vn+Vn.toUpperCase()+Mo},xb=(e=16,t=yu.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Tb(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $b=e=>{const t=new Array(10),r=(n,i)=>{if(vn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=Ie(n)?[]:{};return pr(n,(o,a)=>{const u=r(o,i+1);!or(u)&&(s[a]=u)}),t[i]=void 0,s}}return n};return r(e,0)},Ob=jt("AsyncFunction"),Ab=e=>e&&(vn(e)||_t(e))&&_t(e.then)&&_t(e.catch),bu=((e,t)=>e?setImmediate:t?((r,n)=>(ee.addEventListener("message",({source:i,data:s})=>{i===ee&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ee.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",_t(ee.postMessage)),jb=typeof queueMicrotask<"u"?queueMicrotask.bind(ee):typeof process<"u"&&process.nextTick||bu,$={isArray:Ie,isArrayBuffer:pu,isBuffer:Ky,isFormData:eb,isArrayBufferView:Jy,isString:Wy,isNumber:du,isBoolean:Yy,isObject:vn,isPlainObject:Ir,isReadableStream:nb,isRequest:ib,isResponse:sb,isHeaders:ob,isUndefined:or,isDate:Gy,isFile:Zy,isBlob:Qy,isRegExp:bb,isFunction:_t,isStream:tb,isURLSearchParams:rb,isTypedArray:db,isFileList:Xy,forEach:pr,merge:_i,extend:cb,trim:ab,stripBOM:ub,inherits:lb,toFlatObject:hb,kindOf:mn,kindOfTest:jt,endsWith:fb,toArray:pb,forEachEntry:mb,matchAll:gb,isHTMLForm:vb,hasOwnProperty:Io,hasOwnProp:Io,reduceDescriptors:vu,freezeMethods:_b,toObjectSet:wb,toCamelCase:yb,noop:Eb,toFiniteNumber:Sb,findKey:mu,global:ee,isContextDefined:gu,ALPHABET:yu,generateString:xb,isSpecCompliantForm:Tb,toJSONObject:$b,isAsyncFn:Ob,isThenable:Ab,setImmediate:bu,asap:jb};function J(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}$.inherits(J,Error,{toJSON:function(){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}}});const _u=J.prototype,wu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{wu[e]={value:e}});Object.defineProperties(J,wu);Object.defineProperty(_u,"isAxiosError",{value:!0});J.from=(e,t,r,n,i,s)=>{const o=Object.create(_u);return $.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),J.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Rb=null;function wi(e){return $.isPlainObject(e)||$.isArray(e)}function Eu(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Fo(e,t,r){return e?e.concat(t).map(function(n,i){return n=Eu(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Db(e){return $.isArray(e)&&!e.some(wi)}const Cb=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function yn(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!$.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||c,s=r.dots,o=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if($.isDate(p))return p.toISOString();if(!a&&$.isBlob(p))throw new J("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(p)||$.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,d,m){let b=p;if(p&&!m&&typeof p=="object"){if($.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if($.isArray(p)&&Db(p)||($.isFileList(p)||$.endsWith(d,"[]"))&&(b=$.toArray(p)))return d=Eu(d),b.forEach(function(E,g){!($.isUndefined(E)||E===null)&&t.append(o===!0?Fo([d],g,s):o===null?d:d+"[]",u(E))}),!1}return wi(p)?!0:(t.append(Fo(m,d,s),u(p)),!1)}const l=[],h=Object.assign(Cb,{defaultVisitor:c,convertValue:u,isVisitable:wi});function f(p,d){if(!$.isUndefined(p)){if(l.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(p),$.forEach(p,function(m,b){(!($.isUndefined(m)||m===null)&&i.call(t,m,$.isString(b)?b.trim():b,d,h))===!0&&f(m,d?d.concat(b):[b])}),l.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Lo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ss(e,t){this._pairs=[],e&&yn(e,this,t)}const Su=ss.prototype;Su.append=function(e,t){this._pairs.push([e,t])};Su.toString=function(e){const t=e?function(r){return e.call(this,r,Lo)}:Lo;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Pb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xu(e,t,r){if(!t)return e;const n=r&&r.encode||Pb;$.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=$.isURLSearchParams(t)?t.toString():new ss(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Vo=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.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 Tu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kb=typeof URLSearchParams<"u"?URLSearchParams:ss,Nb=typeof FormData<"u"?FormData:null,Bb=typeof Blob<"u"?Blob:null,Ib={isBrowser:!0,classes:{URLSearchParams:kb,FormData:Nb,Blob:Bb},protocols:["http","https","file","blob","url","data"]},os=typeof window<"u"&&typeof document<"u",Ei=typeof navigator=="object"&&navigator||void 0,Mb=os&&(!Ei||["ReactNative","NativeScript","NS"].indexOf(Ei.product)<0),Fb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lb=os&&window.location.href||"http://localhost",Vb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:os,hasStandardBrowserEnv:Mb,hasStandardBrowserWebWorkerEnv:Fb,navigator:Ei,origin:Lb},Symbol.toStringTag,{value:"Module"})),st=z(z({},Vb),Ib);function Hb(e,t){return yn(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return st.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ub(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zb(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function $u(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=s>=r.length;return o=!o&&$.isArray(i)?i.length:o,u?($.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!$.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&$.isArray(i[o])&&(i[o]=zb(i[o])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,(n,i)=>{t(Ub(n),i,r,0)}),r}return null}function qb(e,t,r){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const dr={transitional:Tu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=$.isObject(e);if(i&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return n?JSON.stringify($u(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Hb(e,this.formSerializer).toString();if((s=$.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return yn(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),qb(e)):e}],transformResponse:[function(e){const t=this.transitional||dr.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?J.from(s,J.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{dr.headers[e]={}});const Kb=$.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"]),Jb=e=>{const t={};let r,n,i;return e&&e.split(`
67
+ `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Kb[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ho=Symbol("internals");function ze(e){return e&&String(e).trim().toLowerCase()}function Mr(e){return e===!1||e==null?e:$.isArray(e)?e.map(Mr):String(e)}function Wb(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Yb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hn(e,t,r,n,i){if($.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!$.isString(t)){if($.isString(n))return t.indexOf(n)!==-1;if($.isRegExp(n))return n.test(t)}}function Gb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Zb(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let yt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,u,c){const l=ze(u);if(!l)throw new Error("header name must be a non-empty string");const h=$.findKey(i,l);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||u]=Mr(a))}const o=(a,u)=>$.forEach(a,(c,l)=>s(c,l,u));if($.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if($.isString(t)&&(t=t.trim())&&!Yb(t))o(Jb(t),r);else if($.isHeaders(t))for(const[a,u]of t.entries())s(u,a,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=ze(t),t){const n=$.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Wb(i);if($.isFunction(r))return r.call(this,i,n);if($.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ze(t),t){const n=$.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Hn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=ze(o),o){const a=$.findKey(n,o);a&&(!r||Hn(n,n[a],a,r))&&(delete n[a],i=!0)}}return $.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||Hn(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return $.forEach(this,(i,s)=>{const o=$.findKey(n,s);if(o){r[o]=Mr(i),delete r[s];return}const a=t?Gb(s):String(s).trim();a!==s&&delete r[s],r[a]=Mr(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return $.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
68
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[Ho]=this[Ho]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ze(s);r[o]||(Zb(n,s),r[o]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});$.freezeMethods(yt);function Un(e,t){const r=this||dr,n=t||r,i=yt.from(n.headers);let s=n.data;return $.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Ou(e){return!!(e&&e.__CANCEL__)}function Me(e,t,r){J.call(this,e!=null?e:"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}$.inherits(Me,J,{__CANCEL__:!0});function Au(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Qb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xb(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=n[s];o||(o=u),r[i]=a,n[i]=u;let l=s,h=0;for(;l!==i;)h+=r[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function t_(e,t){let r=0,n=1e3/t,i,s;const o=(a,u=Date.now())=>{r=u,i=null,s&&(clearTimeout(s),s=null),e.apply(null,a)};return[(...a)=>{const u=Date.now(),c=u-r;c>=n?o(a,u):(i=a,s||(s=setTimeout(()=>{s=null,o(i)},n-c)))},()=>i&&o(i)]}const Yr=(e,t,r=3)=>{let n=0;const i=Xb(50,250);return t_(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,u=o-n,c=i(u),l=o<=a;n=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&l?(a-o)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},r)},Uo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},zo=e=>(...t)=>$.asap(()=>e(...t)),e_=st.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,st.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(st.origin),st.navigator&&/(msie|trident)/i.test(st.navigator.userAgent)):()=>!0,r_=st.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];$.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),$.isString(n)&&o.push("path="+n),$.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function n_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function i_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ju(e,t){return e&&!n_(t)?i_(e,t):t}const qo=e=>e instanceof yt?z({},e):e;function ue(e,t){t=t||{};const r={};function n(c,l,h,f){return $.isPlainObject(c)&&$.isPlainObject(l)?$.merge.call({caseless:f},c,l):$.isPlainObject(l)?$.merge({},l):$.isArray(l)?l.slice():l}function i(c,l,h,f){if($.isUndefined(l)){if(!$.isUndefined(c))return n(void 0,c,h,f)}else return n(c,l,h,f)}function s(c,l){if(!$.isUndefined(l))return n(void 0,l)}function o(c,l){if($.isUndefined(l)){if(!$.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function a(c,l,h){if(h in t)return n(c,l);if(h in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,l,h)=>i(qo(c),qo(l),h,!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(c){const l=u[c]||i,h=l(e[c],t[c],c);$.isUndefined(h)&&l!==a||(r[c]=h)}),r}const Ru=e=>{const t=ue({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=yt.from(o),t.url=xu(ju(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if($.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[c,...l]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...l].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&$.isFunction(n)&&(n=n(t)),n||n!==!1&&e_(t.url))){const c=i&&s&&r_.read(s);c&&o.set(i,c)}return t},s_=typeof XMLHttpRequest<"u",o_=s_&&function(e){return new Promise(function(t,r){const n=Ru(e);let i=n.data;const s=yt.from(n.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:u}=n,c,l,h,f,p;function d(){f&&f(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const g=yt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:g,config:e,request:m};Au(function(_){t(_),d()},function(_){r(_),d()},y),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let g=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||Tu;n.timeoutErrorMessage&&(g=n.timeoutErrorMessage),r(new J(g,y.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&$.forEach(s.toJSON(),function(g,y){m.setRequestHeader(y,g)}),$.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),o&&o!=="json"&&(m.responseType=n.responseType),u&&([h,p]=Yr(u,!0),m.addEventListener("progress",h)),a&&m.upload&&([l,f]=Yr(a),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(c=g=>{m&&(r(!g||g.type?new Me(null,e,m):g),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const E=Qb(n.url);if(E&&st.protocols.indexOf(E)===-1){r(new J("Unsupported protocol "+E+":",J.ERR_BAD_REQUEST,e));return}m.send(i||null)})},a_=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(c){if(!i){i=!0,a();const l=c instanceof Error?c:this.reason;n.abort(l instanceof J?l:new Me(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,s(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=n;return u.unsubscribe=()=>$.asap(a),u}},c_=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},u_=function(e,t){return $n(this,null,function*(){try{for(var r=Ts(l_(e)),n,i,s;n=!(i=yield new Gt(r.next())).done;n=!1){const o=i.value;yield*On(c_(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Gt(i.call(r)))}finally{if(s)throw s[0]}}})},l_=function(e){return $n(this,null,function*(){if(e[Symbol.asyncIterator]){yield*On(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Gt(t.read());if(r)break;yield n}}finally{yield new Gt(t.cancel())}})},Ko=(e,t,r,n)=>{const i=u_(e,t);let s=0,o,a=c=>{o||(o=!0,n&&n(c))};return new ReadableStream({pull(c){return L(this,null,function*(){try{const{done:l,value:h}=yield i.next();if(l){a(),c.close();return}let f=h.byteLength;if(r){let p=s+=f;r(p)}c.enqueue(new Uint8Array(h))}catch(l){throw a(l),l}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})},bn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Du=bn&&typeof ReadableStream=="function",h_=bn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>L(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Cu=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},f_=Du&&Cu(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Jo=64*1024,Si=Du&&Cu(()=>$.isReadableStream(new Response("").body)),Gr={stream:Si&&(e=>e.body)};bn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Gr[t]&&(Gr[t]=$.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const p_=e=>L(void 0,null,function*(){if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(yield new Request(st.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(yield h_(e)).byteLength}),d_=(e,t)=>L(void 0,null,function*(){const r=$.toFiniteNumber(e.getContentLength());return r!=null?r:p_(t)}),m_=bn&&(e=>L(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:h="same-origin",fetchOptions:f}=Ru(e);c=c?(c+"").toLowerCase():"text";let p=a_([i,s&&s.toAbortSignal()],o),d;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let b;try{if(u&&f_&&r!=="get"&&r!=="head"&&(b=yield d_(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),v;if($.isFormData(n)&&(v=S.headers.get("content-type"))&&l.setContentType(v),S.body){const[x,O]=Uo(b,Yr(zo(u)));n=Ko(S.body,Jo,x,O)}}$.isString(h)||(h=h?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,ct(z({},f),{signal:p,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?h:void 0}));let g=yield fetch(d);const y=Si&&(c==="stream"||c==="response");if(Si&&(a||y&&m)){const S={};["status","statusText","headers"].forEach(V=>{S[V]=g[V]});const v=$.toFiniteNumber(g.headers.get("content-length")),[x,O]=a&&Uo(v,Yr(zo(a),!0))||[];g=new Response(Ko(g.body,Jo,x,()=>{O&&O(),m&&m()}),S)}c=c||"text";let _=yield Gr[$.findKey(Gr,c)||"text"](g,e);return!y&&m&&m(),yield new Promise((S,v)=>{Au(S,v,{data:_,headers:yt.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:d})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,d),{cause:E.cause||E}):J.from(E,E&&E.code,e,d)}})),xi={http:Rb,xhr:o_,fetch:m_};$.forEach(xi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Wo=e=>`- ${e}`,g_=e=>$.isFunction(e)||e===null||e===!1,Pu={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!g_(r)&&(n=xi[(o=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
69
69
  `+s.map(Wo).join(`
70
- `):" "+Wo(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:xi};function zn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Me(null,e)}function Yo(e){return zn(e),e.headers=yt.from(e.headers),e.data=Un.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Pu.getAdapter(e.adapter||dr.adapter)(e).then(function(t){return zn(e),t.data=Un.call(e,e.transformResponse,t),t.headers=yt.from(t.headers),t},function(t){return Ou(t)||(zn(e),t&&t.response&&(t.response.data=Un.call(e,e.transformResponse,t.response),t.response.headers=yt.from(t.response.headers))),Promise.reject(t)})}const ku="1.7.9",_n={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_n[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Go={};_n.transitional=function(e,t,r){function n(i,s){return"[Axios v"+ku+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new J(n(s," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!Go[s]&&(Go[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};_n.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function g_(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new J("option "+s+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const Fr={assertOptions:g_,validators:_n},Rt=Fr.validators;class ne{constructor(t){this.defaults=t,this.interceptors={request:new Vo,response:new Vo}}request(t,r){return L(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
71
- `+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ue(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Fr.assertOptions(n,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),i!=null&&($.isFunction(i)?r.paramsSerializer={serialize:i}:Fr.assertOptions(i,{encode:Rt.function,serialize:Rt.function},!0)),Fr.assertOptions(r,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&$.merge(s.common,s[r.method]);s&&$.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=yt.concat(o,s);const a=[];let u=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(u=u&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let l,h=0,f;if(!u){const d=[Yo.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,c),f=d.length,l=Promise.resolve(r);h<f;)l=l.then(d[h++],d[h++]);return l}f=a.length;let p=r;for(h=0;h<f;){const d=a[h++],m=a[h++];try{p=d(p)}catch(b){m.call(this,b);break}}try{l=Yo.call(this,p)}catch(d){return Promise.reject(d)}for(h=0,f=c.length;h<f;)l=l.then(c[h++],c[h++]);return l}getUri(t){t=ue(this.defaults,t);const r=ju(t.baseURL,t.url);return xu(r,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(e){ne.prototype[e]=function(t,r){return this.request(ue(r||{},{method:e,url:t,data:(r||{}).data}))}});$.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(ue(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ne.prototype[e]=t(),ne.prototype[e+"Form"]=t(!0)});class as{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new Me(i,s,o),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new as(function(r){t=r}),cancel:t}}}function v_(e){return function(t){return e.apply(null,t)}}function y_(e){return $.isObject(e)&&e.isAxiosError===!0}const Ti={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};Object.entries(Ti).forEach(([e,t])=>{Ti[t]=e});function Nu(e){const t=new ne(e),r=fu(ne.prototype.request,t);return $.extend(r,ne.prototype,t,{allOwnKeys:!0}),$.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Nu(ue(e,n))},r}const et=Nu(dr);et.Axios=ne;et.CanceledError=Me;et.CancelToken=as;et.isCancel=Ou;et.VERSION=ku;et.toFormData=yn;et.AxiosError=J;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=v_;et.isAxiosError=y_;et.mergeConfig=ue;et.AxiosHeaders=yt;et.formToJSON=e=>$u($.isHTMLForm(e)?new FormData(e):e);et.getAdapter=Pu.getAdapter;et.HttpStatusCode=Ti;et.default=et;const b_={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},__=["put","post","patch"],$i="Local-Request-Id",w_=100,E_=300;let cs=class{constructor(t={}){xt(this,"axios"),xt(this,"settings"),xt(this,"records",{}),xt(this,"isLoading",!1),xt(this,"stopSkipWarn"),xt(this,"showLoading"),xt(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=Cr(t,["settings","query"]);this.axios=et.create(Dt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=zi(this.openLoading.bind(this),w_),this.showError=hc(this._showError.bind(this),E_,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=Dt(this.settings,t.settings||{});const r=Cr(t,["settings","query"]);this.axios.defaults=Dt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(t,r="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(t,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(t,n,r):r.headers||{}:{},s=z(z({"Content-Type":b_[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[$i]=t),s}isJsonType(t){return Object.entries(t).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,r="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,r,n,i,s={}){const{type:o,skipWarn:a}=t,{name:u="skipWarn"}=a||{};let{data:c,params:l={},method:h="get"}=r;const f=i?{[u]:!0}:{};return __.includes(h.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(n)?this.toFormData(c,o):c,l=z({},s)):o==="form"?l=z(z(z({},c||{}),s),f):(c&&(o!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,o)),l=z(z({},s),f)),{data:c,params:l}}createUrl(t){let{url:r,params:n}=t;if(r)try{return zc(r,{encode:encodeURIComponent})(n||{})}catch(i){console.warn("createUrl","pathToRegexpCompile error",r)}return r}openLoading(t){const{loading:r,showLoading:n}=t;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:r,hideLoading:n}=t;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,r){var s;const{failMessage:n,showError:i}=t;if(n&&i){const o=(s=r.response)==null?void 0:s.data,a=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(a,r)}}validResponse(t,r){const{validSuccess:n,validate:i}=t;return n&&i?!!i(r):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},r=!1){const n=Dt({},this.settings,t.settings||{}),i=t.query||{},s=Cr(t,["settings","query"]),o=Bc(!1),a=et.CancelToken.source();this.records[o]={settings:n,config:s,source:a};const u=this.createUrl(s),c=this.createHeaders(o,n,s),{data:l,params:h}=this.createSendData(n,s,c,r,i);return this.showLoading(n),new Promise((f,p)=>{this.axios(ct(z({cancelToken:a.token},s),{url:u,headers:c,data:l,params:h})).then(d=>{var m;return this.isSkipWarnResponse(d)?f(d.promise):this.validResponse(n,d)?f(n.originResponse?d:(m=d.data)==null?void 0:m.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(t,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const a=(o.config.headers||{})[$i],u=this.records[a];if(!u)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===r){i&&i(o);const l=new Promise(n).then(()=>this.send(ct(z({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),o.promise=l}return o})}};function us(e={}){const t=new cs(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,ct(z({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const Bu=us({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function Iu(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>Bu.send(Dt({},t,n||{},{data:r}))}function S_(e){const t={};for(const[r,n]of Object.entries(e))t[r]=Iu(n);return t}function x_(e,t){const r=Ln(null),n=Ln(),i=Ln(!0);return e.then(s=>{r.value=t?t(s):s}).catch(s=>{n.value=s}).finally(()=>{i.value=!1}),{data:r,error:n,loading:i}}const Pe=typeof window<"u",T_=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function Mu(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function $_(e){var o;const t=e.split(","),r=(o=t[0].match(/:(.*?);/))==null?void 0:o[1],n=atob(t[1]);let i=n.length;const s=new Uint8Array(i);for(;i--;)s[i]=n.charCodeAt(i);return new Blob([s],{type:r})}function O_(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const A_=e=>Pe?window.requestAnimationFrame(e):setTimeout(e,16),j_=e=>Pe?window.cancelAnimationFrame(e):clearTimeout(e);class ls{constructor(t={}){xt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),xt(this,"caches",{}),xt(this,"types"),this.types={local:Pe?window.localStorage:this.caches,session:Pe?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=z(z({},this.options),n),a=Date.now(),u=o+t,c=this.types[i]||this.caches,l={value:r,timestamp:a,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=z(z({},this.options),r),s=i+t,o=this.types[n]||this.caches;let a;if(o===this.caches)a=o[s];else{const h=o.getItem(s);h&&(a=JSON.parse(h))}if(!a)return null;const{value:u,timestamp:c,expired:l}=a;return l>0&&c+l<Date.now()?(this.remove(t,r),null):u}remove(t,r={}){const{type:n,prefix:i}=z(z({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=z(z({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Lr=new ls;function Fu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vr={exports:{}},R_=Vr.exports,Zo;function D_(){return Zo||(Zo=1,function(e,t){(function(r,n){n(t,e)})(R_,function(r,n){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch(l){window[c]=void 0}}function a(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,f=l.timeout||i.timeout,p=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||s(),g=p+"_"+E;window[E]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(g),o(E)},h+=h.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+h+p+"="+E),l.charset&&y.setAttribute("charset",l.charset),l.nonce&&y.setAttribute("nonce",l.nonce),l.referrerPolicy&&y.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&y.setAttribute("crossorigin","true"),y.id=g,document.getElementsByTagName("head")[0].appendChild(y),d=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(E),a(g),window[E]=function(){o(E)}},f),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(E),a(g),d&&clearTimeout(d)}})}n.exports=u})}(Vr,Vr.exports)),Vr.exports}var C_=D_();const P_=Fu(C_);function k_(e){if(Pe){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function N_(e=""){const t=e.match(Ki);return t?t[0]:""}function Lu(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function Oi(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Vu(e,t){t=typeof t=="string"?Oi(t):t;const r=e.split("?")[0],n=Oi(e),i=Object.assign({},n,t),s=Lu(i);return s?[r,s].join("?"):e}const ie=Object.freeze(Object.defineProperty({__proto__:null,append:Vu,getCurrentHost:k_,getHost:N_,parse:Oi,stringify:Lu},Symbol.toStringTag,{value:"Module"}));function Hu(r){return L(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=lc(e)(n||{}));const i=Vu(e,n);return yield(yield P_(i,t)).json()})}var qn,Qo;function B_(){if(Qo)return qn;Qo=1,qn=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var u="onload"in a?t:r;u(a,s),a.onload||t(a,s),o.appendChild(a)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return qn}var I_=B_();const M_=Fu(I_);function Ai(e,t={}){return new Promise((r,n)=>{const{library:i}=t;M_(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Xo={debug:-1,log:0,info:0,warn:1,error:2},F_=function(e,t,r,n){return function(...i){if(t&&Xo[t]<=Xo[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,L_(i,r))}};function L_(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function V_(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const H_={level:"warn",bizName:"*"};class Uu{constructor(t){xt(this,"config"),xt(this,"options"),this.options=z(z({},H_),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=V_(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return F_(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function zu(e){return new Uu(e)}const se=zu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var U_={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ji(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Ar({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,o[u]!==!0&&(a+="="+o[u].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var u=s[a].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(o[l]=e.read(c,l),i===l)break}catch(h){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Ar({},s,{expires:-1}))},withAttributes:function(i){return ji(this.converter,Ar({},this.attributes,i))},withConverter:function(i){return ji(Ar({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var hs=ji(U_,{path:"/"});function z_(e,t,r){hs.set(e,t,r)}function q_(e){return hs.get(e)}function K_(e,t){hs.remove(e,t)}const Hr=Object.freeze(Object.defineProperty({__proto__:null,get:q_,remove:K_,set:z_},Symbol.toStringTag,{value:"Module"}));function J_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function fs(e,t="",r){const n=new Blob([e],{type:r}),i=document.createElement("a");i.download=t,i.style.display="none",i.href=URL.createObjectURL(n),i.click(),URL.revokeObjectURL(i.href)}function W_(e,t="",r){return L(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>L(this,null,function*(){const i=yield n.blob();return fs(i,t,r),i}))})}function Y_(e,t=""){const r=JSON.stringify(e);fs(r,t,"application/json")}const x2=Object.freeze(Object.defineProperty({__proto__:null,AES:Tv,LOCAL_REQUEST_ID:$i,Logger:Uu,MD5:wv,RSA:xv,Request:cs,Storage:ls,VTJ_UTILS_VERSION:dy,arrayToKv:Lv,arrayToMap:Ic,arrayToTree:Kv,avg:Uv,axios:et,base64:Ev,blobToFile:O_,cAF:j_,camelCase:Nt,cloneDeep:ir,compress:ty,cookie:Hr,createApi:Iu,createApis:S_,createRequest:us,dataURLtoBlob:$_,dateFormat:Nv,dayjs:Ji,debounce:zi,decompress:ey,dedupArray:Mc,delay:Te,downloadBlob:fs,downloadJson:Y_,downloadRemoteFile:W_,downloadUrl:J_,fileToBase64:T_,flatChildren:Vc,formDataToJson:Mu,get:wa,getLogger:zu,groupBy:oc,isArray:pt,isArrayBuffer:i0,isBoolean:o0,isBuffer:Re,isCarNo:Rv,isClient:Pe,isDate:l0,isDef:Iv,isEmail:Ov,isEqual:h0,isFunction:ae,isIdCardNo:Av,isMobilePhone:jv,isNaN:p0,isNull:d0,isNumber:ac,isObject:at,isPlainObject:Vi,isString:bt,isSymbol:cr,isUndefined:m0,isUrl:jc,jsonp:Hu,kebabCase:v0,kvToArray:Vv,loadScript:Ai,logger:se,lowerFirst:b0,mapToObject:fn,merge:Dt,mitt:Uc,noop:Bh,now:Mv,numberFormat:Cv,numeral:Dc,omit:Cr,pathToRegexp:pn,pathToRegexpCompile:zc,pathToRegexpMatch:qc,pathToRegexpParse:Wi,pick:Fc,rAF:A_,rCar:Ac,rEmail:Tc,rID:$c,rMobile:Oc,rURL:Ki,random:Fv,request:Bu,set:E0,snakeCase:x0,splitParser:zv,splitStringify:qv,storage:Lr,sum:Lc,template:lc,throttle:hc,timestamp:Nc,toArray:ui,toFixed:Pv,toRawType:Bv,toTypeString:kc,trim:li,uid:gt,unAES:$v,unBase64:Sv,unRSA:ci,upperFirst:un,upperFirstCamelCase:si,url:ie,useApi:x_,uuid:Bc,zipObject:Hv},Symbol.toStringTag,{value:"Module"}));/**!
70
+ `):" "+Wo(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:xi};function zn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Me(null,e)}function Yo(e){return zn(e),e.headers=yt.from(e.headers),e.data=Un.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Pu.getAdapter(e.adapter||dr.adapter)(e).then(function(t){return zn(e),t.data=Un.call(e,e.transformResponse,t),t.headers=yt.from(t.headers),t},function(t){return Ou(t)||(zn(e),t&&t.response&&(t.response.data=Un.call(e,e.transformResponse,t.response),t.response.headers=yt.from(t.response.headers))),Promise.reject(t)})}const ku="1.7.9",_n={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_n[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Go={};_n.transitional=function(e,t,r){function n(i,s){return"[Axios v"+ku+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new J(n(s," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!Go[s]&&(Go[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};_n.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function v_(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new J("option "+s+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const Fr={assertOptions:v_,validators:_n},Rt=Fr.validators;class ne{constructor(t){this.defaults=t,this.interceptors={request:new Vo,response:new Vo}}request(t,r){return L(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
71
+ `+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ue(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Fr.assertOptions(n,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),i!=null&&($.isFunction(i)?r.paramsSerializer={serialize:i}:Fr.assertOptions(i,{encode:Rt.function,serialize:Rt.function},!0)),Fr.assertOptions(r,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&$.merge(s.common,s[r.method]);s&&$.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=yt.concat(o,s);const a=[];let u=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(u=u&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let l,h=0,f;if(!u){const d=[Yo.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,c),f=d.length,l=Promise.resolve(r);h<f;)l=l.then(d[h++],d[h++]);return l}f=a.length;let p=r;for(h=0;h<f;){const d=a[h++],m=a[h++];try{p=d(p)}catch(b){m.call(this,b);break}}try{l=Yo.call(this,p)}catch(d){return Promise.reject(d)}for(h=0,f=c.length;h<f;)l=l.then(c[h++],c[h++]);return l}getUri(t){t=ue(this.defaults,t);const r=ju(t.baseURL,t.url);return xu(r,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(e){ne.prototype[e]=function(t,r){return this.request(ue(r||{},{method:e,url:t,data:(r||{}).data}))}});$.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(ue(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ne.prototype[e]=t(),ne.prototype[e+"Form"]=t(!0)});class as{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new Me(i,s,o),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new as(function(r){t=r}),cancel:t}}}function y_(e){return function(t){return e.apply(null,t)}}function b_(e){return $.isObject(e)&&e.isAxiosError===!0}const Ti={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};Object.entries(Ti).forEach(([e,t])=>{Ti[t]=e});function Nu(e){const t=new ne(e),r=fu(ne.prototype.request,t);return $.extend(r,ne.prototype,t,{allOwnKeys:!0}),$.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Nu(ue(e,n))},r}const et=Nu(dr);et.Axios=ne;et.CanceledError=Me;et.CancelToken=as;et.isCancel=Ou;et.VERSION=ku;et.toFormData=yn;et.AxiosError=J;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=y_;et.isAxiosError=b_;et.mergeConfig=ue;et.AxiosHeaders=yt;et.formToJSON=e=>$u($.isHTMLForm(e)?new FormData(e):e);et.getAdapter=Pu.getAdapter;et.HttpStatusCode=Ti;et.default=et;const __={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},w_=["put","post","patch"],$i="Local-Request-Id",E_=100,S_=300;let cs=class{constructor(t={}){xt(this,"axios"),xt(this,"settings"),xt(this,"records",{}),xt(this,"isLoading",!1),xt(this,"stopSkipWarn"),xt(this,"showLoading"),xt(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=Cr(t,["settings","query"]);this.axios=et.create(Dt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=zi(this.openLoading.bind(this),E_),this.showError=hc(this._showError.bind(this),S_,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=Dt(this.settings,t.settings||{});const r=Cr(t,["settings","query"]);this.axios.defaults=Dt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(t,r="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(t,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(t,n,r):r.headers||{}:{},s=z(z({"Content-Type":__[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[$i]=t),s}isJsonType(t){return Object.entries(t).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,r="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,r,n,i,s={}){const{type:o,skipWarn:a}=t,{name:u="skipWarn"}=a||{};let{data:c,params:l={},method:h="get"}=r;const f=i?{[u]:!0}:{};return w_.includes(h.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(n)?this.toFormData(c,o):c,l=z({},s)):o==="form"?l=z(z(z({},c||{}),s),f):(c&&(o!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,o)),l=z(z({},s),f)),{data:c,params:l}}createUrl(t){let{url:r,params:n}=t;if(r)try{return zc(r,{encode:encodeURIComponent})(n||{})}catch(i){console.warn("createUrl","pathToRegexpCompile error",r)}return r}openLoading(t){const{loading:r,showLoading:n}=t;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:r,hideLoading:n}=t;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,r){var s;const{failMessage:n,showError:i}=t;if(n&&i){const o=(s=r.response)==null?void 0:s.data,a=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(a,r)}}validResponse(t,r){const{validSuccess:n,validate:i}=t;return n&&i?!!i(r):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},r=!1){const n=Dt({},this.settings,t.settings||{}),i=t.query||{},s=Cr(t,["settings","query"]),o=Bc(!1),a=et.CancelToken.source();this.records[o]={settings:n,config:s,source:a};const u=this.createUrl(s),c=this.createHeaders(o,n,s),{data:l,params:h}=this.createSendData(n,s,c,r,i);return this.showLoading(n),new Promise((f,p)=>{this.axios(ct(z({cancelToken:a.token},s),{url:u,headers:c,data:l,params:h})).then(d=>{var m;return this.isSkipWarnResponse(d)?f(d.promise):this.validResponse(n,d)?f(n.originResponse?d:(m=d.data)==null?void 0:m.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(t,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const a=(o.config.headers||{})[$i],u=this.records[a];if(!u)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===r){i&&i(o);const l=new Promise(n).then(()=>this.send(ct(z({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),o.promise=l}return o})}};function us(e={}){const t=new cs(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,ct(z({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const Bu=us({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function Iu(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>Bu.send(Dt({},t,n||{},{data:r}))}function x_(e){const t={};for(const[r,n]of Object.entries(e))t[r]=Iu(n);return t}function T_(e,t){const r=Ln(null),n=Ln(),i=Ln(!0);return e.then(s=>{r.value=t?t(s):s}).catch(s=>{n.value=s}).finally(()=>{i.value=!1}),{data:r,error:n,loading:i}}const Pe=typeof window<"u",$_=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function Mu(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function O_(e){var o;const t=e.split(","),r=(o=t[0].match(/:(.*?);/))==null?void 0:o[1],n=atob(t[1]);let i=n.length;const s=new Uint8Array(i);for(;i--;)s[i]=n.charCodeAt(i);return new Blob([s],{type:r})}function A_(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const j_=e=>Pe?window.requestAnimationFrame(e):setTimeout(e,16),R_=e=>Pe?window.cancelAnimationFrame(e):clearTimeout(e);class ls{constructor(t={}){xt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),xt(this,"caches",{}),xt(this,"types"),this.types={local:Pe?window.localStorage:this.caches,session:Pe?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=z(z({},this.options),n),a=Date.now(),u=o+t,c=this.types[i]||this.caches,l={value:r,timestamp:a,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=z(z({},this.options),r),s=i+t,o=this.types[n]||this.caches;let a;if(o===this.caches)a=o[s];else{const h=o.getItem(s);h&&(a=JSON.parse(h))}if(!a)return null;const{value:u,timestamp:c,expired:l}=a;return l>0&&c+l<Date.now()?(this.remove(t,r),null):u}remove(t,r={}){const{type:n,prefix:i}=z(z({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=z(z({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Lr=new ls;function Fu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vr={exports:{}},D_=Vr.exports,Zo;function C_(){return Zo||(Zo=1,function(e,t){(function(r,n){n(t,e)})(D_,function(r,n){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch(l){window[c]=void 0}}function a(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,f=l.timeout||i.timeout,p=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||s(),g=p+"_"+E;window[E]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(g),o(E)},h+=h.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+h+p+"="+E),l.charset&&y.setAttribute("charset",l.charset),l.nonce&&y.setAttribute("nonce",l.nonce),l.referrerPolicy&&y.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&y.setAttribute("crossorigin","true"),y.id=g,document.getElementsByTagName("head")[0].appendChild(y),d=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(E),a(g),window[E]=function(){o(E)}},f),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(E),a(g),d&&clearTimeout(d)}})}n.exports=u})}(Vr,Vr.exports)),Vr.exports}var P_=C_();const k_=Fu(P_);function N_(e){if(Pe){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function B_(e=""){const t=e.match(Ki);return t?t[0]:""}function Lu(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function Oi(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Vu(e,t){t=typeof t=="string"?Oi(t):t;const r=e.split("?")[0],n=Oi(e),i=Object.assign({},n,t),s=Lu(i);return s?[r,s].join("?"):e}const ie=Object.freeze(Object.defineProperty({__proto__:null,append:Vu,getCurrentHost:N_,getHost:B_,parse:Oi,stringify:Lu},Symbol.toStringTag,{value:"Module"}));function Hu(r){return L(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=lc(e)(n||{}));const i=Vu(e,n);return yield(yield k_(i,t)).json()})}var qn,Qo;function I_(){if(Qo)return qn;Qo=1,qn=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var u="onload"in a?t:r;u(a,s),a.onload||t(a,s),o.appendChild(a)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return qn}var M_=I_();const F_=Fu(M_);function Ai(e,t={}){return new Promise((r,n)=>{const{library:i}=t;F_(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Xo={debug:-1,log:0,info:0,warn:1,error:2},L_=function(e,t,r,n){return function(...i){if(t&&Xo[t]<=Xo[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,V_(i,r))}};function V_(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function H_(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const U_={level:"warn",bizName:"*"};class Uu{constructor(t){xt(this,"config"),xt(this,"options"),this.options=z(z({},U_),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=H_(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return L_(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function zu(e){return new Uu(e)}const se=zu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var z_={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ji(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Ar({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,o[u]!==!0&&(a+="="+o[u].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var u=s[a].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(o[l]=e.read(c,l),i===l)break}catch(h){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Ar({},s,{expires:-1}))},withAttributes:function(i){return ji(this.converter,Ar({},this.attributes,i))},withConverter:function(i){return ji(Ar({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var hs=ji(z_,{path:"/"});function q_(e,t,r){hs.set(e,t,r)}function K_(e){return hs.get(e)}function J_(e,t){hs.remove(e,t)}const Hr=Object.freeze(Object.defineProperty({__proto__:null,get:K_,remove:J_,set:q_},Symbol.toStringTag,{value:"Module"}));function W_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function fs(e,t="",r){const n=new Blob([e],{type:r}),i=document.createElement("a");i.download=t,i.style.display="none",i.href=URL.createObjectURL(n),i.click(),URL.revokeObjectURL(i.href)}function Y_(e,t="",r){return L(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>L(this,null,function*(){const i=yield n.blob();return fs(i,t,r),i}))})}function G_(e,t=""){const r=JSON.stringify(e);fs(r,t,"application/json")}const T2=Object.freeze(Object.defineProperty({__proto__:null,AES:Tv,LOCAL_REQUEST_ID:$i,Logger:Uu,MD5:wv,RSA:xv,Request:cs,Storage:ls,VTJ_UTILS_VERSION:my,arrayToKv:Vv,arrayToMap:Ic,arrayToTree:Jv,avg:zv,axios:et,base64:Ev,blobToFile:A_,cAF:R_,camelCase:Nt,cloneDeep:ir,compress:ey,cookie:Hr,createApi:Iu,createApis:x_,createRequest:us,dataURLtoBlob:O_,dateFormat:Nv,dayjs:Ji,debounce:zi,decompress:ry,dedupArray:Mc,delay:Te,downloadBlob:fs,downloadJson:G_,downloadRemoteFile:Y_,downloadUrl:W_,fileToBase64:$_,flatChildren:Vc,formDataToJson:Mu,get:wa,getLogger:zu,groupBy:oc,isArray:pt,isArrayBuffer:i0,isBoolean:o0,isBuffer:Re,isCarNo:Rv,isClient:Pe,isDate:l0,isDef:Mv,isEmail:Ov,isEqual:h0,isFunction:ae,isIdCardNo:Av,isMobilePhone:jv,isNaN:p0,isNull:d0,isNumber:ac,isObject:at,isPlainObject:Vi,isString:bt,isSymbol:cr,isUndefined:m0,isUrl:jc,jsonp:Hu,kebabCase:v0,kvToArray:Hv,loadScript:Ai,logger:se,lowerFirst:b0,mapToObject:fn,merge:Dt,mitt:Uc,noop:Bh,now:Fv,numberFormat:Cv,numeral:Dc,omit:Cr,pathToRegexp:pn,pathToRegexpCompile:zc,pathToRegexpMatch:qc,pathToRegexpParse:Wi,pick:Fc,rAF:j_,rCar:Ac,rEmail:Tc,rID:$c,rMobile:Oc,rURL:Ki,random:Lv,request:Bu,set:E0,snakeCase:x0,splitParser:qv,splitStringify:Kv,storage:Lr,sum:Lc,template:lc,throttle:hc,timestamp:Nc,toArray:ui,toFixed:Pv,toRawType:Iv,toTypeString:kc,trim:li,uid:gt,unAES:$v,unBase64:Sv,unRSA:ci,upperFirst:un,upperFirstCamelCase:si,url:ie,useApi:T_,uuid:Bc,zipObject:Uv},Symbol.toStringTag,{value:"Module"}));/**!
72
72
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
73
73
  * @name @vtj/renderer
74
74
  * @author CHC chenhuachun1549@dingtalk.com
75
- * @version 0.9.4
75
+ * @version 0.9.5
76
76
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
77
- */const Ae="0.9.4";var ft=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ft||{});const Ri=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],G_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],qu=["vIf","vShow","vModel","vFor","vBind","vHtml"],Ku={String,Number,Boolean,Array,Object,Function,Date},je="VtjPage",Qe="VtjHomepage",Ju="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),Wu="component,slot".split(",");function Ye(e,t){return e.map(r=>jc(r)||r.startsWith("/")?r:`${t}${r}`)}function wn(e){return/\.css$/.test(e)}function En(e){return/\.js$/.test(e)}function Yu(e){return/\.json$/.test(e)}function Z_(e){return e.map(t=>`<script src="${ie.append(t,{v:Ae})}"><\/script>`).join("")}function Q_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${ie.append(t,{v:Ae})}" />`).join("")}function Gu(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Zu(e,t,r=!1){const n=e.filter(f=>!!f.enabled),i=[],s=[],o=[],a=[],u={},c={},l=[],h={};return n.forEach(({urls:f,assetsUrl:p,library:d,assetsLibrary:m,localeLibrary:b})=>{f==null||f.forEach(E=>{En(E)&&i.push(Gu(E,r)),wn(E)&&s.push(E)}),d&&(a.push(d),u[d]=Ye(f||[],t),b&&(c[d]=b)),p&&o.push(p),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:Ye(i,t),css:Ye(s,t),materials:Ye(o,t),libraryExports:a,materialExports:Mc(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function Qu(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function ps(e){return bt(e)?e:JSON.stringify(e)}function ds(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const s=e.document,o=s.adoptedStyleSheets,a=Array.from(o).filter(u=>u.id!==t);s.adoptedStyleSheets=[...a,i]}else{const i=e.document;let s=i.getElementById(t);s?s.innerHTML=r:(s=i.createElement("style"),s.id=t,s.innerHTML=r,i.head.appendChild(s))}}function Xu(e,t){return L(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&ds(window,e,r)})}function tl(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function el(n,i){return L(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let a=r[t];return a?a.default||a:new Promise((u,c)=>{for(const l of e){const h=s.createElement("script");h.src=l,h.onload=()=>{a=r[t],a?u(a.default||a):c(null)},h.onerror=f=>{c(f)},o.appendChild(h)}})})}function rl(e){return ae(e)||ae(e==null?void 0:e.install)}function nl(e){return Wu.includes(e)}function il(e){return Ju.includes(e)}function ke(e,t,r=!1,n=!1){var i;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let o=(e.value||"").trim();o=o.replace(/this(\W|$)/g,(u,c)=>`__self${c}`),o=s.join(`
78
- `)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(se.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function Zr(e,t,r=!1,n=!1){var s;const i=ke(e,t,r,n);if(typeof i!="function"&&(se.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),n))throw new Error(`"${e.value}" not a function`);return i}function wt(e){return e&&e.type==="JSExpression"}function Fe(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function sl(e){return wt(e)||Fe(e)}function X_(e){return sl(e)?e.value:JSON.stringify(e)}let be=null;const tw=us({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:e=>{var t,r;return((t=e.data)==null?void 0:t.code)===0||!!((r=e.data)!=null&&r.success)},failMessage:!0,showError:e=>{rn.error({message:e||"未知错误"})},showLoading:()=>{be&&be.close(),be=Ul.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{be&&(be.close(),be=null)}}});function ol(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,ct(z({},e.jsonpOptions),{query:i}));{const i=e.headers?ke(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:ct(z({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send(Dt(s,a||{},{data:o})))}}function al(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function cl(e=[],t=[],r){const n={};for(const i of e)n[i.id]=ol(i,r);for(const i of t)n[i.id]=al(i,r);return n}function ul(){return L(this,arguments,function*(e=[]){oe&&(ms(),e.forEach(t=>hl(oe,t)))})}function ll(e){const t=Fe(e.mockTemplate)&&e.mockTemplate.value?Zr(e.mockTemplate,{},!0):void 0;return(...r)=>L(this,null,function*(){let n={};if(t)try{n=yield t.apply(t,r)}catch(i){se.warn("模拟数据模版异常",i)}return oe.mock(n)})}function hl(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=pn(`${r}(.*)`),s=qc(r,{decode:decodeURIComponent}),o=ke(n,{},!0);e.mock(i,a=>{var h;const u=ie.parse(a.url)||{},c=a.body instanceof FormData?Mu(a.body):a.body,l=(h=s(a.url))==null?void 0:h.params;return Object.assign(a,{data:c,params:u,query:l}),e.mock(o(a))})}}function ms(){oe&&(oe._mocked={})}const ew={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},gs=Symbol("access");class fl{constructor(t){j(this,"options");j(this,"data",null);j(this,"mode",ft.Raw);this.options=Object.assign({},ew,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===ft.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Lr.save(r,t,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Lr.remove(t,{type:"local",prefix:r}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):ui(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return ui(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this),t.provide(gs,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>ci(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?ci(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=Lr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Hr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===je){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return L(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ae(i)?(i(),r(!1)):bt(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){const{unauthorizedCode:r=401}=this.options;return t.status===r||t.data.code===r}showUnauthorizedAlert(t){return L(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return L(this,null,function*(){const{alert:r}=this.options;return r?(yield Te(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>L(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>L(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function pl(){return ea(gs,null)}class dl{constructor(t){j(this,"__id",null);j(this,"__mode");j(this,"__instance",null);j(this,"__contextRefs",{});j(this,"__refs",{});j(this,"context",{});j(this,"state",{});j(this,"props",{});j(this,"$props",{});j(this,"$refs",{});j(this,"$el",null);j(this,"$emit",null);j(this,"$nextTick",null);j(this,"$parent",null);j(this,"$root",null);j(this,"$attrs",null);j(this,"$slots",null);j(this,"$watch",null);j(this,"$options",null);j(this,"$forceUpdate",null);j(this,"$components",{});j(this,"$libs",{});j(this,"$apis",{});j(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=tn){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__refs={},this.$refs={},this.__contextRefs={},this.context={}})}__proxy(){this.__instance&&Ri.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Ri.forEach(t=>{this[t]=null})}__parseFunction(t){var r;if(t)if(this.__mode===ft.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Zr({type:i,value:s},this)}else return Zr(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===ft.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return ke({type:i,value:s},this)}else return ke(t,this)}__ref(t=null,r){if(this.__mode!==ft.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>L(this,null,function*(){var s,o;yield Te(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}if(i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,ft.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=n),typeof r=="function")r(n);else if(r){const a=this.$refs[r];if(a&&n!==a){const u=new Set([].concat(a,n));this.$refs[r]=Array.from(u)}else this.$refs[r]=n}return n})}__clone(t={}){const r=z(z({},this.context),t),n=ct(z({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Qr(e){var h,f;const{Vue:t=tn,mode:r=ft.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),u={$components:n,$libs:i,$apis:s},c=new dl({mode:r,dsl:a.value,attrs:u}),l=t.defineComponent(z({name:a.value.name,props:z({},nw((h=a.value.props)!=null?h:[],c)),setup(p){var y,_,S,v;c.$props=p,c.props=p,a.value.id&&ds(e.window||window,a.value.id,a.value.css||""),c.state=iw(t,(y=a.value.state)!=null?y:{},c);const d=sw(t,(_=a.value.computed)!=null?_:{},c),m=ow((S=a.value.methods)!=null?S:{},c),b=aw(t,a.value.inject,c),E=ml(a.value.dataSources||{},c),g=z(z(z(z({},b),d),m),E);return c.setup(g,t),cw(t,(v=a.value.watch)!=null?v:[],c),{vtj:c}},emits:rw(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?ar(p[0],c,t,o):p.map(d=>ar(d,c,t,o))}},uw((f=a.value.lifeCycles)!=null?f:{},c)));return{renderer:t.markRaw(l),context:c}}function rw(e=[]){return e.map(t=>bt(t)?t:t.name)}function nw(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Ku[i]):void 0;return e.map(n=>bt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:wt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function iw(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return wt(s)?s=r.__parseExpression(s):Fe(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function sw(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function ow(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function aw(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=wt(o)?r.__parseExpression(o)||s:o!=null?o:s,u=wt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,u),n},{})}function ml(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=ll(i);else if(i.ref){const s=t.$apis[i.ref],o=Fe(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>L(this,null,function*(){const u=yield s.apply(t,a);return o?o(u):u})}return r},{})}function cw(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function uw(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Kn=[];const gl=e=>e;function vs(r){return L(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>En(a));if(s.length===0||!i)return null;const o=n.filter(a=>wn(a));return o.length&&tl(o,t),yield el(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function Xr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Kn.forEach(i=>{delete n.window[i]}),Kn=[]),(i,s,o=tn)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?Qr(ct(z({},n),{Vue:o,dsl:a,mode:ft.Runtime,loader:Xr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield r(s.url);return a&&(a.name=i),a?Qr(ct(z({},n),{Vue:o,dsl:a,mode:ft.Runtime,loader:Xr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Kn.push(s.library),o.defineAsyncComponent(()=>L(this,null,function*(){return(yield vs(s,n.window))||(console.warn("getPlugin result is null",s),null)}))):i}function ar(e,t,r=tn,n=gl){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:u,vShow:c,vModels:l,vBind:h,vHtml:f,others:p}=hw(o);if(a&&!fw(a,t))return null;const d=b=>{var O,V,w,T;const E=b.$components,g=(()=>{var C,I,D,k;if(e.name==="component")return pw(b,(C=e.props)==null?void 0:C.is);if(e.name==="slot")return e.name;const M=n(e.name,e.from,r);return bt(M)?nl(M)||il(M)?M:(k=(D=E[M])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(M))!=null?k:M:M})(),y=dw(s,(O=e.props)!=null?O:{},b),_=mw(r,(V=e.events)!=null?V:{},b);if(e.name==="slot")return gw(r,e,y,b,n);h&&Object.assign(y,b.__parseExpression(h.value)),c&&(y.style=Object.assign((w=y.style)!=null?w:{},yw(c,b))),f&&Object.assign(y,bw(f,b)),l.forEach(M=>{Object.assign(y,_w(r,M,b))});const S=ww(r,(T=e.children)!=null?T:[],b,n,e);let v=r.createVNode(g,z(z({},y),_),S);const x=i?lw(i,p,b):[];return x.length&&(v=r.withDirectives(v,x)),v};return u?xw(u,d,t):d(t)}function lw(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function hw(e=[]){const t=e.find(u=>Nt(u.name)==="vIf"),r=e.find(u=>Nt(u.name)==="vFor"),n=e.find(u=>Nt(u.name)==="vShow"),i=e.find(u=>Nt(u.name)==="vBind"),s=e.find(u=>Nt(u.name)==="vHtml"),o=e.filter(u=>Nt(u.name)==="vModel"),a=e.filter(u=>!qu.includes(Nt(u.name)));return{vIf:t,vFor:r,vShow:n,vModels:o,vBind:i,others:a,vHtml:s}}function fw(e,t){return!!t.__parseExpression(e.value)}function pw(e,t){return t?wt(t)?e.__parseExpression(t):t:"div"}function dw(e,t,r){const n=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return wt(o)?o=r.__parseExpression(o):Fe(o)&&(o=r.__parseFunction(o)),i[s]=o,i},{});return n.ref=r.__ref(e,n.ref),n}function mw(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const a=t[o],u=ys(a.modifiers),c=u.find(f=>n.includes(f)),l="on"+un(o)+(c&&i[c]||""),h=r.__parseFunction(a.handler);return h&&(s[l]=e.withModifiers(h,u)),s},{})}function ys(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function gw(e,t,r,n,i){var u;const{children:s}=t,o=vw(t,n),a=(u=n.$slots)==null?void 0:u[o.name];return a?a(r):s?bt(s)?e.createTextVNode(s):wt(s)?e.createTextVNode(ps(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>ar(c,n,e,i)):null:null}function vw(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:wt(n)?t.__parseExpression(n):n,params:[]}}function yw(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function bw(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function _w(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
77
+ */const Ae="0.9.5";var ft=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ft||{});const Ri=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Z_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],qu=["vIf","vShow","vModel","vFor","vBind","vHtml"],Ku={String,Number,Boolean,Array,Object,Function,Date},je="VtjPage",Qe="VtjHomepage",Ju="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),Wu="component,slot".split(",");function Ye(e,t){return e.map(r=>jc(r)||r.startsWith("/")?r:`${t}${r}`)}function wn(e){return/\.css$/.test(e)}function En(e){return/\.js$/.test(e)}function Yu(e){return/\.json$/.test(e)}function Q_(e){return e.map(t=>`<script src="${ie.append(t,{v:Ae})}"><\/script>`).join("")}function X_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${ie.append(t,{v:Ae})}" />`).join("")}function Gu(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Zu(e,t,r=!1){const n=e.filter(f=>!!f.enabled),i=[],s=[],o=[],a=[],u={},c={},l=[],h={};return n.forEach(({urls:f,assetsUrl:p,library:d,assetsLibrary:m,localeLibrary:b})=>{f==null||f.forEach(E=>{En(E)&&i.push(Gu(E,r)),wn(E)&&s.push(E)}),d&&(a.push(d),u[d]=Ye(f||[],t),b&&(c[d]=b)),p&&o.push(p),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:Ye(i,t),css:Ye(s,t),materials:Ye(o,t),libraryExports:a,materialExports:Mc(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function Qu(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function ps(e){return bt(e)?e:JSON.stringify(e)}function ds(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const s=e.document,o=s.adoptedStyleSheets,a=Array.from(o).filter(u=>u.id!==t);s.adoptedStyleSheets=[...a,i]}else{const i=e.document;let s=i.getElementById(t);s?s.innerHTML=r:(s=i.createElement("style"),s.id=t,s.innerHTML=r,i.head.appendChild(s))}}function Xu(e,t){return L(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&ds(window,e,r)})}function tl(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function el(n,i){return L(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let a=r[t];return a?a.default||a:new Promise((u,c)=>{for(const l of e){const h=s.createElement("script");h.src=l,h.onload=()=>{a=r[t],a?u(a.default||a):c(null)},h.onerror=f=>{c(f)},o.appendChild(h)}})})}function rl(e){return ae(e)||ae(e==null?void 0:e.install)}function nl(e){return Wu.includes(e)}function il(e){return Ju.includes(e)}function ke(e,t,r=!1,n=!1){var i;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let o=(e.value||"").trim();o=o.replace(/this(\W|$)/g,(u,c)=>`__self${c}`),o=s.join(`
78
+ `)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(se.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function Zr(e,t,r=!1,n=!1){var s;const i=ke(e,t,r,n);if(typeof i!="function"&&(se.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),n))throw new Error(`"${e.value}" not a function`);return i}function wt(e){return e&&e.type==="JSExpression"}function Fe(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function sl(e){return wt(e)||Fe(e)}function tw(e){return sl(e)?e.value:JSON.stringify(e)}let be=null;const ew=us({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:e=>{var t,r;return((t=e.data)==null?void 0:t.code)===0||!!((r=e.data)!=null&&r.success)},failMessage:!0,showError:e=>{rn.error({message:e||"未知错误"})},showLoading:()=>{be&&be.close(),be=Ul.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{be&&(be.close(),be=null)}}});function ol(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,ct(z({},e.jsonpOptions),{query:i}));{const i=e.headers?ke(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:ct(z({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send(Dt(s,a||{},{data:o})))}}function al(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function cl(e=[],t=[],r){const n={};for(const i of e)n[i.id]=ol(i,r);for(const i of t)n[i.id]=al(i,r);return n}function ul(){return L(this,arguments,function*(e=[]){oe&&(ms(),e.forEach(t=>hl(oe,t)))})}function ll(e){const t=Fe(e.mockTemplate)&&e.mockTemplate.value?Zr(e.mockTemplate,{},!0):void 0;return(...r)=>L(this,null,function*(){let n={};if(t)try{n=yield t.apply(t,r)}catch(i){se.warn("模拟数据模版异常",i)}return oe.mock(n)})}function hl(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=pn(`${r}(.*)`),s=qc(r,{decode:decodeURIComponent}),o=ke(n,{},!0);e.mock(i,a=>{var h;const u=ie.parse(a.url)||{},c=a.body instanceof FormData?Mu(a.body):a.body,l=(h=s(a.url))==null?void 0:h.params;return Object.assign(a,{data:c,params:u,query:l}),e.mock(o(a))})}}function ms(){oe&&(oe._mocked={})}const rw={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},gs=Symbol("access");class fl{constructor(t){j(this,"options");j(this,"data",null);j(this,"mode",ft.Raw);this.options=Object.assign({},rw,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===ft.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Lr.save(r,t,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Lr.remove(t,{type:"local",prefix:r}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):ui(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return ui(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this),t.provide(gs,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>ci(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?ci(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=Lr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Hr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===je){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return L(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ae(i)?(i(),r(!1)):bt(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){const{unauthorizedCode:r=401}=this.options;return t.status===r||t.data.code===r}showUnauthorizedAlert(t){return L(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return L(this,null,function*(){const{alert:r}=this.options;return r?(yield Te(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>L(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>L(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function pl(){return ea(gs,null)}class dl{constructor(t){j(this,"__id",null);j(this,"__mode");j(this,"__instance",null);j(this,"__contextRefs",{});j(this,"__refs",{});j(this,"context",{});j(this,"state",{});j(this,"props",{});j(this,"$props",{});j(this,"$refs",{});j(this,"$el",null);j(this,"$emit",null);j(this,"$nextTick",null);j(this,"$parent",null);j(this,"$root",null);j(this,"$attrs",null);j(this,"$slots",null);j(this,"$watch",null);j(this,"$options",null);j(this,"$forceUpdate",null);j(this,"$components",{});j(this,"$libs",{});j(this,"$apis",{});j(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=tn){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__refs={},this.$refs={},this.__contextRefs={},this.context={}})}__proxy(){this.__instance&&Ri.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Ri.forEach(t=>{this[t]=null})}__parseFunction(t){var r;if(t)if(this.__mode===ft.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Zr({type:i,value:s},this)}else return Zr(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===ft.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return ke({type:i,value:s},this)}else return ke(t,this)}__ref(t=null,r){if(this.__mode!==ft.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>L(this,null,function*(){var s,o;yield Te(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}if(i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,ft.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=n),typeof r=="function")r(n);else if(r){const a=this.$refs[r];if(a&&n!==a){const u=new Set([].concat(a,n));this.$refs[r]=Array.from(u)}else this.$refs[r]=n}return n})}__clone(t={}){const r=z(z({},this.context),t),n=ct(z({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Qr(e){var h,f;const{Vue:t=tn,mode:r=ft.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),u={$components:n,$libs:i,$apis:s},c=new dl({mode:r,dsl:a.value,attrs:u}),l=t.defineComponent(z({name:a.value.name,props:z({},iw((h=a.value.props)!=null?h:[],c)),setup(p){var y,_,S,v;c.$props=p,c.props=p,a.value.id&&ds(e.window||window,a.value.id,a.value.css||""),c.state=sw(t,(y=a.value.state)!=null?y:{},c);const d=ow(t,(_=a.value.computed)!=null?_:{},c),m=aw((S=a.value.methods)!=null?S:{},c),b=cw(t,a.value.inject,c),E=ml(a.value.dataSources||{},c),g=z(z(z(z({},b),d),m),E);return c.setup(g,t),uw(t,(v=a.value.watch)!=null?v:[],c),{vtj:c}},emits:nw(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?ar(p[0],c,t,o):p.map(d=>ar(d,c,t,o))}},lw((f=a.value.lifeCycles)!=null?f:{},c)));return{renderer:t.markRaw(l),context:c}}function nw(e=[]){return e.map(t=>bt(t)?t:t.name)}function iw(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Ku[i]):void 0;return e.map(n=>bt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:wt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function sw(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return wt(s)?s=r.__parseExpression(s):Fe(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function ow(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function aw(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function cw(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=wt(o)?r.__parseExpression(o)||s:o!=null?o:s,u=wt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,u),n},{})}function ml(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=ll(i);else if(i.ref){const s=t.$apis[i.ref],o=Fe(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>L(this,null,function*(){const u=yield s.apply(t,a);return o?o(u):u})}return r},{})}function uw(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function lw(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Kn=[];const gl=e=>e;function vs(r){return L(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>En(a));if(s.length===0||!i)return null;const o=n.filter(a=>wn(a));return o.length&&tl(o,t),yield el(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function Xr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Kn.forEach(i=>{delete n.window[i]}),Kn=[]),(i,s,o=tn)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?Qr(ct(z({},n),{Vue:o,dsl:a,mode:ft.Runtime,loader:Xr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield r(s.url);return a&&(a.name=i),a?Qr(ct(z({},n),{Vue:o,dsl:a,mode:ft.Runtime,loader:Xr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Kn.push(s.library),o.defineAsyncComponent(()=>L(this,null,function*(){return(yield vs(s,n.window))||(console.warn("getPlugin result is null",s),null)}))):i}function ar(e,t,r=tn,n=gl){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:u,vShow:c,vModels:l,vBind:h,vHtml:f,others:p}=fw(o);if(a&&!pw(a,t))return null;const d=b=>{var O,V,w,T;const E=b.$components,g=(()=>{var C,I,D,k;if(e.name==="component")return dw(b,(C=e.props)==null?void 0:C.is);if(e.name==="slot")return e.name;const M=n(e.name,e.from,r);return bt(M)?nl(M)||il(M)?M:(k=(D=E[M])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(M))!=null?k:M:M})(),y=mw(s,(O=e.props)!=null?O:{},b),_=gw(r,(V=e.events)!=null?V:{},b);if(e.name==="slot")return vw(r,e,y,b,n);h&&Object.assign(y,b.__parseExpression(h.value)),c&&(y.style=Object.assign((w=y.style)!=null?w:{},bw(c,b))),f&&Object.assign(y,_w(f,b)),l.forEach(M=>{Object.assign(y,ww(r,M,b))});const S=Ew(r,(T=e.children)!=null?T:[],b,n,e);let v=r.createVNode(g,z(z({},y),_),S);const x=i?hw(i,p,b):[];return x.length&&(v=r.withDirectives(v,x)),v};return u?Tw(u,d,t):d(t)}function hw(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function fw(e=[]){const t=e.find(u=>Nt(u.name)==="vIf"),r=e.find(u=>Nt(u.name)==="vFor"),n=e.find(u=>Nt(u.name)==="vShow"),i=e.find(u=>Nt(u.name)==="vBind"),s=e.find(u=>Nt(u.name)==="vHtml"),o=e.filter(u=>Nt(u.name)==="vModel"),a=e.filter(u=>!qu.includes(Nt(u.name)));return{vIf:t,vFor:r,vShow:n,vModels:o,vBind:i,others:a,vHtml:s}}function pw(e,t){return!!t.__parseExpression(e.value)}function dw(e,t){return t?wt(t)?e.__parseExpression(t):t:"div"}function mw(e,t,r){const n=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return wt(o)?o=r.__parseExpression(o):Fe(o)&&(o=r.__parseFunction(o)),i[s]=o,i},{});return n.ref=r.__ref(e,n.ref),n}function gw(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const a=t[o],u=ys(a.modifiers),c=u.find(f=>n.includes(f)),l="on"+un(o)+(c&&i[c]||""),h=r.__parseFunction(a.handler);return h&&(s[l]=e.withModifiers(h,u)),s},{})}function ys(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function vw(e,t,r,n,i){var u;const{children:s}=t,o=yw(t,n),a=(u=n.$slots)==null?void 0:u[o.name];return a?a(r):s?bt(s)?e.createTextVNode(s):wt(s)?e.createTextVNode(ps(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>ar(c,n,e,i)):null:null}function yw(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:wt(n)?t.__parseExpression(n):n,params:[]}}function bw(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function _w(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function ww(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
79
79
  ${t.value.value} = v;
80
- }`:"(v) => {}"},i=r.__parseFunction(n),s=ys(wt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=wt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function ww(e,t,r,n,i){if(!t)return null;if(bt(t))return{default:()=>t};if(wt(t))return{default:()=>ps(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=Ew(t),o=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(s).reduce((a,[u,{nodes:c,params:l}])=>(a[u]=h=>{const f=l.length?Fc(h!=null?h:{},l):o(h);return c.map(p=>ar(p,r.__clone(f),e,n))},a),{})}return null}function Ew(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=Sw(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params)):t[i]={nodes:[r],params:n.params}}return t}function Sw(e="default"){return bt(e)?{name:e,params:[]}:z({params:[]},e)}function xw(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((u,c)=>c+1)),Array.isArray(a)?a.map((u,c)=>t(r.__clone({[s]:u,[o]:c}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}function Tw(e){return kl()?(Nl(e),!0):!1}const vl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $w=e=>e!=null,Ow=()=>{};function Aw(e){return ia()}function jw(e){return Array.isArray(e)?e:[e]}function Rw(...e){if(e.length!==1)return Rl(...e);const t=e[0];return typeof t=="function"?Dl(Cl(()=>({get:t,set:Ow}))):tr(t)}function Dw(e,t){Aw()&&Pl(e,t)}const Cw=vl?window:void 0,Pw=vl?window.document:void 0;function kw(e){var t;const r=Di(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Nw(){const e=tr(!1),t=ia();return t&&Bl(()=>{e.value=!0},t),e}function Bw(e){const t=Nw();return na(()=>(t.value,!!e()))}function Iw(e,t,r={}){const f=r,{window:n=Cw}=f,i=Tn(f,["window"]);let s;const o=Bw(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},u=na(()=>{const p=Di(e),d=jw(p).map(kw).filter($w);return new Set(d)}),c=ra(()=>u.value,p=>{a(),o.value&&p.size&&(s=new MutationObserver(t),p.forEach(d=>s.observe(d,i)))},{immediate:!0,flush:"post"}),l=()=>s==null?void 0:s.takeRecords(),h=()=>{c(),a()};return Tw(h),{isSupported:o,stop:h,takeRecords:l}}function Mw(e=null,t={}){var r,n,i;const{document:s=Pw,restoreOnUnmount:o=h=>h}=t,a=(r=s==null?void 0:s.title)!=null?r:"",u=Rw((n=e!=null?e:s==null?void 0:s.title)!=null?n:null),c=e&&typeof e=="function";function l(h){if(!("titleTemplate"in t))return h;const f=t.titleTemplate||"%s";return typeof f=="function"?f(h):Di(f).replace(/%s/g,h)}return ra(u,(h,f)=>{h!==f&&s&&(s.title=l(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!c&&Iw((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==u.value&&(u.value=l(s.title))},{childList:!0}),Dw(()=>{if(o){const h=o(a,u.value||"");h!=null&&s&&(s.title=h)}}),u}const ta=en({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=_s(),t=sa(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=tr(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),Mw(n.title||"VTJ")),{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Wn(e,ct(z({},t),{key:r})):Wn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),Fw={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},Lw={"data-l-h6o7ki7":"",class:"vtj-startup"},Vw={"data-l-h6o7ki7":"",class:"vtj-startup__name"},Hw={"data-l-h6o7ki7":""},Uw={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},zw={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},yl=en({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"},link:{}},setup(e){((n,i)=>{let s=document.getElementById("h6o7ki7");s||(s=document.createElement("style"),s.id="h6o7ki7",document.head.appendChild(s),s.innerHTML=i)})("h6o7ki7",`
80
+ }`:"(v) => {}"},i=r.__parseFunction(n),s=ys(wt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=wt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function Ew(e,t,r,n,i){if(!t)return null;if(bt(t))return{default:()=>t};if(wt(t))return{default:()=>ps(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=Sw(t),o=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(s).reduce((a,[u,{nodes:c,params:l}])=>(a[u]=h=>{const f=l.length?Fc(h!=null?h:{},l):o(h);return c.map(p=>ar(p,r.__clone(f),e,n))},a),{})}return null}function Sw(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=xw(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params)):t[i]={nodes:[r],params:n.params}}return t}function xw(e="default"){return bt(e)?{name:e,params:[]}:z({params:[]},e)}function Tw(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((u,c)=>c+1)),Array.isArray(a)?a.map((u,c)=>t(r.__clone({[s]:u,[o]:c}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}function $w(e){return kl()?(Nl(e),!0):!1}const vl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ow=e=>e!=null,Aw=()=>{};function jw(e){return ia()}function Rw(e){return Array.isArray(e)?e:[e]}function Dw(...e){if(e.length!==1)return Rl(...e);const t=e[0];return typeof t=="function"?Dl(Cl(()=>({get:t,set:Aw}))):tr(t)}function Cw(e,t){jw()&&Pl(e,t)}const Pw=vl?window:void 0,kw=vl?window.document:void 0;function Nw(e){var t;const r=Di(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Bw(){const e=tr(!1),t=ia();return t&&Bl(()=>{e.value=!0},t),e}function Iw(e){const t=Bw();return na(()=>(t.value,!!e()))}function Mw(e,t,r={}){const f=r,{window:n=Pw}=f,i=Tn(f,["window"]);let s;const o=Iw(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},u=na(()=>{const p=Di(e),d=Rw(p).map(Nw).filter(Ow);return new Set(d)}),c=ra(()=>u.value,p=>{a(),o.value&&p.size&&(s=new MutationObserver(t),p.forEach(d=>s.observe(d,i)))},{immediate:!0,flush:"post"}),l=()=>s==null?void 0:s.takeRecords(),h=()=>{c(),a()};return $w(h),{isSupported:o,stop:h,takeRecords:l}}function Fw(e=null,t={}){var r,n,i;const{document:s=kw,restoreOnUnmount:o=h=>h}=t,a=(r=s==null?void 0:s.title)!=null?r:"",u=Dw((n=e!=null?e:s==null?void 0:s.title)!=null?n:null),c=e&&typeof e=="function";function l(h){if(!("titleTemplate"in t))return h;const f=t.titleTemplate||"%s";return typeof f=="function"?f(h):Di(f).replace(/%s/g,h)}return ra(u,(h,f)=>{h!==f&&s&&(s.title=l(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!c&&Mw((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==u.value&&(u.value=l(s.title))},{childList:!0}),Cw(()=>{if(o){const h=o(a,u.value||"");h!=null&&s&&(s.title=h)}}),u}const ta=en({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=_s(),t=sa(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=tr(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),Fw(n.title||"VTJ")),{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Wn(e,ct(z({},t),{key:r})):Wn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),Lw={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},Vw={"data-l-h6o7ki7":"",class:"vtj-startup"},Hw={"data-l-h6o7ki7":"",class:"vtj-startup__name"},Uw={"data-l-h6o7ki7":""},zw={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},qw={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},yl=en({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"},link:{}},setup(e){((n,i)=>{let s=document.getElementById("h6o7ki7");s||(s=document.createElement("style"),s.id="h6o7ki7",document.head.appendChild(s),s.innerHTML=i)})("h6o7ki7",`
81
81
  .vtj-startup[data-l-h6o7ki7]{
82
82
  padding: 20px;
83
83
  border-radius: 4px;
@@ -142,4 +142,4 @@ version: 2.9.0
142
142
  }
143
143
  .vtj-startup__actions button[data-l-h6o7ki7]:hover{
144
144
  opacity: 0.7;
145
- }`);const t=e,r=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(Yn(),Al("div",Fw,[me("div",Lw,[me("h1",Vw,[me("span",Hw,An(t.name),1)]),me("div",Uw,An(t.tagline),1),me("div",zw,[me("button",{"data-l-h6o7ki7":"",onClick:r},An(t.actionText),1)])])]))}}),qw=en({name:"VtjStartupContainer",render(){return Wn(yl)}}),bs=Symbol("Provider");var bl=(e=>(e.Production="production",e.Development="development",e))(bl||{});class _l extends Jc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:tw,jsonp:Hu});j(this,"apis",{});j(this,"dependencies",{});j(this,"materials",{});j(this,"library",{});j(this,"service");j(this,"project",null);j(this,"components",{});j(this,"nodeEnv","development");j(this,"router",null);j(this,"materialPath","./");j(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=ft.Raw,dependencies:s,materials:o,project:a={},adapter:u={},globals:c={},modules:l={},router:h=null,materialPath:f="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=h,this.materialPath=f,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:h,request:m}),a&&i!==ft.Design?this.load(a):this.project=a,oe.setup({timeout:"50-500"})}createMock(r){return(...n)=>L(this,null,function*(){let i={};if(r)try{i=yield r.apply(r,n)}catch(s){se.warn("模拟数据模版异常",s)}return oe.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:s=[]}=this.project,o=window;o.CKEDITOR_VERSION=void 0,this.mode===ft.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.apis=cl(i,s,this.adapter),ms(),ul(i),this.initRouter(),this.triggerReady()})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:u}=this,{libraryExports:c,libraryMap:l,materials:h,materialExports:f,materialMapLibrary:p}=Zu(n,a,u==="development");for(const d of c){const m=i[d],b=r[d];if(b)s[d]=b;else if(m)r[d]=s[d]=yield m();else{const E=l[d]||[];for(const g of E)wn(g)&&(yield Xu(d,ie.append(g,{v:Ae}))),En(g)&&(yield Ai(ie.append(g,{v:Ae})));s[d]=r[d]}}if(u==="development"){for(const m of h)yield Ai(ie.append(m,{v:Ae}));const d=this.materials||{};for(const m of f){const b=r[p[m]],E=Kc[m];if(E)b&&E.forEach(g=>{o[g]=b[g]});else{const g=d[m]?(yield d[m]()).default:r[m];g&&b&&(g.components||[]).forEach(y=>{o[y.name]=Qu(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const{routeAppendTo:o,pageRouteName:a="page",routeMeta:u}=i,c=o?"":"/",l={path:`${c}${a}/:id`,name:je,component:ta},h={path:c,name:Qe,component:n!=null&&n.homepage?ta:s.startupComponent||qw,meta:u};r.hasRoute(je)&&r.removeRoute(je),r.hasRoute(Qe)&&r.removeRoute(Qe),o?(r.addRoute(o,l),r.addRoute(o,h)):(r.addRoute(l),r.addRoute(h))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&rl(s)&&(r.use(s),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(bs,this),r.config.globalProperties.installed=n,this.mode===ft.Design&&(r.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,u=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",c=`[ ${a} ] ${u} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),rn.error({title:"未处理的异常:请在控制台查看详情",message:c})})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const u=i(s,a.children);if(u)return u}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:a}=this,u=z({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=Xr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return Qr(ct(z({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return L(this,null,function*(){var u;const i=this.getFile(r);if(!i)return se.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s];if(o)return(u=yield o())==null?void 0:u.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(se.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return $s(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return $s(()=>L(this,null,function*(){return yield vs(r,window)}))}}function Kw(e){const t=new _l(e);return{provider:t,onReady:r=>t.ready(r)}}function _s(e={}){const t=ea(bs);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&rn.warning({title:i==null?void 0:i.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})}return t}const ws=new cs({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0},showError:e=>{rn.error({message:e||"未知错误"})}}}),Jw=(e="/__vtj__/api/:type.json")=>(t,r)=>ws.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),Ww=(e="/__vtj__/api/uploader.json")=>(t,r)=>L(void 0,null,function*(){return yield ws.send({url:e,method:"post",data:{files:t,projectId:r},settings:{type:"data"}}).then(n=>n&&n[0]?n[0]:null).catch(()=>null)});class Sn{constructor(){j(this,"api");j(this,"pluginCaches",{});j(this,"uploader");this.api=Jw(),this.uploader=Ww()}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return L(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Yu(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=ws.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const mt=new ls({type:"local",expired:0,prefix:"__VTJ_"});class Yw extends Sn{init(t){const r=new ce(t),n=mt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return mt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new ce(t);return mt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return mt.save(`materials_${t.id}`,fn(r)),Promise.resolve(!0)}saveFile(t){return mt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=mt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return mt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return mt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=mt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),mt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=mt.get(`history_${t}`),n=new Qi(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=mt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return mt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{mt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class wl extends Sn{constructor(){super(...arguments);j(this,"projects",{});j(this,"materials",{});j(this,"files",{});j(this,"histories",{});j(this,"historyItems",{})}init(r){const n=new ce(r),i=this.projects[n.id]||{},s=Object.assign(n.toDsl(),i);return this.projects[s.id]=s,Promise.resolve(s)}saveProject(r){const n=new ce(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=fn(n)),Promise.resolve(!0)}saveFile(r){return this.files[r.id]=r,Promise.resolve(!0)}getFile(r){const n=this.files[r];return n?Promise.resolve(n):Promise.reject(null)}removeFile(r){return delete this.files[r],Promise.resolve(!0)}saveHistory(r){return this.histories[r.id]=r,Promise.resolve(!0)}removeHistory(r){const n=this.histories[r];if(n){const i=(n.items||[]).map(s=>s.id);this.removeHistoryItem(r,i),delete this.historyItems[r]}return Promise.resolve(!0)}getHistory(r){const n=this.histories[r],i=new Qi(n||{id:r});return Promise.resolve(i)}getHistoryItem(r,n){const i=`${r}_${n}`,s=this.historyItems[i]||{};return Promise.resolve(s)}saveHistoryItem(r,n){const i=`${r}_${n.id}`;return this.historyItems[i]=n,Promise.resolve(!0)}removeHistoryItem(r,n){return n.forEach(i=>{const s=`${r}_${i}`;delete this.historyItems[s]}),Promise.resolve(!0)}}let Jn=null;function Gw(){return Jn||(Jn=new wl,Jn)}class Zw extends Sn{constructor(){super(...arguments);j(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r){return L(this,null,function*(){return!!(yield this.api("saveProject",r).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:fn(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function El(e,t,r=[]){return r.map(n=>{const{id:i,title:s,icon:o,children:a,hidden:u}=n;return{id:i,title:s,icon:o,hidden:u,url:`${e}/${t}/${i}`,children:a&&a.length?El(e,t,a):void 0}})}function Sl(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=Sl(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function Qw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=_s(),s=sa(),o=pl(),a=tr(!1),u=tr(!1),c=i.project;jl(()=>{const{name:f,params:p,meta:d}=s;if(f===je){const m=i.getPage(p.id);a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else if(f===Qe){const m=i.getHomepage();a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else a.value=!d.mask,u.value=!!d.pure});const l=El(t,r,c==null?void 0:c.pages),h=c==null?void 0:c.config;return{disabled:a,logo:h==null?void 0:h.logo,themeSwitchable:h==null?void 0:h.themeSwitchable,title:(h==null?void 0:h.title)||(c==null?void 0:c.description)||(c==null?void 0:c.name)||"VTJ App",menus:n?l:Sl(l,o),pure:u}}const T2=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:gs,Access:fl,BUILD_IN_TAGS:Wu,BUILT_IN_DIRECTIVES:qu,BaseService:Sn,CONTEXT_HOST:Ri,Context:dl,ContextMode:ft,DATA_TYPES:Ku,HOMEPAGE_ROUTE_NAME:Qe,HTML_TAGS:Ju,JSCodeToString:X_,LIFE_CYCLES_LIST:G_,LocalService:Zw,MemoryService:wl,NodeEnv:bl,PAGE_ROUTE_NAME:je,Provider:_l,Startup:yl,StorageService:Yw,VTJ_RENDERER_VERSION:Ae,adoptedStyleSheets:ds,createAssetScripts:Z_,createAssetsCss:Q_,createDataSources:ml,createLoader:Xr,createMemoryService:Gw,createMetaApi:al,createMock:ll,createProvider:Kw,createRenderer:Qr,createSchemaApi:ol,createSchemaApis:cl,defaultLoader:gl,fillBasePath:Ye,getModifiers:ys,getPlugin:vs,getRawComponent:Qu,isBuiltInTag:nl,isCSSUrl:wn,isJSCode:sl,isJSExpression:wt,isJSFunction:Fe,isJSON:Yu,isJSUrl:En,isNativeTag:il,isVuePlugin:rl,loadCss:Xu,loadCssUrl:tl,loadScriptUrl:el,mockApi:hl,mockApis:ul,mockCleanup:ms,nodeRender:ar,parseDeps:Zu,parseExpression:ke,parseFunction:Zr,providerKey:bs,removeProdFlag:Gu,toString:ps,useAccess:pl,useMask:Qw,useProvider:_s},Symbol.toStringTag,{value:"Module"})),Xw=en({__name:"app",setup(e){return(t,r)=>{const n=Il("router-view");return Yn(),Os(As(ql),{locale:As(zl)},{default:js(()=>[(Yn(),Os(Ml,null,{default:js(()=>[Fl(n)]),_:1}))]),_:1},8,["locale"])}}}),t2=[{path:"/",name:"home",component:()=>vr(()=>import("./index-BvLtH7Ej.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>vr(()=>import("./preview-BovWIv7Z.js"),__vite__mapDeps([20,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>vr(()=>import("./page-Cgw1GDNx.js"),__vite__mapDeps([21,13,14,1,2,12,6,5,10,8,7,11,3,4,9,15,16,17]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>vr(()=>import("./auth-dRF3ivor.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,23]),import.meta.url)}],e2=Vl({history:Hl(),routes:t2}),r2="RRO_IDE_ACCESS_STORAGE__",Es=Ll(Xw),n2=new fl({storageKey:r2});Es.use(n2);Es.use(e2);Es.mount("#app");export{Xc as $,r2 as A,Je as B,pi as C,fl as D,fi as E,Zc as F,Qc as G,Kw as H,G as I,ae as J,Cv as K,wa as L,nt as M,Zw as N,Dt as O,We as P,te as Q,E0 as R,v0 as S,Qi as T,Fe as U,Nr as V,hy as W,si as X,Pv as Y,at as Z,wt as _,ui as a,X_ as a0,G_ as a1,ke as a2,Ku as a3,Zu as a4,Q_ as a5,Z_ as a6,ny as a7,Qu as a8,cl as a9,ms as aa,ul as ab,Zr as ac,Ke as ad,qu as ae,zi as af,Jr as ag,sy as ah,$_ as ai,ll as aj,Gi as ak,Zi as al,T_ as am,Bv as an,Vi as ao,x2 as ap,wn as aq,En as ar,tl as as,el as at,y2 as au,T2 as av,Mc as b,ir as c,Lr as d,A_ as e,W_ as f,se as g,cy as h,j_ as i,jc as j,oc as k,Jc as l,h0 as m,_l as n,bt as o,J_ as p,ce as q,Te as r,F as s,gt as t,Hu as u,Nt as v,it as w,Se as x,ft as y,Ic as z};
145
+ }`);const t=e,r=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(Yn(),Al("div",Lw,[me("div",Vw,[me("h1",Hw,[me("span",Uw,An(t.name),1)]),me("div",zw,An(t.tagline),1),me("div",qw,[me("button",{"data-l-h6o7ki7":"",onClick:r},An(t.actionText),1)])])]))}}),Kw=en({name:"VtjStartupContainer",render(){return Wn(yl)}}),bs=Symbol("Provider");var bl=(e=>(e.Production="production",e.Development="development",e))(bl||{});class _l extends Jc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:ew,jsonp:Hu});j(this,"apis",{});j(this,"dependencies",{});j(this,"materials",{});j(this,"library",{});j(this,"service");j(this,"project",null);j(this,"components",{});j(this,"nodeEnv","development");j(this,"router",null);j(this,"materialPath","./");j(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=ft.Raw,dependencies:s,materials:o,project:a={},adapter:u={},globals:c={},modules:l={},router:h=null,materialPath:f="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=h,this.materialPath=f,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:h,request:m}),a&&i!==ft.Design?this.load(a):this.project=a,oe.setup({timeout:"50-500"})}createMock(r){return(...n)=>L(this,null,function*(){let i={};if(r)try{i=yield r.apply(r,n)}catch(s){se.warn("模拟数据模版异常",s)}return oe.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:s=[]}=this.project,o=window;o.CKEDITOR_VERSION=void 0,this.mode===ft.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.apis=cl(i,s,this.adapter),ms(),ul(i),this.initRouter(),this.triggerReady()})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:u}=this,{libraryExports:c,libraryMap:l,materials:h,materialExports:f,materialMapLibrary:p}=Zu(n,a,u==="development");for(const d of c){const m=i[d],b=r[d];if(b)s[d]=b;else if(m)r[d]=s[d]=yield m();else{const E=l[d]||[];for(const g of E)wn(g)&&(yield Xu(d,ie.append(g,{v:Ae}))),En(g)&&(yield Ai(ie.append(g,{v:Ae})));s[d]=r[d]}}if(u==="development"){for(const m of h)yield Ai(ie.append(m,{v:Ae}));const d=this.materials||{};for(const m of f){const b=r[p[m]],E=Kc[m];if(E)b&&E.forEach(g=>{o[g]=b[g]});else{const g=d[m]?(yield d[m]()).default:r[m];g&&b&&(g.components||[]).forEach(y=>{o[y.name]=Qu(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const{routeAppendTo:o,pageRouteName:a="page",routeMeta:u}=i,c=o?"":"/",l={path:`${c}${a}/:id`,name:je,component:ta},h={path:c,name:Qe,component:n!=null&&n.homepage?ta:s.startupComponent||Kw,meta:u};r.hasRoute(je)&&r.removeRoute(je),r.hasRoute(Qe)&&r.removeRoute(Qe),o?(r.addRoute(o,l),r.addRoute(o,h)):(r.addRoute(l),r.addRoute(h))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&rl(s)&&(r.use(s),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(bs,this),r.config.globalProperties.installed=n,this.mode===ft.Design&&(r.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,u=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",c=`[ ${a} ] ${u} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),rn.error({title:"未处理的异常:请在控制台查看详情",message:c})})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const u=i(s,a.children);if(u)return u}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:a}=this,u=z({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=Xr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return Qr(ct(z({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return L(this,null,function*(){var u;const i=this.getFile(r);if(!i)return se.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s];if(o)return(u=yield o())==null?void 0:u.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(se.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return $s(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return $s(()=>L(this,null,function*(){return yield vs(r,window)}))}}function Jw(e){const t=new _l(e);return{provider:t,onReady:r=>t.ready(r)}}function _s(e={}){const t=ea(bs);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&rn.warning({title:i==null?void 0:i.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})}return t}const ws=new cs({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0},showError:e=>{rn.error({message:e||"未知错误"})}}}),Ww=(e="/__vtj__/api/:type.json")=>(t,r)=>ws.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),Yw=(e="/__vtj__/api/uploader.json")=>(t,r)=>L(void 0,null,function*(){return yield ws.send({url:e,method:"post",data:{files:t,projectId:r},settings:{type:"data"}}).then(n=>n&&n[0]?n[0]:null).catch(()=>null)});class Sn{constructor(){j(this,"api");j(this,"pluginCaches",{});j(this,"uploader");this.api=Ww(),this.uploader=Yw()}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return L(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Yu(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=ws.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const mt=new ls({type:"local",expired:0,prefix:"__VTJ_"});class Gw extends Sn{init(t){const r=new ce(t),n=mt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return mt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new ce(t);return mt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return mt.save(`materials_${t.id}`,fn(r)),Promise.resolve(!0)}saveFile(t){return mt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=mt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return mt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return mt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=mt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),mt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=mt.get(`history_${t}`),n=new Qi(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=mt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return mt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{mt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class wl extends Sn{constructor(){super(...arguments);j(this,"projects",{});j(this,"materials",{});j(this,"files",{});j(this,"histories",{});j(this,"historyItems",{})}init(r){const n=new ce(r),i=this.projects[n.id]||{},s=Object.assign(n.toDsl(),i);return this.projects[s.id]=s,Promise.resolve(s)}saveProject(r){const n=new ce(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=fn(n)),Promise.resolve(!0)}saveFile(r){return this.files[r.id]=r,Promise.resolve(!0)}getFile(r){const n=this.files[r];return n?Promise.resolve(n):Promise.reject(null)}removeFile(r){return delete this.files[r],Promise.resolve(!0)}saveHistory(r){return this.histories[r.id]=r,Promise.resolve(!0)}removeHistory(r){const n=this.histories[r];if(n){const i=(n.items||[]).map(s=>s.id);this.removeHistoryItem(r,i),delete this.historyItems[r]}return Promise.resolve(!0)}getHistory(r){const n=this.histories[r],i=new Qi(n||{id:r});return Promise.resolve(i)}getHistoryItem(r,n){const i=`${r}_${n}`,s=this.historyItems[i]||{};return Promise.resolve(s)}saveHistoryItem(r,n){const i=`${r}_${n.id}`;return this.historyItems[i]=n,Promise.resolve(!0)}removeHistoryItem(r,n){return n.forEach(i=>{const s=`${r}_${i}`;delete this.historyItems[s]}),Promise.resolve(!0)}}let Jn=null;function Zw(){return Jn||(Jn=new wl,Jn)}class Qw extends Sn{constructor(){super(...arguments);j(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r){return L(this,null,function*(){return!!(yield this.api("saveProject",r).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:fn(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function El(e,t,r=[]){return r.map(n=>{const{id:i,title:s,icon:o,children:a,hidden:u}=n;return{id:i,title:s,icon:o,hidden:u,url:`${e}/${t}/${i}`,children:a&&a.length?El(e,t,a):void 0}})}function Sl(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=Sl(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function Xw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=_s(),s=sa(),o=pl(),a=tr(!1),u=tr(!1),c=i.project;jl(()=>{const{name:f,params:p,meta:d}=s;if(f===je){const m=i.getPage(p.id);a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else if(f===Qe){const m=i.getHomepage();a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else a.value=!d.mask,u.value=!!d.pure});const l=El(t,r,c==null?void 0:c.pages),h=c==null?void 0:c.config;return{disabled:a,logo:h==null?void 0:h.logo,themeSwitchable:h==null?void 0:h.themeSwitchable,title:(h==null?void 0:h.title)||(c==null?void 0:c.description)||(c==null?void 0:c.name)||"VTJ App",menus:n?l:Sl(l,o),pure:u}}const $2=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:gs,Access:fl,BUILD_IN_TAGS:Wu,BUILT_IN_DIRECTIVES:qu,BaseService:Sn,CONTEXT_HOST:Ri,Context:dl,ContextMode:ft,DATA_TYPES:Ku,HOMEPAGE_ROUTE_NAME:Qe,HTML_TAGS:Ju,JSCodeToString:tw,LIFE_CYCLES_LIST:Z_,LocalService:Qw,MemoryService:wl,NodeEnv:bl,PAGE_ROUTE_NAME:je,Provider:_l,Startup:yl,StorageService:Gw,VTJ_RENDERER_VERSION:Ae,adoptedStyleSheets:ds,createAssetScripts:Q_,createAssetsCss:X_,createDataSources:ml,createLoader:Xr,createMemoryService:Zw,createMetaApi:al,createMock:ll,createProvider:Jw,createRenderer:Qr,createSchemaApi:ol,createSchemaApis:cl,defaultLoader:gl,fillBasePath:Ye,getModifiers:ys,getPlugin:vs,getRawComponent:Qu,isBuiltInTag:nl,isCSSUrl:wn,isJSCode:sl,isJSExpression:wt,isJSFunction:Fe,isJSON:Yu,isJSUrl:En,isNativeTag:il,isVuePlugin:rl,loadCss:Xu,loadCssUrl:tl,loadScriptUrl:el,mockApi:hl,mockApis:ul,mockCleanup:ms,nodeRender:ar,parseDeps:Zu,parseExpression:ke,parseFunction:Zr,providerKey:bs,removeProdFlag:Gu,toString:ps,useAccess:pl,useMask:Xw,useProvider:_s},Symbol.toStringTag,{value:"Module"})),t2=en({__name:"app",setup(e){return(t,r)=>{const n=Il("router-view");return Yn(),Os(As(ql),{locale:As(zl)},{default:js(()=>[(Yn(),Os(Ml,null,{default:js(()=>[Fl(n)]),_:1}))]),_:1},8,["locale"])}}}),e2=[{path:"/",name:"home",component:()=>vr(()=>import("./index-rSjlM276.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>vr(()=>import("./preview-CS81WHn_.js"),__vite__mapDeps([20,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>vr(()=>import("./page-BPUmAD5D.js"),__vite__mapDeps([21,13,14,1,2,12,6,5,10,8,7,11,3,4,9,15,16,17]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>vr(()=>import("./auth-Ba1ZKjZT.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,23]),import.meta.url)}],r2=Vl({history:Hl(),routes:e2}),n2="RRO_IDE_ACCESS_STORAGE__",Es=Ll(t2),i2=new fl({storageKey:n2});Es.use(i2);Es.use(r2);Es.mount("#app");export{Xc as $,n2 as A,Je as B,pi as C,fl as D,fi as E,Zc as F,Qc as G,Jw as H,G as I,ae as J,Cv as K,wa as L,nt as M,Qw as N,Dt as O,We as P,te as Q,E0 as R,v0 as S,Qi as T,Fe as U,Nr as V,fy as W,si as X,Pv as Y,at as Z,wt as _,ui as a,tw as a0,Z_ as a1,ke as a2,Ku as a3,Zu as a4,X_ as a5,Q_ as a6,iy as a7,Qu as a8,cl as a9,ms as aa,ul as ab,Zr as ac,Ke as ad,qu as ae,zi as af,Jr as ag,oy as ah,O_ as ai,ll as aj,Gi as ak,Zi as al,$_ as am,Iv as an,Vi as ao,T2 as ap,wn as aq,En as ar,tl as as,el as at,b2 as au,$2 as av,Mc as b,ir as c,Lr as d,gt as e,j_ as f,Y_ as g,se as h,R_ as i,jc as j,oc as k,Jc as l,h0 as m,Te as n,bt as o,W_ as p,_l as q,ce as r,F as s,uy as t,Hu as u,Nt as v,it as w,Se as x,ft as y,Ic as z};