@vtj/pro 0.9.0 → 0.9.2
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-CAAHD2fo.js +1 -0
- package/dist/assets/auth-rAe8S_7e.css +1 -0
- package/dist/assets/{extension-BDteyEK_.css → extension-B7YsICyT.css} +1 -1
- package/dist/assets/{extension-BMSrgDqC.js → extension-CJuyTImz.js} +35 -35
- package/dist/assets/{index-B1QXajf4.js → index-CbobV5nh.js} +1 -1
- package/dist/assets/index-IOQODc93.js +145 -0
- package/dist/assets/{mockjs-C1Gq5sDs.js → mockjs-CMngCJLd.js} +2 -2
- package/dist/assets/page-DLaTT2eZ.js +2 -0
- package/dist/assets/preview-WdJT79pk.js +2 -0
- package/dist/index.html +3 -3
- package/package.json +13 -12
- package/dist/assets/auth-BRP5zXuS.js +0 -1
- package/dist/assets/auth-qeT_IsjL.css +0 -1
- package/dist/assets/index-D_wHrk2u.js +0 -145
- package/dist/assets/page-BwKMkzA1.js +0 -2
- package/dist/assets/preview-uoGdS6_b.js +0 -2
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mockjs-C1Gq5sDs.js","./dayjs-DpOeJKaG.js","./index-B1QXajf4.js","./vue-router-DB3on22t.js","./vue-BCaExZnh.js","./element-plus-CfygosTj.js","./lodash-es-Cmvm8wvQ.js","./@vueuse-Cpn_N91X.js","./@element-plus-icons-vue-BAbt3LbA.js","./shared-WQ2u-3_G.js","./element-plus-BbdgoGGn.css","./vxe-BJf2YWDp.js","./vxe-BAb1d5vW.css","./extension-BMSrgDqC.js","./monaco-editor-Ckv89Lpe.js","./monaco-editor-CO43Fv42.css","./html2canvas-CIV5arX1.js","./extension-BDteyEK_.css","./_plugin-vue_export-helper-DlAUqK2U.js","./index-DmXmiv30.css","./preview-uoGdS6_b.js","./page-BwKMkzA1.js","./auth-BRP5zXuS.js","./auth-qeT_IsjL.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Qu=Object.defineProperty,Xu=Object.defineProperties;var tl=Object.getOwnPropertyDescriptors;var mr=Object.getOwnPropertySymbols;var fs=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable;var dn=(e,t,r)=>t in e?Qu(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)&&dn(e,r,t[r]);if(mr)for(var r of mr(t))ps.call(t,r)&&dn(e,r,t[r]);return e},pt=(e,t)=>Xu(e,tl(t));var mn=(e,t)=>{var r={};for(var n in e)fs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&mr)for(var n of mr(e))t.indexOf(n)<0&&ps.call(e,n)&&(r[n]=e[n]);return r};var j=(e,t,r)=>dn(e,typeof t!="symbol"?t+"":t,r);var H=(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 Kr,d as Jr,e as We,af as kn,p as Mo,f as Fo,o as Bn,c as el,a as ce,P as gn,w as rl,m as nl,r as il,j as sl,X as ol,k as Lo,g as al,b as cl,u as In,h as Vo,i as ul,ag as ll,I as ms,J as gs,ay as hl,R as fl,at as pl}from"./vue-BCaExZnh.js";import{_ as Fe}from"./monaco-editor-Ckv89Lpe.js";import{useRoute as Ho,createRouter as dl,createWebHashHistory as ml}from"./vue-router-DB3on22t.js";import{E as Yr,a as gl,z as vl,b as yl}from"./element-plus-CfygosTj.js";import"./lodash-es-Cmvm8wvQ.js";import"./@vueuse-Cpn_N91X.js";import"./@element-plus-icons-vue-BAbt3LbA.js";import"./shared-WQ2u-3_G.js";import"./dayjs-DpOeJKaG.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 bl={ENV_TYPE:"live",NODE_ENV:"production"},_l=typeof global=="object"&&global&&global.Object===Object&&global;const Uo=_l;var wl=typeof self=="object"&&self&&self.Object===Object&&self,El=Uo||wl||Function("return this")();const At=El;var Sl=At.Symbol;const Rt=Sl;var zo=Object.prototype,xl=zo.hasOwnProperty,Tl=zo.toString,Be=Rt?Rt.toStringTag:void 0;function Ol(e){var t=xl.call(e,Be),r=e[Be];try{e[Be]=void 0;var n=!0}catch(s){}var i=Tl.call(e);return n&&(t?e[Be]=r:delete e[Be]),i}var Al=Object.prototype,$l=Al.toString;function jl(e){return $l.call(e)}var Rl="[object Null]",Dl="[object Undefined]",vs=Rt?Rt.toStringTag:void 0;function yt(e){return e==null?e===void 0?Dl:Rl:vs&&vs in Object(e)?Ol(e):jl(e)}function st(e){return e!=null&&typeof e=="object"}var Pl="[object Symbol]";function sr(e){return typeof e=="symbol"||st(e)&&yt(e)==Pl}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 Cl=Array.isArray;const ht=Cl;var Nl=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(sr(e))return bs?bs.call(e):"";var t=e+"";return t=="0"&&1/e==-Nl?"-0":t}var kl=/\s/;function Bl(e){for(var t=e.length;t--&&kl.test(e.charAt(t)););return t}var Il=/^\s+/;function Ml(e){return e&&e.slice(0,Bl(e)+1).replace(Il,"")}function ot(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _s=NaN,Fl=/^[-+]0x[0-9a-f]+$/i,Ll=/^0b[01]+$/i,Vl=/^0o[0-7]+$/i,Hl=parseInt;function ws(e){if(typeof e=="number")return e;if(sr(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=Ml(e);var r=Ll.test(e);return r||Vl.test(e)?Hl(e.slice(2),r?2:8):Fl.test(e)?_s:+e}function _i(e){return e}var Ul="[object AsyncFunction]",zl="[object Function]",ql="[object GeneratorFunction]",Kl="[object Proxy]";function ne(e){if(!ot(e))return!1;var t=yt(e);return t==zl||t==ql||t==Ul||t==Kl}var Jl=At["__core-js_shared__"];const vn=Jl;var Es=function(){var e=/[^.]+$/.exec(vn&&vn.keys&&vn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yl(e){return!!Es&&Es in e}var Wl=Function.prototype,Gl=Wl.toString;function ie(e){if(e!=null){try{return Gl.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Zl=/[\\^$.*+?()[\]{}|]/g,Ql=/^\[object .+?Constructor\]$/,Xl=Function.prototype,th=Object.prototype,eh=Xl.toString,rh=th.hasOwnProperty,nh=RegExp("^"+eh.call(rh).replace(Zl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ih(e){if(!ot(e)||Yl(e))return!1;var t=ne(e)?nh:Ql;return t.test(ie(e))}function sh(e,t){return e==null?void 0:e[t]}function se(e,t){var r=sh(e,t);return ih(r)?r:void 0}var oh=se(At,"WeakMap");const Mn=oh;var Ss=Object.create,ah=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 ch=ah;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 uh(){}function lh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var hh=800,fh=16,ph=Date.now;function dh(e){var t=0,r=0;return function(){var n=ph(),i=fh-(n-r);if(r=n,i>0){if(++t>=hh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function mh(e){return function(){return e}}var gh=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Mr=gh;var vh=Mr?function(e,t){return Mr(e,"toString",{configurable:!0,enumerable:!1,value:mh(t),writable:!0})}:_i;const yh=vh;var bh=dh(yh);const _h=bh;function wh(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Eh=9007199254740991,Sh=/^(?:0|[1-9]\d*)$/;function Wr(e,t){var r=typeof e;return t=t!=null?t:Eh,!!t&&(r=="number"||r!="symbol"&&Sh.test(e))&&e>-1&&e%1==0&&e<t}function Gr(e,t,r){t=="__proto__"&&Mr?Mr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function De(e,t){return e===t||e!==e&&t!==t}var xh=Object.prototype,Th=xh.hasOwnProperty;function wi(e,t,r){var n=e[t];(!(Th.call(e,t)&&De(n,r))||r===void 0&&!(t in e))&&Gr(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?Gr(r,a,l):wi(r,a,l)}return r}var xs=Math.max;function Oh(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 _h(Oh(e,t,_i),e+"")}var Ah=9007199254740991;function Ei(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ah}function or(e){return e!=null&&Ei(e.length)&&!ne(e)}function Go(e,t,r){if(!ot(r))return!1;var n=typeof t;return(n=="number"?or(r)&&Wr(t,r.length):n=="string"&&t in r)?De(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 $h=Object.prototype;function Si(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$h;return e===r}function jh(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Rh="[object Arguments]";function Ts(e){return st(e)&&yt(e)==Rh}var Qo=Object.prototype,Dh=Qo.hasOwnProperty,Ph=Qo.propertyIsEnumerable,Ch=Ts(function(){return arguments}())?Ts:function(e){return st(e)&&Dh.call(e,"callee")&&!Ph.call(e,"callee")};const Fr=Ch;function Nh(){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,Ih=Bh||Nh;const Te=Ih;var Mh="[object Arguments]",Fh="[object Array]",Lh="[object Boolean]",Vh="[object Date]",Hh="[object Error]",Uh="[object Function]",zh="[object Map]",qh="[object Number]",Kh="[object Object]",Jh="[object RegExp]",Yh="[object Set]",Wh="[object String]",Gh="[object WeakMap]",Zh="[object ArrayBuffer]",Qh="[object DataView]",Xh="[object Float32Array]",tf="[object Float64Array]",ef="[object Int8Array]",rf="[object Int16Array]",nf="[object Int32Array]",sf="[object Uint8Array]",of="[object Uint8ClampedArray]",af="[object Uint16Array]",cf="[object Uint32Array]",X={};X[Xh]=X[tf]=X[ef]=X[rf]=X[nf]=X[sf]=X[of]=X[af]=X[cf]=!0,X[Mh]=X[Fh]=X[Zh]=X[Lh]=X[Qh]=X[Vh]=X[Hh]=X[Uh]=X[zh]=X[qh]=X[Kh]=X[Jh]=X[Yh]=X[Wh]=X[Gh]=!1;function uf(e){return st(e)&&Ei(e.length)&&!!X[yt(e)]}function ar(e){return function(t){return e(t)}}var ta=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qe=ta&&typeof module=="object"&&module&&!module.nodeType&&module,lf=qe&&qe.exports===ta,yn=lf&&Uo.process,hf=function(){try{var e=qe&&qe.require&&qe.require("util").types;return e||yn&&yn.binding&&yn.binding("util")}catch(t){}}();const Dt=hf;var $s=Dt&&Dt.isTypedArray,ff=$s?ar($s):uf;const xi=ff;var pf=Object.prototype,df=pf.hasOwnProperty;function ea(e,t){var r=ht(e),n=!r&&Fr(e),i=!r&&!n&&Te(e),s=!r&&!n&&!i&&xi(e),o=r||n||i||s,a=o?jh(e.length,String):[],l=a.length;for(var c in e)(t||df.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Wr(c,l)))&&a.push(c);return a}function ra(e,t){return function(r){return e(t(r))}}var mf=ra(Object.keys,Object);const gf=mf;var vf=Object.prototype,yf=vf.hasOwnProperty;function bf(e){if(!Si(e))return gf(e);var t=[];for(var r in Object(e))yf.call(e,r)&&r!="constructor"&&t.push(r);return t}function Zr(e){return or(e)?ea(e):bf(e)}function _f(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var wf=Object.prototype,Ef=wf.hasOwnProperty;function Sf(e){if(!ot(e))return _f(e);var t=Si(e),r=[];for(var n in e)n=="constructor"&&(t||!Ef.call(e,n))||r.push(n);return r}function Ti(e){return or(e)?ea(e,!0):Sf(e)}var xf=Zo(function(e,t,r,n){Yo(t,Ti(t),e,n)});const js=xf;var Tf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Of=/^\w*$/;function Oi(e,t){if(ht(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||sr(e)?!0:Of.test(e)||!Tf.test(e)||t!=null&&e in Object(t)}var Af=se(Object,"create");const Ge=Af;function $f(){this.__data__=Ge?Ge(null):{},this.size=0}function jf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Rf="__lodash_hash_undefined__",Df=Object.prototype,Pf=Df.hasOwnProperty;function Cf(e){var t=this.__data__;if(Ge){var r=t[e];return r===Rf?void 0:r}return Pf.call(t,e)?t[e]:void 0}var Nf=Object.prototype,kf=Nf.hasOwnProperty;function Bf(e){var t=this.__data__;return Ge?t[e]!==void 0:kf.call(t,e)}var If="__lodash_hash_undefined__";function Mf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ge&&t===void 0?If: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=$f,Xt.prototype.delete=jf,Xt.prototype.get=Cf,Xt.prototype.has=Bf,Xt.prototype.set=Mf;function Ff(){this.__data__=[],this.size=0}function Qr(e,t){for(var r=e.length;r--;)if(De(e[r][0],t))return r;return-1}var Lf=Array.prototype,Vf=Lf.splice;function Hf(e){var t=this.__data__,r=Qr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Vf.call(t,r,1),--this.size,!0}function Uf(e){var t=this.__data__,r=Qr(t,e);return r<0?void 0:t[r][1]}function zf(e){return Qr(this.__data__,e)>-1}function qf(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function kt(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])}}kt.prototype.clear=Ff,kt.prototype.delete=Hf,kt.prototype.get=Uf,kt.prototype.has=zf,kt.prototype.set=qf;var Kf=se(At,"Map");const Ze=Kf;function Jf(){this.size=0,this.__data__={hash:new Xt,map:new(Ze||kt),string:new Xt}}function Yf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Xr(e,t){var r=e.__data__;return Yf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Wf(e){var t=Xr(this,e).delete(e);return this.size-=t?1:0,t}function Gf(e){return Xr(this,e).get(e)}function Zf(e){return Xr(this,e).has(e)}function Qf(e,t){var r=Xr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,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=Jf,Bt.prototype.delete=Wf,Bt.prototype.get=Gf,Bt.prototype.has=Zf,Bt.prototype.set=Qf;var Xf="Expected a function";function Ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Xf);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(Ai.Cache||Bt),r}Ai.Cache=Bt;var tp=500;function ep(e){var t=Ai(e,function(n){return r.size===tp&&r.clear(),n}),r=t.cache;return t}var rp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,np=/\\(\\)?/g,ip=ep(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rp,function(r,n,i,s){t.push(i?s.replace(np,"$1"):n||r)}),t});const sp=ip;function oe(e){return e==null?"":Ko(e)}function $i(e,t){return ht(e)?e:Oi(e,t)?[e]:sp(oe(e))}var op=1/0;function cr(e){if(typeof e=="string"||sr(e))return e;var t=e+"";return t=="0"&&1/e==-op?"-0":t}function na(e,t){t=$i(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[cr(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 ap(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var cp=ra(Object.getPrototypeOf,Object);const sa=cp;var up="[object Object]",lp=Function.prototype,hp=Object.prototype,oa=lp.toString,fp=hp.hasOwnProperty,pp=oa.call(Object);function ji(e){if(!st(e)||yt(e)!=up)return!1;var t=sa(e);if(t===null)return!0;var r=fp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&oa.call(r)==pp}var dp="[object DOMException]",mp="[object Error]";function aa(e){if(!st(e))return!1;var t=yt(e);return t==mp||t==dp||typeof e.message=="string"&&typeof e.name=="string"&&!ji(e)}var gp=Wo(function(e,t){try{return Jo(e,void 0,t)}catch(r){return aa(r)?r:new Error(r)}});const vp=gp;function yp(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 bp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:yp(e,t,r)}var _p="\\ud800-\\udfff",wp="\\u0300-\\u036f",Ep="\\ufe20-\\ufe2f",Sp="\\u20d0-\\u20ff",xp=wp+Ep+Sp,Tp="\\ufe0e\\ufe0f",Op="\\u200d",Ap=RegExp("["+Op+_p+xp+Tp+"]");function ca(e){return Ap.test(e)}function $p(e){return e.split("")}var ua="\\ud800-\\udfff",jp="\\u0300-\\u036f",Rp="\\ufe20-\\ufe2f",Dp="\\u20d0-\\u20ff",Pp=jp+Rp+Dp,Cp="\\ufe0e\\ufe0f",Np="["+ua+"]",Fn="["+Pp+"]",Ln="\\ud83c[\\udffb-\\udfff]",kp="(?:"+Fn+"|"+Ln+")",la="[^"+ua+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",fa="[\\ud800-\\udbff][\\udc00-\\udfff]",Bp="\\u200d",pa=kp+"?",da="["+Cp+"]?",Ip="(?:"+Bp+"(?:"+[la,ha,fa].join("|")+")"+da+pa+")*",Mp=da+pa+Ip,Fp="(?:"+[la+Fn+"?",Fn,ha,fa,Np].join("|")+")",Lp=RegExp(Ln+"(?="+Ln+")|"+Fp+Mp,"g");function Vp(e){return e.match(Lp)||[]}function Hp(e){return ca(e)?Vp(e):$p(e)}function ma(e){return function(t){t=oe(t);var r=ca(t)?Hp(t):void 0,n=r?r[0]:t.charAt(0),i=r?bp(r,1).join(""):t.slice(1);return n[e]()+i}}var Up=ma("toUpperCase");const tn=Up;function zp(e){return tn(oe(e).toLowerCase())}function qp(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 Kp={À:"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"},Jp=ga(Kp);const Yp=Jp;var Wp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gp="\\u0300-\\u036f",Zp="\\ufe20-\\ufe2f",Qp="\\u20d0-\\u20ff",Xp=Gp+Zp+Qp,td="["+Xp+"]",ed=RegExp(td,"g");function rd(e){return e=oe(e),e&&e.replace(Wp,Yp).replace(ed,"")}var nd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function id(e){return e.match(nd)||[]}var sd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function od(e){return sd.test(e)}var va="\\ud800-\\udfff",ad="\\u0300-\\u036f",cd="\\ufe20-\\ufe2f",ud="\\u20d0-\\u20ff",ld=ad+cd+ud,ya="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",hd="\\xac\\xb1\\xd7\\xf7",fd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pd="\\u2000-\\u206f",dd=" \\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",md="\\ufe0e\\ufe0f",wa=hd+fd+pd+dd,Ea="['’]",Rs="["+wa+"]",gd="["+ld+"]",Sa="\\d+",vd="["+ya+"]",xa="["+ba+"]",Ta="[^"+va+wa+Sa+ya+ba+_a+"]",yd="\\ud83c[\\udffb-\\udfff]",bd="(?:"+gd+"|"+yd+")",_d="[^"+va+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",Aa="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="["+_a+"]",wd="\\u200d",Ds="(?:"+xa+"|"+Ta+")",Ed="(?:"+pe+"|"+Ta+")",Ps="(?:"+Ea+"(?:d|ll|m|re|s|t|ve))?",Cs="(?:"+Ea+"(?:D|LL|M|RE|S|T|VE))?",$a=bd+"?",ja="["+md+"]?",Sd="(?:"+wd+"(?:"+[_d,Oa,Aa].join("|")+")"+ja+$a+")*",xd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Td="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Od=ja+$a+Sd,Ad="(?:"+[vd,Oa,Aa].join("|")+")"+Od,$d=RegExp([pe+"?"+xa+"+"+Ps+"(?="+[Rs,pe,"$"].join("|")+")",Ed+"+"+Cs+"(?="+[Rs,pe+Ds,"$"].join("|")+")",pe+"?"+Ds+"+"+Ps,pe+"+"+Cs,Td,xd,Sa,Ad].join("|"),"g");function jd(e){return e.match($d)||[]}function Rd(e,t,r){return e=oe(e),t=t,t===void 0?od(e)?jd(e):id(e):e.match(t)||[]}var Dd="['’]",Pd=RegExp(Dd,"g");function Ri(e){return function(t){return qp(Rd(rd(t).replace(Pd,"")),e,"")}}var Cd=Ri(function(e,t,r){return t=t.toLowerCase(),e+(r?zp(t):t)});const Vt=Cd;function Nd(){this.__data__=new kt,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 Id(e){return this.__data__.has(e)}var Md=200;function Fd(e,t){var r=this.__data__;if(r instanceof kt){var n=r.__data__;if(!Ze||n.length<Md-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Bt(n)}return r.set(e,t),this.size=r.size,this}function Ot(e){var t=this.__data__=new kt(e);this.size=t.size}Ot.prototype.clear=Nd,Ot.prototype.delete=kd,Ot.prototype.get=Bd,Ot.prototype.has=Id,Ot.prototype.set=Fd;var Ra=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ns=Ra&&typeof module=="object"&&module&&!module.nodeType&&module,Ld=Ns&&Ns.exports===Ra,ks=Ld?At.Buffer:void 0,Bs=ks?ks.allocUnsafe:void 0;function Da(e,t){if(t)return e.slice();var r=e.length,n=Bs?Bs(r):new e.constructor(r);return e.copy(n),n}function Vd(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 Hd(){return[]}var Ud=Object.prototype,zd=Ud.propertyIsEnumerable,Is=Object.getOwnPropertySymbols,qd=Is?function(e){return e==null?[]:(e=Object(e),Vd(Is(e),function(t){return zd.call(e,t)}))}:Hd;const Kd=qd;function Jd(e,t,r){var n=t(e);return ht(e)?n:ap(n,r(e))}function Vn(e){return Jd(e,Zr,Kd)}var Yd=se(At,"DataView");const Hn=Yd;var Wd=se(At,"Promise");const Un=Wd;var Gd=se(At,"Set");const zn=Gd;var Ms="[object Map]",Zd="[object Object]",Fs="[object Promise]",Ls="[object Set]",Vs="[object WeakMap]",Hs="[object DataView]",Qd=ie(Hn),Xd=ie(Ze),tm=ie(Un),em=ie(zn),rm=ie(Mn),Qt=yt;(Hn&&Qt(new Hn(new ArrayBuffer(1)))!=Hs||Ze&&Qt(new Ze)!=Ms||Un&&Qt(Un.resolve())!=Fs||zn&&Qt(new zn)!=Ls||Mn&&Qt(new Mn)!=Vs)&&(Qt=function(e){var t=yt(e),r=t==Zd?e.constructor:void 0,n=r?ie(r):"";if(n)switch(n){case Qd:return Hs;case Xd:return Ms;case tm:return Fs;case em:return Ls;case rm:return Vs}return t});const Qe=Qt;var nm=Object.prototype,im=nm.hasOwnProperty;function sm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&im.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var om=At.Uint8Array;const Lr=om;function Di(e){var t=new e.constructor(e.byteLength);return new Lr(t).set(new Lr(e)),t}function am(e,t){var r=Di(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var cm=/\w*$/;function um(e){var t=new e.constructor(e.source,cm.exec(e));return t.lastIndex=e.lastIndex,t}var Us=Rt?Rt.prototype:void 0,zs=Us?Us.valueOf:void 0;function lm(e){return zs?Object(zs.call(e)):{}}function Pa(e,t){var r=t?Di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var hm="[object Boolean]",fm="[object Date]",pm="[object Map]",dm="[object Number]",mm="[object RegExp]",gm="[object Set]",vm="[object String]",ym="[object Symbol]",bm="[object ArrayBuffer]",_m="[object DataView]",wm="[object Float32Array]",Em="[object Float64Array]",Sm="[object Int8Array]",xm="[object Int16Array]",Tm="[object Int32Array]",Om="[object Uint8Array]",Am="[object Uint8ClampedArray]",$m="[object Uint16Array]",jm="[object Uint32Array]";function Rm(e,t,r){var n=e.constructor;switch(t){case bm:return Di(e);case hm:case fm:return new n(+e);case _m:return am(e);case wm:case Em:case Sm:case xm:case Tm:case Om:case Am:case $m:case jm:return Pa(e,r);case pm:return new n;case dm:case vm:return new n(e);case mm:return um(e);case gm:return new n;case ym:return lm(e)}}function Ca(e){return typeof e.constructor=="function"&&!Si(e)?ch(sa(e)):{}}var Dm="[object Map]";function Pm(e){return st(e)&&Qe(e)==Dm}var qs=Dt&&Dt.isMap,Cm=qs?ar(qs):Pm;const Nm=Cm;var km="[object Set]";function Bm(e){return st(e)&&Qe(e)==km}var Ks=Dt&&Dt.isSet,Im=Ks?ar(Ks):Bm;const Mm=Im;var Fm=1,Na="[object Arguments]",Lm="[object Array]",Vm="[object Boolean]",Hm="[object Date]",Um="[object Error]",ka="[object Function]",zm="[object GeneratorFunction]",qm="[object Map]",Km="[object Number]",Ba="[object Object]",Jm="[object RegExp]",Ym="[object Set]",Wm="[object String]",Gm="[object Symbol]",Zm="[object WeakMap]",Qm="[object ArrayBuffer]",Xm="[object DataView]",tg="[object Float32Array]",eg="[object Float64Array]",rg="[object Int8Array]",ng="[object Int16Array]",ig="[object Int32Array]",sg="[object Uint8Array]",og="[object Uint8ClampedArray]",ag="[object Uint16Array]",cg="[object Uint32Array]",Q={};Q[Na]=Q[Lm]=Q[Qm]=Q[Xm]=Q[Vm]=Q[Hm]=Q[tg]=Q[eg]=Q[rg]=Q[ng]=Q[ig]=Q[qm]=Q[Km]=Q[Ba]=Q[Jm]=Q[Ym]=Q[Wm]=Q[Gm]=Q[sg]=Q[og]=Q[ag]=Q[cg]=!0,Q[Um]=Q[ka]=Q[Zm]=!1;function Ar(e,t,r,n,i,s){var o,a=t&Fm;if(o!==void 0)return o;if(!ot(e))return e;var l=ht(e);if(l)o=sm(e);else{var c=Qe(e),u=c==ka||c==zm;if(Te(e))return Da(e,a);if(c==Ba||c==Na||u&&!i)o=u?{}:Ca(e);else{if(!Q[c])return i?e:{};o=Rm(e,c,a)}}s||(s=new Ot);var h=s.get(e);if(h)return h;s.set(e,o),Mm(e)?e.forEach(function(d){o.add(Ar(d,t,r,d,e,s))}):Nm(e)&&e.forEach(function(d,m){o.set(m,Ar(d,t,r,m,e,s))});var f=Vn,p=l?void 0:f(e);return wh(p||e,function(d,m){p&&(m=d,d=e[m]),wi(o,m,Ar(d,t,r,m,e,s))}),o}var ug=1,lg=4;function Xe(e){return Ar(e,ug|lg)}var hg="__lodash_hash_undefined__";function fg(e){return this.__data__.set(e,hg),this}function pg(e){return this.__data__.has(e)}function $r(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Bt;++t<r;)this.add(e[t])}$r.prototype.add=$r.prototype.push=fg,$r.prototype.has=pg;function dg(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 mg(e,t){return e.has(t)}var gg=1,vg=2;function Ia(e,t,r,n,i,s){var o=r&gg,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&vg?new $r: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(!dg(t,function(E,v){if(!mg(p,v)&&(d===E||i(d,E,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 yg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function bg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var _g=1,wg=2,Eg="[object Boolean]",Sg="[object Date]",xg="[object Error]",Tg="[object Map]",Og="[object Number]",Ag="[object RegExp]",$g="[object Set]",jg="[object String]",Rg="[object Symbol]",Dg="[object ArrayBuffer]",Pg="[object DataView]",Js=Rt?Rt.prototype:void 0,bn=Js?Js.valueOf:void 0;function Cg(e,t,r,n,i,s,o){switch(r){case Pg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Dg:return!(e.byteLength!=t.byteLength||!s(new Lr(e),new Lr(t)));case Eg:case Sg:case Og:return De(+e,+t);case xg:return e.name==t.name&&e.message==t.message;case Ag:case jg:return e==t+"";case Tg:var a=yg;case $g:var l=n&_g;if(a||(a=bg),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=wg,o.set(e,t);var u=Ia(a(e),a(t),n,i,s,o);return o.delete(e),u;case Rg:if(bn)return bn.call(e)==bn.call(t)}return!1}var Ng=1,kg=Object.prototype,Bg=kg.hasOwnProperty;function Ig(e,t,r,n,i,s){var o=r&Ng,a=Vn(e),l=a.length,c=Vn(t),u=c.length;if(l!=u&&!o)return!1;for(var h=l;h--;){var f=a[h];if(!(o?f in t:Bg.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 E=e[f],v=t[f];if(n)var y=o?n(v,E,f,t,e,s):n(E,v,f,e,t,s);if(!(y===void 0?E===v||i(E,v,r,n,s):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(m=!1)}return s.delete(e),s.delete(t),m}var Mg=1,Ys="[object Arguments]",Ws="[object Array]",gr="[object Object]",Fg=Object.prototype,Gs=Fg.hasOwnProperty;function Lg(e,t,r,n,i,s){var o=ht(e),a=ht(t),l=o?Ws:Qe(e),c=a?Ws:Qe(t);l=l==Ys?gr:l,c=c==Ys?gr:c;var u=l==gr,h=c==gr,f=l==c;if(f&&Te(e)){if(!Te(t))return!1;o=!0,u=!1}if(f&&!u)return s||(s=new Ot),o||xi(e)?Ia(e,t,r,n,i,s):Cg(e,t,l,r,n,i,s);if(!(r&Mg)){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),Ig(e,t,r,n,i,s)):!1}function en(e,t,r,n,i){return e===t?!0:e==null||t==null||!st(e)&&!st(t)?e!==e&&t!==t:Lg(e,t,r,n,en,i)}var Vg=1,Hg=2;function Ug(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?en(c,l,Vg|Hg,n,u):h))return!1}}return!0}function Ma(e){return e===e&&!ot(e)}function zg(e){for(var t=Zr(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 qg(e){var t=zg(e);return t.length==1&&t[0][2]?Fa(t[0][0],t[0][1]):function(r){return r===e||Ug(r,e,t)}}function Kg(e,t){return e!=null&&t in Object(e)}function Jg(e,t,r){t=$i(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=cr(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&&Ei(i)&&Wr(o,i)&&(ht(e)||Fr(e)))}function Yg(e,t){return e!=null&&Jg(e,t,Kg)}var Wg=1,Gg=2;function Zg(e,t){return Oi(e)&&Ma(t)?Fa(cr(e),t):function(r){var n=ia(r,e);return n===void 0&&n===t?Yg(r,e):en(t,n,Wg|Gg)}}function Qg(e){return function(t){return t==null?void 0:t[e]}}function Xg(e){return function(t){return na(t,e)}}function t1(e){return Oi(e)?Qg(cr(e)):Xg(e)}function e1(e){return typeof e=="function"?e:e==null?_i:typeof e=="object"?ht(e)?Zg(e[0],e[1]):qg(e):t1(e)}function r1(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 n1(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 i1=n1();const La=i1;function s1(e,t){return e&&La(e,t,Zr)}function o1(e,t){return function(r,n){if(r==null)return r;if(!or(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 a1=o1(s1);const c1=a1;function u1(e,t,r,n){return c1(e,function(i,s,o){t(n,i,r(i),o)}),n}function l1(e,t){return function(r,n){var i=ht(r)?r1:u1,s={};return i(r,e,e1(n),s)}}var h1=function(){return At.Date.now()};const _n=h1;var f1="Expected a function",p1=Math.max,d1=Math.min;function Pi(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(f1);t=ws(t)||0,ot(r)&&(u=!!r.leading,h="maxWait"in r,s=h?p1(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(E,t),u?p(g):o}function m(g){var x=g-l,O=g-c,V=t-x;return h?d1(V,s-O):V}function b(g){var x=g-l,O=g-c;return l===void 0||x>=t||x<0||h&&O>=s}function E(){var g=_n();if(b(g))return v(g);a=setTimeout(E,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(_n())}function S(){var g=_n(),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(E,t),p(l)}return a===void 0&&(a=setTimeout(E,t)),o}return S.cancel=y,S.flush=_,S}function qn(e,t,r){(r!==void 0&&!De(e[t],r)||r===void 0&&!(t in e))&&Gr(e,t,r)}function m1(e){return st(e)&&or(e)}function Kn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function g1(e){return Yo(e,Ti(e))}function v1(e,t,r,n,i,s,o){var a=Kn(e,r),l=Kn(t,r),c=o.get(l);if(c){qn(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&&Te(l),d=!f&&!p&&xi(l);u=l,f||p||d?ht(a)?u=a:m1(a)?u=lh(a):p?(h=!1,u=Da(l,!0)):d?(h=!1,u=Pa(l,!0)):u=[]:ji(l)||Fr(l)?(u=a,Fr(a)?u=g1(a):(!ot(a)||ne(a))&&(u=Ca(l))):h=!1}h&&(o.set(l,u),i(u,l,n,s,o),o.delete(l)),qn(e,r,u)}function Va(e,t,r,n,i){e!==t&&La(t,function(s,o){if(i||(i=new Ot),ot(s))v1(e,t,o,r,Va,n,i);else{var a=n?n(Kn(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),qn(e,o,a)}},Ti)}var y1={"&":"&","<":"<",">":">",'"':""","'":"'"},b1=ga(y1);const _1=b1;var Ha=/[&<>"']/g,w1=RegExp(Ha.source);function E1(e){return e=oe(e),e&&w1.test(e)?e.replace(Ha,_1):e}var S1=Object.prototype,x1=S1.hasOwnProperty,T1=l1(function(e,t,r){x1.call(e,r)?e[r].push(t):Gr(e,r,[t])});const Ua=T1;var O1="[object String]";function vt(e){return typeof e=="string"||!ht(e)&&st(e)&&yt(e)==O1}function A1(e,t){return qo(t,function(r){return e[r]})}var $1="[object ArrayBuffer]";function j1(e){return st(e)&&yt(e)==$1}var Zs=Dt&&Dt.isArrayBuffer,R1=Zs?ar(Zs):j1;const D1=R1;var P1="[object Boolean]";function C1(e){return e===!0||e===!1||st(e)&&yt(e)==P1}var N1="[object Date]";function k1(e){return st(e)&&yt(e)==N1}var Qs=Dt&&Dt.isDate,B1=Qs?ar(Qs):k1;const I1=B1;function M1(e,t){return en(e,t)}var F1="[object Number]";function za(e){return typeof e=="number"||st(e)&&yt(e)==F1}function L1(e){return za(e)&&e!=+e}function V1(e){return e===null}function H1(e){return e===void 0}var U1=Ri(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const z1=U1;var q1=ma("toLowerCase");const K1=q1;var J1=Zo(function(e,t,r){Va(e,t,r)});const $t=J1;function Y1(e,t,r,n){if(!ot(e))return e;t=$i(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var l=cr(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:Wr(t[i+1])?[]:{})}wi(a,l,c),a=a[l]}return e}function W1(e,t,r){return e==null?e:Y1(e,t,r)}var G1=Ri(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const Z1=G1;var qa=Object.prototype,Q1=qa.hasOwnProperty;function Xs(e,t,r,n){return e===void 0||De(e,qa[r])&&!Q1.call(n,r)?t:e}var X1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function t0(e){return"\\"+X1[e]}var e0=/<%=([\s\S]+?)%>/g;const Ka=e0;var r0=/<%-([\s\S]+?)%>/g;const n0=r0;var i0=/<%([\s\S]+?)%>/g;const s0=i0;var o0={escape:n0,evaluate:s0,interpolate:Ka,variable:"",imports:{_:{escape:E1}}};const to=o0;var a0="Invalid `variable` option passed into `_.template`",c0=/\b__p \+= '';/g,u0=/\b(__p \+=) '' \+/g,l0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,h0=/[()=,{}\[\]\/\s]/,f0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vr=/($^)/,p0=/['\n\r\u2028\u2029\\]/g,d0=Object.prototype,eo=d0.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=Zr(i),o=A1(i,s),a,l,c=0,u=t.interpolate||vr,h="__p += '",f=RegExp((t.escape||vr).source+"|"+u.source+"|"+(u===Ka?f0:vr).source+"|"+(t.evaluate||vr).source+"|$","g"),p=eo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
-
`:"";e.replace(f,function(b,E,v,y,_,S){return v||(v=y),h+=e.slice(c,S).replace(p0,t0),E&&(a=!0,h+=`' +
|
|
4
|
-
__e(`+E+`) +
|
|
5
|
-
'`),_&&(l=!0,h+=`';
|
|
6
|
-
`+_+`;
|
|
7
|
-
__p += '`),v&&(h+=`' +
|
|
8
|
-
((__t = (`+v+`)) == null ? '' : __t) +
|
|
9
|
-
'`),c=S+b.length,b}),h+=`';
|
|
10
|
-
`;var d=eo.call(t,"variable")&&t.variable;if(!d)h=`with (obj) {
|
|
11
|
-
`+h+`
|
|
12
|
-
}
|
|
13
|
-
`;else if(h0.test(d))throw new Error(a0);h=(l?h.replace(c0,""):h).replace(u0,"$1").replace(l0,"$1;"),h="function("+(d||"obj")+`) {
|
|
14
|
-
`+(d?"":`obj || (obj = {});
|
|
15
|
-
`)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
|
|
16
|
-
function print() { __p += __j.call(arguments, '') }
|
|
17
|
-
`:`;
|
|
18
|
-
`)+h+`return __p
|
|
19
|
-
}`;var m=vp(function(){return Function(s,p+"return "+h).apply(void 0,o)});if(m.source=h,aa(m))throw m;return m}var m0="Expected a function";function Ya(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(m0);return ot(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Pi(e,t,{leading:n,maxWait:t,trailing:i})}function Jn(e){return tn(Vt(e))}var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wa={exports:{}};function g0(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ro={exports:{}},no;function Yt(){return no||(no=1,function(e,t){(function(r,n){e.exports=n()})(ut,function(){var r=r||function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof ut<"u"&&ut.crypto&&(s=ut.crypto),!s&&typeof g0=="function")try{s=require("crypto")}catch(v){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(v){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function v(){}return function(y){var _;return v.prototype=y,_=new v,v.prototype=null,_}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(v){var y=a(this);return v&&y.mixIn(v),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var y in v)v.hasOwnProperty(y)&&(this[y]=v[y]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=c.WordArray=u.extend({init:function(v,y){v=this.words=v||[],y!=i?this.sigBytes=y:this.sigBytes=v.length*4},toString:function(v){return(v||p).stringify(this)},concat:function(v){var y=this.words,_=v.words,S=this.sigBytes,g=v.sigBytes;if(this.clamp(),S%4)for(var x=0;x<g;x++){var O=_[x>>>2]>>>24-x%4*8&255;y[S+x>>>2]|=O<<24-(S+x)%4*8}else for(var V=0;V<g;V+=4)y[S+V>>>2]=_[V>>>2];return this.sigBytes+=g,this},clamp:function(){var v=this.words,y=this.sigBytes;v[y>>>2]&=4294967295<<32-y%4*8,v.length=n.ceil(y/4)},clone:function(){var v=u.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var y=[],_=0;_<v;_+=4)y.push(o());return new h.init(y,v)}}),f=l.enc={},p=f.Hex={stringify:function(v){for(var y=v.words,_=v.sigBytes,S=[],g=0;g<_;g++){var x=y[g>>>2]>>>24-g%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(v){for(var y=v.length,_=[],S=0;S<y;S+=2)_[S>>>3]|=parseInt(v.substr(S,2),16)<<24-S%8*4;return new h.init(_,y/2)}},d=f.Latin1={stringify:function(v){for(var y=v.words,_=v.sigBytes,S=[],g=0;g<_;g++){var x=y[g>>>2]>>>24-g%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(v){for(var y=v.length,_=[],S=0;S<y;S++)_[S>>>2]|=(v.charCodeAt(S)&255)<<24-S%4*8;return new h.init(_,y)}},m=f.Utf8={stringify:function(v){try{return decodeURIComponent(escape(d.stringify(v)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(v){return d.parse(unescape(encodeURIComponent(v)))}},b=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=m.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var y,_=this._data,S=_.words,g=_.sigBytes,x=this.blockSize,O=x*4,V=g/O;v?V=n.ceil(V):V=n.max((V|0)-this._minBufferSize,0);var w=V*x,T=n.min(w*4,g);if(w){for(var F=0;F<w;F+=x)this._doProcessBlock(S,F);y=S.splice(0,w),_.sigBytes-=T}return new h.init(y,T)},clone:function(){var v=u.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=b.extend({cfg:u.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(v){return function(y,_){return new v.init(_).finalize(y)}},_createHmacHelper:function(v){return function(y,_){return new E.HMAC.init(v,_).finalize(y)}}});var E=l.algo={};return l}(Math);return r})}(ro)),ro.exports}(function(e,t){(function(r,n){e.exports=n(Yt())})(ut,function(r){return function(n){var i=r,s=i.lib,o=s.WordArray,a=s.Hasher,l=i.algo,c=[];(function(){for(var m=0;m<64;m++)c[m]=n.abs(n.sin(m+1))*4294967296|0})();var u=l.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,b){for(var E=0;E<16;E++){var v=b+E,y=m[v];m[v]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var _=this._hash.words,S=m[b+0],g=m[b+1],x=m[b+2],O=m[b+3],V=m[b+4],w=m[b+5],T=m[b+6],F=m[b+7],C=m[b+8],I=m[b+9],D=m[b+10],k=m[b+11],U=m[b+12],L=m[b+13],z=m[b+14],q=m[b+15],$=_[0],P=_[1],N=_[2],B=_[3];$=h($,P,N,B,S,7,c[0]),B=h(B,$,P,N,g,12,c[1]),N=h(N,B,$,P,x,17,c[2]),P=h(P,N,B,$,O,22,c[3]),$=h($,P,N,B,V,7,c[4]),B=h(B,$,P,N,w,12,c[5]),N=h(N,B,$,P,T,17,c[6]),P=h(P,N,B,$,F,22,c[7]),$=h($,P,N,B,C,7,c[8]),B=h(B,$,P,N,I,12,c[9]),N=h(N,B,$,P,D,17,c[10]),P=h(P,N,B,$,k,22,c[11]),$=h($,P,N,B,U,7,c[12]),B=h(B,$,P,N,L,12,c[13]),N=h(N,B,$,P,z,17,c[14]),P=h(P,N,B,$,q,22,c[15]),$=f($,P,N,B,g,5,c[16]),B=f(B,$,P,N,T,9,c[17]),N=f(N,B,$,P,k,14,c[18]),P=f(P,N,B,$,S,20,c[19]),$=f($,P,N,B,w,5,c[20]),B=f(B,$,P,N,D,9,c[21]),N=f(N,B,$,P,q,14,c[22]),P=f(P,N,B,$,V,20,c[23]),$=f($,P,N,B,I,5,c[24]),B=f(B,$,P,N,z,9,c[25]),N=f(N,B,$,P,O,14,c[26]),P=f(P,N,B,$,C,20,c[27]),$=f($,P,N,B,L,5,c[28]),B=f(B,$,P,N,x,9,c[29]),N=f(N,B,$,P,F,14,c[30]),P=f(P,N,B,$,U,20,c[31]),$=p($,P,N,B,w,4,c[32]),B=p(B,$,P,N,C,11,c[33]),N=p(N,B,$,P,k,16,c[34]),P=p(P,N,B,$,z,23,c[35]),$=p($,P,N,B,g,4,c[36]),B=p(B,$,P,N,V,11,c[37]),N=p(N,B,$,P,F,16,c[38]),P=p(P,N,B,$,D,23,c[39]),$=p($,P,N,B,L,4,c[40]),B=p(B,$,P,N,S,11,c[41]),N=p(N,B,$,P,O,16,c[42]),P=p(P,N,B,$,T,23,c[43]),$=p($,P,N,B,I,4,c[44]),B=p(B,$,P,N,U,11,c[45]),N=p(N,B,$,P,q,16,c[46]),P=p(P,N,B,$,x,23,c[47]),$=d($,P,N,B,S,6,c[48]),B=d(B,$,P,N,F,10,c[49]),N=d(N,B,$,P,z,15,c[50]),P=d(P,N,B,$,w,21,c[51]),$=d($,P,N,B,U,6,c[52]),B=d(B,$,P,N,O,10,c[53]),N=d(N,B,$,P,D,15,c[54]),P=d(P,N,B,$,g,21,c[55]),$=d($,P,N,B,C,6,c[56]),B=d(B,$,P,N,q,10,c[57]),N=d(N,B,$,P,T,15,c[58]),P=d(P,N,B,$,L,21,c[59]),$=d($,P,N,B,V,6,c[60]),B=d(B,$,P,N,k,10,c[61]),N=d(N,B,$,P,x,15,c[62]),P=d(P,N,B,$,I,21,c[63]),_[0]=_[0]+$|0,_[1]=_[1]+P|0,_[2]=_[2]+N|0,_[3]=_[3]+B|0},_doFinalize:function(){var m=this._data,b=m.words,E=this._nDataBytes*8,v=m.sigBytes*8;b[v>>>5]|=128<<24-v%32;var y=n.floor(E/4294967296),_=E;b[(v+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b[(v+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,m.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,g=S.words,x=0;x<4;x++){var O=g[x];g[x]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return S},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function h(m,b,E,v,y,_,S){var g=m+(b&E|~b&v)+y+S;return(g<<_|g>>>32-_)+b}function f(m,b,E,v,y,_,S){var g=m+(b&v|E&~v)+y+S;return(g<<_|g>>>32-_)+b}function p(m,b,E,v,y,_,S){var g=m+(b^E^v)+y+S;return(g<<_|g>>>32-_)+b}function d(m,b,E,v,y,_,S){var g=m+(E^(b|~v))+y+S;return(g<<_|g>>>32-_)+b}i.MD5=a._createHelper(u),i.HmacMD5=a._createHmacHelper(u)}(Math),r.MD5})})(Wa);var Ga=Wa.exports;const v0=Pe(Ga);var Za={exports:{}};(function(e,t){(function(r,n){e.exports=n(Yt())})(ut,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,h=this._map;l.clamp();for(var f=[],p=0;p<u;p+=3)for(var d=c[p>>>2]>>>24-p%4*8&255,m=c[p+1>>>2]>>>24-(p+1)%4*8&255,b=c[p+2>>>2]>>>24-(p+2)%4*8&255,E=d<<16|m<<8|b,v=0;v<4&&p+v*.75<u;v++)f.push(h.charAt(E>>>6*(3-v)&63));var y=h.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(l){var c=l.length,u=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f<u.length;f++)h[u.charCodeAt(f)]=f}var p=u.charAt(64);if(p){var d=l.indexOf(p);d!==-1&&(c=d)}return a(l,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(l,c,u){for(var h=[],f=0,p=0;p<c;p++)if(p%4){var d=u[l.charCodeAt(p-1)]<<p%4*2,m=u[l.charCodeAt(p)]>>>6-p%4*2,b=d|m;h[f>>>2]|=b<<24-f%4*8,f++}return s.create(h,f)}}(),r.enc.Base64})})(Za);var Qa=Za.exports;const Xa=Pe(Qa);var tc={exports:{}};(function(e,t){(function(r,n){e.exports=n(Yt())})(ut,function(r){return r.enc.Utf8})})(tc);var y0=tc.exports;const Ci=Pe(y0);var ec={exports:{}},io={exports:{}},so={exports:{}},oo;function b0(){return oo||(oo=1,function(e,t){(function(r,n){e.exports=n(Yt())})(ut,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,o=i.Hasher,a=n.algo,l=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,h){for(var f=this._hash.words,p=f[0],d=f[1],m=f[2],b=f[3],E=f[4],v=0;v<80;v++){if(v<16)l[v]=u[h+v]|0;else{var y=l[v-3]^l[v-8]^l[v-14]^l[v-16];l[v]=y<<1|y>>>31}var _=(p<<5|p>>>27)+E+l[v];v<20?_+=(d&m|~d&b)+1518500249:v<40?_+=(d^m^b)+1859775393:v<60?_+=(d&m|d&b|m&b)-1894007588:_+=(d^m^b)-899497514,E=b,b=m,m=d<<30|d>>>2,d=p,p=_}f[0]=f[0]+p|0,f[1]=f[1]+d|0,f[2]=f[2]+m|0,f[3]=f[3]+b|0,f[4]=f[4]+E|0},_doFinalize:function(){var u=this._data,h=u.words,f=this._nDataBytes*8,p=u.sigBytes*8;return h[p>>>5]|=128<<24-p%32,h[(p+64>>>9<<4)+14]=Math.floor(f/4294967296),h[(p+64>>>9<<4)+15]=f,u.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=o._createHelper(c),n.HmacSHA1=o._createHmacHelper(c)}(),r.SHA1})}(so)),so.exports}var ao={exports:{}},co;function _0(){return co||(co=1,function(e,t){(function(r,n){e.exports=n(Yt())})(ut,function(r){(function(){var n=r,i=n.lib,s=i.Base,o=n.enc,a=o.Utf8,l=n.algo;l.HMAC=s.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=a.parse(u));var h=c.blockSize,f=h*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var p=this._oKey=u.clone(),d=this._iKey=u.clone(),m=p.words,b=d.words,E=0;E<h;E++)m[E]^=1549556828,b[E]^=909522486;p.sigBytes=d.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,h=u.finalize(c);u.reset();var f=u.finalize(this._oKey.clone().concat(h));return f}})})()})}(ao)),ao.exports}var uo;function rc(){return uo||(uo=1,function(e,t){(function(r,n,i){e.exports=n(Yt(),b0(),_0())})(ut,function(r){return function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,a=n.algo,l=a.MD5,c=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,h){for(var f,p=this.cfg,d=p.hasher.create(),m=o.create(),b=m.words,E=p.keySize,v=p.iterations;b.length<E;){f&&d.update(f),f=d.update(u).finalize(h),d.reset();for(var y=1;y<v;y++)f=d.finalize(f),d.reset();m.concat(f)}return m.sigBytes=E*4,m}});n.EvpKDF=function(u,h,f){return c.create(f).compute(u,h)}}(),r.EvpKDF})}(io)),io.exports}var lo={exports:{}},ho;function w0(){return ho||(ho=1,function(e,t){(function(r,n,i){e.exports=n(Yt(),rc())})(ut,function(r){r.lib.Cipher||function(n){var i=r,s=i.lib,o=s.Base,a=s.WordArray,l=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,h=i.algo,f=h.EvpKDF,p=s.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(w,T){return this.create(this._ENC_XFORM_MODE,w,T)},createDecryptor:function(w,T){return this.create(this._DEC_XFORM_MODE,w,T)},init:function(w,T,F){this.cfg=this.cfg.extend(F),this._xformMode=w,this._key=T,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(T){return typeof T=="string"?V:g}return function(T){return{encrypt:function(F,C,I){return w(C).encrypt(T,F,C,I)},decrypt:function(F,C,I){return w(C).decrypt(T,F,C,I)}}}}()});s.StreamCipher=p.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var d=i.mode={},m=s.BlockCipherMode=o.extend({createEncryptor:function(w,T){return this.Encryptor.create(w,T)},createDecryptor:function(w,T){return this.Decryptor.create(w,T)},init:function(w,T){this._cipher=w,this._iv=T}}),b=d.CBC=function(){var w=m.extend();w.Encryptor=w.extend({processBlock:function(F,C){var I=this._cipher,D=I.blockSize;T.call(this,F,C,D),I.encryptBlock(F,C),this._prevBlock=F.slice(C,C+D)}}),w.Decryptor=w.extend({processBlock:function(F,C){var I=this._cipher,D=I.blockSize,k=F.slice(C,C+D);I.decryptBlock(F,C),T.call(this,F,C,D),this._prevBlock=k}});function T(F,C,I){var D,k=this._iv;k?(D=k,this._iv=n):D=this._prevBlock;for(var U=0;U<I;U++)F[C+U]^=D[U]}return w}(),E=i.pad={},v=E.Pkcs7={pad:function(w,T){for(var F=T*4,C=F-w.sigBytes%F,I=C<<24|C<<16|C<<8|C,D=[],k=0;k<C;k+=4)D.push(I);var U=a.create(D,C);w.concat(U)},unpad:function(w){var T=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=T}};s.BlockCipher=p.extend({cfg:p.cfg.extend({mode:b,padding:v}),reset:function(){var w;p.reset.call(this);var T=this.cfg,F=T.iv,C=T.mode;this._xformMode==this._ENC_XFORM_MODE?w=C.createEncryptor:(w=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,F&&F.words):(this._mode=w.call(C,this,F&&F.words),this._mode.__creator=w)},_doProcessBlock:function(w,T){this._mode.processBlock(w,T)},_doFinalize:function(){var w,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),T.unpad(w)),w},blockSize:128/32});var y=s.CipherParams=o.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(w){var T,F=w.ciphertext,C=w.salt;return C?T=a.create([1398893684,1701076831]).concat(C).concat(F):T=F,T.toString(u)},parse:function(w){var T,F=u.parse(w),C=F.words;return C[0]==1398893684&&C[1]==1701076831&&(T=a.create(C.slice(2,4)),C.splice(0,4),F.sigBytes-=16),y.create({ciphertext:F,salt:T})}},g=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(w,T,F,C){C=this.cfg.extend(C);var I=w.createEncryptor(F,C),D=I.finalize(T),k=I.cfg;return y.create({ciphertext:D,key:F,iv:k.iv,algorithm:w,mode:k.mode,padding:k.padding,blockSize:w.blockSize,formatter:C.format})},decrypt:function(w,T,F,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var I=w.createDecryptor(F,C).finalize(T.ciphertext);return I},_parse:function(w,T){return typeof w=="string"?T.parse(w,this):w}}),x=i.kdf={},O=x.OpenSSL={execute:function(w,T,F,C,I){if(C||(C=a.random(64/8)),I)var D=f.create({keySize:T+F,hasher:I}).compute(w,C);else var D=f.create({keySize:T+F}).compute(w,C);var k=a.create(D.words.slice(T),F*4);return D.sigBytes=T*4,y.create({key:D,iv:k,salt:C})}},V=s.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:O}),encrypt:function(w,T,F,C){C=this.cfg.extend(C);var I=C.kdf.execute(F,w.keySize,w.ivSize,C.salt,C.hasher);C.iv=I.iv;var D=g.encrypt.call(this,w,T,I.key,C);return D.mixIn(I),D},decrypt:function(w,T,F,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var I=C.kdf.execute(F,w.keySize,w.ivSize,T.salt,C.hasher);C.iv=I.iv;var D=g.decrypt.call(this,w,T,I.key,C);return D}})}()})}(lo)),lo.exports}(function(e,t){(function(r,n,i){e.exports=n(Yt(),Qa,Ga,rc(),w0())})(ut,function(r){return function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,a=[],l=[],c=[],u=[],h=[],f=[],p=[],d=[],m=[],b=[];(function(){for(var y=[],_=0;_<256;_++)_<128?y[_]=_<<1:y[_]=_<<1^283;for(var S=0,g=0,_=0;_<256;_++){var x=g^g<<1^g<<2^g<<3^g<<4;x=x>>>8^x&255^99,a[S]=x,l[x]=S;var O=y[S],V=y[O],w=y[V],T=y[x]*257^x*16843008;c[S]=T<<24|T>>>8,u[S]=T<<16|T>>>16,h[S]=T<<8|T>>>24,f[S]=T;var T=w*16843009^V*65537^O*257^S*16843008;p[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,S?(S=O^y[y[y[w^O]]],g^=y[y[g]]):S=g=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],v=o.AES=s.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,g=_.sigBytes/4,x=this._nRounds=g+6,O=(x+1)*4,V=this._keySchedule=[],w=0;w<O;w++)w<g?V[w]=S[w]:(y=V[w-1],w%g?g>6&&w%g==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=E[w/g|0]<<24),V[w]=V[w-g]^y);for(var T=this._invKeySchedule=[],F=0;F<O;F++){var w=O-F;if(F%4)var y=V[w];else var y=V[w-4];F<4||w<=4?T[F]=y:T[F]=p[a[y>>>24]]^d[a[y>>>16&255]]^m[a[y>>>8&255]]^b[a[y&255]]}}},encryptBlock:function(y,_){this._doCryptBlock(y,_,this._keySchedule,c,u,h,f,a)},decryptBlock:function(y,_){var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S,this._doCryptBlock(y,_,this._invKeySchedule,p,d,m,b,l);var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S},_doCryptBlock:function(y,_,S,g,x,O,V,w){for(var T=this._nRounds,F=y[_]^S[0],C=y[_+1]^S[1],I=y[_+2]^S[2],D=y[_+3]^S[3],k=4,U=1;U<T;U++){var L=g[F>>>24]^x[C>>>16&255]^O[I>>>8&255]^V[D&255]^S[k++],z=g[C>>>24]^x[I>>>16&255]^O[D>>>8&255]^V[F&255]^S[k++],q=g[I>>>24]^x[D>>>16&255]^O[F>>>8&255]^V[C&255]^S[k++],$=g[D>>>24]^x[F>>>16&255]^O[C>>>8&255]^V[I&255]^S[k++];F=L,C=z,I=q,D=$}var L=(w[F>>>24]<<24|w[C>>>16&255]<<16|w[I>>>8&255]<<8|w[D&255])^S[k++],z=(w[C>>>24]<<24|w[I>>>16&255]<<16|w[D>>>8&255]<<8|w[F&255])^S[k++],q=(w[I>>>24]<<24|w[D>>>16&255]<<16|w[F>>>8&255]<<8|w[C&255])^S[k++],$=(w[D>>>24]<<24|w[F>>>16&255]<<16|w[C>>>8&255]<<8|w[I&255])^S[k++];y[_]=L,y[_+1]=z,y[_+2]=q,y[_+3]=$},keySize:256/32});n.AES=s._createHelper(v)}(),r.AES})})(ec);var E0=ec.exports;const nc=Pe(E0);var S0="0123456789abcdefghijklmnopqrstuvwxyz";function Nt(e){return S0.charAt(e)}function x0(e,t){return e&t}function yr(e,t){return e|t}function fo(e,t){return e^t}function po(e,t){return e&~t}function T0(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function O0(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ic="=";function Vr(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=de.charAt(r>>6)+de.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=de.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=de.charAt(r>>2)+de.charAt((r&3)<<4));(n.length&3)>0;)n+=ic;return n}function mo(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=ic;++r){var s=de.indexOf(e.charAt(r));s<0||(n==0?(t+=Nt(s>>2),i=s&3,n=1):n==1?(t+=Nt(i<<2|s>>4),i=s&15,n=2):n==2?(t+=Nt(i),t+=Nt(s>>2),i=s&3,n=3):(t+=Nt(i<<2|s>>4),t+=Nt(s&15),n=0))}return n==1&&(t+=Nt(i<<2)),t}var ue,A0={decode:function(e){var t;if(ue===void 0){var r="0123456789ABCDEF",n=` \f
|
|
20
|
-
\r \u2028\u2029`;for(ue={},t=0;t<16;++t)ue[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)ue[r.charAt(t)]=t;for(t=0;t<n.length;++t)ue[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=ue[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Zt,Yn={decode:function(e){var t;if(Zt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
21
|
-
\r \u2028\u2029`;for(Zt=Object.create(null),t=0;t<64;++t)Zt[r.charAt(t)]=t;for(Zt["-"]=62,Zt._=63,t=0;t<n.length;++t)Zt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Zt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Yn.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return Yn.decode(e)}},le=1e13,Le=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*t+r,o<le?r=0:(r=0|o/le,o-=r*le),n[s]=o;r>0&&(n[s]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-t,s<0?(s+=le,t=1):t=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(le+r[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*le+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),sc="…",$0=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,j0=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function ye(e,t){return e.length>t&&(e=e.substring(0,t)+sc),e}var wn=function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var i="",s=t;s<r;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
|
|
22
|
-
`;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,s,o=t;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),s=(n?$0:j0).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,o,a="";n==s&&++t<r;)n=this.get(t);if(o=r-t,o===0)return i?-1:0;if(o>4){for(a=n,o<<=3;!((+a^s)&128);)a=+a<<1,--o;a="("+o+` bit)
|
|
23
|
-
`}i&&(n=n-256);for(var l=new Le(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
|
-
`,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
|
-
`;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 Le,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 Le)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 Le,o=0}}return o>0&&(i+=".incomplete"),i},e}(),R0=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 wn?r=t:r=new wn(t,0);var n=new wn(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 Le;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,D0=0xdeadbeefcafe,vo=(D0&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],P0=(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=Nt(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+=Nt(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)+br(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,x0,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,yr,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+T0(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+=O0(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,yr)},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 N0(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=br(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 C0)},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<P0;)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-br(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,E=b-u,v=r!=null?r:Y();for(o.dlShiftTo(E,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(;--E>=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,E,0,u))<y)for(o.dlShiftTo(E,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=br(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),yr,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),yr,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}(),C0=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}(),N0=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 En=52;J.prototype.FV=Math.pow(2,En),J.prototype.F1=En-Ht,J.prototype.F2=2*Ht-En;var rn=[],Oe,wt;for(Oe=48,wt=0;wt<=9;++wt)rn[Oe++]=wt;for(Oe=97,wt=10;wt<36;++wt)rn[Oe++]=wt;for(Oe=65,wt=10;wt<36;++wt)rn[Oe++]=wt;function wo(e,t){var r=rn[e.charCodeAt(t)];return r!=null?r:-1}function Ut(e){var t=Y();return t.fromInt(e),t}function br(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,_r,qt=null,Tt;if(qt==null){qt=[],Tt=0;var wr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Sn=new Uint32Array(256);for(window.crypto.getRandomValues(Sn),wr=0;wr<Sn.length;++wr)qt[Tt++]=Sn[wr]&255}var Er=0,Sr=function(e){if(Er=Er||0,Er>=256||Tt>=oc){window.removeEventListener?window.removeEventListener("mousemove",Sr,!1):window.detachEvent&&window.detachEvent("onmousemove",Sr);return}try{var t=e.x+e.y;qt[Tt++]=t&255,Er+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Sr,!1):window.attachEvent&&window.attachEvent("onmousemove",Sr))}function I0(){if(_r==null){for(_r=B0();Tt<oc;){var e=Math.floor(65536*Math.random());qt[Tt++]=e&255}for(_r.init(qt),Tt=0;Tt<qt.length;++Tt)qt[Tt]=0;Tt=0}return _r.next()}var Wn=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=I0()},e}();function M0(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 F0(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 Wn,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 L0=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=F0(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 Wn,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:V0(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Wn,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=H0(n),s=i+r(t).toString(),o=M0(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=U0(o);return a==n(t).toString()},e}();function V0(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 jr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function H0(e){return jr[e]||""}function U0(e){for(var t in jr)if(jr.hasOwnProperty(t)){var r=jr[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
|
|
27
|
-
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
28
|
-
Code licensed under the BSD License:
|
|
29
|
-
http://developer.yahoo.com/yui/license.html
|
|
30
|
-
version: 2.9.0
|
|
31
|
-
*/var rt={};rt.lang={extend:function(e,t,r){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var i;for(i in r)e.prototype[i]=r[i];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,l){for(i=0;i<o.length;i=i+1){var c=o[i],u=l[c];typeof u=="function"&&u!=Object.prototype[c]&&(a[c]=u)}})}catch(a){}s(e.prototype,r)}}};/**
|
|
32
|
-
* @fileOverview
|
|
33
|
-
* @name asn1-1.0.js
|
|
34
|
-
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
35
|
-
* @version asn1 1.0.13 (2017-Jun-02)
|
|
36
|
-
* @since jsrsasign 2.1
|
|
37
|
-
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
38
|
-
*/var R={};(typeof R.asn1>"u"||!R.asn1)&&(R.asn1={}),R.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new J(i,16),a=o.xor(e).add(J.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=R,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,a=r.DERNull,l=r.DERObjectIdentifier,c=r.DEREnumerated,u=r.DERUTF8String,h=r.DERNumericString,f=r.DERPrintableString,p=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,b=r.DERGeneralizedTime,E=r.DERSequence,v=r.DERSet,y=r.DERTaggedObject,_=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var g=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+g+":")==-1)throw"undefined key: "+g;if(g=="bool")return new n(e[g]);if(g=="int")return new i(e[g]);if(g=="bitstr")return new s(e[g]);if(g=="octstr")return new o(e[g]);if(g=="null")return new a(e[g]);if(g=="oid")return new l(e[g]);if(g=="enum")return new c(e[g]);if(g=="utf8str")return new u(e[g]);if(g=="numstr")return new h(e[g]);if(g=="prnstr")return new f(e[g]);if(g=="telstr")return new p(e[g]);if(g=="ia5str")return new d(e[g]);if(g=="utctime")return new m(e[g]);if(g=="gentime")return new b(e[g]);if(g=="seq"){for(var x=e[g],O=[],V=0;V<x.length;V++){var w=_(x[V]);O.push(w)}return new E({array:O})}if(g=="set"){for(var x=e[g],O=[],V=0;V<x.length;V++){var w=_(x[V]);O.push(w)}return new v({array:O})}if(g=="tag"){var T=e[g];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=_(T[2]);return new y({tag:T[0],explicit:T[1],obj:F})}else{var C={};if(T.explicit!==void 0&&(C.explicit=T.explicit),T.tag!==void 0&&(C.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=_(T.obj),new y(C)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},R.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,s="",o=2;o<e.length;o+=2){var a=parseInt(e.substr(o,2),16),l=("00000000"+a.toString(2)).slice(-8);if(s=s+l.substr(1,7),l.substr(0,1)=="0"){var c=new J(s,2);i=i+"."+c.toString(10),s=""}}return i},R.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var l=a.toString(16);return l.length==1&&(l="0"+l),l},r=function(a){var l="",c=new J(a,10),u=c.toString(2),h=7-u.length%7;h==7&&(h=0);for(var f="",p=0;p<h;p++)f+="0";u=f+u;for(var p=0;p<u.length-1;p+=7){var d=u.substr(p,7);p!=u.length-7&&(d="1"+d),l+=t(parseInt(d,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=r(i[o]);return n},R.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},R.asn1.DERAbstractString=function(e){R.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},rt.lang.extend(R.asn1.DERAbstractString,R.asn1.ASN1Object),R.asn1.DERAbstractTime=function(e){R.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());r=="utc"&&(o=o.substr(2,2));var a=i(String(s.getMonth()+1),2),l=i(String(s.getDate()),2),c=i(String(s.getHours()),2),u=i(String(s.getMinutes()),2),h=i(String(s.getSeconds()),2),f=o+a+l+c+u+h;if(n===!0){var p=s.getMilliseconds();if(p!=0){var d=i(String(p),3);d=d.replace(/[0]+$/,""),f=f+"."+d}}return f+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,s,o){var a=new Date(Date.UTC(t,r-1,n,i,s,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},rt.lang.extend(R.asn1.DERAbstractTime,R.asn1.ASN1Object),R.asn1.DERAbstractStructured=function(e){R.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},rt.lang.extend(R.asn1.DERAbstractStructured,R.asn1.ASN1Object),R.asn1.DERBoolean=function(){R.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},rt.lang.extend(R.asn1.DERBoolean,R.asn1.ASN1Object),R.asn1.DERInteger=function(e){R.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=R.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},rt.lang.extend(R.asn1.DERInteger,R.asn1.ASN1Object),R.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=R.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}R.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substr(i,8),a=parseInt(o,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},rt.lang.extend(R.asn1.DERBitString,R.asn1.ASN1Object),R.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=R.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}R.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},rt.lang.extend(R.asn1.DEROctetString,R.asn1.DERAbstractString),R.asn1.DERNull=function(){R.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},rt.lang.extend(R.asn1.DERNull,R.asn1.ASN1Object),R.asn1.DERObjectIdentifier=function(e){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new J(n,10),o=s.toString(2),a=7-o.length%7;a==7&&(a=0);for(var l="",c=0;c<a;c++)l+="0";o=l+o;for(var c=0;c<o.length-1;c+=7){var u=o.substr(c,7);c!=o.length-7&&(u="1"+u),i+=t(parseInt(u,2))}return i};R.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=r(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=R.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},rt.lang.extend(R.asn1.DERObjectIdentifier,R.asn1.ASN1Object),R.asn1.DEREnumerated=function(e){R.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=R.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},rt.lang.extend(R.asn1.DEREnumerated,R.asn1.ASN1Object),R.asn1.DERUTF8String=function(e){R.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},rt.lang.extend(R.asn1.DERUTF8String,R.asn1.DERAbstractString),R.asn1.DERNumericString=function(e){R.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},rt.lang.extend(R.asn1.DERNumericString,R.asn1.DERAbstractString),R.asn1.DERPrintableString=function(e){R.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},rt.lang.extend(R.asn1.DERPrintableString,R.asn1.DERAbstractString),R.asn1.DERTeletexString=function(e){R.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},rt.lang.extend(R.asn1.DERTeletexString,R.asn1.DERAbstractString),R.asn1.DERIA5String=function(e){R.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},rt.lang.extend(R.asn1.DERIA5String,R.asn1.DERAbstractString),R.asn1.DERUTCTime=function(e){R.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},rt.lang.extend(R.asn1.DERUTCTime,R.asn1.DERAbstractTime),R.asn1.DERGeneralizedTime=function(e){R.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},rt.lang.extend(R.asn1.DERGeneralizedTime,R.asn1.DERAbstractTime),R.asn1.DERSequence=function(e){R.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}},rt.lang.extend(R.asn1.DERSequence,R.asn1.DERAbstractStructured),R.asn1.DERSet=function(e){R.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},rt.lang.extend(R.asn1.DERSet,R.asn1.DERAbstractStructured),R.asn1.DERTaggedObject=function(e){R.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},rt.lang.extend(R.asn1.DERTaggedObject,R.asn1.ASN1Object);var z0=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Eo=function(e){z0(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?A0.decode(r):Yn.unarmor(r),a=R0.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=tt(n,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=a.sub[3].getHexStringValue();this.d=tt(l,16);var c=a.sub[4].getHexStringValue();this.p=tt(c,16);var u=a.sub[5].getHexStringValue();this.q=tt(u,16);var h=a.sub[6].getHexStringValue();this.dmp1=tt(h,16);var f=a.sub[7].getHexStringValue();this.dmq1=tt(f,16);var p=a.sub[8].getHexStringValue();this.coeff=tt(p,16)}else if(a.sub.length===2)if(a.sub[0].sub){var d=a.sub[1],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=tt(n,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=a.sub[0].getHexStringValue(),this.n=tt(n,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new R.asn1.DERInteger({int:0}),new R.asn1.DERInteger({bigint:this.n}),new R.asn1.DERInteger({int:this.e}),new R.asn1.DERInteger({bigint:this.d}),new R.asn1.DERInteger({bigint:this.p}),new R.asn1.DERInteger({bigint:this.q}),new R.asn1.DERInteger({bigint:this.dmp1}),new R.asn1.DERInteger({bigint:this.dmq1}),new R.asn1.DERInteger({bigint:this.coeff})]},n=new R.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Vr(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new R.asn1.DERSequence({array:[new R.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new R.asn1.DERNull]}),n=new R.asn1.DERSequence({array:[new R.asn1.DERInteger({bigint:this.n}),new R.asn1.DERInteger({int:this.e})]}),i=new R.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new R.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Vr(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
|
|
39
|
-
?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
|
|
40
|
-
`)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
|
|
41
|
-
`;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
42
|
-
`,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
|
|
43
|
-
`;return r+=t.wordwrap(this.getPublicBaseKeyB64())+`
|
|
44
|
-
`,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},t}(L0),xn,q0=typeof process<"u"?(xn=bl)===null||xn===void 0?void 0:xn.npm_package_version:void 0,ac=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Eo(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(mo(t))}catch(r){return!1}},e.prototype.encrypt=function(t){try{return Vr(this.getKey().encrypt(t))}catch(r){return!1}},e.prototype.sign=function(t,r,n){try{return Vr(this.getKey().sign(t,r,n))}catch(i){return!1}},e.prototype.verify=function(t,r,n){try{return this.getKey().verify(t,mo(r),n)}catch(i){return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Eo,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=q0,e}();const K0="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALdyxTCEB5WcGnbeUyN4xn1cs8z+0tC72vgbd/L99om5TZ0OfRqRb6Y7RJfdimB9LJyvmyP9T1P0jWrHkotq8iUCAwEAAQ==",J0="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function Y0(e){return String(v0(e))}function W0(e){const t=Ci.parse(e);return Xa.stringify(t)}function G0(e){return Ci.stringify(Xa.parse(e))}function Z0(e,t=K0){const r=new ac;return r.setKey(t),r.encrypt(e)}function Gn(e,t=J0){const r=new ac;return r.setPrivateKey(t),r.decrypt(e)}function Q0(e,t){return nc.encrypt(e,t).toString()}function X0(e,t){return nc.decrypt(e,t).toString(Ci)}const Ni=/^(http|https):\/\/[\w.:\-@]*/,cc=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,uc=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/,lc=/^(0|86|17951)?(1[\d]{10})$/,hc=/^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[a-zA-Z](([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1})$/;function fc(e){return Ni.test(e)}function tv(e){return cc.test(e)}function ev(e){return uc.test(e)}function rv(e){return lc.test(e)}function nv(e){return hc.test(e)}var pc={exports:{}};/*! @preserve
|
|
45
|
-
* numeral.js
|
|
46
|
-
* version : 2.0.6
|
|
47
|
-
* author : Adam Draper
|
|
48
|
-
* license : MIT
|
|
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="",E=1e12,v=1e9,y=1e6,_=1e3,S="",g=!1,x,O,V,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>=E&&!x||x==="t"?(b+=f.abbreviations.trillion,c=c/E):O<E&&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("[.]",".")),V=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("["),S=t._.toFixed(c,w[0].length+w[1].length,h,w[1].length)):S=t._.toFixed(c,w.length,h),V=S.split(".")[0],t._.includes(S,".")?S=f.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):V=t._.toFixed(c,0,h),b&&!x&&Number(V)>=1e3&&b!==f.abbreviations.trillion)switch(V=String(Number(V)/1e3),b){case f.abbreviations.thousand:b=f.abbreviations.million;break;case f.abbreviations.million:b=f.abbreviations.billion;break;case f.abbreviations.billion:b=f.abbreviations.trillion;break}if(t._.includes(V,"-")&&(V=V.slice(1),g=!0),V.length<m)for(var I=m-V.length;I>0;I--)V="0"+V;return F>-1&&(V=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),u.indexOf(".")===0&&(V=""),C=V+S+(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,E,v;return p.length===2?m=Math.min(Math.max(p[1].length,d),u):m=d,E=Math.pow(10,m),v=(h(c+"e+"+m)/E).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,E,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{E=t.localeData(u)}catch(y){E=t.localeData(t.locale())}return p=E.currency.symbol,m=E.abbreviations,h=E.delimiters.decimal,E.delimiters.thousands==="."?f="\\.":f=E.delimiters.thousands,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,E=t._.includes(d,"ib")?u:c,v=t._.includes(d," b")||t._.includes(d," ib")?" ":"",y,_,S;for(d=d.replace(/\s?i?b/,""),y=0;y<=E.suffixes.length;y++)if(_=Math.pow(E.base,y),S=Math.pow(E.base,y+1),p===null||p===0||p>=_&&p<S){v+=E.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,E){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 iv=pc.exports;const dc=Pe(iv);function sv(e,t="0.00"){return dc(e).format(t)}function ov(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+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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"],k=I%100;return"["+I+(D[(k-20)%10]||D[k]||D[0])+"]"}},y=function(I,D,k){var U=String(I);return!U||U.length>=D?I:""+Array(D+1-U.length).join(k)+I},_={s:y,z:function(I){var D=-I.utcOffset(),k=Math.abs(D),U=Math.floor(k/60),L=k%60;return(D<=0?"+":"-")+y(U,2,"0")+":"+y(L,2,"0")},m:function I(D,k){if(D.date()<k.date())return-I(k,D);var U=12*(k.year()-D.year())+(k.month()-D.month()),L=D.clone().add(U,h),z=k-L<0,q=D.clone().add(U+(z?-1:1),h);return+(-(U+(k-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}},S="en",g={};g[S]=v;var x="$isDayjsObject",O=function(I){return I instanceof F||!(!I||!I[x])},V=function I(D,k,U){var L;if(!D)return S;if(typeof D=="string"){var z=D.toLowerCase();g[z]&&(L=z),k&&(g[z]=k,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&&(S=L),L||!U&&S},w=function(I,D){if(O(I))return I.clone();var k=typeof D=="object"?D:{};return k.date=I,k.args=arguments,new F(k)},T=_;T.l=V,T.i=O,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var F=function(){function I(k){this.$L=V(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(k){this.$d=function(U){var 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)}(k),this.init()},D.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(k,U){var L=w(k);return this.startOf(U)<=L&&L<=this.endOf(U)},D.isAfter=function(k,U){return w(k)<this.startOf(U)},D.isBefore=function(k,U){return this.endOf(U)<w(k)},D.$g=function(k,U,L){return T.u(k)?this[U]:this.set(L,k)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(k,U){var L=this,z=!!T.u(U)||U,q=T.p(k),$=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)},N=this.$W,B=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,B):$(0,B+1);case u:var Wt=this.$locale().weekStart||0,Ne=(N<Wt?N+7:N)-Wt;return $(z?bt-Ne:bt+(6-Ne),B);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(k){return this.startOf(k,!1)},D.$set=function(k,U){var L,z=T.p(k),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 N=this.clone().set(d,1);N.$d[$](P),N.init(),this.$d=N.set(d,Math.min(this.$D,N.daysInMonth())).$d}else $&&this.$d[$](P);return this.init(),this},D.set=function(k,U){return this.clone().$set(k,U)},D.get=function(k){return this[T.p(k)]()},D.add=function(k,U){var L,z=this;k=Number(k);var q=T.p(U),$=function(B){var bt=w(z);return T.w(bt.date(bt.date()+Math.round(B*k)),z)};if(q===h)return this.set(h,this.$M+k);if(q===p)return this.set(p,this.$y+k);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,N=this.$d.getTime()+k*P;return T.w(N,this)},D.subtract=function(k,U){return this.add(-1*k,U)},D.format=function(k){var U=this,L=this.$locale();if(!this.isValid())return L.invalidDate||m;var z=k||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),$=this.$H,P=this.$m,N=this.$M,B=L.weekdays,bt=L.months,ae=L.meridiem,Wt=function(ft,Ft,ke,dr){return ft&&(ft[Ft]||ft(U,z))||ke[Ft].slice(0,dr)},Ne=function(ft){return T.s($%12||12,ft,"0")},Gt=ae||function(ft,Ft,ke){var dr=ft<12?"AM":"PM";return ke?dr.toLowerCase():dr};return z.replace(E,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 N+1;case"MM":return T.s(N+1,2,"0");case"MMM":return Wt(L.monthsShort,N,bt,3);case"MMMM":return Wt(bt,N);case"D":return U.$D;case"DD":return T.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Wt(L.weekdaysMin,U.$W,B,2);case"ddd":return Wt(L.weekdaysShort,U.$W,B,3);case"dddd":return B[U.$W];case"H":return String($);case"HH":return T.s($,2,"0");case"h":return Ne(1);case"hh":return Ne(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(k,U,L){var z,q=this,$=T.p(U),P=w(k),N=(P.utcOffset()-this.utcOffset())*n,B=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=(B-N)/6048e5;break;case c:z=(B-N)/864e5;break;case l:z=B/i;break;case a:z=B/n;break;case o:z=B/r;break;default:z=B}return L?z:T.a(z)},D.daysInMonth=function(){return this.endOf(h).$D},D.$locale=function(){return g[this.$L]},D.locale=function(k,U){if(!k)return this.$L;var L=this.clone(),z=V(k,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=V,w.isDayjs=O,w.unix=function(I){return w(1e3*I)},w.en=g[S],w.Ls=g,w.p={},w})})(mc);var gc=mc.exports;const ki=Pe(gc);var av={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})})(av),ki.locale("zh-cn");function cv(e,t="YYYY-MM-DD HH:mm:ss"){return ki(e).format(t)}const vc=e=>Object.prototype.toString.call(e),uv=e=>vc(e).slice(8,-1),lv=e=>typeof e<"u",hv=()=>Date.now(),yc=()=>+Date.now(),fv=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function mt(){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 H(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 nn(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function pv(e=[],t="key",r="value"){const n={};for(const i of e)n[i[t]]=i[r];return n}function dv(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 Zn(e){return e?[].concat(e):[]}function mv(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function Rr(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 Qn(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>Qn(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=Qn(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 gv(e=[],t){const r=Sc(e,t);return e.length?r/e.length:0}function vv(e,t=","){return e?e.split(t):[]}function yv(e,t=","){return e?e.join(t):""}function bv(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=mn(s,["children"]);r.children&&r.children.length>0&&(t=t.concat(xc(r.children))),t.push(i)}),t}var Xn={exports:{}};Xn.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="",E="",v=2,y=3,_=2,S=[],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=E+m,Object.prototype.hasOwnProperty.call(p,b))E=b;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(h=0;h<_;h++)g=g<<1,x==c-1?(x=0,S.push(u(g)),g=0):x++;for(f=E.charCodeAt(0),h=0;h<8;h++)g=g<<1|f&1,x==c-1?(x=0,S.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,S.push(u(g)),g=0):x++,f=0;for(f=E.charCodeAt(0),h=0;h<16;h++)g=g<<1|f&1,x==c-1?(x=0,S.push(u(g)),g=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[E]}else for(f=p[E],h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,S.push(u(g)),g=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,_),_++),p[b]=y++,E=String(m)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(h=0;h<_;h++)g=g<<1,x==c-1?(x=0,S.push(u(g)),g=0):x++;for(f=E.charCodeAt(0),h=0;h<8;h++)g=g<<1|f&1,x==c-1?(x=0,S.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,S.push(u(g)),g=0):x++,f=0;for(f=E.charCodeAt(0),h=0;h<16;h++)g=g<<1|f&1,x==c-1?(x=0,S.push(u(g)),g=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[E]}else for(f=p[E],h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,S.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,S.push(u(g)),g=0):x++,f=f>>1;for(;;)if(g=g<<1,x==c-1){S.push(u(g));break}else x++;return S.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=[],E,v,y,_,S,g,x,O={val:u(0),position:c,index:1};for(E=0;E<3;E+=1)h[E]=E;for(y=0,S=Math.pow(2,2),g=1;g!=S;)_=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,S=Math.pow(2,8),g=1;g!=S;)_=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,S=Math.pow(2,16),g=1;g!=S;)_=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,S=Math.pow(2,d),g=1;g!=S;)_=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,S=Math.pow(2,8),g=1;g!=S;)_=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,S=Math.pow(2,16),g=1;g!=S;)_=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})}(Xn);var Tc=Xn.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 _v(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=_v(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],V=O.type,w=O.index;throw new TypeError("Unexpected ".concat(V," 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 E=p||u("ESCAPED_CHAR");if(E){c+=E;continue}c&&(o.push(c),c="");var v=u("OPEN");if(v){var b=f(),y=u("NAME")||"",_=u("PATTERN")||"",S=f();h("CLOSE"),o.push({name:y||(_?a++:""),pattern:y&&!_?s:_,prefix:b,suffix:S,modifier:u("MODIFIER")||""});continue}h("END")}return o}function Ac(e,t){return wv(Bi(e,t),t)}function wv(e,t){t===void 0&&(t={});var r=Ii(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 E=d?"an array":"a string";throw new TypeError('Expected "'.concat(h.name,'" to be ').concat(E))}}return c}}function $c(e,t){var r=[],n=sn(e,r,t);return Ev(n,r,t)}function Ev(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 Ii(e){return e&&e.sensitive?"":"i"}function Sv(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 xv(e,t,r){var n=e.map(function(i){return sn(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Ii(r))}function Tv(e,t,r){return Ov(Bi(e,r),t,r)}function Ov(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),"]"),E=o?"^":"",v=0,y=e;v<y.length;v++){var _=y[v];if(typeof _=="string")E+=me(u(_));else{var S=me(u(_.prefix)),g=me(u(_.suffix));if(_.pattern)if(t&&t.push(_),S||g)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(g).concat(S,"(?:").concat(_.pattern,"))*)").concat(g,")").concat(x)}else E+="(?:".concat(S,"(").concat(_.pattern,")").concat(g,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(S).concat(g,")").concat(_.modifier)}}if(l)i||(E+="".concat(b,"?")),E+=r.endsWith?"(?=".concat(m,")"):"$";else{var O=e[e.length-1],V=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(b,"(?=").concat(m,"))?")),V||(E+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(E,Ii(r))}function sn(e,t,r){return e instanceof RegExp?Sv(e,t):Array.isArray(e)?xv(e,t,r):Tv(e,t,r)}const Av=Tc.compress,$v=Tc.decompress;/**!
|
|
51
|
-
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
52
|
-
* @name @vtj/core
|
|
53
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
54
|
-
* @version 0.9.0
|
|
55
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
56
|
-
*/const jv="0.9.0",Rv="BuiltIn",Mi="VueMaterial",Fi="VueRouterMaterial",Dv=[Mi,Fi],Pv={vue:"Vue","vue-router":"VueRouter"},jc={[Mi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Fi]:["RouterView","RouterLink"]},Cv=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let Nv=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}},Dr=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 Ve=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||mt(),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 Hr=(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=mt(),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=Dr.parse(a),this.events=_e.parse(l),this.directives=Ve.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 Dr(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 Ve(t)):this.directives.push(new Ve(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:Dr.toDsl(l),directives:Ve.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",Ye=class Ye{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||mt(),this.update(t,!0)}update(t,r=!1){for(const i of Ye.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Hr(i))),r||M.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return pt(K({},Ye.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||mt();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=Vi(t.toDsl()),i=new Hr(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(Ye,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]);let It=Ye;const it="EVENT_PROJECT_CHANGE",ti="EVENT_PROJECT_ACTIVED",ei="EVENT_PROJECT_DEPS_CHANGE",He="EVENT_PROJECT_PAGES_CHANGE",ge="EVENT_PROJECT_BLOCKS_CHANGE",ri="EVENT_PROJECT_APIS_CHANGE",ni="EVENT_PROJECT_META_CHANGE",Cc="EVENT_PROJECT_PUBLISH",Nc="EVENT_PROJECT_FILE_PUBLISH",kc="EVENT_PROJECT_GEN_SOURCE";var Kt;let tr=(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||mt(),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=>Xe(pt(K({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>Xe(pt(K({},i),{dsl:void 0})))),K({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||M.emit(ti,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||M.emit(ti,{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(ei,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(ei,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 H(this,null,function*(){if(t.id=t.raw?t.name:t.id||mt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new It({id:t.id,name:Jn(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(He,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(He,i),M.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=mt(),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(He,f),M.emit(it,f)}}saveToBlock(t,r=!1){return H(this,null,function*(){this.active(t,r),yield be(1e3);const n=mt(),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(He,o),M.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return H(this,null,function*(){const n=t.id||mt(),i=Jn(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=mt(),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=mt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};M.emit(ri,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(ri,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=mt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};M.emit(ni,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(ni,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(Nc,r):M.emit(Cc,r)}genSource(){const t={model:this,type:"gen",data:null};M.emit(kc,t)}},j(Kt,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]),Kt);const Ue="EVENT_HISTORY_CHANGE",Pr="EVENT_HISTORY_LOAD";let Li=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:mt(),label:new Date().toLocaleString(),dsl:Xe(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||M.emit(Ue,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||M.emit(Ue,{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(Ue,{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(Pr,{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(Pr,{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(Pr,{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(Ue,{model:this,type:"clear",data:r})}};const M=Oc();function kv(e){return e instanceof It}function Bv(e){return e instanceof Hr}function Iv(e){return!!e.__VTJ_BLOCK__}function Vi(e){const t=Xe(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Vi(r))),t}function Mv(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 Ow=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:jc,BUILT_IN_LIBRARAY_MAP:Pv,BUILT_IN_MATERIALS:Dv,BUILT_IN_NAME:Rv,BUILT_IN_TAGS:Cv,BUILT_IN_VUE:Mi,BUILT_IN_VUE_ROUTER:Fi,Base:Rc,BlockModel:It,DirectiveModel:Ve,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:Ue,EVENT_HISTORY_LOAD:Pr,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:ti,EVENT_PROJECT_APIS_CHANGE:ri,EVENT_PROJECT_BLOCKS_CHANGE:ge,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:ei,EVENT_PROJECT_FILE_PUBLISH:Nc,EVENT_PROJECT_GEN_SOURCE:kc,EVENT_PROJECT_META_CHANGE:ni,EVENT_PROJECT_PAGES_CHANGE:He,EVENT_PROJECT_PUBLISH:Cc,EventModel:_e,HistoryModel:Li,NodeModel:Hr,ProjectModel:tr,PropModel:Dr,Service:Nv,VTJ_CORE_VERSION:jv,cloneDsl:Vi,createNodeFrom:Mv,emitter:M,isBlock:kv,isBlockSchema:Iv,isNode:Bv},Symbol.toStringTag,{value:"Module"}));var Fv=Object.defineProperty,Lv=(e,t,r)=>t in e?Fv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_t=(e,t,r)=>Lv(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
|
-
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
58
|
-
* @name @vtj/utils
|
|
59
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.9.0
|
|
61
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const Vv="0.9.0";/**
|
|
63
|
-
* @vue/shared v3.5.13
|
|
64
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
65
|
-
* @license MIT
|
|
66
|
-
**//*! #__NO_SIDE_EFFECTS__ */function Hv(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Uv=Object.assign,zv=Object.prototype.hasOwnProperty,ii=(e,t)=>zv.call(e,t),we=Array.isArray,Cr=e=>Bc(e)==="[object Map]",qv=e=>typeof e=="string",ur=e=>typeof e=="symbol",on=e=>e!==null&&typeof e=="object",Kv=Object.prototype.toString,Bc=e=>Kv.call(e),Jv=e=>Bc(e).slice(8,-1),Hi=e=>qv(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ke=(e,t)=>!Object.is(e,t);var Yv={ENV_TYPE:"local",NODE_ENV:"production"};let Wv,Ic=0,Tn;function Ui(){Ic++}function zi(){if(--Ic>0)return;let e;for(;Tn;){let t=Tn;for(Tn=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 Ur=!0;const Mc=[];function Gv(){Mc.push(Ur),Ur=!1}function Zv(){const e=Mc.pop();Ur=e===void 0?!0:e}let Fc=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){Ui();try{Yv.NODE_ENV;for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{zi()}}};const si=new WeakMap,te=Symbol(""),oi=Symbol(""),er=Symbol("");function gt(e,t,r){if(Ur&&Wv){let n=si.get(e);n||si.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new Fc),i.map=n,i.key=r),i.track()}}function zt(e,t,r,n,i,s){const o=si.get(e);if(!o)return;const a=l=>{l&&l.trigger()};if(Ui(),t==="clear")o.forEach(a);else{const l=we(e),c=l&&Hi(r);if(l&&r==="length"){const u=Number(n);o.forEach((h,f)=>{(f==="length"||f===er||!ur(f)&&f>=u)&&a(h)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(er)),t){case"add":l?c&&a(o.get("length")):(a(o.get(te)),Cr(e)&&a(o.get(oi)));break;case"delete":l||(a(o.get(te)),Cr(e)&&a(o.get(oi)));break;case"set":Cr(e)&&a(o.get(te));break}}zi()}function he(e){const t=Z(e);return t===e?t:(gt(t,"iterate",er),Jt(e)?t:t.map(ct))}function qi(e){return gt(e=Z(e),"iterate",er),e}const Qv={__proto__:null,[Symbol.iterator](){return On(this,Symbol.iterator,ct)},concat(...e){return he(this).concat(...e.map(t=>we(t)?he(t):t))},entries(){return On(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 An(this,"includes",e)},indexOf(...e){return An(this,"indexOf",e)},join(e){return he(this).join(e)},lastIndexOf(...e){return An(this,"lastIndexOf",e)},map(e,t){return Ct(this,"map",e,t,void 0,arguments)},pop(){return Ie(this,"pop")},push(...e){return Ie(this,"push",e)},reduce(e,...t){return So(this,"reduce",e,t)},reduceRight(e,...t){return So(this,"reduceRight",e,t)},shift(){return Ie(this,"shift")},some(e,t){return Ct(this,"some",e,t,void 0,arguments)},splice(...e){return Ie(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 Ie(this,"unshift",e)},values(){return On(this,"values",ct)}};function On(e,t,r){const n=qi(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 Xv=Array.prototype;function Ct(e,t,r,n,i,s){const o=qi(e),a=o!==e&&!Jt(e),l=o[t];if(l!==Xv[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=qi(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 An(e,t,r){const n=Z(e);gt(n,"iterate",er);const i=n[t](...r);return(i===-1||i===!1)&&dy(r[0])?(r[0]=Z(r[0]),n[t](...r)):i}function Ie(e,t,r=[]){Gv(),Ui();const n=Z(e)[t].apply(e,r);return zi(),Zv(),n}const ty=Hv("__proto__,__v_isRef,__isVue"),Lc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ur));function ey(e){ur(e)||(e=String(e));const t=Z(this);return gt(t,"has",e),t.hasOwnProperty(e)}let Vc=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?hy:zc:s?ly:Uc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=we(t);if(!i){let l;if(o&&(l=Qv[r]))return l;if(r==="hasOwnProperty")return ey}const a=Reflect.get(t,r,Ee(t)?t:n);return(ur(r)?Lc.has(r):ty(r))||(i||gt(t,"get",r),s)?a:Ee(a)?o&&Hi(r)?a:a.value:on(a)?i?Kc(a):qc(a):a}};class ry extends Vc{constructor(t=!1){super(!1,t)}set(t,r,n,i){let s=t[r];if(!this._isShallow){const l=Ae(s);if(!Jt(n)&&!Ae(n)&&(s=Z(s),n=Z(n)),!we(t)&&Ee(s)&&!Ee(n))return l?!1:(s.value=n,!0)}const o=we(t)&&Hi(r)?Number(r)<t.length:ii(t,r),a=Reflect.set(t,r,n,Ee(t)?t:i);return t===Z(i)&&(o?Ke(n,s)&&zt(t,"set",r,n):zt(t,"add",r,n)),a}deleteProperty(t,r){const n=ii(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(!ur(r)||!Lc.has(r))&>(t,"has",r),n}ownKeys(t){return gt(t,"iterate",we(t)?"length":te),Reflect.ownKeys(t)}}class ny extends Vc{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const iy=new ry,sy=new ny,xr=e=>Reflect.getPrototypeOf(e);function oy(e,t,r){return function(...n){const i=this.__v_raw,s=Z(i),o=Cr(s),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=i[e](...n),u=t?ai:ct;return!t&>(s,"iterate",l?oi: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 Tr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ay(e,t){const r={get(n){const i=this.__v_raw,s=Z(i),o=Z(n);e||(Ke(n,o)&>(s,"get",n),gt(s,"get",o));const{has:a}=xr(s),l=e?ai: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&>(Z(n),"iterate",te),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,s=Z(i),o=Z(n);return e||(Ke(n,o)&>(s,"has",n),gt(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?ai:ct;return!e&>(a,"iterate",te),o.forEach((c,u)=>n.call(i,l(c),l(u),s))}};return Uv(r,e?{add:Tr("add"),set:Tr("set"),delete:Tr("delete"),clear:Tr("clear")}:{add(n){!Jt(n)&&!Ae(n)&&(n=Z(n));const i=Z(this);return xr(i).has.call(i,n)||(i.add(n),zt(i,"add",n,n)),this},set(n,i){!Jt(i)&&!Ae(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=xr(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?Ke(i,c)&&zt(s,"set",n,i):zt(s,"add",n,i),this},delete(n){const i=Z(this),{has:s,get:o}=xr(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]=oy(n,e)}),r}function Hc(e,t){const r=ay(e);return(n,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ii(r,i)&&i in n?r:n,i,s)}const cy={get:Hc(!1)},uy={get:Hc(!0)},Uc=new WeakMap,ly=new WeakMap,zc=new WeakMap,hy=new WeakMap;function fy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function py(e){return e.__v_skip||!Object.isExtensible(e)?0:fy(Jv(e))}function qc(e){return Ae(e)?e:Jc(e,!1,iy,cy,Uc)}function Kc(e){return Jc(e,!0,sy,uy,zc)}function Jc(e,t,r,n,i){if(!on(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=py(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function Ae(e){return!!(e&&e.__v_isReadonly)}function Jt(e){return!!(e&&e.__v_isShallow)}function dy(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const ct=e=>on(e)?qc(e):e,ai=e=>on(e)?Kc(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function $n(e){return my(e,!1)}function my(e,t){return Ee(e)?e:new gy(e,t)}class gy{constructor(t,r){this.dep=new Fc,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)||Ae(t);t=n?t:Z(t),Ke(t,r)&&(this._rawValue=t,this._value=n?t:ct(t),this.dep.trigger())}}function Yc(e,t){return function(){return e.apply(t,arguments)}}const{toString:vy}=Object.prototype,{getPrototypeOf:Ki}=Object,an=(e=>t=>{const r=vy.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=e=>(e=e.toLowerCase(),t=>an(t)===e),cn=e=>t=>typeof t===e,{isArray:Ce}=Array,rr=cn("undefined");function yy(e){return e!==null&&!rr(e)&&e.constructor!==null&&!rr(e.constructor)&&Et(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wc=Pt("ArrayBuffer");function by(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Wc(e.buffer),t}const _y=cn("string"),Et=cn("function"),Gc=cn("number"),un=e=>e!==null&&typeof e=="object",wy=e=>e===!0||e===!1,Nr=e=>{if(an(e)!=="object")return!1;const t=Ki(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ey=Pt("Date"),Sy=Pt("File"),xy=Pt("Blob"),Ty=Pt("FileList"),Oy=e=>un(e)&&Et(e.pipe),Ay=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Et(e.append)&&((t=an(e))==="formdata"||t==="object"&&Et(e.toString)&&e.toString()==="[object FormData]"))},$y=Pt("URLSearchParams"),jy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function lr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ce(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 Zc(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 Qc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xc=e=>!rr(e)&&e!==Qc;function ci(){const{caseless:e}=Xc(this)&&this||{},t={},r=(n,i)=>{const s=e&&Zc(t,i)||i;Nr(t[s])&&Nr(n)?t[s]=ci(t[s],n):Nr(n)?t[s]=ci({},n):Ce(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&lr(arguments[n],r);return t}const Ry=(e,t,r,{allOwnKeys:n}={})=>(lr(t,(i,s)=>{r&&Et(i)?e[s]=Yc(i,r):e[s]=i},{allOwnKeys:n}),e),Dy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Py=(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)},Cy=(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&&Ki(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ny=(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(Ce(e))return e;let t=e.length;if(!Gc(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"&&Ki(Uint8Array)),Iy=(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])}},My=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Fy=Pt("HTMLFormElement"),Ly=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),Vy=Pt("RegExp"),tu=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};lr(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Hy=e=>{tu(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+"'")})}})},Uy=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Ce(e)?n(e):n(String(e).split(t)),r},zy=()=>{},qy=(e,t)=>(e=+e,Number.isFinite(e)?e:t),jn="abcdefghijklmnopqrstuvwxyz",To="0123456789",eu={DIGIT:To,ALPHA:jn,ALPHA_DIGIT:jn+jn.toUpperCase()+To},Ky=(e=16,t=eu.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Jy(e){return!!(e&&Et(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yy=e=>{const t=new Array(10),r=(n,i)=>{if(un(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=Ce(n)?[]:{};return lr(n,(o,a)=>{const l=r(o,i+1);!rr(l)&&(s[a]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Wy=Pt("AsyncFunction"),Gy=e=>e&&(un(e)||Et(e))&&Et(e.then)&&Et(e.catch),A={isArray:Ce,isArrayBuffer:Wc,isBuffer:yy,isFormData:Ay,isArrayBufferView:by,isString:_y,isNumber:Gc,isBoolean:wy,isObject:un,isPlainObject:Nr,isUndefined:rr,isDate:Ey,isFile:Sy,isBlob:xy,isRegExp:Vy,isFunction:Et,isStream:Oy,isURLSearchParams:$y,isTypedArray:By,isFileList:Ty,forEach:lr,merge:ci,extend:Ry,trim:jy,stripBOM:Dy,inherits:Py,toFlatObject:Cy,kindOf:an,kindOfTest:Pt,endsWith:Ny,toArray:ky,forEachEntry:Iy,matchAll:My,isHTMLForm:Fy,hasOwnProperty:xo,hasOwnProp:xo,reduceDescriptors:tu,freezeMethods:Hy,toObjectSet:Uy,toCamelCase:Ly,noop:zy,toFiniteNumber:qy,findKey:Zc,global:Qc,isContextDefined:Xc,ALPHABET:eu,generateString:Ky,isSpecCompliantForm:Jy,toJSONObject:Yy,isAsyncFn:Wy,isThenable:Gy};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 ru=W.prototype,nu={};["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=>{nu[e]={value:e}});Object.defineProperties(W,nu);Object.defineProperty(ru,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,s)=>{const o=Object.create(ru);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 Zy=null;function ui(e){return A.isPlainObject(e)||A.isArray(e)}function iu(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=iu(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Qy(e){return A.isArray(e)&&!e.some(ui)}const Xy=A.toFlatObject(A,{},null,function(e){return/^is[A-Z]/.test(e)});function ln(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)&&Qy(p)||(A.isFileList(p)||A.endsWith(d,"[]"))&&(b=A.toArray(p)))return d=iu(d),b.forEach(function(E,v){!(A.isUndefined(E)||E===null)&&t.append(o===!0?Oo([d],v,s):o===null?d:d+"[]",l(E))}),!1}return ui(p)?!0:(t.append(Oo(m,d,s),l(p)),!1)}const u=[],h=Object.assign(Xy,{defaultVisitor:c,convertValue:l,isVisitable:ui});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 Ji(e,t){this._pairs=[],e&&ln(e,this,t)}const su=Ji.prototype;su.append=function(e,t){this._pairs.push([e,t])};su.toString=function(e){const t=e?function(r){return e.call(this,r,Ao)}:Ao;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function tb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ou(e,t,r){if(!t)return e;const n=r&&r.encode||tb,i=r&&r.serialize;let s;if(i?s=i(t,r):s=A.isURLSearchParams(t)?t.toString():new Ji(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 au={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eb=typeof URLSearchParams<"u"?URLSearchParams:Ji,rb=typeof FormData<"u"?FormData:null,nb=typeof Blob<"u"?Blob:null,ib={isBrowser:!0,classes:{URLSearchParams:eb,FormData:rb,Blob:nb},protocols:["http","https","file","blob","url","data"]},cu=typeof window<"u"&&typeof document<"u",sb=(e=>cu&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ob=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ab=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cu,hasStandardBrowserEnv:sb,hasStandardBrowserWebWorkerEnv:ob},Symbol.toStringTag,{value:"Module"})),jt=K(K({},ab),ib);function cb(e,t){return ln(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 ub(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lb(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 uu(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]=lb(i[o])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(ub(n),i,r,0)}),r}return null}function hb(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 hr={transitional:au,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(uu(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 cb(e,this.formSerializer).toString();if((s=A.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ln(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),hb(e)):e}],transformResponse:[function(e){const t=this.transitional||hr.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=>{hr.headers[e]={}});const fb=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"]),pb=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]&&fb[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 Me(e){return e&&String(e).trim().toLowerCase()}function kr(e){return e===!1||e==null?e:A.isArray(e)?e.map(kr):String(e)}function db(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 mb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rn(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 gb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function vb(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})})}class St{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,l,c){const u=Me(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]=kr(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())&&!mb(t)?o(pb(t),r):t!=null&&s(r,t,n),this}get(t,r){if(t=Me(t),t){const n=A.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return db(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=Me(t),t){const n=A.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Rn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=Me(o),o){const a=A.findKey(n,o);a&&(!r||Rn(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||Rn(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]=kr(i),delete r[s];return}const a=t?gb(s):String(s).trim();a!==s&&delete r[s],r[a]=kr(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=Me(s);r[o]||(vb(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 Dn(e,t){const r=this||hr,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 lu(e){return!!(e&&e.__CANCEL__)}function fr(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(fr,W,{__CANCEL__:!0});function yb(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 bb=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 _b(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hu(e,t){return e&&!_b(t)?wb(e,t):t}const Eb=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 Sb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xb(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const 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=xb(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 Tb=typeof XMLHttpRequest<"u",Ob=Tb&&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=hu(e.baseURL,e.url);u.open(e.method.toUpperCase(),ou(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};yb(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||au;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&&Eb(h))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&bb.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 fr(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=Sb(h);if(p&&jt.protocols.indexOf(p)===-1){r(new W("Unsupported protocol "+p+":",W.ERR_BAD_REQUEST,e));return}u.send(n||null)})},li={http:Zy,xhr:Ob};A.forEach(li,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Do=e=>`- ${e}`,Ab=e=>A.isFunction(e)||e===null||e===!1,fu={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,!Ab(r)&&(n=li[(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
|
-
`+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:li};function Pn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fr(null,e)}function Po(e){return Pn(e),e.headers=St.from(e.headers),e.data=Dn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fu.getAdapter(e.adapter||hr.adapter)(e).then(function(t){return Pn(e),t.data=Dn.call(e,e.transformResponse,t),t.headers=St.from(t.headers),t},function(t){return lu(t)||(Pn(e),t&&t.response&&(t.response.data=Dn.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 $e(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 pu="1.6.8",Yi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const No={};Yi.transitional=function(e,t,r){function n(i,s){return"[Axios v"+pu+"] 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&&!No[s]&&(No[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 $b(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 hi={assertOptions:$b,validators:Yi},Lt=hi.validators;let ee=class{constructor(t){this.defaults=t,this.interceptors={request:new $o,response:new $o}}request(t,r){return H(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=$e(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&hi.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}:hi.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=$e(this.defaults,t);const r=hu(t.baseURL,t.url);return ou(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){ee.prototype[e]=function(t,r){return this.request($e(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($e(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 Wi{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 fr(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 Wi(function(r){t=r}),cancel:t}}}function jb(e){return function(t){return e.apply(null,t)}}function Rb(e){return A.isObject(e)&&e.isAxiosError===!0}const fi={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(fi).forEach(([e,t])=>{fi[t]=e});function du(e){const t=new ee(e),r=Yc(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 du($e(e,n))},r}const et=du(hr);et.Axios=ee;et.CanceledError=fr;et.CancelToken=Wi;et.isCancel=lu;et.VERSION=pu;et.toFormData=ln;et.AxiosError=W;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=jb;et.isAxiosError=Rb;et.mergeConfig=$e;et.AxiosHeaders=St;et.formToJSON=e=>uu(A.isHTMLForm(e)?new FormData(e):e);et.getAdapter=fu.getAdapter;et.HttpStatusCode=fi;et.default=et;const Db={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Pb=["put","post","patch"],pi="Local-Request-Id",Cb=100,Nb=300;class Gi{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=Rr(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=Pi(this.openLoading.bind(this),Cb),this.showError=Ya(this._showError.bind(this),Nb,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=$t(this.settings,t.settings||{});const r=Rr(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":Db[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[pi]=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 Pb.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=Rr(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(pt(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||{})[pi],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(pt(K({},l.config),{settings:l.settings}),!0));u.catch(h=>h).finally(()=>{s&&s()}),o.promise=u}return o})}}function Zi(e={}){const t=new Gi(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,pt(K({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const mu=Zi({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function gu(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>mu.send($t({},t,n||{},{data:r}))}function kb(e){const t={};for(const[r,n]of Object.entries(e))t[r]=gu(n);return t}function Bb(e,t){const r=$n(null),n=$n(),i=$n(!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 je=typeof window<"u",Ib=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function vu(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function Mb(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 Fb(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const Lb=e=>je?window.requestAnimationFrame(e):setTimeout(e,16),Vb=e=>je?window.cancelAnimationFrame(e):clearTimeout(e);class Qi{constructor(t={}){_t(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),_t(this,"caches",{}),_t(this,"types"),this.types={local:je?window.localStorage:this.caches,session:je?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 Br=new Qi;var Hb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var di={exports:{}};(function(e,t){(function(r,n){n(t,e)})(Hb,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 E=u.jsonpCallbackFunction||s(),v=p+"_"+E;window[E]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(v),o(E)},h+=h.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+h+p+"="+E),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(E),a(v),window[E]=function(){o(E)}},f),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(E),a(v),d&&clearTimeout(d)}})}n.exports=l})})(di,di.exports);var Ub=di.exports;const zb=yu(Ub);function qb(e){if(je){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Kb(e=""){const t=e.match(Ni);return t?t[0]:""}function bu(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 mi(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 _u(e,t){t=typeof t=="string"?mi(t):t;const r=e.split("?")[0],n=mi(e),i=Object.assign({},n,t),s=bu(i);return s?[r,s].join("?"):e}const re=Object.freeze(Object.defineProperty({__proto__:null,append:_u,getCurrentHost:qb,getHost:Kb,parse:mi,stringify:bu},Symbol.toStringTag,{value:"Module"}));function wu(r){return H(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Ja(e)(n||{}));const i=_u(e,n);return yield(yield zb(i,t)).json()})}var Jb=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&&Yb(i,t.attrs),t.text&&(i.text=""+t.text);var s="onload"in i?ko:Wb;s(i,r),i.onload||ko(i,r),n.appendChild(i)};function Yb(e,t){for(var r in t)e.setAttribute(r,t[r])}function ko(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 Wb(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const Gb=yu(Jb);function gi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;Gb(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Bo={debug:-1,log:0,info:0,warn:1,error:2},Zb=function(e,t,r,n){return function(...i){if(t&&Bo[t]<=Bo[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Qb(i,r))}};function Qb(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Xb(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 t_={level:"warn",bizName:"*"};let Eu=class{constructor(t){_t(this,"config"),_t(this,"options"),this.options=K(K({},t_),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Xb(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Zb(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 Su(e){return new Eu(e)}const nr=Su({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Or(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 e_={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 vi(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Or({},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,"",Or({},s,{expires:-1}))},withAttributes:function(i){return vi(this.converter,Or({},this.attributes,i))},withConverter:function(i){return vi(Or({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Xi=vi(e_,{path:"/"});function r_(e,t,r){Xi.set(e,t,r)}function n_(e){return Xi.get(e)}function i_(e,t){Xi.remove(e,t)}const Ir=Object.freeze(Object.defineProperty({__proto__:null,get:n_,remove:i_,set:r_},Symbol.toStringTag,{value:"Module"}));function s_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function ts(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 o_(e,t="",r){return H(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>H(this,null,function*(){const i=yield n.blob();return ts(i,t,r),i}))})}function a_(e,t=""){const r=JSON.stringify(e);ts(r,t,"application/json")}const Dw=Object.freeze(Object.defineProperty({__proto__:null,AES:Q0,LOCAL_REQUEST_ID:pi,Logger:Eu,MD5:Y0,RSA:Z0,Request:Gi,Storage:Qi,VTJ_UTILS_VERSION:Vv,arrayToKv:pv,arrayToMap:_c,arrayToTree:bv,avg:gv,axios:et,base64:W0,blobToFile:Fb,cAF:Vb,camelCase:Vt,cloneDeep:Xe,compress:Av,cookie:Ir,createApi:gu,createApis:kb,createRequest:Zi,dataURLtoBlob:Mb,dateFormat:cv,dayjs:ki,debounce:Pi,decompress:$v,dedupArray:wc,delay:be,downloadBlob:ts,downloadJson:a_,downloadRemoteFile:o_,downloadUrl:s_,fileToBase64:Ib,flatChildren:xc,formDataToJson:vu,get:ia,getLogger:Su,groupBy:Ua,isArray:ht,isArrayBuffer:D1,isBoolean:C1,isBuffer:Te,isCarNo:nv,isClient:je,isDate:I1,isDef:lv,isEmail:tv,isEqual:M1,isFunction:ne,isIdCardNo:ev,isMobilePhone:rv,isNaN:L1,isNull:V1,isNumber:za,isObject:ot,isPlainObject:ji,isString:vt,isSymbol:sr,isUndefined:H1,isUrl:fc,jsonp:wu,kebabCase:z1,kvToArray:dv,loadScript:gi,logger:nr,lowerFirst:K1,mapToObject:nn,merge:$t,mitt:Oc,noop:uh,now:hv,numberFormat:sv,numeral:dc,omit:Rr,pathToRegexp:sn,pathToRegexpCompile:Ac,pathToRegexpMatch:$c,pathToRegexpParse:Bi,pick:Ec,rAF:Lb,rCar:hc,rEmail:cc,rID:uc,rMobile:lc,rURL:Ni,random:fv,request:mu,set:W1,snakeCase:Z1,splitParser:vv,splitStringify:yv,storage:Br,sum:Sc,template:Ja,throttle:Ya,timestamp:yc,toArray:Zn,toFixed:ov,toRawType:uv,toTypeString:vc,trim:Qn,uid:mt,unAES:X0,unBase64:G0,unRSA:Gn,upperFirst:tn,upperFirstCamelCase:Jn,url:re,useApi:Bb,uuid:bc,zipObject:mv},Symbol.toStringTag,{value:"Module"}));/**!
|
|
72
|
-
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
73
|
-
* @name @vtj/renderer
|
|
74
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
75
|
-
* @version 0.9.0
|
|
76
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
77
|
-
*/const Se="0.9.0";var lt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(lt||{});const yi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],c_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],xu=["vIf","vShow","vModel","vFor","vBind"],Tu={String,Number,Boolean,Array,Object,Function,Date},xe="VtjPage",Je="VtjHomepage";function ze(e,t){return e.map(r=>fc(r)||r.startsWith("/")?r:`${t}${r}`)}function hn(e){return/\.css$/.test(e)}function fn(e){return/\.js$/.test(e)}function Ou(e){return/\.json$/.test(e)}function u_(e){return e.map(t=>`<script src="${re.append(t,{v:Se})}"><\/script>`).join("")}function l_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${re.append(t,{v:Se})}" />`).join("")}function Au(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function $u(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(E=>{fn(E)&&i.push(Au(E,r)),hn(E)&&s.push(E)}),d&&(a.push(d),l[d]=ze(f||[],t),b&&(c[d]=b)),p&&o.push(p),m&&u.push(m),d&&m&&(h[m]=d)}),{scripts:ze(i,t),css:ze(s,t),materials:ze(o,t),libraryExports:a,materialExports:wc(u),materialMapLibrary:h,libraryMap:l,libraryLocaleMap:c}}function ju(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 Ru(e,t){return H(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&rs(window,e,r)})}function Du(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 Pu(n,i){return H(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 Cu(e){return ne(e)||ne(e==null?void 0:e.install)}function Re(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(nr.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function bi(e,t,r=!1,n=!1){var s;const i=Re(e,t,r,n);if(typeof i!="function"&&(nr.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 pr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Nu(e){return xt(e)||pr(e)}function h_(e){return Nu(e)?e.value:JSON.stringify(e)}let fe=null;const f_=Zi({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=>{Yr.error({message:e||"未知错误"})},showLoading:()=>{fe&&fe.close(),fe=gl.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,pt(K({},e.jsonpOptions),{query:i}));{const i=e.headers?Re(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:pt(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 Iu(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 Mu(){return H(this,arguments,function*(e=[]){ve=yield Fe(()=>import("./mockjs-C1Gq5sDs.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=>Fu(ve,t)))})}function Fu(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=sn(`${r}(.*)`),s=$c(r,{decode:decodeURIComponent}),o=Re(n,{},!0);e.mock(i,a=>{var h;const l=re.parse(a.url)||{},c=a.body instanceof FormData?vu(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 p_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},is=Symbol("access");class Lu{constructor(t){j(this,"options");j(this,"data",null);j(this,"mode",lt.Raw);this.options=Object.assign({},p_,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===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&&(Br.save(r,t,{type:"local",prefix:n}),i&&Ir.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Br.remove(t,{type:"local",prefix:r}),n&&Ir.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):Zn(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Zn(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)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=>Gn(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?Gn(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=Br.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Ir.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===xe){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return H(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),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 H(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return H(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=>H(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>H(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Vu(){return Mo(is,null)}class Hu{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=Kr){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&&yi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){yi.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 bi({type:i,value:s},this)}else return bi(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 Re({type:i,value:s},this)}else return Re(t,this)}__ref(t=null,r){if(this.__mode!==lt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>H(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=pt(K({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function zr(e){var h,f;const{Vue:t=Kr,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 Hu({mode:r,dsl:a.value,attrs:l}),u=t.defineComponent(K({name:a.value.name,props:K({},m_((h=a.value.props)!=null?h:[],c)),setup(p){var y,_,S,g;c.$props=p,c.props=p,a.value.id&&rs(e.window||window,a.value.id,a.value.css||""),c.state=g_(t,(y=a.value.state)!=null?y:{},c);const d=v_(t,(_=a.value.computed)!=null?_:{},c),m=y_((S=a.value.methods)!=null?S:{},c),b=b_(t,a.value.inject,c),E=Uu(a.value.dataSources||{},c),v=K(K(K(K({},b),d),m),E);return c.setup(v,t),__(t,(g=a.value.watch)!=null?g:[],c),{vtj:c}},emits:d_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?ir(p[0],c,t,o):p.map(d=>ir(d,c,t,o))}},w_((f=a.value.lifeCycles)!=null?f:{},c)));return{renderer:t.markRaw(u),context:c}}function d_(e=[]){return e.map(t=>vt(t)?t:t.name)}function m_(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Tu[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 g_(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return xt(s)?s=r.__parseExpression(s):pr(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function v_(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function y_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function b_(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 Uu(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n],s=t.$apis[i.ref],o=pr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;return r[n]=(...a)=>H(this,null,function*(){const l=yield s.apply(t,a);return o?o(l):l}),r},{})}function __(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function w_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Cn=[];const zu=e=>e;function ss(r){return H(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>fn(a));if(s.length===0||!i)return null;const o=n.filter(a=>hn(a));return o.length&&Du(o,t),yield Pu(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function qr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Cn.forEach(i=>{delete n.window[i]}),Cn=[]),(i,s,o=Kr)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>H(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?zr(pt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:qr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>H(this,null,function*(){const a=yield r(s.url);return a&&(a.name=i),a?zr(pt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:qr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Cn.push(s.library),o.defineAsyncComponent(()=>H(this,null,function*(){return(yield ss(s,n.window))||(console.warn("getPlugin result is null",s),null)}))):i}function ir(e,t,r=Kr,n=zu){var p;if(!e||!e.name||e.invisible)return null;const i=(p=r.getCurrentInstance())==null?void 0:p.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:l,vShow:c,vModels:u,vBind:h}=E_(o);if(a&&!S_(a,t))return null;const f=d=>{var _,S,g,x;const m=d.$components,b=(()=>{var V,w,T,F;if(e.name==="component")return x_(d,(V=e.props)==null?void 0:V.is);if(e.name==="slot")return e.name;const O=n(e.name,e.from,r);return vt(O)&&(F=(T=m[O])!=null?T:(w=i==null?void 0:i.app)==null?void 0:w.component(O))!=null?F:O})(),E=T_(s,(_=e.props)!=null?_:{},d),v=O_(r,(S=e.events)!=null?S:{},d);if(e.name==="slot")return A_(r,e,E,d,n);h&&Object.assign(E,d.__parseExpression(h.value)),c&&(E.style=Object.assign((g=E.style)!=null?g:{},j_(c,d))),u.forEach(O=>{Object.assign(E,R_(r,O,d))});const y=D_(r,(x=e.children)!=null?x:[],d,n,e);return r.createVNode(b,K(K({},E),v),y)};return l?N_(l,f,t):f(t)}function E_(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=>!xu.includes(Vt(a.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:o}}function S_(e,t){return!!t.__parseExpression(e.value)}function x_(e,t){return t?xt(t)?e.__parseExpression(t):t:"div"}function T_(e,t,r){const n=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return xt(o)?o=r.__parseExpression(o):pr(o)&&(o=r.__parseFunction(o)),i[s]=o,i},{});return n.ref=r.__ref(e,n.ref),n}function O_(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"+tn(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 A_(e,t,r,n,i){var l;const{children:s}=t,o=$_(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=>ir(c,n,e,i)):null:null}function $_(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:xt(n)?t.__parseExpression(n):n,params:[]}}function j_(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function R_(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
|
|
79
|
-
${t.value.value} = v;
|
|
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 D_(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=P_(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=>ir(p,r.__clone(f),e,n))},a),{})}return null}function P_(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=C_(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 C_(e="default"){return vt(e)?{name:e,params:[]}:K({params:[]},e)}function N_(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 al()?(cl(e),!0):!1}function as(e){return typeof e=="function"?e():In(e)}const qu=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const B_=e=>e!=null,I_=()=>{};function M_(e){return Vo()}function F_(...e){if(e.length!==1)return nl(...e);const t=e[0];return typeof t=="function"?il(sl(()=>({get:t,set:I_}))):We(t)}function L_(e,t){M_()&&ol(e,t)}const V_=qu?window:void 0,H_=qu?window.document:void 0;function U_(e){var t;const r=as(e);return(t=r==null?void 0:r.$el)!=null?t:r}function z_(){const e=We(!1),t=Vo();return t&&ul(()=>{e.value=!0},t),e}function q_(e){const t=z_();return Lo(()=>(t.value,!!e()))}function K_(e,t,r={}){const f=r,{window:n=V_}=f,i=mn(f,["window"]);let s;const o=q_(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},l=Lo(()=>{const p=as(e),d=(Array.isArray(p)?p:[p]).map(U_).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 J_(e=null,t={}){var r,n,i;const{document:s=H_,restoreOnUnmount:o=h=>h}=t,a=(r=s==null?void 0:s.title)!=null?r:"",l=F_((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&&K_((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==l.value&&(l.value=u(s.title))},{childList:!0}),L_(()=>{if(o){const h=o(a,l.value||"");h!=null&&s&&(s.title=h)}}),l}const Io=Jr({name:"VtjPageContainer",setup(){return H(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,s=We(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),J_(n.title||"VTJ")),{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?kn(e,pt(K({},t),{key:r})):kn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),Y_={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},W_={"data-l-h6o7ki7":"",class:"vtj-startup"},G_={"data-l-h6o7ki7":"",class:"vtj-startup__name"},Z_={"data-l-h6o7ki7":""},Q_={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},X_={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},Ku=Jr({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"},link:{}},setup(e){((n,i)=>{let s=document.getElementById("h6o7ki7");s||(s=document.createElement("style"),s.id="h6o7ki7",document.head.appendChild(s),s.innerHTML=i)})("h6o7ki7",`
|
|
81
|
-
.vtj-startup[data-l-h6o7ki7]{
|
|
82
|
-
padding: 20px;
|
|
83
|
-
border-radius: 4px;
|
|
84
|
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
85
|
-
box-sizing: border-box;
|
|
86
|
-
grid-row: 1;
|
|
87
|
-
width: 100%;
|
|
88
|
-
max-width: 800px;
|
|
89
|
-
}
|
|
90
|
-
.vtj-startup__wrapper[data-l-h6o7ki7]{
|
|
91
|
-
height: 100%;
|
|
92
|
-
display: flex;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
align-items: center;
|
|
95
|
-
width: 100%;
|
|
96
|
-
}
|
|
97
|
-
.vtj-startup__name[data-l-h6o7ki7]{
|
|
98
|
-
margin: 0;
|
|
99
|
-
padding: 0;
|
|
100
|
-
max-width: 576px;
|
|
101
|
-
line-height: 56px;
|
|
102
|
-
font-size: 48px;
|
|
103
|
-
font-weight: 700;
|
|
104
|
-
white-space: pre-wrap;
|
|
105
|
-
}
|
|
106
|
-
.vtj-startup__name span[data-l-h6o7ki7]{
|
|
107
|
-
background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
|
|
108
|
-
-webkit-background-clip: text;
|
|
109
|
-
background-clip: text;
|
|
110
|
-
-webkit-text-fill-color: transparent;
|
|
111
|
-
}
|
|
112
|
-
.vtj-startup__tagline[data-l-h6o7ki7]{
|
|
113
|
-
padding-top: 20px;
|
|
114
|
-
line-height: 32px;
|
|
115
|
-
font-size: 20px;
|
|
116
|
-
font-weight: 500;
|
|
117
|
-
white-space: pre-wrap;
|
|
118
|
-
color: rgba(60, 60, 67, 0.78);
|
|
119
|
-
}
|
|
120
|
-
.vtj-startup__actions[data-l-h6o7ki7]{
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-wrap: wrap;
|
|
123
|
-
justify-content: flex-end;
|
|
124
|
-
border-top: 1px solid rgba(60, 60, 67, 0.08);
|
|
125
|
-
padding: 20px 0 0 0;
|
|
126
|
-
margin-top: 20px;
|
|
127
|
-
}
|
|
128
|
-
.vtj-startup__actions button[data-l-h6o7ki7]{
|
|
129
|
-
height: 40px;
|
|
130
|
-
padding: 0 20px;
|
|
131
|
-
border-radius: 20px;
|
|
132
|
-
background-color: #409eff;
|
|
133
|
-
border: 1px solid transparent;
|
|
134
|
-
color: #fff;
|
|
135
|
-
font-weight: 600;
|
|
136
|
-
cursor: pointer;
|
|
137
|
-
}@media (max-width: 768px){
|
|
138
|
-
|
|
139
|
-
.vtj-startup__actions button[data-l-h6o7ki7]{
|
|
140
|
-
width: 100%;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
.vtj-startup__actions button[data-l-h6o7ki7]:hover{
|
|
144
|
-
opacity: 0.7;
|
|
145
|
-
}`);const t=e,r=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(Bn(),el("div",Y_,[ce("div",W_,[ce("h1",G_,[ce("span",Z_,gn(t.name),1)]),ce("div",Q_,gn(t.tagline),1),ce("div",X_,[ce("button",{"data-l-h6o7ki7":"",onClick:r},gn(t.actionText),1)])])]))}}),tw=Jr({name:"VtjStartupContainer",render(){return kn(Ku)}}),cs=Symbol("Provider");var Ju=(e=>(e.Production="production",e.Development="development",e))(Ju||{});class Yu extends Rc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:f_,jsonp:wu});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}),a&&i!==lt.Design?this.load(a):this.project=a}load(r){return H(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.mode===lt.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.apis=Iu(i,s,this.adapter),ns(),(a=this.project.config)!=null&&a.mock&&Mu(i),this.initRouter(),this.triggerReady()})}loadDependencies(r){return H(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return H(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}=$u(n,a,l==="development");for(const d of c){const m=i[d],b=r[d];if(b)s[d]=b;else if(m)r[d]=s[d]=yield m();else{const E=u[d]||[];for(const v of E)hn(v)&&(yield Ru(d,re.append(v,{v:Se}))),fn(v)&&(yield gi(re.append(v,{v:Se})));s[d]=r[d]}}if(l==="development"){for(const m of h)yield gi(re.append(m,{v:Se}));const d=this.materials||{};for(const m of f){const b=r[p[m]],E=jc[m];if(E)b&&E.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]=ju(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const{routeAppendTo:o,pageRouteName:a="page",routeMeta:l}=i,c=o?"":"/",u={path:`${c}${a}/:id`,name:xe,component:Io},h={path:c,name:Je,component:n!=null&&n.homepage?Io:s.startupComponent||tw,meta:l};r.hasRoute(xe)&&r.removeRoute(xe),r.hasRoute(Je)&&r.removeRoute(Je),o?(r.addRoute(o,u),r.addRoute(o,h)):(r.addRoute(u),r.addRoute(h))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&Cu(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),Yr.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 H(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return H(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=qr({getDsl:u=>H(this,null,function*(){return(yield this.getDsl(u))||null}),getDslByUrl:u=>H(this,null,function*(){return(yield this.getDslByUrl(u))||null}),options:l});return zr(pt(K({},l),{dsl:r,loader:c}))}getRenderComponent(r,n){return H(this,null,function*(){var l;const i=this.getFile(r);if(!i)return nr.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:(nr.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ds(()=>H(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(()=>H(this,null,function*(){return yield ss(r,window)}))}}function ew(e){const t=new Yu(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&&H(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&Yr.warning({title:i==null?void 0:i.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})}return t}const ls=new Gi({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=>{Yr.error({message:e||"未知错误"})}}}),rw=(e="/__vtj__/api/:type.json")=>(t,r)=>ls.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),nw=(e="/__vtj__/api/uploader.json")=>(t,r)=>H(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 pn{constructor(){j(this,"api");j(this,"pluginCaches",{});j(this,"uploader");this.api=rw(),this.uploader=nw()}getExtension(){return H(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return H(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return H(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,r){return H(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return H(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return H(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return H(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return H(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return H(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return H(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return H(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return H(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return H(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return H(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return H(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return H(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return H(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return H(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return H(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return H(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return H(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return H(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return H(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Ou(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})}genSource(t){return H(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const dt=new Qi({type:"local",expired:0,prefix:"__VTJ_"});class iw extends pn{init(t){const r=new tr(t),n=dt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return dt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new tr(t);return dt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return dt.save(`materials_${t.id}`,nn(r)),Promise.resolve(!0)}saveFile(t){return dt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=dt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return dt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return dt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=dt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),dt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=dt.get(`history_${t}`),n=new Li(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=dt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return dt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{dt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class Wu extends pn{constructor(){super(...arguments);j(this,"projects",{});j(this,"materials",{});j(this,"files",{});j(this,"histories",{});j(this,"historyItems",{})}init(r){const n=new tr(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 tr(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=nn(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 Li(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 Nn=null;function sw(){return Nn||(Nn=new Wu,Nn)}class ow extends pn{constructor(){super(...arguments);j(this,"getFileCaches",{})}getExtension(){return H(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return H(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r){return H(this,null,function*(){return!!(yield this.api("saveProject",r).catch(()=>!1))})}saveMaterials(r,n){return H(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:nn(n)}).catch(()=>!1))})}saveFile(r){return H(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return H(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return H(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return H(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return H(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return H(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return H(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return H(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return H(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function Gu(e,t,r=[]){return r.map(n=>{const{id:i,title:s,icon:o,children:a,hidden:l}=n;return{id:i,title:s,icon:o,hidden:l,url:`${e}/${t}/${i}`,children:a&&a.length?Gu(e,t,a):void 0}})}function Zu(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=Zu(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function aw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=us(),s=Ho(),o=Vu(),a=We(!1),l=We(!1),c=i.project;rl(()=>{const{name:f,params:p,meta:d}=s;if(f===xe){const m=i.getPage(p.id);a.value=!(m!=null&&m.mask),l.value=!!(m!=null&&m.pure)}else if(f===Je){const m=i.getHomepage();a.value=!(m!=null&&m.mask),l.value=!!(m!=null&&m.pure)}else a.value=!d.mask,l.value=!!d.pure});const u=Gu(t,r,c==null?void 0:c.pages),h=c==null?void 0:c.config;return{disabled:a,logo:h==null?void 0:h.logo,themeSwitchable:h==null?void 0:h.themeSwitchable,title:(h==null?void 0:h.title)||(c==null?void 0:c.description)||(c==null?void 0:c.name)||"VTJ App",menus:n?u:Zu(u,o),pure:l}}const Pw=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:is,Access:Lu,BUILT_IN_DIRECTIVES:xu,BaseService:pn,CONTEXT_HOST:yi,Context:Hu,ContextMode:lt,DATA_TYPES:Tu,HOMEPAGE_ROUTE_NAME:Je,JSCodeToString:h_,LIFE_CYCLES_LIST:c_,LocalService:ow,MemoryService:Wu,NodeEnv:Ju,PAGE_ROUTE_NAME:xe,Provider:Yu,Startup:Ku,StorageService:iw,VTJ_RENDERER_VERSION:Se,adoptedStyleSheets:rs,createAssetScripts:u_,createAssetsCss:l_,createDataSources:Uu,createLoader:qr,createMemoryService:sw,createMetaApi:Bu,createProvider:ew,createRenderer:zr,createSchemaApi:ku,createSchemaApis:Iu,defaultLoader:zu,fillBasePath:ze,getModifiers:os,getPlugin:ss,getRawComponent:ju,isCSSUrl:hn,isJSCode:Nu,isJSExpression:xt,isJSFunction:pr,isJSON:Ou,isJSUrl:fn,isVuePlugin:Cu,loadCss:Ru,loadCssUrl:Du,loadScriptUrl:Pu,mockApi:Fu,mockApis:Mu,mockCleanup:ns,nodeRender:ir,parseDeps:$u,parseExpression:Re,parseFunction:bi,providerKey:cs,removeProdFlag:Au,toString:es,useAccess:Vu,useMask:aw,useProvider:us},Symbol.toStringTag,{value:"Module"})),cw=Jr({__name:"app",setup(e){return(t,r)=>{const n=ll("router-view");return Bn(),ms(In(yl),{locale:In(vl)},{default:gs(()=>[(Bn(),ms(hl,null,{default:gs(()=>[fl(n)]),_:1}))]),_:1},8,["locale"])}}}),uw=[{path:"/",name:"home",component:()=>Fe(()=>import("./index-B1QXajf4.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:()=>Fe(()=>import("./preview-uoGdS6_b.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:"/page/:id",name:"page",component:()=>Fe(()=>import("./page-BwKMkzA1.js"),__vite__mapDeps([21,14,15,3,4,13,8,7,11,1,9,12,5,6,10,16,0,17]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>Fe(()=>import("./auth-BRP5zXuS.js"),__vite__mapDeps([22,3,4,5,6,7,8,9,1,10,11,12,13,14,15,16,0,17,18,23]),import.meta.url)}],lw=dl({history:ml(),routes:uw}),hw="RRO_IDE_ACCESS_STORAGE__",hs=pl(cw),fw=new Lu({storageKey:hw});hs.use(fw);hs.use(lw);hs.mount("#app");export{kc as $,hw as A,G as B,nr as C,ei as D,ew as E,Cc as F,nt as G,Ue as H,It as I,ne as J,sv as K,ia as L,Li as M,He as N,$t as O,wu as P,xt as Q,W1 as R,z1 as S,Vb as T,pr as U,Pr as V,Mv as W,Jn as X,ov as Y,ot as Z,lt as _,Zn as a,h_ as a0,c_ as a1,Re as a2,Tu as a3,$u as a4,l_ as a5,u_ as a6,Rv as a7,ju as a8,Iu as a9,Mu as aa,bi as ab,Pi as ac,Hr as ad,Pv as ae,ns as af,Ve as ag,Mb as ah,Mi as ai,Fi as aj,Ib as ak,uv as al,ji as am,Dw as an,hn as ao,fn as ap,Du as aq,Pu as ar,Ow as as,Pw as at,Lu as b,wc as c,Xe as d,Br as e,Lb as f,o_ as g,Vt as h,kv as i,fc as j,Ua as k,Rc as l,M1 as m,Yu as n,vt as o,tr as p,M as q,be as r,it as s,mt as t,ti as u,s_ as v,Nc as w,ow as x,ge as y,_c as z};
|