@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.
@@ -0,0 +1,145 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mockjs-CMngCJLd.js","./dayjs-DpOeJKaG.js","./index-CbobV5nh.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-CJuyTImz.js","./monaco-editor-Ckv89Lpe.js","./monaco-editor-CO43Fv42.css","./html2canvas-CIV5arX1.js","./extension-B7YsICyT.css","./_plugin-vue_export-helper-DlAUqK2U.js","./index-DmXmiv30.css","./preview-WdJT79pk.js","./page-DLaTT2eZ.js","./auth-CAAHD2fo.js","./auth-rAe8S_7e.css"])))=>i.map(i=>d[i]);
2
+ var nl=Object.defineProperty,il=Object.defineProperties;var sl=Object.getOwnPropertyDescriptors;var dr=Object.getOwnPropertySymbols;var fs=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable;var dn=(e,t,r)=>t in e?nl(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(dr)for(var r of dr(t))ps.call(t,r)&&dn(e,r,t[r]);return e},pt=(e,t)=>il(e,sl(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&&dr)for(var n of dr(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=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())});import{aw as ds,ax as Kr,d as Jr,e as Ye,af as Nn,p as Mo,f as Fo,o as Bn,c as ol,a as ce,P as gn,w as al,m as cl,r as ul,j as ll,X as hl,k as Lo,g as fl,b as pl,u as In,h as Vo,i as dl,ag as ml,I as ms,J as gs,ay as gl,R as vl,at as yl}from"./vue-BCaExZnh.js";import{_ as Me}from"./monaco-editor-Ckv89Lpe.js";import{useRoute as Ho,createRouter as bl,createWebHashHistory as _l}from"./vue-router-DB3on22t.js";import{E as Yr,a as wl,z as El,b as Sl}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 xl={ENV_TYPE:"live",NODE_ENV:"production"},Tl=typeof global=="object"&&global&&global.Object===Object&&global;const Uo=Tl;var Ol=typeof self=="object"&&self&&self.Object===Object&&self,Al=Uo||Ol||Function("return this")();const At=Al;var $l=At.Symbol;const Rt=$l;var zo=Object.prototype,jl=zo.hasOwnProperty,Rl=zo.toString,Ne=Rt?Rt.toStringTag:void 0;function Dl(e){var t=jl.call(e,Ne),r=e[Ne];try{e[Ne]=void 0;var n=!0}catch(s){}var i=Rl.call(e);return n&&(t?e[Ne]=r:delete e[Ne]),i}var Pl=Object.prototype,Cl=Pl.toString;function kl(e){return Cl.call(e)}var Nl="[object Null]",Bl="[object Undefined]",vs=Rt?Rt.toStringTag:void 0;function bt(e){return e==null?e===void 0?Bl:Nl:vs&&vs in Object(e)?Dl(e):kl(e)}function st(e){return e!=null&&typeof e=="object"}var Il="[object Symbol]";function ir(e){return typeof e=="symbol"||st(e)&&bt(e)==Il}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 Ml=Array.isArray;const ht=Ml;var Fl=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(ir(e))return bs?bs.call(e):"";var t=e+"";return t=="0"&&1/e==-Fl?"-0":t}var Ll=/\s/;function Vl(e){for(var t=e.length;t--&&Ll.test(e.charAt(t)););return t}var Hl=/^\s+/;function Ul(e){return e&&e.slice(0,Vl(e)+1).replace(Hl,"")}function ot(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _s=NaN,zl=/^[-+]0x[0-9a-f]+$/i,ql=/^0b[01]+$/i,Kl=/^0o[0-7]+$/i,Jl=parseInt;function ws(e){if(typeof e=="number")return e;if(ir(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=Ul(e);var r=ql.test(e);return r||Kl.test(e)?Jl(e.slice(2),r?2:8):zl.test(e)?_s:+e}function _i(e){return e}var Yl="[object AsyncFunction]",Wl="[object Function]",Gl="[object GeneratorFunction]",Zl="[object Proxy]";function ne(e){if(!ot(e))return!1;var t=bt(e);return t==Wl||t==Gl||t==Yl||t==Zl}var Ql=At["__core-js_shared__"];const vn=Ql;var Es=function(){var e=/[^.]+$/.exec(vn&&vn.keys&&vn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Xl(e){return!!Es&&Es in e}var th=Function.prototype,eh=th.toString;function ie(e){if(e!=null){try{return eh.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var rh=/[\\^$.*+?()[\]{}|]/g,nh=/^\[object .+?Constructor\]$/,ih=Function.prototype,sh=Object.prototype,oh=ih.toString,ah=sh.hasOwnProperty,ch=RegExp("^"+oh.call(ah).replace(rh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uh(e){if(!ot(e)||Xl(e))return!1;var t=ne(e)?ch:nh;return t.test(ie(e))}function lh(e,t){return e==null?void 0:e[t]}function se(e,t){var r=lh(e,t);return uh(r)?r:void 0}var hh=se(At,"WeakMap");const Mn=hh;var Ss=Object.create,fh=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 ph=fh;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 dh(){}function mh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var gh=800,vh=16,yh=Date.now;function bh(e){var t=0,r=0;return function(){var n=yh(),i=vh-(n-r);if(r=n,i>0){if(++t>=gh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _h(e){return function(){return e}}var wh=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Mr=wh;var Eh=Mr?function(e,t){return Mr(e,"toString",{configurable:!0,enumerable:!1,value:_h(t),writable:!0})}:_i;const Sh=Eh;var xh=bh(Sh);const Th=xh;function Oh(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ah=9007199254740991,$h=/^(?:0|[1-9]\d*)$/;function Wr(e,t){var r=typeof e;return t=t!=null?t:Ah,!!t&&(r=="number"||r!="symbol"&&$h.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 Re(e,t){return e===t||e!==e&&t!==t}var jh=Object.prototype,Rh=jh.hasOwnProperty;function wi(e,t,r){var n=e[t];(!(Rh.call(e,t)&&Re(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],u=n?n(r[a],e[a],a,r,e):void 0;u===void 0&&(u=e[a]),i?Gr(r,a,u):wi(r,a,u)}return r}var xs=Math.max;function Dh(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 Th(Dh(e,t,_i),e+"")}var Ph=9007199254740991;function Ei(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ph}function sr(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"?sr(r)&&Wr(t,r.length):n=="string"&&t in r)?Re(r[t],e):!1}function Zo(e){return Wo(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&Go(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t})}var Ch=Object.prototype;function Si(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ch;return e===r}function kh(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Nh="[object Arguments]";function Ts(e){return st(e)&&bt(e)==Nh}var Qo=Object.prototype,Bh=Qo.hasOwnProperty,Ih=Qo.propertyIsEnumerable,Mh=Ts(function(){return arguments}())?Ts:function(e){return st(e)&&Bh.call(e,"callee")&&!Ih.call(e,"callee")};const Fr=Mh;function Fh(){return!1}var Xo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Os=Xo&&typeof module=="object"&&module&&!module.nodeType&&module,Lh=Os&&Os.exports===Xo,As=Lh?At.Buffer:void 0,Vh=As?As.isBuffer:void 0,Hh=Vh||Fh;const xe=Hh;var Uh="[object Arguments]",zh="[object Array]",qh="[object Boolean]",Kh="[object Date]",Jh="[object Error]",Yh="[object Function]",Wh="[object Map]",Gh="[object Number]",Zh="[object Object]",Qh="[object RegExp]",Xh="[object Set]",tf="[object String]",ef="[object WeakMap]",rf="[object ArrayBuffer]",nf="[object DataView]",sf="[object Float32Array]",of="[object Float64Array]",af="[object Int8Array]",cf="[object Int16Array]",uf="[object Int32Array]",lf="[object Uint8Array]",hf="[object Uint8ClampedArray]",ff="[object Uint16Array]",pf="[object Uint32Array]",X={};X[sf]=X[of]=X[af]=X[cf]=X[uf]=X[lf]=X[hf]=X[ff]=X[pf]=!0,X[Uh]=X[zh]=X[rf]=X[qh]=X[nf]=X[Kh]=X[Jh]=X[Yh]=X[Wh]=X[Gh]=X[Zh]=X[Qh]=X[Xh]=X[tf]=X[ef]=!1;function df(e){return st(e)&&Ei(e.length)&&!!X[bt(e)]}function or(e){return function(t){return e(t)}}var ta=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ze=ta&&typeof module=="object"&&module&&!module.nodeType&&module,mf=ze&&ze.exports===ta,yn=mf&&Uo.process,gf=function(){try{var e=ze&&ze.require&&ze.require("util").types;return e||yn&&yn.binding&&yn.binding("util")}catch(t){}}();const Dt=gf;var $s=Dt&&Dt.isTypedArray,vf=$s?or($s):df;const xi=vf;var yf=Object.prototype,bf=yf.hasOwnProperty;function ea(e,t){var r=ht(e),n=!r&&Fr(e),i=!r&&!n&&xe(e),s=!r&&!n&&!i&&xi(e),o=r||n||i||s,a=o?kh(e.length,String):[],u=a.length;for(var c in e)(t||bf.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Wr(c,u)))&&a.push(c);return a}function ra(e,t){return function(r){return e(t(r))}}var _f=ra(Object.keys,Object);const wf=_f;var Ef=Object.prototype,Sf=Ef.hasOwnProperty;function xf(e){if(!Si(e))return wf(e);var t=[];for(var r in Object(e))Sf.call(e,r)&&r!="constructor"&&t.push(r);return t}function Zr(e){return sr(e)?ea(e):xf(e)}function Tf(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Of=Object.prototype,Af=Of.hasOwnProperty;function $f(e){if(!ot(e))return Tf(e);var t=Si(e),r=[];for(var n in e)n=="constructor"&&(t||!Af.call(e,n))||r.push(n);return r}function Ti(e){return sr(e)?ea(e,!0):$f(e)}var jf=Zo(function(e,t,r,n){Yo(t,Ti(t),e,n)});const js=jf;var Rf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Df=/^\w*$/;function Oi(e,t){if(ht(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ir(e)?!0:Df.test(e)||!Rf.test(e)||t!=null&&e in Object(t)}var Pf=se(Object,"create");const We=Pf;function Cf(){this.__data__=We?We(null):{},this.size=0}function kf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Nf="__lodash_hash_undefined__",Bf=Object.prototype,If=Bf.hasOwnProperty;function Mf(e){var t=this.__data__;if(We){var r=t[e];return r===Nf?void 0:r}return If.call(t,e)?t[e]:void 0}var Ff=Object.prototype,Lf=Ff.hasOwnProperty;function Vf(e){var t=this.__data__;return We?t[e]!==void 0:Lf.call(t,e)}var Hf="__lodash_hash_undefined__";function Uf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=We&&t===void 0?Hf: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=Cf,Xt.prototype.delete=kf,Xt.prototype.get=Mf,Xt.prototype.has=Vf,Xt.prototype.set=Uf;function zf(){this.__data__=[],this.size=0}function Qr(e,t){for(var r=e.length;r--;)if(Re(e[r][0],t))return r;return-1}var qf=Array.prototype,Kf=qf.splice;function Jf(e){var t=this.__data__,r=Qr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kf.call(t,r,1),--this.size,!0}function Yf(e){var t=this.__data__,r=Qr(t,e);return r<0?void 0:t[r][1]}function Wf(e){return Qr(this.__data__,e)>-1}function Gf(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 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=zf,Bt.prototype.delete=Jf,Bt.prototype.get=Yf,Bt.prototype.has=Wf,Bt.prototype.set=Gf;var Zf=se(At,"Map");const Ge=Zf;function Qf(){this.size=0,this.__data__={hash:new Xt,map:new(Ge||Bt),string:new Xt}}function Xf(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 Xf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tp(e){var t=Xr(this,e).delete(e);return this.size-=t?1:0,t}function ep(e){return Xr(this,e).get(e)}function rp(e){return Xr(this,e).has(e)}function np(e,t){var r=Xr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function It(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}It.prototype.clear=Qf,It.prototype.delete=tp,It.prototype.get=ep,It.prototype.has=rp,It.prototype.set=np;var ip="Expected a function";function Ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ip);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||It),r}Ai.Cache=It;var sp=500;function op(e){var t=Ai(e,function(n){return r.size===sp&&r.clear(),n}),r=t.cache;return t}var ap=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cp=/\\(\\)?/g,up=op(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ap,function(r,n,i,s){t.push(i?s.replace(cp,"$1"):n||r)}),t});const lp=up;function oe(e){return e==null?"":Ko(e)}function $i(e,t){return ht(e)?e:Oi(e,t)?[e]:lp(oe(e))}var hp=1/0;function ar(e){if(typeof e=="string"||ir(e))return e;var t=e+"";return t=="0"&&1/e==-hp?"-0":t}function na(e,t){t=$i(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ar(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 fp(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var pp=ra(Object.getPrototypeOf,Object);const sa=pp;var dp="[object Object]",mp=Function.prototype,gp=Object.prototype,oa=mp.toString,vp=gp.hasOwnProperty,yp=oa.call(Object);function ji(e){if(!st(e)||bt(e)!=dp)return!1;var t=sa(e);if(t===null)return!0;var r=vp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&oa.call(r)==yp}var bp="[object DOMException]",_p="[object Error]";function aa(e){if(!st(e))return!1;var t=bt(e);return t==_p||t==bp||typeof e.message=="string"&&typeof e.name=="string"&&!ji(e)}var wp=Wo(function(e,t){try{return Jo(e,void 0,t)}catch(r){return aa(r)?r:new Error(r)}});const Ep=wp;function Sp(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 xp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Sp(e,t,r)}var Tp="\\ud800-\\udfff",Op="\\u0300-\\u036f",Ap="\\ufe20-\\ufe2f",$p="\\u20d0-\\u20ff",jp=Op+Ap+$p,Rp="\\ufe0e\\ufe0f",Dp="\\u200d",Pp=RegExp("["+Dp+Tp+jp+Rp+"]");function ca(e){return Pp.test(e)}function Cp(e){return e.split("")}var ua="\\ud800-\\udfff",kp="\\u0300-\\u036f",Np="\\ufe20-\\ufe2f",Bp="\\u20d0-\\u20ff",Ip=kp+Np+Bp,Mp="\\ufe0e\\ufe0f",Fp="["+ua+"]",Fn="["+Ip+"]",Ln="\\ud83c[\\udffb-\\udfff]",Lp="(?:"+Fn+"|"+Ln+")",la="[^"+ua+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",fa="[\\ud800-\\udbff][\\udc00-\\udfff]",Vp="\\u200d",pa=Lp+"?",da="["+Mp+"]?",Hp="(?:"+Vp+"(?:"+[la,ha,fa].join("|")+")"+da+pa+")*",Up=da+pa+Hp,zp="(?:"+[la+Fn+"?",Fn,ha,fa,Fp].join("|")+")",qp=RegExp(Ln+"(?="+Ln+")|"+zp+Up,"g");function Kp(e){return e.match(qp)||[]}function Jp(e){return ca(e)?Kp(e):Cp(e)}function ma(e){return function(t){t=oe(t);var r=ca(t)?Jp(t):void 0,n=r?r[0]:t.charAt(0),i=r?xp(r,1).join(""):t.slice(1);return n[e]()+i}}var Yp=ma("toUpperCase");const tn=Yp;function Wp(e){return tn(oe(e).toLowerCase())}function Gp(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 Zp={À:"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"},Qp=ga(Zp);const Xp=Qp;var td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ed="\\u0300-\\u036f",rd="\\ufe20-\\ufe2f",nd="\\u20d0-\\u20ff",id=ed+rd+nd,sd="["+id+"]",od=RegExp(sd,"g");function ad(e){return e=oe(e),e&&e.replace(td,Xp).replace(od,"")}var cd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ud(e){return e.match(cd)||[]}var ld=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hd(e){return ld.test(e)}var va="\\ud800-\\udfff",fd="\\u0300-\\u036f",pd="\\ufe20-\\ufe2f",dd="\\u20d0-\\u20ff",md=fd+pd+dd,ya="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",gd="\\xac\\xb1\\xd7\\xf7",vd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yd="\\u2000-\\u206f",bd=" \\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",_d="\\ufe0e\\ufe0f",wa=gd+vd+yd+bd,Ea="['’]",Rs="["+wa+"]",wd="["+md+"]",Sa="\\d+",Ed="["+ya+"]",xa="["+ba+"]",Ta="[^"+va+wa+Sa+ya+ba+_a+"]",Sd="\\ud83c[\\udffb-\\udfff]",xd="(?:"+wd+"|"+Sd+")",Td="[^"+va+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",Aa="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="["+_a+"]",Od="\\u200d",Ds="(?:"+xa+"|"+Ta+")",Ad="(?:"+pe+"|"+Ta+")",Ps="(?:"+Ea+"(?:d|ll|m|re|s|t|ve))?",Cs="(?:"+Ea+"(?:D|LL|M|RE|S|T|VE))?",$a=xd+"?",ja="["+_d+"]?",$d="(?:"+Od+"(?:"+[Td,Oa,Aa].join("|")+")"+ja+$a+")*",jd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dd=ja+$a+$d,Pd="(?:"+[Ed,Oa,Aa].join("|")+")"+Dd,Cd=RegExp([pe+"?"+xa+"+"+Ps+"(?="+[Rs,pe,"$"].join("|")+")",Ad+"+"+Cs+"(?="+[Rs,pe+Ds,"$"].join("|")+")",pe+"?"+Ds+"+"+Ps,pe+"+"+Cs,Rd,jd,Sa,Pd].join("|"),"g");function kd(e){return e.match(Cd)||[]}function Nd(e,t,r){return e=oe(e),t=t,t===void 0?hd(e)?kd(e):ud(e):e.match(t)||[]}var Bd="['’]",Id=RegExp(Bd,"g");function Ri(e){return function(t){return Gp(Nd(ad(t).replace(Id,"")),e,"")}}var Md=Ri(function(e,t,r){return t=t.toLowerCase(),e+(r?Wp(t):t)});const kt=Md;function Fd(){this.__data__=new Bt,this.size=0}function Ld(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Vd(e){return this.__data__.get(e)}function Hd(e){return this.__data__.has(e)}var Ud=200;function zd(e,t){var r=this.__data__;if(r instanceof Bt){var n=r.__data__;if(!Ge||n.length<Ud-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new It(n)}return r.set(e,t),this.size=r.size,this}function Ot(e){var t=this.__data__=new Bt(e);this.size=t.size}Ot.prototype.clear=Fd,Ot.prototype.delete=Ld,Ot.prototype.get=Vd,Ot.prototype.has=Hd,Ot.prototype.set=zd;var Ra=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ks=Ra&&typeof module=="object"&&module&&!module.nodeType&&module,qd=ks&&ks.exports===Ra,Ns=qd?At.Buffer:void 0,Bs=Ns?Ns.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 Kd(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 Jd(){return[]}var Yd=Object.prototype,Wd=Yd.propertyIsEnumerable,Is=Object.getOwnPropertySymbols,Gd=Is?function(e){return e==null?[]:(e=Object(e),Kd(Is(e),function(t){return Wd.call(e,t)}))}:Jd;const Zd=Gd;function Qd(e,t,r){var n=t(e);return ht(e)?n:fp(n,r(e))}function Vn(e){return Qd(e,Zr,Zd)}var Xd=se(At,"DataView");const Hn=Xd;var tm=se(At,"Promise");const Un=tm;var em=se(At,"Set");const zn=em;var Ms="[object Map]",rm="[object Object]",Fs="[object Promise]",Ls="[object Set]",Vs="[object WeakMap]",Hs="[object DataView]",nm=ie(Hn),im=ie(Ge),sm=ie(Un),om=ie(zn),am=ie(Mn),Qt=bt;(Hn&&Qt(new Hn(new ArrayBuffer(1)))!=Hs||Ge&&Qt(new Ge)!=Ms||Un&&Qt(Un.resolve())!=Fs||zn&&Qt(new zn)!=Ls||Mn&&Qt(new Mn)!=Vs)&&(Qt=function(e){var t=bt(e),r=t==rm?e.constructor:void 0,n=r?ie(r):"";if(n)switch(n){case nm:return Hs;case im:return Ms;case sm:return Fs;case om:return Ls;case am:return Vs}return t});const Ze=Qt;var cm=Object.prototype,um=cm.hasOwnProperty;function lm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&um.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var hm=At.Uint8Array;const Lr=hm;function Di(e){var t=new e.constructor(e.byteLength);return new Lr(t).set(new Lr(e)),t}function fm(e,t){var r=Di(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var pm=/\w*$/;function dm(e){var t=new e.constructor(e.source,pm.exec(e));return t.lastIndex=e.lastIndex,t}var Us=Rt?Rt.prototype:void 0,zs=Us?Us.valueOf:void 0;function mm(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 gm="[object Boolean]",vm="[object Date]",ym="[object Map]",bm="[object Number]",_m="[object RegExp]",wm="[object Set]",Em="[object String]",Sm="[object Symbol]",xm="[object ArrayBuffer]",Tm="[object DataView]",Om="[object Float32Array]",Am="[object Float64Array]",$m="[object Int8Array]",jm="[object Int16Array]",Rm="[object Int32Array]",Dm="[object Uint8Array]",Pm="[object Uint8ClampedArray]",Cm="[object Uint16Array]",km="[object Uint32Array]";function Nm(e,t,r){var n=e.constructor;switch(t){case xm:return Di(e);case gm:case vm:return new n(+e);case Tm:return fm(e);case Om:case Am:case $m:case jm:case Rm:case Dm:case Pm:case Cm:case km:return Pa(e,r);case ym:return new n;case bm:case Em:return new n(e);case _m:return dm(e);case wm:return new n;case Sm:return mm(e)}}function Ca(e){return typeof e.constructor=="function"&&!Si(e)?ph(sa(e)):{}}var Bm="[object Map]";function Im(e){return st(e)&&Ze(e)==Bm}var qs=Dt&&Dt.isMap,Mm=qs?or(qs):Im;const Fm=Mm;var Lm="[object Set]";function Vm(e){return st(e)&&Ze(e)==Lm}var Ks=Dt&&Dt.isSet,Hm=Ks?or(Ks):Vm;const Um=Hm;var zm=1,ka="[object Arguments]",qm="[object Array]",Km="[object Boolean]",Jm="[object Date]",Ym="[object Error]",Na="[object Function]",Wm="[object GeneratorFunction]",Gm="[object Map]",Zm="[object Number]",Ba="[object Object]",Qm="[object RegExp]",Xm="[object Set]",tg="[object String]",eg="[object Symbol]",rg="[object WeakMap]",ng="[object ArrayBuffer]",ig="[object DataView]",sg="[object Float32Array]",og="[object Float64Array]",ag="[object Int8Array]",cg="[object Int16Array]",ug="[object Int32Array]",lg="[object Uint8Array]",hg="[object Uint8ClampedArray]",fg="[object Uint16Array]",pg="[object Uint32Array]",Q={};Q[ka]=Q[qm]=Q[ng]=Q[ig]=Q[Km]=Q[Jm]=Q[sg]=Q[og]=Q[ag]=Q[cg]=Q[ug]=Q[Gm]=Q[Zm]=Q[Ba]=Q[Qm]=Q[Xm]=Q[tg]=Q[eg]=Q[lg]=Q[hg]=Q[fg]=Q[pg]=!0,Q[Ym]=Q[Na]=Q[rg]=!1;function Or(e,t,r,n,i,s){var o,a=t&zm;if(o!==void 0)return o;if(!ot(e))return e;var u=ht(e);if(u)o=lm(e);else{var c=Ze(e),l=c==Na||c==Wm;if(xe(e))return Da(e,a);if(c==Ba||c==ka||l&&!i)o=l?{}:Ca(e);else{if(!Q[c])return i?e:{};o=Nm(e,c,a)}}s||(s=new Ot);var h=s.get(e);if(h)return h;s.set(e,o),Um(e)?e.forEach(function(d){o.add(Or(d,t,r,d,e,s))}):Fm(e)&&e.forEach(function(d,m){o.set(m,Or(d,t,r,m,e,s))});var f=Vn,p=u?void 0:f(e);return Oh(p||e,function(d,m){p&&(m=d,d=e[m]),wi(o,m,Or(d,t,r,m,e,s))}),o}var dg=1,mg=4;function Qe(e){return Or(e,dg|mg)}var gg="__lodash_hash_undefined__";function vg(e){return this.__data__.set(e,gg),this}function yg(e){return this.__data__.has(e)}function Ar(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new It;++t<r;)this.add(e[t])}Ar.prototype.add=Ar.prototype.push=vg,Ar.prototype.has=yg;function bg(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 _g(e,t){return e.has(t)}var wg=1,Eg=2;function Ia(e,t,r,n,i,s){var o=r&wg,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var h=-1,f=!0,p=r&Eg?new Ar: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(!bg(t,function(S,v){if(!_g(p,v)&&(d===S||i(d,S,r,n,s)))return p.push(v)})){f=!1;break}}else if(!(d===m||i(d,m,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function Sg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function xg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Tg=1,Og=2,Ag="[object Boolean]",$g="[object Date]",jg="[object Error]",Rg="[object Map]",Dg="[object Number]",Pg="[object RegExp]",Cg="[object Set]",kg="[object String]",Ng="[object Symbol]",Bg="[object ArrayBuffer]",Ig="[object DataView]",Js=Rt?Rt.prototype:void 0,bn=Js?Js.valueOf:void 0;function Mg(e,t,r,n,i,s,o){switch(r){case Ig:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Bg:return!(e.byteLength!=t.byteLength||!s(new Lr(e),new Lr(t)));case Ag:case $g:case Dg:return Re(+e,+t);case jg:return e.name==t.name&&e.message==t.message;case Pg:case kg:return e==t+"";case Rg:var a=Sg;case Cg:var u=n&Tg;if(a||(a=xg),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Og,o.set(e,t);var l=Ia(a(e),a(t),n,i,s,o);return o.delete(e),l;case Ng:if(bn)return bn.call(e)==bn.call(t)}return!1}var Fg=1,Lg=Object.prototype,Vg=Lg.hasOwnProperty;function Hg(e,t,r,n,i,s){var o=r&Fg,a=Vn(e),u=a.length,c=Vn(t),l=c.length;if(u!=l&&!o)return!1;for(var h=u;h--;){var f=a[h];if(!(o?f in t:Vg.call(t,f)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var b=o;++h<u;){f=a[h];var S=e[f],v=t[f];if(n)var y=o?n(v,S,f,t,e,s):n(S,v,f,e,t,s);if(!(y===void 0?S===v||i(S,v,r,n,s):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var _=e.constructor,E=t.constructor;_!=E&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof E=="function"&&E instanceof E)&&(m=!1)}return s.delete(e),s.delete(t),m}var Ug=1,Ys="[object Arguments]",Ws="[object Array]",mr="[object Object]",zg=Object.prototype,Gs=zg.hasOwnProperty;function qg(e,t,r,n,i,s){var o=ht(e),a=ht(t),u=o?Ws:Ze(e),c=a?Ws:Ze(t);u=u==Ys?mr:u,c=c==Ys?mr:c;var l=u==mr,h=c==mr,f=u==c;if(f&&xe(e)){if(!xe(t))return!1;o=!0,l=!1}if(f&&!l)return s||(s=new Ot),o||xi(e)?Ia(e,t,r,n,i,s):Mg(e,t,u,r,n,i,s);if(!(r&Ug)){var p=l&&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),Hg(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:qg(e,t,r,n,en,i)}var Kg=1,Jg=2;function Yg(e,t,r,n){var i=r.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=r[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=r[i];var a=o[0],u=e[a],c=o[1];if(o[2]){if(u===void 0&&!(a in e))return!1}else{var l=new Ot,h;if(!(h===void 0?en(c,u,Kg|Jg,n,l):h))return!1}}return!0}function Ma(e){return e===e&&!ot(e)}function Wg(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 Gg(e){var t=Wg(e);return t.length==1&&t[0][2]?Fa(t[0][0],t[0][1]):function(r){return r===e||Yg(r,e,t)}}function Zg(e,t){return e!=null&&t in Object(e)}function Qg(e,t,r){t=$i(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=ar(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 Xg(e,t){return e!=null&&Qg(e,t,Zg)}var t1=1,e1=2;function r1(e,t){return Oi(e)&&Ma(t)?Fa(ar(e),t):function(r){var n=ia(r,e);return n===void 0&&n===t?Xg(r,e):en(t,n,t1|e1)}}function n1(e){return function(t){return t==null?void 0:t[e]}}function i1(e){return function(t){return na(t,e)}}function s1(e){return Oi(e)?n1(ar(e)):i1(e)}function o1(e){return typeof e=="function"?e:e==null?_i:typeof e=="object"?ht(e)?r1(e[0],e[1]):Gg(e):s1(e)}function a1(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 c1(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var u=o[++i];if(r(s[u],u,s)===!1)break}return t}}var u1=c1();const La=u1;function l1(e,t){return e&&La(e,t,Zr)}function h1(e,t){return function(r,n){if(r==null)return r;if(!sr(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 f1=h1(l1);const p1=f1;function d1(e,t,r,n){return p1(e,function(i,s,o){t(n,i,r(i),o)}),n}function m1(e,t){return function(r,n){var i=ht(r)?a1:d1,s={};return i(r,e,o1(n),s)}}var g1=function(){return At.Date.now()};const _n=g1;var v1="Expected a function",y1=Math.max,b1=Math.min;function Pi(e,t,r){var n,i,s,o,a,u,c=0,l=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(v1);t=ws(t)||0,ot(r)&&(l=!!r.leading,h="maxWait"in r,s=h?y1(ws(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(g){var x=n,O=i;return n=i=void 0,c=g,o=e.apply(O,x),o}function d(g){return c=g,a=setTimeout(S,t),l?p(g):o}function m(g){var x=g-u,O=g-c,V=t-x;return h?b1(V,s-O):V}function b(g){var x=g-u,O=g-c;return u===void 0||x>=t||x<0||h&&O>=s}function S(){var g=_n();if(b(g))return v(g);a=setTimeout(S,m(g))}function v(g){return a=void 0,f&&n?p(g):(n=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,n=u=i=a=void 0}function _(){return a===void 0?o:v(_n())}function E(){var g=_n(),x=b(g);if(n=arguments,i=this,u=g,x){if(a===void 0)return d(u);if(h)return clearTimeout(a),a=setTimeout(S,t),p(u)}return a===void 0&&(a=setTimeout(S,t)),o}return E.cancel=y,E.flush=_,E}function qn(e,t,r){(r!==void 0&&!Re(e[t],r)||r===void 0&&!(t in e))&&Gr(e,t,r)}function _1(e){return st(e)&&sr(e)}function Kn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function w1(e){return Yo(e,Ti(e))}function E1(e,t,r,n,i,s,o){var a=Kn(e,r),u=Kn(t,r),c=o.get(u);if(c){qn(e,r,c);return}var l=s?s(a,u,r+"",e,t,o):void 0,h=l===void 0;if(h){var f=ht(u),p=!f&&xe(u),d=!f&&!p&&xi(u);l=u,f||p||d?ht(a)?l=a:_1(a)?l=mh(a):p?(h=!1,l=Da(u,!0)):d?(h=!1,l=Pa(u,!0)):l=[]:ji(u)||Fr(u)?(l=a,Fr(a)?l=w1(a):(!ot(a)||ne(a))&&(l=Ca(u))):h=!1}h&&(o.set(u,l),i(l,u,n,s,o),o.delete(u)),qn(e,r,l)}function Va(e,t,r,n,i){e!==t&&La(t,function(s,o){if(i||(i=new Ot),ot(s))E1(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 S1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},x1=ga(S1);const T1=x1;var Ha=/[&<>"']/g,O1=RegExp(Ha.source);function A1(e){return e=oe(e),e&&O1.test(e)?e.replace(Ha,T1):e}var $1=Object.prototype,j1=$1.hasOwnProperty,R1=m1(function(e,t,r){j1.call(e,r)?e[r].push(t):Gr(e,r,[t])});const Ua=R1;var D1="[object String]";function vt(e){return typeof e=="string"||!ht(e)&&st(e)&&bt(e)==D1}function P1(e,t){return qo(t,function(r){return e[r]})}var C1="[object ArrayBuffer]";function k1(e){return st(e)&&bt(e)==C1}var Zs=Dt&&Dt.isArrayBuffer,N1=Zs?or(Zs):k1;const B1=N1;var I1="[object Boolean]";function M1(e){return e===!0||e===!1||st(e)&&bt(e)==I1}var F1="[object Date]";function L1(e){return st(e)&&bt(e)==F1}var Qs=Dt&&Dt.isDate,V1=Qs?or(Qs):L1;const H1=V1;function U1(e,t){return en(e,t)}var z1="[object Number]";function za(e){return typeof e=="number"||st(e)&&bt(e)==z1}function q1(e){return za(e)&&e!=+e}function K1(e){return e===null}function J1(e){return e===void 0}var Y1=Ri(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const W1=Y1;var G1=ma("toLowerCase");const Z1=G1;var Q1=Zo(function(e,t,r){Va(e,t,r)});const $t=Q1;function X1(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 u=ar(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var l=a[u];c=void 0,c===void 0&&(c=ot(l)?l:Wr(t[i+1])?[]:{})}wi(a,u,c),a=a[u]}return e}function t0(e,t,r){return e==null?e:X1(e,t,r)}var e0=Ri(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const r0=e0;var qa=Object.prototype,n0=qa.hasOwnProperty;function Xs(e,t,r,n){return e===void 0||Re(e,qa[r])&&!n0.call(n,r)?t:e}var i0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function s0(e){return"\\"+i0[e]}var o0=/<%=([\s\S]+?)%>/g;const Ka=o0;var a0=/<%-([\s\S]+?)%>/g;const c0=a0;var u0=/<%([\s\S]+?)%>/g;const l0=u0;var h0={escape:c0,evaluate:l0,interpolate:Ka,variable:"",imports:{_:{escape:A1}}};const to=h0;var f0="Invalid `variable` option passed into `_.template`",p0=/\b__p \+= '';/g,d0=/\b(__p \+=) '' \+/g,m0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,g0=/[()=,{}\[\]\/\s]/,v0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gr=/($^)/,y0=/['\n\r\u2028\u2029\\]/g,b0=Object.prototype,eo=b0.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=P1(i,s),a,u,c=0,l=t.interpolate||gr,h="__p += '",f=RegExp((t.escape||gr).source+"|"+l.source+"|"+(l===Ka?v0:gr).source+"|"+(t.evaluate||gr).source+"|$","g"),p=eo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
+ `:"";e.replace(f,function(b,S,v,y,_,E){return v||(v=y),h+=e.slice(c,E).replace(y0,s0),S&&(a=!0,h+=`' +
4
+ __e(`+S+`) +
5
+ '`),_&&(u=!0,h+=`';
6
+ `+_+`;
7
+ __p += '`),v&&(h+=`' +
8
+ ((__t = (`+v+`)) == null ? '' : __t) +
9
+ '`),c=E+b.length,b}),h+=`';
10
+ `;var d=eo.call(t,"variable")&&t.variable;if(!d)h=`with (obj) {
11
+ `+h+`
12
+ }
13
+ `;else if(g0.test(d))throw new Error(f0);h=(u?h.replace(p0,""):h).replace(d0,"$1").replace(m0,"$1;"),h="function("+(d||"obj")+`) {
14
+ `+(d?"":`obj || (obj = {});
15
+ `)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(u?`, __j = Array.prototype.join;
16
+ function print() { __p += __j.call(arguments, '') }
17
+ `:`;
18
+ `)+h+`return __p
19
+ }`;var m=Ep(function(){return Function(s,p+"return "+h).apply(void 0,o)});if(m.source=h,aa(m))throw m;return m}var _0="Expected a function";function Ya(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(_0);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(kt(e))}var ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function De(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wa={exports:{}};function w0(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 w0=="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,_}}(),u={},c=u.lib={},l=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=l.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,E=this.sigBytes,g=v.sigBytes;if(this.clamp(),E%4)for(var x=0;x<g;x++){var O=_[x>>>2]>>>24-x%4*8&255;y[E+x>>>2]|=O<<24-(E+x)%4*8}else for(var V=0;V<g;V+=4)y[E+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=l.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=u.enc={},p=f.Hex={stringify:function(v){for(var y=v.words,_=v.sigBytes,E=[],g=0;g<_;g++){var x=y[g>>>2]>>>24-g%4*8&255;E.push((x>>>4).toString(16)),E.push((x&15).toString(16))}return E.join("")},parse:function(v){for(var y=v.length,_=[],E=0;E<y;E+=2)_[E>>>3]|=parseInt(v.substr(E,2),16)<<24-E%8*4;return new h.init(_,y/2)}},d=f.Latin1={stringify:function(v){for(var y=v.words,_=v.sigBytes,E=[],g=0;g<_;g++){var x=y[g>>>2]>>>24-g%4*8&255;E.push(String.fromCharCode(x))}return E.join("")},parse:function(v){for(var y=v.length,_=[],E=0;E<y;E++)_[E>>>2]|=(v.charCodeAt(E)&255)<<24-E%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=l.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,E=_.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 M=0;M<w;M+=x)this._doProcessBlock(E,M);y=E.splice(0,w),_.sigBytes-=T}return new h.init(y,T)},clone:function(){var v=l.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=b.extend({cfg:l.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 S.HMAC.init(v,_).finalize(y)}}});var S=u.algo={};return u}(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,u=i.algo,c=[];(function(){for(var m=0;m<64;m++)c[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=u.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,b){for(var S=0;S<16;S++){var v=b+S,y=m[v];m[v]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var _=this._hash.words,E=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],M=m[b+7],P=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],C=_[1],N=_[2],B=_[3];$=h($,C,N,B,E,7,c[0]),B=h(B,$,C,N,g,12,c[1]),N=h(N,B,$,C,x,17,c[2]),C=h(C,N,B,$,O,22,c[3]),$=h($,C,N,B,V,7,c[4]),B=h(B,$,C,N,w,12,c[5]),N=h(N,B,$,C,T,17,c[6]),C=h(C,N,B,$,M,22,c[7]),$=h($,C,N,B,P,7,c[8]),B=h(B,$,C,N,I,12,c[9]),N=h(N,B,$,C,D,17,c[10]),C=h(C,N,B,$,k,22,c[11]),$=h($,C,N,B,U,7,c[12]),B=h(B,$,C,N,L,12,c[13]),N=h(N,B,$,C,z,17,c[14]),C=h(C,N,B,$,q,22,c[15]),$=f($,C,N,B,g,5,c[16]),B=f(B,$,C,N,T,9,c[17]),N=f(N,B,$,C,k,14,c[18]),C=f(C,N,B,$,E,20,c[19]),$=f($,C,N,B,w,5,c[20]),B=f(B,$,C,N,D,9,c[21]),N=f(N,B,$,C,q,14,c[22]),C=f(C,N,B,$,V,20,c[23]),$=f($,C,N,B,I,5,c[24]),B=f(B,$,C,N,z,9,c[25]),N=f(N,B,$,C,O,14,c[26]),C=f(C,N,B,$,P,20,c[27]),$=f($,C,N,B,L,5,c[28]),B=f(B,$,C,N,x,9,c[29]),N=f(N,B,$,C,M,14,c[30]),C=f(C,N,B,$,U,20,c[31]),$=p($,C,N,B,w,4,c[32]),B=p(B,$,C,N,P,11,c[33]),N=p(N,B,$,C,k,16,c[34]),C=p(C,N,B,$,z,23,c[35]),$=p($,C,N,B,g,4,c[36]),B=p(B,$,C,N,V,11,c[37]),N=p(N,B,$,C,M,16,c[38]),C=p(C,N,B,$,D,23,c[39]),$=p($,C,N,B,L,4,c[40]),B=p(B,$,C,N,E,11,c[41]),N=p(N,B,$,C,O,16,c[42]),C=p(C,N,B,$,T,23,c[43]),$=p($,C,N,B,I,4,c[44]),B=p(B,$,C,N,U,11,c[45]),N=p(N,B,$,C,q,16,c[46]),C=p(C,N,B,$,x,23,c[47]),$=d($,C,N,B,E,6,c[48]),B=d(B,$,C,N,M,10,c[49]),N=d(N,B,$,C,z,15,c[50]),C=d(C,N,B,$,w,21,c[51]),$=d($,C,N,B,U,6,c[52]),B=d(B,$,C,N,O,10,c[53]),N=d(N,B,$,C,D,15,c[54]),C=d(C,N,B,$,g,21,c[55]),$=d($,C,N,B,P,6,c[56]),B=d(B,$,C,N,q,10,c[57]),N=d(N,B,$,C,T,15,c[58]),C=d(C,N,B,$,L,21,c[59]),$=d($,C,N,B,V,6,c[60]),B=d(B,$,C,N,k,10,c[61]),N=d(N,B,$,C,x,15,c[62]),C=d(C,N,B,$,I,21,c[63]),_[0]=_[0]+$|0,_[1]=_[1]+C|0,_[2]=_[2]+N|0,_[3]=_[3]+B|0},_doFinalize:function(){var m=this._data,b=m.words,S=this._nDataBytes*8,v=m.sigBytes*8;b[v>>>5]|=128<<24-v%32;var y=n.floor(S/4294967296),_=S;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 E=this._hash,g=E.words,x=0;x<4;x++){var O=g[x];g[x]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return E},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function h(m,b,S,v,y,_,E){var g=m+(b&S|~b&v)+y+E;return(g<<_|g>>>32-_)+b}function f(m,b,S,v,y,_,E){var g=m+(b&v|S&~v)+y+E;return(g<<_|g>>>32-_)+b}function p(m,b,S,v,y,_,E){var g=m+(b^S^v)+y+E;return(g<<_|g>>>32-_)+b}function d(m,b,S,v,y,_,E){var g=m+(S^(b|~v))+y+E;return(g<<_|g>>>32-_)+b}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5})})(Wa);var Ga=Wa.exports;const E0=De(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(u){var c=u.words,l=u.sigBytes,h=this._map;u.clamp();for(var f=[],p=0;p<l;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,S=d<<16|m<<8|b,v=0;v<4&&p+v*.75<l;v++)f.push(h.charAt(S>>>6*(3-v)&63));var y=h.charAt(64);if(y)for(;f.length%4;)f.push(y);return f.join("")},parse:function(u){var c=u.length,l=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f<l.length;f++)h[l.charCodeAt(f)]=f}var p=l.charAt(64);if(p){var d=u.indexOf(p);d!==-1&&(c=d)}return a(u,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(u,c,l){for(var h=[],f=0,p=0;p<c;p++)if(p%4){var d=l[u.charCodeAt(p-1)]<<p%4*2,m=l[u.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=De(Qa);var tc={exports:{}};(function(e,t){(function(r,n){e.exports=n(Yt())})(ut,function(r){return r.enc.Utf8})})(tc);var S0=tc.exports;const Ci=De(S0);var ec={exports:{}},io={exports:{}},so={exports:{}},oo;function x0(){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,u=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,h){for(var f=this._hash.words,p=f[0],d=f[1],m=f[2],b=f[3],S=f[4],v=0;v<80;v++){if(v<16)u[v]=l[h+v]|0;else{var y=u[v-3]^u[v-8]^u[v-14]^u[v-16];u[v]=y<<1|y>>>31}var _=(p<<5|p>>>27)+S+u[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,S=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]+S|0},_doFinalize:function(){var l=this._data,h=l.words,f=this._nDataBytes*8,p=l.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,l.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var l=o.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=o._createHelper(c),n.HmacSHA1=o._createHmacHelper(c)}(),r.SHA1})}(so)),so.exports}var ao={exports:{}},co;function T0(){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,u=n.algo;u.HMAC=s.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=a.parse(l));var h=c.blockSize,f=h*4;l.sigBytes>f&&(l=c.finalize(l)),l.clamp();for(var p=this._oKey=l.clone(),d=this._iKey=l.clone(),m=p.words,b=d.words,S=0;S<h;S++)m[S]^=1549556828,b[S]^=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 l=this._hasher,h=l.finalize(c);l.reset();var f=l.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(),x0(),T0())})(ut,function(r){return function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,a=n.algo,u=a.MD5,c=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,h){for(var f,p=this.cfg,d=p.hasher.create(),m=o.create(),b=m.words,S=p.keySize,v=p.iterations;b.length<S;){f&&d.update(f),f=d.update(l).finalize(h),d.reset();for(var y=1;y<v;y++)f=d.finalize(f),d.reset();m.concat(f)}return m.sigBytes=S*4,m}});n.EvpKDF=function(l,h,f){return c.create(f).compute(l,h)}}(),r.EvpKDF})}(io)),io.exports}var lo={exports:{}},ho;function O0(){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,u=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var l=c.Base64,h=i.algo,f=h.EvpKDF,p=s.Cipher=u.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,M){this.cfg=this.cfg.extend(M),this._xformMode=w,this._key=T,this.reset()},reset:function(){u.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(M,P,I){return w(P).encrypt(T,M,P,I)},decrypt:function(M,P,I){return w(P).decrypt(T,M,P,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(M,P){var I=this._cipher,D=I.blockSize;T.call(this,M,P,D),I.encryptBlock(M,P),this._prevBlock=M.slice(P,P+D)}}),w.Decryptor=w.extend({processBlock:function(M,P){var I=this._cipher,D=I.blockSize,k=M.slice(P,P+D);I.decryptBlock(M,P),T.call(this,M,P,D),this._prevBlock=k}});function T(M,P,I){var D,k=this._iv;k?(D=k,this._iv=n):D=this._prevBlock;for(var U=0;U<I;U++)M[P+U]^=D[U]}return w}(),S=i.pad={},v=S.Pkcs7={pad:function(w,T){for(var M=T*4,P=M-w.sigBytes%M,I=P<<24|P<<16|P<<8|P,D=[],k=0;k<P;k+=4)D.push(I);var U=a.create(D,P);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,M=T.iv,P=T.mode;this._xformMode==this._ENC_XFORM_MODE?w=P.createEncryptor:(w=P.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,M&&M.words):(this._mode=w.call(P,this,M&&M.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={},E=_.OpenSSL={stringify:function(w){var T,M=w.ciphertext,P=w.salt;return P?T=a.create([1398893684,1701076831]).concat(P).concat(M):T=M,T.toString(l)},parse:function(w){var T,M=l.parse(w),P=M.words;return P[0]==1398893684&&P[1]==1701076831&&(T=a.create(P.slice(2,4)),P.splice(0,4),M.sigBytes-=16),y.create({ciphertext:M,salt:T})}},g=s.SerializableCipher=o.extend({cfg:o.extend({format:E}),encrypt:function(w,T,M,P){P=this.cfg.extend(P);var I=w.createEncryptor(M,P),D=I.finalize(T),k=I.cfg;return y.create({ciphertext:D,key:M,iv:k.iv,algorithm:w,mode:k.mode,padding:k.padding,blockSize:w.blockSize,formatter:P.format})},decrypt:function(w,T,M,P){P=this.cfg.extend(P),T=this._parse(T,P.format);var I=w.createDecryptor(M,P).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,M,P,I){if(P||(P=a.random(64/8)),I)var D=f.create({keySize:T+M,hasher:I}).compute(w,P);else var D=f.create({keySize:T+M}).compute(w,P);var k=a.create(D.words.slice(T),M*4);return D.sigBytes=T*4,y.create({key:D,iv:k,salt:P})}},V=s.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:O}),encrypt:function(w,T,M,P){P=this.cfg.extend(P);var I=P.kdf.execute(M,w.keySize,w.ivSize,P.salt,P.hasher);P.iv=I.iv;var D=g.encrypt.call(this,w,T,I.key,P);return D.mixIn(I),D},decrypt:function(w,T,M,P){P=this.cfg.extend(P),T=this._parse(T,P.format);var I=P.kdf.execute(M,w.keySize,w.ivSize,T.salt,P.hasher);P.iv=I.iv;var D=g.decrypt.call(this,w,T,I.key,P);return D}})}()})}(lo)),lo.exports}(function(e,t){(function(r,n,i){e.exports=n(Yt(),Qa,Ga,rc(),O0())})(ut,function(r){return function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,a=[],u=[],c=[],l=[],h=[],f=[],p=[],d=[],m=[],b=[];(function(){for(var y=[],_=0;_<256;_++)_<128?y[_]=_<<1:y[_]=_<<1^283;for(var E=0,g=0,_=0;_<256;_++){var x=g^g<<1^g<<2^g<<3^g<<4;x=x>>>8^x&255^99,a[E]=x,u[x]=E;var O=y[E],V=y[O],w=y[V],T=y[x]*257^x*16843008;c[E]=T<<24|T>>>8,l[E]=T<<16|T>>>16,h[E]=T<<8|T>>>24,f[E]=T;var T=w*16843009^V*65537^O*257^E*16843008;p[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,E?(E=O^y[y[y[w^O]]],g^=y[y[g]]):E=g=1}})();var S=[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,E=_.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]=E[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^=S[w/g|0]<<24),V[w]=V[w-g]^y);for(var T=this._invKeySchedule=[],M=0;M<O;M++){var w=O-M;if(M%4)var y=V[w];else var y=V[w-4];M<4||w<=4?T[M]=y:T[M]=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,l,h,f,a)},decryptBlock:function(y,_){var E=y[_+1];y[_+1]=y[_+3],y[_+3]=E,this._doCryptBlock(y,_,this._invKeySchedule,p,d,m,b,u);var E=y[_+1];y[_+1]=y[_+3],y[_+3]=E},_doCryptBlock:function(y,_,E,g,x,O,V,w){for(var T=this._nRounds,M=y[_]^E[0],P=y[_+1]^E[1],I=y[_+2]^E[2],D=y[_+3]^E[3],k=4,U=1;U<T;U++){var L=g[M>>>24]^x[P>>>16&255]^O[I>>>8&255]^V[D&255]^E[k++],z=g[P>>>24]^x[I>>>16&255]^O[D>>>8&255]^V[M&255]^E[k++],q=g[I>>>24]^x[D>>>16&255]^O[M>>>8&255]^V[P&255]^E[k++],$=g[D>>>24]^x[M>>>16&255]^O[P>>>8&255]^V[I&255]^E[k++];M=L,P=z,I=q,D=$}var L=(w[M>>>24]<<24|w[P>>>16&255]<<16|w[I>>>8&255]<<8|w[D&255])^E[k++],z=(w[P>>>24]<<24|w[I>>>16&255]<<16|w[D>>>8&255]<<8|w[M&255])^E[k++],q=(w[I>>>24]<<24|w[D>>>16&255]<<16|w[M>>>8&255]<<8|w[P&255])^E[k++],$=(w[D>>>24]<<24|w[M>>>16&255]<<16|w[P>>>8&255]<<8|w[I&255])^E[k++];y[_]=L,y[_+1]=z,y[_+2]=q,y[_+3]=$},keySize:256/32});n.AES=s._createHelper(v)}(),r.AES})})(ec);var A0=ec.exports;const nc=De(A0);var $0="0123456789abcdefghijklmnopqrstuvwxyz";function Nt(e){return $0.charAt(e)}function j0(e,t){return e&t}function vr(e,t){return e|t}function fo(e,t){return e^t}function po(e,t){return e&~t}function R0(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 D0(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,P0={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,Fe=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="…",C0=/^(\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)?)?$/,k0=/^(\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?C0:k0).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 u=new Fe(n),c=t+1;c<r;++c)u.mulAdd(256,this.get(c));return a+u.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="",u=t+1;u<r;++u){for(var c=this.get(u),l=u==r-1?i:0,h=7;h>=l;--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 Fe,o=0,a=t;a<r;++a){var u=this.get(a);if(s.mulAdd(128,u&127),o+=7,!(u&128)){if(i==="")if(s=s.simplify(),s instanceof Fe)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 Fe,o=0}}return o>0&&(i+=".incomplete"),i},e}(),N0=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,u=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)u=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.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(h){u=null}if(u===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,u)},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 Fe;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,B0=0xdeadbeefcafe,vo=(B0&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],I0=(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,u=this.DB-a*this.DB%r;if(a-- >0)for(u<this.DB&&(i=this[a]>>u)>0&&(s=!0,o=Nt(i));a>=0;)u<r?(i=(this[a]&(1<<u)-1)<<r-u,i|=this[--a]>>(u+=this.DB-r)):(i=this[a]>>(u-=r)&n,u<=0&&(u+=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)+yr(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,j0,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,vr,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+R0(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+=D0(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,vr)},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 F0(r):o=new bo(r);var a=[],u=3,c=i-1,l=(1<<i)-1;if(a[1]=o.convert(this),i>1){var h=Y();for(o.sqrTo(a[1],h);u<=l;)a[u]=Y(),o.mulTo(h,a[u-2],a[u]),u+=2}var f=t.t-1,p,d=!0,m=Y(),b;for(n=yr(t[f])-1;f>=0;){for(n>=c?p=t[f]>>n-c&l:(p=(t[f]&(1<<n+1)-1)<<c-n,f>0&&(p|=t[f-1]>>this.DB+n-c)),u=i;!(p&1);)p>>=1,--u;if((n-=u)<0&&(n+=this.DB,--f),d)a[p].copyTo(s),d=!1;else{for(;u>1;)o.sqrTo(s,m),o.sqrTo(m,s),u-=2;u>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),u=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()||!u.isEven())&&(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(a,s),o.subTo(u,o)):(i.subTo(n,i),r&&a.subTo(s,a),u.subTo(o,u))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u},e.prototype.pow=function(t){return this.exp(t,new M0)},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<I0;)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,u=this.t-1;u>=0;--u)r[u+o+1]=this[u]>>i|a,a=(this[u]&s)<<n;for(var u=o-1;u>=0;--u)r[u]=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,u=t.s,c=this.DB-yr(i[i.t-1]);c>0?(i.lShiftTo(c,o),s.lShiftTo(c,n)):(i.copyTo(o),s.copyTo(n));var l=o.t,h=o[l-1];if(h!=0){var f=h*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),p=this.FV/f,d=(1<<this.F1)/f,m=1<<this.F2,b=n.t,S=b-l,v=r!=null?r:Y();for(o.dlShiftTo(S,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),e.ONE.dlShiftTo(l,v),v.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--S>=0;){var y=n[--b]==h?this.DM:Math.floor(n[b]*p+(n[b-1]+m)*d);if((n[b]+=o.am(0,y,n,S,0,l))<y)for(o.dlShiftTo(S,v),n.subTo(v,n);n[b]<--y;)n.subTo(v,n)}r!=null&&(n.drShiftTo(l,r),a!=u&&e.ZERO.subTo(r,r)),n.t=l,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=yr(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,u=0;u<t.length;++u){var c=wo(t,u);if(c<0){t.charAt(u)=="-"&&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),vr,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 u=1;u++<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 u=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(u,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(u,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),vr,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=[],u=t&7;a.length=(t>>3)+1,r.nextBytes(a),u>0?a[0]&=(1<<u)-1:a[0]=0,this.fromString(a,256)}},e}(),M0=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}(),F0=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 u=this[e]&32767,c=this[e++]>>15,l=a*u+c*o;u=o*u+((l&32767)<<15)+r[n]+(i&1073741823),i=(u>>>30)+(l>>>15)+a*c+(i>>>30),r[n++]=u&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 u=this[e]&16383,c=this[e++]>>14,l=a*u+c*o;u=o*u+((l&16383)<<14)+r[n]+i,i=(u>>28)+(l>>14)+a*c,r[n++]=u&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=[],Te,Et;for(Te=48,Et=0;Et<=9;++Et)rn[Te++]=Et;for(Te=97,Et=10;Et<36;++Et)rn[Te++]=Et;for(Te=65,Et=10;Et<36;++Et)rn[Te++]=Et;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 yr(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 L0=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 V0(){return new L0}var oc=256,br,qt=null,Tt;if(qt==null){qt=[],Tt=0;var _r=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Sn=new Uint32Array(256);for(window.crypto.getRandomValues(Sn),_r=0;_r<Sn.length;++_r)qt[Tt++]=Sn[_r]&255}var wr=0,Er=function(e){if(wr=wr||0,wr>=256||Tt>=oc){window.removeEventListener?window.removeEventListener("mousemove",Er,!1):window.detachEvent&&window.detachEvent("onmousemove",Er);return}try{var t=e.x+e.y;qt[Tt++]=t&255,wr+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Er,!1):window.attachEvent&&window.attachEvent("onmousemove",Er))}function H0(){if(br==null){for(br=V0();Tt<oc;){var e=Math.floor(65536*Math.random());qt[Tt++]=e&255}for(br.init(qt),Tt=0;Tt<qt.length;++Tt)qt[Tt]=0;Tt=0}return br.next()}var Wn=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=H0()},e}();function U0(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 z0(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 q0=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=z0(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,u){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(u,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),u=this.q.subtract(J.ONE),c=a.multiply(u);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(u),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:K0(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,u=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(u,0)},l=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(l,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(l,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(u,0)},e.prototype.sign=function(t,r,n){var i=J0(n),s=i+r(t).toString(),o=U0(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var u=a.toString(16);return u.length&1?"0"+u:u},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=Y0(o);return a==n(t).toString()},e}();function K0(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 $r={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function J0(e){return $r[e]||""}function Y0(e){for(var t in $r)if($r.hasOwnProperty(t)){var r=$r[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,u){for(i=0;i<o.length;i=i+1){var c=o[i],l=u[c];typeof l=="function"&&l!=Object.prototype[c]&&(a[c]=l)}})}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,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,h=r.DERNumericString,f=r.DERPrintableString,p=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,b=r.DERGeneralizedTime,S=r.DERSequence,v=r.DERSet,y=r.DERTaggedObject,_=r.ASN1Util.newObject,E=Object.keys(e);if(E.length!=1)throw"key of param shall be only one.";var g=E[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 u(e[g]);if(g=="enum")return new c(e[g]);if(g=="utf8str")return new l(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 S({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 M=_(T[2]);return new y({tag:T[0],explicit:T[1],obj:M})}else{var P={};if(T.explicit!==void 0&&(P.explicit=T.explicit),T.tag!==void 0&&(P.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return P.obj=_(T.obj),new y(P)}}},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),u=("00000000"+a.toString(2)).slice(-8);if(s=s+u.substr(1,7),u.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 u=a.toString(16);return u.length==1&&(u="0"+u),u},r=function(a){var u="",c=new J(a,10),l=c.toString(2),h=7-l.length%7;h==7&&(h=0);for(var f="",p=0;p<h;p++)f+="0";l=f+l;for(var p=0;p<l.length-1;p+=7){var d=l.substr(p,7);p!=l.length-7&&(d="1"+d),u+=t(parseInt(d,2))}return u};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),u=i(String(s.getDate()),2),c=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),h=i(String(s.getSeconds()),2),f=o+a+u+c+l+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 u="",c=0;c<a;c++)u+="0";o=u+o;for(var c=0;c<o.length-1;c+=7){var l=o.substr(c,7);c!=o.length-7&&(l="1"+l),i+=t(parseInt(l,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 W0=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){W0(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)?P0.decode(r):Yn.unarmor(r),a=N0.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 u=a.sub[3].getHexStringValue();this.d=tt(u,16);var c=a.sub[4].getHexStringValue();this.p=tt(c,16);var l=a.sub[5].getHexStringValue();this.q=tt(l,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}(q0),xn,G0=typeof process<"u"?(xn=xl)===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=G0,e}();const Z0="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALdyxTCEB5WcGnbeUyN4xn1cs8z+0tC72vgbd/L99om5TZ0OfRqRb6Y7RJfdimB9LJyvmyP9T1P0jWrHkotq8iUCAwEAAQ==",Q0="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function X0(e){return String(E0(e))}function tv(e){const t=Ci.parse(e);return Xa.stringify(t)}function ev(e){return Ci.stringify(Xa.parse(e))}function rv(e,t=Z0){const r=new ac;return r.setKey(t),r.encrypt(e)}function Gn(e,t=Q0){const r=new ac;return r.setPrivateKey(t),r.decrypt(e)}function nv(e,t){return nc.encrypt(e,t).toString()}function iv(e,t){return nc.decrypt(e,t).toString(Ci)}const ki=/^(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 ki.test(e)}function sv(e){return cc.test(e)}function ov(e){return uc.test(e)}function av(e){return lc.test(e)}function cv(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 u(c,l){this._input=c,this._value=l}return t=function(c){var l,h,f,p;if(t.isNumeral(c))l=c.value();else if(c===0||typeof c>"u")l=0;else if(c===null||r.isNaN(c))l=null;else if(typeof c=="string")if(a.zeroFormat&&c===a.zeroFormat)l=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)l=null;else{for(h in i)if(p=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,p&&c.match(p)){f=i[h].unformat;break}f=f||t._.stringToNumber,l=f(c)}else l=Number(c)||null;return new u(c,l)},t.version=n,t.isNumeral=function(c){return c instanceof u},t._=r={numberToFormat:function(c,l,h){var f=s[t.options.currentLocale],p=!1,d=!1,m=0,b="",S=1e12,v=1e9,y=1e6,_=1e3,E="",g=!1,x,O,V,w,T,M,P;if(c=c||0,O=Math.abs(c),t._.includes(l,"(")?(p=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):c<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),t._.includes(l,"a")&&(x=l.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(l," a")&&(b=" "),l=l.replace(new RegExp(b+"a[kmbt]?"),""),O>=S&&!x||x==="t"?(b+=f.abbreviations.trillion,c=c/S):O<S&&O>=v&&!x||x==="b"?(b+=f.abbreviations.billion,c=c/v):O<v&&O>=y&&!x||x==="m"?(b+=f.abbreviations.million,c=c/y):(O<y&&O>=_&&!x||x==="k")&&(b+=f.abbreviations.thousand,c=c/_)),t._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),V=c.toString().split(".")[0],w=l.split(".")[1],M=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),E=t._.toFixed(c,w[0].length+w[1].length,h,w[1].length)):E=t._.toFixed(c,w.length,h),V=E.split(".")[0],t._.includes(E,".")?E=f.delimiters.decimal+E.split(".")[1]:E="",d&&Number(E.slice(1))===0&&(E="")):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 M>-1&&(V=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),l.indexOf(".")===0&&(V=""),P=V+E+(b||""),p?P=(p&&g?"(":"")+P+(p&&g?")":""):T>=0?P=T===0?(g?"-":"+")+P:P+(g?"-":"+"):g&&(P="-"+P),P},stringToNumber:function(c){var l=s[a.currentLocale],h=c,f={thousand:3,million:6,billion:9,trillion:12},p,d,m;if(a.zeroFormat&&c===a.zeroFormat)d=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(p in f)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[p]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),h.match(m)){d*=Math.pow(10,f[p]);break}d*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),d*=Number(c)}return d},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,l){return c.indexOf(l)!==-1},insert:function(c,l,h){return c.slice(0,h)+l+c.slice(h)},reduce:function(c,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var h=Object(c),f=h.length>>>0,p=0,d;if(arguments.length===3)d=arguments[2];else{for(;p<f&&!(p in h);)p++;if(p>=f)throw new TypeError("Reduce of empty array with no initial value");d=h[p++]}for(;p<f;p++)p in h&&(d=l(d,h[p],p,h));return d},multiplier:function(c){var l=c.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(l,h){var f=r.multiplier(h);return l>f?l:f},1)},toFixed:function(c,l,h,f){var p=c.toString().split("."),d=l-(f||0),m,b,S,v;return p.length===2?m=Math.min(Math.max(p[1].length,d),l):m=d,S=Math.pow(10,m),v=(h(c+"e+"+m)/S).toFixed(m),f>l-m&&(b=new RegExp("\\.?0{1,"+(f-(l-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,l,h){if(l=l.toLowerCase(),this[c+"s"][l])throw new TypeError(l+" "+c+" already registered.");return this[c+"s"][l]=h,h},t.validate=function(c,l){var h,f,p,d,m,b,S,v;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{S=t.localeData(l)}catch(y){S=t.localeData(t.locale())}return p=S.currency.symbol,m=S.abbreviations,h=S.delimiters.decimal,S.delimiters.thousands==="."?f="\\.":f=S.delimiters.thousands,v=c.match(/^[^\d]+/),v!==null&&(c=c.substr(1),v[0]!==p)||(v=c.match(/[^\d]+$/),v!==null&&(c=c.slice(0,-1),v[0]!==m.thousand&&v[0]!==m.million&&v[0]!==m.billion&&v[0]!==m.trillion))?!1:(b=new RegExp(f+"{2}"),c.match(/[^\d.,]/g)?!1:(d=c.split(h),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(c,l){var h=this._value,f=c||a.defaultFormat,p,d,m;if(l=l||Math.round,h===0&&a.zeroFormat!==null)d=a.zeroFormat;else if(h===null&&a.nullFormat!==null)d=a.nullFormat;else{for(p in i)if(f.match(i[p].regexps.format)){m=i[p].format;break}m=m||t._.numberToFormat,d=m(h,f,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f+Math.round(l*p)}return this._value=r.reduce([this._value,c],h,0)/l,this},subtract:function(c){var l=r.correctionFactor.call(null,this._value,c);function h(f,p,d,m){return f-Math.round(l*p)}return this._value=r.reduce([c],h,Math.round(this._value*l))/l,this},multiply:function(c){function l(h,f,p,d){var m=r.correctionFactor(h,f);return Math.round(h*m)*Math.round(f*m)/Math.round(m*m)}return this._value=r.reduce([this._value,c],l,1),this},divide:function(c){function l(h,f,p,d){var m=r.correctionFactor(h,f);return Math.round(h*m)/Math.round(f*m)}return this._value=r.reduce([this._value,c],l),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var l=c%10;return~~(c%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,l,h){var f=t._.includes(l," BPS")?" ":"",p;return c=c*1e4,l=l.replace(/\s?BPS/,""),p=t._.numberToFormat(c,l,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"BPS"),p=p.join("")):p=p+f+"BPS",p},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(l.suffixes.filter(function(p){return c.suffixes.indexOf(p)<0})),f=h.join("|");f="("+f.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(p,d,m){var b,S=t._.includes(d,"ib")?l:c,v=t._.includes(d," b")||t._.includes(d," ib")?" ":"",y,_,E;for(d=d.replace(/\s?i?b/,""),y=0;y<=S.suffixes.length;y++)if(_=Math.pow(S.base,y),E=Math.pow(S.base,y+1),p===null||p===0||p>=_&&p<E){v+=S.suffixes[y],_>0&&(p=p/_);break}return b=t._.numberToFormat(p,d,m),b+v},unformat:function(p){var d=t._.stringToNumber(p),m,b;if(d){for(m=c.suffixes.length-1;m>=0;m--){if(t._.includes(p,c.suffixes[m])){b=Math.pow(c.base,m);break}if(t._.includes(p,l.suffixes[m])){b=Math.pow(l.base,m);break}}d*=b||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,l,h){var f=t.locales[t.options.currentLocale],p={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(l=l.replace(/\s?\$\s?/,""),d=t._.numberToFormat(c,l,h),c>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(p.before,"-")&&!t._.includes(p.before,"(")&&(p.before="-"+p.before),b=0;b<p.before.length;b++)switch(m=p.before[b],m){case"$":d=t._.insert(d,f.currency.symbol,b);break;case" ":d=t._.insert(d," ",b+f.currency.symbol.length-1);break}for(b=p.after.length-1;b>=0;b--)switch(m=p.after[b],m){case"$":d=b===p.after.length-1?d+f.currency.symbol:t._.insert(d,f.currency.symbol,-(p.after.length-(1+b)));break;case" ":d=b===p.after.length-1?d+" ":t._.insert(d," ",-(p.after.length-(1+b)+f.currency.symbol.length-1));break}return d}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,l,h){var f,p=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",d=p.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(d[0]),l,h),f+"e"+d[1]},unformat:function(c){var l=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(l[0]),f=Number(l[1]);f=t._.includes(c,"e-")?f*=-1:f;function p(d,m,b,S){var v=t._.correctionFactor(d,m),y=d*v*(m*v)/(v*v);return y}return t._.reduce([h,Math.pow(10,f)],p,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,l,h){var f=t.locales[t.options.currentLocale],p,d=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=f.ordinal(c),p=t._.numberToFormat(c,l,h),p+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,l,h){var f=t._.includes(l," %")?" ":"",p;return t.options.scalePercentBy100&&(c=c*100),l=l.replace(/\s?\%/,""),p=t._.numberToFormat(c,l,h),t._.includes(p,")")?(p=p.split(""),p.splice(-1,0,f+"%"),p=p.join("")):p=p+f+"%",p},unformat:function(c){var l=t._.stringToNumber(c);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,l,h){var f=Math.floor(c/60/60),p=Math.floor((c-f*60*60)/60),d=Math.round(c-f*60*60-p*60);return f+":"+(p<10?"0"+p:p)+":"+(d<10?"0"+d:d)},unformat:function(c){var l=c.split(":"),h=0;return l.length===3?(h=h+Number(l[0])*60*60,h=h+Number(l[1])*60,h=h+Number(l[2])):l.length===2&&(h=h+Number(l[0])*60,h=h+Number(l[1])),Number(h)}})}(),t})})(pc);var uv=pc.exports;const dc=De(uv);function lv(e,t="0.00"){return dc(e).format(t)}function hv(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",u="hour",c="day",l="week",h="month",f="quarter",p="year",d="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var D=["th","st","nd","rd"],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:l,d:c,D:d,h:u,m:a,s:o,ms:s,Q:f}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},E="en",g={};g[E]=v;var x="$isDayjsObject",O=function(I){return I instanceof M||!(!I||!I[x])},V=function I(D,k,U){var L;if(!D)return E;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&&(E=L),L||!U&&E},w=function(I,D){if(O(I))return I.clone();var k=typeof D=="object"?D:{};return k.date=I,k.args=arguments,new M(k)},T=_;T.l=V,T.i=O,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var M=function(){function I(k){this.$L=V(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(k){this.$d=function(U){var 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,C=(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,C)):new Date(q[1],$,q[3]||1,q[4]||0,q[5]||0,q[6]||0,C)}}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 Lt=T.w(L.$u?Date.UTC(L.$y,ft,Gt):new Date(L.$y,ft,Gt),L);return z?Lt:Lt.endOf(c)},C=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,_t=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 l:var Wt=this.$locale().weekStart||0,Ce=(N<Wt?N+7:N)-Wt;return $(z?_t-Ce:_t+(6-Ce),B);case c:case d:return C(ae+"Hours",0);case u:return C(ae+"Minutes",1);case a:return C(ae+"Seconds",2);case o:return C(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[u]=q+"Hours",L[a]=q+"Minutes",L[o]=q+"Seconds",L[s]=q+"Milliseconds",L)[z],C=z===c?this.$D+(U-this.$W):U;if(z===h||z===p){var N=this.clone().set(d,1);N.$d[$](C),N.init(),this.$d=N.set(d,Math.min(this.$D,N.daysInMonth())).$d}else $&&this.$d[$](C);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 _t=w(z);return T.w(_t.date(_t.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===l)return $(7);var C=(L={},L[a]=n,L[u]=i,L[o]=r,L)[q]||1,N=this.$d.getTime()+k*C;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,C=this.$m,N=this.$M,B=L.weekdays,_t=L.months,ae=L.meridiem,Wt=function(ft,Lt,ke,pr){return ft&&(ft[Lt]||ft(U,z))||ke[Lt].slice(0,pr)},Ce=function(ft){return T.s($%12||12,ft,"0")},Gt=ae||function(ft,Lt,ke){var pr=ft<12?"AM":"PM";return ke?pr.toLowerCase():pr};return z.replace(S,function(ft,Lt){return Lt||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,_t,3);case"MMMM":return Wt(_t,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 Ce(1);case"hh":return Ce(2);case"a":return Gt($,C,!0);case"A":return Gt($,C,!1);case"m":return String(C);case"mm":return T.s(C,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),C=w(k),N=(C.utcOffset()-this.utcOffset())*n,B=this-C,_t=function(){return T.m(q,C)};switch($){case p:z=_t()/12;break;case h:z=_t();break;case f:z=_t()/3;break;case l:z=(B-N)/6048e5;break;case c:z=(B-N)/864e5;break;case u: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}(),P=M.prototype;return w.prototype=P,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",c],["$M",h],["$y",p],["$D",d]].forEach(function(I){P[I[1]]=function(D){return this.$g(D,I[0],I[1])}}),w.extend=function(I,D){return I.$i||(I(D,M,w),I.$i=!0),w},w.locale=V,w.isDayjs=O,w.unix=function(I){return w(1e3*I)},w.en=g[E],w.Ls=g,w.p={},w})})(mc);var gc=mc.exports;const Ni=De(gc);var fv={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 u=100*o+a;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(fv),Ni.locale("zh-cn");function pv(e,t="YYYY-MM-DD HH:mm:ss"){return Ni(e).format(t)}const vc=e=>Object.prototype.toString.call(e),dv=e=>vc(e).slice(8,-1),mv=e=>typeof e<"u",gv=()=>Date.now(),yc=()=>+Date.now(),vv=(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 yv(e=[],t="key",r="value"){const n={};for(const i of e)n[i[t]]=i[r];return n}function bv(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 _v(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function jr(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 wv(e=[],t){const r=Sc(e,t);return e.length?r/e.length:0}function Ev(e,t=","){return e?e.split(t):[]}function Sv(e,t=","){return e?e.join(t):""}function xv(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(u,c){if(!s[u]){s[u]={};for(var l=0;l<u.length;l++)s[u][u.charAt(l)]=l}return s[u][c]}var a={compressToBase64:function(u){if(u==null)return"";var c=a._compress(u,6,function(l){return n.charAt(l)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:a._decompress(u.length,32,function(c){return o(n,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":a._compress(u,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:a._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=a.compress(u),l=new Uint8Array(c.length*2),h=0,f=c.length;h<f;h++){var p=c.charCodeAt(h);l[h*2]=p>>>8,l[h*2+1]=p%256}return l},decompressFromUint8Array:function(u){if(u==null)return a.decompress(u);for(var c=new Array(u.length/2),l=0,h=c.length;l<h;l++)c[l]=u[l*2]*256+u[l*2+1];var f=[];return c.forEach(function(p){f.push(r(p))}),a.decompress(f.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":a._compress(u,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),a._decompress(u.length,32,function(c){return o(i,u.charAt(c))}))},compress:function(u){return a._compress(u,16,function(c){return r(c)})},_compress:function(u,c,l){if(u==null)return"";var h,f,p={},d={},m="",b="",S="",v=2,y=3,_=2,E=[],g=0,x=0,O;for(O=0;O<u.length;O+=1)if(m=u.charAt(O),Object.prototype.hasOwnProperty.call(p,m)||(p[m]=y++,d[m]=!0),b=S+m,Object.prototype.hasOwnProperty.call(p,b))S=b;else{if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<_;h++)g=g<<1,x==c-1?(x=0,E.push(l(g)),g=0):x++;for(f=S.charCodeAt(0),h=0;h<8;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(l(g)),g=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)g=g<<1|f,x==c-1?(x=0,E.push(l(g)),g=0):x++,f=0;for(f=S.charCodeAt(0),h=0;h<16;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(l(g)),g=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[S]}else for(f=p[S],h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(l(g)),g=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,_),_++),p[b]=y++,S=String(m)}if(S!==""){if(Object.prototype.hasOwnProperty.call(d,S)){if(S.charCodeAt(0)<256){for(h=0;h<_;h++)g=g<<1,x==c-1?(x=0,E.push(l(g)),g=0):x++;for(f=S.charCodeAt(0),h=0;h<8;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(l(g)),g=0):x++,f=f>>1}else{for(f=1,h=0;h<_;h++)g=g<<1|f,x==c-1?(x=0,E.push(l(g)),g=0):x++,f=0;for(f=S.charCodeAt(0),h=0;h<16;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(l(g)),g=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,_),_++),delete d[S]}else for(f=p[S],h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(l(g)),g=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,_),_++)}for(f=2,h=0;h<_;h++)g=g<<1|f&1,x==c-1?(x=0,E.push(l(g)),g=0):x++,f=f>>1;for(;;)if(g=g<<1,x==c-1){E.push(l(g));break}else x++;return E.join("")},decompress:function(u){return u==null?"":u==""?null:a._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,l){var h=[],f=4,p=4,d=3,m="",b=[],S,v,y,_,E,g,x,O={val:l(0),position:c,index:1};for(S=0;S<3;S+=1)h[S]=S;for(y=0,E=Math.pow(2,2),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*g,g<<=1;switch(y){case 0:for(y=0,E=Math.pow(2,8),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*g,g<<=1;x=r(y);break;case 1:for(y=0,E=Math.pow(2,16),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(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>u)return"";for(y=0,E=Math.pow(2,d),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*g,g<<=1;switch(x=y){case 0:for(y=0,E=Math.pow(2,8),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(O.index++)),y|=(_>0?1:0)*g,g<<=1;h[p++]=r(y),x=p-1,f--;break;case 1:for(y=0,E=Math.pow(2,16),g=1;g!=E;)_=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=l(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 Tv(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var a=1,u="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){u+=e[s++]+e[s++];continue}if(e[s]===")"){if(a--,a===0){s++;break}}else if(e[s]==="("&&(a++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));u+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:u}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Bi(e,t){t===void 0&&(t={});for(var r=Tv(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(me(t.delimiter||"/#?"),"]+?"),o=[],a=0,u=0,c="",l=function(g){if(u<r.length&&r[u].type===g)return r[u++].value},h=function(g){var x=l(g);if(x!==void 0)return x;var O=r[u],V=O.type,w=O.index;throw new TypeError("Unexpected ".concat(V," at ").concat(w,", expected ").concat(g))},f=function(){for(var g="",x;x=l("CHAR")||l("ESCAPED_CHAR");)g+=x;return g};u<r.length;){var p=l("CHAR"),d=l("NAME"),m=l("PATTERN");if(d||m){var b=p||"";i.indexOf(b)===-1&&(c+=b,b=""),c&&(o.push(c),c=""),o.push({name:d||a++,prefix:b,suffix:"",pattern:m||s,modifier:l("MODIFIER")||""});continue}var S=p||l("ESCAPED_CHAR");if(S){c+=S;continue}c&&(o.push(c),c="");var v=l("OPEN");if(v){var b=f(),y=l("NAME")||"",_=l("PATTERN")||"",E=f();h("CLOSE"),o.push({name:y||(_?a++:""),pattern:y&&!_?s:_,prefix:b,suffix:E,modifier:l("MODIFIER")||""});continue}h("END")}return o}function Ac(e,t){return Ov(Bi(e,t),t)}function Ov(e,t){t===void 0&&(t={});var r=Ii(t),n=t.encode,i=n===void 0?function(u){return u}:n,s=t.validate,o=s===void 0?!0:s,a=e.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<e.length;l++){var h=e[l];if(typeof h=="string"){c+=h;continue}var f=u?u[h.name]:void 0,p=h.modifier==="?"||h.modifier==="*",d=h.modifier==="*"||h.modifier==="+";if(Array.isArray(f)){if(!d)throw new TypeError('Expected "'.concat(h.name,'" to not repeat, but got an array'));if(f.length===0){if(p)continue;throw new TypeError('Expected "'.concat(h.name,'" to not be empty'))}for(var m=0;m<f.length;m++){var b=i(f[m],h);if(o&&!a[l].test(b))throw new TypeError('Expected all "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(b,'"'));c+=h.prefix+b+h.suffix}continue}if(typeof f=="string"||typeof f=="number"){var b=i(String(f),h);if(o&&!a[l].test(b))throw new TypeError('Expected "'.concat(h.name,'" to match "').concat(h.pattern,'", but got "').concat(b,'"'));c+=h.prefix+b+h.suffix;continue}if(!p){var S=d?"an array":"a string";throw new TypeError('Expected "'.concat(h.name,'" to be ').concat(S))}}return c}}function $c(e,t){var r=[],n=sn(e,r,t);return Av(n,r,t)}function Av(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.exec(s);if(!o)return!1;for(var a=o[0],u=o.index,c=Object.create(null),l=function(f){if(o[f]===void 0)return"continue";var p=t[f-1];p.modifier==="*"||p.modifier==="+"?c[p.name]=o[f].split(p.prefix+p.suffix).map(function(d){return i(d,p)}):c[p.name]=i(o[f],p)},h=1;h<o.length;h++)l(h);return{path:a,index:u,params:c}}}function me(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Ii(e){return e&&e.sensitive?"":"i"}function $v(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 jv(e,t,r){var n=e.map(function(i){return sn(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Ii(r))}function Rv(e,t,r){return Dv(Bi(e,r),t,r)}function Dv(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,a=r.end,u=a===void 0?!0:a,c=r.encode,l=c===void 0?function(w){return w}:c,h=r.delimiter,f=h===void 0?"/#?":h,p=r.endsWith,d=p===void 0?"":p,m="[".concat(me(d),"]|$"),b="[".concat(me(f),"]"),S=o?"^":"",v=0,y=e;v<y.length;v++){var _=y[v];if(typeof _=="string")S+=me(l(_));else{var E=me(l(_.prefix)),g=me(l(_.suffix));if(_.pattern)if(t&&t.push(_),E||g)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";S+="(?:".concat(E,"((?:").concat(_.pattern,")(?:").concat(g).concat(E,"(?:").concat(_.pattern,"))*)").concat(g,")").concat(x)}else S+="(?:".concat(E,"(").concat(_.pattern,")").concat(g,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?S+="((?:".concat(_.pattern,")").concat(_.modifier,")"):S+="(".concat(_.pattern,")").concat(_.modifier);else S+="(?:".concat(E).concat(g,")").concat(_.modifier)}}if(u)i||(S+="".concat(b,"?")),S+=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||(S+="(?:".concat(b,"(?=").concat(m,"))?")),V||(S+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(S,Ii(r))}function sn(e,t,r){return e instanceof RegExp?$v(e,t):Array.isArray(e)?jv(e,t,r):Rv(e,t,r)}const Pv=Tc.compress,Cv=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.2
55
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
+ */const kv="0.9.2",Nv="BuiltIn",Mi="VueMaterial",Fi="VueRouterMaterial",Bv=[Mi,Fi],Iv={vue:"Vue","vue-router":"VueRouter"},jc={[Mi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Fi]:["RouterView","RouterLink"]},Mv=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let Fv=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}},Rr=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),{})}},Dr=class Pc{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 Pc(i),r),{})}},Le=class Cc{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 Cc(r))}static toDsl(t=[]){return t.map(r=>{const{name:n,arg:i,modifiers:s,value:o,iterator:a,id:u}=r;return{id:u,name:n,arg:i,modifiers:s,value:o,iterator:a}})}};const nt="EVENT_NODE_CHANGE";var Ft;let Hr=(Ft=class{constructor(t,r=null){j(this,"__VTJ_NODE__",!0);j(this,"locked",!1);j(this,"id");j(this,"name");j(this,"from");j(this,"invisible",!1);j(this,"children","");j(this,"slot");j(this,"props",{});j(this,"events",{});j(this,"directives",[]);j(this,"disposed",!1);this.parent=r;const{id:n=mt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Ft.nodes[this.id]=this}update(t,r=!1){const{invisible:n=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:u={},directives:c=[]}=t;this.invisible=n,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=Rr.parse(a),this.events=Dr.parse(u),this.directives=Le.parse(c),r||F.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Ft(n,this)):this.children=t,r||F.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||F.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new Rr(t,r,n),i||F.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||F.emit(nt,this)}getPropValue(t){const r=this.props[t];if(r)return r.getValue()}setEvent(t,r=!1){const n=this.events[t.name];n?n.update(t):this.events[t.name]=new Dr(t),r||F.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||F.emit(nt,this)}setDirective(t,r=!1){const n=t instanceof Le?t:new Le(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,n):this.directives.push(n),r||F.emit(nt,this)}removeDirective(t,r=!1){const n=this.directives.findIndex(i=>i===t||i.id===t.id);n>=0&&this.directives.splice(n,1),r||F.emit(nt,this)}removeChild(t,r=!1){const{children:n,disposed:i}=this;if(i||!Array.isArray(n))return;const s=n.findIndex(o=>o===t);t.parent=null,n.splice(s,1),r||F.emit(nt,this)}appendChild(t,r=!1){const{children:n,disposed:i}=this;i||(t.parent=this,Array.isArray(n)?n.push(t):this.children=[t],r||F.emit(nt,this))}insertAfter(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i+1,0,t),r||F.emit(nt,this.parent)}}insertBefore(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i,0,t),r||F.emit(nt,this.parent)}}movePrev(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>0&&(n.splice(i,1),n.splice(i-1,0,this),t||F.emit(nt,r))}}moveNext(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,this),t||F.emit(nt,r))}}toDsl(){const{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:a,props:u,directives:c,events:l}=this,h=Array.isArray(a)?a.map(f=>f.toDsl()):a;return{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:h,props:Rr.toDsl(u),directives:Le.toDsl(c),events:Dr.toDsl(l)}}dispose(t=!1){const{children:r,disposed:n}=this;n||(Array.isArray(r)&&r.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,t):t||F.emit(nt,this),this.parent=null,this.disposed=!0,delete Ft.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||F.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||F.emit(nt,this)}setVisible(t,r=!1){if(this.invisible=!t,Array.isArray(this.children))for(const n of this.children)n.setVisible(t,!0);r||F.emit(nt,this)}isChild(t){let r=!1;if(Array.isArray(this.children)){for(const n of this.children)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break}return r}},j(Ft,"nodes",{}),Ft);const G="EVENT_BLOCK_CHANGE",Je=class Je{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 Je.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Hr(i))),r||F.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return pt(K({},Je.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||F.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||F.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||F.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||F.emit(G,this)}setCss(t,r=!1){this.css=t,r||F.emit(G,this)}setWatch(t,r=!1){t.id=t.id||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||F.emit(G,this)}removeWatch(t,r=!1){const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1&&(this.watch.splice(n,1),r||F.emit(G,this))}setProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1?this.props.splice(n,1,t):this.props.push(t),r||F.emit(G,this)}removeProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1&&(this.props.splice(n,1),r||F.emit(G,this))}setEmit(t,r=!1){const n=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||F.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||F.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||F.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||F.emit(G,this))}setInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1?this.inject.splice(n,1,t):this.inject.push(t),r||F.emit(G,this)}removeInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1&&(this.inject.splice(n,1),r||F.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||F.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||F.emit(G,this)}insertAfter(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i+1,0,t),n||F.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||F.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||F.emit(G,this)}addNode(t,r,n="inner",i=!1){r?["left","top"].includes(n)?r.parent?r.insertAfter(t,i):this.insertBefore(t,r,i):["right","bottom"].includes(n)?r.parent?r.insertAfter(t,i):this.insertAfter(t,r,i):r.appendChild(t,i):this.appendNode(t,i)}__removeNode(t,r=!1){const n=this.nodes.findIndex(i=>i.id===t.id);n>-1&&(this.nodes.splice(n,1),r||F.emit(G,this))}removeNode(t,r=!1){t.parent?t.dispose(r):(t.dispose(!0),this.__removeNode(t,r))}move(t,r,n="inner",i=!1){t.parent?t.parent.removeChild(t,!0):this.__removeNode(t,!0),this.addNode(t,r,n,i)}movePrev(t,r=!1){if(t.parent)t.movePrev(r);else{const n=this.nodes,i=n.indexOf(t);i>0&&(n.splice(i,1),n.splice(i-1,0,t),r||F.emit(G,this))}}moveNext(t,r=!1){if(t.parent)t.moveNext(r);else{const n=this.nodes,i=n.indexOf(t);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,t),r||F.emit(G,this))}}cloneNode(t,r=!1){const n=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||F.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||F.emit(G,this)}isChild(t){let r=!1;for(const n of this.nodes)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break;return r}};j(Je,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]);let Mt=Je;const it="EVENT_PROJECT_CHANGE",ti="EVENT_PROJECT_ACTIVED",ei="EVENT_PROJECT_DEPS_CHANGE",Ve="EVENT_PROJECT_PAGES_CHANGE",ge="EVENT_PROJECT_BLOCKS_CHANGE",ri="EVENT_PROJECT_APIS_CHANGE",ni="EVENT_PROJECT_META_CHANGE",kc="EVENT_PROJECT_PUBLISH",Nc="EVENT_PROJECT_FILE_PUBLISH",Bc="EVENT_PROJECT_GEN_SOURCE";var Kt;let Xe=(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||F.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const r of t)delete r.dsl,r.children&&r.children.length&&this.cleanPagesDsl(r.children)}toDsl(t){const{id:r}=this,n=Kt.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>Qe(pt(K({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>Qe(pt(K({},i),{dsl:void 0})))),K({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||F.emit(ti,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||F.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};F.emit(ei,o),F.emit(it,o)}}removeDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(s=>s.package===t.package);if(i>-1&&n.splice(i,1),!r){const s={model:this,type:"delete",data:t};F.emit(ei,s),F.emit(it,s)}}getPage(t){const r=(n,i=[])=>{for(const s of i){if(s.id===n)return s;if(s.children&&s.children.length){const o=r(n,s.children);if(o)return o}}};return r(t,this.pages)}getPages(){const t=(r=[])=>{let n=[];for(const i of r)i.dir?i.children&&i.children.length&&(n=n.concat(t(i.children))):n.push(i);return n};return t(this.pages)}createPage(t,r,n=!1){return 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 Mt({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};F.emit(Ve,i),F.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};F.emit(Ve,i),F.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=mt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new Mt({id:i,name:s}).toDsl(),u=$t({},t,{id:i,name:s,title:o,dsl:a}),c=r?((h=this.getPage(r))==null?void 0:h.children)||[]:this.pages,l=c.findIndex(f=>f.id===t.id);if(c.splice(l+1,0,u),!n){const f={model:this,type:"clone",data:{source:t,target:u}};F.emit(Ve,f),F.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 Mt({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 u={model:this,type:"create",data:a};F.emit(ge,u),F.emit(it,u)}})}removePage(t,r=!1){var s;const n=this.getPage(t),i=(o,a)=>{const u=a.findIndex(c=>c.id===o);if(u>=0){a.splice(u,1);return}for(const c of a)c.children&&c.children.length&&i(o,c.children)};if(i(t,this.pages),t===this.homepage&&(this.homepage=""),((s=this.currentFile)==null?void 0:s.id)===t&&this.deactivate(r),!r){const o={model:this,type:"delete",data:n};F.emit(Ve,o),F.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 Mt({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};F.emit(ge,o),F.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};F.emit(ge,i),F.emit(it,i)}}cloneBlock(t,r=!1){const n=mt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new Mt({id:n,name:i}).toDsl(),a=$t({},t,{id:n,name:i,title:s,dsl:o}),u=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(u+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};F.emit(ge,c),F.emit(it,c)}}removeBlock(t,r=!1){var o;const n=this.getBlock(t),i=this.blocks,s=i.findIndex(a=>a.id===t);if(s>-1?(i.splice(s,1),((o=this.currentFile)==null?void 0:o.id)===t&&this.deactivate(r)):console.warn(`not found PageFile for id: ${t} `),!r){const a={model:this,type:"delete",data:n};F.emit(ge,a),F.emit(it,a)}}existBlockName(t,r=[]){return this.blocks.some(n=>n.name===t&&!r.includes(n.id))}existPageName(t,r=[]){return this.getPages().some(n=>n.name===t&&!r.includes(n.id))}setApi(t,r=!1){const n=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=mt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};F.emit(ri,s),F.emit(it,s)}}removeApi(t,r=!1){const n=this.apis.findIndex(i=>i.name===t||i.id===t);if(n>-1?this.apis.splice(n,1):console.warn(`not found Api for name: ${t} `),!r){const i={model:this,type:"delete",data:t};F.emit(ri,i),F.emit(it,i)}}existApiName(t,r=[]){return this.apis.some(n=>n.name===t&&!r.includes(n.id))}setMeta(t,r=!1){const n=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=mt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};F.emit(ni,s),F.emit(it,s)}}removeMeta(t,r=!1){const n=this.meta.findIndex(i=>i.code===t||i.id===t);if(n>-1?this.meta.splice(n,1):console.warn(`not found meta for name: ${name} `),!r){const i={model:this,type:"delete",data:t};F.emit(ni,i),F.emit(it,i)}}existMetaCode(t,r=[]){return this.meta.some(n=>n.code===t&&!r.includes(n.id))}setHomepage(t,r=!1){if(this.homepage=t,!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}publish(t){const r={model:this,type:"publish",data:t||this};t?F.emit(Nc,r):F.emit(kc,r)}genSource(){const t={model:this,type:"gen",data:null};F.emit(Bc,t)}},j(Kt,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]),Kt);const He="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:Qe(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||F.emit(He,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||F.emit(He,{model:this,type:"create",data:i})}remove(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>-1?(this.items.splice(n,1),n===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${t} `),r||F.emit(He,{model:this,type:"delete",data:[t]})}forward(t=!1){const{index:r,items:n}=this;if(r<0)return;--this.index;const i=n[this.index];i&&!t&&F.emit(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&&F.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||F.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||F.emit(He,{model:this,type:"clear",data:r})}};const F=Oc();function Lv(e){return e instanceof Mt}function Vv(e){return e instanceof Hr}function Hv(e){return!!e.__VTJ_BLOCK__}function Vi(e){const t=Qe(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Vi(r))),t}function Uv(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 Cw=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:jc,BUILT_IN_LIBRARAY_MAP:Iv,BUILT_IN_MATERIALS:Bv,BUILT_IN_NAME:Nv,BUILT_IN_TAGS:Mv,BUILT_IN_VUE:Mi,BUILT_IN_VUE_ROUTER:Fi,Base:Rc,BlockModel:Mt,DirectiveModel:Le,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:He,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:Bc,EVENT_PROJECT_META_CHANGE:ni,EVENT_PROJECT_PAGES_CHANGE:Ve,EVENT_PROJECT_PUBLISH:kc,EventModel:Dr,HistoryModel:Li,NodeModel:Hr,ProjectModel:Xe,PropModel:Rr,Service:Fv,VTJ_CORE_VERSION:kv,cloneDsl:Vi,createNodeFrom:Uv,emitter:F,isBlock:Lv,isBlockSchema:Hv,isNode:Vv},Symbol.toStringTag,{value:"Module"}));var zv=Object.defineProperty,qv=(e,t,r)=>t in e?zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wt=(e,t,r)=>qv(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.2
61
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
+ */const Kv="0.9.2";/**
63
+ * @vue/shared v3.5.13
64
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
65
+ * @license MIT
66
+ **//*! #__NO_SIDE_EFFECTS__ */function Jv(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Yv=Object.assign,Wv=Object.prototype.hasOwnProperty,ii=(e,t)=>Wv.call(e,t),_e=Array.isArray,Cr=e=>Ic(e)==="[object Map]",Gv=e=>typeof e=="string",cr=e=>typeof e=="symbol",on=e=>e!==null&&typeof e=="object",Zv=Object.prototype.toString,Ic=e=>Zv.call(e),Qv=e=>Ic(e).slice(8,-1),Hi=e=>Gv(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qe=(e,t)=>!Object.is(e,t);var Xv={ENV_TYPE:"local",NODE_ENV:"production"};let ty,Mc=0,Tn;function Ui(){Mc++}function zi(){if(--Mc>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 Fc=[];function ey(){Fc.push(Ur),Ur=!1}function ry(){const e=Fc.pop();Ur=e===void 0?!0:e}let Lc=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{Xv.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(""),tr=Symbol("");function gt(e,t,r){if(Ur&&ty){let n=si.get(e);n||si.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new Lc),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=u=>{u&&u.trigger()};if(Ui(),t==="clear")o.forEach(a);else{const u=_e(e),c=u&&Hi(r);if(u&&r==="length"){const l=Number(n);o.forEach((h,f)=>{(f==="length"||f===tr||!cr(f)&&f>=l)&&a(h)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(tr)),t){case"add":u?c&&a(o.get("length")):(a(o.get(te)),Cr(e)&&a(o.get(oi)));break;case"delete":u||(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",tr),Jt(e)?t:t.map(ct))}function qi(e){return gt(e=Z(e),"iterate",tr),e}const ny={__proto__:null,[Symbol.iterator](){return On(this,Symbol.iterator,ct)},concat(...e){return he(this).concat(...e.map(t=>_e(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 Be(this,"pop")},push(...e){return Be(this,"push",e)},reduce(e,...t){return So(this,"reduce",e,t)},reduceRight(e,...t){return So(this,"reduceRight",e,t)},shift(){return Be(this,"shift")},some(e,t){return Ct(this,"some",e,t,void 0,arguments)},splice(...e){return Be(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 Be(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 iy=Array.prototype;function Ct(e,t,r,n,i,s){const o=qi(e),a=o!==e&&!Jt(e),u=o[t];if(u!==iy[t]){const h=u.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 l=u.call(o,c,n);return a&&i?i(l):l}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,u){return r.call(this,o,a,u,e)}):s=function(o,a,u){return r.call(this,o,ct(a),u,e)}),i[t](s,...n)}function An(e,t,r){const n=Z(e);gt(n,"iterate",tr);const i=n[t](...r);return(i===-1||i===!1)&&by(r[0])?(r[0]=Z(r[0]),n[t](...r)):i}function Be(e,t,r=[]){ey(),Ui();const n=Z(e)[t].apply(e,r);return zi(),ry(),n}const sy=Jv("__proto__,__v_isRef,__isVue"),Vc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(cr));function oy(e){cr(e)||(e=String(e));const t=Z(this);return gt(t,"has",e),t.hasOwnProperty(e)}let Hc=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?gy:qc:s?my:zc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=_e(t);if(!i){let u;if(o&&(u=ny[r]))return u;if(r==="hasOwnProperty")return oy}const a=Reflect.get(t,r,we(t)?t:n);return(cr(r)?Vc.has(r):sy(r))||(i||gt(t,"get",r),s)?a:we(a)?o&&Hi(r)?a:a.value:on(a)?i?Jc(a):Kc(a):a}};class ay extends Hc{constructor(t=!1){super(!1,t)}set(t,r,n,i){let s=t[r];if(!this._isShallow){const u=Oe(s);if(!Jt(n)&&!Oe(n)&&(s=Z(s),n=Z(n)),!_e(t)&&we(s)&&!we(n))return u?!1:(s.value=n,!0)}const o=_e(t)&&Hi(r)?Number(r)<t.length:ii(t,r),a=Reflect.set(t,r,n,we(t)?t:i);return t===Z(i)&&(o?qe(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(!cr(r)||!Vc.has(r))&&gt(t,"has",r),n}ownKeys(t){return gt(t,"iterate",_e(t)?"length":te),Reflect.ownKeys(t)}}class cy extends Hc{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const uy=new ay,ly=new cy,Sr=e=>Reflect.getPrototypeOf(e);function hy(e,t,r){return function(...n){const i=this.__v_raw,s=Z(i),o=Cr(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...n),l=t?ai:ct;return!t&&gt(s,"iterate",u?oi:te),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[l(h[0]),l(h[1])]:l(h),done:f}},[Symbol.iterator](){return this}}}}function xr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fy(e,t){const r={get(n){const i=this.__v_raw,s=Z(i),o=Z(n);e||(qe(n,o)&&gt(s,"get",n),gt(s,"get",o));const{has:a}=Sr(s),u=e?ai:ct;if(a.call(s,n))return u(i.get(n));if(a.call(s,o))return u(i.get(o));i!==s&&i.get(n)},get size(){const n=this.__v_raw;return!e&&gt(Z(n),"iterate",te),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,s=Z(i),o=Z(n);return e||(qe(n,o)&&gt(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),u=e?ai:ct;return!e&&gt(a,"iterate",te),o.forEach((c,l)=>n.call(i,u(c),u(l),s))}};return Yv(r,e?{add:xr("add"),set:xr("set"),delete:xr("delete"),clear:xr("clear")}:{add(n){!Jt(n)&&!Oe(n)&&(n=Z(n));const i=Z(this);return Sr(i).has.call(i,n)||(i.add(n),zt(i,"add",n,n)),this},set(n,i){!Jt(i)&&!Oe(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=Sr(s);let u=o.call(s,n);u||(n=Z(n),u=o.call(s,n));const c=a.call(s,n);return s.set(n,i),u?qe(i,c)&&zt(s,"set",n,i):zt(s,"add",n,i),this},delete(n){const i=Z(this),{has:s,get:o}=Sr(i);let a=s.call(i,n);a||(n=Z(n),a=s.call(i,n)),o&&o.call(i,n);const u=i.delete(n);return a&&zt(i,"delete",n,void 0),u},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]=hy(n,e)}),r}function Uc(e,t){const r=fy(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 py={get:Uc(!1)},dy={get:Uc(!0)},zc=new WeakMap,my=new WeakMap,qc=new WeakMap,gy=new WeakMap;function vy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yy(e){return e.__v_skip||!Object.isExtensible(e)?0:vy(Qv(e))}function Kc(e){return Oe(e)?e:Yc(e,!1,uy,py,zc)}function Jc(e){return Yc(e,!0,ly,dy,qc)}function Yc(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=yy(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function Oe(e){return!!(e&&e.__v_isReadonly)}function Jt(e){return!!(e&&e.__v_isShallow)}function by(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)?Kc(e):e,ai=e=>on(e)?Jc(e):e;function we(e){return e?e.__v_isRef===!0:!1}function $n(e){return _y(e,!1)}function _y(e,t){return we(e)?e:new wy(e,t)}class wy{constructor(t,r){this.dep=new Lc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Z(t),this._value=r?t:ct(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Jt(t)||Oe(t);t=n?t:Z(t),qe(t,r)&&(this._rawValue=t,this._value=n?t:ct(t),this.dep.trigger())}}function Wc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ey}=Object.prototype,{getPrototypeOf:Ki}=Object,an=(e=>t=>{const r=Ey.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:Pe}=Array,er=cn("undefined");function Sy(e){return e!==null&&!er(e)&&e.constructor!==null&&!er(e.constructor)&&St(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gc=Pt("ArrayBuffer");function xy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gc(e.buffer),t}const Ty=cn("string"),St=cn("function"),Zc=cn("number"),un=e=>e!==null&&typeof e=="object",Oy=e=>e===!0||e===!1,kr=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)},Ay=Pt("Date"),$y=Pt("File"),jy=Pt("Blob"),Ry=Pt("FileList"),Dy=e=>un(e)&&St(e.pipe),Py=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||St(e.append)&&((t=an(e))==="formdata"||t==="object"&&St(e.toString)&&e.toString()==="[object FormData]"))},Cy=Pt("URLSearchParams"),ky=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ur(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Pe(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(n=0;n<o;n++)a=s[n],t.call(null,e[a],a,e)}}function Qc(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 Xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tu=e=>!er(e)&&e!==Xc;function ci(){const{caseless:e}=tu(this)&&this||{},t={},r=(n,i)=>{const s=e&&Qc(t,i)||i;kr(t[s])&&kr(n)?t[s]=ci(t[s],n):kr(n)?t[s]=ci({},n):Pe(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ur(arguments[n],r);return t}const Ny=(e,t,r,{allOwnKeys:n}={})=>(ur(t,(i,s)=>{r&&St(i)?e[s]=Wc(i,r):e[s]=i},{allOwnKeys:n}),e),By=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Iy=(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)},My=(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},Fy=(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},Ly=e=>{if(!e)return null;if(Pe(e))return e;let t=e.length;if(!Zc(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Vy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ki(Uint8Array)),Hy=(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])}},Uy=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},zy=Pt("HTMLFormElement"),qy=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),Ky=Pt("RegExp"),eu=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ur(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},Jy=e=>{eu(e,(t,r)=>{if(St(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(St(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+"'")})}})},Yy=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Pe(e)?n(e):n(String(e).split(t)),r},Wy=()=>{},Gy=(e,t)=>(e=+e,Number.isFinite(e)?e:t),jn="abcdefghijklmnopqrstuvwxyz",To="0123456789",ru={DIGIT:To,ALPHA:jn,ALPHA_DIGIT:jn+jn.toUpperCase()+To},Zy=(e=16,t=ru.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Qy(e){return!!(e&&St(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xy=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=Pe(n)?[]:{};return ur(n,(o,a)=>{const u=r(o,i+1);!er(u)&&(s[a]=u)}),t[i]=void 0,s}}return n};return r(e,0)},tb=Pt("AsyncFunction"),eb=e=>e&&(un(e)||St(e))&&St(e.then)&&St(e.catch),A={isArray:Pe,isArrayBuffer:Gc,isBuffer:Sy,isFormData:Py,isArrayBufferView:xy,isString:Ty,isNumber:Zc,isBoolean:Oy,isObject:un,isPlainObject:kr,isUndefined:er,isDate:Ay,isFile:$y,isBlob:jy,isRegExp:Ky,isFunction:St,isStream:Dy,isURLSearchParams:Cy,isTypedArray:Vy,isFileList:Ry,forEach:ur,merge:ci,extend:Ny,trim:ky,stripBOM:By,inherits:Iy,toFlatObject:My,kindOf:an,kindOfTest:Pt,endsWith:Fy,toArray:Ly,forEachEntry:Hy,matchAll:Uy,isHTMLForm:zy,hasOwnProperty:xo,hasOwnProp:xo,reduceDescriptors:eu,freezeMethods:Jy,toObjectSet:Yy,toCamelCase:qy,noop:Wy,toFiniteNumber:Gy,findKey:Qc,global:Xc,isContextDefined:tu,ALPHABET:ru,generateString:Zy,isSpecCompliantForm:Qy,toJSONObject:Xy,isAsyncFn:tb,isThenable:eb};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 nu=W.prototype,iu={};["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=>{iu[e]={value:e}});Object.defineProperties(W,iu);Object.defineProperty(nu,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,s)=>{const o=Object.create(nu);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 rb=null;function ui(e){return A.isPlainObject(e)||A.isArray(e)}function su(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=su(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function nb(e){return A.isArray(e)&&!e.some(ui)}const ib=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 u(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)&&nb(p)||(A.isFileList(p)||A.endsWith(d,"[]"))&&(b=A.toArray(p)))return d=su(d),b.forEach(function(S,v){!(A.isUndefined(S)||S===null)&&t.append(o===!0?Oo([d],v,s):o===null?d:d+"[]",u(S))}),!1}return ui(p)?!0:(t.append(Oo(m,d,s),u(p)),!1)}const l=[],h=Object.assign(ib,{defaultVisitor:c,convertValue:u,isVisitable:ui});function f(p,d){if(!A.isUndefined(p)){if(l.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));l.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])}),l.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 ou=Ji.prototype;ou.append=function(e,t){this._pairs.push([e,t])};ou.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 sb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function au(e,t,r){if(!t)return e;const n=r&&r.encode||sb,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 cu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ob=typeof URLSearchParams<"u"?URLSearchParams:Ji,ab=typeof FormData<"u"?FormData:null,cb=typeof Blob<"u"?Blob:null,ub={isBrowser:!0,classes:{URLSearchParams:ob,FormData:ab,Blob:cb},protocols:["http","https","file","blob","url","data"]},uu=typeof window<"u"&&typeof document<"u",lb=(e=>uu&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),hb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uu,hasStandardBrowserEnv:lb,hasStandardBrowserWebWorkerEnv:hb},Symbol.toStringTag,{value:"Module"})),jt=K(K({},fb),ub);function pb(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 db(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mb(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 lu(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=s>=r.length;return o=!o&&A.isArray(i)?i.length:o,u?(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]=mb(i[o])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(db(n),i,r,0)}),r}return null}function gb(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 lr={transitional:cu,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(lu(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 pb(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),gb(e)):e}],transformResponse:[function(e){const t=this.transitional||lr.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=>{lr.headers[e]={}});const vb=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"]),yb=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]&&vb[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},jo=Symbol("internals");function Ie(e){return e&&String(e).trim().toLowerCase()}function Nr(e){return e===!1||e==null?e:A.isArray(e)?e.map(Nr):String(e)}function bb(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 _b=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 wb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Eb(e,t){const r=A.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let xt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,u,c){const l=Ie(u);if(!l)throw new Error("header name must be a non-empty string");const h=A.findKey(i,l);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||u]=Nr(a))}const o=(a,u)=>A.forEach(a,(c,l)=>s(c,l,u));return A.isPlainObject(t)||t instanceof this.constructor?o(t,r):A.isString(t)&&(t=t.trim())&&!_b(t)?o(yb(t),r):t!=null&&s(r,t,n),this}get(t,r){if(t=Ie(t),t){const n=A.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return bb(i);if(A.isFunction(r))return r.call(this,i,n);if(A.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ie(t),t){const n=A.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Rn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=Ie(o),o){const a=A.findKey(n,o);a&&(!r||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]=Nr(i),delete r[s];return}const a=t?wb(s):String(s).trim();a!==s&&delete r[s],r[a]=Nr(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return A.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&A.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
68
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[jo]=this[jo]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=Ie(s);r[o]||(Eb(n,s),r[o]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}};xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(xt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});A.freezeMethods(xt);function Dn(e,t){const r=this||lr,n=t||r,i=xt.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 hu(e){return!!(e&&e.__CANCEL__)}function hr(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(hr,W,{__CANCEL__:!0});function Sb(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 xb=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 Tb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ob(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fu(e,t){return e&&!Tb(t)?Ob(e,t):t}const Ab=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 $b(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jb(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=n[s];o||(o=u),r[i]=a,n[i]=u;let l=s,h=0;for(;l!==i;)h+=r[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function Ro(e,t){let r=0;const n=jb(50,250);return i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-r,u=n(a),c=s<=o;r=s;const l={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&c?(o-s)/u:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const Rb=typeof XMLHttpRequest<"u",Db=Rb&&function(e){return new Promise(function(t,r){let n=e.data;const i=xt.from(e.headers).normalize();let{responseType:s,withXSRFToken:o}=e,a;function u(){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 l=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=fu(e.baseURL,e.url);l.open(e.method.toUpperCase(),au(h,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const d=xt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};Sb(function(b){t(b),u()},function(b){r(b),u()},m),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(r(new W("Request aborted",W.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||cu;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new W(d,m.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,l)),l=null},jt.hasStandardBrowserEnv&&(o&&A.isFunction(o)&&(o=o(e)),o||o!==!1&&Ab(h))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&xb.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&A.forEach(i.toJSON(),function(d,m){l.setRequestHeader(m,d)}),A.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&s!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Ro(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ro(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=d=>{l&&(r(!d||d.type?new hr(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=$b(h);if(p&&jt.protocols.indexOf(p)===-1){r(new W("Unsupported protocol "+p+":",W.ERR_BAD_REQUEST,e));return}l.send(n||null)})},li={http:rb,xhr:Db};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}`,Pb=e=>A.isFunction(e)||e===null||e===!1,pu={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,!Pb(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,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
69
+ `+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 hr(null,e)}function Po(e){return Pn(e),e.headers=xt.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),pu.getAdapter(e.adapter||lr.adapter)(e).then(function(t){return Pn(e),t.data=Dn.call(e,e.transformResponse,t),t.headers=xt.from(t.headers),t},function(t){return hu(t)||(Pn(e),t&&t.response&&(t.response.data=Dn.call(e,e.transformResponse,t.response),t.response.headers=xt.from(t.response.headers))),Promise.reject(t)})}const Co=e=>e instanceof xt?K({},e):e;function Ae(e,t){t=t||{};const r={};function n(c,l,h){return A.isPlainObject(c)&&A.isPlainObject(l)?A.merge.call({caseless:h},c,l):A.isPlainObject(l)?A.merge({},l):A.isArray(l)?l.slice():l}function i(c,l,h){if(A.isUndefined(l)){if(!A.isUndefined(c))return n(void 0,c,h)}else return n(c,l,h)}function s(c,l){if(!A.isUndefined(l))return n(void 0,l)}function o(c,l){if(A.isUndefined(l)){if(!A.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function a(c,l,h){if(h in t)return n(c,l);if(h in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,l)=>i(Co(c),Co(l),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(c){const l=u[c]||i,h=l(e[c],t[c],c);A.isUndefined(h)&&l!==a||(r[c]=h)}),r}const du="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 ko={};Yi.transitional=function(e,t,r){function n(i,s){return"[Axios v"+du+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new W(n(s," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!ko[s]&&(ko[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};function Cb(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],u=a===void 0||o(a,s,e);if(u!==!0)throw new W("option "+s+" must be "+u,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const hi={assertOptions:Cb,validators:Yi},Vt=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=Ae(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&hi.assertOptions(n,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),i!=null&&(A.isFunction(i)?r.paramsSerializer={serialize:i}:hi.assertOptions(i,{encode:Vt.function,serialize:Vt.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=xt.concat(o,s);const a=[];let u=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(u=u&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let l,h=0,f;if(!u){const d=[Po.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,c),f=d.length,l=Promise.resolve(r);h<f;)l=l.then(d[h++],d[h++]);return l}f=a.length;let p=r;for(h=0;h<f;){const d=a[h++],m=a[h++];try{p=d(p)}catch(b){m.call(this,b);break}}try{l=Po.call(this,p)}catch(d){return Promise.reject(d)}for(h=0,f=c.length;h<f;)l=l.then(c[h++],c[h++]);return l}getUri(t){t=Ae(this.defaults,t);const r=fu(t.baseURL,t.url);return au(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){ee.prototype[e]=function(t,r){return this.request(Ae(r||{},{method:e,url:t,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Ae(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ee.prototype[e]=t(),ee.prototype[e+"Form"]=t(!0)});class 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 hr(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 kb(e){return function(t){return e.apply(null,t)}}function Nb(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 mu(e){const t=new ee(e),r=Wc(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 mu(Ae(e,n))},r}const et=mu(lr);et.Axios=ee;et.CanceledError=hr;et.CancelToken=Wi;et.isCancel=hu;et.VERSION=du;et.toFormData=ln;et.AxiosError=W;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=kb;et.isAxiosError=Nb;et.mergeConfig=Ae;et.AxiosHeaders=xt;et.formToJSON=e=>lu(A.isHTMLForm(e)?new FormData(e):e);et.getAdapter=pu.getAdapter;et.HttpStatusCode=fi;et.default=et;const Bb={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Ib=["put","post","patch"],pi="Local-Request-Id",Mb=100,Fb=300;class Gi{constructor(t={}){wt(this,"axios"),wt(this,"settings"),wt(this,"records",{}),wt(this,"isLoading",!1),wt(this,"stopSkipWarn"),wt(this,"showLoading"),wt(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=jr(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),Mb),this.showError=Ya(this._showError.bind(this),Fb,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=$t(this.settings,t.settings||{});const r=jr(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":Bb[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:u="skipWarn"}=a||{};let{data:c,params:l={},method:h="get"}=r;const f=i?{[u]:!0}:{};return Ib.includes(h.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(n)?this.toFormData(c,o):c,l=K({},s)):o==="form"?l=K(K(K({},c||{}),s),f):(c&&(o!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,o)),l=K(K({},s),f)),{data:c,params:l}}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=jr(t,["settings","query"]),o=bc(!1),a=et.CancelToken.source();this.records[o]={settings:n,config:s,source:a};const u=this.createUrl(s),c=this.createHeaders(o,n,s),{data:l,params:h}=this.createSendData(n,s,c,r,i);return this.showLoading(n),new Promise((f,p)=>{this.axios(pt(K({cancelToken:a.token},s),{url:u,headers:c,data:l,params:h})).then(d=>{var m;return this.isSkipWarnResponse(d)?f(d.promise):this.validResponse(n,d)?f(n.originResponse?d:(m=d.data)==null?void 0:m.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(t,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const a=(o.config.headers||{})[pi],u=this.records[a];if(!u)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===r){i&&i(o);const l=new Promise(n).then(()=>this.send(pt(K({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),o.promise=l}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 gu=Zi({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function vu(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>gu.send($t({},t,n||{},{data:r}))}function Lb(e){const t={};for(const[r,n]of Object.entries(e))t[r]=vu(n);return t}function Vb(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 $e=typeof window<"u",Hb=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function yu(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function Ub(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 zb(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const qb=e=>$e?window.requestAnimationFrame(e):setTimeout(e,16),Kb=e=>$e?window.cancelAnimationFrame(e):clearTimeout(e);class Qi{constructor(t={}){wt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),wt(this,"caches",{}),wt(this,"types"),this.types={local:$e?window.localStorage:this.caches,session:$e?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=K(K({},this.options),n),a=Date.now(),u=o+t,c=this.types[i]||this.caches,l={value:r,timestamp:a,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=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:u,timestamp:c,expired:l}=a;return l>0&&c+l<Date.now()?(this.remove(t,r),null):u}remove(t,r={}){const{type:n,prefix:i}=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 Jb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(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)})(Jb,function(r,n){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch(l){window[c]=void 0}}function a(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,f=l.timeout||i.timeout,p=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var S=l.jsonpCallbackFunction||s(),v=p+"_"+S;window[S]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(v),o(S)},h+=h.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+h+p+"="+S),l.charset&&y.setAttribute("charset",l.charset),l.nonce&&y.setAttribute("nonce",l.nonce),l.referrerPolicy&&y.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&y.setAttribute("crossorigin","true"),y.id=v,document.getElementsByTagName("head")[0].appendChild(y),d=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(S),a(v),window[S]=function(){o(S)}},f),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(S),a(v),d&&clearTimeout(d)}})}n.exports=u})})(di,di.exports);var Yb=di.exports;const Wb=bu(Yb);function Gb(e){if($e){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Zb(e=""){const t=e.match(ki);return t?t[0]:""}function _u(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 wu(e,t){t=typeof t=="string"?mi(t):t;const r=e.split("?")[0],n=mi(e),i=Object.assign({},n,t),s=_u(i);return s?[r,s].join("?"):e}const re=Object.freeze(Object.defineProperty({__proto__:null,append:wu,getCurrentHost:Gb,getHost:Zb,parse:mi,stringify:_u},Symbol.toStringTag,{value:"Module"}));function Eu(r){return H(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Ja(e)(n||{}));const i=wu(e,n);return yield(yield Wb(i,t)).json()})}var Qb=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&&Xb(i,t.attrs),t.text&&(i.text=""+t.text);var s="onload"in i?No:t_;s(i,r),i.onload||No(i,r),n.appendChild(i)};function Xb(e,t){for(var r in t)e.setAttribute(r,t[r])}function No(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 t_(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const e_=bu(Qb);function gi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;e_(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},r_=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,n_(i,r))}};function n_(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function i_(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 s_={level:"warn",bizName:"*"};let Su=class{constructor(t){wt(this,"config"),wt(this,"options"),this.options=K(K({},s_),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=i_(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return r_(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 xu(e){return new Su(e)}const rr=xu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Tr(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 o_={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=Tr({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,o[u]!==!0&&(a+="="+o[u].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var u=s[a].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(o[l]=e.read(c,l),i===l)break}catch(h){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Tr({},s,{expires:-1}))},withAttributes:function(i){return vi(this.converter,Tr({},this.attributes,i))},withConverter:function(i){return vi(Tr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Xi=vi(o_,{path:"/"});function a_(e,t,r){Xi.set(e,t,r)}function c_(e){return Xi.get(e)}function u_(e,t){Xi.remove(e,t)}const Ir=Object.freeze(Object.defineProperty({__proto__:null,get:c_,remove:u_,set:a_},Symbol.toStringTag,{value:"Module"}));function l_(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 h_(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 f_(e,t=""){const r=JSON.stringify(e);ts(r,t,"application/json")}const Fw=Object.freeze(Object.defineProperty({__proto__:null,AES:nv,LOCAL_REQUEST_ID:pi,Logger:Su,MD5:X0,RSA:rv,Request:Gi,Storage:Qi,VTJ_UTILS_VERSION:Kv,arrayToKv:yv,arrayToMap:_c,arrayToTree:xv,avg:wv,axios:et,base64:tv,blobToFile:zb,cAF:Kb,camelCase:kt,cloneDeep:Qe,compress:Pv,cookie:Ir,createApi:vu,createApis:Lb,createRequest:Zi,dataURLtoBlob:Ub,dateFormat:pv,dayjs:Ni,debounce:Pi,decompress:Cv,dedupArray:wc,delay:be,downloadBlob:ts,downloadJson:f_,downloadRemoteFile:h_,downloadUrl:l_,fileToBase64:Hb,flatChildren:xc,formDataToJson:yu,get:ia,getLogger:xu,groupBy:Ua,isArray:ht,isArrayBuffer:B1,isBoolean:M1,isBuffer:xe,isCarNo:cv,isClient:$e,isDate:H1,isDef:mv,isEmail:sv,isEqual:U1,isFunction:ne,isIdCardNo:ov,isMobilePhone:av,isNaN:q1,isNull:K1,isNumber:za,isObject:ot,isPlainObject:ji,isString:vt,isSymbol:ir,isUndefined:J1,isUrl:fc,jsonp:Eu,kebabCase:W1,kvToArray:bv,loadScript:gi,logger:rr,lowerFirst:Z1,mapToObject:nn,merge:$t,mitt:Oc,noop:dh,now:gv,numberFormat:lv,numeral:dc,omit:jr,pathToRegexp:sn,pathToRegexpCompile:Ac,pathToRegexpMatch:$c,pathToRegexpParse:Bi,pick:Ec,rAF:qb,rCar:hc,rEmail:cc,rID:uc,rMobile:lc,rURL:ki,random:vv,request:gu,set:t0,snakeCase:r0,splitParser:Ev,splitStringify:Sv,storage:Br,sum:Sc,template:Ja,throttle:Ya,timestamp:yc,toArray:Zn,toFixed:hv,toRawType:dv,toTypeString:vc,trim:Qn,uid:mt,unAES:iv,unBase64:ev,unRSA:Gn,upperFirst:tn,upperFirstCamelCase:Jn,url:re,useApi:Vb,uuid:bc,zipObject:_v},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.2
76
+ * @license <a href="https://vtj.pro/license.html">MIT License</a>
77
+ */const Ee="0.9.2";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"],p_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],Tu=["vIf","vShow","vModel","vFor","vBind","vHtml"],Ou={String,Number,Boolean,Array,Object,Function,Date},Se="VtjPage",Ke="VtjHomepage",Au="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),$u="component,slot".split(",");function Ue(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 ju(e){return/\.json$/.test(e)}function d_(e){return e.map(t=>`<script src="${re.append(t,{v:Ee})}"><\/script>`).join("")}function m_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${re.append(t,{v:Ee})}" />`).join("")}function Ru(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Du(e,t,r=!1){const n=e.filter(f=>!!f.enabled),i=[],s=[],o=[],a=[],u={},c={},l=[],h={};return n.forEach(({urls:f,assetsUrl:p,library:d,assetsLibrary:m,localeLibrary:b})=>{f==null||f.forEach(S=>{fn(S)&&i.push(Ru(S,r)),hn(S)&&s.push(S)}),d&&(a.push(d),u[d]=Ue(f||[],t),b&&(c[d]=b)),p&&o.push(p),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:Ue(i,t),css:Ue(s,t),materials:Ue(o,t),libraryExports:a,materialExports:wc(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function Pu(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(u=>u.id!==t);s.adoptedStyleSheets=[...a,i]}else{const i=e.document;let s=i.getElementById(t);s?s.innerHTML=r:(s=i.createElement("style"),s.id=t,s.innerHTML=r,i.head.appendChild(s))}}function Cu(e,t){return H(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&rs(window,e,r)})}function ku(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 Nu(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((u,c)=>{for(const l of e){const h=s.createElement("script");h.src=l,h.onload=()=>{a=r[t],a?u(a.default||a):c(null)},h.onerror=f=>{c(f)},o.appendChild(h)}})})}function Bu(e){return ne(e)||ne(e==null?void 0:e.install)}function Iu(e){return $u.includes(e)}function Mu(e){return Au.includes(e)}function je(e,t,r=!1,n=!1){var i;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let o=(e.value||"").trim();o=o.replace(/this(\W|$)/g,(u,c)=>`__self${c}`),o=s.join(`
78
+ `)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(rr.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=je(e,t,r,n);if(typeof i!="function"&&(rr.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 yt(e){return e&&e.type==="JSExpression"}function fr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Fu(e){return yt(e)||fr(e)}function g_(e){return Fu(e)?e.value:JSON.stringify(e)}let fe=null;const v_=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=wl.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{fe&&(fe.close(),fe=null)}}});let ve;function Lu(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?je(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 Vu(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 Hu(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Lu(i,r);for(const i of t)n[i.id]=Vu(i,r);return n}function Uu(){return H(this,arguments,function*(e=[]){ve=yield Me(()=>import("./mockjs-CMngCJLd.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=>zu(ve,t)))})}function zu(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=je(n,{},!0);e.mock(i,a=>{var h;const u=re.parse(a.url)||{},c=a.body instanceof FormData?yu(a.body):a.body,l=(h=s(a.url))==null?void 0:h.params;return Object.assign(a,{data:c,params:u,query:l}),e.mock(o(a))})}}function ns(){ve&&(ve._mocked={})}const y_={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 qu{constructor(t){j(this,"options");j(this,"data",null);j(this,"mode",lt.Raw);this.options=Object.assign({},y_,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===Se){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 Ku(){return Mo(is,null)}class Ju{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 je({type:i,value:s},this)}else return je(t,this)}__ref(t=null,r){if(this.__mode!==lt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>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 u=new Set([].concat(a,n));this.$refs[r]=Array.from(u)}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),u={$components:n,$libs:i,$apis:s},c=new Ju({mode:r,dsl:a.value,attrs:u}),l=t.defineComponent(K({name:a.value.name,props:K({},__((h=a.value.props)!=null?h:[],c)),setup(p){var y,_,E,g;c.$props=p,c.props=p,a.value.id&&rs(e.window||window,a.value.id,a.value.css||""),c.state=w_(t,(y=a.value.state)!=null?y:{},c);const d=E_(t,(_=a.value.computed)!=null?_:{},c),m=S_((E=a.value.methods)!=null?E:{},c),b=x_(t,a.value.inject,c),S=Yu(a.value.dataSources||{},c),v=K(K(K(K({},b),d),m),S);return c.setup(v,t),T_(t,(g=a.value.watch)!=null?g:[],c),{vtj:c}},emits:b_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?nr(p[0],c,t,o):p.map(d=>nr(d,c,t,o))}},O_((f=a.value.lifeCycles)!=null?f:{},c)));return{renderer:t.markRaw(l),context:c}}function b_(e=[]){return e.map(t=>vt(t)?t:t.name)}function __(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Ou[i]):void 0;return e.map(n=>vt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:yt(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 w_(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return yt(s)?s=r.__parseExpression(s):fr(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function E_(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function S_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function x_(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=yt(o)?r.__parseExpression(o)||s:o!=null?o:s,u=yt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,u),n},{})}function Yu(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n],s=t.$apis[i.ref],o=fr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;return r[n]=(...a)=>H(this,null,function*(){const u=yield s.apply(t,a);return o?o(u):u}),r},{})}function T_(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function O_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Cn=[];const Wu=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&&ku(o,t),yield Nu(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 nr(e,t,r=Kr,n=Wu){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:u,vShow:c,vModels:l,vBind:h,vHtml:f,others:p}=$_(o);if(a&&!j_(a,t))return null;const d=b=>{var O,V,w,T;const S=b.$components,v=(()=>{var P,I,D,k;if(e.name==="component")return R_(b,(P=e.props)==null?void 0:P.is);if(e.name==="slot")return e.name;const M=n(e.name,e.from,r);return vt(M)?Iu(M)||Mu(M)?M:(k=(D=S[M])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(M))!=null?k:M:M})(),y=D_(s,(O=e.props)!=null?O:{},b),_=P_(r,(V=e.events)!=null?V:{},b);if(e.name==="slot")return C_(r,e,y,b,n);h&&Object.assign(y,b.__parseExpression(h.value)),c&&(y.style=Object.assign((w=y.style)!=null?w:{},N_(c,b))),f&&Object.assign(y,B_(f,b)),l.forEach(M=>{Object.assign(y,I_(r,M,b))});const E=M_(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(v,K(K({},y),_),E);const x=i?A_(i,p,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return u?V_(u,d,t):d(t)}function A_(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function $_(e=[]){const t=e.find(u=>kt(u.name)==="vIf"),r=e.find(u=>kt(u.name)==="vFor"),n=e.find(u=>kt(u.name)==="vShow"),i=e.find(u=>kt(u.name)==="vBind"),s=e.find(u=>kt(u.name)==="vHtml"),o=e.filter(u=>kt(u.name)==="vModel"),a=e.filter(u=>!Tu.includes(kt(u.name)));return{vIf:t,vFor:r,vShow:n,vModels:o,vBind:i,others:a,vHtml:s}}function j_(e,t){return!!t.__parseExpression(e.value)}function R_(e,t){return t?yt(t)?e.__parseExpression(t):t:"div"}function D_(e,t,r){const n=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return yt(o)?o=r.__parseExpression(o):fr(o)&&(o=r.__parseFunction(o)),i[s]=o,i},{});return n.ref=r.__ref(e,n.ref),n}function P_(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const a=t[o],u=os(a.modifiers),c=u.find(f=>n.includes(f)),l="on"+tn(o)+(c&&i[c]||""),h=r.__parseFunction(a.handler);return h&&(s[l]=e.withModifiers(h,u)),s},{})}function os(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function C_(e,t,r,n,i){var u;const{children:s}=t,o=k_(t,n),a=(u=n.$slots)==null?void 0:u[o.name];return a?a(r):s?vt(s)?e.createTextVNode(s):yt(s)?e.createTextVNode(es(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>nr(c,n,e,i)):null:null}function k_(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:yt(n)?t.__parseExpression(n):n,params:[]}}function N_(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function B_(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function I_(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(yt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=yt(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 M_(e,t,r,n,i){if(!t)return null;if(vt(t))return{default:()=>t};if(yt(t))return{default:()=>es(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=F_(t),o=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(s).reduce((a,[u,{nodes:c,params:l}])=>(a[u]=h=>{const f=l.length?Ec(h!=null?h:{},l):o(h);return c.map(p=>nr(p,r.__clone(f),e,n))},a),{})}return null}function F_(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=L_(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 L_(e="default"){return vt(e)?{name:e,params:[]}:K({params:[]},e)}function V_(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((u,c)=>c+1)),Array.isArray(a)?a.map((u,c)=>t(r.__clone({[s]:u,[o]:c}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}function H_(e){return fl()?(pl(e),!0):!1}function as(e){return typeof e=="function"?e():In(e)}const Gu=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const U_=e=>e!=null,z_=()=>{};function q_(e){return Vo()}function K_(...e){if(e.length!==1)return cl(...e);const t=e[0];return typeof t=="function"?ul(ll(()=>({get:t,set:z_}))):Ye(t)}function J_(e,t){q_()&&hl(e,t)}const Y_=Gu?window:void 0,W_=Gu?window.document:void 0;function G_(e){var t;const r=as(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Z_(){const e=Ye(!1),t=Vo();return t&&dl(()=>{e.value=!0},t),e}function Q_(e){const t=Z_();return Lo(()=>(t.value,!!e()))}function X_(e,t,r={}){const f=r,{window:n=Y_}=f,i=mn(f,["window"]);let s;const o=Q_(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},u=Lo(()=>{const p=as(e),d=(Array.isArray(p)?p:[p]).map(G_).filter(U_);return new Set(d)}),c=Fo(()=>u.value,p=>{a(),o.value&&p.size&&(s=new MutationObserver(t),p.forEach(d=>s.observe(d,i)))},{immediate:!0,flush:"post"}),l=()=>s==null?void 0:s.takeRecords(),h=()=>{c(),a()};return H_(h),{isSupported:o,stop:h,takeRecords:l}}function tw(e=null,t={}){var r,n,i;const{document:s=W_,restoreOnUnmount:o=h=>h}=t,a=(r=s==null?void 0:s.title)!=null?r:"",u=K_((n=e!=null?e:s==null?void 0:s.title)!=null?n:null),c=e&&typeof e=="function";function l(h){if(!("titleTemplate"in t))return h;const f=t.titleTemplate||"%s";return typeof f=="function"?f(h):as(f).replace(/%s/g,h)}return Fo(u,(h,f)=>{h!==f&&s&&(s.title=l(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!c&&X_((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==u.value&&(u.value=l(s.title))},{childList:!0}),J_(()=>{if(o){const h=o(a,u.value||"");h!=null&&s&&(s.title=h)}}),u}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=Ye(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),tw(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?Nn(e,pt(K({},t),{key:r})):Nn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),ew={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},rw={"data-l-h6o7ki7":"",class:"vtj-startup"},nw={"data-l-h6o7ki7":"",class:"vtj-startup__name"},iw={"data-l-h6o7ki7":""},sw={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},ow={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},Zu=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(),ol("div",ew,[ce("div",rw,[ce("h1",nw,[ce("span",iw,gn(t.name),1)]),ce("div",sw,gn(t.tagline),1),ce("div",ow,[ce("button",{"data-l-h6o7ki7":"",onClick:r},gn(t.actionText),1)])])]))}}),aw=Jr({name:"VtjStartupContainer",render(){return Nn(Zu)}}),cs=Symbol("Provider");var Qu=(e=>(e.Production="production",e.Development="development",e))(Qu||{});class Xu extends Rc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:v_,jsonp:Eu});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:u={},globals:c={},modules:l={},router:h=null,materialPath:f="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=h,this.materialPath=f,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:h,request:m}),a&&i!==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=Hu(i,s,this.adapter),ns(),(a=this.project.config)!=null&&a.mock&&Uu(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:u}=this,{libraryExports:c,libraryMap:l,materials:h,materialExports:f,materialMapLibrary:p}=Du(n,a,u==="development");for(const d of c){const m=i[d],b=r[d];if(b)s[d]=b;else if(m)r[d]=s[d]=yield m();else{const S=l[d]||[];for(const v of S)hn(v)&&(yield Cu(d,re.append(v,{v:Ee}))),fn(v)&&(yield gi(re.append(v,{v:Ee})));s[d]=r[d]}}if(u==="development"){for(const m of h)yield gi(re.append(m,{v:Ee}));const d=this.materials||{};for(const m of f){const b=r[p[m]],S=jc[m];if(S)b&&S.forEach(v=>{o[v]=b[v]});else{const v=d[m]?(yield d[m]()).default:r[m];v&&b&&(v.components||[]).forEach(y=>{o[y.name]=Pu(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const{routeAppendTo:o,pageRouteName:a="page",routeMeta:u}=i,c=o?"":"/",l={path:`${c}${a}/:id`,name:Se,component:Io},h={path:c,name:Ke,component:n!=null&&n.homepage?Io:s.startupComponent||aw,meta:u};r.hasRoute(Se)&&r.removeRoute(Se),r.hasRoute(Ke)&&r.removeRoute(Ke),o?(r.addRoute(o,l),r.addRoute(o,h)):(r.addRoute(l),r.addRoute(h))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&Bu(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,u=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",c=`[ ${a} ] ${u} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),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 u=i(s,a.children);if(u)return u}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return 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,u=K({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=qr({getDsl:l=>H(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>H(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return zr(pt(K({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return H(this,null,function*(){var u;const i=this.getFile(r);if(!i)return rr.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s];if(o)return(u=yield o())==null?void 0:u.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(rr.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 cw(e){const t=new Xu(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||"未知错误"})}}}),uw=(e="/__vtj__/api/:type.json")=>(t,r)=>ls.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),lw=(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=uw(),this.uploader=lw()}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=>ju(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 hw extends pn{init(t){const r=new Xe(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 Xe(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 tl 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 Xe(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 Xe(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 kn=null;function fw(){return kn||(kn=new tl,kn)}class pw 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 el(e,t,r=[]){return r.map(n=>{const{id:i,title:s,icon:o,children:a,hidden:u}=n;return{id:i,title:s,icon:o,hidden:u,url:`${e}/${t}/${i}`,children:a&&a.length?el(e,t,a):void 0}})}function rl(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=rl(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function dw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=us(),s=Ho(),o=Ku(),a=Ye(!1),u=Ye(!1),c=i.project;al(()=>{const{name:f,params:p,meta:d}=s;if(f===Se){const m=i.getPage(p.id);a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else if(f===Ke){const m=i.getHomepage();a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else a.value=!d.mask,u.value=!!d.pure});const l=el(t,r,c==null?void 0:c.pages),h=c==null?void 0:c.config;return{disabled:a,logo:h==null?void 0:h.logo,themeSwitchable:h==null?void 0:h.themeSwitchable,title:(h==null?void 0:h.title)||(c==null?void 0:c.description)||(c==null?void 0:c.name)||"VTJ App",menus:n?l:rl(l,o),pure:u}}const Lw=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:is,Access:qu,BUILD_IN_TAGS:$u,BUILT_IN_DIRECTIVES:Tu,BaseService:pn,CONTEXT_HOST:yi,Context:Ju,ContextMode:lt,DATA_TYPES:Ou,HOMEPAGE_ROUTE_NAME:Ke,HTML_TAGS:Au,JSCodeToString:g_,LIFE_CYCLES_LIST:p_,LocalService:pw,MemoryService:tl,NodeEnv:Qu,PAGE_ROUTE_NAME:Se,Provider:Xu,Startup:Zu,StorageService:hw,VTJ_RENDERER_VERSION:Ee,adoptedStyleSheets:rs,createAssetScripts:d_,createAssetsCss:m_,createDataSources:Yu,createLoader:qr,createMemoryService:fw,createMetaApi:Vu,createProvider:cw,createRenderer:zr,createSchemaApi:Lu,createSchemaApis:Hu,defaultLoader:Wu,fillBasePath:Ue,getModifiers:os,getPlugin:ss,getRawComponent:Pu,isBuiltInTag:Iu,isCSSUrl:hn,isJSCode:Fu,isJSExpression:yt,isJSFunction:fr,isJSON:ju,isJSUrl:fn,isNativeTag:Mu,isVuePlugin:Bu,loadCss:Cu,loadCssUrl:ku,loadScriptUrl:Nu,mockApi:zu,mockApis:Uu,mockCleanup:ns,nodeRender:nr,parseDeps:Du,parseExpression:je,parseFunction:bi,providerKey:cs,removeProdFlag:Ru,toString:es,useAccess:Ku,useMask:dw,useProvider:us},Symbol.toStringTag,{value:"Module"})),mw=Jr({__name:"app",setup(e){return(t,r)=>{const n=ml("router-view");return Bn(),ms(In(Sl),{locale:In(El)},{default:gs(()=>[(Bn(),ms(gl,null,{default:gs(()=>[vl(n)]),_:1}))]),_:1},8,["locale"])}}}),gw=[{path:"/",name:"home",component:()=>Me(()=>import("./index-CbobV5nh.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:()=>Me(()=>import("./preview-WdJT79pk.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:()=>Me(()=>import("./page-DLaTT2eZ.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:()=>Me(()=>import("./auth-CAAHD2fo.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)}],vw=bl({history:_l(),routes:gw}),yw="RRO_IDE_ACCESS_STORAGE__",hs=yl(mw),bw=new qu({storageKey:yw});hs.use(bw);hs.use(vw);hs.mount("#app");export{Bc as $,yw as A,Nc as B,rr as C,cw as D,G as E,kc as F,nt as G,He as H,qu as I,ne as J,lv as K,ia as L,Mt as M,Ve as N,pw as O,Eu as P,Li as Q,t0 as R,W1 as S,Kb as T,fr as U,Pr as V,Uv as W,Jn as X,hv as Y,ot as Z,yt as _,Zn as a,g_ as a0,p_ as a1,je as a2,Ou as a3,Du as a4,m_ as a5,d_ as a6,Nv as a7,Pu as a8,Hu as a9,Uu as aa,bi as ab,Le as ac,Tu as ad,Pi as ae,Hr as af,Iv as ag,ns as ah,Ub as ai,Mi as aj,Fi as ak,Hb as al,dv as am,ji as an,Fw as ao,hn as ap,fn as aq,ku as ar,Nu as as,Cw as at,Lw as au,$t as b,wc as c,Qe as d,Br as e,qb as f,h_ as g,kt as h,Lv as i,fc as j,Ua as k,Rc as l,U1 as m,Xu as n,vt as o,Xe as p,F as q,be as r,it as s,mt as t,ge as u,l_ as v,ei as w,ti as x,lt as y,_c as z};