@vtj/pro 0.9.0-alpha.13 → 0.9.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/{auth-BG9bea-a.js → auth-D4ocmmGv.js} +1 -1
- package/dist/assets/{extension-ChrGwmTz.js → extension-CVlw6qch.js} +7 -7
- package/dist/assets/{index-B-5cuk4c.js → index-8eHu2-fU.js} +18 -18
- package/dist/assets/{index-B98OoShK.js → index-gtXpk05i.js} +1 -1
- package/dist/assets/{preview-KfJaQ8SG.js → preview-B63t6Y6O.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +10 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mockjs-DFJTfpjR.js","./dayjs-rQ6ln_M2.js","./index-
|
|
2
|
-
var Zu=Object.defineProperty,Qu=Object.defineProperties;var Xu=Object.getOwnPropertyDescriptors;var lr=Object.getOwnPropertySymbols;var fs=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable;var fn=(e,t,r)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K=(e,t)=>{for(var r in t||(t={}))fs.call(t,r)&&fn(e,r,t[r]);if(lr)for(var r of lr(t))ps.call(t,r)&&fn(e,r,t[r]);return e},xt=(e,t)=>Qu(e,Xu(t));var pn=(e,t)=>{var r={};for(var n in e)fs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&lr)for(var n of lr(e))t.indexOf(n)<0&&ps.call(e,n)&&(r[n]=e[n]);return r};var j=(e,t,r)=>fn(e,typeof t!="symbol"?t+"":t,r);var V=(e,t,r)=>new Promise((n,i)=>{var s=l=>{try{a(r.next(l))}catch(c){i(c)}},o=l=>{try{a(r.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(e,t)).next())});import{aw as ds,ax as Ur,d as zr,I as Cn,G as Mo,f as Fo,o as kn,c as tl,a as ce,Y as dn,e as kr,w as el,m as rl,r as nl,j as il,E as sl,k as Lo,g as ol,b as al,u as Bn,h as Vo,i as cl,ai as ul,R as ms,S as gs,ay as ll,Z as hl,at as fl}from"./vue-DI4W0LUF.js";import{_ as Er}from"./monaco-editor-Ckv89Lpe.js";import{useRoute as Ho,createRouter as pl,createWebHashHistory as dl}from"./vue-router-C-68InZW.js";import{E as qr,a as ml,z as gl,b as vl}from"./element-plus-B_LLMM3p.js";import"./lodash-es-D4Nl9glD.js";import"./@vueuse-BzvDXRHg.js";import"./@element-plus-icons-vue-Crkbd7Hx.js";import"./shared-BYVUls-N.js";import"./dayjs-rQ6ln_M2.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 yl={ENV_TYPE:"live",NODE_ENV:"production"},bl=typeof global=="object"&&global&&global.Object===Object&&global;const Uo=bl;var _l=typeof self=="object"&&self&&self.Object===Object&&self,wl=Uo||_l||Function("return this")();const At=wl;var El=At.Symbol;const Rt=El;var zo=Object.prototype,Sl=zo.hasOwnProperty,xl=zo.toString,Be=Rt?Rt.toStringTag:void 0;function Tl(e){var t=Sl.call(e,Be),r=e[Be];try{e[Be]=void 0;var n=!0}catch(s){}var i=xl.call(e);return n&&(t?e[Be]=r:delete e[Be]),i}var Ol=Object.prototype,Al=Ol.toString;function $l(e){return Al.call(e)}var jl="[object Null]",Rl="[object Undefined]",vs=Rt?Rt.toStringTag:void 0;function vt(e){return e==null?e===void 0?Rl:jl:vs&&vs in Object(e)?Tl(e):$l(e)}function st(e){return e!=null&&typeof e=="object"}var Dl="[object Symbol]";function tr(e){return typeof e=="symbol"||st(e)&&vt(e)==Dl}function qo(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 Pl=Array.isArray;const ht=Pl;var Cl=1/0,ys=Rt?Rt.prototype:void 0,bs=ys?ys.toString:void 0;function Ko(e){if(typeof e=="string")return e;if(ht(e))return qo(e,Ko)+"";if(tr(e))return bs?bs.call(e):"";var t=e+"";return t=="0"&&1/e==-Cl?"-0":t}var kl=/\s/;function Bl(e){for(var t=e.length;t--&&kl.test(e.charAt(t)););return t}var Nl=/^\s+/;function Il(e){return e&&e.slice(0,Bl(e)+1).replace(Nl,"")}function ot(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _s=NaN,Ml=/^[-+]0x[0-9a-f]+$/i,Fl=/^0b[01]+$/i,Ll=/^0o[0-7]+$/i,Vl=parseInt;function ws(e){if(typeof e=="number")return e;if(tr(e))return _s;if(ot(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ot(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Il(e);var r=Fl.test(e);return r||Ll.test(e)?Vl(e.slice(2),r?2:8):Ml.test(e)?_s:+e}function yi(e){return e}var Hl="[object AsyncFunction]",Ul="[object Function]",zl="[object GeneratorFunction]",ql="[object Proxy]";function ne(e){if(!ot(e))return!1;var t=vt(e);return t==Ul||t==zl||t==Hl||t==ql}var Kl=At["__core-js_shared__"];const mn=Kl;var Es=function(){var e=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Jl(e){return!!Es&&Es in e}var Yl=Function.prototype,Wl=Yl.toString;function ie(e){if(e!=null){try{return Wl.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Gl=/[\\^$.*+?()[\]{}|]/g,Zl=/^\[object .+?Constructor\]$/,Ql=Function.prototype,Xl=Object.prototype,th=Ql.toString,eh=Xl.hasOwnProperty,rh=RegExp("^"+th.call(eh).replace(Gl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nh(e){if(!ot(e)||Jl(e))return!1;var t=ne(e)?rh:Zl;return t.test(ie(e))}function ih(e,t){return e==null?void 0:e[t]}function se(e,t){var r=ih(e,t);return nh(r)?r:void 0}var sh=se(At,"WeakMap");const Nn=sh;var Ss=Object.create,oh=function(){function e(){}return function(t){if(!ot(t))return{};if(Ss)return Ss(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const ah=oh;function Jo(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 ch(){}function uh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var lh=800,hh=16,fh=Date.now;function ph(e){var t=0,r=0;return function(){var n=fh(),i=hh-(n-r);if(r=n,i>0){if(++t>=lh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function dh(e){return function(){return e}}var mh=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Br=mh;var gh=Br?function(e,t){return Br(e,"toString",{configurable:!0,enumerable:!1,value:dh(t),writable:!0})}:yi;const vh=gh;var yh=ph(vh);const bh=yh;function _h(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var wh=9007199254740991,Eh=/^(?:0|[1-9]\d*)$/;function Kr(e,t){var r=typeof e;return t=t!=null?t:wh,!!t&&(r=="number"||r!="symbol"&&Eh.test(e))&&e>-1&&e%1==0&&e<t}function Jr(e,t,r){t=="__proto__"&&Br?Br(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Re(e,t){return e===t||e!==e&&t!==t}var Sh=Object.prototype,xh=Sh.hasOwnProperty;function bi(e,t,r){var n=e[t];(!(xh.call(e,t)&&Re(n,r))||r===void 0&&!(t in e))&&Jr(e,t,r)}function Yo(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=n?n(r[a],e[a],a,r,e):void 0;l===void 0&&(l=e[a]),i?Jr(r,a,l):bi(r,a,l)}return r}var xs=Math.max;function Th(e,t,r){return t=xs(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=xs(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),Jo(e,this,a)}}function Wo(e,t){return bh(Th(e,t,yi),e+"")}var Oh=9007199254740991;function _i(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Oh}function er(e){return e!=null&&_i(e.length)&&!ne(e)}function Go(e,t,r){if(!ot(r))return!1;var n=typeof t;return(n=="number"?er(r)&&Kr(t,r.length):n=="string"&&t in r)?Re(r[t],e):!1}function Zo(e){return Wo(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&&Go(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 Ah=Object.prototype;function wi(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ah;return e===r}function $h(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var jh="[object Arguments]";function Ts(e){return st(e)&&vt(e)==jh}var Qo=Object.prototype,Rh=Qo.hasOwnProperty,Dh=Qo.propertyIsEnumerable,Ph=Ts(function(){return arguments}())?Ts:function(e){return st(e)&&Rh.call(e,"callee")&&!Dh.call(e,"callee")};const Nr=Ph;function Ch(){return!1}var Xo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Os=Xo&&typeof module=="object"&&module&&!module.nodeType&&module,kh=Os&&Os.exports===Xo,As=kh?At.Buffer:void 0,Bh=As?As.isBuffer:void 0,Nh=Bh||Ch;const xe=Nh;var Ih="[object Arguments]",Mh="[object Array]",Fh="[object Boolean]",Lh="[object Date]",Vh="[object Error]",Hh="[object Function]",Uh="[object Map]",zh="[object Number]",qh="[object Object]",Kh="[object RegExp]",Jh="[object Set]",Yh="[object String]",Wh="[object WeakMap]",Gh="[object ArrayBuffer]",Zh="[object DataView]",Qh="[object Float32Array]",Xh="[object Float64Array]",tf="[object Int8Array]",ef="[object Int16Array]",rf="[object Int32Array]",nf="[object Uint8Array]",sf="[object Uint8ClampedArray]",of="[object Uint16Array]",af="[object Uint32Array]",X={};X[Qh]=X[Xh]=X[tf]=X[ef]=X[rf]=X[nf]=X[sf]=X[of]=X[af]=!0,X[Ih]=X[Mh]=X[Gh]=X[Fh]=X[Zh]=X[Lh]=X[Vh]=X[Hh]=X[Uh]=X[zh]=X[qh]=X[Kh]=X[Jh]=X[Yh]=X[Wh]=!1;function cf(e){return st(e)&&_i(e.length)&&!!X[vt(e)]}function rr(e){return function(t){return e(t)}}var ta=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ue=ta&&typeof module=="object"&&module&&!module.nodeType&&module,uf=Ue&&Ue.exports===ta,gn=uf&&Uo.process,lf=function(){try{var e=Ue&&Ue.require&&Ue.require("util").types;return e||gn&&gn.binding&&gn.binding("util")}catch(t){}}();const Dt=lf;var $s=Dt&&Dt.isTypedArray,hf=$s?rr($s):cf;const Ei=hf;var ff=Object.prototype,pf=ff.hasOwnProperty;function ea(e,t){var r=ht(e),n=!r&&Nr(e),i=!r&&!n&&xe(e),s=!r&&!n&&!i&&Ei(e),o=r||n||i||s,a=o?$h(e.length,String):[],l=a.length;for(var c in e)(t||pf.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Kr(c,l)))&&a.push(c);return a}function ra(e,t){return function(r){return e(t(r))}}var df=ra(Object.keys,Object);const mf=df;var gf=Object.prototype,vf=gf.hasOwnProperty;function yf(e){if(!wi(e))return mf(e);var t=[];for(var r in Object(e))vf.call(e,r)&&r!="constructor"&&t.push(r);return t}function Yr(e){return er(e)?ea(e):yf(e)}function bf(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var _f=Object.prototype,wf=_f.hasOwnProperty;function Ef(e){if(!ot(e))return bf(e);var t=wi(e),r=[];for(var n in e)n=="constructor"&&(t||!wf.call(e,n))||r.push(n);return r}function Si(e){return er(e)?ea(e,!0):Ef(e)}var Sf=Zo(function(e,t,r,n){Yo(t,Si(t),e,n)});const js=Sf;var xf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tf=/^\w*$/;function xi(e,t){if(ht(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||tr(e)?!0:Tf.test(e)||!xf.test(e)||t!=null&&e in Object(t)}var Of=se(Object,"create");const Ke=Of;function Af(){this.__data__=Ke?Ke(null):{},this.size=0}function $f(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jf="__lodash_hash_undefined__",Rf=Object.prototype,Df=Rf.hasOwnProperty;function Pf(e){var t=this.__data__;if(Ke){var r=t[e];return r===jf?void 0:r}return Df.call(t,e)?t[e]:void 0}var Cf=Object.prototype,kf=Cf.hasOwnProperty;function Bf(e){var t=this.__data__;return Ke?t[e]!==void 0:kf.call(t,e)}var Nf="__lodash_hash_undefined__";function If(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ke&&t===void 0?Nf: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=Af,Xt.prototype.delete=$f,Xt.prototype.get=Pf,Xt.prototype.has=Bf,Xt.prototype.set=If;function Mf(){this.__data__=[],this.size=0}function Wr(e,t){for(var r=e.length;r--;)if(Re(e[r][0],t))return r;return-1}var Ff=Array.prototype,Lf=Ff.splice;function Vf(e){var t=this.__data__,r=Wr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Lf.call(t,r,1),--this.size,!0}function Hf(e){var t=this.__data__,r=Wr(t,e);return r<0?void 0:t[r][1]}function Uf(e){return Wr(this.__data__,e)>-1}function zf(e,t){var r=this.__data__,n=Wr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Bt(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])}}Bt.prototype.clear=Mf,Bt.prototype.delete=Vf,Bt.prototype.get=Hf,Bt.prototype.has=Uf,Bt.prototype.set=zf;var qf=se(At,"Map");const Je=qf;function Kf(){this.size=0,this.__data__={hash:new Xt,map:new(Je||Bt),string:new Xt}}function Jf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Gr(e,t){var r=e.__data__;return Jf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Yf(e){var t=Gr(this,e).delete(e);return this.size-=t?1:0,t}function Wf(e){return Gr(this,e).get(e)}function Gf(e){return Gr(this,e).has(e)}function Zf(e,t){var r=Gr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Nt(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])}}Nt.prototype.clear=Kf,Nt.prototype.delete=Yf,Nt.prototype.get=Wf,Nt.prototype.has=Gf,Nt.prototype.set=Zf;var Qf="Expected a function";function Ti(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Qf);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(Ti.Cache||Nt),r}Ti.Cache=Nt;var Xf=500;function tp(e){var t=Ti(e,function(n){return r.size===Xf&&r.clear(),n}),r=t.cache;return t}var ep=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rp=/\\(\\)?/g,np=tp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ep,function(r,n,i,s){t.push(i?s.replace(rp,"$1"):n||r)}),t});const ip=np;function oe(e){return e==null?"":Ko(e)}function Oi(e,t){return ht(e)?e:xi(e,t)?[e]:ip(oe(e))}var sp=1/0;function nr(e){if(typeof e=="string"||tr(e))return e;var t=e+"";return t=="0"&&1/e==-sp?"-0":t}function na(e,t){t=Oi(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[nr(t[r++])];return r&&r==n?e:void 0}function ia(e,t,r){var n=e==null?void 0:na(e,t);return n===void 0?r:n}function op(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ap=ra(Object.getPrototypeOf,Object);const sa=ap;var cp="[object Object]",up=Function.prototype,lp=Object.prototype,oa=up.toString,hp=lp.hasOwnProperty,fp=oa.call(Object);function Ai(e){if(!st(e)||vt(e)!=cp)return!1;var t=sa(e);if(t===null)return!0;var r=hp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&oa.call(r)==fp}var pp="[object DOMException]",dp="[object Error]";function aa(e){if(!st(e))return!1;var t=vt(e);return t==dp||t==pp||typeof e.message=="string"&&typeof e.name=="string"&&!Ai(e)}var mp=Wo(function(e,t){try{return Jo(e,void 0,t)}catch(r){return aa(r)?r:new Error(r)}});const gp=mp;function vp(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 yp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:vp(e,t,r)}var bp="\\ud800-\\udfff",_p="\\u0300-\\u036f",wp="\\ufe20-\\ufe2f",Ep="\\u20d0-\\u20ff",Sp=_p+wp+Ep,xp="\\ufe0e\\ufe0f",Tp="\\u200d",Op=RegExp("["+Tp+bp+Sp+xp+"]");function ca(e){return Op.test(e)}function Ap(e){return e.split("")}var ua="\\ud800-\\udfff",$p="\\u0300-\\u036f",jp="\\ufe20-\\ufe2f",Rp="\\u20d0-\\u20ff",Dp=$p+jp+Rp,Pp="\\ufe0e\\ufe0f",Cp="["+ua+"]",In="["+Dp+"]",Mn="\\ud83c[\\udffb-\\udfff]",kp="(?:"+In+"|"+Mn+")",la="[^"+ua+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",fa="[\\ud800-\\udbff][\\udc00-\\udfff]",Bp="\\u200d",pa=kp+"?",da="["+Pp+"]?",Np="(?:"+Bp+"(?:"+[la,ha,fa].join("|")+")"+da+pa+")*",Ip=da+pa+Np,Mp="(?:"+[la+In+"?",In,ha,fa,Cp].join("|")+")",Fp=RegExp(Mn+"(?="+Mn+")|"+Mp+Ip,"g");function Lp(e){return e.match(Fp)||[]}function Vp(e){return ca(e)?Lp(e):Ap(e)}function ma(e){return function(t){t=oe(t);var r=ca(t)?Vp(t):void 0,n=r?r[0]:t.charAt(0),i=r?yp(r,1).join(""):t.slice(1);return n[e]()+i}}var Hp=ma("toUpperCase");const Zr=Hp;function Up(e){return Zr(oe(e).toLowerCase())}function zp(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 ga(e){return function(t){return e==null?void 0:e[t]}}var qp={À:"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"},Kp=ga(qp);const Jp=Kp;var Yp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wp="\\u0300-\\u036f",Gp="\\ufe20-\\ufe2f",Zp="\\u20d0-\\u20ff",Qp=Wp+Gp+Zp,Xp="["+Qp+"]",td=RegExp(Xp,"g");function ed(e){return e=oe(e),e&&e.replace(Yp,Jp).replace(td,"")}var rd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function nd(e){return e.match(rd)||[]}var id=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function sd(e){return id.test(e)}var va="\\ud800-\\udfff",od="\\u0300-\\u036f",ad="\\ufe20-\\ufe2f",cd="\\u20d0-\\u20ff",ud=od+ad+cd,ya="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",ld="\\xac\\xb1\\xd7\\xf7",hd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fd="\\u2000-\\u206f",pd=" \\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",_a="A-Z\\xc0-\\xd6\\xd8-\\xde",dd="\\ufe0e\\ufe0f",wa=ld+hd+fd+pd,Ea="['’]",Rs="["+wa+"]",md="["+ud+"]",Sa="\\d+",gd="["+ya+"]",xa="["+ba+"]",Ta="[^"+va+wa+Sa+ya+ba+_a+"]",vd="\\ud83c[\\udffb-\\udfff]",yd="(?:"+md+"|"+vd+")",bd="[^"+va+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",Aa="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="["+_a+"]",_d="\\u200d",Ds="(?:"+xa+"|"+Ta+")",wd="(?:"+pe+"|"+Ta+")",Ps="(?:"+Ea+"(?:d|ll|m|re|s|t|ve))?",Cs="(?:"+Ea+"(?:D|LL|M|RE|S|T|VE))?",$a=yd+"?",ja="["+dd+"]?",Ed="(?:"+_d+"(?:"+[bd,Oa,Aa].join("|")+")"+ja+$a+")*",Sd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Td=ja+$a+Ed,Od="(?:"+[gd,Oa,Aa].join("|")+")"+Td,Ad=RegExp([pe+"?"+xa+"+"+Ps+"(?="+[Rs,pe,"$"].join("|")+")",wd+"+"+Cs+"(?="+[Rs,pe+Ds,"$"].join("|")+")",pe+"?"+Ds+"+"+Ps,pe+"+"+Cs,xd,Sd,Sa,Od].join("|"),"g");function $d(e){return e.match(Ad)||[]}function jd(e,t,r){return e=oe(e),t=t,t===void 0?sd(e)?$d(e):nd(e):e.match(t)||[]}var Rd="['’]",Dd=RegExp(Rd,"g");function $i(e){return function(t){return zp(jd(ed(t).replace(Dd,"")),e,"")}}var Pd=$i(function(e,t,r){return t=t.toLowerCase(),e+(r?Up(t):t)});const Vt=Pd;function Cd(){this.__data__=new Bt,this.size=0}function kd(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Bd(e){return this.__data__.get(e)}function Nd(e){return this.__data__.has(e)}var Id=200;function Md(e,t){var r=this.__data__;if(r instanceof Bt){var n=r.__data__;if(!Je||n.length<Id-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Nt(n)}return r.set(e,t),this.size=r.size,this}function Ot(e){var t=this.__data__=new Bt(e);this.size=t.size}Ot.prototype.clear=Cd,Ot.prototype.delete=kd,Ot.prototype.get=Bd,Ot.prototype.has=Nd,Ot.prototype.set=Md;var Ra=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ks=Ra&&typeof module=="object"&&module&&!module.nodeType&&module,Fd=ks&&ks.exports===Ra,Bs=Fd?At.Buffer:void 0,Ns=Bs?Bs.allocUnsafe:void 0;function Da(e,t){if(t)return e.slice();var r=e.length,n=Ns?Ns(r):new e.constructor(r);return e.copy(n),n}function Ld(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 Vd(){return[]}var Hd=Object.prototype,Ud=Hd.propertyIsEnumerable,Is=Object.getOwnPropertySymbols,zd=Is?function(e){return e==null?[]:(e=Object(e),Ld(Is(e),function(t){return Ud.call(e,t)}))}:Vd;const qd=zd;function Kd(e,t,r){var n=t(e);return ht(e)?n:op(n,r(e))}function Fn(e){return Kd(e,Yr,qd)}var Jd=se(At,"DataView");const Ln=Jd;var Yd=se(At,"Promise");const Vn=Yd;var Wd=se(At,"Set");const Hn=Wd;var Ms="[object Map]",Gd="[object Object]",Fs="[object Promise]",Ls="[object Set]",Vs="[object WeakMap]",Hs="[object DataView]",Zd=ie(Ln),Qd=ie(Je),Xd=ie(Vn),tm=ie(Hn),em=ie(Nn),Qt=vt;(Ln&&Qt(new Ln(new ArrayBuffer(1)))!=Hs||Je&&Qt(new Je)!=Ms||Vn&&Qt(Vn.resolve())!=Fs||Hn&&Qt(new Hn)!=Ls||Nn&&Qt(new Nn)!=Vs)&&(Qt=function(e){var t=vt(e),r=t==Gd?e.constructor:void 0,n=r?ie(r):"";if(n)switch(n){case Zd:return Hs;case Qd:return Ms;case Xd:return Fs;case tm:return Ls;case em:return Vs}return t});const Ye=Qt;var rm=Object.prototype,nm=rm.hasOwnProperty;function im(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&nm.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var sm=At.Uint8Array;const Ir=sm;function ji(e){var t=new e.constructor(e.byteLength);return new Ir(t).set(new Ir(e)),t}function om(e,t){var r=ji(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var am=/\w*$/;function cm(e){var t=new e.constructor(e.source,am.exec(e));return t.lastIndex=e.lastIndex,t}var Us=Rt?Rt.prototype:void 0,zs=Us?Us.valueOf:void 0;function um(e){return zs?Object(zs.call(e)):{}}function Pa(e,t){var r=t?ji(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var lm="[object Boolean]",hm="[object Date]",fm="[object Map]",pm="[object Number]",dm="[object RegExp]",mm="[object Set]",gm="[object String]",vm="[object Symbol]",ym="[object ArrayBuffer]",bm="[object DataView]",_m="[object Float32Array]",wm="[object Float64Array]",Em="[object Int8Array]",Sm="[object Int16Array]",xm="[object Int32Array]",Tm="[object Uint8Array]",Om="[object Uint8ClampedArray]",Am="[object Uint16Array]",$m="[object Uint32Array]";function jm(e,t,r){var n=e.constructor;switch(t){case ym:return ji(e);case lm:case hm:return new n(+e);case bm:return om(e);case _m:case wm:case Em:case Sm:case xm:case Tm:case Om:case Am:case $m:return Pa(e,r);case fm:return new n;case pm:case gm:return new n(e);case dm:return cm(e);case mm:return new n;case vm:return um(e)}}function Ca(e){return typeof e.constructor=="function"&&!wi(e)?ah(sa(e)):{}}var Rm="[object Map]";function Dm(e){return st(e)&&Ye(e)==Rm}var qs=Dt&&Dt.isMap,Pm=qs?rr(qs):Dm;const Cm=Pm;var km="[object Set]";function Bm(e){return st(e)&&Ye(e)==km}var Ks=Dt&&Dt.isSet,Nm=Ks?rr(Ks):Bm;const Im=Nm;var Mm=1,ka="[object Arguments]",Fm="[object Array]",Lm="[object Boolean]",Vm="[object Date]",Hm="[object Error]",Ba="[object Function]",Um="[object GeneratorFunction]",zm="[object Map]",qm="[object Number]",Na="[object Object]",Km="[object RegExp]",Jm="[object Set]",Ym="[object String]",Wm="[object Symbol]",Gm="[object WeakMap]",Zm="[object ArrayBuffer]",Qm="[object DataView]",Xm="[object Float32Array]",t1="[object Float64Array]",e1="[object Int8Array]",r1="[object Int16Array]",n1="[object Int32Array]",i1="[object Uint8Array]",s1="[object Uint8ClampedArray]",o1="[object Uint16Array]",a1="[object Uint32Array]",Q={};Q[ka]=Q[Fm]=Q[Zm]=Q[Qm]=Q[Lm]=Q[Vm]=Q[Xm]=Q[t1]=Q[e1]=Q[r1]=Q[n1]=Q[zm]=Q[qm]=Q[Na]=Q[Km]=Q[Jm]=Q[Ym]=Q[Wm]=Q[i1]=Q[s1]=Q[o1]=Q[a1]=!0,Q[Hm]=Q[Ba]=Q[Gm]=!1;function Sr(e,t,r,n,i,s){var o,a=t&Mm;if(o!==void 0)return o;if(!ot(e))return e;var l=ht(e);if(l)o=im(e);else{var c=Ye(e),u=c==Ba||c==Um;if(xe(e))return Da(e,a);if(c==Na||c==ka||u&&!i)o=u?{}:Ca(e);else{if(!Q[c])return i?e:{};o=jm(e,c,a)}}s||(s=new Ot);var h=s.get(e);if(h)return h;s.set(e,o),Im(e)?e.forEach(function(d){o.add(Sr(d,t,r,d,e,s))}):Cm(e)&&e.forEach(function(d,m){o.set(m,Sr(d,t,r,m,e,s))});var f=Fn,p=l?void 0:f(e);return _h(p||e,function(d,m){p&&(m=d,d=e[m]),bi(o,m,Sr(d,t,r,m,e,s))}),o}var c1=1,u1=4;function Ri(e){return Sr(e,c1|u1)}var l1="__lodash_hash_undefined__";function h1(e){return this.__data__.set(e,l1),this}function f1(e){return this.__data__.has(e)}function xr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Nt;++t<r;)this.add(e[t])}xr.prototype.add=xr.prototype.push=h1,xr.prototype.has=f1;function p1(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 d1(e,t){return e.has(t)}var m1=1,g1=2;function Ia(e,t,r,n,i,s){var o=r&m1,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var h=-1,f=!0,p=r&g1?new xr: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(!p1(t,function(S,v){if(!d1(p,v)&&(d===S||i(d,S,r,n,s)))return p.push(v)})){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 v1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function y1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var b1=1,_1=2,w1="[object Boolean]",E1="[object Date]",S1="[object Error]",x1="[object Map]",T1="[object Number]",O1="[object RegExp]",A1="[object Set]",$1="[object String]",j1="[object Symbol]",R1="[object ArrayBuffer]",D1="[object DataView]",Js=Rt?Rt.prototype:void 0,vn=Js?Js.valueOf:void 0;function P1(e,t,r,n,i,s,o){switch(r){case D1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R1:return!(e.byteLength!=t.byteLength||!s(new Ir(e),new Ir(t)));case w1:case E1:case T1:return Re(+e,+t);case S1:return e.name==t.name&&e.message==t.message;case O1:case $1:return e==t+"";case x1:var a=v1;case A1:var l=n&b1;if(a||(a=y1),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=_1,o.set(e,t);var u=Ia(a(e),a(t),n,i,s,o);return o.delete(e),u;case j1:if(vn)return vn.call(e)==vn.call(t)}return!1}var C1=1,k1=Object.prototype,B1=k1.hasOwnProperty;function N1(e,t,r,n,i,s){var o=r&C1,a=Fn(e),l=a.length,c=Fn(t),u=c.length;if(l!=u&&!o)return!1;for(var h=l;h--;){var f=a[h];if(!(o?f in t:B1.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<l;){f=a[h];var S=e[f],v=t[f];if(n)var y=o?n(v,S,f,t,e,s):n(S,v,f,e,t,s);if(!(y===void 0?S===v||i(S,v,r,n,s):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var _=e.constructor,E=t.constructor;_!=E&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof E=="function"&&E instanceof E)&&(m=!1)}return s.delete(e),s.delete(t),m}var I1=1,Ys="[object Arguments]",Ws="[object Array]",hr="[object Object]",M1=Object.prototype,Gs=M1.hasOwnProperty;function F1(e,t,r,n,i,s){var o=ht(e),a=ht(t),l=o?Ws:Ye(e),c=a?Ws:Ye(t);l=l==Ys?hr:l,c=c==Ys?hr:c;var u=l==hr,h=c==hr,f=l==c;if(f&&xe(e)){if(!xe(t))return!1;o=!0,u=!1}if(f&&!u)return s||(s=new Ot),o||Ei(e)?Ia(e,t,r,n,i,s):P1(e,t,l,r,n,i,s);if(!(r&I1)){var p=u&&Gs.call(e,"__wrapped__"),d=h&&Gs.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),N1(e,t,r,n,i,s)):!1}function Qr(e,t,r,n,i){return e===t?!0:e==null||t==null||!st(e)&&!st(t)?e!==e&&t!==t:F1(e,t,r,n,Qr,i)}var L1=1,V1=2;function H1(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],l=e[a],c=o[1];if(o[2]){if(l===void 0&&!(a in e))return!1}else{var u=new Ot,h;if(!(h===void 0?Qr(c,l,L1|V1,n,u):h))return!1}}return!0}function Ma(e){return e===e&&!ot(e)}function U1(e){for(var t=Yr(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ma(i)]}return t}function Fa(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function z1(e){var t=U1(e);return t.length==1&&t[0][2]?Fa(t[0][0],t[0][1]):function(r){return r===e||H1(r,e,t)}}function q1(e,t){return e!=null&&t in Object(e)}function K1(e,t,r){t=Oi(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=nr(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&&_i(i)&&Kr(o,i)&&(ht(e)||Nr(e)))}function J1(e,t){return e!=null&&K1(e,t,q1)}var Y1=1,W1=2;function G1(e,t){return xi(e)&&Ma(t)?Fa(nr(e),t):function(r){var n=ia(r,e);return n===void 0&&n===t?J1(r,e):Qr(t,n,Y1|W1)}}function Z1(e){return function(t){return t==null?void 0:t[e]}}function Q1(e){return function(t){return na(t,e)}}function X1(e){return xi(e)?Z1(nr(e)):Q1(e)}function tg(e){return typeof e=="function"?e:e==null?yi:typeof e=="object"?ht(e)?G1(e[0],e[1]):z1(e):X1(e)}function eg(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 rg(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var l=o[++i];if(r(s[l],l,s)===!1)break}return t}}var ng=rg();const La=ng;function ig(e,t){return e&&La(e,t,Yr)}function sg(e,t){return function(r,n){if(r==null)return r;if(!er(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 og=sg(ig);const ag=og;function cg(e,t,r,n){return ag(e,function(i,s,o){t(n,i,r(i),o)}),n}function ug(e,t){return function(r,n){var i=ht(r)?eg:cg,s={};return i(r,e,tg(n),s)}}var lg=function(){return At.Date.now()};const yn=lg;var hg="Expected a function",fg=Math.max,pg=Math.min;function Di(e,t,r){var n,i,s,o,a,l,c=0,u=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(hg);t=ws(t)||0,ot(r)&&(u=!!r.leading,h="maxWait"in r,s=h?fg(ws(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(g){var x=n,O=i;return n=i=void 0,c=g,o=e.apply(O,x),o}function d(g){return c=g,a=setTimeout(S,t),u?p(g):o}function m(g){var x=g-l,O=g-c,H=t-x;return h?pg(H,s-O):H}function b(g){var x=g-l,O=g-c;return l===void 0||x>=t||x<0||h&&O>=s}function S(){var g=yn();if(b(g))return v(g);a=setTimeout(S,m(g))}function v(g){return a=void 0,f&&n?p(g):(n=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,n=l=i=a=void 0}function _(){return a===void 0?o:v(yn())}function E(){var g=yn(),x=b(g);if(n=arguments,i=this,l=g,x){if(a===void 0)return d(l);if(h)return clearTimeout(a),a=setTimeout(S,t),p(l)}return a===void 0&&(a=setTimeout(S,t)),o}return E.cancel=y,E.flush=_,E}function Un(e,t,r){(r!==void 0&&!Re(e[t],r)||r===void 0&&!(t in e))&&Jr(e,t,r)}function dg(e){return st(e)&&er(e)}function zn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function mg(e){return Yo(e,Si(e))}function gg(e,t,r,n,i,s,o){var a=zn(e,r),l=zn(t,r),c=o.get(l);if(c){Un(e,r,c);return}var u=s?s(a,l,r+"",e,t,o):void 0,h=u===void 0;if(h){var f=ht(l),p=!f&&xe(l),d=!f&&!p&&Ei(l);u=l,f||p||d?ht(a)?u=a:dg(a)?u=uh(a):p?(h=!1,u=Da(l,!0)):d?(h=!1,u=Pa(l,!0)):u=[]:Ai(l)||Nr(l)?(u=a,Nr(a)?u=mg(a):(!ot(a)||ne(a))&&(u=Ca(l))):h=!1}h&&(o.set(l,u),i(u,l,n,s,o),o.delete(l)),Un(e,r,u)}function Va(e,t,r,n,i){e!==t&&La(t,function(s,o){if(i||(i=new Ot),ot(s))gg(e,t,o,r,Va,n,i);else{var a=n?n(zn(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),Un(e,o,a)}},Si)}var vg={"&":"&","<":"<",">":">",'"':""","'":"'"},yg=ga(vg);const bg=yg;var Ha=/[&<>"']/g,_g=RegExp(Ha.source);function wg(e){return e=oe(e),e&&_g.test(e)?e.replace(Ha,bg):e}var Eg=Object.prototype,Sg=Eg.hasOwnProperty,xg=ug(function(e,t,r){Sg.call(e,r)?e[r].push(t):Jr(e,r,[t])});const Ua=xg;var Tg="[object String]";function gt(e){return typeof e=="string"||!ht(e)&&st(e)&&vt(e)==Tg}function Og(e,t){return qo(t,function(r){return e[r]})}var Ag="[object ArrayBuffer]";function $g(e){return st(e)&&vt(e)==Ag}var Zs=Dt&&Dt.isArrayBuffer,jg=Zs?rr(Zs):$g;const Rg=jg;var Dg="[object Boolean]";function Pg(e){return e===!0||e===!1||st(e)&&vt(e)==Dg}var Cg="[object Date]";function kg(e){return st(e)&&vt(e)==Cg}var Qs=Dt&&Dt.isDate,Bg=Qs?rr(Qs):kg;const Ng=Bg;function Ig(e,t){return Qr(e,t)}var Mg="[object Number]";function za(e){return typeof e=="number"||st(e)&&vt(e)==Mg}function Fg(e){return za(e)&&e!=+e}function Lg(e){return e===null}function Vg(e){return e===void 0}var Hg=$i(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const Ug=Hg;var zg=ma("toLowerCase");const qg=zg;var Kg=Zo(function(e,t,r){Va(e,t,r)});const $t=Kg;function Jg(e,t,r,n){if(!ot(e))return e;t=Oi(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var l=nr(t[i]),c=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=a[l];c=void 0,c===void 0&&(c=ot(u)?u:Kr(t[i+1])?[]:{})}bi(a,l,c),a=a[l]}return e}function Yg(e,t,r){return e==null?e:Jg(e,t,r)}var Wg=$i(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const Gg=Wg;var qa=Object.prototype,Zg=qa.hasOwnProperty;function Xs(e,t,r,n){return e===void 0||Re(e,qa[r])&&!Zg.call(n,r)?t:e}var Qg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Xg(e){return"\\"+Qg[e]}var t0=/<%=([\s\S]+?)%>/g;const Ka=t0;var e0=/<%-([\s\S]+?)%>/g;const r0=e0;var n0=/<%([\s\S]+?)%>/g;const i0=n0;var s0={escape:r0,evaluate:i0,interpolate:Ka,variable:"",imports:{_:{escape:wg}}};const to=s0;var o0="Invalid `variable` option passed into `_.template`",a0=/\b__p \+= '';/g,c0=/\b(__p \+=) '' \+/g,u0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,l0=/[()=,{}\[\]\/\s]/,h0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fr=/($^)/,f0=/['\n\r\u2028\u2029\\]/g,p0=Object.prototype,eo=p0.hasOwnProperty;function Ja(e,t,r){var n=to.imports._.templateSettings||to;r&&Go(e,t,r)&&(t=void 0),e=oe(e),t=js({},t,n,Xs);var i=js({},t.imports,n.imports,Xs),s=Yr(i),o=Og(i,s),a,l,c=0,u=t.interpolate||fr,h="__p += '",f=RegExp((t.escape||fr).source+"|"+u.source+"|"+(u===Ka?h0:fr).source+"|"+(t.evaluate||fr).source+"|$","g"),p=eo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mockjs-DFJTfpjR.js","./dayjs-rQ6ln_M2.js","./index-gtXpk05i.js","./vue-router-C-68InZW.js","./vue-DI4W0LUF.js","./element-plus-B_LLMM3p.js","./lodash-es-D4Nl9glD.js","./@vueuse-BzvDXRHg.js","./@element-plus-icons-vue-Crkbd7Hx.js","./shared-BYVUls-N.js","./element-plus-scCP8u-T.css","./vxe-BEssLdlR.js","./vxe-BAb1d5vW.css","./extension-CVlw6qch.js","./monaco-editor-Ckv89Lpe.js","./monaco-editor-CO43Fv42.css","./html2canvas-CIV5arX1.js","./extension-DeQdBkZY.css","./_plugin-vue_export-helper-DlAUqK2U.js","./index-5Ec-5ScM.css","./preview-B63t6Y6O.js","./auth-D4ocmmGv.js","./auth-uyRSZatW.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Zu=Object.defineProperty,Qu=Object.defineProperties;var Xu=Object.getOwnPropertyDescriptors;var lr=Object.getOwnPropertySymbols;var fs=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable;var fn=(e,t,r)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K=(e,t)=>{for(var r in t||(t={}))fs.call(t,r)&&fn(e,r,t[r]);if(lr)for(var r of lr(t))ps.call(t,r)&&fn(e,r,t[r]);return e},gt=(e,t)=>Qu(e,Xu(t));var pn=(e,t)=>{var r={};for(var n in e)fs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&lr)for(var n of lr(e))t.indexOf(n)<0&&ps.call(e,n)&&(r[n]=e[n]);return r};var j=(e,t,r)=>fn(e,typeof t!="symbol"?t+"":t,r);var V=(e,t,r)=>new Promise((n,i)=>{var s=l=>{try{a(r.next(l))}catch(c){i(c)}},o=l=>{try{a(r.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(e,t)).next())});import{aw as ds,ax as Ur,d as zr,I as Cn,G as Mo,f as Fo,o as kn,c as tl,a as ce,Y as dn,e as kr,w as el,m as rl,r as nl,j as il,E as sl,k as Lo,g as ol,b as al,u as Bn,h as Vo,i as cl,ai as ul,R as ms,S as gs,ay as ll,Z as hl,at as fl}from"./vue-DI4W0LUF.js";import{_ as Er}from"./monaco-editor-Ckv89Lpe.js";import{useRoute as Ho,createRouter as pl,createWebHashHistory as dl}from"./vue-router-C-68InZW.js";import{E as qr,a as ml,z as gl,b as vl}from"./element-plus-B_LLMM3p.js";import"./lodash-es-D4Nl9glD.js";import"./@vueuse-BzvDXRHg.js";import"./@element-plus-icons-vue-Crkbd7Hx.js";import"./shared-BYVUls-N.js";import"./dayjs-rQ6ln_M2.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 yl={ENV_TYPE:"live",NODE_ENV:"production"},bl=typeof global=="object"&&global&&global.Object===Object&&global;const Uo=bl;var _l=typeof self=="object"&&self&&self.Object===Object&&self,wl=Uo||_l||Function("return this")();const At=wl;var El=At.Symbol;const Rt=El;var zo=Object.prototype,Sl=zo.hasOwnProperty,xl=zo.toString,Be=Rt?Rt.toStringTag:void 0;function Tl(e){var t=Sl.call(e,Be),r=e[Be];try{e[Be]=void 0;var n=!0}catch(s){}var i=xl.call(e);return n&&(t?e[Be]=r:delete e[Be]),i}var Ol=Object.prototype,Al=Ol.toString;function $l(e){return Al.call(e)}var jl="[object Null]",Rl="[object Undefined]",vs=Rt?Rt.toStringTag:void 0;function yt(e){return e==null?e===void 0?Rl:jl:vs&&vs in Object(e)?Tl(e):$l(e)}function st(e){return e!=null&&typeof e=="object"}var Dl="[object Symbol]";function tr(e){return typeof e=="symbol"||st(e)&&yt(e)==Dl}function qo(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 Pl=Array.isArray;const ht=Pl;var Cl=1/0,ys=Rt?Rt.prototype:void 0,bs=ys?ys.toString:void 0;function Ko(e){if(typeof e=="string")return e;if(ht(e))return qo(e,Ko)+"";if(tr(e))return bs?bs.call(e):"";var t=e+"";return t=="0"&&1/e==-Cl?"-0":t}var kl=/\s/;function Bl(e){for(var t=e.length;t--&&kl.test(e.charAt(t)););return t}var Nl=/^\s+/;function Il(e){return e&&e.slice(0,Bl(e)+1).replace(Nl,"")}function ot(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _s=NaN,Ml=/^[-+]0x[0-9a-f]+$/i,Fl=/^0b[01]+$/i,Ll=/^0o[0-7]+$/i,Vl=parseInt;function ws(e){if(typeof e=="number")return e;if(tr(e))return _s;if(ot(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ot(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Il(e);var r=Fl.test(e);return r||Ll.test(e)?Vl(e.slice(2),r?2:8):Ml.test(e)?_s:+e}function yi(e){return e}var Hl="[object AsyncFunction]",Ul="[object Function]",zl="[object GeneratorFunction]",ql="[object Proxy]";function ne(e){if(!ot(e))return!1;var t=yt(e);return t==Ul||t==zl||t==Hl||t==ql}var Kl=At["__core-js_shared__"];const mn=Kl;var Es=function(){var e=/[^.]+$/.exec(mn&&mn.keys&&mn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Jl(e){return!!Es&&Es in e}var Yl=Function.prototype,Wl=Yl.toString;function ie(e){if(e!=null){try{return Wl.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Gl=/[\\^$.*+?()[\]{}|]/g,Zl=/^\[object .+?Constructor\]$/,Ql=Function.prototype,Xl=Object.prototype,th=Ql.toString,eh=Xl.hasOwnProperty,rh=RegExp("^"+th.call(eh).replace(Gl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nh(e){if(!ot(e)||Jl(e))return!1;var t=ne(e)?rh:Zl;return t.test(ie(e))}function ih(e,t){return e==null?void 0:e[t]}function se(e,t){var r=ih(e,t);return nh(r)?r:void 0}var sh=se(At,"WeakMap");const Nn=sh;var Ss=Object.create,oh=function(){function e(){}return function(t){if(!ot(t))return{};if(Ss)return Ss(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const ah=oh;function Jo(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 ch(){}function uh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var lh=800,hh=16,fh=Date.now;function ph(e){var t=0,r=0;return function(){var n=fh(),i=hh-(n-r);if(r=n,i>0){if(++t>=lh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function dh(e){return function(){return e}}var mh=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Br=mh;var gh=Br?function(e,t){return Br(e,"toString",{configurable:!0,enumerable:!1,value:dh(t),writable:!0})}:yi;const vh=gh;var yh=ph(vh);const bh=yh;function _h(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var wh=9007199254740991,Eh=/^(?:0|[1-9]\d*)$/;function Kr(e,t){var r=typeof e;return t=t!=null?t:wh,!!t&&(r=="number"||r!="symbol"&&Eh.test(e))&&e>-1&&e%1==0&&e<t}function Jr(e,t,r){t=="__proto__"&&Br?Br(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Re(e,t){return e===t||e!==e&&t!==t}var Sh=Object.prototype,xh=Sh.hasOwnProperty;function bi(e,t,r){var n=e[t];(!(xh.call(e,t)&&Re(n,r))||r===void 0&&!(t in e))&&Jr(e,t,r)}function Yo(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=n?n(r[a],e[a],a,r,e):void 0;l===void 0&&(l=e[a]),i?Jr(r,a,l):bi(r,a,l)}return r}var xs=Math.max;function Th(e,t,r){return t=xs(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=xs(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),Jo(e,this,a)}}function Wo(e,t){return bh(Th(e,t,yi),e+"")}var Oh=9007199254740991;function _i(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Oh}function er(e){return e!=null&&_i(e.length)&&!ne(e)}function Go(e,t,r){if(!ot(r))return!1;var n=typeof t;return(n=="number"?er(r)&&Kr(t,r.length):n=="string"&&t in r)?Re(r[t],e):!1}function Zo(e){return Wo(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&&Go(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 Ah=Object.prototype;function wi(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ah;return e===r}function $h(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var jh="[object Arguments]";function Ts(e){return st(e)&&yt(e)==jh}var Qo=Object.prototype,Rh=Qo.hasOwnProperty,Dh=Qo.propertyIsEnumerable,Ph=Ts(function(){return arguments}())?Ts:function(e){return st(e)&&Rh.call(e,"callee")&&!Dh.call(e,"callee")};const Nr=Ph;function Ch(){return!1}var Xo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Os=Xo&&typeof module=="object"&&module&&!module.nodeType&&module,kh=Os&&Os.exports===Xo,As=kh?At.Buffer:void 0,Bh=As?As.isBuffer:void 0,Nh=Bh||Ch;const xe=Nh;var Ih="[object Arguments]",Mh="[object Array]",Fh="[object Boolean]",Lh="[object Date]",Vh="[object Error]",Hh="[object Function]",Uh="[object Map]",zh="[object Number]",qh="[object Object]",Kh="[object RegExp]",Jh="[object Set]",Yh="[object String]",Wh="[object WeakMap]",Gh="[object ArrayBuffer]",Zh="[object DataView]",Qh="[object Float32Array]",Xh="[object Float64Array]",tf="[object Int8Array]",ef="[object Int16Array]",rf="[object Int32Array]",nf="[object Uint8Array]",sf="[object Uint8ClampedArray]",of="[object Uint16Array]",af="[object Uint32Array]",X={};X[Qh]=X[Xh]=X[tf]=X[ef]=X[rf]=X[nf]=X[sf]=X[of]=X[af]=!0,X[Ih]=X[Mh]=X[Gh]=X[Fh]=X[Zh]=X[Lh]=X[Vh]=X[Hh]=X[Uh]=X[zh]=X[qh]=X[Kh]=X[Jh]=X[Yh]=X[Wh]=!1;function cf(e){return st(e)&&_i(e.length)&&!!X[yt(e)]}function rr(e){return function(t){return e(t)}}var ta=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ue=ta&&typeof module=="object"&&module&&!module.nodeType&&module,uf=Ue&&Ue.exports===ta,gn=uf&&Uo.process,lf=function(){try{var e=Ue&&Ue.require&&Ue.require("util").types;return e||gn&&gn.binding&&gn.binding("util")}catch(t){}}();const Dt=lf;var $s=Dt&&Dt.isTypedArray,hf=$s?rr($s):cf;const Ei=hf;var ff=Object.prototype,pf=ff.hasOwnProperty;function ea(e,t){var r=ht(e),n=!r&&Nr(e),i=!r&&!n&&xe(e),s=!r&&!n&&!i&&Ei(e),o=r||n||i||s,a=o?$h(e.length,String):[],l=a.length;for(var c in e)(t||pf.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Kr(c,l)))&&a.push(c);return a}function ra(e,t){return function(r){return e(t(r))}}var df=ra(Object.keys,Object);const mf=df;var gf=Object.prototype,vf=gf.hasOwnProperty;function yf(e){if(!wi(e))return mf(e);var t=[];for(var r in Object(e))vf.call(e,r)&&r!="constructor"&&t.push(r);return t}function Yr(e){return er(e)?ea(e):yf(e)}function bf(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var _f=Object.prototype,wf=_f.hasOwnProperty;function Ef(e){if(!ot(e))return bf(e);var t=wi(e),r=[];for(var n in e)n=="constructor"&&(t||!wf.call(e,n))||r.push(n);return r}function Si(e){return er(e)?ea(e,!0):Ef(e)}var Sf=Zo(function(e,t,r,n){Yo(t,Si(t),e,n)});const js=Sf;var xf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tf=/^\w*$/;function xi(e,t){if(ht(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||tr(e)?!0:Tf.test(e)||!xf.test(e)||t!=null&&e in Object(t)}var Of=se(Object,"create");const Ke=Of;function Af(){this.__data__=Ke?Ke(null):{},this.size=0}function $f(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jf="__lodash_hash_undefined__",Rf=Object.prototype,Df=Rf.hasOwnProperty;function Pf(e){var t=this.__data__;if(Ke){var r=t[e];return r===jf?void 0:r}return Df.call(t,e)?t[e]:void 0}var Cf=Object.prototype,kf=Cf.hasOwnProperty;function Bf(e){var t=this.__data__;return Ke?t[e]!==void 0:kf.call(t,e)}var Nf="__lodash_hash_undefined__";function If(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ke&&t===void 0?Nf: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=Af,Xt.prototype.delete=$f,Xt.prototype.get=Pf,Xt.prototype.has=Bf,Xt.prototype.set=If;function Mf(){this.__data__=[],this.size=0}function Wr(e,t){for(var r=e.length;r--;)if(Re(e[r][0],t))return r;return-1}var Ff=Array.prototype,Lf=Ff.splice;function Vf(e){var t=this.__data__,r=Wr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Lf.call(t,r,1),--this.size,!0}function Hf(e){var t=this.__data__,r=Wr(t,e);return r<0?void 0:t[r][1]}function Uf(e){return Wr(this.__data__,e)>-1}function zf(e,t){var r=this.__data__,n=Wr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Bt(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])}}Bt.prototype.clear=Mf,Bt.prototype.delete=Vf,Bt.prototype.get=Hf,Bt.prototype.has=Uf,Bt.prototype.set=zf;var qf=se(At,"Map");const Je=qf;function Kf(){this.size=0,this.__data__={hash:new Xt,map:new(Je||Bt),string:new Xt}}function Jf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Gr(e,t){var r=e.__data__;return Jf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Yf(e){var t=Gr(this,e).delete(e);return this.size-=t?1:0,t}function Wf(e){return Gr(this,e).get(e)}function Gf(e){return Gr(this,e).has(e)}function Zf(e,t){var r=Gr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Nt(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])}}Nt.prototype.clear=Kf,Nt.prototype.delete=Yf,Nt.prototype.get=Wf,Nt.prototype.has=Gf,Nt.prototype.set=Zf;var Qf="Expected a function";function Ti(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Qf);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(Ti.Cache||Nt),r}Ti.Cache=Nt;var Xf=500;function tp(e){var t=Ti(e,function(n){return r.size===Xf&&r.clear(),n}),r=t.cache;return t}var ep=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rp=/\\(\\)?/g,np=tp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ep,function(r,n,i,s){t.push(i?s.replace(rp,"$1"):n||r)}),t});const ip=np;function oe(e){return e==null?"":Ko(e)}function Oi(e,t){return ht(e)?e:xi(e,t)?[e]:ip(oe(e))}var sp=1/0;function nr(e){if(typeof e=="string"||tr(e))return e;var t=e+"";return t=="0"&&1/e==-sp?"-0":t}function na(e,t){t=Oi(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[nr(t[r++])];return r&&r==n?e:void 0}function ia(e,t,r){var n=e==null?void 0:na(e,t);return n===void 0?r:n}function op(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ap=ra(Object.getPrototypeOf,Object);const sa=ap;var cp="[object Object]",up=Function.prototype,lp=Object.prototype,oa=up.toString,hp=lp.hasOwnProperty,fp=oa.call(Object);function Ai(e){if(!st(e)||yt(e)!=cp)return!1;var t=sa(e);if(t===null)return!0;var r=hp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&oa.call(r)==fp}var pp="[object DOMException]",dp="[object Error]";function aa(e){if(!st(e))return!1;var t=yt(e);return t==dp||t==pp||typeof e.message=="string"&&typeof e.name=="string"&&!Ai(e)}var mp=Wo(function(e,t){try{return Jo(e,void 0,t)}catch(r){return aa(r)?r:new Error(r)}});const gp=mp;function vp(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 yp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:vp(e,t,r)}var bp="\\ud800-\\udfff",_p="\\u0300-\\u036f",wp="\\ufe20-\\ufe2f",Ep="\\u20d0-\\u20ff",Sp=_p+wp+Ep,xp="\\ufe0e\\ufe0f",Tp="\\u200d",Op=RegExp("["+Tp+bp+Sp+xp+"]");function ca(e){return Op.test(e)}function Ap(e){return e.split("")}var ua="\\ud800-\\udfff",$p="\\u0300-\\u036f",jp="\\ufe20-\\ufe2f",Rp="\\u20d0-\\u20ff",Dp=$p+jp+Rp,Pp="\\ufe0e\\ufe0f",Cp="["+ua+"]",In="["+Dp+"]",Mn="\\ud83c[\\udffb-\\udfff]",kp="(?:"+In+"|"+Mn+")",la="[^"+ua+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",fa="[\\ud800-\\udbff][\\udc00-\\udfff]",Bp="\\u200d",pa=kp+"?",da="["+Pp+"]?",Np="(?:"+Bp+"(?:"+[la,ha,fa].join("|")+")"+da+pa+")*",Ip=da+pa+Np,Mp="(?:"+[la+In+"?",In,ha,fa,Cp].join("|")+")",Fp=RegExp(Mn+"(?="+Mn+")|"+Mp+Ip,"g");function Lp(e){return e.match(Fp)||[]}function Vp(e){return ca(e)?Lp(e):Ap(e)}function ma(e){return function(t){t=oe(t);var r=ca(t)?Vp(t):void 0,n=r?r[0]:t.charAt(0),i=r?yp(r,1).join(""):t.slice(1);return n[e]()+i}}var Hp=ma("toUpperCase");const Zr=Hp;function Up(e){return Zr(oe(e).toLowerCase())}function zp(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 ga(e){return function(t){return e==null?void 0:e[t]}}var qp={À:"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"},Kp=ga(qp);const Jp=Kp;var Yp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wp="\\u0300-\\u036f",Gp="\\ufe20-\\ufe2f",Zp="\\u20d0-\\u20ff",Qp=Wp+Gp+Zp,Xp="["+Qp+"]",td=RegExp(Xp,"g");function ed(e){return e=oe(e),e&&e.replace(Yp,Jp).replace(td,"")}var rd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function nd(e){return e.match(rd)||[]}var id=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function sd(e){return id.test(e)}var va="\\ud800-\\udfff",od="\\u0300-\\u036f",ad="\\ufe20-\\ufe2f",cd="\\u20d0-\\u20ff",ud=od+ad+cd,ya="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",ld="\\xac\\xb1\\xd7\\xf7",hd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fd="\\u2000-\\u206f",pd=" \\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",_a="A-Z\\xc0-\\xd6\\xd8-\\xde",dd="\\ufe0e\\ufe0f",wa=ld+hd+fd+pd,Ea="['’]",Rs="["+wa+"]",md="["+ud+"]",Sa="\\d+",gd="["+ya+"]",xa="["+ba+"]",Ta="[^"+va+wa+Sa+ya+ba+_a+"]",vd="\\ud83c[\\udffb-\\udfff]",yd="(?:"+md+"|"+vd+")",bd="[^"+va+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",Aa="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="["+_a+"]",_d="\\u200d",Ds="(?:"+xa+"|"+Ta+")",wd="(?:"+pe+"|"+Ta+")",Ps="(?:"+Ea+"(?:d|ll|m|re|s|t|ve))?",Cs="(?:"+Ea+"(?:D|LL|M|RE|S|T|VE))?",$a=yd+"?",ja="["+dd+"]?",Ed="(?:"+_d+"(?:"+[bd,Oa,Aa].join("|")+")"+ja+$a+")*",Sd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Td=ja+$a+Ed,Od="(?:"+[gd,Oa,Aa].join("|")+")"+Td,Ad=RegExp([pe+"?"+xa+"+"+Ps+"(?="+[Rs,pe,"$"].join("|")+")",wd+"+"+Cs+"(?="+[Rs,pe+Ds,"$"].join("|")+")",pe+"?"+Ds+"+"+Ps,pe+"+"+Cs,xd,Sd,Sa,Od].join("|"),"g");function $d(e){return e.match(Ad)||[]}function jd(e,t,r){return e=oe(e),t=t,t===void 0?sd(e)?$d(e):nd(e):e.match(t)||[]}var Rd="['’]",Dd=RegExp(Rd,"g");function $i(e){return function(t){return zp(jd(ed(t).replace(Dd,"")),e,"")}}var Pd=$i(function(e,t,r){return t=t.toLowerCase(),e+(r?Up(t):t)});const Vt=Pd;function Cd(){this.__data__=new Bt,this.size=0}function kd(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Bd(e){return this.__data__.get(e)}function Nd(e){return this.__data__.has(e)}var Id=200;function Md(e,t){var r=this.__data__;if(r instanceof Bt){var n=r.__data__;if(!Je||n.length<Id-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Nt(n)}return r.set(e,t),this.size=r.size,this}function Ot(e){var t=this.__data__=new Bt(e);this.size=t.size}Ot.prototype.clear=Cd,Ot.prototype.delete=kd,Ot.prototype.get=Bd,Ot.prototype.has=Nd,Ot.prototype.set=Md;var Ra=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ks=Ra&&typeof module=="object"&&module&&!module.nodeType&&module,Fd=ks&&ks.exports===Ra,Bs=Fd?At.Buffer:void 0,Ns=Bs?Bs.allocUnsafe:void 0;function Da(e,t){if(t)return e.slice();var r=e.length,n=Ns?Ns(r):new e.constructor(r);return e.copy(n),n}function Ld(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 Vd(){return[]}var Hd=Object.prototype,Ud=Hd.propertyIsEnumerable,Is=Object.getOwnPropertySymbols,zd=Is?function(e){return e==null?[]:(e=Object(e),Ld(Is(e),function(t){return Ud.call(e,t)}))}:Vd;const qd=zd;function Kd(e,t,r){var n=t(e);return ht(e)?n:op(n,r(e))}function Fn(e){return Kd(e,Yr,qd)}var Jd=se(At,"DataView");const Ln=Jd;var Yd=se(At,"Promise");const Vn=Yd;var Wd=se(At,"Set");const Hn=Wd;var Ms="[object Map]",Gd="[object Object]",Fs="[object Promise]",Ls="[object Set]",Vs="[object WeakMap]",Hs="[object DataView]",Zd=ie(Ln),Qd=ie(Je),Xd=ie(Vn),tm=ie(Hn),em=ie(Nn),Qt=yt;(Ln&&Qt(new Ln(new ArrayBuffer(1)))!=Hs||Je&&Qt(new Je)!=Ms||Vn&&Qt(Vn.resolve())!=Fs||Hn&&Qt(new Hn)!=Ls||Nn&&Qt(new Nn)!=Vs)&&(Qt=function(e){var t=yt(e),r=t==Gd?e.constructor:void 0,n=r?ie(r):"";if(n)switch(n){case Zd:return Hs;case Qd:return Ms;case Xd:return Fs;case tm:return Ls;case em:return Vs}return t});const Ye=Qt;var rm=Object.prototype,nm=rm.hasOwnProperty;function im(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&nm.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var sm=At.Uint8Array;const Ir=sm;function ji(e){var t=new e.constructor(e.byteLength);return new Ir(t).set(new Ir(e)),t}function om(e,t){var r=ji(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var am=/\w*$/;function cm(e){var t=new e.constructor(e.source,am.exec(e));return t.lastIndex=e.lastIndex,t}var Us=Rt?Rt.prototype:void 0,zs=Us?Us.valueOf:void 0;function um(e){return zs?Object(zs.call(e)):{}}function Pa(e,t){var r=t?ji(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var lm="[object Boolean]",hm="[object Date]",fm="[object Map]",pm="[object Number]",dm="[object RegExp]",mm="[object Set]",gm="[object String]",vm="[object Symbol]",ym="[object ArrayBuffer]",bm="[object DataView]",_m="[object Float32Array]",wm="[object Float64Array]",Em="[object Int8Array]",Sm="[object Int16Array]",xm="[object Int32Array]",Tm="[object Uint8Array]",Om="[object Uint8ClampedArray]",Am="[object Uint16Array]",$m="[object Uint32Array]";function jm(e,t,r){var n=e.constructor;switch(t){case ym:return ji(e);case lm:case hm:return new n(+e);case bm:return om(e);case _m:case wm:case Em:case Sm:case xm:case Tm:case Om:case Am:case $m:return Pa(e,r);case fm:return new n;case pm:case gm:return new n(e);case dm:return cm(e);case mm:return new n;case vm:return um(e)}}function Ca(e){return typeof e.constructor=="function"&&!wi(e)?ah(sa(e)):{}}var Rm="[object Map]";function Dm(e){return st(e)&&Ye(e)==Rm}var qs=Dt&&Dt.isMap,Pm=qs?rr(qs):Dm;const Cm=Pm;var km="[object Set]";function Bm(e){return st(e)&&Ye(e)==km}var Ks=Dt&&Dt.isSet,Nm=Ks?rr(Ks):Bm;const Im=Nm;var Mm=1,ka="[object Arguments]",Fm="[object Array]",Lm="[object Boolean]",Vm="[object Date]",Hm="[object Error]",Ba="[object Function]",Um="[object GeneratorFunction]",zm="[object Map]",qm="[object Number]",Na="[object Object]",Km="[object RegExp]",Jm="[object Set]",Ym="[object String]",Wm="[object Symbol]",Gm="[object WeakMap]",Zm="[object ArrayBuffer]",Qm="[object DataView]",Xm="[object Float32Array]",t1="[object Float64Array]",e1="[object Int8Array]",r1="[object Int16Array]",n1="[object Int32Array]",i1="[object Uint8Array]",s1="[object Uint8ClampedArray]",o1="[object Uint16Array]",a1="[object Uint32Array]",Q={};Q[ka]=Q[Fm]=Q[Zm]=Q[Qm]=Q[Lm]=Q[Vm]=Q[Xm]=Q[t1]=Q[e1]=Q[r1]=Q[n1]=Q[zm]=Q[qm]=Q[Na]=Q[Km]=Q[Jm]=Q[Ym]=Q[Wm]=Q[i1]=Q[s1]=Q[o1]=Q[a1]=!0,Q[Hm]=Q[Ba]=Q[Gm]=!1;function Sr(e,t,r,n,i,s){var o,a=t&Mm;if(o!==void 0)return o;if(!ot(e))return e;var l=ht(e);if(l)o=im(e);else{var c=Ye(e),u=c==Ba||c==Um;if(xe(e))return Da(e,a);if(c==Na||c==ka||u&&!i)o=u?{}:Ca(e);else{if(!Q[c])return i?e:{};o=jm(e,c,a)}}s||(s=new Ot);var h=s.get(e);if(h)return h;s.set(e,o),Im(e)?e.forEach(function(d){o.add(Sr(d,t,r,d,e,s))}):Cm(e)&&e.forEach(function(d,m){o.set(m,Sr(d,t,r,m,e,s))});var f=Fn,p=l?void 0:f(e);return _h(p||e,function(d,m){p&&(m=d,d=e[m]),bi(o,m,Sr(d,t,r,m,e,s))}),o}var c1=1,u1=4;function Ri(e){return Sr(e,c1|u1)}var l1="__lodash_hash_undefined__";function h1(e){return this.__data__.set(e,l1),this}function f1(e){return this.__data__.has(e)}function xr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Nt;++t<r;)this.add(e[t])}xr.prototype.add=xr.prototype.push=h1,xr.prototype.has=f1;function p1(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 d1(e,t){return e.has(t)}var m1=1,g1=2;function Ia(e,t,r,n,i,s){var o=r&m1,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var h=-1,f=!0,p=r&g1?new xr: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(!p1(t,function(S,v){if(!d1(p,v)&&(d===S||i(d,S,r,n,s)))return p.push(v)})){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 v1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function y1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var b1=1,_1=2,w1="[object Boolean]",E1="[object Date]",S1="[object Error]",x1="[object Map]",T1="[object Number]",O1="[object RegExp]",A1="[object Set]",$1="[object String]",j1="[object Symbol]",R1="[object ArrayBuffer]",D1="[object DataView]",Js=Rt?Rt.prototype:void 0,vn=Js?Js.valueOf:void 0;function P1(e,t,r,n,i,s,o){switch(r){case D1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R1:return!(e.byteLength!=t.byteLength||!s(new Ir(e),new Ir(t)));case w1:case E1:case T1:return Re(+e,+t);case S1:return e.name==t.name&&e.message==t.message;case O1:case $1:return e==t+"";case x1:var a=v1;case A1:var l=n&b1;if(a||(a=y1),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=_1,o.set(e,t);var u=Ia(a(e),a(t),n,i,s,o);return o.delete(e),u;case j1:if(vn)return vn.call(e)==vn.call(t)}return!1}var C1=1,k1=Object.prototype,B1=k1.hasOwnProperty;function N1(e,t,r,n,i,s){var o=r&C1,a=Fn(e),l=a.length,c=Fn(t),u=c.length;if(l!=u&&!o)return!1;for(var h=l;h--;){var f=a[h];if(!(o?f in t:B1.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<l;){f=a[h];var S=e[f],v=t[f];if(n)var y=o?n(v,S,f,t,e,s):n(S,v,f,e,t,s);if(!(y===void 0?S===v||i(S,v,r,n,s):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var _=e.constructor,E=t.constructor;_!=E&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof E=="function"&&E instanceof E)&&(m=!1)}return s.delete(e),s.delete(t),m}var I1=1,Ys="[object Arguments]",Ws="[object Array]",hr="[object Object]",M1=Object.prototype,Gs=M1.hasOwnProperty;function F1(e,t,r,n,i,s){var o=ht(e),a=ht(t),l=o?Ws:Ye(e),c=a?Ws:Ye(t);l=l==Ys?hr:l,c=c==Ys?hr:c;var u=l==hr,h=c==hr,f=l==c;if(f&&xe(e)){if(!xe(t))return!1;o=!0,u=!1}if(f&&!u)return s||(s=new Ot),o||Ei(e)?Ia(e,t,r,n,i,s):P1(e,t,l,r,n,i,s);if(!(r&I1)){var p=u&&Gs.call(e,"__wrapped__"),d=h&&Gs.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),N1(e,t,r,n,i,s)):!1}function Qr(e,t,r,n,i){return e===t?!0:e==null||t==null||!st(e)&&!st(t)?e!==e&&t!==t:F1(e,t,r,n,Qr,i)}var L1=1,V1=2;function H1(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],l=e[a],c=o[1];if(o[2]){if(l===void 0&&!(a in e))return!1}else{var u=new Ot,h;if(!(h===void 0?Qr(c,l,L1|V1,n,u):h))return!1}}return!0}function Ma(e){return e===e&&!ot(e)}function U1(e){for(var t=Yr(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ma(i)]}return t}function Fa(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function z1(e){var t=U1(e);return t.length==1&&t[0][2]?Fa(t[0][0],t[0][1]):function(r){return r===e||H1(r,e,t)}}function q1(e,t){return e!=null&&t in Object(e)}function K1(e,t,r){t=Oi(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=nr(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&&_i(i)&&Kr(o,i)&&(ht(e)||Nr(e)))}function J1(e,t){return e!=null&&K1(e,t,q1)}var Y1=1,W1=2;function G1(e,t){return xi(e)&&Ma(t)?Fa(nr(e),t):function(r){var n=ia(r,e);return n===void 0&&n===t?J1(r,e):Qr(t,n,Y1|W1)}}function Z1(e){return function(t){return t==null?void 0:t[e]}}function Q1(e){return function(t){return na(t,e)}}function X1(e){return xi(e)?Z1(nr(e)):Q1(e)}function tg(e){return typeof e=="function"?e:e==null?yi:typeof e=="object"?ht(e)?G1(e[0],e[1]):z1(e):X1(e)}function eg(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 rg(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var l=o[++i];if(r(s[l],l,s)===!1)break}return t}}var ng=rg();const La=ng;function ig(e,t){return e&&La(e,t,Yr)}function sg(e,t){return function(r,n){if(r==null)return r;if(!er(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 og=sg(ig);const ag=og;function cg(e,t,r,n){return ag(e,function(i,s,o){t(n,i,r(i),o)}),n}function ug(e,t){return function(r,n){var i=ht(r)?eg:cg,s={};return i(r,e,tg(n),s)}}var lg=function(){return At.Date.now()};const yn=lg;var hg="Expected a function",fg=Math.max,pg=Math.min;function Di(e,t,r){var n,i,s,o,a,l,c=0,u=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(hg);t=ws(t)||0,ot(r)&&(u=!!r.leading,h="maxWait"in r,s=h?fg(ws(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(g){var x=n,O=i;return n=i=void 0,c=g,o=e.apply(O,x),o}function d(g){return c=g,a=setTimeout(S,t),u?p(g):o}function m(g){var x=g-l,O=g-c,H=t-x;return h?pg(H,s-O):H}function b(g){var x=g-l,O=g-c;return l===void 0||x>=t||x<0||h&&O>=s}function S(){var g=yn();if(b(g))return v(g);a=setTimeout(S,m(g))}function v(g){return a=void 0,f&&n?p(g):(n=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,n=l=i=a=void 0}function _(){return a===void 0?o:v(yn())}function E(){var g=yn(),x=b(g);if(n=arguments,i=this,l=g,x){if(a===void 0)return d(l);if(h)return clearTimeout(a),a=setTimeout(S,t),p(l)}return a===void 0&&(a=setTimeout(S,t)),o}return E.cancel=y,E.flush=_,E}function Un(e,t,r){(r!==void 0&&!Re(e[t],r)||r===void 0&&!(t in e))&&Jr(e,t,r)}function dg(e){return st(e)&&er(e)}function zn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function mg(e){return Yo(e,Si(e))}function gg(e,t,r,n,i,s,o){var a=zn(e,r),l=zn(t,r),c=o.get(l);if(c){Un(e,r,c);return}var u=s?s(a,l,r+"",e,t,o):void 0,h=u===void 0;if(h){var f=ht(l),p=!f&&xe(l),d=!f&&!p&&Ei(l);u=l,f||p||d?ht(a)?u=a:dg(a)?u=uh(a):p?(h=!1,u=Da(l,!0)):d?(h=!1,u=Pa(l,!0)):u=[]:Ai(l)||Nr(l)?(u=a,Nr(a)?u=mg(a):(!ot(a)||ne(a))&&(u=Ca(l))):h=!1}h&&(o.set(l,u),i(u,l,n,s,o),o.delete(l)),Un(e,r,u)}function Va(e,t,r,n,i){e!==t&&La(t,function(s,o){if(i||(i=new Ot),ot(s))gg(e,t,o,r,Va,n,i);else{var a=n?n(zn(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),Un(e,o,a)}},Si)}var vg={"&":"&","<":"<",">":">",'"':""","'":"'"},yg=ga(vg);const bg=yg;var Ha=/[&<>"']/g,_g=RegExp(Ha.source);function wg(e){return e=oe(e),e&&_g.test(e)?e.replace(Ha,bg):e}var Eg=Object.prototype,Sg=Eg.hasOwnProperty,xg=ug(function(e,t,r){Sg.call(e,r)?e[r].push(t):Jr(e,r,[t])});const Ua=xg;var Tg="[object String]";function vt(e){return typeof e=="string"||!ht(e)&&st(e)&&yt(e)==Tg}function Og(e,t){return qo(t,function(r){return e[r]})}var Ag="[object ArrayBuffer]";function $g(e){return st(e)&&yt(e)==Ag}var Zs=Dt&&Dt.isArrayBuffer,jg=Zs?rr(Zs):$g;const Rg=jg;var Dg="[object Boolean]";function Pg(e){return e===!0||e===!1||st(e)&&yt(e)==Dg}var Cg="[object Date]";function kg(e){return st(e)&&yt(e)==Cg}var Qs=Dt&&Dt.isDate,Bg=Qs?rr(Qs):kg;const Ng=Bg;function Ig(e,t){return Qr(e,t)}var Mg="[object Number]";function za(e){return typeof e=="number"||st(e)&&yt(e)==Mg}function Fg(e){return za(e)&&e!=+e}function Lg(e){return e===null}function Vg(e){return e===void 0}var Hg=$i(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const Ug=Hg;var zg=ma("toLowerCase");const qg=zg;var Kg=Zo(function(e,t,r){Va(e,t,r)});const $t=Kg;function Jg(e,t,r,n){if(!ot(e))return e;t=Oi(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var l=nr(t[i]),c=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=a[l];c=void 0,c===void 0&&(c=ot(u)?u:Kr(t[i+1])?[]:{})}bi(a,l,c),a=a[l]}return e}function Yg(e,t,r){return e==null?e:Jg(e,t,r)}var Wg=$i(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const Gg=Wg;var qa=Object.prototype,Zg=qa.hasOwnProperty;function Xs(e,t,r,n){return e===void 0||Re(e,qa[r])&&!Zg.call(n,r)?t:e}var Qg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Xg(e){return"\\"+Qg[e]}var t0=/<%=([\s\S]+?)%>/g;const Ka=t0;var e0=/<%-([\s\S]+?)%>/g;const r0=e0;var n0=/<%([\s\S]+?)%>/g;const i0=n0;var s0={escape:r0,evaluate:i0,interpolate:Ka,variable:"",imports:{_:{escape:wg}}};const to=s0;var o0="Invalid `variable` option passed into `_.template`",a0=/\b__p \+= '';/g,c0=/\b(__p \+=) '' \+/g,u0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,l0=/[()=,{}\[\]\/\s]/,h0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fr=/($^)/,f0=/['\n\r\u2028\u2029\\]/g,p0=Object.prototype,eo=p0.hasOwnProperty;function Ja(e,t,r){var n=to.imports._.templateSettings||to;r&&Go(e,t,r)&&(t=void 0),e=oe(e),t=js({},t,n,Xs);var i=js({},t.imports,n.imports,Xs),s=Yr(i),o=Og(i,s),a,l,c=0,u=t.interpolate||fr,h="__p += '",f=RegExp((t.escape||fr).source+"|"+u.source+"|"+(u===Ka?h0:fr).source+"|"+(t.evaluate||fr).source+"|$","g"),p=eo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
3
|
`:"";e.replace(f,function(b,S,v,y,_,E){return v||(v=y),h+=e.slice(c,E).replace(f0,Xg),S&&(a=!0,h+=`' +
|
|
4
4
|
__e(`+S+`) +
|
|
5
5
|
'`),_&&(l=!0,h+=`';
|
|
@@ -23,7 +23,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
23
23
|
`}i&&(n=n-256);for(var l=new Me(n),c=t+1;c<r;++c)l.mulAdd(256,this.get(c));return a+l.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,o="("+s+` bit)
|
|
24
24
|
`,a="",l=t+1;l<r;++l){for(var c=this.get(l),u=l==r-1?i:0,h=7;h>=u;--h)a+=c>>h&1?"1":"0";if(a.length>n)return o+ye(a,n)}return o+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return ye(this.parseStringISO(t,r),n);var i=r-t,s="("+i+` byte)
|
|
25
25
|
`;n/=2,i>n&&(r=t+n);for(var o=t;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=sc),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new Me,o=0,a=t;a<r;++a){var l=this.get(a);if(s.mulAdd(128,l&127),o+=7,!(l&128)){if(i==="")if(s=s.simplify(),s instanceof Me)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-c*40)}else i+="."+s.toString();if(i.length>n)return ye(i,n);s=new Me,o=0}}return o>0&&(i+=".incomplete"),i},e}(),j0=function(){function e(t,r,n,i,s){if(!(i instanceof go))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return ye(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ye(this.stream.parseStringISO(r,r+n),t);case 30:return ye(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
|
|
26
|
-
`,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof bn?r=t:r=new bn(t,0);var n=new bn(r),i=new go(r),s=e.decodeLength(r),o=r.pos,a=o-n.pos,l=null,c=function(){var h=[];if(s!==null){for(var f=o+s;r.pos<f;)h[h.length]=e.decode(r);if(r.pos!=f)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=e.decode(r);if(p.tag.isEOC())break;h[h.length]=p}s=o-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return h};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(h){l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new e(n,a,s,i,l)},e}(),go=function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new Me;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Ht,R0=0xdeadbeefcafe,vo=(R0&16777215)==15715070,at=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D0=(1<<26)/at[at.length-1],J=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",a=this.t,l=this.DB-a*this.DB%r;if(a-- >0)for(l<this.DB&&(i=this[a]>>l)>0&&(s=!0,o=kt(i));a>=0;)l<r?(i=(this[a]&(1<<l)-1)<<r-l,i|=this[--a]>>(l+=this.DB-r)):(i=this[a]>>(l-=r)&n,l<=0&&(l+=this.DB,--a)),i>0&&(s=!0),s&&(o+=kt(i));return s?o:"0"},e.prototype.negate=function(){var t=Y();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+dr(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Y();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new yo(r):n=new bo(r),this.exp(t,n)},e.prototype.clone=function(){var t=Y();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=Y();return this.bitwiseTo(t,S0,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,pr,r),r},e.prototype.xor=function(t){var r=Y();return this.bitwiseTo(t,fo,r),r},e.prototype.andNot=function(t){var r=Y();return this.bitwiseTo(t,po,r),r},e.prototype.not=function(){for(var t=Y(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=Y();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=Y();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+x0(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=T0(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,pr)},e.prototype.clearBit=function(t){return this.changeBit(t,po)},e.prototype.flipBit=function(t){return this.changeBit(t,fo)},e.prototype.add=function(t){var r=Y();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=Y();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=Y();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=Y();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=Y();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=Y(),n=Y();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=Ut(1),o;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?o=new yo(r):r.isEven()?o=new C0(r):o=new bo(r);var a=[],l=3,c=i-1,u=(1<<i)-1;if(a[1]=o.convert(this),i>1){var h=Y();for(o.sqrTo(a[1],h);l<=u;)a[l]=Y(),o.mulTo(h,a[l-2],a[l]),l+=2}var f=t.t-1,p,d=!0,m=Y(),b;for(n=dr(t[f])-1;f>=0;){for(n>=c?p=t[f]>>n-c&u:(p=(t[f]&(1<<n+1)-1)<<c-n,f>0&&(p|=t[f-1]>>this.DB+n-c)),l=i;!(p&1);)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--f),d)a[p].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,m),o.sqrTo(m,s),l-=2;l>0?o.sqrTo(s,m):(b=s,s=m,m=b),o.mulTo(m,a[p],s)}for(;f>=0&&!(t[f]&1<<n);)o.sqrTo(s,m),b=s,s=m,m=b,--n<0&&(n=this.DB-1,--f)}return o.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=Ut(1),o=Ut(0),a=Ut(0),l=Ut(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(t,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(a,s),o.subTo(l,o)):(i.subTo(n,i),r&&a.subTo(s,a),l.subTo(o,l))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},e.prototype.pow=function(t){return this.exp(t,new P0)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=at[at.length-1]){for(r=0;r<at.length;++r)if(n[0]==at[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<at.length;){for(var i=at[r],s=r+1;s<at.length&&i<D0;)i*=at[s++];for(i=n.modInt(i);r<s;)if(i%at[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=n==8?+t[i]&255:wo(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,l=this.t-1;l>=0;--l)r[l+o+1]=this[l]>>i|a,a=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)r[l]=0;r[o]=a,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&o)<<s,r[a-n]=this[a]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Y());var o=Y(),a=this.s,l=t.s,c=this.DB-dr(i[i.t-1]);c>0?(i.lShiftTo(c,o),s.lShiftTo(c,n)):(i.copyTo(o),s.copyTo(n));var u=o.t,h=o[u-1];if(h!=0){var f=h*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),p=this.FV/f,d=(1<<this.F1)/f,m=1<<this.F2,b=n.t,S=b-u,v=r!=null?r:Y();for(o.dlShiftTo(S,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),e.ONE.dlShiftTo(u,v),v.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--S>=0;){var y=n[--b]==h?this.DM:Math.floor(n[b]*p+(n[b-1]+m)*d);if((n[b]+=o.am(0,y,n,S,0,u))<y)for(o.dlShiftTo(S,v),n.subTo(v,n);n[b]<--y;)n.subTo(v,n)}r!=null&&(n.drShiftTo(u,r),a!=l&&e.ZERO.subTo(r,r)),n.t=u,n.clamp(),c>0&&n.rShiftTo(c,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=Y(),i=Y(),s=r.convert(this),o=dr(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var a=n;n=i,i=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=Ut(n),s=Y(),o=Y(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,a=0,l=0;l<t.length;++l){var c=wo(t,l);if(c<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}a=r*a+c,++o>=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),pr,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>at.length&&(t=at.length);for(var s=Y(),o=0;o<t;++o){s.fromInt(at[Math.floor(Math.random()*at.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var l=1;l++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=Y();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){r(n);return}o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var l=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(l,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),pr,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],l=t&7;a.length=(t>>3)+1,r.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},e}(),P0=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e}(),yo=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),bo=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=Y();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(J.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),C0=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),J.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}();function Y(){return new J(null)}function tt(e,t){return new J(e,t)}var _o=typeof navigator<"u";_o&&vo&&navigator.appName=="Microsoft Internet Explorer"?(J.prototype.am=function(e,t,r,n,i,s){for(var o=t&32767,a=t>>15;--s>=0;){var l=this[e]&32767,c=this[e++]>>15,u=a*l+c*o;l=o*l+((u&32767)<<15)+r[n]+(i&1073741823),i=(l>>>30)+(u>>>15)+a*c+(i>>>30),r[n++]=l&1073741823}return i},Ht=30):_o&&vo&&navigator.appName!="Netscape"?(J.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=o&67108863}return i},Ht=26):(J.prototype.am=function(e,t,r,n,i,s){for(var o=t&16383,a=t>>14;--s>=0;){var l=this[e]&16383,c=this[e++]>>14,u=a*l+c*o;l=o*l+((u&16383)<<14)+r[n]+i,i=(l>>28)+(u>>14)+a*c,r[n++]=l&268435455}return i},Ht=28),J.prototype.DB=Ht,J.prototype.DM=(1<<Ht)-1,J.prototype.DV=1<<Ht;var _n=52;J.prototype.FV=Math.pow(2,_n),J.prototype.F1=_n-Ht,J.prototype.F2=2*Ht-_n;var Xr=[],Te,_t;for(Te=48,_t=0;_t<=9;++_t)Xr[Te++]=_t;for(Te=97,_t=10;_t<36;++_t)Xr[Te++]=_t;for(Te=65,_t=10;_t<36;++_t)Xr[Te++]=_t;function wo(e,t){var r=Xr[e.charCodeAt(t)];return r!=null?r:-1}function Ut(e){var t=Y();return t.fromInt(e),t}function dr(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}J.ZERO=Ut(0),J.ONE=Ut(1);var k0=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function B0(){return new k0}var oc=256,mr,qt=null,Tt;if(qt==null){qt=[],Tt=0;var gr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var wn=new Uint32Array(256);for(window.crypto.getRandomValues(wn),gr=0;gr<wn.length;++gr)qt[Tt++]=wn[gr]&255}var vr=0,yr=function(e){if(vr=vr||0,vr>=256||Tt>=oc){window.removeEventListener?window.removeEventListener("mousemove",yr,!1):window.detachEvent&&window.detachEvent("onmousemove",yr);return}try{var t=e.x+e.y;qt[Tt++]=t&255,vr+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",yr,!1):window.attachEvent&&window.attachEvent("onmousemove",yr))}function N0(){if(mr==null){for(mr=B0();Tt<oc;){var e=Math.floor(65536*Math.random());qt[Tt++]=e&255}for(mr.init(qt),Tt=0;Tt<qt.length;++Tt)qt[Tt]=0;Tt=0}return mr.next()}var Jn=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=N0()},e}();function I0(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+e;return tt(s,16)}function M0(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var s=new Jn,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new J(r)}var F0=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=tt(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=M0(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<r*2-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=tt(t,16),this.e=parseInt(r,16),this.d=tt(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,a,l){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=tt(t,16),this.e=parseInt(r,16),this.d=tt(n,16),this.p=tt(i,16),this.q=tt(s,16),this.dmp1=tt(o,16),this.dmq1=tt(a,16),this.coeff=tt(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Jn,i=t>>1;this.e=parseInt(r,16);for(var s=new J(r,16);;){for(;this.p=new J(t-i,1,n),!(this.p.subtract(J.ONE).gcd(s).compareTo(J.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new J(i,1,n),!(this.q.subtract(J.ONE).gcd(s).compareTo(J.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(J.ONE),l=this.q.subtract(J.ONE),c=a.multiply(l);if(c.gcd(s).compareTo(J.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=tt(t,16),n=this.doPrivate(r);return n==null?null:L0(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Jn,s=t>>1;this.e=parseInt(r,16);var o=new J(r,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var f=a.p;a.p=a.q,a.q=f}var p=a.p.subtract(J.ONE),d=a.q.subtract(J.ONE),m=p.multiply(d);m.gcd(o).compareTo(J.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(m),a.dmp1=a.d.mod(p),a.dmq1=a.d.mod(d),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(l,0)},u=function(){a.q=Y(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(J.ONE).gcda(o,function(f){f.compareTo(J.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},h=function(){a.p=Y(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(J.ONE).gcda(o,function(f){f.compareTo(J.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(l,0)},e.prototype.sign=function(t,r,n){var i=V0(n),s=i+r(t).toString(),o=I0(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var l=a.toString(16);return l.length&1?"0"+l:l},e.prototype.verify=function(t,r,n){var i=tt(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),a=H0(o);return a==n(t).toString()},e}();function L0(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var Tr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function V0(e){return Tr[e]||""}function H0(e){for(var t in Tr)if(Tr.hasOwnProperty(t)){var r=Tr[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
|
|
26
|
+
`,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof bn?r=t:r=new bn(t,0);var n=new bn(r),i=new go(r),s=e.decodeLength(r),o=r.pos,a=o-n.pos,l=null,c=function(){var h=[];if(s!==null){for(var f=o+s;r.pos<f;)h[h.length]=e.decode(r);if(r.pos!=f)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var p=e.decode(r);if(p.tag.isEOC())break;h[h.length]=p}s=o-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return h};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(h){l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new e(n,a,s,i,l)},e}(),go=function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new Me;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Ht,R0=0xdeadbeefcafe,vo=(R0&16777215)==15715070,at=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D0=(1<<26)/at[at.length-1],J=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",a=this.t,l=this.DB-a*this.DB%r;if(a-- >0)for(l<this.DB&&(i=this[a]>>l)>0&&(s=!0,o=kt(i));a>=0;)l<r?(i=(this[a]&(1<<l)-1)<<r-l,i|=this[--a]>>(l+=this.DB-r)):(i=this[a]>>(l-=r)&n,l<=0&&(l+=this.DB,--a)),i>0&&(s=!0),s&&(o+=kt(i));return s?o:"0"},e.prototype.negate=function(){var t=Y();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+dr(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Y();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new yo(r):n=new bo(r),this.exp(t,n)},e.prototype.clone=function(){var t=Y();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=Y();return this.bitwiseTo(t,S0,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,pr,r),r},e.prototype.xor=function(t){var r=Y();return this.bitwiseTo(t,fo,r),r},e.prototype.andNot=function(t){var r=Y();return this.bitwiseTo(t,po,r),r},e.prototype.not=function(){for(var t=Y(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=Y();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=Y();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+x0(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=T0(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,pr)},e.prototype.clearBit=function(t){return this.changeBit(t,po)},e.prototype.flipBit=function(t){return this.changeBit(t,fo)},e.prototype.add=function(t){var r=Y();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=Y();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=Y();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=Y();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=Y();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=Y(),n=Y();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=Ut(1),o;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?o=new yo(r):r.isEven()?o=new C0(r):o=new bo(r);var a=[],l=3,c=i-1,u=(1<<i)-1;if(a[1]=o.convert(this),i>1){var h=Y();for(o.sqrTo(a[1],h);l<=u;)a[l]=Y(),o.mulTo(h,a[l-2],a[l]),l+=2}var f=t.t-1,p,d=!0,m=Y(),b;for(n=dr(t[f])-1;f>=0;){for(n>=c?p=t[f]>>n-c&u:(p=(t[f]&(1<<n+1)-1)<<c-n,f>0&&(p|=t[f-1]>>this.DB+n-c)),l=i;!(p&1);)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--f),d)a[p].copyTo(s),d=!1;else{for(;l>1;)o.sqrTo(s,m),o.sqrTo(m,s),l-=2;l>0?o.sqrTo(s,m):(b=s,s=m,m=b),o.mulTo(m,a[p],s)}for(;f>=0&&!(t[f]&1<<n);)o.sqrTo(s,m),b=s,s=m,m=b,--n<0&&(n=this.DB-1,--f)}return o.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=Ut(1),o=Ut(0),a=Ut(0),l=Ut(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(t,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(a,s),o.subTo(l,o)):(i.subTo(n,i),r&&a.subTo(s,a),l.subTo(o,l))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},e.prototype.pow=function(t){return this.exp(t,new P0)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=at[at.length-1]){for(r=0;r<at.length;++r)if(n[0]==at[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<at.length;){for(var i=at[r],s=r+1;s<at.length&&i<D0;)i*=at[s++];for(i=n.modInt(i);r<s;)if(i%at[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=n==8?+t[i]&255:wo(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,l=this.t-1;l>=0;--l)r[l+o+1]=this[l]>>i|a,a=(this[l]&s)<<n;for(var l=o-1;l>=0;--l)r[l]=0;r[o]=a,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&o)<<s,r[a-n]=this[a]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Y());var o=Y(),a=this.s,l=t.s,c=this.DB-dr(i[i.t-1]);c>0?(i.lShiftTo(c,o),s.lShiftTo(c,n)):(i.copyTo(o),s.copyTo(n));var u=o.t,h=o[u-1];if(h!=0){var f=h*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),p=this.FV/f,d=(1<<this.F1)/f,m=1<<this.F2,b=n.t,S=b-u,v=r!=null?r:Y();for(o.dlShiftTo(S,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),e.ONE.dlShiftTo(u,v),v.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--S>=0;){var y=n[--b]==h?this.DM:Math.floor(n[b]*p+(n[b-1]+m)*d);if((n[b]+=o.am(0,y,n,S,0,u))<y)for(o.dlShiftTo(S,v),n.subTo(v,n);n[b]<--y;)n.subTo(v,n)}r!=null&&(n.drShiftTo(u,r),a!=l&&e.ZERO.subTo(r,r)),n.t=u,n.clamp(),c>0&&n.rShiftTo(c,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=Y(),i=Y(),s=r.convert(this),o=dr(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var a=n;n=i,i=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=Ut(n),s=Y(),o=Y(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,a=0,l=0;l<t.length;++l){var c=wo(t,l);if(c<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}a=r*a+c,++o>=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),pr,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>at.length&&(t=at.length);for(var s=Y(),o=0;o<t;++o){s.fromInt(at[Math.floor(Math.random()*at.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var l=1;l++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=Y();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){r(n);return}o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var l=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(l,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),pr,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],l=t&7;a.length=(t>>3)+1,r.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},e}(),P0=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e}(),yo=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),bo=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=Y();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(J.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),C0=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),J.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}();function Y(){return new J(null)}function tt(e,t){return new J(e,t)}var _o=typeof navigator<"u";_o&&vo&&navigator.appName=="Microsoft Internet Explorer"?(J.prototype.am=function(e,t,r,n,i,s){for(var o=t&32767,a=t>>15;--s>=0;){var l=this[e]&32767,c=this[e++]>>15,u=a*l+c*o;l=o*l+((u&32767)<<15)+r[n]+(i&1073741823),i=(l>>>30)+(u>>>15)+a*c+(i>>>30),r[n++]=l&1073741823}return i},Ht=30):_o&&vo&&navigator.appName!="Netscape"?(J.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=o&67108863}return i},Ht=26):(J.prototype.am=function(e,t,r,n,i,s){for(var o=t&16383,a=t>>14;--s>=0;){var l=this[e]&16383,c=this[e++]>>14,u=a*l+c*o;l=o*l+((u&16383)<<14)+r[n]+i,i=(l>>28)+(u>>14)+a*c,r[n++]=l&268435455}return i},Ht=28),J.prototype.DB=Ht,J.prototype.DM=(1<<Ht)-1,J.prototype.DV=1<<Ht;var _n=52;J.prototype.FV=Math.pow(2,_n),J.prototype.F1=_n-Ht,J.prototype.F2=2*Ht-_n;var Xr=[],Te,wt;for(Te=48,wt=0;wt<=9;++wt)Xr[Te++]=wt;for(Te=97,wt=10;wt<36;++wt)Xr[Te++]=wt;for(Te=65,wt=10;wt<36;++wt)Xr[Te++]=wt;function wo(e,t){var r=Xr[e.charCodeAt(t)];return r!=null?r:-1}function Ut(e){var t=Y();return t.fromInt(e),t}function dr(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}J.ZERO=Ut(0),J.ONE=Ut(1);var k0=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function B0(){return new k0}var oc=256,mr,qt=null,Tt;if(qt==null){qt=[],Tt=0;var gr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var wn=new Uint32Array(256);for(window.crypto.getRandomValues(wn),gr=0;gr<wn.length;++gr)qt[Tt++]=wn[gr]&255}var vr=0,yr=function(e){if(vr=vr||0,vr>=256||Tt>=oc){window.removeEventListener?window.removeEventListener("mousemove",yr,!1):window.detachEvent&&window.detachEvent("onmousemove",yr);return}try{var t=e.x+e.y;qt[Tt++]=t&255,vr+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",yr,!1):window.attachEvent&&window.attachEvent("onmousemove",yr))}function N0(){if(mr==null){for(mr=B0();Tt<oc;){var e=Math.floor(65536*Math.random());qt[Tt++]=e&255}for(mr.init(qt),Tt=0;Tt<qt.length;++Tt)qt[Tt]=0;Tt=0}return mr.next()}var Jn=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=N0()},e}();function I0(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+e;return tt(s,16)}function M0(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var s=new Jn,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new J(r)}var F0=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=tt(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=M0(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<r*2-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=tt(t,16),this.e=parseInt(r,16),this.d=tt(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,a,l){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=tt(t,16),this.e=parseInt(r,16),this.d=tt(n,16),this.p=tt(i,16),this.q=tt(s,16),this.dmp1=tt(o,16),this.dmq1=tt(a,16),this.coeff=tt(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Jn,i=t>>1;this.e=parseInt(r,16);for(var s=new J(r,16);;){for(;this.p=new J(t-i,1,n),!(this.p.subtract(J.ONE).gcd(s).compareTo(J.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new J(i,1,n),!(this.q.subtract(J.ONE).gcd(s).compareTo(J.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(J.ONE),l=this.q.subtract(J.ONE),c=a.multiply(l);if(c.gcd(s).compareTo(J.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=tt(t,16),n=this.doPrivate(r);return n==null?null:L0(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Jn,s=t>>1;this.e=parseInt(r,16);var o=new J(r,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var f=a.p;a.p=a.q,a.q=f}var p=a.p.subtract(J.ONE),d=a.q.subtract(J.ONE),m=p.multiply(d);m.gcd(o).compareTo(J.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(m),a.dmp1=a.d.mod(p),a.dmq1=a.d.mod(d),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(l,0)},u=function(){a.q=Y(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(J.ONE).gcda(o,function(f){f.compareTo(J.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},h=function(){a.p=Y(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(J.ONE).gcda(o,function(f){f.compareTo(J.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(l,0)},e.prototype.sign=function(t,r,n){var i=V0(n),s=i+r(t).toString(),o=I0(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var l=a.toString(16);return l.length&1?"0"+l:l},e.prototype.verify=function(t,r,n){var i=tt(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),a=H0(o);return a==n(t).toString()},e}();function L0(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var Tr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function V0(e){return Tr[e]||""}function H0(e){for(var t in Tr)if(Tr.hasOwnProperty(t)){var r=Tr[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
|
|
27
27
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
28
28
|
Code licensed under the BSD License:
|
|
29
29
|
http://developer.yahoo.com/yui/license.html
|
|
@@ -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()})(ut,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 l(c,u){this._input=c,this._value=u}return t=function(c){var u,h,f,p;if(t.isNumeral(c))u=c.value();else if(c===0||typeof c>"u")u=0;else if(c===null||r.isNaN(c))u=null;else if(typeof c=="string")if(a.zeroFormat&&c===a.zeroFormat)u=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)u=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,u=f(c)}else u=Number(c)||null;return new l(c,u)},t.version=n,t.isNumeral=function(c){return c instanceof l},t._=r={numberToFormat:function(c,u,h){var f=s[t.options.currentLocale],p=!1,d=!1,m=0,b="",S=1e12,v=1e9,y=1e6,_=1e3,E="",g=!1,x,O,H,w,T,F,C;if(c=c||0,O=Math.abs(c),t._.includes(u,"(")?(p=!0,u=u.replace(/[\(|\)]/g,"")):(t._.includes(u,"+")||t._.includes(u,"-"))&&(T=t._.includes(u,"+")?u.indexOf("+"):c<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),t._.includes(u,"a")&&(x=u.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(u," a")&&(b=" "),u=u.replace(new RegExp(b+"a[kmbt]?"),""),O>=S&&!x||x==="t"?(b+=f.abbreviations.trillion,c=c/S):O<S&&O>=v&&!x||x==="b"?(b+=f.abbreviations.billion,c=c/v):O<v&&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(u,"[.]")&&(d=!0,u=u.replace("[.]",".")),H=c.toString().split(".")[0],w=u.split(".")[1],F=u.indexOf(","),m=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),E=t._.toFixed(c,w[0].length+w[1].length,h,w[1].length)):E=t._.toFixed(c,w.length,h),H=E.split(".")[0],t._.includes(E,".")?E=f.delimiters.decimal+E.split(".")[1]:E="",d&&Number(E.slice(1))===0&&(E="")):H=t._.toFixed(c,0,h),b&&!x&&Number(H)>=1e3&&b!==f.abbreviations.trillion)switch(H=String(Number(H)/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(H,"-")&&(H=H.slice(1),g=!0),H.length<m)for(var I=m-H.length;I>0;I--)H="0"+H;return F>-1&&(H=H.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),u.indexOf(".")===0&&(H=""),C=H+E+(b||""),p?C=(p&&g?"(":"")+C+(p&&g?")":""):T>=0?C=T===0?(g?"-":"+")+C:C+(g?"-":"+"):g&&(C="-"+C),C},stringToNumber:function(c){var u=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,u.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(p in f)if(m=new RegExp("[^a-zA-Z]"+u.abbreviations[p]+"(?:\\)|(\\"+u.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,u){return c.indexOf(u)!==-1},insert:function(c,u,h){return c.slice(0,h)+u+c.slice(h)},reduce:function(c,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" 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=u(d,h[p],p,h));return d},multiplier:function(c){var u=c.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(u,h){var f=r.multiplier(h);return u>f?u:f},1)},toFixed:function(c,u,h,f){var p=c.toString().split("."),d=u-(f||0),m,b,S,v;return p.length===2?m=Math.min(Math.max(p[1].length,d),u):m=d,S=Math.pow(10,m),v=(h(c+"e+"+m)/S).toFixed(m),f>u-m&&(b=new RegExp("\\.?0{1,"+(f-(u-m))+"}$"),v=v.replace(b,"")),v}},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,u,h){if(u=u.toLowerCase(),this[c+"s"][u])throw new TypeError(u+" "+c+" already registered.");return this[c+"s"][u]=h,h},t.validate=function(c,u){var h,f,p,d,m,b,S,v;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{S=t.localeData(u)}catch(y){S=t.localeData(t.locale())}return p=S.currency.symbol,m=S.abbreviations,h=S.delimiters.decimal,S.delimiters.thousands==="."?f="\\.":f=S.delimiters.thousands,v=c.match(/^[^\d]+/),v!==null&&(c=c.substr(1),v[0]!==p)||(v=c.match(/[^\d]+$/),v!==null&&(c=c.slice(0,-1),v[0]!==m.thousand&&v[0]!==m.million&&v[0]!==m.billion&&v[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=l.prototype={clone:function(){return t(this)},format:function(c,u){var h=this._value,f=c||a.defaultFormat,p,d,m;if(u=u||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,u)}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 u=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f+Math.round(u*p)}return this._value=r.reduce([this._value,c],h,0)/u,this},subtract:function(c){var u=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f-Math.round(u*p)}return this._value=r.reduce([c],h,Math.round(this._value*u))/u,this},multiply:function(c){function u(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],u,1),this},divide:function(c){function u(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],u),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 u=c%10;return~~(c%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,u,h){var f=t._.includes(u," BPS")?" ":"",p;return c=c*1e4,u=u.replace(/\s?BPS/,""),p=t._.numberToFormat(c,u,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"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(u.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,S=t._.includes(d,"ib")?u:c,v=t._.includes(d," b")||t._.includes(d," ib")?" ":"",y,_,E;for(d=d.replace(/\s?i?b/,""),y=0;y<=S.suffixes.length;y++)if(_=Math.pow(S.base,y),E=Math.pow(S.base,y+1),p===null||p===0||p>=_&&p<E){v+=S.suffixes[y],_>0&&(p=p/_);break}return b=t._.numberToFormat(p,d,m),b+v},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,u.suffixes[m])){b=Math.pow(u.base,m);break}}d*=b||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,u,h){var f=t.locales[t.options.currentLocale],p={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(u=u.replace(/\s?\$\s?/,""),d=t._.numberToFormat(c,u,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,u,h){var f,p=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",d=p.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(d[0]),u,h),f+"e"+d[1]},unformat:function(c){var u=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(u[0]),f=Number(u[1]);f=t._.includes(c,"e-")?f*=-1:f;function p(d,m,b,S){var v=t._.correctionFactor(d,m),y=d*v*(m*v)/(v*v);return y}return t._.reduce([h,Math.pow(10,f)],p,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,u,h){var f=t.locales[t.options.currentLocale],p,d=t._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),d+=f.ordinal(c),p=t._.numberToFormat(c,u,h),p+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,u,h){var f=t._.includes(u," %")?" ":"",p;return t.options.scalePercentBy100&&(c=c*100),u=u.replace(/\s?\%/,""),p=t._.numberToFormat(c,u,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"%"),p=p.join("")):p=p+f+"%",p},unformat:function(c){var u=t._.stringToNumber(c);return t.options.scalePercentBy100?u*.01:u}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,u,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 u=c.split(":"),h=0;return u.length===3?(h=h+Number(u[0])*60*60,h=h+Number(u[1])*60,h=h+Number(u[2])):u.length===2&&(h=h+Number(u[0])*60,h=h+Number(u[1])),Number(h)}})}(),t})})(pc);var nv=pc.exports;const dc=De(nv);function iv(e,t="0.00"){return dc(e).format(t)}function sv(e,t=2,r){return(r?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var mc={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ut,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",c="day",u="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+)?$/,S=/\[([^\]]+)]|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,v={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"],B=I%100;return"["+I+(D[(B-20)%10]||D[B]||D[0])+"]"}},y=function(I,D,B){var U=String(I);return!U||U.length>=D?I:""+Array(D+1-U.length).join(B)+I},_={s:y,z:function(I){var D=-I.utcOffset(),B=Math.abs(D),U=Math.floor(B/60),L=B%60;return(D<=0?"+":"-")+y(U,2,"0")+":"+y(L,2,"0")},m:function I(D,B){if(D.date()<B.date())return-I(B,D);var U=12*(B.year()-D.year())+(B.month()-D.month()),L=D.clone().add(U,h),z=B-L<0,q=D.clone().add(U+(z?-1:1),h);return+(-(U+(B-L)/(z?L-q:q-L))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:h,y:p,w:u,d:c,D:d,h:l,m:a,s:o,ms:s,Q:f}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},E="en",g={};g[E]=v;var x="$isDayjsObject",O=function(I){return I instanceof F||!(!I||!I[x])},H=function I(D,B,U){var L;if(!D)return E;if(typeof D=="string"){var z=D.toLowerCase();g[z]&&(L=z),B&&(g[z]=B,L=z);var q=D.split("-");if(!L&&q.length>1)return I(q[0])}else{var $=D.name;g[$]=D,L=$}return!U&&L&&(E=L),L||!U&&E},w=function(I,D){if(O(I))return I.clone();var B=typeof D=="object"?D:{};return B.date=I,B.args=arguments,new F(B)},T=_;T.l=H,T.i=O,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var F=function(){function I(B){this.$L=H(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(B){this.$d=function(U){var L=U.date,z=U.utc;if(L===null)return new Date(NaN);if(T.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var q=L.match(b);if(q){var $=q[2]-1||0,P=(q[7]||"0").substring(0,3);return z?new Date(Date.UTC(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)):new Date(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)}}return new Date(L)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(B,U){var L=w(B);return this.startOf(U)<=L&&L<=this.endOf(U)},D.isAfter=function(B,U){return w(B)<this.startOf(U)},D.isBefore=function(B,U){return this.endOf(U)<w(B)},D.$g=function(B,U,L){return T.u(B)?this[U]:this.set(L,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,U){var L=this,z=!!T.u(U)||U,q=T.p(B),$=function(Gt,ft){var Ft=T.w(L.$u?Date.UTC(L.$y,ft,Gt):new Date(L.$y,ft,Gt),L);return z?Ft:Ft.endOf(c)},P=function(Gt,ft){return T.w(L.toDate()[Gt].apply(L.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(ft)),L)},k=this.$W,N=this.$M,yt=this.$D,ae="set"+(this.$u?"UTC":"");switch(q){case p:return z?$(1,0):$(31,11);case h:return z?$(1,N):$(0,N+1);case u:var Wt=this.$locale().weekStart||0,Ce=(k<Wt?k+7:k)-Wt;return $(z?yt-Ce:yt+(6-Ce),N);case c:case d:return P(ae+"Hours",0);case l:return P(ae+"Minutes",1);case a:return P(ae+"Seconds",2);case o:return P(ae+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,U){var L,z=T.p(B),q="set"+(this.$u?"UTC":""),$=(L={},L[c]=q+"Date",L[d]=q+"Date",L[h]=q+"Month",L[p]=q+"FullYear",L[l]=q+"Hours",L[a]=q+"Minutes",L[o]=q+"Seconds",L[s]=q+"Milliseconds",L)[z],P=z===c?this.$D+(U-this.$W):U;if(z===h||z===p){var k=this.clone().set(d,1);k.$d[$](P),k.init(),this.$d=k.set(d,Math.min(this.$D,k.daysInMonth())).$d}else $&&this.$d[$](P);return this.init(),this},D.set=function(B,U){return this.clone().$set(B,U)},D.get=function(B){return this[T.p(B)]()},D.add=function(B,U){var L,z=this;B=Number(B);var q=T.p(U),$=function(N){var yt=w(z);return T.w(yt.date(yt.date()+Math.round(N*B)),z)};if(q===h)return this.set(h,this.$M+B);if(q===p)return this.set(p,this.$y+B);if(q===c)return $(1);if(q===u)return $(7);var P=(L={},L[a]=n,L[l]=i,L[o]=r,L)[q]||1,k=this.$d.getTime()+B*P;return T.w(k,this)},D.subtract=function(B,U){return this.add(-1*B,U)},D.format=function(B){var U=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var z=B||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),$=this.$H,P=this.$m,k=this.$M,N=L.weekdays,yt=L.months,ae=L.meridiem,Wt=function(ft,Ft,ke,ur){return ft&&(ft[Ft]||ft(U,z))||ke[Ft].slice(0,ur)},Ce=function(ft){return T.s($%12||12,ft,"0")},Gt=ae||function(ft,Ft,ke){var ur=ft<12?"AM":"PM";return ke?ur.toLowerCase():ur};return z.replace(S,function(ft,Ft){return Ft||function(ke){switch(ke){case"YY":return String(U.$y).slice(-2);case"YYYY":return T.s(U.$y,4,"0");case"M":return k+1;case"MM":return T.s(k+1,2,"0");case"MMM":return Wt(L.monthsShort,k,yt,3);case"MMMM":return Wt(yt,k);case"D":return U.$D;case"DD":return T.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Wt(L.weekdaysMin,U.$W,N,2);case"ddd":return Wt(L.weekdaysShort,U.$W,N,3);case"dddd":return N[U.$W];case"H":return String($);case"HH":return T.s($,2,"0");case"h":return Ce(1);case"hh":return Ce(2);case"a":return Gt($,P,!0);case"A":return Gt($,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 q}return null}(ft)||q.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,U,L){var z,q=this,$=T.p(U),P=w(B),k=(P.utcOffset()-this.utcOffset())*n,N=this-P,yt=function(){return T.m(q,P)};switch($){case p:z=yt()/12;break;case h:z=yt();break;case f:z=yt()/3;break;case u:z=(N-k)/6048e5;break;case c:z=(N-k)/864e5;break;case l:z=N/i;break;case a:z=N/n;break;case o:z=N/r;break;default:z=N}return L?z:T.a(z)},D.daysInMonth=function(){return this.endOf(h).$D},D.$locale=function(){return g[this.$L]},D.locale=function(B,U){if(!B)return this.$L;var L=this.clone(),z=H(B,U,!0);return z&&(L.$L=z),L},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=F.prototype;return w.prototype=C,[["$ms",s],["$s",o],["$m",a],["$H",l],["$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,F,w),I.$i=!0),w},w.locale=H,w.isDayjs=O,w.unix=function(I){return w(1e3*I)},w.en=g[E],w.Ls=g,w.p={},w})})(mc);var gc=mc.exports;const ki=De(gc);var ov={exports:{}};(function(e,t){(function(r,n){e.exports=n(gc)})(ut,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 l=100*o+a;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(ov),ki.locale("zh-cn");function av(e,t="YYYY-MM-DD HH:mm:ss"){return ki(e).format(t)}const vc=e=>Object.prototype.toString.call(e),cv=e=>vc(e).slice(8,-1),uv=e=>typeof e<"u",lv=()=>Date.now(),yc=()=>+Date.now(),hv=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function dt(){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 be(e=0){return V(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function _c(e,t){return e.reduce((r,n)=>{const i=n[t];return r.set(i,n),r},new Map)}function tn(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function fv(e=[],t="key",r="value"){const n={};for(const i of e)n[i[t]]=i[r];return n}function pv(e={},t="key",r="value"){return Object.entries(e).map(([n,i])=>({[t]:n,[r]:i}))}function wc(e,t){if(t){const r=_c(e,t);return Array.from(r.values())}else return Array.from(new Set(e))}function Wn(e){return e?[].concat(e):[]}function dv(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function Or(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 Ec(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 Gn(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>Gn(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=Gn(n)}),e)}function Sc(e=[],t){return t?e.reduce((r,n)=>r+Number(n[t]),0):e.reduce((r,n)=>r+Number(n),0)}function mv(e=[],t){const r=Sc(e,t);return e.length?r/e.length:0}function gv(e,t=","){return e?e.split(t):[]}function vv(e,t=","){return e?e.join(t):""}function yv(e,t="id",r="parentId",n="children",i="null"){const s=Ua(e,r);for(const o of Object.values(s))o.forEach(a=>{a[n]=s[a[t]]||[]});return s[i]}function xc(e=[]){let t=[];return e.forEach(r=>{const s=r,{children:n}=s,i=pn(s,["children"]);r.children&&r.children.length>0&&(t=t.concat(xc(r.children))),t.push(i)}),t}var Zn={exports:{}};Zn.exports,function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,c){if(!s[l]){s[l]={};for(var u=0;u<l.length;u++)s[l][l.charAt(u)]=u}return s[l][c]}var a={compressToBase64:function(l){if(l==null)return"";var c=a._compress(l,6,function(u){return n.charAt(u)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:a._decompress(l.length,32,function(c){return o(n,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":a._compress(l,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:a._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=a.compress(l),u=new Uint8Array(c.length*2),h=0,f=c.length;h<f;h++){var p=c.charCodeAt(h);u[h*2]=p>>>8,u[h*2+1]=p%256}return u},decompressFromUint8Array:function(l){if(l==null)return a.decompress(l);for(var c=new Array(l.length/2),u=0,h=c.length;u<h;u++)c[u]=l[u*2]*256+l[u*2+1];var f=[];return c.forEach(function(p){f.push(r(p))}),a.decompress(f.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":a._compress(l,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),a._decompress(l.length,32,function(c){return o(i,l.charAt(c))}))},compress:function(l){return a._compress(l,16,function(c){return r(c)})},_compress:function(l,c,u){if(l==null)return"";var h,f,p={},d={},m="",b="",S="",v=2,y=3,_=2,E=[],g=0,x=0,O;for(O=0;O<l.length;O+=1)if(m=l.charAt(O),Object.prototype.hasOwnProperty.call(p,m)||(p[m]=y++,d[m]=!0),b=S+m,Object.prototype.hasOwnProperty.call(p,b))S=b;else{if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<_;h++)g=g<<1,x==c-1?(x=0,E.push(u(g)),g=0):x++;for(f=S.charCodeAt(0),h=0;h<8;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)g=g<<1|f,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=0;for(f=S.charCodeAt(0),h=0;h<16;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[S]}else for(f=p[S],h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,_),_++),p[b]=y++,S=String(m)}if(S!==""){if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<_;h++)g=g<<1,x==c-1?(x=0,E.push(u(g)),g=0):x++;for(f=S.charCodeAt(0),h=0;h<8;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)g=g<<1|f,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=0;for(f=S.charCodeAt(0),h=0;h<16;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[S]}else for(f=p[S],h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,_),_++)}for(f=2,h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1;for(;;)if(g=g<<1,x==c-1){E.push(u(g));break}else x++;return E.join("")},decompress:function(l){return l==null?"":l==""?null:a._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var h=[],f=4,p=4,d=3,m="",b=[],S,v,y,_,E,g,x,O={val:u(0),position:c,index:1};for(S=0;S<3;S+=1)h[S]=S;for(y=0,E=Math.pow(2,2),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;switch(y){case 0:for(y=0,E=Math.pow(2,8),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;x=r(y);break;case 1:for(y=0,E=Math.pow(2,16),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;x=r(y);break;case 2:return""}for(h[3]=x,v=x,b.push(x);;){if(O.index>l)return"";for(y=0,E=Math.pow(2,d),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;switch(x=y){case 0:for(y=0,E=Math.pow(2,8),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;h[p++]=r(y),x=p-1,f--;break;case 1:for(y=0,E=Math.pow(2,16),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=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=v+v.charAt(0);else return null;b.push(m),h[p++]=v+m.charAt(0),f--,v=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})}(Zn);var Tc=Zn.exports;function Oc(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 bv(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,l="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){l+=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));l+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Bi(e,t){t===void 0&&(t={});for(var r=bv(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(me(t.delimiter||"/#?"),"]+?"),o=[],a=0,l=0,c="",u=function(g){if(l<r.length&&r[l].type===g)return r[l++].value},h=function(g){var x=u(g);if(x!==void 0)return x;var O=r[l],H=O.type,w=O.index;throw new TypeError("Unexpected ".concat(H," at ").concat(w,", expected ").concat(g))},f=function(){for(var g="",x;x=u("CHAR")||u("ESCAPED_CHAR");)g+=x;return g};l<r.length;){var p=u("CHAR"),d=u("NAME"),m=u("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:u("MODIFIER")||""});continue}var S=p||u("ESCAPED_CHAR");if(S){c+=S;continue}c&&(o.push(c),c="");var v=u("OPEN");if(v){var b=f(),y=u("NAME")||"",_=u("PATTERN")||"",E=f();h("CLOSE"),o.push({name:y||(_?a++:""),pattern:y&&!_?s:_,prefix:b,suffix:E,modifier:u("MODIFIER")||""});continue}h("END")}return o}function Ac(e,t){return _v(Bi(e,t),t)}function _v(e,t){t===void 0&&(t={});var r=Ni(t),n=t.encode,i=n===void 0?function(l){return l}:n,s=t.validate,o=s===void 0?!0:s,a=e.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var c="",u=0;u<e.length;u++){var h=e[u];if(typeof h=="string"){c+=h;continue}var f=l?l[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[u].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[u].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 S=d?"an array":"a string";throw new TypeError('Expected "'.concat(h.name,'" to be ').concat(S))}}return c}}function $c(e,t){var r=[],n=en(e,r,t);return wv(n,r,t)}function wv(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],l=o.index,c=Object.create(null),u=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++)u(h);return{path:a,index:l,params:c}}}function me(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Ni(e){return e&&e.sensitive?"":"i"}function Ev(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 Sv(e,t,r){var n=e.map(function(i){return en(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Ni(r))}function xv(e,t,r){return Tv(Bi(e,r),t,r)}function Tv(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,l=a===void 0?!0:a,c=r.encode,u=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(me(d),"]|$"),b="[".concat(me(f),"]"),S=o?"^":"",v=0,y=e;v<y.length;v++){var _=y[v];if(typeof _=="string")S+=me(u(_));else{var E=me(u(_.prefix)),g=me(u(_.suffix));if(_.pattern)if(t&&t.push(_),E||g)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";S+="(?:".concat(E,"((?:").concat(_.pattern,")(?:").concat(g).concat(E,"(?:").concat(_.pattern,"))*)").concat(g,")").concat(x)}else S+="(?:".concat(E,"(").concat(_.pattern,")").concat(g,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?S+="((?:".concat(_.pattern,")").concat(_.modifier,")"):S+="(".concat(_.pattern,")").concat(_.modifier);else S+="(?:".concat(E).concat(g,")").concat(_.modifier)}}if(l)i||(S+="".concat(b,"?")),S+=r.endsWith?"(?=".concat(m,")"):"$";else{var O=e[e.length-1],H=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;i||(S+="(?:".concat(b,"(?=").concat(m,"))?")),H||(S+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(S,Ni(r))}function en(e,t,r){return e instanceof RegExp?Ev(e,t):Array.isArray(e)?Sv(e,t,r):xv(e,t,r)}const Ov=Tc.compress,Av=Tc.decompress;/**!
|
|
50
|
+
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ut,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 l(c,u){this._input=c,this._value=u}return t=function(c){var u,h,f,p;if(t.isNumeral(c))u=c.value();else if(c===0||typeof c>"u")u=0;else if(c===null||r.isNaN(c))u=null;else if(typeof c=="string")if(a.zeroFormat&&c===a.zeroFormat)u=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)u=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,u=f(c)}else u=Number(c)||null;return new l(c,u)},t.version=n,t.isNumeral=function(c){return c instanceof l},t._=r={numberToFormat:function(c,u,h){var f=s[t.options.currentLocale],p=!1,d=!1,m=0,b="",S=1e12,v=1e9,y=1e6,_=1e3,E="",g=!1,x,O,H,w,T,F,C;if(c=c||0,O=Math.abs(c),t._.includes(u,"(")?(p=!0,u=u.replace(/[\(|\)]/g,"")):(t._.includes(u,"+")||t._.includes(u,"-"))&&(T=t._.includes(u,"+")?u.indexOf("+"):c<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),t._.includes(u,"a")&&(x=u.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(u," a")&&(b=" "),u=u.replace(new RegExp(b+"a[kmbt]?"),""),O>=S&&!x||x==="t"?(b+=f.abbreviations.trillion,c=c/S):O<S&&O>=v&&!x||x==="b"?(b+=f.abbreviations.billion,c=c/v):O<v&&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(u,"[.]")&&(d=!0,u=u.replace("[.]",".")),H=c.toString().split(".")[0],w=u.split(".")[1],F=u.indexOf(","),m=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),E=t._.toFixed(c,w[0].length+w[1].length,h,w[1].length)):E=t._.toFixed(c,w.length,h),H=E.split(".")[0],t._.includes(E,".")?E=f.delimiters.decimal+E.split(".")[1]:E="",d&&Number(E.slice(1))===0&&(E="")):H=t._.toFixed(c,0,h),b&&!x&&Number(H)>=1e3&&b!==f.abbreviations.trillion)switch(H=String(Number(H)/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(H,"-")&&(H=H.slice(1),g=!0),H.length<m)for(var I=m-H.length;I>0;I--)H="0"+H;return F>-1&&(H=H.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),u.indexOf(".")===0&&(H=""),C=H+E+(b||""),p?C=(p&&g?"(":"")+C+(p&&g?")":""):T>=0?C=T===0?(g?"-":"+")+C:C+(g?"-":"+"):g&&(C="-"+C),C},stringToNumber:function(c){var u=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,u.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(p in f)if(m=new RegExp("[^a-zA-Z]"+u.abbreviations[p]+"(?:\\)|(\\"+u.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,u){return c.indexOf(u)!==-1},insert:function(c,u,h){return c.slice(0,h)+u+c.slice(h)},reduce:function(c,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" 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=u(d,h[p],p,h));return d},multiplier:function(c){var u=c.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(u,h){var f=r.multiplier(h);return u>f?u:f},1)},toFixed:function(c,u,h,f){var p=c.toString().split("."),d=u-(f||0),m,b,S,v;return p.length===2?m=Math.min(Math.max(p[1].length,d),u):m=d,S=Math.pow(10,m),v=(h(c+"e+"+m)/S).toFixed(m),f>u-m&&(b=new RegExp("\\.?0{1,"+(f-(u-m))+"}$"),v=v.replace(b,"")),v}},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,u,h){if(u=u.toLowerCase(),this[c+"s"][u])throw new TypeError(u+" "+c+" already registered.");return this[c+"s"][u]=h,h},t.validate=function(c,u){var h,f,p,d,m,b,S,v;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{S=t.localeData(u)}catch(y){S=t.localeData(t.locale())}return p=S.currency.symbol,m=S.abbreviations,h=S.delimiters.decimal,S.delimiters.thousands==="."?f="\\.":f=S.delimiters.thousands,v=c.match(/^[^\d]+/),v!==null&&(c=c.substr(1),v[0]!==p)||(v=c.match(/[^\d]+$/),v!==null&&(c=c.slice(0,-1),v[0]!==m.thousand&&v[0]!==m.million&&v[0]!==m.billion&&v[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=l.prototype={clone:function(){return t(this)},format:function(c,u){var h=this._value,f=c||a.defaultFormat,p,d,m;if(u=u||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,u)}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 u=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f+Math.round(u*p)}return this._value=r.reduce([this._value,c],h,0)/u,this},subtract:function(c){var u=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f-Math.round(u*p)}return this._value=r.reduce([c],h,Math.round(this._value*u))/u,this},multiply:function(c){function u(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],u,1),this},divide:function(c){function u(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],u),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 u=c%10;return~~(c%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,u,h){var f=t._.includes(u," BPS")?" ":"",p;return c=c*1e4,u=u.replace(/\s?BPS/,""),p=t._.numberToFormat(c,u,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"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(u.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,S=t._.includes(d,"ib")?u:c,v=t._.includes(d," b")||t._.includes(d," ib")?" ":"",y,_,E;for(d=d.replace(/\s?i?b/,""),y=0;y<=S.suffixes.length;y++)if(_=Math.pow(S.base,y),E=Math.pow(S.base,y+1),p===null||p===0||p>=_&&p<E){v+=S.suffixes[y],_>0&&(p=p/_);break}return b=t._.numberToFormat(p,d,m),b+v},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,u.suffixes[m])){b=Math.pow(u.base,m);break}}d*=b||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,u,h){var f=t.locales[t.options.currentLocale],p={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(u=u.replace(/\s?\$\s?/,""),d=t._.numberToFormat(c,u,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,u,h){var f,p=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",d=p.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(d[0]),u,h),f+"e"+d[1]},unformat:function(c){var u=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(u[0]),f=Number(u[1]);f=t._.includes(c,"e-")?f*=-1:f;function p(d,m,b,S){var v=t._.correctionFactor(d,m),y=d*v*(m*v)/(v*v);return y}return t._.reduce([h,Math.pow(10,f)],p,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,u,h){var f=t.locales[t.options.currentLocale],p,d=t._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),d+=f.ordinal(c),p=t._.numberToFormat(c,u,h),p+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,u,h){var f=t._.includes(u," %")?" ":"",p;return t.options.scalePercentBy100&&(c=c*100),u=u.replace(/\s?\%/,""),p=t._.numberToFormat(c,u,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"%"),p=p.join("")):p=p+f+"%",p},unformat:function(c){var u=t._.stringToNumber(c);return t.options.scalePercentBy100?u*.01:u}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,u,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 u=c.split(":"),h=0;return u.length===3?(h=h+Number(u[0])*60*60,h=h+Number(u[1])*60,h=h+Number(u[2])):u.length===2&&(h=h+Number(u[0])*60,h=h+Number(u[1])),Number(h)}})}(),t})})(pc);var nv=pc.exports;const dc=De(nv);function iv(e,t="0.00"){return dc(e).format(t)}function sv(e,t=2,r){return(r?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var mc={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ut,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",l="hour",c="day",u="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+)?$/,S=/\[([^\]]+)]|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,v={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"],B=I%100;return"["+I+(D[(B-20)%10]||D[B]||D[0])+"]"}},y=function(I,D,B){var U=String(I);return!U||U.length>=D?I:""+Array(D+1-U.length).join(B)+I},_={s:y,z:function(I){var D=-I.utcOffset(),B=Math.abs(D),U=Math.floor(B/60),L=B%60;return(D<=0?"+":"-")+y(U,2,"0")+":"+y(L,2,"0")},m:function I(D,B){if(D.date()<B.date())return-I(B,D);var U=12*(B.year()-D.year())+(B.month()-D.month()),L=D.clone().add(U,h),z=B-L<0,q=D.clone().add(U+(z?-1:1),h);return+(-(U+(B-L)/(z?L-q:q-L))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:h,y:p,w:u,d:c,D:d,h:l,m:a,s:o,ms:s,Q:f}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},E="en",g={};g[E]=v;var x="$isDayjsObject",O=function(I){return I instanceof F||!(!I||!I[x])},H=function I(D,B,U){var L;if(!D)return E;if(typeof D=="string"){var z=D.toLowerCase();g[z]&&(L=z),B&&(g[z]=B,L=z);var q=D.split("-");if(!L&&q.length>1)return I(q[0])}else{var $=D.name;g[$]=D,L=$}return!U&&L&&(E=L),L||!U&&E},w=function(I,D){if(O(I))return I.clone();var B=typeof D=="object"?D:{};return B.date=I,B.args=arguments,new F(B)},T=_;T.l=H,T.i=O,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var F=function(){function I(B){this.$L=H(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(B){this.$d=function(U){var L=U.date,z=U.utc;if(L===null)return new Date(NaN);if(T.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var q=L.match(b);if(q){var $=q[2]-1||0,P=(q[7]||"0").substring(0,3);return z?new Date(Date.UTC(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)):new Date(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)}}return new Date(L)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(B,U){var L=w(B);return this.startOf(U)<=L&&L<=this.endOf(U)},D.isAfter=function(B,U){return w(B)<this.startOf(U)},D.isBefore=function(B,U){return this.endOf(U)<w(B)},D.$g=function(B,U,L){return T.u(B)?this[U]:this.set(L,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,U){var L=this,z=!!T.u(U)||U,q=T.p(B),$=function(Gt,ft){var Ft=T.w(L.$u?Date.UTC(L.$y,ft,Gt):new Date(L.$y,ft,Gt),L);return z?Ft:Ft.endOf(c)},P=function(Gt,ft){return T.w(L.toDate()[Gt].apply(L.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(ft)),L)},k=this.$W,N=this.$M,bt=this.$D,ae="set"+(this.$u?"UTC":"");switch(q){case p:return z?$(1,0):$(31,11);case h:return z?$(1,N):$(0,N+1);case u:var Wt=this.$locale().weekStart||0,Ce=(k<Wt?k+7:k)-Wt;return $(z?bt-Ce:bt+(6-Ce),N);case c:case d:return P(ae+"Hours",0);case l:return P(ae+"Minutes",1);case a:return P(ae+"Seconds",2);case o:return P(ae+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,U){var L,z=T.p(B),q="set"+(this.$u?"UTC":""),$=(L={},L[c]=q+"Date",L[d]=q+"Date",L[h]=q+"Month",L[p]=q+"FullYear",L[l]=q+"Hours",L[a]=q+"Minutes",L[o]=q+"Seconds",L[s]=q+"Milliseconds",L)[z],P=z===c?this.$D+(U-this.$W):U;if(z===h||z===p){var k=this.clone().set(d,1);k.$d[$](P),k.init(),this.$d=k.set(d,Math.min(this.$D,k.daysInMonth())).$d}else $&&this.$d[$](P);return this.init(),this},D.set=function(B,U){return this.clone().$set(B,U)},D.get=function(B){return this[T.p(B)]()},D.add=function(B,U){var L,z=this;B=Number(B);var q=T.p(U),$=function(N){var bt=w(z);return T.w(bt.date(bt.date()+Math.round(N*B)),z)};if(q===h)return this.set(h,this.$M+B);if(q===p)return this.set(p,this.$y+B);if(q===c)return $(1);if(q===u)return $(7);var P=(L={},L[a]=n,L[l]=i,L[o]=r,L)[q]||1,k=this.$d.getTime()+B*P;return T.w(k,this)},D.subtract=function(B,U){return this.add(-1*B,U)},D.format=function(B){var U=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var z=B||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),$=this.$H,P=this.$m,k=this.$M,N=L.weekdays,bt=L.months,ae=L.meridiem,Wt=function(ft,Ft,ke,ur){return ft&&(ft[Ft]||ft(U,z))||ke[Ft].slice(0,ur)},Ce=function(ft){return T.s($%12||12,ft,"0")},Gt=ae||function(ft,Ft,ke){var ur=ft<12?"AM":"PM";return ke?ur.toLowerCase():ur};return z.replace(S,function(ft,Ft){return Ft||function(ke){switch(ke){case"YY":return String(U.$y).slice(-2);case"YYYY":return T.s(U.$y,4,"0");case"M":return k+1;case"MM":return T.s(k+1,2,"0");case"MMM":return Wt(L.monthsShort,k,bt,3);case"MMMM":return Wt(bt,k);case"D":return U.$D;case"DD":return T.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Wt(L.weekdaysMin,U.$W,N,2);case"ddd":return Wt(L.weekdaysShort,U.$W,N,3);case"dddd":return N[U.$W];case"H":return String($);case"HH":return T.s($,2,"0");case"h":return Ce(1);case"hh":return Ce(2);case"a":return Gt($,P,!0);case"A":return Gt($,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 q}return null}(ft)||q.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,U,L){var z,q=this,$=T.p(U),P=w(B),k=(P.utcOffset()-this.utcOffset())*n,N=this-P,bt=function(){return T.m(q,P)};switch($){case p:z=bt()/12;break;case h:z=bt();break;case f:z=bt()/3;break;case u:z=(N-k)/6048e5;break;case c:z=(N-k)/864e5;break;case l:z=N/i;break;case a:z=N/n;break;case o:z=N/r;break;default:z=N}return L?z:T.a(z)},D.daysInMonth=function(){return this.endOf(h).$D},D.$locale=function(){return g[this.$L]},D.locale=function(B,U){if(!B)return this.$L;var L=this.clone(),z=H(B,U,!0);return z&&(L.$L=z),L},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=F.prototype;return w.prototype=C,[["$ms",s],["$s",o],["$m",a],["$H",l],["$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,F,w),I.$i=!0),w},w.locale=H,w.isDayjs=O,w.unix=function(I){return w(1e3*I)},w.en=g[E],w.Ls=g,w.p={},w})})(mc);var gc=mc.exports;const ki=De(gc);var ov={exports:{}};(function(e,t){(function(r,n){e.exports=n(gc)})(ut,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 l=100*o+a;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(ov),ki.locale("zh-cn");function av(e,t="YYYY-MM-DD HH:mm:ss"){return ki(e).format(t)}const vc=e=>Object.prototype.toString.call(e),cv=e=>vc(e).slice(8,-1),uv=e=>typeof e<"u",lv=()=>Date.now(),yc=()=>+Date.now(),hv=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function dt(){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 be(e=0){return V(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function _c(e,t){return e.reduce((r,n)=>{const i=n[t];return r.set(i,n),r},new Map)}function tn(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function fv(e=[],t="key",r="value"){const n={};for(const i of e)n[i[t]]=i[r];return n}function pv(e={},t="key",r="value"){return Object.entries(e).map(([n,i])=>({[t]:n,[r]:i}))}function wc(e,t){if(t){const r=_c(e,t);return Array.from(r.values())}else return Array.from(new Set(e))}function Wn(e){return e?[].concat(e):[]}function dv(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function Or(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 Ec(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 Gn(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>Gn(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=Gn(n)}),e)}function Sc(e=[],t){return t?e.reduce((r,n)=>r+Number(n[t]),0):e.reduce((r,n)=>r+Number(n),0)}function mv(e=[],t){const r=Sc(e,t);return e.length?r/e.length:0}function gv(e,t=","){return e?e.split(t):[]}function vv(e,t=","){return e?e.join(t):""}function yv(e,t="id",r="parentId",n="children",i="null"){const s=Ua(e,r);for(const o of Object.values(s))o.forEach(a=>{a[n]=s[a[t]]||[]});return s[i]}function xc(e=[]){let t=[];return e.forEach(r=>{const s=r,{children:n}=s,i=pn(s,["children"]);r.children&&r.children.length>0&&(t=t.concat(xc(r.children))),t.push(i)}),t}var Zn={exports:{}};Zn.exports,function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(l,c){if(!s[l]){s[l]={};for(var u=0;u<l.length;u++)s[l][l.charAt(u)]=u}return s[l][c]}var a={compressToBase64:function(l){if(l==null)return"";var c=a._compress(l,6,function(u){return n.charAt(u)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:a._decompress(l.length,32,function(c){return o(n,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":a._compress(l,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:a._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=a.compress(l),u=new Uint8Array(c.length*2),h=0,f=c.length;h<f;h++){var p=c.charCodeAt(h);u[h*2]=p>>>8,u[h*2+1]=p%256}return u},decompressFromUint8Array:function(l){if(l==null)return a.decompress(l);for(var c=new Array(l.length/2),u=0,h=c.length;u<h;u++)c[u]=l[u*2]*256+l[u*2+1];var f=[];return c.forEach(function(p){f.push(r(p))}),a.decompress(f.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":a._compress(l,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),a._decompress(l.length,32,function(c){return o(i,l.charAt(c))}))},compress:function(l){return a._compress(l,16,function(c){return r(c)})},_compress:function(l,c,u){if(l==null)return"";var h,f,p={},d={},m="",b="",S="",v=2,y=3,_=2,E=[],g=0,x=0,O;for(O=0;O<l.length;O+=1)if(m=l.charAt(O),Object.prototype.hasOwnProperty.call(p,m)||(p[m]=y++,d[m]=!0),b=S+m,Object.prototype.hasOwnProperty.call(p,b))S=b;else{if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<_;h++)g=g<<1,x==c-1?(x=0,E.push(u(g)),g=0):x++;for(f=S.charCodeAt(0),h=0;h<8;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)g=g<<1|f,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=0;for(f=S.charCodeAt(0),h=0;h<16;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[S]}else for(f=p[S],h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,_),_++),p[b]=y++,S=String(m)}if(S!==""){if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<_;h++)g=g<<1,x==c-1?(x=0,E.push(u(g)),g=0):x++;for(f=S.charCodeAt(0),h=0;h<8;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)g=g<<1|f,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=0;for(f=S.charCodeAt(0),h=0;h<16;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[S]}else for(f=p[S],h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,_),_++)}for(f=2,h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(u(g)),g=0):x++,f=f>>1;for(;;)if(g=g<<1,x==c-1){E.push(u(g));break}else x++;return E.join("")},decompress:function(l){return l==null?"":l==""?null:a._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var h=[],f=4,p=4,d=3,m="",b=[],S,v,y,_,E,g,x,O={val:u(0),position:c,index:1};for(S=0;S<3;S+=1)h[S]=S;for(y=0,E=Math.pow(2,2),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;switch(y){case 0:for(y=0,E=Math.pow(2,8),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;x=r(y);break;case 1:for(y=0,E=Math.pow(2,16),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;x=r(y);break;case 2:return""}for(h[3]=x,v=x,b.push(x);;){if(O.index>l)return"";for(y=0,E=Math.pow(2,d),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;switch(x=y){case 0:for(y=0,E=Math.pow(2,8),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=1;h[p++]=r(y),x=p-1,f--;break;case 1:for(y=0,E=Math.pow(2,16),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),y|=(_>0?1:0)*g,g<<=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=v+v.charAt(0);else return null;b.push(m),h[p++]=v+m.charAt(0),f--,v=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})}(Zn);var Tc=Zn.exports;function Oc(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 bv(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,l="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){l+=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));l+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!l)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Bi(e,t){t===void 0&&(t={});for(var r=bv(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(me(t.delimiter||"/#?"),"]+?"),o=[],a=0,l=0,c="",u=function(g){if(l<r.length&&r[l].type===g)return r[l++].value},h=function(g){var x=u(g);if(x!==void 0)return x;var O=r[l],H=O.type,w=O.index;throw new TypeError("Unexpected ".concat(H," at ").concat(w,", expected ").concat(g))},f=function(){for(var g="",x;x=u("CHAR")||u("ESCAPED_CHAR");)g+=x;return g};l<r.length;){var p=u("CHAR"),d=u("NAME"),m=u("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:u("MODIFIER")||""});continue}var S=p||u("ESCAPED_CHAR");if(S){c+=S;continue}c&&(o.push(c),c="");var v=u("OPEN");if(v){var b=f(),y=u("NAME")||"",_=u("PATTERN")||"",E=f();h("CLOSE"),o.push({name:y||(_?a++:""),pattern:y&&!_?s:_,prefix:b,suffix:E,modifier:u("MODIFIER")||""});continue}h("END")}return o}function Ac(e,t){return _v(Bi(e,t),t)}function _v(e,t){t===void 0&&(t={});var r=Ni(t),n=t.encode,i=n===void 0?function(l){return l}:n,s=t.validate,o=s===void 0?!0:s,a=e.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),r)});return function(l){for(var c="",u=0;u<e.length;u++){var h=e[u];if(typeof h=="string"){c+=h;continue}var f=l?l[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[u].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[u].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 S=d?"an array":"a string";throw new TypeError('Expected "'.concat(h.name,'" to be ').concat(S))}}return c}}function $c(e,t){var r=[],n=en(e,r,t);return wv(n,r,t)}function wv(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],l=o.index,c=Object.create(null),u=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++)u(h);return{path:a,index:l,params:c}}}function me(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Ni(e){return e&&e.sensitive?"":"i"}function Ev(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 Sv(e,t,r){var n=e.map(function(i){return en(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Ni(r))}function xv(e,t,r){return Tv(Bi(e,r),t,r)}function Tv(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,l=a===void 0?!0:a,c=r.encode,u=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(me(d),"]|$"),b="[".concat(me(f),"]"),S=o?"^":"",v=0,y=e;v<y.length;v++){var _=y[v];if(typeof _=="string")S+=me(u(_));else{var E=me(u(_.prefix)),g=me(u(_.suffix));if(_.pattern)if(t&&t.push(_),E||g)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";S+="(?:".concat(E,"((?:").concat(_.pattern,")(?:").concat(g).concat(E,"(?:").concat(_.pattern,"))*)").concat(g,")").concat(x)}else S+="(?:".concat(E,"(").concat(_.pattern,")").concat(g,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?S+="((?:".concat(_.pattern,")").concat(_.modifier,")"):S+="(".concat(_.pattern,")").concat(_.modifier);else S+="(?:".concat(E).concat(g,")").concat(_.modifier)}}if(l)i||(S+="".concat(b,"?")),S+=r.endsWith?"(?=".concat(m,")"):"$";else{var O=e[e.length-1],H=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;i||(S+="(?:".concat(b,"(?=").concat(m,"))?")),H||(S+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(S,Ni(r))}function en(e,t,r){return e instanceof RegExp?Ev(e,t):Array.isArray(e)?Sv(e,t,r):xv(e,t,r)}const Ov=Tc.compress,Av=Tc.decompress;/**!
|
|
51
51
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
52
52
|
* @name @vtj/core
|
|
53
53
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
54
|
-
* @version 0.9.0-alpha.
|
|
54
|
+
* @version 0.9.0-alpha.14
|
|
55
55
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
56
|
-
*/const $v="0.9.0-alpha.13",jv="BuiltIn",Ii="VueMaterial",Mi="VueRouterMaterial",Rv=[Ii,Mi],Dv={vue:"Vue","vue-router":"VueRouter"},jc={[Ii]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Mi]:["RouterView","RouterLink"]},Pv=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let Cv=class{},Rc=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}},Ar=class Dc{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 Dc(n,i),r),{})}};class _e{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 _e(i),r),{})}}let Fe=class Pc{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||dt(),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 Pc(r))}static toDsl(t=[]){return t.map(r=>{const{name:n,arg:i,modifiers:s,value:o,iterator:a,id:l}=r;return{id:l,name:n,arg:i,modifiers:s,value:o,iterator:a}})}};const nt="EVENT_NODE_CHANGE";var Mt;let Fr=(Mt=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=dt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Mt.nodes[this.id]=this}update(t,r=!1){const{invisible:n=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:l={},directives:c=[]}=t;this.invisible=n,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=Ar.parse(a),this.events=_e.parse(l),this.directives=Fe.parse(c),r||M.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Mt(n,this)):this.children=t,r||M.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||M.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new Ar(t,r,n),i||M.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||M.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 _e(t),r||M.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||M.emit(nt,this)}setDirective(t,r=!1){const n=this.directives.findIndex(i=>i.id===t.id);n>=0?this.directives.splice(n,1,new Fe(t)):this.directives.push(new Fe(t)),r||M.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||M.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||M.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||M.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||M.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||M.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||M.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||M.emit(nt,r))}}toDsl(){const{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:a,props:l,directives:c,events:u}=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:Ar.toDsl(l),directives:Fe.toDsl(c),events:_e.toDsl(u)}}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||M.emit(nt,this),this.parent=null,this.disposed=!0,delete Mt.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||M.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||M.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||M.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(Mt,"nodes",{}),Mt);const G="EVENT_BLOCK_CHANGE",qe=class qe{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||dt(),this.update(t,!0)}update(t,r=!1){for(const i of qe.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Fr(i))),r||M.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return xt(K({},qe.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||yc().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||M.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||M.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||M.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||M.emit(G,this)}setCss(t,r=!1){this.css=t,r||M.emit(G,this)}setWatch(t,r=!1){t.id=t.id||dt();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||M.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||M.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||M.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||M.emit(G,this))}setEmit(t,r=!1){const n=gt(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||M.emit(G,this)}removeEmit(t,r=!1){const n=this.emits.findIndex(i=>gt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||M.emit(G,this))}setSlot(t,r=!1){const n=gt(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||M.emit(G,this)}removeSlot(t,r=!1){const n=this.slots.findIndex(i=>gt(i)?i===t:i.name===t);n>-1&&(this.slots.splice(n,1),r||M.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||M.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||M.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||M.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||M.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||M.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||M.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||M.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||M.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||M.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||M.emit(G,this))}}cloneNode(t,r=!1){const n=Li(t.toDsl()),i=new Fr(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||M.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||M.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(qe,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]);let It=qe;const it="EVENT_PROJECT_CHANGE",Qn="EVENT_PROJECT_ACTIVED",Xn="EVENT_PROJECT_DEPS_CHANGE",Le="EVENT_PROJECT_PAGES_CHANGE",ge="EVENT_PROJECT_BLOCKS_CHANGE",ti="EVENT_PROJECT_APIS_CHANGE",ei="EVENT_PROJECT_META_CHANGE",Cc="EVENT_PROJECT_PUBLISH",kc="EVENT_PROJECT_FILE_PUBLISH";var Kt;let We=(Kt=class{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||dt(),this.update(t,!0)}update(t,r=!1){for(const n of Kt.attrs){const i=t[n];i&&(this[n]=i)}r||M.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=Kt.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>(delete i.dsl,i)),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>(delete i.dsl,i))),K({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||M.emit(Qn,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||M.emit(Qn,{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,K(K({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};M.emit(Xn,o),M.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};M.emit(Xn,s),M.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 V(this,null,function*(){if(t.id=t.raw?t.name:t.id||dt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new It({id:t.id,name:qn(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};M.emit(Le,i),M.emit(it,i)}!this.currentFile&&!t.dir&&(yield be(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};M.emit(Le,i),M.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=dt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new It({id:i,name:s}).toDsl(),l=$t({},t,{id:i,name:s,title:o,dsl:a}),c=r?((h=this.getPage(r))==null?void 0:h.children)||[]:this.pages,u=c.findIndex(f=>f.id===t.id);if(c.splice(u+1,0,l),!n){const f={model:this,type:"clone",data:{source:t,target:l}};M.emit(Le,f),M.emit(it,f)}}saveToBlock(t,r=!1){return V(this,null,function*(){this.active(t,r),yield be(1e3);const n=dt(),i=t.name,s=t.title,o=new It({id:n,name:i}).toDsl(),a=$t({},t,{id:n,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!r){const l={model:this,type:"create",data:a};M.emit(ge,l),M.emit(it,l)}})}removePage(t,r=!1){var s;const n=this.getPage(t),i=(o,a)=>{const l=a.findIndex(c=>c.id===o);if(l>=0){a.splice(l,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};M.emit(Le,o),M.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return V(this,null,function*(){const n=t.id||dt(),i=qn(t.name);t.id=n,t.type="block",t.dsl=new It({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};M.emit(ge,o),M.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield be(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};M.emit(ge,i),M.emit(it,i)}}cloneBlock(t,r=!1){const n=dt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new It({id:n,name:i}).toDsl(),a=$t({},t,{id:n,name:i,title:s,dsl:o}),l=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(l+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};M.emit(ge,c),M.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};M.emit(ge,a),M.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=dt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};M.emit(ti,s),M.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};M.emit(ti,i),M.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=dt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};M.emit(ei,s),M.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};M.emit(ei,i),M.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};M.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};M.emit(it,n)}}publish(t){const r={model:this,type:"publish",data:t||this};t?M.emit(kc,r):M.emit(Cc,r)}},j(Kt,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]),Kt);const Ve="EVENT_HISTORY_CHANGE",$r="EVENT_HISTORY_LOAD";let Fi=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:dt(),label:new Date().toLocaleString(),dsl:Ri(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||M.emit(Ve,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||M.emit(Ve,{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||M.emit(Ve,{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&&M.emit($r,{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&&M.emit($r,{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||M.emit($r,{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||M.emit(Ve,{model:this,type:"clear",data:r})}};const M=Oc();function kv(e){return e instanceof It}function Bv(e){return e instanceof Fr}function Nv(e){return!!e.__VTJ_BLOCK__}function Li(e){const t=Ri(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Li(r))),t}function Iv(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 xw=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:jc,BUILT_IN_LIBRARAY_MAP:Dv,BUILT_IN_MATERIALS:Rv,BUILT_IN_NAME:jv,BUILT_IN_TAGS:Pv,BUILT_IN_VUE:Ii,BUILT_IN_VUE_ROUTER:Mi,Base:Rc,BlockModel:It,DirectiveModel:Fe,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:Ve,EVENT_HISTORY_LOAD:$r,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:Qn,EVENT_PROJECT_APIS_CHANGE:ti,EVENT_PROJECT_BLOCKS_CHANGE:ge,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:Xn,EVENT_PROJECT_FILE_PUBLISH:kc,EVENT_PROJECT_META_CHANGE:ei,EVENT_PROJECT_PAGES_CHANGE:Le,EVENT_PROJECT_PUBLISH:Cc,EventModel:_e,HistoryModel:Fi,NodeModel:Fr,ProjectModel:We,PropModel:Ar,Service:Cv,VTJ_CORE_VERSION:$v,cloneDsl:Li,createNodeFrom:Iv,emitter:M,isBlock:kv,isBlockSchema:Nv,isNode:Bv},Symbol.toStringTag,{value:"Module"}));var Mv=Object.defineProperty,Fv=(e,t,r)=>t in e?Mv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bt=(e,t,r)=>Fv(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 $v="0.9.0-alpha.14",jv="BuiltIn",Ii="VueMaterial",Mi="VueRouterMaterial",Rv=[Ii,Mi],Dv={vue:"Vue","vue-router":"VueRouter"},jc={[Ii]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Mi]:["RouterView","RouterLink"]},Pv=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let Cv=class{},Rc=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}},Ar=class Dc{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 Dc(n,i),r),{})}};class _e{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 _e(i),r),{})}}let Fe=class Pc{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||dt(),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 Pc(r))}static toDsl(t=[]){return t.map(r=>{const{name:n,arg:i,modifiers:s,value:o,iterator:a,id:l}=r;return{id:l,name:n,arg:i,modifiers:s,value:o,iterator:a}})}};const nt="EVENT_NODE_CHANGE";var Mt;let Fr=(Mt=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=dt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Mt.nodes[this.id]=this}update(t,r=!1){const{invisible:n=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:l={},directives:c=[]}=t;this.invisible=n,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=Ar.parse(a),this.events=_e.parse(l),this.directives=Fe.parse(c),r||M.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Mt(n,this)):this.children=t,r||M.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||M.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new Ar(t,r,n),i||M.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||M.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 _e(t),r||M.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||M.emit(nt,this)}setDirective(t,r=!1){const n=this.directives.findIndex(i=>i.id===t.id);n>=0?this.directives.splice(n,1,new Fe(t)):this.directives.push(new Fe(t)),r||M.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||M.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||M.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||M.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||M.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||M.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||M.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||M.emit(nt,r))}}toDsl(){const{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:a,props:l,directives:c,events:u}=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:Ar.toDsl(l),directives:Fe.toDsl(c),events:_e.toDsl(u)}}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||M.emit(nt,this),this.parent=null,this.disposed=!0,delete Mt.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||M.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||M.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||M.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(Mt,"nodes",{}),Mt);const G="EVENT_BLOCK_CHANGE",qe=class qe{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||dt(),this.update(t,!0)}update(t,r=!1){for(const i of qe.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Fr(i))),r||M.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return gt(K({},qe.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||yc().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||M.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||M.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||M.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||M.emit(G,this)}setCss(t,r=!1){this.css=t,r||M.emit(G,this)}setWatch(t,r=!1){t.id=t.id||dt();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||M.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||M.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||M.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||M.emit(G,this))}setEmit(t,r=!1){const n=vt(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||M.emit(G,this)}removeEmit(t,r=!1){const n=this.emits.findIndex(i=>vt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||M.emit(G,this))}setSlot(t,r=!1){const n=vt(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||M.emit(G,this)}removeSlot(t,r=!1){const n=this.slots.findIndex(i=>vt(i)?i===t:i.name===t);n>-1&&(this.slots.splice(n,1),r||M.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||M.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||M.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||M.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||M.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||M.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||M.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||M.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||M.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||M.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||M.emit(G,this))}}cloneNode(t,r=!1){const n=Li(t.toDsl()),i=new Fr(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||M.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||M.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(qe,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]);let It=qe;const it="EVENT_PROJECT_CHANGE",Qn="EVENT_PROJECT_ACTIVED",Xn="EVENT_PROJECT_DEPS_CHANGE",Le="EVENT_PROJECT_PAGES_CHANGE",ge="EVENT_PROJECT_BLOCKS_CHANGE",ti="EVENT_PROJECT_APIS_CHANGE",ei="EVENT_PROJECT_META_CHANGE",Cc="EVENT_PROJECT_PUBLISH",kc="EVENT_PROJECT_FILE_PUBLISH";var Kt;let We=(Kt=class{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||dt(),this.update(t,!0)}update(t,r=!1){for(const n of Kt.attrs){const i=t[n];i&&(this[n]=i)}r||M.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=Kt.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>gt(K({},i),{dsl:void 0})),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>gt(K({},i),{dsl:void 0}))),K({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||M.emit(Qn,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||M.emit(Qn,{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,K(K({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};M.emit(Xn,o),M.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};M.emit(Xn,s),M.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 V(this,null,function*(){if(t.id=t.raw?t.name:t.id||dt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new It({id:t.id,name:qn(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};M.emit(Le,i),M.emit(it,i)}!this.currentFile&&!t.dir&&(yield be(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};M.emit(Le,i),M.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=dt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new It({id:i,name:s}).toDsl(),l=$t({},t,{id:i,name:s,title:o,dsl:a}),c=r?((h=this.getPage(r))==null?void 0:h.children)||[]:this.pages,u=c.findIndex(f=>f.id===t.id);if(c.splice(u+1,0,l),!n){const f={model:this,type:"clone",data:{source:t,target:l}};M.emit(Le,f),M.emit(it,f)}}saveToBlock(t,r=!1){return V(this,null,function*(){this.active(t,r),yield be(1e3);const n=dt(),i=t.name,s=t.title,o=new It({id:n,name:i}).toDsl(),a=$t({},t,{id:n,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!r){const l={model:this,type:"create",data:a};M.emit(ge,l),M.emit(it,l)}})}removePage(t,r=!1){var s;const n=this.getPage(t),i=(o,a)=>{const l=a.findIndex(c=>c.id===o);if(l>=0){a.splice(l,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};M.emit(Le,o),M.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return V(this,null,function*(){const n=t.id||dt(),i=qn(t.name);t.id=n,t.type="block",t.dsl=new It({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};M.emit(ge,o),M.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield be(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};M.emit(ge,i),M.emit(it,i)}}cloneBlock(t,r=!1){const n=dt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new It({id:n,name:i}).toDsl(),a=$t({},t,{id:n,name:i,title:s,dsl:o}),l=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(l+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};M.emit(ge,c),M.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};M.emit(ge,a),M.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=dt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};M.emit(ti,s),M.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};M.emit(ti,i),M.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=dt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};M.emit(ei,s),M.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};M.emit(ei,i),M.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};M.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};M.emit(it,n)}}publish(t){const r={model:this,type:"publish",data:t||this};t?M.emit(kc,r):M.emit(Cc,r)}},j(Kt,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]),Kt);const Ve="EVENT_HISTORY_CHANGE",$r="EVENT_HISTORY_LOAD";let Fi=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:dt(),label:new Date().toLocaleString(),dsl:Ri(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||M.emit(Ve,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||M.emit(Ve,{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||M.emit(Ve,{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&&M.emit($r,{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&&M.emit($r,{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||M.emit($r,{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||M.emit(Ve,{model:this,type:"clear",data:r})}};const M=Oc();function kv(e){return e instanceof It}function Bv(e){return e instanceof Fr}function Nv(e){return!!e.__VTJ_BLOCK__}function Li(e){const t=Ri(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Li(r))),t}function Iv(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 xw=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:jc,BUILT_IN_LIBRARAY_MAP:Dv,BUILT_IN_MATERIALS:Rv,BUILT_IN_NAME:jv,BUILT_IN_TAGS:Pv,BUILT_IN_VUE:Ii,BUILT_IN_VUE_ROUTER:Mi,Base:Rc,BlockModel:It,DirectiveModel:Fe,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:Ve,EVENT_HISTORY_LOAD:$r,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:Qn,EVENT_PROJECT_APIS_CHANGE:ti,EVENT_PROJECT_BLOCKS_CHANGE:ge,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:Xn,EVENT_PROJECT_FILE_PUBLISH:kc,EVENT_PROJECT_META_CHANGE:ei,EVENT_PROJECT_PAGES_CHANGE:Le,EVENT_PROJECT_PUBLISH:Cc,EventModel:_e,HistoryModel:Fi,NodeModel:Fr,ProjectModel:We,PropModel:Ar,Service:Cv,VTJ_CORE_VERSION:$v,cloneDsl:Li,createNodeFrom:Iv,emitter:M,isBlock:kv,isBlockSchema:Nv,isNode:Bv},Symbol.toStringTag,{value:"Module"}));var Mv=Object.defineProperty,Fv=(e,t,r)=>t in e?Mv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_t=(e,t,r)=>Fv(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) 2024, VTJ.PRO All rights reserved.
|
|
58
58
|
* @name @vtj/utils
|
|
59
59
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.9.0-alpha.
|
|
60
|
+
* @version 0.9.0-alpha.14
|
|
61
61
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const Lv="0.9.0-alpha.
|
|
62
|
+
*/const Lv="0.9.0-alpha.14";/**
|
|
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 Vv(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Hv=Object.assign,Uv=Object.prototype.hasOwnProperty,ri=(e,t)=>Uv.call(e,t),we=Array.isArray,jr=e=>Bc(e)==="[object Map]",zv=e=>typeof e=="string",ir=e=>typeof e=="symbol",rn=e=>e!==null&&typeof e=="object",qv=Object.prototype.toString,Bc=e=>qv.call(e),Kv=e=>Bc(e).slice(8,-1),Vi=e=>zv(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ze=(e,t)=>!Object.is(e,t);var Jv={ENV_TYPE:"local",NODE_ENV:"production"};let Yv,Nc=0,Sn;function Hi(){Nc++}function Ui(){if(--Nc>0)return;let e;for(;Sn;){let t=Sn;for(Sn=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 Lr=!0;const Ic=[];function Wv(){Ic.push(Lr),Lr=!1}function Gv(){const e=Ic.pop();Lr=e===void 0?!0:e}let Mc=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){Hi();try{Jv.NODE_ENV;for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Ui()}}};const ni=new WeakMap,te=Symbol(""),ii=Symbol(""),Ge=Symbol("");function mt(e,t,r){if(Lr&&Yv){let n=ni.get(e);n||ni.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new Mc),i.map=n,i.key=r),i.track()}}function zt(e,t,r,n,i,s){const o=ni.get(e);if(!o)return;const a=l=>{l&&l.trigger()};if(Hi(),t==="clear")o.forEach(a);else{const l=we(e),c=l&&Vi(r);if(l&&r==="length"){const u=Number(n);o.forEach((h,f)=>{(f==="length"||f===Ge||!ir(f)&&f>=u)&&a(h)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(Ge)),t){case"add":l?c&&a(o.get("length")):(a(o.get(te)),jr(e)&&a(o.get(ii)));break;case"delete":l||(a(o.get(te)),jr(e)&&a(o.get(ii)));break;case"set":jr(e)&&a(o.get(te));break}}Ui()}function he(e){const t=Z(e);return t===e?t:(mt(t,"iterate",Ge),Jt(e)?t:t.map(ct))}function zi(e){return mt(e=Z(e),"iterate",Ge),e}const Zv={__proto__:null,[Symbol.iterator](){return xn(this,Symbol.iterator,ct)},concat(...e){return he(this).concat(...e.map(t=>we(t)?he(t):t))},entries(){return xn(this,"entries",e=>(e[1]=ct(e[1]),e))},every(e,t){return Ct(this,"every",e,t,void 0,arguments)},filter(e,t){return Ct(this,"filter",e,t,r=>r.map(ct),arguments)},find(e,t){return Ct(this,"find",e,t,ct,arguments)},findIndex(e,t){return Ct(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ct(this,"findLast",e,t,ct,arguments)},findLastIndex(e,t){return Ct(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ct(this,"forEach",e,t,void 0,arguments)},includes(...e){return Tn(this,"includes",e)},indexOf(...e){return Tn(this,"indexOf",e)},join(e){return he(this).join(e)},lastIndexOf(...e){return Tn(this,"lastIndexOf",e)},map(e,t){return Ct(this,"map",e,t,void 0,arguments)},pop(){return Ne(this,"pop")},push(...e){return Ne(this,"push",e)},reduce(e,...t){return So(this,"reduce",e,t)},reduceRight(e,...t){return So(this,"reduceRight",e,t)},shift(){return Ne(this,"shift")},some(e,t){return Ct(this,"some",e,t,void 0,arguments)},splice(...e){return Ne(this,"splice",e)},toReversed(){return he(this).toReversed()},toSorted(e){return he(this).toSorted(e)},toSpliced(...e){return he(this).toSpliced(...e)},unshift(...e){return Ne(this,"unshift",e)},values(){return xn(this,"values",ct)}};function xn(e,t,r){const n=zi(e),i=n[t]();return n!==e&&!Jt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=r(s.value)),s}),i}const Qv=Array.prototype;function Ct(e,t,r,n,i,s){const o=zi(e),a=o!==e&&!Jt(e),l=o[t];if(l!==Qv[t]){const h=l.apply(e,s);return a?ct(h):h}let c=r;o!==e&&(a?c=function(h,f){return r.call(this,ct(h),f,e)}:r.length>2&&(c=function(h,f){return r.call(this,h,f,e)}));const u=l.call(o,c,n);return a&&i?i(u):u}function So(e,t,r,n){const i=zi(e);let s=r;return i!==e&&(Jt(e)?r.length>3&&(s=function(o,a,l){return r.call(this,o,a,l,e)}):s=function(o,a,l){return r.call(this,o,ct(a),l,e)}),i[t](s,...n)}function Tn(e,t,r){const n=Z(e);mt(n,"iterate",Ge);const i=n[t](...r);return(i===-1||i===!1)&&py(r[0])?(r[0]=Z(r[0]),n[t](...r)):i}function Ne(e,t,r=[]){Wv(),Hi();const n=Z(e)[t].apply(e,r);return Ui(),Gv(),n}const Xv=Vv("__proto__,__v_isRef,__isVue"),Fc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ir));function ty(e){ir(e)||(e=String(e));const t=Z(this);return mt(t,"has",e),t.hasOwnProperty(e)}let Lc=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?ly:Uc:s?uy:Hc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=we(t);if(!i){let l;if(o&&(l=Zv[r]))return l;if(r==="hasOwnProperty")return ty}const a=Reflect.get(t,r,Ee(t)?t:n);return(ir(r)?Fc.has(r):Xv(r))||(i||mt(t,"get",r),s)?a:Ee(a)?o&&Vi(r)?a:a.value:rn(a)?i?qc(a):zc(a):a}};class ey extends Lc{constructor(t=!1){super(!1,t)}set(t,r,n,i){let s=t[r];if(!this._isShallow){const l=Oe(s);if(!Jt(n)&&!Oe(n)&&(s=Z(s),n=Z(n)),!we(t)&&Ee(s)&&!Ee(n))return l?!1:(s.value=n,!0)}const o=we(t)&&Vi(r)?Number(r)<t.length:ri(t,r),a=Reflect.set(t,r,n,Ee(t)?t:i);return t===Z(i)&&(o?ze(n,s)&&zt(t,"set",r,n):zt(t,"add",r,n)),a}deleteProperty(t,r){const n=ri(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&zt(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!ir(r)||!Fc.has(r))&&mt(t,"has",r),n}ownKeys(t){return mt(t,"iterate",we(t)?"length":te),Reflect.ownKeys(t)}}class ry extends Lc{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const ny=new ey,iy=new ry,br=e=>Reflect.getPrototypeOf(e);function sy(e,t,r){return function(...n){const i=this.__v_raw,s=Z(i),o=jr(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=i[e](...n),u=t?si:ct;return!t&&mt(s,"iterate",l?ii:te),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function _r(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function oy(e,t){const r={get(n){const i=this.__v_raw,s=Z(i),o=Z(n);e||(ze(n,o)&&mt(s,"get",n),mt(s,"get",o));const{has:a}=br(s),l=e?si:ct;if(a.call(s,n))return l(i.get(n));if(a.call(s,o))return l(i.get(o));i!==s&&i.get(n)},get size(){const n=this.__v_raw;return!e&&mt(Z(n),"iterate",te),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,s=Z(i),o=Z(n);return e||(ze(n,o)&&mt(s,"has",n),mt(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),l=e?si:ct;return!e&&mt(a,"iterate",te),o.forEach((c,u)=>n.call(i,l(c),l(u),s))}};return Hv(r,e?{add:_r("add"),set:_r("set"),delete:_r("delete"),clear:_r("clear")}:{add(n){!Jt(n)&&!Oe(n)&&(n=Z(n));const i=Z(this);return br(i).has.call(i,n)||(i.add(n),zt(i,"add",n,n)),this},set(n,i){!Jt(i)&&!Oe(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=br(s);let l=o.call(s,n);l||(n=Z(n),l=o.call(s,n));const c=a.call(s,n);return s.set(n,i),l?ze(i,c)&&zt(s,"set",n,i):zt(s,"add",n,i),this},delete(n){const i=Z(this),{has:s,get:o}=br(i);let a=s.call(i,n);a||(n=Z(n),a=s.call(i,n)),o&&o.call(i,n);const l=i.delete(n);return a&&zt(i,"delete",n,void 0),l},clear(){const n=Z(this),i=n.size!==0,s=n.clear();return i&&zt(n,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=sy(n,e)}),r}function Vc(e,t){const r=oy(e);return(n,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ri(r,i)&&i in n?r:n,i,s)}const ay={get:Vc(!1)},cy={get:Vc(!0)},Hc=new WeakMap,uy=new WeakMap,Uc=new WeakMap,ly=new WeakMap;function hy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fy(e){return e.__v_skip||!Object.isExtensible(e)?0:hy(Kv(e))}function zc(e){return Oe(e)?e:Kc(e,!1,ny,ay,Hc)}function qc(e){return Kc(e,!0,iy,cy,Uc)}function Kc(e,t,r,n,i){if(!rn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=fy(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function Oe(e){return!!(e&&e.__v_isReadonly)}function Jt(e){return!!(e&&e.__v_isShallow)}function py(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const ct=e=>rn(e)?zc(e):e,si=e=>rn(e)?qc(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function On(e){return dy(e,!1)}function dy(e,t){return Ee(e)?e:new my(e,t)}class my{constructor(t,r){this.dep=new Mc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Z(t),this._value=r?t:ct(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Jt(t)||Oe(t);t=n?t:Z(t),ze(t,r)&&(this._rawValue=t,this._value=n?t:ct(t),this.dep.trigger())}}function Jc(e,t){return function(){return e.apply(t,arguments)}}const{toString:gy}=Object.prototype,{getPrototypeOf:qi}=Object,nn=(e=>t=>{const r=gy.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=e=>(e=e.toLowerCase(),t=>nn(t)===e),sn=e=>t=>typeof t===e,{isArray:Pe}=Array,Ze=sn("undefined");function vy(e){return e!==null&&!Ze(e)&&e.constructor!==null&&!Ze(e.constructor)&&wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yc=Pt("ArrayBuffer");function yy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yc(e.buffer),t}const by=sn("string"),wt=sn("function"),Wc=sn("number"),on=e=>e!==null&&typeof e=="object",_y=e=>e===!0||e===!1,Rr=e=>{if(nn(e)!=="object")return!1;const t=qi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wy=Pt("Date"),Ey=Pt("File"),Sy=Pt("Blob"),xy=Pt("FileList"),Ty=e=>on(e)&&wt(e.pipe),Oy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wt(e.append)&&((t=nn(e))==="formdata"||t==="object"&&wt(e.toString)&&e.toString()==="[object FormData]"))},Ay=Pt("URLSearchParams"),$y=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Pe(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 Gc(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 Zc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qc=e=>!Ze(e)&&e!==Zc;function oi(){const{caseless:e}=Qc(this)&&this||{},t={},r=(n,i)=>{const s=e&&Gc(t,i)||i;Rr(t[s])&&Rr(n)?t[s]=oi(t[s],n):Rr(n)?t[s]=oi({},n):Pe(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&sr(arguments[n],r);return t}const jy=(e,t,r,{allOwnKeys:n}={})=>(sr(t,(i,s)=>{r&&wt(i)?e[s]=Jc(i,r):e[s]=i},{allOwnKeys:n}),e),Ry=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dy=(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)},Py=(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&&qi(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Cy=(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},ky=e=>{if(!e)return null;if(Pe(e))return e;let t=e.length;if(!Wc(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},By=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qi(Uint8Array)),Ny=(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])}},Iy=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},My=Pt("HTMLFormElement"),Fy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),xo=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ly=Pt("RegExp"),Xc=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};sr(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Vy=e=>{Xc(e,(t,r)=>{if(wt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(wt(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+"'")})}})},Hy=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Pe(e)?n(e):n(String(e).split(t)),r},Uy=()=>{},zy=(e,t)=>(e=+e,Number.isFinite(e)?e:t),An="abcdefghijklmnopqrstuvwxyz",To="0123456789",tu={DIGIT:To,ALPHA:An,ALPHA_DIGIT:An+An.toUpperCase()+To},qy=(e=16,t=tu.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Ky(e){return!!(e&&wt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jy=e=>{const t=new Array(10),r=(n,i)=>{if(on(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=Pe(n)?[]:{};return sr(n,(o,a)=>{const l=r(o,i+1);!Ze(l)&&(s[a]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Yy=Pt("AsyncFunction"),Wy=e=>e&&(on(e)||wt(e))&&wt(e.then)&&wt(e.catch),A={isArray:Pe,isArrayBuffer:Yc,isBuffer:vy,isFormData:Oy,isArrayBufferView:yy,isString:by,isNumber:Wc,isBoolean:_y,isObject:on,isPlainObject:Rr,isUndefined:Ze,isDate:wy,isFile:Ey,isBlob:Sy,isRegExp:Ly,isFunction:wt,isStream:Ty,isURLSearchParams:Ay,isTypedArray:By,isFileList:xy,forEach:sr,merge:oi,extend:jy,trim:$y,stripBOM:Ry,inherits:Dy,toFlatObject:Py,kindOf:nn,kindOfTest:Pt,endsWith:Cy,toArray:ky,forEachEntry:Ny,matchAll:Iy,isHTMLForm:My,hasOwnProperty:xo,hasOwnProp:xo,reduceDescriptors:Xc,freezeMethods:Vy,toObjectSet:Hy,toCamelCase:Fy,noop:Uy,toFiniteNumber:zy,findKey:Gc,global:Zc,isContextDefined:Qc,ALPHABET:tu,generateString:qy,isSpecCompliantForm:Ky,toJSONObject:Jy,isAsyncFn:Yy,isThenable:Wy};function W(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)}A.inherits(W,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:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const eu=W.prototype,ru={};["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=>{ru[e]={value:e}});Object.defineProperties(W,ru);Object.defineProperty(eu,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,s)=>{const o=Object.create(eu);return A.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Gy=null;function ai(e){return A.isPlainObject(e)||A.isArray(e)}function nu(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Oo(e,t,r){return e?e.concat(t).map(function(n,i){return n=nu(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Zy(e){return A.isArray(e)&&!e.some(ai)}const Qy=A.toFlatObject(A,{},null,function(e){return/^is[A-Z]/.test(e)});function an(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!A.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||c,s=r.dots,o=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(A.isDate(p))return p.toISOString();if(!a&&A.isBlob(p))throw new W("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(p)||A.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(A.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(A.isArray(p)&&Zy(p)||(A.isFileList(p)||A.endsWith(d,"[]"))&&(b=A.toArray(p)))return d=nu(d),b.forEach(function(S,v){!(A.isUndefined(S)||S===null)&&t.append(o===!0?Oo([d],v,s):o===null?d:d+"[]",l(S))}),!1}return ai(p)?!0:(t.append(Oo(m,d,s),l(p)),!1)}const u=[],h=Object.assign(Qy,{defaultVisitor:c,convertValue:l,isVisitable:ai});function f(p,d){if(!A.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));u.push(p),A.forEach(p,function(m,b){(!(A.isUndefined(m)||m===null)&&i.call(t,m,A.isString(b)?b.trim():b,d,h))===!0&&f(m,d?d.concat(b):[b])}),u.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Ao(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ki(e,t){this._pairs=[],e&&an(e,this,t)}const iu=Ki.prototype;iu.append=function(e,t){this._pairs.push([e,t])};iu.toString=function(e){const t=e?function(r){return e.call(this,r,Ao)}:Ao;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Xy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function su(e,t,r){if(!t)return e;const n=r&&r.encode||Xy,i=r&&r.serialize;let s;if(i?s=i(t,r):s=A.isURLSearchParams(t)?t.toString():new Ki(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class $o{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){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ou={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tb=typeof URLSearchParams<"u"?URLSearchParams:Ki,eb=typeof FormData<"u"?FormData:null,rb=typeof Blob<"u"?Blob:null,nb={isBrowser:!0,classes:{URLSearchParams:tb,FormData:eb,Blob:rb},protocols:["http","https","file","blob","url","data"]},au=typeof window<"u"&&typeof document<"u",ib=(e=>au&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),sb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ob=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:au,hasStandardBrowserEnv:ib,hasStandardBrowserWebWorkerEnv:sb},Symbol.toStringTag,{value:"Module"})),jt=K(K({},ob),nb);function ab(e,t){return an(e,new jt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return jt.isNode&&A.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function cb(e){return A.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 cu(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=r.length;return o=!o&&A.isArray(i)?i.length:o,l?(A.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!A.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&A.isArray(i[o])&&(i[o]=ub(i[o])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(cb(n),i,r,0)}),r}return null}function lb(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const or={transitional:ou,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=A.isObject(e);if(i&&A.isHTMLForm(e)&&(e=new FormData(e)),A.isFormData(e))return n?JSON.stringify(cu(e)):e;if(A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e))return e;if(A.isArrayBufferView(e))return e.buffer;if(A.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 ab(e,this.formSerializer).toString();if((s=A.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return an(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),lb(e)):e}],transformResponse:[function(e){const t=this.transitional||or.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&A.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"?W.from(s,W.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:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{or.headers[e]={}});const hb=A.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"]),fb=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]&&hb[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},jo=Symbol("internals");function Ie(e){return e&&String(e).trim().toLowerCase()}function Dr(e){return e===!1||e==null?e:A.isArray(e)?e.map(Dr):String(e)}function pb(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 db=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $n(e,t,r,n,i){if(A.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!A.isString(t)){if(A.isString(n))return t.indexOf(n)!==-1;if(A.isRegExp(n))return n.test(t)}}function mb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function gb(e,t){const r=A.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
|
|
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[jo]=this[jo]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=Ie(s);r[o]||(gb(n,s),r[o]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}};
|
|
66
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Vv(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Hv=Object.assign,Uv=Object.prototype.hasOwnProperty,ri=(e,t)=>Uv.call(e,t),we=Array.isArray,jr=e=>Bc(e)==="[object Map]",zv=e=>typeof e=="string",ir=e=>typeof e=="symbol",rn=e=>e!==null&&typeof e=="object",qv=Object.prototype.toString,Bc=e=>qv.call(e),Kv=e=>Bc(e).slice(8,-1),Vi=e=>zv(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ze=(e,t)=>!Object.is(e,t);var Jv={ENV_TYPE:"local",NODE_ENV:"production"};let Yv,Nc=0,Sn;function Hi(){Nc++}function Ui(){if(--Nc>0)return;let e;for(;Sn;){let t=Sn;for(Sn=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 Lr=!0;const Ic=[];function Wv(){Ic.push(Lr),Lr=!1}function Gv(){const e=Ic.pop();Lr=e===void 0?!0:e}let Mc=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){Hi();try{Jv.NODE_ENV;for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Ui()}}};const ni=new WeakMap,te=Symbol(""),ii=Symbol(""),Ge=Symbol("");function mt(e,t,r){if(Lr&&Yv){let n=ni.get(e);n||ni.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new Mc),i.map=n,i.key=r),i.track()}}function zt(e,t,r,n,i,s){const o=ni.get(e);if(!o)return;const a=l=>{l&&l.trigger()};if(Hi(),t==="clear")o.forEach(a);else{const l=we(e),c=l&&Vi(r);if(l&&r==="length"){const u=Number(n);o.forEach((h,f)=>{(f==="length"||f===Ge||!ir(f)&&f>=u)&&a(h)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(Ge)),t){case"add":l?c&&a(o.get("length")):(a(o.get(te)),jr(e)&&a(o.get(ii)));break;case"delete":l||(a(o.get(te)),jr(e)&&a(o.get(ii)));break;case"set":jr(e)&&a(o.get(te));break}}Ui()}function he(e){const t=Z(e);return t===e?t:(mt(t,"iterate",Ge),Jt(e)?t:t.map(ct))}function zi(e){return mt(e=Z(e),"iterate",Ge),e}const Zv={__proto__:null,[Symbol.iterator](){return xn(this,Symbol.iterator,ct)},concat(...e){return he(this).concat(...e.map(t=>we(t)?he(t):t))},entries(){return xn(this,"entries",e=>(e[1]=ct(e[1]),e))},every(e,t){return Ct(this,"every",e,t,void 0,arguments)},filter(e,t){return Ct(this,"filter",e,t,r=>r.map(ct),arguments)},find(e,t){return Ct(this,"find",e,t,ct,arguments)},findIndex(e,t){return Ct(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ct(this,"findLast",e,t,ct,arguments)},findLastIndex(e,t){return Ct(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ct(this,"forEach",e,t,void 0,arguments)},includes(...e){return Tn(this,"includes",e)},indexOf(...e){return Tn(this,"indexOf",e)},join(e){return he(this).join(e)},lastIndexOf(...e){return Tn(this,"lastIndexOf",e)},map(e,t){return Ct(this,"map",e,t,void 0,arguments)},pop(){return Ne(this,"pop")},push(...e){return Ne(this,"push",e)},reduce(e,...t){return So(this,"reduce",e,t)},reduceRight(e,...t){return So(this,"reduceRight",e,t)},shift(){return Ne(this,"shift")},some(e,t){return Ct(this,"some",e,t,void 0,arguments)},splice(...e){return Ne(this,"splice",e)},toReversed(){return he(this).toReversed()},toSorted(e){return he(this).toSorted(e)},toSpliced(...e){return he(this).toSpliced(...e)},unshift(...e){return Ne(this,"unshift",e)},values(){return xn(this,"values",ct)}};function xn(e,t,r){const n=zi(e),i=n[t]();return n!==e&&!Jt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=r(s.value)),s}),i}const Qv=Array.prototype;function Ct(e,t,r,n,i,s){const o=zi(e),a=o!==e&&!Jt(e),l=o[t];if(l!==Qv[t]){const h=l.apply(e,s);return a?ct(h):h}let c=r;o!==e&&(a?c=function(h,f){return r.call(this,ct(h),f,e)}:r.length>2&&(c=function(h,f){return r.call(this,h,f,e)}));const u=l.call(o,c,n);return a&&i?i(u):u}function So(e,t,r,n){const i=zi(e);let s=r;return i!==e&&(Jt(e)?r.length>3&&(s=function(o,a,l){return r.call(this,o,a,l,e)}):s=function(o,a,l){return r.call(this,o,ct(a),l,e)}),i[t](s,...n)}function Tn(e,t,r){const n=Z(e);mt(n,"iterate",Ge);const i=n[t](...r);return(i===-1||i===!1)&&py(r[0])?(r[0]=Z(r[0]),n[t](...r)):i}function Ne(e,t,r=[]){Wv(),Hi();const n=Z(e)[t].apply(e,r);return Ui(),Gv(),n}const Xv=Vv("__proto__,__v_isRef,__isVue"),Fc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ir));function ty(e){ir(e)||(e=String(e));const t=Z(this);return mt(t,"has",e),t.hasOwnProperty(e)}let Lc=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?ly:Uc:s?uy:Hc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=we(t);if(!i){let l;if(o&&(l=Zv[r]))return l;if(r==="hasOwnProperty")return ty}const a=Reflect.get(t,r,Ee(t)?t:n);return(ir(r)?Fc.has(r):Xv(r))||(i||mt(t,"get",r),s)?a:Ee(a)?o&&Vi(r)?a:a.value:rn(a)?i?qc(a):zc(a):a}};class ey extends Lc{constructor(t=!1){super(!1,t)}set(t,r,n,i){let s=t[r];if(!this._isShallow){const l=Oe(s);if(!Jt(n)&&!Oe(n)&&(s=Z(s),n=Z(n)),!we(t)&&Ee(s)&&!Ee(n))return l?!1:(s.value=n,!0)}const o=we(t)&&Vi(r)?Number(r)<t.length:ri(t,r),a=Reflect.set(t,r,n,Ee(t)?t:i);return t===Z(i)&&(o?ze(n,s)&&zt(t,"set",r,n):zt(t,"add",r,n)),a}deleteProperty(t,r){const n=ri(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&zt(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!ir(r)||!Fc.has(r))&&mt(t,"has",r),n}ownKeys(t){return mt(t,"iterate",we(t)?"length":te),Reflect.ownKeys(t)}}class ry extends Lc{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const ny=new ey,iy=new ry,br=e=>Reflect.getPrototypeOf(e);function sy(e,t,r){return function(...n){const i=this.__v_raw,s=Z(i),o=jr(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=i[e](...n),u=t?si:ct;return!t&&mt(s,"iterate",l?ii:te),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function _r(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function oy(e,t){const r={get(n){const i=this.__v_raw,s=Z(i),o=Z(n);e||(ze(n,o)&&mt(s,"get",n),mt(s,"get",o));const{has:a}=br(s),l=e?si:ct;if(a.call(s,n))return l(i.get(n));if(a.call(s,o))return l(i.get(o));i!==s&&i.get(n)},get size(){const n=this.__v_raw;return!e&&mt(Z(n),"iterate",te),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,s=Z(i),o=Z(n);return e||(ze(n,o)&&mt(s,"has",n),mt(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),l=e?si:ct;return!e&&mt(a,"iterate",te),o.forEach((c,u)=>n.call(i,l(c),l(u),s))}};return Hv(r,e?{add:_r("add"),set:_r("set"),delete:_r("delete"),clear:_r("clear")}:{add(n){!Jt(n)&&!Oe(n)&&(n=Z(n));const i=Z(this);return br(i).has.call(i,n)||(i.add(n),zt(i,"add",n,n)),this},set(n,i){!Jt(i)&&!Oe(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=br(s);let l=o.call(s,n);l||(n=Z(n),l=o.call(s,n));const c=a.call(s,n);return s.set(n,i),l?ze(i,c)&&zt(s,"set",n,i):zt(s,"add",n,i),this},delete(n){const i=Z(this),{has:s,get:o}=br(i);let a=s.call(i,n);a||(n=Z(n),a=s.call(i,n)),o&&o.call(i,n);const l=i.delete(n);return a&&zt(i,"delete",n,void 0),l},clear(){const n=Z(this),i=n.size!==0,s=n.clear();return i&&zt(n,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=sy(n,e)}),r}function Vc(e,t){const r=oy(e);return(n,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ri(r,i)&&i in n?r:n,i,s)}const ay={get:Vc(!1)},cy={get:Vc(!0)},Hc=new WeakMap,uy=new WeakMap,Uc=new WeakMap,ly=new WeakMap;function hy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fy(e){return e.__v_skip||!Object.isExtensible(e)?0:hy(Kv(e))}function zc(e){return Oe(e)?e:Kc(e,!1,ny,ay,Hc)}function qc(e){return Kc(e,!0,iy,cy,Uc)}function Kc(e,t,r,n,i){if(!rn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=fy(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function Oe(e){return!!(e&&e.__v_isReadonly)}function Jt(e){return!!(e&&e.__v_isShallow)}function py(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const ct=e=>rn(e)?zc(e):e,si=e=>rn(e)?qc(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function On(e){return dy(e,!1)}function dy(e,t){return Ee(e)?e:new my(e,t)}class my{constructor(t,r){this.dep=new Mc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Z(t),this._value=r?t:ct(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Jt(t)||Oe(t);t=n?t:Z(t),ze(t,r)&&(this._rawValue=t,this._value=n?t:ct(t),this.dep.trigger())}}function Jc(e,t){return function(){return e.apply(t,arguments)}}const{toString:gy}=Object.prototype,{getPrototypeOf:qi}=Object,nn=(e=>t=>{const r=gy.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=e=>(e=e.toLowerCase(),t=>nn(t)===e),sn=e=>t=>typeof t===e,{isArray:Pe}=Array,Ze=sn("undefined");function vy(e){return e!==null&&!Ze(e)&&e.constructor!==null&&!Ze(e.constructor)&&Et(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yc=Pt("ArrayBuffer");function yy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yc(e.buffer),t}const by=sn("string"),Et=sn("function"),Wc=sn("number"),on=e=>e!==null&&typeof e=="object",_y=e=>e===!0||e===!1,Rr=e=>{if(nn(e)!=="object")return!1;const t=qi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wy=Pt("Date"),Ey=Pt("File"),Sy=Pt("Blob"),xy=Pt("FileList"),Ty=e=>on(e)&&Et(e.pipe),Oy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Et(e.append)&&((t=nn(e))==="formdata"||t==="object"&&Et(e.toString)&&e.toString()==="[object FormData]"))},Ay=Pt("URLSearchParams"),$y=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Pe(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 Gc(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 Zc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qc=e=>!Ze(e)&&e!==Zc;function oi(){const{caseless:e}=Qc(this)&&this||{},t={},r=(n,i)=>{const s=e&&Gc(t,i)||i;Rr(t[s])&&Rr(n)?t[s]=oi(t[s],n):Rr(n)?t[s]=oi({},n):Pe(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&sr(arguments[n],r);return t}const jy=(e,t,r,{allOwnKeys:n}={})=>(sr(t,(i,s)=>{r&&Et(i)?e[s]=Jc(i,r):e[s]=i},{allOwnKeys:n}),e),Ry=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dy=(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)},Py=(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&&qi(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Cy=(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},ky=e=>{if(!e)return null;if(Pe(e))return e;let t=e.length;if(!Wc(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},By=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qi(Uint8Array)),Ny=(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])}},Iy=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},My=Pt("HTMLFormElement"),Fy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),xo=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ly=Pt("RegExp"),Xc=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};sr(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Vy=e=>{Xc(e,(t,r)=>{if(Et(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Et(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+"'")})}})},Hy=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Pe(e)?n(e):n(String(e).split(t)),r},Uy=()=>{},zy=(e,t)=>(e=+e,Number.isFinite(e)?e:t),An="abcdefghijklmnopqrstuvwxyz",To="0123456789",tu={DIGIT:To,ALPHA:An,ALPHA_DIGIT:An+An.toUpperCase()+To},qy=(e=16,t=tu.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Ky(e){return!!(e&&Et(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jy=e=>{const t=new Array(10),r=(n,i)=>{if(on(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=Pe(n)?[]:{};return sr(n,(o,a)=>{const l=r(o,i+1);!Ze(l)&&(s[a]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Yy=Pt("AsyncFunction"),Wy=e=>e&&(on(e)||Et(e))&&Et(e.then)&&Et(e.catch),A={isArray:Pe,isArrayBuffer:Yc,isBuffer:vy,isFormData:Oy,isArrayBufferView:yy,isString:by,isNumber:Wc,isBoolean:_y,isObject:on,isPlainObject:Rr,isUndefined:Ze,isDate:wy,isFile:Ey,isBlob:Sy,isRegExp:Ly,isFunction:Et,isStream:Ty,isURLSearchParams:Ay,isTypedArray:By,isFileList:xy,forEach:sr,merge:oi,extend:jy,trim:$y,stripBOM:Ry,inherits:Dy,toFlatObject:Py,kindOf:nn,kindOfTest:Pt,endsWith:Cy,toArray:ky,forEachEntry:Ny,matchAll:Iy,isHTMLForm:My,hasOwnProperty:xo,hasOwnProp:xo,reduceDescriptors:Xc,freezeMethods:Vy,toObjectSet:Hy,toCamelCase:Fy,noop:Uy,toFiniteNumber:zy,findKey:Gc,global:Zc,isContextDefined:Qc,ALPHABET:tu,generateString:qy,isSpecCompliantForm:Ky,toJSONObject:Jy,isAsyncFn:Yy,isThenable:Wy};function W(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)}A.inherits(W,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:A.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const eu=W.prototype,ru={};["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=>{ru[e]={value:e}});Object.defineProperties(W,ru);Object.defineProperty(eu,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,s)=>{const o=Object.create(eu);return A.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Gy=null;function ai(e){return A.isPlainObject(e)||A.isArray(e)}function nu(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Oo(e,t,r){return e?e.concat(t).map(function(n,i){return n=nu(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Zy(e){return A.isArray(e)&&!e.some(ai)}const Qy=A.toFlatObject(A,{},null,function(e){return/^is[A-Z]/.test(e)});function an(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!A.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||c,s=r.dots,o=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(A.isDate(p))return p.toISOString();if(!a&&A.isBlob(p))throw new W("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(p)||A.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(A.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(A.isArray(p)&&Zy(p)||(A.isFileList(p)||A.endsWith(d,"[]"))&&(b=A.toArray(p)))return d=nu(d),b.forEach(function(S,v){!(A.isUndefined(S)||S===null)&&t.append(o===!0?Oo([d],v,s):o===null?d:d+"[]",l(S))}),!1}return ai(p)?!0:(t.append(Oo(m,d,s),l(p)),!1)}const u=[],h=Object.assign(Qy,{defaultVisitor:c,convertValue:l,isVisitable:ai});function f(p,d){if(!A.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));u.push(p),A.forEach(p,function(m,b){(!(A.isUndefined(m)||m===null)&&i.call(t,m,A.isString(b)?b.trim():b,d,h))===!0&&f(m,d?d.concat(b):[b])}),u.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Ao(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ki(e,t){this._pairs=[],e&&an(e,this,t)}const iu=Ki.prototype;iu.append=function(e,t){this._pairs.push([e,t])};iu.toString=function(e){const t=e?function(r){return e.call(this,r,Ao)}:Ao;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Xy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function su(e,t,r){if(!t)return e;const n=r&&r.encode||Xy,i=r&&r.serialize;let s;if(i?s=i(t,r):s=A.isURLSearchParams(t)?t.toString():new Ki(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class $o{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){A.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ou={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tb=typeof URLSearchParams<"u"?URLSearchParams:Ki,eb=typeof FormData<"u"?FormData:null,rb=typeof Blob<"u"?Blob:null,nb={isBrowser:!0,classes:{URLSearchParams:tb,FormData:eb,Blob:rb},protocols:["http","https","file","blob","url","data"]},au=typeof window<"u"&&typeof document<"u",ib=(e=>au&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),sb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ob=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:au,hasStandardBrowserEnv:ib,hasStandardBrowserWebWorkerEnv:sb},Symbol.toStringTag,{value:"Module"})),jt=K(K({},ob),nb);function ab(e,t){return an(e,new jt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return jt.isNode&&A.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function cb(e){return A.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 cu(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=r.length;return o=!o&&A.isArray(i)?i.length:o,l?(A.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!A.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&A.isArray(i[o])&&(i[o]=ub(i[o])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(cb(n),i,r,0)}),r}return null}function lb(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const or={transitional:ou,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=A.isObject(e);if(i&&A.isHTMLForm(e)&&(e=new FormData(e)),A.isFormData(e))return n?JSON.stringify(cu(e)):e;if(A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e))return e;if(A.isArrayBufferView(e))return e.buffer;if(A.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 ab(e,this.formSerializer).toString();if((s=A.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return an(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),lb(e)):e}],transformResponse:[function(e){const t=this.transitional||or.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(e&&A.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"?W.from(s,W.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:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{or.headers[e]={}});const hb=A.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"]),fb=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]&&hb[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},jo=Symbol("internals");function Ie(e){return e&&String(e).trim().toLowerCase()}function Dr(e){return e===!1||e==null?e:A.isArray(e)?e.map(Dr):String(e)}function pb(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 db=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $n(e,t,r,n,i){if(A.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!A.isString(t)){if(A.isString(n))return t.indexOf(n)!==-1;if(A.isRegExp(n))return n.test(t)}}function mb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function gb(e,t){const r=A.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 St=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,l,c){const u=Ie(l);if(!u)throw new Error("header name must be a non-empty string");const h=A.findKey(i,u);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||l]=Dr(a))}const o=(a,l)=>A.forEach(a,(c,u)=>s(c,u,l));return A.isPlainObject(t)||t instanceof this.constructor?o(t,r):A.isString(t)&&(t=t.trim())&&!db(t)?o(fb(t),r):t!=null&&s(r,t,n),this}get(t,r){if(t=Ie(t),t){const n=A.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return pb(i);if(A.isFunction(r))return r.call(this,i,n);if(A.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ie(t),t){const n=A.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||$n(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=Ie(o),o){const a=A.findKey(n,o);a&&(!r||$n(n,n[a],a,r))&&(delete n[a],i=!0)}}return A.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||$n(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return A.forEach(this,(i,s)=>{const o=A.findKey(n,s);if(o){r[o]=Dr(i),delete r[s];return}const a=t?mb(s):String(s).trim();a!==s&&delete r[s],r[a]=Dr(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return A.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&A.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[jo]=this[jo]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=Ie(s);r[o]||(gb(n,s),r[o]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}};St.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(St.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});A.freezeMethods(St);function jn(e,t){const r=this||or,n=t||r,i=St.from(n.headers);let s=n.data;return A.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function uu(e){return!!(e&&e.__CANCEL__)}function ar(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(ar,W,{__CANCEL__:!0});function vb(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const yb=jt.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];A.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),A.isString(n)&&o.push("path="+n),A.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 bb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _b(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function lu(e,t){return e&&!bb(t)?_b(e,t):t}const wb=jt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(i){let s=i;return e&&(t.setAttribute("href",s),s=t.href),t.setAttribute("href",s),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(i){const s=A.isString(i)?n(i):i;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function Eb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Sb(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 l=Date.now(),c=n[s];o||(o=l),r[i]=a,n[i]=l;let u=s,h=0;for(;u!==i;)h+=r[u++],u=u%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(h*1e3/f):void 0}}function Ro(e,t){let r=0;const n=Sb(50,250);return i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-r,l=n(a),c=s<=o;r=s;const u={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-s)/l:void 0,event:i};u[t?"download":"upload"]=!0,e(u)}}const xb=typeof XMLHttpRequest<"u",Tb=xb&&function(e){return new Promise(function(t,r){let n=e.data;const i=St.from(e.headers).normalize();let{responseType:s,withXSRFToken:o}=e,a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let c;if(A.isFormData(n)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[d,...m]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...m].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+m))}const h=lu(e.baseURL,e.url);u.open(e.method.toUpperCase(),su(h,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const d=St.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:d,config:e,request:u};vb(function(b){t(b),l()},function(b){r(b),l()},m),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new W("Request aborted",W.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||ou;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new W(d,m.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,u)),u=null},jt.hasStandardBrowserEnv&&(o&&A.isFunction(o)&&(o=o(e)),o||o!==!1&&wb(h))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&yb.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}n===void 0&&i.setContentType(null),"setRequestHeader"in u&&A.forEach(i.toJSON(),function(d,m){u.setRequestHeader(m,d)}),A.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Ro(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ro(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=d=>{u&&(r(!d||d.type?new ar(null,e,u):d),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=Eb(h);if(p&&jt.protocols.indexOf(p)===-1){r(new W("Unsupported protocol "+p+":",W.ERR_BAD_REQUEST,e));return}u.send(n||null)})},ci={http:Gy,xhr:Tb};A.forEach(ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Do=e=>`- ${e}`,Ob=e=>A.isFunction(e)||e===null||e===!1,hu={getAdapter:e=>{e=A.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,!Ob(r)&&(n=ci[(o=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
|
|
69
69
|
`+s.map(Do).join(`
|
|
70
|
-
`):" "+Do(s[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:ci};function Rn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ar(null,e)}function Po(e){return Rn(e),e.headers=
|
|
71
|
-
`+s):n.stack=s}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ae(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&ui.assertOptions(n,{silentJSONParsing:Lt.transitional(Lt.boolean),forcedJSONParsing:Lt.transitional(Lt.boolean),clarifyTimeoutError:Lt.transitional(Lt.boolean)},!1),i!=null&&(A.isFunction(i)?r.paramsSerializer={serialize:i}:ui.assertOptions(i,{encode:Lt.function,serialize:Lt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&A.merge(s.common,s[r.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=Et.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let u,h=0,f;if(!l){const d=[Po.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,c),f=d.length,u=Promise.resolve(r);h<f;)u=u.then(d[h++],d[h++]);return u}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{u=Po.call(this,p)}catch(d){return Promise.reject(d)}for(h=0,f=c.length;h<f;)u=u.then(c[h++],c[h++]);return u}getUri(t){t=Ae(this.defaults,t);const r=lu(t.baseURL,t.url);return su(r,t.params,t.paramsSerializer)}}A.forEach(["delete","get","head","options"],function(e){ee.prototype[e]=function(t,r){return this.request(Ae(r||{},{method:e,url:t,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Ae(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ee.prototype[e]=t(),ee.prototype[e+"Form"]=t(!0)});class Yi{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 ar(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)}static source(){let t;return{token:new Yi(function(r){t=r}),cancel:t}}}function $b(e){return function(t){return e.apply(null,t)}}function jb(e){return A.isObject(e)&&e.isAxiosError===!0}const li={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(li).forEach(([e,t])=>{li[t]=e});function pu(e){const t=new ee(e),r=Jc(ee.prototype.request,t);return A.extend(r,ee.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return pu(Ae(e,n))},r}const et=pu(or);et.Axios=ee;et.CanceledError=ar;et.CancelToken=Yi;et.isCancel=uu;et.VERSION=fu;et.toFormData=an;et.AxiosError=W;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=$b;et.isAxiosError=jb;et.mergeConfig=Ae;et.AxiosHeaders=Et;et.formToJSON=e=>cu(A.isHTMLForm(e)?new FormData(e):e);et.getAdapter=hu.getAdapter;et.HttpStatusCode=li;et.default=et;const Rb={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Db=["put","post","patch"],hi="Local-Request-Id",Pb=100,Cb=300;class Wi{constructor(t={}){bt(this,"axios"),bt(this,"settings"),bt(this,"records",{}),bt(this,"isLoading",!1),bt(this,"stopSkipWarn"),bt(this,"showLoading"),bt(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=Or(t,["settings","query"]);this.axios=et.create($t({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Di(this.openLoading.bind(this),Pb),this.showError=Ya(this._showError.bind(this),Cb,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=$t(this.settings,t.settings||{});const r=Or(t,["settings","query"]);this.axios.defaults=$t(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=K(K({"Content-Type":Rb[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[hi]=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:l="skipWarn"}=a||{};let{data:c,params:u={},method:h="get"}=r;const f=i?{[l]:!0}:{};return Db.includes(h.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(n)?this.toFormData(c,o):c,u=K({},s)):o==="form"?u=K(K(K({},c||{}),s),f):(c&&(o!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,o)),u=K(K({},s),f)),{data:c,params:u}}createUrl(t){let{url:r,params:n}=t;if(r)try{return Ac(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=$t({},this.settings,t.settings||{}),i=t.query||{},s=Or(t,["settings","query"]),o=bc(!1),a=et.CancelToken.source();this.records[o]={settings:n,config:s,source:a};const l=this.createUrl(s),c=this.createHeaders(o,n,s),{data:u,params:h}=this.createSendData(n,s,c,r,i);return this.showLoading(n),new Promise((f,p)=>{this.axios(xt(K({cancelToken:a.token},s),{url:l,headers:c,data:u,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||{})[hi],l=this.records[a];if(!l)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 u=new Promise(n).then(()=>this.send(xt(K({},l.config),{settings:l.settings}),!0));u.catch(h=>h).finally(()=>{s&&s()}),o.promise=u}return o})}}function Gi(e={}){const t=new Wi(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,xt(K({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const du=Gi({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function mu(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>du.send($t(t,n||{},{data:r}))}function kb(e){const t={};for(const[r,n]of Object.entries(e))t[r]=mu(n);return t}function Bb(e,t){const r=On(null),n=On(),i=On(!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 $e=typeof window<"u",Nb=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function gu(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function Ib(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 Mb(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const Fb=e=>$e?window.requestAnimationFrame(e):setTimeout(e,16),Lb=e=>$e?window.cancelAnimationFrame(e):clearTimeout(e);class Zi{constructor(t={}){bt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),bt(this,"caches",{}),bt(this,"types"),this.types={local:$e?window.localStorage:this.caches,session:$e?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}=K(K({},this.options),n),a=Date.now(),l=o+t,c=this.types[i]||this.caches,u={value:r,timestamp:a,expired:s};c===this.caches?c[l]=u:c.setItem(l,JSON.stringify(u))}get(t,r={}){const{type:n,prefix:i}=K(K({},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:l,timestamp:c,expired:u}=a;return u>0&&c+u<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=K(K({},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}=K(K({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Pr=new Zi;var Vb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fi={exports:{}};(function(e,t){(function(r,n){n(t,e)})(Vb,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(u){window[c]=void 0}}function a(c){var u=document.getElementById(c);u&&document.getElementsByTagName("head")[0].removeChild(u)}function l(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,f=u.timeout||i.timeout,p=u.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var S=u.jsonpCallbackFunction||s(),v=p+"_"+S;window[S]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(v),o(S)},h+=h.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+h+p+"="+S),u.charset&&y.setAttribute("charset",u.charset),u.nonce&&y.setAttribute("nonce",u.nonce),u.referrerPolicy&&y.setAttribute("referrerPolicy",u.referrerPolicy),u.crossorigin&&y.setAttribute("crossorigin","true"),y.id=v,document.getElementsByTagName("head")[0].appendChild(y),d=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(S),a(v),window[S]=function(){o(S)}},f),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(S),a(v),d&&clearTimeout(d)}})}n.exports=l})})(fi,fi.exports);var Hb=fi.exports;const Ub=vu(Hb);function zb(e){if($e){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function qb(e=""){const t=e.match(Ci);return t?t[0]:""}function yu(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 pi(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 bu(e,t){t=typeof t=="string"?pi(t):t;const r=e.split("?")[0],n=pi(e),i=Object.assign({},n,t),s=yu(i);return s?[r,s].join("?"):e}const re=Object.freeze(Object.defineProperty({__proto__:null,append:bu,getCurrentHost:zb,getHost:qb,parse:pi,stringify:yu},Symbol.toStringTag,{value:"Module"}));function _u(r){return V(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Ja(e)(n||{}));const i=bu(e,n);return yield(yield Ub(i,t)).json()})}var Kb=function(e,t,r){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof t=="function"&&(r=t,t={}),t=t||{},r=r||function(){},i.type=t.type||"text/javascript",i.charset=t.charset||"utf8",i.async="async"in t?!!t.async:!0,i.src=e,t.attrs&&Jb(i,t.attrs),t.text&&(i.text=""+t.text);var s="onload"in i?Bo:Yb;s(i,r),i.onload||Bo(i,r),n.appendChild(i)};function Jb(e,t){for(var r in t)e.setAttribute(r,t[r])}function Bo(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Yb(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const Wb=vu(Kb);function di(e,t={}){return new Promise((r,n)=>{const{library:i}=t;Wb(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const No={debug:-1,log:0,info:0,warn:1,error:2},Gb=function(e,t,r,n){return function(...i){if(t&&No[t]<=No[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Zb(i,r))}};function Zb(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Qb(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 Xb={level:"warn",bizName:"*"};let wu=class{constructor(t){bt(this,"config"),bt(this,"options"),this.options=K(K({},Xb),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Qb(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Gb(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 Eu(e){return new wu(e)}const Qe=Eu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function wr(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 t_={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 mi(e,t){function r(i,s,o){if(!(typeof document>"u")){o=wr({},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 l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].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 l=s[a].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(o[u]=e.read(c,u),i===u)break}catch(h){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",wr({},s,{expires:-1}))},withAttributes:function(i){return mi(this.converter,wr({},this.attributes,i))},withConverter:function(i){return mi(wr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Qi=mi(t_,{path:"/"});function e_(e,t,r){Qi.set(e,t,r)}function r_(e){return Qi.get(e)}function n_(e,t){Qi.remove(e,t)}const Cr=Object.freeze(Object.defineProperty({__proto__:null,get:r_,remove:n_,set:e_},Symbol.toStringTag,{value:"Module"}));function i_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function Xi(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 s_(e,t="",r){return V(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>V(this,null,function*(){const i=yield n.blob();return Xi(i,t,r),i}))})}function o_(e,t=""){const r=JSON.stringify(e);Xi(r,t,"application/json")}const jw=Object.freeze(Object.defineProperty({__proto__:null,AES:Z0,LOCAL_REQUEST_ID:hi,Logger:wu,MD5:J0,RSA:G0,Request:Wi,Storage:Zi,VTJ_UTILS_VERSION:Lv,arrayToKv:fv,arrayToMap:_c,arrayToTree:yv,avg:mv,axios:et,base64:Y0,blobToFile:Mb,cAF:Lb,camelCase:Vt,cloneDeep:Ri,compress:Ov,cookie:Cr,createApi:mu,createApis:kb,createRequest:Gi,dataURLtoBlob:Ib,dateFormat:av,dayjs:ki,debounce:Di,decompress:Av,dedupArray:wc,delay:be,downloadBlob:Xi,downloadJson:o_,downloadRemoteFile:s_,downloadUrl:i_,fileToBase64:Nb,flatChildren:xc,formDataToJson:gu,get:ia,getLogger:Eu,groupBy:Ua,isArray:ht,isArrayBuffer:Rg,isBoolean:Pg,isBuffer:xe,isCarNo:rv,isClient:$e,isDate:Ng,isDef:uv,isEmail:X0,isEqual:Ig,isFunction:ne,isIdCardNo:tv,isMobilePhone:ev,isNaN:Fg,isNull:Lg,isNumber:za,isObject:ot,isPlainObject:Ai,isString:gt,isSymbol:tr,isUndefined:Vg,isUrl:fc,jsonp:_u,kebabCase:Ug,kvToArray:pv,loadScript:di,logger:Qe,lowerFirst:qg,mapToObject:tn,merge:$t,mitt:Oc,noop:ch,now:lv,numberFormat:iv,numeral:dc,omit:Or,pathToRegexp:en,pathToRegexpCompile:Ac,pathToRegexpMatch:$c,pathToRegexpParse:Bi,pick:Ec,rAF:Fb,rCar:hc,rEmail:cc,rID:uc,rMobile:lc,rURL:Ci,random:hv,request:du,set:Yg,snakeCase:Gg,splitParser:gv,splitStringify:vv,storage:Pr,sum:Sc,template:Ja,throttle:Ya,timestamp:yc,toArray:Wn,toFixed:sv,toRawType:cv,toTypeString:vc,trim:Gn,uid:dt,unAES:Q0,unBase64:W0,unRSA:Yn,upperFirst:Zr,upperFirstCamelCase:qn,url:re,useApi:Bb,uuid:bc,zipObject:dv},Symbol.toStringTag,{value:"Module"}));/**!
|
|
70
|
+
`):" "+Do(s[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:ci};function Rn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ar(null,e)}function Po(e){return Rn(e),e.headers=St.from(e.headers),e.data=jn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hu.getAdapter(e.adapter||or.adapter)(e).then(function(t){return Rn(e),t.data=jn.call(e,e.transformResponse,t),t.headers=St.from(t.headers),t},function(t){return uu(t)||(Rn(e),t&&t.response&&(t.response.data=jn.call(e,e.transformResponse,t.response),t.response.headers=St.from(t.response.headers))),Promise.reject(t)})}const Co=e=>e instanceof St?K({},e):e;function Ae(e,t){t=t||{};const r={};function n(c,u,h){return A.isPlainObject(c)&&A.isPlainObject(u)?A.merge.call({caseless:h},c,u):A.isPlainObject(u)?A.merge({},u):A.isArray(u)?u.slice():u}function i(c,u,h){if(A.isUndefined(u)){if(!A.isUndefined(c))return n(void 0,c,h)}else return n(c,u,h)}function s(c,u){if(!A.isUndefined(u))return n(void 0,u)}function o(c,u){if(A.isUndefined(u)){if(!A.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,h){if(h in t)return n(c,u);if(h in e)return n(void 0,c)}const l={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,u)=>i(Co(c),Co(u),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(c){const u=l[c]||i,h=u(e[c],t[c],c);A.isUndefined(h)&&u!==a||(r[c]=h)}),r}const fu="1.6.8",Ji={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ji[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ko={};Ji.transitional=function(e,t,r){function n(i,s){return"[Axios v"+fu+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new W(n(s," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!ko[s]&&(ko[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}};function Ab(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.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],l=a===void 0||o(a,s,e);if(l!==!0)throw new W("option "+s+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const ui={assertOptions:Ab,validators:Ji},Lt=ui.validators;class ee{constructor(t){this.defaults=t,this.interceptors={request:new $o,response:new $o}}request(t,r){return V(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/,""):"";n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
71
|
+
`+s):n.stack=s}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ae(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&ui.assertOptions(n,{silentJSONParsing:Lt.transitional(Lt.boolean),forcedJSONParsing:Lt.transitional(Lt.boolean),clarifyTimeoutError:Lt.transitional(Lt.boolean)},!1),i!=null&&(A.isFunction(i)?r.paramsSerializer={serialize:i}:ui.assertOptions(i,{encode:Lt.function,serialize:Lt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&A.merge(s.common,s[r.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=St.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let u,h=0,f;if(!l){const d=[Po.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,c),f=d.length,u=Promise.resolve(r);h<f;)u=u.then(d[h++],d[h++]);return u}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{u=Po.call(this,p)}catch(d){return Promise.reject(d)}for(h=0,f=c.length;h<f;)u=u.then(c[h++],c[h++]);return u}getUri(t){t=Ae(this.defaults,t);const r=lu(t.baseURL,t.url);return su(r,t.params,t.paramsSerializer)}}A.forEach(["delete","get","head","options"],function(e){ee.prototype[e]=function(t,r){return this.request(Ae(r||{},{method:e,url:t,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Ae(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ee.prototype[e]=t(),ee.prototype[e+"Form"]=t(!0)});class Yi{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 ar(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)}static source(){let t;return{token:new Yi(function(r){t=r}),cancel:t}}}function $b(e){return function(t){return e.apply(null,t)}}function jb(e){return A.isObject(e)&&e.isAxiosError===!0}const li={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(li).forEach(([e,t])=>{li[t]=e});function pu(e){const t=new ee(e),r=Jc(ee.prototype.request,t);return A.extend(r,ee.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return pu(Ae(e,n))},r}const et=pu(or);et.Axios=ee;et.CanceledError=ar;et.CancelToken=Yi;et.isCancel=uu;et.VERSION=fu;et.toFormData=an;et.AxiosError=W;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=$b;et.isAxiosError=jb;et.mergeConfig=Ae;et.AxiosHeaders=St;et.formToJSON=e=>cu(A.isHTMLForm(e)?new FormData(e):e);et.getAdapter=hu.getAdapter;et.HttpStatusCode=li;et.default=et;const Rb={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Db=["put","post","patch"],hi="Local-Request-Id",Pb=100,Cb=300;class Wi{constructor(t={}){_t(this,"axios"),_t(this,"settings"),_t(this,"records",{}),_t(this,"isLoading",!1),_t(this,"stopSkipWarn"),_t(this,"showLoading"),_t(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=Or(t,["settings","query"]);this.axios=et.create($t({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Di(this.openLoading.bind(this),Pb),this.showError=Ya(this._showError.bind(this),Cb,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=$t(this.settings,t.settings||{});const r=Or(t,["settings","query"]);this.axios.defaults=$t(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=K(K({"Content-Type":Rb[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[hi]=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:l="skipWarn"}=a||{};let{data:c,params:u={},method:h="get"}=r;const f=i?{[l]:!0}:{};return Db.includes(h.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(n)?this.toFormData(c,o):c,u=K({},s)):o==="form"?u=K(K(K({},c||{}),s),f):(c&&(o!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,o)),u=K(K({},s),f)),{data:c,params:u}}createUrl(t){let{url:r,params:n}=t;if(r)try{return Ac(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=$t({},this.settings,t.settings||{}),i=t.query||{},s=Or(t,["settings","query"]),o=bc(!1),a=et.CancelToken.source();this.records[o]={settings:n,config:s,source:a};const l=this.createUrl(s),c=this.createHeaders(o,n,s),{data:u,params:h}=this.createSendData(n,s,c,r,i);return this.showLoading(n),new Promise((f,p)=>{this.axios(gt(K({cancelToken:a.token},s),{url:l,headers:c,data:u,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||{})[hi],l=this.records[a];if(!l)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 u=new Promise(n).then(()=>this.send(gt(K({},l.config),{settings:l.settings}),!0));u.catch(h=>h).finally(()=>{s&&s()}),o.promise=u}return o})}}function Gi(e={}){const t=new Wi(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,gt(K({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const du=Gi({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function mu(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>du.send($t(t,n||{},{data:r}))}function kb(e){const t={};for(const[r,n]of Object.entries(e))t[r]=mu(n);return t}function Bb(e,t){const r=On(null),n=On(),i=On(!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 $e=typeof window<"u",Nb=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function gu(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function Ib(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 Mb(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const Fb=e=>$e?window.requestAnimationFrame(e):setTimeout(e,16),Lb=e=>$e?window.cancelAnimationFrame(e):clearTimeout(e);class Zi{constructor(t={}){_t(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),_t(this,"caches",{}),_t(this,"types"),this.types={local:$e?window.localStorage:this.caches,session:$e?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}=K(K({},this.options),n),a=Date.now(),l=o+t,c=this.types[i]||this.caches,u={value:r,timestamp:a,expired:s};c===this.caches?c[l]=u:c.setItem(l,JSON.stringify(u))}get(t,r={}){const{type:n,prefix:i}=K(K({},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:l,timestamp:c,expired:u}=a;return u>0&&c+u<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=K(K({},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}=K(K({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Pr=new Zi;var Vb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fi={exports:{}};(function(e,t){(function(r,n){n(t,e)})(Vb,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(u){window[c]=void 0}}function a(c){var u=document.getElementById(c);u&&document.getElementsByTagName("head")[0].removeChild(u)}function l(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,f=u.timeout||i.timeout,p=u.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var S=u.jsonpCallbackFunction||s(),v=p+"_"+S;window[S]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(v),o(S)},h+=h.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+h+p+"="+S),u.charset&&y.setAttribute("charset",u.charset),u.nonce&&y.setAttribute("nonce",u.nonce),u.referrerPolicy&&y.setAttribute("referrerPolicy",u.referrerPolicy),u.crossorigin&&y.setAttribute("crossorigin","true"),y.id=v,document.getElementsByTagName("head")[0].appendChild(y),d=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(S),a(v),window[S]=function(){o(S)}},f),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(S),a(v),d&&clearTimeout(d)}})}n.exports=l})})(fi,fi.exports);var Hb=fi.exports;const Ub=vu(Hb);function zb(e){if($e){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function qb(e=""){const t=e.match(Ci);return t?t[0]:""}function yu(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 pi(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 bu(e,t){t=typeof t=="string"?pi(t):t;const r=e.split("?")[0],n=pi(e),i=Object.assign({},n,t),s=yu(i);return s?[r,s].join("?"):e}const re=Object.freeze(Object.defineProperty({__proto__:null,append:bu,getCurrentHost:zb,getHost:qb,parse:pi,stringify:yu},Symbol.toStringTag,{value:"Module"}));function _u(r){return V(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Ja(e)(n||{}));const i=bu(e,n);return yield(yield Ub(i,t)).json()})}var Kb=function(e,t,r){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof t=="function"&&(r=t,t={}),t=t||{},r=r||function(){},i.type=t.type||"text/javascript",i.charset=t.charset||"utf8",i.async="async"in t?!!t.async:!0,i.src=e,t.attrs&&Jb(i,t.attrs),t.text&&(i.text=""+t.text);var s="onload"in i?Bo:Yb;s(i,r),i.onload||Bo(i,r),n.appendChild(i)};function Jb(e,t){for(var r in t)e.setAttribute(r,t[r])}function Bo(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Yb(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const Wb=vu(Kb);function di(e,t={}){return new Promise((r,n)=>{const{library:i}=t;Wb(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const No={debug:-1,log:0,info:0,warn:1,error:2},Gb=function(e,t,r,n){return function(...i){if(t&&No[t]<=No[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Zb(i,r))}};function Zb(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Qb(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 Xb={level:"warn",bizName:"*"};let wu=class{constructor(t){_t(this,"config"),_t(this,"options"),this.options=K(K({},Xb),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Qb(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Gb(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 Eu(e){return new wu(e)}const Qe=Eu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function wr(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 t_={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 mi(e,t){function r(i,s,o){if(!(typeof document>"u")){o=wr({},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 l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].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 l=s[a].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(o[u]=e.read(c,u),i===u)break}catch(h){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",wr({},s,{expires:-1}))},withAttributes:function(i){return mi(this.converter,wr({},this.attributes,i))},withConverter:function(i){return mi(wr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Qi=mi(t_,{path:"/"});function e_(e,t,r){Qi.set(e,t,r)}function r_(e){return Qi.get(e)}function n_(e,t){Qi.remove(e,t)}const Cr=Object.freeze(Object.defineProperty({__proto__:null,get:r_,remove:n_,set:e_},Symbol.toStringTag,{value:"Module"}));function i_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function Xi(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 s_(e,t="",r){return V(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>V(this,null,function*(){const i=yield n.blob();return Xi(i,t,r),i}))})}function o_(e,t=""){const r=JSON.stringify(e);Xi(r,t,"application/json")}const jw=Object.freeze(Object.defineProperty({__proto__:null,AES:Z0,LOCAL_REQUEST_ID:hi,Logger:wu,MD5:J0,RSA:G0,Request:Wi,Storage:Zi,VTJ_UTILS_VERSION:Lv,arrayToKv:fv,arrayToMap:_c,arrayToTree:yv,avg:mv,axios:et,base64:Y0,blobToFile:Mb,cAF:Lb,camelCase:Vt,cloneDeep:Ri,compress:Ov,cookie:Cr,createApi:mu,createApis:kb,createRequest:Gi,dataURLtoBlob:Ib,dateFormat:av,dayjs:ki,debounce:Di,decompress:Av,dedupArray:wc,delay:be,downloadBlob:Xi,downloadJson:o_,downloadRemoteFile:s_,downloadUrl:i_,fileToBase64:Nb,flatChildren:xc,formDataToJson:gu,get:ia,getLogger:Eu,groupBy:Ua,isArray:ht,isArrayBuffer:Rg,isBoolean:Pg,isBuffer:xe,isCarNo:rv,isClient:$e,isDate:Ng,isDef:uv,isEmail:X0,isEqual:Ig,isFunction:ne,isIdCardNo:tv,isMobilePhone:ev,isNaN:Fg,isNull:Lg,isNumber:za,isObject:ot,isPlainObject:Ai,isString:vt,isSymbol:tr,isUndefined:Vg,isUrl:fc,jsonp:_u,kebabCase:Ug,kvToArray:pv,loadScript:di,logger:Qe,lowerFirst:qg,mapToObject:tn,merge:$t,mitt:Oc,noop:ch,now:lv,numberFormat:iv,numeral:dc,omit:Or,pathToRegexp:en,pathToRegexpCompile:Ac,pathToRegexpMatch:$c,pathToRegexpParse:Bi,pick:Ec,rAF:Fb,rCar:hc,rEmail:cc,rID:uc,rMobile:lc,rURL:Ci,random:hv,request:du,set:Yg,snakeCase:Gg,splitParser:gv,splitStringify:vv,storage:Pr,sum:Sc,template:Ja,throttle:Ya,timestamp:yc,toArray:Wn,toFixed:sv,toRawType:cv,toTypeString:vc,trim:Gn,uid:dt,unAES:Q0,unBase64:W0,unRSA:Yn,upperFirst:Zr,upperFirstCamelCase:qn,url:re,useApi:Bb,uuid:bc,zipObject:dv},Symbol.toStringTag,{value:"Module"}));/**!
|
|
72
72
|
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
73
73
|
* @name @vtj/renderer
|
|
74
74
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
75
|
-
* @version 0.9.0-alpha.
|
|
75
|
+
* @version 0.9.0-alpha.14
|
|
76
76
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
77
|
-
*/const Se="0.9.0-alpha.
|
|
78
|
-
`)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(Qe.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function vi(e,t,r=!1,n=!1){var s;const i=je(e,t,r,n);if(typeof i!="function"&&(Qe.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 St(e){return e&&e.type==="JSExpression"}function cr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Cu(e){return St(e)||cr(e)}function l_(e){return Cu(e)?e.value:JSON.stringify(e)}let fe=null;const h_=Gi({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=>{qr.error({message:e||"未知错误"})},showLoading:()=>{fe&&fe.close(),fe=ml.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{fe&&(fe.close(),fe=null)}}});let ve;function ku(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,xt(K({},e.jsonpOptions),{query:i}));{const i=e.headers?je(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:xt(K({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send($t(s,a||{},{data:o})))}}function Bu(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 Nu(e=[],t=[],r){const n={};for(const i of e)n[i.id]=ku(i,r);for(const i of t)n[i.id]=Bu(i,r);return n}function Iu(){return V(this,arguments,function*(e=[]){ve=yield Er(()=>import("./mockjs-DFJTfpjR.js").then(t=>t.m),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t),ve&&(ve.setup({timeout:"50-500"}),ns(),e.forEach(t=>Mu(ve,t)))})}function Mu(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=en(`${r}(.*)`),s=$c(r,{decode:decodeURIComponent}),o=je(n,{},!0);e.mock(i,a=>{var h;const l=re.parse(a.url)||{},c=a.body instanceof FormData?gu(a.body):a.body,u=(h=s(a.url))==null?void 0:h.params;return Object.assign(a,{data:c,params:l,query:u}),e.mock(o(a))})}}function ns(){ve&&(ve._mocked={})}const f_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",keyPrefix:""},is=Symbol("access");class Fu{constructor(t){j(this,"options");j(this,"data",null);j(this,"mode",lt.Raw);this.options=Object.assign({},f_,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&r===lt.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&&(Pr.save(r,t,{type:"local",prefix:n}),i&&Cr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Pr.remove(t,{type:"local",prefix:r}),n&&Cr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data}getToken(){var t;return(t=this.data)==null?void 0:t.token}can(t){const{keyPrefix:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):Wn(t).every(i=>n[i]||n[r+i])}some(t){const{keyPrefix:r}=this.options,{permissions:n={}}=this.data||{};return Wn(t).some(i=>n[i]||n[r+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this),t.provide(is,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||this.mode!==lt.Raw)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=>Yn(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?Yn(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=Pr.get(t,{type:"local",prefix:r});this.setData(n)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Cr.get(r):!!this.data}hasRoutePermission(t){if(t.name===cn){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){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 this.showTip(n),ne(i)?(i(),r(!1)):gt(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 V(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return V(this,null,function*(){const{alert:r}=this.options;return r?(yield be(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=>V(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>V(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Lu(){return Mo(is,null)}class Vu{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=Ur){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&&gi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){gi.forEach(t=>{this[t]=null})}__parseFunction(t){var r;if(t)if(this.__mode===lt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return vi({type:i,value:s},this)}else return vi(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===lt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return je({type:i,value:s},this)}else return je(t,this)}__ref(t=null,r){if(this.__mode!==lt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>V(this,null,function*(){var s,o;yield be(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,lt.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 l=new Set([].concat(a,n));this.$refs[r]=Array.from(l)}else this.$refs[r]=n}return n})}__clone(t={}){const r=K(K({},this.context),t),n=xt(K({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Vr(e){var h,f;const{Vue:t=Ur,mode:r=lt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},c=new Vu({mode:r,dsl:a.value,attrs:l}),u=t.defineComponent(K({name:a.value.name,props:K({},d_((h=a.value.props)!=null?h:[],c)),setup(p){var y,_,E,g;c.$props=p,c.props=p,a.value.id&&rs(e.window||window,a.value.id,a.value.css||""),c.state=m_(t,(y=a.value.state)!=null?y:{},c);const d=g_(t,(_=a.value.computed)!=null?_:{},c),m=v_((E=a.value.methods)!=null?E:{},c),b=y_(t,a.value.inject,c),S=Hu(a.value.dataSources||{},c),v=K(K(K(K({},b),d),m),S);return c.setup(v,t),b_(t,(g=a.value.watch)!=null?g:[],c),{vtj:c}},emits:p_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?Xe(p[0],c,t,o):p.map(d=>Xe(d,c,t,o))}},__((f=a.value.lifeCycles)!=null?f:{},c)));return{renderer:t.markRaw(u),context:c}}function p_(e=[]){return e.map(t=>gt(t)?t:t.name)}function d_(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>xu[i]):void 0;return e.map(n=>gt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:St(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 m_(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return St(s)?s=r.__parseExpression(s):cr(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function g_(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function v_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function y_(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=St(o)?r.__parseExpression(o)||s:o!=null?o:s,l=St(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,l),n},{})}function Hu(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n],s=t.$apis[i.ref],o=cr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;return r[n]=(...a)=>V(this,null,function*(){const l=yield s.apply(t,a);return o?o(l):l}),r},{})}function b_(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function __(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Dn=[];const Uu=e=>e;function ss(r){return V(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>ln(a));if(s.length===0||!i)return null;const o=n.filter(a=>un(a));return o.length&&Ru(o,t),yield Du(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function Hr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Dn.forEach(i=>{delete n.window[i]}),Dn=[]),(i,s,o=Ur)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>V(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?Vr(xt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:Hr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>V(this,null,function*(){const a=yield r(s.url);return a&&(a.name=i),a?Vr(xt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:Hr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Dn.push(s.library),o.defineAsyncComponent(()=>V(this,null,function*(){return(yield ss(s,n.window))||(console.warn("getPlugin result is null",s),null)}))):i}function Xe(e,t,r=Ur,n=Uu){if(!e||!e.name||e.invisible)return null;const{id:i=null,directives:s=[]}=e,{vIf:o,vFor:a,vShow:l,vModels:c,vBind:u}=w_(s);if(o&&!E_(o,t))return null;const h=f=>{var v,y,_,E;const p=f.$components,d=(()=>{var x,O;if(e.name==="component")return S_(f,(x=e.props)==null?void 0:x.is);if(e.name==="slot")return e.name;const g=n(e.name,e.from,r);return gt(g)&&(O=p[g])!=null?O:g})(),m=x_(i,(v=e.props)!=null?v:{},f),b=T_(r,(y=e.events)!=null?y:{},f);if(e.name==="slot")return O_(r,e,m,f,n);u&&Object.assign(m,f.__parseExpression(u.value)),l&&(m.style=Object.assign((_=m.style)!=null?_:{},$_(l,f))),c.forEach(g=>{Object.assign(m,j_(r,g,f))});const S=R_(r,(E=e.children)!=null?E:[],f,n,e);return r.createVNode(d,K(K({},m),b),S)};return a?C_(a,h,t):h(t)}function w_(e=[]){const t=e.find(a=>Vt(a.name)==="vIf"),r=e.find(a=>Vt(a.name)==="vFor"),n=e.find(a=>Vt(a.name)==="vShow"),i=e.find(a=>Vt(a.name)==="vBind"),s=e.filter(a=>Vt(a.name)==="vModel"),o=e.filter(a=>!Su.includes(Vt(a.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:o}}function E_(e,t){return!!t.__parseExpression(e.value)}function S_(e,t){return t?St(t)?e.__parseExpression(t):t:"div"}function x_(e,t,r){const n=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return St(o)?o=r.__parseExpression(o):cr(o)&&(o=r.__parseFunction(o)),i[s]=o,i},{});return n.ref=r.__ref(e,n.ref),n}function T_(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],l=os(a.modifiers),c=l.find(f=>n.includes(f)),u="on"+Zr(o)+(c&&i[c]||""),h=r.__parseFunction(a.handler);return h&&(s[u]=e.withModifiers(h,l)),s},{})}function os(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function O_(e,t,r,n,i){var l;const{children:s}=t,o=A_(t,n),a=(l=n.$slots)==null?void 0:l[o.name];return a?a(r):s?gt(s)?e.createTextVNode(s):St(s)?e.createTextVNode(es(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>Xe(c,n,e,i)):null:null}function A_(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:St(n)?t.__parseExpression(n):n,params:[]}}function $_(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function j_(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
|
|
77
|
+
*/const Se="0.9.0-alpha.14";var lt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(lt||{});const gi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],a_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],Su=["vIf","vShow","vModel","vFor","vBind"],xu={String,Number,Boolean,Array,Object,Function,Date},cn="VtjPage",ts="VtjHomepage";function He(e,t){return e.map(r=>fc(r)||r.startsWith("/")?r:`${t}${r}`)}function un(e){return/\.css$/.test(e)}function ln(e){return/\.js$/.test(e)}function Tu(e){return/\.json$/.test(e)}function c_(e){return e.map(t=>`<script src="${re.append(t,{v:Se})}"><\/script>`).join("")}function u_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${re.append(t,{v:Se})}" />`).join("")}function Ou(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Au(e,t,r=!1){const n=e.filter(f=>!!f.enabled),i=[],s=[],o=[],a=[],l={},c={},u=[],h={};return n.forEach(({urls:f,assetsUrl:p,library:d,assetsLibrary:m,localeLibrary:b})=>{f==null||f.forEach(S=>{ln(S)&&i.push(Ou(S,r)),un(S)&&s.push(S)}),d&&(a.push(d),l[d]=He(f||[],t),b&&(c[d]=b)),p&&o.push(p),m&&u.push(m),d&&m&&(h[m]=d)}),{scripts:He(i,t),css:He(s,t),materials:He(o,t),libraryExports:a,materialExports:wc(u),materialMapLibrary:h,libraryMap:l,libraryLocaleMap:c}}function $u(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 es(e){return vt(e)?e:JSON.stringify(e)}function rs(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(l=>l.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 ju(e,t){return V(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&rs(window,e,r)})}function Ru(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 Du(n,i){return V(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((l,c)=>{for(const u of e){const h=s.createElement("script");h.src=u,h.onload=()=>{a=r[t],a?l(a.default||a):c(null)},h.onerror=f=>{c(f)},o.appendChild(h)}})})}function Pu(e){return ne(e)||ne(e==null?void 0:e.install)}function je(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,(l,c)=>`__self${c}`),o=s.join(`
|
|
78
|
+
`)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(Qe.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function vi(e,t,r=!1,n=!1){var s;const i=je(e,t,r,n);if(typeof i!="function"&&(Qe.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 xt(e){return e&&e.type==="JSExpression"}function cr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Cu(e){return xt(e)||cr(e)}function l_(e){return Cu(e)?e.value:JSON.stringify(e)}let fe=null;const h_=Gi({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=>{qr.error({message:e||"未知错误"})},showLoading:()=>{fe&&fe.close(),fe=ml.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{fe&&(fe.close(),fe=null)}}});let ve;function ku(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,gt(K({},e.jsonpOptions),{query:i}));{const i=e.headers?je(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:gt(K({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send($t(s,a||{},{data:o})))}}function Bu(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 Nu(e=[],t=[],r){const n={};for(const i of e)n[i.id]=ku(i,r);for(const i of t)n[i.id]=Bu(i,r);return n}function Iu(){return V(this,arguments,function*(e=[]){ve=yield Er(()=>import("./mockjs-DFJTfpjR.js").then(t=>t.m),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t),ve&&(ve.setup({timeout:"50-500"}),ns(),e.forEach(t=>Mu(ve,t)))})}function Mu(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=en(`${r}(.*)`),s=$c(r,{decode:decodeURIComponent}),o=je(n,{},!0);e.mock(i,a=>{var h;const l=re.parse(a.url)||{},c=a.body instanceof FormData?gu(a.body):a.body,u=(h=s(a.url))==null?void 0:h.params;return Object.assign(a,{data:c,params:l,query:u}),e.mock(o(a))})}}function ns(){ve&&(ve._mocked={})}const f_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",keyPrefix:""},is=Symbol("access");class Fu{constructor(t){j(this,"options");j(this,"data",null);j(this,"mode",lt.Raw);this.options=Object.assign({},f_,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&r===lt.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&&(Pr.save(r,t,{type:"local",prefix:n}),i&&Cr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Pr.remove(t,{type:"local",prefix:r}),n&&Cr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data}getToken(){var t;return(t=this.data)==null?void 0:t.token}can(t){const{keyPrefix:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):Wn(t).every(i=>n[i]||n[r+i])}some(t){const{keyPrefix:r}=this.options,{permissions:n={}}=this.data||{};return Wn(t).some(i=>n[i]||n[r+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this),t.provide(is,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||this.mode!==lt.Raw)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=>Yn(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?Yn(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=Pr.get(t,{type:"local",prefix:r});this.setData(n)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Cr.get(r):!!this.data}hasRoutePermission(t){if(t.name===cn){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){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 this.showTip(n),ne(i)?(i(),r(!1)):vt(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 V(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return V(this,null,function*(){const{alert:r}=this.options;return r?(yield be(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=>V(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>V(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Lu(){return Mo(is,null)}class Vu{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=Ur){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&&gi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){gi.forEach(t=>{this[t]=null})}__parseFunction(t){var r;if(t)if(this.__mode===lt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return vi({type:i,value:s},this)}else return vi(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===lt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return je({type:i,value:s},this)}else return je(t,this)}__ref(t=null,r){if(this.__mode!==lt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>V(this,null,function*(){var s,o;yield be(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,lt.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 l=new Set([].concat(a,n));this.$refs[r]=Array.from(l)}else this.$refs[r]=n}return n})}__clone(t={}){const r=K(K({},this.context),t),n=gt(K({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Vr(e){var h,f;const{Vue:t=Ur,mode:r=lt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},c=new Vu({mode:r,dsl:a.value,attrs:l}),u=t.defineComponent(K({name:a.value.name,props:K({},d_((h=a.value.props)!=null?h:[],c)),setup(p){var y,_,E,g;c.$props=p,c.props=p,a.value.id&&rs(e.window||window,a.value.id,a.value.css||""),c.state=m_(t,(y=a.value.state)!=null?y:{},c);const d=g_(t,(_=a.value.computed)!=null?_:{},c),m=v_((E=a.value.methods)!=null?E:{},c),b=y_(t,a.value.inject,c),S=Hu(a.value.dataSources||{},c),v=K(K(K(K({},b),d),m),S);return c.setup(v,t),b_(t,(g=a.value.watch)!=null?g:[],c),{vtj:c}},emits:p_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?Xe(p[0],c,t,o):p.map(d=>Xe(d,c,t,o))}},__((f=a.value.lifeCycles)!=null?f:{},c)));return{renderer:t.markRaw(u),context:c}}function p_(e=[]){return e.map(t=>vt(t)?t:t.name)}function d_(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>xu[i]):void 0;return e.map(n=>vt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:xt(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 m_(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return xt(s)?s=r.__parseExpression(s):cr(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function g_(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function v_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function y_(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=xt(o)?r.__parseExpression(o)||s:o!=null?o:s,l=xt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,l),n},{})}function Hu(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n],s=t.$apis[i.ref],o=cr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;return r[n]=(...a)=>V(this,null,function*(){const l=yield s.apply(t,a);return o?o(l):l}),r},{})}function b_(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function __(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Dn=[];const Uu=e=>e;function ss(r){return V(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>ln(a));if(s.length===0||!i)return null;const o=n.filter(a=>un(a));return o.length&&Ru(o,t),yield Du(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function Hr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Dn.forEach(i=>{delete n.window[i]}),Dn=[]),(i,s,o=Ur)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>V(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?Vr(gt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:Hr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>V(this,null,function*(){const a=yield r(s.url);return a&&(a.name=i),a?Vr(gt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:Hr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Dn.push(s.library),o.defineAsyncComponent(()=>V(this,null,function*(){return(yield ss(s,n.window))||(console.warn("getPlugin result is null",s),null)}))):i}function Xe(e,t,r=Ur,n=Uu){if(!e||!e.name||e.invisible)return null;const{id:i=null,directives:s=[]}=e,{vIf:o,vFor:a,vShow:l,vModels:c,vBind:u}=w_(s);if(o&&!E_(o,t))return null;const h=f=>{var v,y,_,E;const p=f.$components,d=(()=>{var x,O;if(e.name==="component")return S_(f,(x=e.props)==null?void 0:x.is);if(e.name==="slot")return e.name;const g=n(e.name,e.from,r);return vt(g)&&(O=p[g])!=null?O:g})(),m=x_(i,(v=e.props)!=null?v:{},f),b=T_(r,(y=e.events)!=null?y:{},f);if(e.name==="slot")return O_(r,e,m,f,n);u&&Object.assign(m,f.__parseExpression(u.value)),l&&(m.style=Object.assign((_=m.style)!=null?_:{},$_(l,f))),c.forEach(g=>{Object.assign(m,j_(r,g,f))});const S=R_(r,(E=e.children)!=null?E:[],f,n,e);return r.createVNode(d,K(K({},m),b),S)};return a?C_(a,h,t):h(t)}function w_(e=[]){const t=e.find(a=>Vt(a.name)==="vIf"),r=e.find(a=>Vt(a.name)==="vFor"),n=e.find(a=>Vt(a.name)==="vShow"),i=e.find(a=>Vt(a.name)==="vBind"),s=e.filter(a=>Vt(a.name)==="vModel"),o=e.filter(a=>!Su.includes(Vt(a.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:o}}function E_(e,t){return!!t.__parseExpression(e.value)}function S_(e,t){return t?xt(t)?e.__parseExpression(t):t:"div"}function x_(e,t,r){const n=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return xt(o)?o=r.__parseExpression(o):cr(o)&&(o=r.__parseFunction(o)),i[s]=o,i},{});return n.ref=r.__ref(e,n.ref),n}function T_(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],l=os(a.modifiers),c=l.find(f=>n.includes(f)),u="on"+Zr(o)+(c&&i[c]||""),h=r.__parseFunction(a.handler);return h&&(s[u]=e.withModifiers(h,l)),s},{})}function os(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function O_(e,t,r,n,i){var l;const{children:s}=t,o=A_(t,n),a=(l=n.$slots)==null?void 0:l[o.name];return a?a(r):s?vt(s)?e.createTextVNode(s):xt(s)?e.createTextVNode(es(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>Xe(c,n,e,i)):null:null}function A_(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:xt(n)?t.__parseExpression(n):n,params:[]}}function $_(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function j_(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=os(t.modifiers),o=
|
|
80
|
+
}`:"(v) => {}"},i=r.__parseFunction(n),s=os(t.modifiers),o=xt(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 R_(e,t,r,n,i){if(!t)return null;if(vt(t))return{default:()=>t};if(xt(t))return{default:()=>es(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=D_(t),o=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(s).reduce((a,[l,{nodes:c,params:u}])=>(a[l]=h=>{const f=u.length?Ec(h!=null?h:{},u):o(h);return c.map(p=>Xe(p,r.__clone(f),e,n))},a),{})}return null}function D_(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=P_(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 P_(e="default"){return vt(e)?{name:e,params:[]}:K({params:[]},e)}function C_(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((l,c)=>c+1)),Array.isArray(a)?a.map((l,c)=>t(r.__clone({[s]:l,[o]:c}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}function k_(e){return ol()?(al(e),!0):!1}function as(e){return typeof e=="function"?e():Bn(e)}const zu=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const B_=e=>e!=null,N_=()=>{};function I_(e){return Vo()}function M_(...e){if(e.length!==1)return rl(...e);const t=e[0];return typeof t=="function"?nl(il(()=>({get:t,set:N_}))):kr(t)}function F_(e,t){I_()&&sl(e,t)}const L_=zu?window:void 0,V_=zu?window.document:void 0;function H_(e){var t;const r=as(e);return(t=r==null?void 0:r.$el)!=null?t:r}function U_(){const e=kr(!1),t=Vo();return t&&cl(()=>{e.value=!0},t),e}function z_(e){const t=U_();return Lo(()=>(t.value,!!e()))}function q_(e,t,r={}){const f=r,{window:n=L_}=f,i=pn(f,["window"]);let s;const o=z_(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},l=Lo(()=>{const p=as(e),d=(Array.isArray(p)?p:[p]).map(H_).filter(B_);return new Set(d)}),c=Fo(()=>l.value,p=>{a(),o.value&&p.size&&(s=new MutationObserver(t),p.forEach(d=>s.observe(d,i)))},{immediate:!0,flush:"post"}),u=()=>s==null?void 0:s.takeRecords(),h=()=>{c(),a()};return k_(h),{isSupported:o,stop:h,takeRecords:u}}function K_(e=null,t={}){var r,n,i;const{document:s=V_,restoreOnUnmount:o=h=>h}=t,a=(r=s==null?void 0:s.title)!=null?r:"",l=M_((n=e!=null?e:s==null?void 0:s.title)!=null?n:null),c=e&&typeof e=="function";function u(h){if(!("titleTemplate"in t))return h;const f=t.titleTemplate||"%s";return typeof f=="function"?f(h):as(f).replace(/%s/g,h)}return Fo(l,(h,f)=>{h!==f&&s&&(s.title=u(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!c&&q_((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==l.value&&(l.value=u(s.title))},{childList:!0}),F_(()=>{if(o){const h=o(a,l.value||"");h!=null&&s&&(s.title=h)}}),l}const Io=zr({name:"VtjPageContainer",setup(){return V(this,null,function*(){const e=us(),t=Ho(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null;return n&&(Object.assign(t.meta,n.meta||{}),K_(n.title||"VTJ")),{provider:e,component:i,file:n,query:t.query,meta:n==null?void 0:n.meta}})},render(){const{component:e,query:t}=this;return e?Cn(e,t):Cn("div","页面不存在")}}),J_={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},Y_={"data-l-h6o7ki7":"",class:"vtj-startup"},W_={"data-l-h6o7ki7":"",class:"vtj-startup__name"},G_={"data-l-h6o7ki7":""},Z_={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},Q_={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},qu=zr({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"}},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"){let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(kn(),tl("div",J_,[ce("div",Y_,[ce("h1",W_,[ce("span",G_,dn(t.name),1)]),ce("div",Z_,dn(t.tagline),1),ce("div",Q_,[ce("button",{"data-l-h6o7ki7":"",onClick:r},dn(t.actionText),1)])])]))}}),X_=zr({name:"VtjStartupContainer",render(){return Cn(qu)}}),cs=Symbol("Provider");var Ku=(e=>(e.Production="production",e.Development="development",e))(Ku||{});class Ju extends Rc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:h_,jsonp:_u});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=lt.Raw,dependencies:s,materials:o,project:a={},adapter:l={},globals:c={},modules:u={},router:h=null,materialPath:f="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=u,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,l);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:h,request:m}),i!==lt.Design&&this.load(a)}load(r){return V(this,null,function*(){var a;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.nodeEnv!=="production"?yield this.loadAssets(o):yield this.loadDependencies(o),this.apis=Nu(i,s,this.adapter),ns(),(a=this.project.config)!=null&&a.mock&&Iu(i),this.initRouter(),this.triggerReady()})}loadDependencies(r){return V(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=yield s())})}loadAssets(r){return V(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:l}=this,{libraryExports:c,libraryMap:u,materials:h,materialExports:f,materialMapLibrary:p}=Au(n,a,l==="development");for(const m of c){const b=i[m],S=r[m];if(S)s[m]=S;else if(b)r[m]=s[m]=yield b();else{const v=u[m]||[];for(const y of v)un(y)&&(yield ju(m,re.append(y,{v:Se}))),ln(y)&&(yield di(re.append(y,{v:Se})));s[m]=r[m]}}for(const m of h)yield di(re.append(m,{v:Se}));const d=this.materials||{};for(const m of f){const b=r[p[m]],S=jc[m];if(S)b&&S.forEach(v=>{o[v]=b[v]});else{const v=d[m]?(yield d[m]()).default:r[m];v&&b&&(v.components||[]).forEach(y=>{o[y.name]=$u(y,b)})}}})}initRouter(){const{router:r,project:n,options:i}=this;if(!r)return;const{routeParentName:s,pageRouteName:o="page",routeMeta:a}=i,l={path:`/${o}/:id`,name:cn,component:Io},c={path:"/",name:ts,component:n!=null&&n.homepage?Io:X_,meta:a};s?(r.addRoute(s,l),r.addRoute(s,c)):(r.addRoute(l),r.addRoute(c))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&Pu(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(cs,this),r.config.globalProperties.installed=n,this.mode===lt.Design&&(r.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,l=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",c=`[ ${a} ] ${l} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),qr.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 l=i(s,a.children);if(l)return l}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return V(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r).catch(()=>null)})}getDslByUrl(r){return V(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,l=K({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=Hr({getDsl:u=>V(this,null,function*(){return(yield this.getDsl(u))||null}),getDslByUrl:u=>V(this,null,function*(){return(yield this.getDslByUrl(u))||null}),options:l});return Vr(xt(K({},l),{dsl:r,loader:c}))}getRenderComponent(r,n){return V(this,null,function*(){var l;const i=this.getFile(r);if(!i)return Qe.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s];if(o)return(l=yield o())==null?void 0:l.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(Qe.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ds(()=>V(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return ds(()=>V(this,null,function*(){return yield ss(r,window)}))}}function tw(e){const t=new Ju(e);return{provider:t,onReady:r=>t.ready(r)}}function us(e={}){const t=Mo(cs);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&V(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&qr.warning({title:i==null?void 0:i.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})}return t}const ls=new Wi({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=>{qr.error({message:e||"未知错误"})}}}),ew=(e="/__vtj__/api/:type.json")=>(t,r)=>ls.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),rw=(e="/__vtj__/api/uploader.json")=>(t,r)=>V(void 0,null,function*(){return yield ls.send({url:e,method:"post",data:{files:t,projectId:r},settings:{type:"data"}}).then(n=>n&&n[0]?n[0]:null).catch(()=>null)});class hn{constructor(){j(this,"api");j(this,"pluginCaches",{});j(this,"uploader");this.api=ew(),this.uploader=rw()}getExtension(){return V(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return V(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return V(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,r){return V(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return V(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return V(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return V(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return V(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return V(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return V(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return V(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return V(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return V(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return V(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return V(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return V(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return V(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return V(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return V(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return V(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return V(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return V(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return V(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Tu(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=ls.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}}const pt=new Zi({type:"local",expired:0,prefix:"__VTJ_"});class nw extends hn{init(t){const r=new We(t),n=pt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return pt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new We(t);return pt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return pt.save(`materials_${t.id}`,tn(r)),Promise.resolve(!0)}saveFile(t){return pt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=pt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return pt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return pt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=pt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),pt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=pt.get(`history_${t}`),n=new Fi(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=pt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return pt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{pt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class Yu extends hn{constructor(){super(...arguments);j(this,"projects",{});j(this,"materials",{});j(this,"files",{});j(this,"histories",{});j(this,"historyItems",{})}init(r){const n=new We(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 We(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=tn(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 Fi(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 Pn=null;function iw(){return Pn||(Pn=new Yu,Pn)}class sw extends hn{constructor(){super(...arguments);j(this,"getFileCaches",{})}getExtension(){return V(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return V(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r){return V(this,null,function*(){return!!(yield this.api("saveProject",r).catch(()=>!1))})}saveMaterials(r,n){return V(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:tn(n)}).catch(()=>!1))})}saveFile(r){return V(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return V(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return V(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return V(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return V(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return V(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return V(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return V(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return V(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function Wu(e,t=[]){return t.map(r=>{const{id:n,title:i,icon:s,children:o,hidden:a}=r;return{id:n,title:i,icon:s,hidden:a,url:`${e}/${n}`,children:o&&o.length?Wu(e,o):void 0}})}function Gu(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=Gu(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function ow(e){const{menuBasePath:t="/page"}=e||{},r=us(),n=Ho(),i=Lu(),s=kr(!1),o=kr(!1),a=r.project;el(()=>{const{name:u,params:h,meta:f}=n;if(u===cn){const p=r.getPage(h.id);s.value=!(p!=null&&p.mask),o.value=!!(p!=null&&p.pure)}else if(u===ts){const p=r.getHomepage();s.value=!(p!=null&&p.mask),o.value=!!(p!=null&&p.pure)}else s.value=!f.mask,o.value=!!f.pure});const l=Wu(t,a==null?void 0:a.pages),c=a==null?void 0:a.config;return{disabled:s,logo:c==null?void 0:c.logo,themeSwitchable:c==null?void 0:c.themeSwitchable,title:(c==null?void 0:c.title)||(a==null?void 0:a.description)||(a==null?void 0:a.name)||"VTJ App",menus:Gu(l,i),pure:o}}const Rw=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:is,Access:Fu,BUILT_IN_DIRECTIVES:Su,BaseService:hn,CONTEXT_HOST:gi,Context:Vu,ContextMode:lt,DATA_TYPES:xu,HOMEPAGE_ROUTE_NAME:ts,JSCodeToString:l_,LIFE_CYCLES_LIST:a_,LocalService:sw,MemoryService:Yu,NodeEnv:Ku,PAGE_ROUTE_NAME:cn,Provider:Ju,Startup:qu,StorageService:nw,VTJ_RENDERER_VERSION:Se,adoptedStyleSheets:rs,createAssetScripts:c_,createAssetsCss:u_,createDataSources:Hu,createLoader:Hr,createMemoryService:iw,createMetaApi:Bu,createProvider:tw,createRenderer:Vr,createSchemaApi:ku,createSchemaApis:Nu,defaultLoader:Uu,fillBasePath:He,getModifiers:os,getPlugin:ss,getRawComponent:$u,isCSSUrl:un,isJSCode:Cu,isJSExpression:St,isJSFunction:cr,isJSON:Tu,isJSUrl:ln,isVuePlugin:Pu,loadCss:ju,loadCssUrl:Ru,loadScriptUrl:Du,mockApi:Mu,mockApis:Iu,mockCleanup:ns,nodeRender:Xe,parseDeps:Au,parseExpression:je,parseFunction:vi,providerKey:cs,removeProdFlag:Ou,toString:es,useAccess:Lu,useMask:ow,useProvider:us},Symbol.toStringTag,{value:"Module"})),aw=zr({__name:"app",setup(e){return(t,r)=>{const n=ul("router-view");return kn(),ms(Bn(vl),{locale:Bn(gl)},{default:gs(()=>[(kn(),ms(ll,null,{default:gs(()=>[hl(n)]),_:1}))]),_:1},8,["locale"])}}}),cw=[{path:"/",name:"home",component:()=>Er(()=>import("./index-B98OoShK.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,1,10,11,12,13,14,15,16,0,17,18,19]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>Er(()=>import("./preview-KfJaQ8SG.js"),__vite__mapDeps([20,14,15,3,4,5,6,7,8,9,1,10,11,12,13,16,0,17]),import.meta.url)},{path:"/auth",name:"auth",component:()=>Er(()=>import("./auth-BG9bea-a.js"),__vite__mapDeps([21,3,4,5,6,7,8,9,1,10,11,12,13,14,15,16,0,17,18,22]),import.meta.url)}],uw=pl({history:dl(),routes:cw}),hs=fl(aw),lw=new Fu({});hs.use(lw);hs.use(uw);hs.mount("#app");export{Fu as $,Pr as A,nt as B,Qe as C,Ve as D,It as E,Fi as F,St as G,cr as H,$r as I,ne as J,iv as K,ia as L,Iv as M,Le as N,$t as O,_u as P,l_ as Q,Yg as R,Ug as S,Lb as T,Cc as U,We as V,a_ as W,qn as X,sv as Y,ot as Z,lt as _,Wn as a,je as a0,xu as a1,Au as a2,u_ as a3,c_ as a4,jv as a5,$u as a6,Nu as a7,Iu as a8,vi as a9,Di as aa,Fr as ab,Dv as ac,ns as ad,Fe as ae,Ib as af,Ii as ag,Mi as ah,Nb as ai,cv as aj,Ai as ak,jw as al,un as am,ln as an,Ru as ao,Du as ap,xw as aq,Rw as ar,tw as b,wc as c,Fb as d,_c as e,s_ as f,Vt as g,kv as h,Rc as i,fc as j,Ua as k,it as l,Ig as m,M as n,gt as o,Xn as p,Qn as q,be as r,kc as s,dt as t,Ju as u,i_ as v,G as w,sw as x,ge as y,Ri as z};
|
|
145
|
+
}`);const t=e,r=()=>{if(typeof window<"u"){let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(kn(),tl("div",J_,[ce("div",Y_,[ce("h1",W_,[ce("span",G_,dn(t.name),1)]),ce("div",Z_,dn(t.tagline),1),ce("div",Q_,[ce("button",{"data-l-h6o7ki7":"",onClick:r},dn(t.actionText),1)])])]))}}),X_=zr({name:"VtjStartupContainer",render(){return Cn(qu)}}),cs=Symbol("Provider");var Ku=(e=>(e.Production="production",e.Development="development",e))(Ku||{});class Ju extends Rc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:h_,jsonp:_u});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=lt.Raw,dependencies:s,materials:o,project:a={},adapter:l={},globals:c={},modules:u={},router:h=null,materialPath:f="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=u,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,l);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:h,request:m}),i!==lt.Design&&this.load(a)}load(r){return V(this,null,function*(){var a;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.nodeEnv!=="production"?yield this.loadAssets(o):yield this.loadDependencies(o),this.apis=Nu(i,s,this.adapter),ns(),(a=this.project.config)!=null&&a.mock&&Iu(i),this.initRouter(),this.triggerReady()})}loadDependencies(r){return V(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=yield s())})}loadAssets(r){return V(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:l}=this,{libraryExports:c,libraryMap:u,materials:h,materialExports:f,materialMapLibrary:p}=Au(n,a,l==="development");for(const m of c){const b=i[m],S=r[m];if(S)s[m]=S;else if(b)r[m]=s[m]=yield b();else{const v=u[m]||[];for(const y of v)un(y)&&(yield ju(m,re.append(y,{v:Se}))),ln(y)&&(yield di(re.append(y,{v:Se})));s[m]=r[m]}}for(const m of h)yield di(re.append(m,{v:Se}));const d=this.materials||{};for(const m of f){const b=r[p[m]],S=jc[m];if(S)b&&S.forEach(v=>{o[v]=b[v]});else{const v=d[m]?(yield d[m]()).default:r[m];v&&b&&(v.components||[]).forEach(y=>{o[y.name]=$u(y,b)})}}})}initRouter(){const{router:r,project:n,options:i}=this;if(!r)return;const{routeParentName:s,pageRouteName:o="page",routeMeta:a}=i,l={path:`/${o}/:id`,name:cn,component:Io},c={path:"/",name:ts,component:n!=null&&n.homepage?Io:X_,meta:a};s?(r.addRoute(s,l),r.addRoute(s,c)):(r.addRoute(l),r.addRoute(c))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&Pu(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(cs,this),r.config.globalProperties.installed=n,this.mode===lt.Design&&(r.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,l=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",c=`[ ${a} ] ${l} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),qr.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 l=i(s,a.children);if(l)return l}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return V(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r).catch(()=>null)})}getDslByUrl(r){return V(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,l=K({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=Hr({getDsl:u=>V(this,null,function*(){return(yield this.getDsl(u))||null}),getDslByUrl:u=>V(this,null,function*(){return(yield this.getDslByUrl(u))||null}),options:l});return Vr(gt(K({},l),{dsl:r,loader:c}))}getRenderComponent(r,n){return V(this,null,function*(){var l;const i=this.getFile(r);if(!i)return Qe.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s];if(o)return(l=yield o())==null?void 0:l.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(Qe.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ds(()=>V(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return ds(()=>V(this,null,function*(){return yield ss(r,window)}))}}function tw(e){const t=new Ju(e);return{provider:t,onReady:r=>t.ready(r)}}function us(e={}){const t=Mo(cs);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&V(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&qr.warning({title:i==null?void 0:i.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})}return t}const ls=new Wi({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=>{qr.error({message:e||"未知错误"})}}}),ew=(e="/__vtj__/api/:type.json")=>(t,r)=>ls.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),rw=(e="/__vtj__/api/uploader.json")=>(t,r)=>V(void 0,null,function*(){return yield ls.send({url:e,method:"post",data:{files:t,projectId:r},settings:{type:"data"}}).then(n=>n&&n[0]?n[0]:null).catch(()=>null)});class hn{constructor(){j(this,"api");j(this,"pluginCaches",{});j(this,"uploader");this.api=ew(),this.uploader=rw()}getExtension(){return V(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return V(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return V(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,r){return V(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return V(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return V(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return V(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return V(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return V(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return V(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return V(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return V(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return V(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return V(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return V(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return V(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return V(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return V(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return V(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return V(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return V(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return V(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return V(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Tu(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=ls.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}}const pt=new Zi({type:"local",expired:0,prefix:"__VTJ_"});class nw extends hn{init(t){const r=new We(t),n=pt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return pt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new We(t);return pt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return pt.save(`materials_${t.id}`,tn(r)),Promise.resolve(!0)}saveFile(t){return pt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=pt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return pt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return pt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=pt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),pt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=pt.get(`history_${t}`),n=new Fi(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=pt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return pt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{pt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class Yu extends hn{constructor(){super(...arguments);j(this,"projects",{});j(this,"materials",{});j(this,"files",{});j(this,"histories",{});j(this,"historyItems",{})}init(r){const n=new We(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 We(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=tn(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 Fi(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 Pn=null;function iw(){return Pn||(Pn=new Yu,Pn)}class sw extends hn{constructor(){super(...arguments);j(this,"getFileCaches",{})}getExtension(){return V(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return V(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r){return V(this,null,function*(){return!!(yield this.api("saveProject",r).catch(()=>!1))})}saveMaterials(r,n){return V(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:tn(n)}).catch(()=>!1))})}saveFile(r){return V(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return V(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return V(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return V(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return V(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return V(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return V(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return V(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return V(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function Wu(e,t=[]){return t.map(r=>{const{id:n,title:i,icon:s,children:o,hidden:a}=r;return{id:n,title:i,icon:s,hidden:a,url:`${e}/${n}`,children:o&&o.length?Wu(e,o):void 0}})}function Gu(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=Gu(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function ow(e){const{menuBasePath:t="/page"}=e||{},r=us(),n=Ho(),i=Lu(),s=kr(!1),o=kr(!1),a=r.project;el(()=>{const{name:u,params:h,meta:f}=n;if(u===cn){const p=r.getPage(h.id);s.value=!(p!=null&&p.mask),o.value=!!(p!=null&&p.pure)}else if(u===ts){const p=r.getHomepage();s.value=!(p!=null&&p.mask),o.value=!!(p!=null&&p.pure)}else s.value=!f.mask,o.value=!!f.pure});const l=Wu(t,a==null?void 0:a.pages),c=a==null?void 0:a.config;return{disabled:s,logo:c==null?void 0:c.logo,themeSwitchable:c==null?void 0:c.themeSwitchable,title:(c==null?void 0:c.title)||(a==null?void 0:a.description)||(a==null?void 0:a.name)||"VTJ App",menus:Gu(l,i),pure:o}}const Rw=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:is,Access:Fu,BUILT_IN_DIRECTIVES:Su,BaseService:hn,CONTEXT_HOST:gi,Context:Vu,ContextMode:lt,DATA_TYPES:xu,HOMEPAGE_ROUTE_NAME:ts,JSCodeToString:l_,LIFE_CYCLES_LIST:a_,LocalService:sw,MemoryService:Yu,NodeEnv:Ku,PAGE_ROUTE_NAME:cn,Provider:Ju,Startup:qu,StorageService:nw,VTJ_RENDERER_VERSION:Se,adoptedStyleSheets:rs,createAssetScripts:c_,createAssetsCss:u_,createDataSources:Hu,createLoader:Hr,createMemoryService:iw,createMetaApi:Bu,createProvider:tw,createRenderer:Vr,createSchemaApi:ku,createSchemaApis:Nu,defaultLoader:Uu,fillBasePath:He,getModifiers:os,getPlugin:ss,getRawComponent:$u,isCSSUrl:un,isJSCode:Cu,isJSExpression:xt,isJSFunction:cr,isJSON:Tu,isJSUrl:ln,isVuePlugin:Pu,loadCss:ju,loadCssUrl:Ru,loadScriptUrl:Du,mockApi:Mu,mockApis:Iu,mockCleanup:ns,nodeRender:Xe,parseDeps:Au,parseExpression:je,parseFunction:vi,providerKey:cs,removeProdFlag:Ou,toString:es,useAccess:Lu,useMask:ow,useProvider:us},Symbol.toStringTag,{value:"Module"})),aw=zr({__name:"app",setup(e){return(t,r)=>{const n=ul("router-view");return kn(),ms(Bn(vl),{locale:Bn(gl)},{default:gs(()=>[(kn(),ms(ll,null,{default:gs(()=>[hl(n)]),_:1}))]),_:1},8,["locale"])}}}),cw=[{path:"/",name:"home",component:()=>Er(()=>import("./index-gtXpk05i.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,1,10,11,12,13,14,15,16,0,17,18,19]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>Er(()=>import("./preview-B63t6Y6O.js"),__vite__mapDeps([20,14,15,3,4,5,6,7,8,9,1,10,11,12,13,16,0,17]),import.meta.url)},{path:"/auth",name:"auth",component:()=>Er(()=>import("./auth-D4ocmmGv.js"),__vite__mapDeps([21,3,4,5,6,7,8,9,1,10,11,12,13,14,15,16,0,17,18,22]),import.meta.url)}],uw=pl({history:dl(),routes:cw}),hs=fl(aw),lw=new Fu({});hs.use(lw);hs.use(uw);hs.mount("#app");export{Fu as $,Pr as A,nt as B,Qe as C,Ve as D,It as E,Fi as F,xt as G,cr as H,$r as I,ne as J,iv as K,ia as L,Iv as M,Le as N,$t as O,_u as P,l_ as Q,Yg as R,Ug as S,Lb as T,Cc as U,We as V,a_ as W,qn as X,sv as Y,ot as Z,lt as _,Wn as a,je as a0,xu as a1,Au as a2,u_ as a3,c_ as a4,jv as a5,$u as a6,Nu as a7,Iu as a8,vi as a9,Di as aa,Fr as ab,Dv as ac,ns as ad,Fe as ae,Ib as af,Ii as ag,Mi as ah,Nb as ai,cv as aj,Ai as ak,jw as al,un as am,ln as an,Ru as ao,Du as ap,xw as aq,Rw as ar,tw as b,wc as c,Fb as d,_c as e,s_ as f,Vt as g,kv as h,Rc as i,fc as j,Ua as k,it as l,Ig as m,M as n,vt as o,Xn as p,Qn as q,be as r,kc as s,dt as t,Ju as u,i_ as v,G as w,sw as x,ge as y,Ri as z};
|