@vtj/pro 0.9.19 → 0.9.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BraPsV_B.js","./vue-router-CrZzyM_O.js","./vue-DEqBd9tH.js","./element-plus-C1NYT3Gu.js","./lodash-es-Cd_vyJR8.js","./@vueuse-54eSL_G4.js","./@element-plus-icons-vue-CClttscX.js","./shared-CMPiinVg.js","./dayjs-D_Mdy0hN.js","./element-plus-IIQy0ps0.css","./vxe-CzgOUQRv.js","./vxe-BAb1d5vW.css","./extension-D9o1Fgjv.js","./monaco-editor-BhWNbPWS.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-D2Pt4KSj.js","./mockjs-D_rM_kf7.js","./extension-zAMGctip.css","./utils-B9i9aHNx.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-BomYx_Vt.css","./preview-0B_funOd.js","./page-BvocjxGf.js","./auth-DeUnCFEC.js","./auth-rAe8S_7e.css"])))=>i.map(i=>d[i]);
2
- var Sl=Object.defineProperty,xl=Object.defineProperties;var Tl=Object.getOwnPropertyDescriptors;var yn=Object.getOwnPropertySymbols;var Es=Object.prototype.hasOwnProperty,Ss=Object.prototype.propertyIsEnumerable;var me=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ol=e=>{throw TypeError(e)};var xr=(e,t,n)=>t in e?Sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z=(e,t)=>{for(var n in t||(t={}))Es.call(t,n)&&xr(e,n,t[n]);if(yn)for(var n of yn(t))Ss.call(t,n)&&xr(e,n,t[n]);return e},st=(e,t)=>xl(e,Tl(t));var Tr=(e,t)=>{var n={};for(var r in e)Es.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yn)for(var r of yn(e))t.indexOf(r)<0&&Ss.call(e,r)&&(n[r]=e[r]);return n};var A=(e,t,n)=>xr(e,typeof t!="symbol"?t+"":t,n);var L=(e,t,n)=>new Promise((r,i)=>{var s=c=>{try{a(n.next(c))}catch(u){i(u)}},o=c=>{try{a(n.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,o);a((n=n.apply(e,t)).next())}),Gt=function(e,t){this[0]=e,this[1]=t},Or=(e,t,n)=>{var r=(o,a,c,u)=>{try{var l=n[o](a),f=(a=l.value)instanceof Gt,h=l.done;Promise.resolve(f?a[0]:a).then(d=>f?r(o==="return"?o:"next",a[1]?{done:d.done,value:d.value}:d,c,u):c({value:d,done:h})).catch(d=>r("throw",d,c,u))}catch(d){u(d)}},i=o=>s[o]=a=>new Promise((c,u)=>r(o,a,c,u)),s={};return n=n.apply(e,t),s[me("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},$r=e=>{var t=e[me("asyncIterator")],n=!1,r,i={};return t==null?(t=e[me("iterator")](),r=s=>i[s]=o=>t[s](o)):(t=t.call(e),r=s=>i[s]=o=>{if(n){if(n=!1,s==="throw")throw o;return o}return n=!0,{done:!1,value:new Gt(new Promise(a=>{var c=t[s](o);c instanceof Object||Ol("Object expected"),a(c)}),1)}}),i[me("iterator")]=()=>i,r("next"),"throw"in t?r("throw"):i.throw=s=>{throw s},"return"in t&&r("return"),i},xs=(e,t,n)=>(t=e[me("asyncIterator")])?t.call(e):(e=e[me("iterator")](),t={},n=(r,i)=>(i=e[r])&&(t[r]=s=>new Promise((o,a,c)=>(s=i.call(e,s),c=s.done,Promise.resolve(s.value).then(u=>o({value:u,done:c}),a)))),n("next"),n("return"),t);import{ax as Ts,ay as er,d as nr,e as Xe,ag as Wr,q as ea,f as na,o as Yr,c as $l,a as Zt,Q as Ar,w as Al,m as jl,r as Rl,j as Dl,Y as Cl,k as ra,g as Pl,b as kl,u as Gr,h as ia,i as Nl,ah as Bl,J as Os,K as $s,az as Il,S as Ml,au as Fl}from"./vue-DEqBd9tH.js";import{t as ae}from"./mockjs-D_rM_kf7.js";import{useRoute as sa,createRouter as Ll,createWebHashHistory as Vl}from"./vue-router-CrZzyM_O.js";import{z as Hl,E as Ul}from"./element-plus-C1NYT3Gu.js";import{_ as vn}from"./monaco-editor-BhWNbPWS.js";import"./dayjs-D_Mdy0hN.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.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"]'))r(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"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(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 r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var zl={ENV_TYPE:"live",NODE_ENV:"production"},ql=typeof global=="object"&&global&&global.Object===Object&&global;const oa=ql;var Kl=typeof self=="object"&&self&&self.Object===Object&&self,Jl=oa||Kl||Function("return this")();const At=Jl;var Wl=At.Symbol;const Ct=Wl;var aa=Object.prototype,Yl=aa.hasOwnProperty,Gl=aa.toString,Ve=Ct?Ct.toStringTag:void 0;function Zl(e){var t=Yl.call(e,Ve),n=e[Ve];try{e[Ve]=void 0;var r=!0}catch(s){}var i=Gl.call(e);return r&&(t?e[Ve]=n:delete e[Ve]),i}var Ql=Object.prototype,Xl=Ql.toString;function tf(e){return Xl.call(e)}var ef="[object Null]",nf="[object Undefined]",As=Ct?Ct.toStringTag:void 0;function Et(e){return e==null?e===void 0?nf:ef:As&&As in Object(e)?Zl(e):tf(e)}function at(e){return e!=null&&typeof e=="object"}var rf="[object Symbol]";function cn(e){return typeof e=="symbol"||at(e)&&Et(e)==rf}function ua(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var sf=Array.isArray;const dt=sf;var js=Ct?Ct.prototype:void 0,Rs=js?js.toString:void 0;function ca(e){if(typeof e=="string")return e;if(dt(e))return ua(e,ca)+"";if(cn(e))return Rs?Rs.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var of=/\s/;function af(e){for(var t=e.length;t--&&of.test(e.charAt(t)););return t}var uf=/^\s+/;function cf(e){return e&&e.slice(0,af(e)+1).replace(uf,"")}function ut(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ds=NaN,lf=/^[-+]0x[0-9a-f]+$/i,ff=/^0b[01]+$/i,hf=/^0o[0-7]+$/i,df=parseInt;function Cs(e){if(typeof e=="number")return e;if(cn(e))return Ds;if(ut(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ut(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=cf(e);var n=ff.test(e);return n||hf.test(e)?df(e.slice(2),n?2:8):lf.test(e)?Ds:+e}function Ci(e){return e}var pf="[object AsyncFunction]",mf="[object Function]",gf="[object GeneratorFunction]",yf="[object Proxy]";function ue(e){if(!ut(e))return!1;var t=Et(e);return t==mf||t==gf||t==pf||t==yf}var vf=At["__core-js_shared__"];const jr=vf;var Ps=function(){var e=/[^.]+$/.exec(jr&&jr.keys&&jr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bf(e){return!!Ps&&Ps in e}var _f=Function.prototype,wf=_f.toString;function fe(e){if(e!=null){try{return wf.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ef=/[\\^$.*+?()[\]{}|]/g,Sf=/^\[object .+?Constructor\]$/,xf=Function.prototype,Tf=Object.prototype,Of=xf.toString,$f=Tf.hasOwnProperty,Af=RegExp("^"+Of.call($f).replace(Ef,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jf(e){if(!ut(e)||bf(e))return!1;var t=ue(e)?Af:Sf;return t.test(fe(e))}function Rf(e,t){return e==null?void 0:e[t]}function he(e,t){var n=Rf(e,t);return jf(n)?n:void 0}var Df=he(At,"WeakMap");const Zr=Df;var ks=Object.create,Cf=function(){function e(){}return function(t){if(!ut(t))return{};if(ks)return ks(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Pf=Cf;function la(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kf(){}function Nf(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Bf=800,If=16,Mf=Date.now;function Ff(e){var t=0,n=0;return function(){var r=Mf(),i=If-(r-n);if(n=r,i>0){if(++t>=Bf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Lf(e){return function(){return e}}var Vf=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const zn=Vf;var Hf=zn?function(e,t){return zn(e,"toString",{configurable:!0,enumerable:!1,value:Lf(t),writable:!0})}:Ci;const Uf=Hf;var zf=Ff(Uf);const qf=zf;function Kf(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Jf=9007199254740991,Wf=/^(?:0|[1-9]\d*)$/;function rr(e,t){var n=typeof e;return t=t!=null?t:Jf,!!t&&(n=="number"||n!="symbol"&&Wf.test(e))&&e>-1&&e%1==0&&e<t}function ir(e,t,n){t=="__proto__"&&zn?zn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ke(e,t){return e===t||e!==e&&t!==t}var Yf=Object.prototype,Gf=Yf.hasOwnProperty;function Pi(e,t,n){var r=e[t];(!(Gf.call(e,t)&&ke(r,n))||n===void 0&&!(t in e))&&ir(e,t,n)}function fa(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],c=r?r(n[a],e[a],a,n,e):void 0;c===void 0&&(c=e[a]),i?ir(n,a,c):Pi(n,a,c)}return n}var Ns=Math.max;function Zf(e,t,n){return t=Ns(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=Ns(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),la(e,this,a)}}function ha(e,t){return qf(Zf(e,t,Ci),e+"")}var Qf=9007199254740991;function ki(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Qf}function ln(e){return e!=null&&ki(e.length)&&!ue(e)}function da(e,t,n){if(!ut(n))return!1;var r=typeof t;return(r=="number"?ln(n)&&rr(t,n.length):r=="string"&&t in n)?ke(n[t],e):!1}function pa(e){return ha(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&da(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,s)}return t})}var Xf=Object.prototype;function Ni(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Xf;return e===n}function th(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var eh="[object Arguments]";function Bs(e){return at(e)&&Et(e)==eh}var ma=Object.prototype,nh=ma.hasOwnProperty,rh=ma.propertyIsEnumerable,ih=Bs(function(){return arguments}())?Bs:function(e){return at(e)&&nh.call(e,"callee")&&!rh.call(e,"callee")};const qn=ih;function sh(){return!1}var ga=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Is=ga&&typeof module=="object"&&module&&!module.nodeType&&module,oh=Is&&Is.exports===ga,Ms=oh?At.Buffer:void 0,ah=Ms?Ms.isBuffer:void 0,uh=ah||sh;const je=uh;var ch="[object Arguments]",lh="[object Array]",fh="[object Boolean]",hh="[object Date]",dh="[object Error]",ph="[object Function]",mh="[object Map]",gh="[object Number]",yh="[object Object]",vh="[object RegExp]",bh="[object Set]",_h="[object String]",wh="[object WeakMap]",Eh="[object ArrayBuffer]",Sh="[object DataView]",xh="[object Float32Array]",Th="[object Float64Array]",Oh="[object Int8Array]",$h="[object Int16Array]",Ah="[object Int32Array]",jh="[object Uint8Array]",Rh="[object Uint8ClampedArray]",Dh="[object Uint16Array]",Ch="[object Uint32Array]",X={};X[xh]=X[Th]=X[Oh]=X[$h]=X[Ah]=X[jh]=X[Rh]=X[Dh]=X[Ch]=!0,X[ch]=X[lh]=X[Eh]=X[fh]=X[Sh]=X[hh]=X[dh]=X[ph]=X[mh]=X[gh]=X[yh]=X[vh]=X[bh]=X[_h]=X[wh]=!1;function Ph(e){return at(e)&&ki(e.length)&&!!X[Et(e)]}function fn(e){return function(t){return e(t)}}var ya=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ye=ya&&typeof module=="object"&&module&&!module.nodeType&&module,kh=Ye&&Ye.exports===ya,Rr=kh&&oa.process,Nh=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Rr&&Rr.binding&&Rr.binding("util")}catch(t){}}();const Pt=Nh;var Fs=Pt&&Pt.isTypedArray,Bh=Fs?fn(Fs):Ph;const Bi=Bh;var Ih=Object.prototype,Mh=Ih.hasOwnProperty;function va(e,t){var n=dt(e),r=!n&&qn(e),i=!n&&!r&&je(e),s=!n&&!r&&!i&&Bi(e),o=n||r||i||s,a=o?th(e.length,String):[],c=a.length;for(var u in e)(t||Mh.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||rr(u,c)))&&a.push(u);return a}function ba(e,t){return function(n){return e(t(n))}}var Fh=ba(Object.keys,Object);const Lh=Fh;var Vh=Object.prototype,Hh=Vh.hasOwnProperty;function Uh(e){if(!Ni(e))return Lh(e);var t=[];for(var n in Object(e))Hh.call(e,n)&&n!="constructor"&&t.push(n);return t}function sr(e){return ln(e)?va(e):Uh(e)}function zh(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var qh=Object.prototype,Kh=qh.hasOwnProperty;function Jh(e){if(!ut(e))return zh(e);var t=Ni(e),n=[];for(var r in e)r=="constructor"&&(t||!Kh.call(e,r))||n.push(r);return n}function Ii(e){return ln(e)?va(e,!0):Jh(e)}var Wh=pa(function(e,t,n,r){fa(t,Ii(t),e,r)});const Ls=Wh;var Yh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gh=/^\w*$/;function Mi(e,t){if(dt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||cn(e)?!0:Gh.test(e)||!Yh.test(e)||t!=null&&e in Object(t)}var Zh=he(Object,"create");const tn=Zh;function Qh(){this.__data__=tn?tn(null):{},this.size=0}function Xh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var td="__lodash_hash_undefined__",ed=Object.prototype,nd=ed.hasOwnProperty;function rd(e){var t=this.__data__;if(tn){var n=t[e];return n===td?void 0:n}return nd.call(t,e)?t[e]:void 0}var id=Object.prototype,sd=id.hasOwnProperty;function od(e){var t=this.__data__;return tn?t[e]!==void 0:sd.call(t,e)}var ad="__lodash_hash_undefined__";function ud(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tn&&t===void 0?ad:t,this}function te(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}te.prototype.clear=Qh,te.prototype.delete=Xh,te.prototype.get=rd,te.prototype.has=od,te.prototype.set=ud;function cd(){this.__data__=[],this.size=0}function or(e,t){for(var n=e.length;n--;)if(ke(e[n][0],t))return n;return-1}var ld=Array.prototype,fd=ld.splice;function hd(e){var t=this.__data__,n=or(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():fd.call(t,n,1),--this.size,!0}function dd(e){var t=this.__data__,n=or(t,e);return n<0?void 0:t[n][1]}function pd(e){return or(this.__data__,e)>-1}function md(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function It(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}It.prototype.clear=cd,It.prototype.delete=hd,It.prototype.get=dd,It.prototype.has=pd,It.prototype.set=md;var gd=he(At,"Map");const en=gd;function yd(){this.size=0,this.__data__={hash:new te,map:new(en||It),string:new te}}function vd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ar(e,t){var n=e.__data__;return vd(t)?n[typeof t=="string"?"string":"hash"]:n.map}function bd(e){var t=ar(this,e).delete(e);return this.size-=t?1:0,t}function _d(e){return ar(this,e).get(e)}function wd(e){return ar(this,e).has(e)}function Ed(e,t){var n=ar(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mt.prototype.clear=yd,Mt.prototype.delete=bd,Mt.prototype.get=_d,Mt.prototype.has=wd,Mt.prototype.set=Ed;var Sd="Expected a function";function Fi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Sd);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Fi.Cache||Mt),n}Fi.Cache=Mt;var xd=500;function Td(e){var t=Fi(e,function(r){return n.size===xd&&n.clear(),r}),n=t.cache;return t}var Od=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$d=/\\(\\)?/g,Ad=Td(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Od,function(n,r,i,s){t.push(i?s.replace($d,"$1"):r||n)}),t});const jd=Ad;function de(e){return e==null?"":ca(e)}function Li(e,t){return dt(e)?e:Mi(e,t)?[e]:jd(de(e))}function hn(e){if(typeof e=="string"||cn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function _a(e,t){t=Li(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[hn(t[n++])];return n&&n==r?e:void 0}function wa(e,t,n){var r=e==null?void 0:_a(e,t);return r===void 0?n:r}function Rd(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Dd=ba(Object.getPrototypeOf,Object);const Ea=Dd;var Cd="[object Object]",Pd=Function.prototype,kd=Object.prototype,Sa=Pd.toString,Nd=kd.hasOwnProperty,Bd=Sa.call(Object);function Vi(e){if(!at(e)||Et(e)!=Cd)return!1;var t=Ea(e);if(t===null)return!0;var n=Nd.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Sa.call(n)==Bd}var Id="[object DOMException]",Md="[object Error]";function xa(e){if(!at(e))return!1;var t=Et(e);return t==Md||t==Id||typeof e.message=="string"&&typeof e.name=="string"&&!Vi(e)}var Fd=ha(function(e,t){try{return la(e,void 0,t)}catch(n){return xa(n)?n:new Error(n)}});const Ld=Fd;function Vd(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function Hd(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Vd(e,t,n)}var Ud="\\ud800-\\udfff",zd="\\u0300-\\u036f",qd="\\ufe20-\\ufe2f",Kd="\\u20d0-\\u20ff",Jd=zd+qd+Kd,Wd="\\ufe0e\\ufe0f",Yd="\\u200d",Gd=RegExp("["+Yd+Ud+Jd+Wd+"]");function Ta(e){return Gd.test(e)}function Zd(e){return e.split("")}var Oa="\\ud800-\\udfff",Qd="\\u0300-\\u036f",Xd="\\ufe20-\\ufe2f",tp="\\u20d0-\\u20ff",ep=Qd+Xd+tp,np="\\ufe0e\\ufe0f",rp="["+Oa+"]",Qr="["+ep+"]",Xr="\\ud83c[\\udffb-\\udfff]",ip="(?:"+Qr+"|"+Xr+")",$a="[^"+Oa+"]",Aa="(?:\\ud83c[\\udde6-\\uddff]){2}",ja="[\\ud800-\\udbff][\\udc00-\\udfff]",sp="\\u200d",Ra=ip+"?",Da="["+np+"]?",op="(?:"+sp+"(?:"+[$a,Aa,ja].join("|")+")"+Da+Ra+")*",ap=Da+Ra+op,up="(?:"+[$a+Qr+"?",Qr,Aa,ja,rp].join("|")+")",cp=RegExp(Xr+"(?="+Xr+")|"+up+ap,"g");function lp(e){return e.match(cp)||[]}function fp(e){return Ta(e)?lp(e):Zd(e)}function Ca(e){return function(t){t=de(t);var n=Ta(t)?fp(t):void 0,r=n?n[0]:t.charAt(0),i=n?Hd(n,1).join(""):t.slice(1);return r[e]()+i}}var hp=Ca("toUpperCase");const ur=hp;function dp(e){return ur(de(e).toLowerCase())}function pp(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r;++i<s;)n=t(n,e[i],i,e);return n}function Pa(e){return function(t){return e==null?void 0:e[t]}}var mp={À:"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"},gp=Pa(mp);const yp=gp;var vp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bp="\\u0300-\\u036f",_p="\\ufe20-\\ufe2f",wp="\\u20d0-\\u20ff",Ep=bp+_p+wp,Sp="["+Ep+"]",xp=RegExp(Sp,"g");function Tp(e){return e=de(e),e&&e.replace(vp,yp).replace(xp,"")}var Op=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function $p(e){return e.match(Op)||[]}var Ap=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function jp(e){return Ap.test(e)}var ka="\\ud800-\\udfff",Rp="\\u0300-\\u036f",Dp="\\ufe20-\\ufe2f",Cp="\\u20d0-\\u20ff",Pp=Rp+Dp+Cp,Na="\\u2700-\\u27bf",Ba="a-z\\xdf-\\xf6\\xf8-\\xff",kp="\\xac\\xb1\\xd7\\xf7",Np="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bp="\\u2000-\\u206f",Ip=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ia="A-Z\\xc0-\\xd6\\xd8-\\xde",Mp="\\ufe0e\\ufe0f",Ma=kp+Np+Bp+Ip,Fa="['’]",Vs="["+Ma+"]",Fp="["+Pp+"]",La="\\d+",Lp="["+Na+"]",Va="["+Ba+"]",Ha="[^"+ka+Ma+La+Na+Ba+Ia+"]",Vp="\\ud83c[\\udffb-\\udfff]",Hp="(?:"+Fp+"|"+Vp+")",Up="[^"+ka+"]",Ua="(?:\\ud83c[\\udde6-\\uddff]){2}",za="[\\ud800-\\udbff][\\udc00-\\udfff]",be="["+Ia+"]",zp="\\u200d",Hs="(?:"+Va+"|"+Ha+")",qp="(?:"+be+"|"+Ha+")",Us="(?:"+Fa+"(?:d|ll|m|re|s|t|ve))?",zs="(?:"+Fa+"(?:D|LL|M|RE|S|T|VE))?",qa=Hp+"?",Ka="["+Mp+"]?",Kp="(?:"+zp+"(?:"+[Up,Ua,za].join("|")+")"+Ka+qa+")*",Jp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yp=Ka+qa+Kp,Gp="(?:"+[Lp,Ua,za].join("|")+")"+Yp,Zp=RegExp([be+"?"+Va+"+"+Us+"(?="+[Vs,be,"$"].join("|")+")",qp+"+"+zs+"(?="+[Vs,be+Hs,"$"].join("|")+")",be+"?"+Hs+"+"+Us,be+"+"+zs,Wp,Jp,La,Gp].join("|"),"g");function Qp(e){return e.match(Zp)||[]}function Xp(e,t,n){return e=de(e),t=t,t===void 0?jp(e)?Qp(e):$p(e):e.match(t)||[]}var tm="['’]",em=RegExp(tm,"g");function Hi(e){return function(t){return pp(Xp(Tp(t).replace(em,"")),e,"")}}var nm=Hi(function(e,t,n){return t=t.toLowerCase(),e+(n?dp(t):t)});const Nt=nm;function rm(){this.__data__=new It,this.size=0}function im(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function sm(e){return this.__data__.get(e)}function om(e){return this.__data__.has(e)}var am=200;function um(e,t){var n=this.__data__;if(n instanceof It){var r=n.__data__;if(!en||r.length<am-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mt(r)}return n.set(e,t),this.size=n.size,this}function $t(e){var t=this.__data__=new It(e);this.size=t.size}$t.prototype.clear=rm,$t.prototype.delete=im,$t.prototype.get=sm,$t.prototype.has=om,$t.prototype.set=um;var Ja=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qs=Ja&&typeof module=="object"&&module&&!module.nodeType&&module,cm=qs&&qs.exports===Ja,Ks=cm?At.Buffer:void 0,Js=Ks?Ks.allocUnsafe:void 0;function Wa(e,t){if(t)return e.slice();var n=e.length,r=Js?Js(n):new e.constructor(n);return e.copy(r),r}function lm(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function fm(){return[]}var hm=Object.prototype,dm=hm.propertyIsEnumerable,Ws=Object.getOwnPropertySymbols,pm=Ws?function(e){return e==null?[]:(e=Object(e),lm(Ws(e),function(t){return dm.call(e,t)}))}:fm;const mm=pm;function gm(e,t,n){var r=t(e);return dt(e)?r:Rd(r,n(e))}function ti(e){return gm(e,sr,mm)}var ym=he(At,"DataView");const ei=ym;var vm=he(At,"Promise");const ni=vm;var bm=he(At,"Set");const ri=bm;var Ys="[object Map]",_m="[object Object]",Gs="[object Promise]",Zs="[object Set]",Qs="[object WeakMap]",Xs="[object DataView]",wm=fe(ei),Em=fe(en),Sm=fe(ni),xm=fe(ri),Tm=fe(Zr),Xt=Et;(ei&&Xt(new ei(new ArrayBuffer(1)))!=Xs||en&&Xt(new en)!=Ys||ni&&Xt(ni.resolve())!=Gs||ri&&Xt(new ri)!=Zs||Zr&&Xt(new Zr)!=Qs)&&(Xt=function(e){var t=Et(e),n=t==_m?e.constructor:void 0,r=n?fe(n):"";if(r)switch(r){case wm:return Xs;case Em:return Ys;case Sm:return Gs;case xm:return Zs;case Tm:return Qs}return t});const nn=Xt;var Om=Object.prototype,$m=Om.hasOwnProperty;function Am(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&$m.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var jm=At.Uint8Array;const Kn=jm;function Ui(e){var t=new e.constructor(e.byteLength);return new Kn(t).set(new Kn(e)),t}function Rm(e,t){var n=Ui(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Dm=/\w*$/;function Cm(e){var t=new e.constructor(e.source,Dm.exec(e));return t.lastIndex=e.lastIndex,t}var to=Ct?Ct.prototype:void 0,eo=to?to.valueOf:void 0;function Pm(e){return eo?Object(eo.call(e)):{}}function Ya(e,t){var n=t?Ui(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var km="[object Boolean]",Nm="[object Date]",Bm="[object Map]",Im="[object Number]",Mm="[object RegExp]",Fm="[object Set]",Lm="[object String]",Vm="[object Symbol]",Hm="[object ArrayBuffer]",Um="[object DataView]",zm="[object Float32Array]",qm="[object Float64Array]",Km="[object Int8Array]",Jm="[object Int16Array]",Wm="[object Int32Array]",Ym="[object Uint8Array]",Gm="[object Uint8ClampedArray]",Zm="[object Uint16Array]",Qm="[object Uint32Array]";function Xm(e,t,n){var r=e.constructor;switch(t){case Hm:return Ui(e);case km:case Nm:return new r(+e);case Um:return Rm(e);case zm:case qm:case Km:case Jm:case Wm:case Ym:case Gm:case Zm:case Qm:return Ya(e,n);case Bm:return new r;case Im:case Lm:return new r(e);case Mm:return Cm(e);case Fm:return new r;case Vm:return Pm(e)}}function Ga(e){return typeof e.constructor=="function"&&!Ni(e)?Pf(Ea(e)):{}}var tg="[object Map]";function eg(e){return at(e)&&nn(e)==tg}var no=Pt&&Pt.isMap,ng=no?fn(no):eg;const rg=ng;var ig="[object Set]";function sg(e){return at(e)&&nn(e)==ig}var ro=Pt&&Pt.isSet,og=ro?fn(ro):sg;const ag=og;var ug=1,Za="[object Arguments]",cg="[object Array]",lg="[object Boolean]",fg="[object Date]",hg="[object Error]",Qa="[object Function]",dg="[object GeneratorFunction]",pg="[object Map]",mg="[object Number]",Xa="[object Object]",gg="[object RegExp]",yg="[object Set]",vg="[object String]",bg="[object Symbol]",_g="[object WeakMap]",wg="[object ArrayBuffer]",Eg="[object DataView]",Sg="[object Float32Array]",xg="[object Float64Array]",Tg="[object Int8Array]",Og="[object Int16Array]",$g="[object Int32Array]",Ag="[object Uint8Array]",jg="[object Uint8ClampedArray]",Rg="[object Uint16Array]",Dg="[object Uint32Array]",Q={};Q[Za]=Q[cg]=Q[wg]=Q[Eg]=Q[lg]=Q[fg]=Q[Sg]=Q[xg]=Q[Tg]=Q[Og]=Q[$g]=Q[pg]=Q[mg]=Q[Xa]=Q[gg]=Q[yg]=Q[vg]=Q[bg]=Q[Ag]=Q[jg]=Q[Rg]=Q[Dg]=!0,Q[hg]=Q[Qa]=Q[_g]=!1;function Rn(e,t,n,r,i,s){var o,a=t&ug;if(o!==void 0)return o;if(!ut(e))return e;var c=dt(e);if(c)o=Am(e);else{var u=nn(e),l=u==Qa||u==dg;if(je(e))return Wa(e,a);if(u==Xa||u==Za||l&&!i)o=l?{}:Ga(e);else{if(!Q[u])return i?e:{};o=Xm(e,u,a)}}s||(s=new $t);var f=s.get(e);if(f)return f;s.set(e,o),ag(e)?e.forEach(function(p){o.add(Rn(p,t,n,p,e,s))}):rg(e)&&e.forEach(function(p,m){o.set(m,Rn(p,t,n,m,e,s))});var h=ti,d=c?void 0:h(e);return Kf(d||e,function(p,m){d&&(m=p,p=e[m]),Pi(o,m,Rn(p,t,n,m,e,s))}),o}var Cg=1,Pg=4;function rn(e){return Rn(e,Cg|Pg)}var kg="__lodash_hash_undefined__";function Ng(e){return this.__data__.set(e,kg),this}function Bg(e){return this.__data__.has(e)}function Dn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Mt;++t<n;)this.add(e[t])}Dn.prototype.add=Dn.prototype.push=Ng,Dn.prototype.has=Bg;function Ig(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Mg(e,t){return e.has(t)}var Fg=1,Lg=2;function tu(e,t,n,r,i,s){var o=n&Fg,a=e.length,c=t.length;if(a!=c&&!(o&&c>a))return!1;var u=s.get(e),l=s.get(t);if(u&&l)return u==t&&l==e;var f=-1,h=!0,d=n&Lg?new Dn:void 0;for(s.set(e,t),s.set(t,e);++f<a;){var p=e[f],m=t[f];if(r)var b=o?r(m,p,f,t,e,s):r(p,m,f,e,t,s);if(b!==void 0){if(b)continue;h=!1;break}if(d){if(!Ig(t,function(E,g){if(!Mg(d,g)&&(p===E||i(p,E,n,r,s)))return d.push(g)})){h=!1;break}}else if(!(p===m||i(p,m,n,r,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function Vg(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Hg(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ug=1,zg=2,qg="[object Boolean]",Kg="[object Date]",Jg="[object Error]",Wg="[object Map]",Yg="[object Number]",Gg="[object RegExp]",Zg="[object Set]",Qg="[object String]",Xg="[object Symbol]",ty="[object ArrayBuffer]",ey="[object DataView]",io=Ct?Ct.prototype:void 0,Dr=io?io.valueOf:void 0;function ny(e,t,n,r,i,s,o){switch(n){case ey:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ty:return!(e.byteLength!=t.byteLength||!s(new Kn(e),new Kn(t)));case qg:case Kg:case Yg:return ke(+e,+t);case Jg:return e.name==t.name&&e.message==t.message;case Gg:case Qg:return e==t+"";case Wg:var a=Vg;case Zg:var c=r&Ug;if(a||(a=Hg),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;r|=zg,o.set(e,t);var l=tu(a(e),a(t),r,i,s,o);return o.delete(e),l;case Xg:if(Dr)return Dr.call(e)==Dr.call(t)}return!1}var ry=1,iy=Object.prototype,sy=iy.hasOwnProperty;function oy(e,t,n,r,i,s){var o=n&ry,a=ti(e),c=a.length,u=ti(t),l=u.length;if(c!=l&&!o)return!1;for(var f=c;f--;){var h=a[f];if(!(o?h in t:sy.call(t,h)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var b=o;++f<c;){h=a[f];var E=e[h],g=t[h];if(r)var v=o?r(g,E,h,t,e,s):r(E,g,h,e,t,s);if(!(v===void 0?E===g||i(E,g,n,r,s):v)){m=!1;break}b||(b=h=="constructor")}if(m&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(m=!1)}return s.delete(e),s.delete(t),m}var ay=1,so="[object Arguments]",oo="[object Array]",bn="[object Object]",uy=Object.prototype,ao=uy.hasOwnProperty;function cy(e,t,n,r,i,s){var o=dt(e),a=dt(t),c=o?oo:nn(e),u=a?oo:nn(t);c=c==so?bn:c,u=u==so?bn:u;var l=c==bn,f=u==bn,h=c==u;if(h&&je(e)){if(!je(t))return!1;o=!0,l=!1}if(h&&!l)return s||(s=new $t),o||Bi(e)?tu(e,t,n,r,i,s):ny(e,t,c,n,r,i,s);if(!(n&ay)){var d=l&&ao.call(e,"__wrapped__"),p=f&&ao.call(t,"__wrapped__");if(d||p){var m=d?e.value():e,b=p?t.value():t;return s||(s=new $t),i(m,b,n,r,s)}}return h?(s||(s=new $t),oy(e,t,n,r,i,s)):!1}function cr(e,t,n,r,i){return e===t?!0:e==null||t==null||!at(e)&&!at(t)?e!==e&&t!==t:cy(e,t,n,r,cr,i)}var ly=1,fy=2;function hy(e,t,n,r){var i=n.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var a=o[0],c=e[a],u=o[1];if(o[2]){if(c===void 0&&!(a in e))return!1}else{var l=new $t,f;if(!(f===void 0?cr(u,c,ly|fy,r,l):f))return!1}}return!0}function eu(e){return e===e&&!ut(e)}function dy(e){for(var t=sr(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,eu(i)]}return t}function nu(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function py(e){var t=dy(e);return t.length==1&&t[0][2]?nu(t[0][0],t[0][1]):function(n){return n===e||hy(n,e,t)}}function my(e,t){return e!=null&&t in Object(e)}function gy(e,t,n){t=Li(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var o=hn(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&ki(i)&&rr(o,i)&&(dt(e)||qn(e)))}function yy(e,t){return e!=null&&gy(e,t,my)}var vy=1,by=2;function _y(e,t){return Mi(e)&&eu(t)?nu(hn(e),t):function(n){var r=wa(n,e);return r===void 0&&r===t?yy(n,e):cr(t,r,vy|by)}}function wy(e){return function(t){return t==null?void 0:t[e]}}function Ey(e){return function(t){return _a(t,e)}}function Sy(e){return Mi(e)?wy(hn(e)):Ey(e)}function xy(e){return typeof e=="function"?e:e==null?Ci:typeof e=="object"?dt(e)?_y(e[0],e[1]):py(e):Sy(e)}function Ty(e,t,n,r){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}function Oy(e){return function(t,n,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var c=o[++i];if(n(s[c],c,s)===!1)break}return t}}var $y=Oy();const ru=$y;function Ay(e,t){return e&&ru(e,t,sr)}function jy(e,t){return function(n,r){if(n==null)return n;if(!ln(n))return e(n,r);for(var i=n.length,s=-1,o=Object(n);++s<i&&r(o[s],s,o)!==!1;);return n}}var Ry=jy(Ay);const Dy=Ry;function Cy(e,t,n,r){return Dy(e,function(i,s,o){t(r,i,n(i),o)}),r}function Py(e,t){return function(n,r){var i=dt(n)?Ty:Cy,s={};return i(n,e,xy(r),s)}}var ky=function(){return At.Date.now()};const Cr=ky;var Ny="Expected a function",By=Math.max,Iy=Math.min;function zi(e,t,n){var r,i,s,o,a,c,u=0,l=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Ny);t=Cs(t)||0,ut(n)&&(l=!!n.leading,f="maxWait"in n,s=f?By(Cs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function d(y){var x=r,$=i;return r=i=void 0,u=y,o=e.apply($,x),o}function p(y){return u=y,a=setTimeout(E,t),l?d(y):o}function m(y){var x=y-c,$=y-u,V=t-x;return f?Iy(V,s-$):V}function b(y){var x=y-c,$=y-u;return c===void 0||x>=t||x<0||f&&$>=s}function E(){var y=Cr();if(b(y))return g(y);a=setTimeout(E,m(y))}function g(y){return a=void 0,h&&r?d(y):(r=i=void 0,o)}function v(){a!==void 0&&clearTimeout(a),u=0,r=c=i=a=void 0}function _(){return a===void 0?o:g(Cr())}function S(){var y=Cr(),x=b(y);if(r=arguments,i=this,c=y,x){if(a===void 0)return p(c);if(f)return clearTimeout(a),a=setTimeout(E,t),d(c)}return a===void 0&&(a=setTimeout(E,t)),o}return S.cancel=v,S.flush=_,S}function ii(e,t,n){(n!==void 0&&!ke(e[t],n)||n===void 0&&!(t in e))&&ir(e,t,n)}function My(e){return at(e)&&ln(e)}function si(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Fy(e){return fa(e,Ii(e))}function Ly(e,t,n,r,i,s,o){var a=si(e,n),c=si(t,n),u=o.get(c);if(u){ii(e,n,u);return}var l=s?s(a,c,n+"",e,t,o):void 0,f=l===void 0;if(f){var h=dt(c),d=!h&&je(c),p=!h&&!d&&Bi(c);l=c,h||d||p?dt(a)?l=a:My(a)?l=Nf(a):d?(f=!1,l=Wa(c,!0)):p?(f=!1,l=Ya(c,!0)):l=[]:Vi(c)||qn(c)?(l=a,qn(a)?l=Fy(a):(!ut(a)||ue(a))&&(l=Ga(c))):f=!1}f&&(o.set(c,l),i(l,c,r,s,o),o.delete(c)),ii(e,n,l)}function iu(e,t,n,r,i){e!==t&&ru(t,function(s,o){if(i||(i=new $t),ut(s))Ly(e,t,o,n,iu,r,i);else{var a=r?r(si(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),ii(e,o,a)}},Ii)}var Vy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hy=Pa(Vy);const Uy=Hy;var su=/[&<>"']/g,zy=RegExp(su.source);function qy(e){return e=de(e),e&&zy.test(e)?e.replace(su,Uy):e}var Ky=Object.prototype,Jy=Ky.hasOwnProperty,Wy=Py(function(e,t,n){Jy.call(e,n)?e[n].push(t):ir(e,n,[t])});const ou=Wy;var Yy="[object String]";function bt(e){return typeof e=="string"||!dt(e)&&at(e)&&Et(e)==Yy}function Gy(e,t){return ua(t,function(n){return e[n]})}var Zy="[object ArrayBuffer]";function Qy(e){return at(e)&&Et(e)==Zy}var uo=Pt&&Pt.isArrayBuffer,Xy=uo?fn(uo):Qy;const t1=Xy;var e1="[object Boolean]";function n1(e){return e===!0||e===!1||at(e)&&Et(e)==e1}var r1="[object Date]";function i1(e){return at(e)&&Et(e)==r1}var co=Pt&&Pt.isDate,s1=co?fn(co):i1;const o1=s1;function a1(e,t){return cr(e,t)}var u1="[object Number]";function au(e){return typeof e=="number"||at(e)&&Et(e)==u1}function c1(e){return au(e)&&e!=+e}function l1(e){return e===null}function f1(e){return e===void 0}var h1=Hi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const d1=h1;var p1=Ca("toLowerCase");const m1=p1;var g1=pa(function(e,t,n){iu(e,t,n)});const Dt=g1;function y1(e,t,n,r){if(!ut(e))return e;t=Li(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var c=hn(t[i]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var l=a[c];u=void 0,u===void 0&&(u=ut(l)?l:rr(t[i+1])?[]:{})}Pi(a,c,u),a=a[c]}return e}function v1(e,t,n){return e==null?e:y1(e,t,n)}var b1=Hi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});const _1=b1;var uu=Object.prototype,w1=uu.hasOwnProperty;function lo(e,t,n,r){return e===void 0||ke(e,uu[n])&&!w1.call(r,n)?t:e}var E1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function S1(e){return"\\"+E1[e]}var x1=/<%=([\s\S]+?)%>/g;const cu=x1;var T1=/<%-([\s\S]+?)%>/g;const O1=T1;var $1=/<%([\s\S]+?)%>/g;const A1=$1;var j1={escape:O1,evaluate:A1,interpolate:cu,variable:"",imports:{_:{escape:qy}}};const fo=j1;var R1="Invalid `variable` option passed into `_.template`",D1=/\b__p \+= '';/g,C1=/\b(__p \+=) '' \+/g,P1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,k1=/[()=,{}\[\]\/\s]/,N1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_n=/($^)/,B1=/['\n\r\u2028\u2029\\]/g,I1=Object.prototype,ho=I1.hasOwnProperty;function lu(e,t,n){var r=fo.imports._.templateSettings||fo;n&&da(e,t,n)&&(t=void 0),e=de(e),t=Ls({},t,r,lo);var i=Ls({},t.imports,r.imports,lo),s=sr(i),o=Gy(i,s),a,c,u=0,l=t.interpolate||_n,f="__p += '",h=RegExp((t.escape||_n).source+"|"+l.source+"|"+(l===cu?N1:_n).source+"|"+(t.evaluate||_n).source+"|$","g"),d=ho.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
- `:"";e.replace(h,function(b,E,g,v,_,S){return g||(g=v),f+=e.slice(u,S).replace(B1,S1),E&&(a=!0,f+=`' +
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DOZPkybL.js","./vue-router-CrZzyM_O.js","./vue-DEqBd9tH.js","./element-plus-C1NYT3Gu.js","./lodash-es-Cd_vyJR8.js","./@vueuse-54eSL_G4.js","./@element-plus-icons-vue-CClttscX.js","./shared-CMPiinVg.js","./dayjs-D_Mdy0hN.js","./element-plus-IIQy0ps0.css","./vxe-CzgOUQRv.js","./vxe-BAb1d5vW.css","./extension-DMkHTD-w.js","./monaco-editor-BhWNbPWS.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-D2Pt4KSj.js","./mockjs-D_rM_kf7.js","./extension-zAMGctip.css","./utils-B9i9aHNx.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-CdSv23YK.css","./preview-CAYkpiRf.js","./page-CbEWt3VU.js","./auth-QuyzCAt1.js","./auth-rAe8S_7e.css"])))=>i.map(i=>d[i]);
2
+ var El=Object.defineProperty,Sl=Object.defineProperties;var xl=Object.getOwnPropertyDescriptors;var yn=Object.getOwnPropertySymbols;var Es=Object.prototype.hasOwnProperty,Ss=Object.prototype.propertyIsEnumerable;var me=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Tl=e=>{throw TypeError(e)};var xr=(e,t,n)=>t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z=(e,t)=>{for(var n in t||(t={}))Es.call(t,n)&&xr(e,n,t[n]);if(yn)for(var n of yn(t))Ss.call(t,n)&&xr(e,n,t[n]);return e},st=(e,t)=>Sl(e,xl(t));var Tr=(e,t)=>{var n={};for(var r in e)Es.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yn)for(var r of yn(e))t.indexOf(r)<0&&Ss.call(e,r)&&(n[r]=e[r]);return n};var A=(e,t,n)=>xr(e,typeof t!="symbol"?t+"":t,n);var L=(e,t,n)=>new Promise((r,i)=>{var s=c=>{try{a(n.next(c))}catch(u){i(u)}},o=c=>{try{a(n.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,o);a((n=n.apply(e,t)).next())}),Gt=function(e,t){this[0]=e,this[1]=t},Or=(e,t,n)=>{var r=(o,a,c,u)=>{try{var l=n[o](a),f=(a=l.value)instanceof Gt,h=l.done;Promise.resolve(f?a[0]:a).then(d=>f?r(o==="return"?o:"next",a[1]?{done:d.done,value:d.value}:d,c,u):c({value:d,done:h})).catch(d=>r("throw",d,c,u))}catch(d){u(d)}},i=o=>s[o]=a=>new Promise((c,u)=>r(o,a,c,u)),s={};return n=n.apply(e,t),s[me("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},$r=e=>{var t=e[me("asyncIterator")],n=!1,r,i={};return t==null?(t=e[me("iterator")](),r=s=>i[s]=o=>t[s](o)):(t=t.call(e),r=s=>i[s]=o=>{if(n){if(n=!1,s==="throw")throw o;return o}return n=!0,{done:!1,value:new Gt(new Promise(a=>{var c=t[s](o);c instanceof Object||Tl("Object expected"),a(c)}),1)}}),i[me("iterator")]=()=>i,r("next"),"throw"in t?r("throw"):i.throw=s=>{throw s},"return"in t&&r("return"),i},xs=(e,t,n)=>(t=e[me("asyncIterator")])?t.call(e):(e=e[me("iterator")](),t={},n=(r,i)=>(i=e[r])&&(t[r]=s=>new Promise((o,a,c)=>(s=i.call(e,s),c=s.done,Promise.resolve(s.value).then(u=>o({value:u,done:c}),a)))),n("next"),n("return"),t);import{ax as Ts,ay as er,d as nr,e as Xe,ag as Wr,q as Xo,f as ta,o as Yr,c as Ol,a as Zt,Q as Ar,w as $l,m as Al,r as jl,j as Rl,Y as Dl,k as ea,g as Cl,b as Pl,u as Gr,h as na,i as kl,ah as Nl,J as Os,K as $s,az as Bl,S as Il,au as Ml}from"./vue-DEqBd9tH.js";import{t as ae}from"./mockjs-D_rM_kf7.js";import{useRoute as ra,createRouter as Fl,createWebHashHistory as Ll}from"./vue-router-CrZzyM_O.js";import{z as Vl,E as Hl}from"./element-plus-C1NYT3Gu.js";import{_ as vn}from"./monaco-editor-BhWNbPWS.js";import"./dayjs-D_Mdy0hN.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.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"]'))r(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"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(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 r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Ul={ENV_TYPE:"live",NODE_ENV:"production"},zl=typeof global=="object"&&global&&global.Object===Object&&global;const ia=zl;var ql=typeof self=="object"&&self&&self.Object===Object&&self,Kl=ia||ql||Function("return this")();const At=Kl;var Jl=At.Symbol;const Ct=Jl;var sa=Object.prototype,Wl=sa.hasOwnProperty,Yl=sa.toString,Ve=Ct?Ct.toStringTag:void 0;function Gl(e){var t=Wl.call(e,Ve),n=e[Ve];try{e[Ve]=void 0;var r=!0}catch(s){}var i=Yl.call(e);return r&&(t?e[Ve]=n:delete e[Ve]),i}var Zl=Object.prototype,Ql=Zl.toString;function Xl(e){return Ql.call(e)}var tf="[object Null]",ef="[object Undefined]",As=Ct?Ct.toStringTag:void 0;function Et(e){return e==null?e===void 0?ef:tf:As&&As in Object(e)?Gl(e):Xl(e)}function at(e){return e!=null&&typeof e=="object"}var nf="[object Symbol]";function cn(e){return typeof e=="symbol"||at(e)&&Et(e)==nf}function oa(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var rf=Array.isArray;const dt=rf;var js=Ct?Ct.prototype:void 0,Rs=js?js.toString:void 0;function aa(e){if(typeof e=="string")return e;if(dt(e))return oa(e,aa)+"";if(cn(e))return Rs?Rs.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var sf=/\s/;function of(e){for(var t=e.length;t--&&sf.test(e.charAt(t)););return t}var af=/^\s+/;function uf(e){return e&&e.slice(0,of(e)+1).replace(af,"")}function ut(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ds=NaN,cf=/^[-+]0x[0-9a-f]+$/i,lf=/^0b[01]+$/i,ff=/^0o[0-7]+$/i,hf=parseInt;function Cs(e){if(typeof e=="number")return e;if(cn(e))return Ds;if(ut(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ut(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uf(e);var n=lf.test(e);return n||ff.test(e)?hf(e.slice(2),n?2:8):cf.test(e)?Ds:+e}function Ci(e){return e}var df="[object AsyncFunction]",pf="[object Function]",mf="[object GeneratorFunction]",gf="[object Proxy]";function ue(e){if(!ut(e))return!1;var t=Et(e);return t==pf||t==mf||t==df||t==gf}var yf=At["__core-js_shared__"];const jr=yf;var Ps=function(){var e=/[^.]+$/.exec(jr&&jr.keys&&jr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function vf(e){return!!Ps&&Ps in e}var bf=Function.prototype,_f=bf.toString;function fe(e){if(e!=null){try{return _f.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var wf=/[\\^$.*+?()[\]{}|]/g,Ef=/^\[object .+?Constructor\]$/,Sf=Function.prototype,xf=Object.prototype,Tf=Sf.toString,Of=xf.hasOwnProperty,$f=RegExp("^"+Tf.call(Of).replace(wf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Af(e){if(!ut(e)||vf(e))return!1;var t=ue(e)?$f:Ef;return t.test(fe(e))}function jf(e,t){return e==null?void 0:e[t]}function he(e,t){var n=jf(e,t);return Af(n)?n:void 0}var Rf=he(At,"WeakMap");const Zr=Rf;var ks=Object.create,Df=function(){function e(){}return function(t){if(!ut(t))return{};if(ks)return ks(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Cf=Df;function ua(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Pf(){}function kf(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Nf=800,Bf=16,If=Date.now;function Mf(e){var t=0,n=0;return function(){var r=If(),i=Bf-(r-n);if(n=r,i>0){if(++t>=Nf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ff(e){return function(){return e}}var Lf=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const zn=Lf;var Vf=zn?function(e,t){return zn(e,"toString",{configurable:!0,enumerable:!1,value:Ff(t),writable:!0})}:Ci;const Hf=Vf;var Uf=Mf(Hf);const zf=Uf;function qf(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Kf=9007199254740991,Jf=/^(?:0|[1-9]\d*)$/;function rr(e,t){var n=typeof e;return t=t!=null?t:Kf,!!t&&(n=="number"||n!="symbol"&&Jf.test(e))&&e>-1&&e%1==0&&e<t}function ir(e,t,n){t=="__proto__"&&zn?zn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ke(e,t){return e===t||e!==e&&t!==t}var Wf=Object.prototype,Yf=Wf.hasOwnProperty;function Pi(e,t,n){var r=e[t];(!(Yf.call(e,t)&&ke(r,n))||n===void 0&&!(t in e))&&ir(e,t,n)}function ca(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],c=r?r(n[a],e[a],a,n,e):void 0;c===void 0&&(c=e[a]),i?ir(n,a,c):Pi(n,a,c)}return n}var Ns=Math.max;function Gf(e,t,n){return t=Ns(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=Ns(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),ua(e,this,a)}}function la(e,t){return zf(Gf(e,t,Ci),e+"")}var Zf=9007199254740991;function ki(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zf}function ln(e){return e!=null&&ki(e.length)&&!ue(e)}function fa(e,t,n){if(!ut(n))return!1;var r=typeof t;return(r=="number"?ln(n)&&rr(t,n.length):r=="string"&&t in n)?ke(n[t],e):!1}function ha(e){return la(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&fa(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,s)}return t})}var Qf=Object.prototype;function Ni(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Qf;return e===n}function Xf(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var th="[object Arguments]";function Bs(e){return at(e)&&Et(e)==th}var da=Object.prototype,eh=da.hasOwnProperty,nh=da.propertyIsEnumerable,rh=Bs(function(){return arguments}())?Bs:function(e){return at(e)&&eh.call(e,"callee")&&!nh.call(e,"callee")};const qn=rh;function ih(){return!1}var pa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Is=pa&&typeof module=="object"&&module&&!module.nodeType&&module,sh=Is&&Is.exports===pa,Ms=sh?At.Buffer:void 0,oh=Ms?Ms.isBuffer:void 0,ah=oh||ih;const je=ah;var uh="[object Arguments]",ch="[object Array]",lh="[object Boolean]",fh="[object Date]",hh="[object Error]",dh="[object Function]",ph="[object Map]",mh="[object Number]",gh="[object Object]",yh="[object RegExp]",vh="[object Set]",bh="[object String]",_h="[object WeakMap]",wh="[object ArrayBuffer]",Eh="[object DataView]",Sh="[object Float32Array]",xh="[object Float64Array]",Th="[object Int8Array]",Oh="[object Int16Array]",$h="[object Int32Array]",Ah="[object Uint8Array]",jh="[object Uint8ClampedArray]",Rh="[object Uint16Array]",Dh="[object Uint32Array]",X={};X[Sh]=X[xh]=X[Th]=X[Oh]=X[$h]=X[Ah]=X[jh]=X[Rh]=X[Dh]=!0,X[uh]=X[ch]=X[wh]=X[lh]=X[Eh]=X[fh]=X[hh]=X[dh]=X[ph]=X[mh]=X[gh]=X[yh]=X[vh]=X[bh]=X[_h]=!1;function Ch(e){return at(e)&&ki(e.length)&&!!X[Et(e)]}function fn(e){return function(t){return e(t)}}var ma=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ye=ma&&typeof module=="object"&&module&&!module.nodeType&&module,Ph=Ye&&Ye.exports===ma,Rr=Ph&&ia.process,kh=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Rr&&Rr.binding&&Rr.binding("util")}catch(t){}}();const Pt=kh;var Fs=Pt&&Pt.isTypedArray,Nh=Fs?fn(Fs):Ch;const Bi=Nh;var Bh=Object.prototype,Ih=Bh.hasOwnProperty;function ga(e,t){var n=dt(e),r=!n&&qn(e),i=!n&&!r&&je(e),s=!n&&!r&&!i&&Bi(e),o=n||r||i||s,a=o?Xf(e.length,String):[],c=a.length;for(var u in e)(t||Ih.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||rr(u,c)))&&a.push(u);return a}function ya(e,t){return function(n){return e(t(n))}}var Mh=ya(Object.keys,Object);const Fh=Mh;var Lh=Object.prototype,Vh=Lh.hasOwnProperty;function Hh(e){if(!Ni(e))return Fh(e);var t=[];for(var n in Object(e))Vh.call(e,n)&&n!="constructor"&&t.push(n);return t}function sr(e){return ln(e)?ga(e):Hh(e)}function Uh(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var zh=Object.prototype,qh=zh.hasOwnProperty;function Kh(e){if(!ut(e))return Uh(e);var t=Ni(e),n=[];for(var r in e)r=="constructor"&&(t||!qh.call(e,r))||n.push(r);return n}function Ii(e){return ln(e)?ga(e,!0):Kh(e)}var Jh=ha(function(e,t,n,r){ca(t,Ii(t),e,r)});const Ls=Jh;var Wh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yh=/^\w*$/;function Mi(e,t){if(dt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||cn(e)?!0:Yh.test(e)||!Wh.test(e)||t!=null&&e in Object(t)}var Gh=he(Object,"create");const tn=Gh;function Zh(){this.__data__=tn?tn(null):{},this.size=0}function Qh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xh="__lodash_hash_undefined__",td=Object.prototype,ed=td.hasOwnProperty;function nd(e){var t=this.__data__;if(tn){var n=t[e];return n===Xh?void 0:n}return ed.call(t,e)?t[e]:void 0}var rd=Object.prototype,id=rd.hasOwnProperty;function sd(e){var t=this.__data__;return tn?t[e]!==void 0:id.call(t,e)}var od="__lodash_hash_undefined__";function ad(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tn&&t===void 0?od:t,this}function te(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}te.prototype.clear=Zh,te.prototype.delete=Qh,te.prototype.get=nd,te.prototype.has=sd,te.prototype.set=ad;function ud(){this.__data__=[],this.size=0}function or(e,t){for(var n=e.length;n--;)if(ke(e[n][0],t))return n;return-1}var cd=Array.prototype,ld=cd.splice;function fd(e){var t=this.__data__,n=or(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ld.call(t,n,1),--this.size,!0}function hd(e){var t=this.__data__,n=or(t,e);return n<0?void 0:t[n][1]}function dd(e){return or(this.__data__,e)>-1}function pd(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function It(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}It.prototype.clear=ud,It.prototype.delete=fd,It.prototype.get=hd,It.prototype.has=dd,It.prototype.set=pd;var md=he(At,"Map");const en=md;function gd(){this.size=0,this.__data__={hash:new te,map:new(en||It),string:new te}}function yd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ar(e,t){var n=e.__data__;return yd(t)?n[typeof t=="string"?"string":"hash"]:n.map}function vd(e){var t=ar(this,e).delete(e);return this.size-=t?1:0,t}function bd(e){return ar(this,e).get(e)}function _d(e){return ar(this,e).has(e)}function wd(e,t){var n=ar(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mt.prototype.clear=gd,Mt.prototype.delete=vd,Mt.prototype.get=bd,Mt.prototype.has=_d,Mt.prototype.set=wd;var Ed="Expected a function";function Fi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ed);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Fi.Cache||Mt),n}Fi.Cache=Mt;var Sd=500;function xd(e){var t=Fi(e,function(r){return n.size===Sd&&n.clear(),r}),n=t.cache;return t}var Td=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Od=/\\(\\)?/g,$d=xd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Td,function(n,r,i,s){t.push(i?s.replace(Od,"$1"):r||n)}),t});const Ad=$d;function de(e){return e==null?"":aa(e)}function Li(e,t){return dt(e)?e:Mi(e,t)?[e]:Ad(de(e))}function hn(e){if(typeof e=="string"||cn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function va(e,t){t=Li(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[hn(t[n++])];return n&&n==r?e:void 0}function ba(e,t,n){var r=e==null?void 0:va(e,t);return r===void 0?n:r}function jd(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Rd=ya(Object.getPrototypeOf,Object);const _a=Rd;var Dd="[object Object]",Cd=Function.prototype,Pd=Object.prototype,wa=Cd.toString,kd=Pd.hasOwnProperty,Nd=wa.call(Object);function Vi(e){if(!at(e)||Et(e)!=Dd)return!1;var t=_a(e);if(t===null)return!0;var n=kd.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wa.call(n)==Nd}var Bd="[object DOMException]",Id="[object Error]";function Ea(e){if(!at(e))return!1;var t=Et(e);return t==Id||t==Bd||typeof e.message=="string"&&typeof e.name=="string"&&!Vi(e)}var Md=la(function(e,t){try{return ua(e,void 0,t)}catch(n){return Ea(n)?n:new Error(n)}});const Fd=Md;function Ld(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function Vd(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Ld(e,t,n)}var Hd="\\ud800-\\udfff",Ud="\\u0300-\\u036f",zd="\\ufe20-\\ufe2f",qd="\\u20d0-\\u20ff",Kd=Ud+zd+qd,Jd="\\ufe0e\\ufe0f",Wd="\\u200d",Yd=RegExp("["+Wd+Hd+Kd+Jd+"]");function Sa(e){return Yd.test(e)}function Gd(e){return e.split("")}var xa="\\ud800-\\udfff",Zd="\\u0300-\\u036f",Qd="\\ufe20-\\ufe2f",Xd="\\u20d0-\\u20ff",tp=Zd+Qd+Xd,ep="\\ufe0e\\ufe0f",np="["+xa+"]",Qr="["+tp+"]",Xr="\\ud83c[\\udffb-\\udfff]",rp="(?:"+Qr+"|"+Xr+")",Ta="[^"+xa+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",$a="[\\ud800-\\udbff][\\udc00-\\udfff]",ip="\\u200d",Aa=rp+"?",ja="["+ep+"]?",sp="(?:"+ip+"(?:"+[Ta,Oa,$a].join("|")+")"+ja+Aa+")*",op=ja+Aa+sp,ap="(?:"+[Ta+Qr+"?",Qr,Oa,$a,np].join("|")+")",up=RegExp(Xr+"(?="+Xr+")|"+ap+op,"g");function cp(e){return e.match(up)||[]}function lp(e){return Sa(e)?cp(e):Gd(e)}function Ra(e){return function(t){t=de(t);var n=Sa(t)?lp(t):void 0,r=n?n[0]:t.charAt(0),i=n?Vd(n,1).join(""):t.slice(1);return r[e]()+i}}var fp=Ra("toUpperCase");const ur=fp;function hp(e){return ur(de(e).toLowerCase())}function dp(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r;++i<s;)n=t(n,e[i],i,e);return n}function Da(e){return function(t){return e==null?void 0:e[t]}}var pp={À:"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"},mp=Da(pp);const gp=mp;var yp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vp="\\u0300-\\u036f",bp="\\ufe20-\\ufe2f",_p="\\u20d0-\\u20ff",wp=vp+bp+_p,Ep="["+wp+"]",Sp=RegExp(Ep,"g");function xp(e){return e=de(e),e&&e.replace(yp,gp).replace(Sp,"")}var Tp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Op(e){return e.match(Tp)||[]}var $p=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ap(e){return $p.test(e)}var Ca="\\ud800-\\udfff",jp="\\u0300-\\u036f",Rp="\\ufe20-\\ufe2f",Dp="\\u20d0-\\u20ff",Cp=jp+Rp+Dp,Pa="\\u2700-\\u27bf",ka="a-z\\xdf-\\xf6\\xf8-\\xff",Pp="\\xac\\xb1\\xd7\\xf7",kp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Np="\\u2000-\\u206f",Bp=" \\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",Na="A-Z\\xc0-\\xd6\\xd8-\\xde",Ip="\\ufe0e\\ufe0f",Ba=Pp+kp+Np+Bp,Ia="['’]",Vs="["+Ba+"]",Mp="["+Cp+"]",Ma="\\d+",Fp="["+Pa+"]",Fa="["+ka+"]",La="[^"+Ca+Ba+Ma+Pa+ka+Na+"]",Lp="\\ud83c[\\udffb-\\udfff]",Vp="(?:"+Mp+"|"+Lp+")",Hp="[^"+Ca+"]",Va="(?:\\ud83c[\\udde6-\\uddff]){2}",Ha="[\\ud800-\\udbff][\\udc00-\\udfff]",be="["+Na+"]",Up="\\u200d",Hs="(?:"+Fa+"|"+La+")",zp="(?:"+be+"|"+La+")",Us="(?:"+Ia+"(?:d|ll|m|re|s|t|ve))?",zs="(?:"+Ia+"(?:D|LL|M|RE|S|T|VE))?",Ua=Vp+"?",za="["+Ip+"]?",qp="(?:"+Up+"(?:"+[Hp,Va,Ha].join("|")+")"+za+Ua+")*",Kp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wp=za+Ua+qp,Yp="(?:"+[Fp,Va,Ha].join("|")+")"+Wp,Gp=RegExp([be+"?"+Fa+"+"+Us+"(?="+[Vs,be,"$"].join("|")+")",zp+"+"+zs+"(?="+[Vs,be+Hs,"$"].join("|")+")",be+"?"+Hs+"+"+Us,be+"+"+zs,Jp,Kp,Ma,Yp].join("|"),"g");function Zp(e){return e.match(Gp)||[]}function Qp(e,t,n){return e=de(e),t=t,t===void 0?Ap(e)?Zp(e):Op(e):e.match(t)||[]}var Xp="['’]",tm=RegExp(Xp,"g");function Hi(e){return function(t){return dp(Qp(xp(t).replace(tm,"")),e,"")}}var em=Hi(function(e,t,n){return t=t.toLowerCase(),e+(n?hp(t):t)});const Nt=em;function nm(){this.__data__=new It,this.size=0}function rm(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function im(e){return this.__data__.get(e)}function sm(e){return this.__data__.has(e)}var om=200;function am(e,t){var n=this.__data__;if(n instanceof It){var r=n.__data__;if(!en||r.length<om-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mt(r)}return n.set(e,t),this.size=n.size,this}function $t(e){var t=this.__data__=new It(e);this.size=t.size}$t.prototype.clear=nm,$t.prototype.delete=rm,$t.prototype.get=im,$t.prototype.has=sm,$t.prototype.set=am;var qa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qs=qa&&typeof module=="object"&&module&&!module.nodeType&&module,um=qs&&qs.exports===qa,Ks=um?At.Buffer:void 0,Js=Ks?Ks.allocUnsafe:void 0;function Ka(e,t){if(t)return e.slice();var n=e.length,r=Js?Js(n):new e.constructor(n);return e.copy(r),r}function cm(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function lm(){return[]}var fm=Object.prototype,hm=fm.propertyIsEnumerable,Ws=Object.getOwnPropertySymbols,dm=Ws?function(e){return e==null?[]:(e=Object(e),cm(Ws(e),function(t){return hm.call(e,t)}))}:lm;const pm=dm;function mm(e,t,n){var r=t(e);return dt(e)?r:jd(r,n(e))}function ti(e){return mm(e,sr,pm)}var gm=he(At,"DataView");const ei=gm;var ym=he(At,"Promise");const ni=ym;var vm=he(At,"Set");const ri=vm;var Ys="[object Map]",bm="[object Object]",Gs="[object Promise]",Zs="[object Set]",Qs="[object WeakMap]",Xs="[object DataView]",_m=fe(ei),wm=fe(en),Em=fe(ni),Sm=fe(ri),xm=fe(Zr),Xt=Et;(ei&&Xt(new ei(new ArrayBuffer(1)))!=Xs||en&&Xt(new en)!=Ys||ni&&Xt(ni.resolve())!=Gs||ri&&Xt(new ri)!=Zs||Zr&&Xt(new Zr)!=Qs)&&(Xt=function(e){var t=Et(e),n=t==bm?e.constructor:void 0,r=n?fe(n):"";if(r)switch(r){case _m:return Xs;case wm:return Ys;case Em:return Gs;case Sm:return Zs;case xm:return Qs}return t});const nn=Xt;var Tm=Object.prototype,Om=Tm.hasOwnProperty;function $m(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Om.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Am=At.Uint8Array;const Kn=Am;function Ui(e){var t=new e.constructor(e.byteLength);return new Kn(t).set(new Kn(e)),t}function jm(e,t){var n=Ui(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Rm=/\w*$/;function Dm(e){var t=new e.constructor(e.source,Rm.exec(e));return t.lastIndex=e.lastIndex,t}var to=Ct?Ct.prototype:void 0,eo=to?to.valueOf:void 0;function Cm(e){return eo?Object(eo.call(e)):{}}function Ja(e,t){var n=t?Ui(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Pm="[object Boolean]",km="[object Date]",Nm="[object Map]",Bm="[object Number]",Im="[object RegExp]",Mm="[object Set]",Fm="[object String]",Lm="[object Symbol]",Vm="[object ArrayBuffer]",Hm="[object DataView]",Um="[object Float32Array]",zm="[object Float64Array]",qm="[object Int8Array]",Km="[object Int16Array]",Jm="[object Int32Array]",Wm="[object Uint8Array]",Ym="[object Uint8ClampedArray]",Gm="[object Uint16Array]",Zm="[object Uint32Array]";function Qm(e,t,n){var r=e.constructor;switch(t){case Vm:return Ui(e);case Pm:case km:return new r(+e);case Hm:return jm(e);case Um:case zm:case qm:case Km:case Jm:case Wm:case Ym:case Gm:case Zm:return Ja(e,n);case Nm:return new r;case Bm:case Fm:return new r(e);case Im:return Dm(e);case Mm:return new r;case Lm:return Cm(e)}}function Wa(e){return typeof e.constructor=="function"&&!Ni(e)?Cf(_a(e)):{}}var Xm="[object Map]";function tg(e){return at(e)&&nn(e)==Xm}var no=Pt&&Pt.isMap,eg=no?fn(no):tg;const ng=eg;var rg="[object Set]";function ig(e){return at(e)&&nn(e)==rg}var ro=Pt&&Pt.isSet,sg=ro?fn(ro):ig;const og=sg;var ag=1,Ya="[object Arguments]",ug="[object Array]",cg="[object Boolean]",lg="[object Date]",fg="[object Error]",Ga="[object Function]",hg="[object GeneratorFunction]",dg="[object Map]",pg="[object Number]",Za="[object Object]",mg="[object RegExp]",gg="[object Set]",yg="[object String]",vg="[object Symbol]",bg="[object WeakMap]",_g="[object ArrayBuffer]",wg="[object DataView]",Eg="[object Float32Array]",Sg="[object Float64Array]",xg="[object Int8Array]",Tg="[object Int16Array]",Og="[object Int32Array]",$g="[object Uint8Array]",Ag="[object Uint8ClampedArray]",jg="[object Uint16Array]",Rg="[object Uint32Array]",Q={};Q[Ya]=Q[ug]=Q[_g]=Q[wg]=Q[cg]=Q[lg]=Q[Eg]=Q[Sg]=Q[xg]=Q[Tg]=Q[Og]=Q[dg]=Q[pg]=Q[Za]=Q[mg]=Q[gg]=Q[yg]=Q[vg]=Q[$g]=Q[Ag]=Q[jg]=Q[Rg]=!0,Q[fg]=Q[Ga]=Q[bg]=!1;function Rn(e,t,n,r,i,s){var o,a=t&ag;if(o!==void 0)return o;if(!ut(e))return e;var c=dt(e);if(c)o=$m(e);else{var u=nn(e),l=u==Ga||u==hg;if(je(e))return Ka(e,a);if(u==Za||u==Ya||l&&!i)o=l?{}:Wa(e);else{if(!Q[u])return i?e:{};o=Qm(e,u,a)}}s||(s=new $t);var f=s.get(e);if(f)return f;s.set(e,o),og(e)?e.forEach(function(p){o.add(Rn(p,t,n,p,e,s))}):ng(e)&&e.forEach(function(p,m){o.set(m,Rn(p,t,n,m,e,s))});var h=ti,d=c?void 0:h(e);return qf(d||e,function(p,m){d&&(m=p,p=e[m]),Pi(o,m,Rn(p,t,n,m,e,s))}),o}var Dg=1,Cg=4;function rn(e){return Rn(e,Dg|Cg)}var Pg="__lodash_hash_undefined__";function kg(e){return this.__data__.set(e,Pg),this}function Ng(e){return this.__data__.has(e)}function Dn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Mt;++t<n;)this.add(e[t])}Dn.prototype.add=Dn.prototype.push=kg,Dn.prototype.has=Ng;function Bg(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Ig(e,t){return e.has(t)}var Mg=1,Fg=2;function Qa(e,t,n,r,i,s){var o=n&Mg,a=e.length,c=t.length;if(a!=c&&!(o&&c>a))return!1;var u=s.get(e),l=s.get(t);if(u&&l)return u==t&&l==e;var f=-1,h=!0,d=n&Fg?new Dn:void 0;for(s.set(e,t),s.set(t,e);++f<a;){var p=e[f],m=t[f];if(r)var b=o?r(m,p,f,t,e,s):r(p,m,f,e,t,s);if(b!==void 0){if(b)continue;h=!1;break}if(d){if(!Bg(t,function(E,g){if(!Ig(d,g)&&(p===E||i(p,E,n,r,s)))return d.push(g)})){h=!1;break}}else if(!(p===m||i(p,m,n,r,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function Lg(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Vg(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Hg=1,Ug=2,zg="[object Boolean]",qg="[object Date]",Kg="[object Error]",Jg="[object Map]",Wg="[object Number]",Yg="[object RegExp]",Gg="[object Set]",Zg="[object String]",Qg="[object Symbol]",Xg="[object ArrayBuffer]",ty="[object DataView]",io=Ct?Ct.prototype:void 0,Dr=io?io.valueOf:void 0;function ey(e,t,n,r,i,s,o){switch(n){case ty:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Xg:return!(e.byteLength!=t.byteLength||!s(new Kn(e),new Kn(t)));case zg:case qg:case Wg:return ke(+e,+t);case Kg:return e.name==t.name&&e.message==t.message;case Yg:case Zg:return e==t+"";case Jg:var a=Lg;case Gg:var c=r&Hg;if(a||(a=Vg),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;r|=Ug,o.set(e,t);var l=Qa(a(e),a(t),r,i,s,o);return o.delete(e),l;case Qg:if(Dr)return Dr.call(e)==Dr.call(t)}return!1}var ny=1,ry=Object.prototype,iy=ry.hasOwnProperty;function sy(e,t,n,r,i,s){var o=n&ny,a=ti(e),c=a.length,u=ti(t),l=u.length;if(c!=l&&!o)return!1;for(var f=c;f--;){var h=a[f];if(!(o?h in t:iy.call(t,h)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var b=o;++f<c;){h=a[f];var E=e[h],g=t[h];if(r)var v=o?r(g,E,h,t,e,s):r(E,g,h,e,t,s);if(!(v===void 0?E===g||i(E,g,n,r,s):v)){m=!1;break}b||(b=h=="constructor")}if(m&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(m=!1)}return s.delete(e),s.delete(t),m}var oy=1,so="[object Arguments]",oo="[object Array]",bn="[object Object]",ay=Object.prototype,ao=ay.hasOwnProperty;function uy(e,t,n,r,i,s){var o=dt(e),a=dt(t),c=o?oo:nn(e),u=a?oo:nn(t);c=c==so?bn:c,u=u==so?bn:u;var l=c==bn,f=u==bn,h=c==u;if(h&&je(e)){if(!je(t))return!1;o=!0,l=!1}if(h&&!l)return s||(s=new $t),o||Bi(e)?Qa(e,t,n,r,i,s):ey(e,t,c,n,r,i,s);if(!(n&oy)){var d=l&&ao.call(e,"__wrapped__"),p=f&&ao.call(t,"__wrapped__");if(d||p){var m=d?e.value():e,b=p?t.value():t;return s||(s=new $t),i(m,b,n,r,s)}}return h?(s||(s=new $t),sy(e,t,n,r,i,s)):!1}function cr(e,t,n,r,i){return e===t?!0:e==null||t==null||!at(e)&&!at(t)?e!==e&&t!==t:uy(e,t,n,r,cr,i)}var cy=1,ly=2;function fy(e,t,n,r){var i=n.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var a=o[0],c=e[a],u=o[1];if(o[2]){if(c===void 0&&!(a in e))return!1}else{var l=new $t,f;if(!(f===void 0?cr(u,c,cy|ly,r,l):f))return!1}}return!0}function Xa(e){return e===e&&!ut(e)}function hy(e){for(var t=sr(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Xa(i)]}return t}function tu(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function dy(e){var t=hy(e);return t.length==1&&t[0][2]?tu(t[0][0],t[0][1]):function(n){return n===e||fy(n,e,t)}}function py(e,t){return e!=null&&t in Object(e)}function my(e,t,n){t=Li(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var o=hn(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&ki(i)&&rr(o,i)&&(dt(e)||qn(e)))}function gy(e,t){return e!=null&&my(e,t,py)}var yy=1,vy=2;function by(e,t){return Mi(e)&&Xa(t)?tu(hn(e),t):function(n){var r=ba(n,e);return r===void 0&&r===t?gy(n,e):cr(t,r,yy|vy)}}function _y(e){return function(t){return t==null?void 0:t[e]}}function wy(e){return function(t){return va(t,e)}}function Ey(e){return Mi(e)?_y(hn(e)):wy(e)}function Sy(e){return typeof e=="function"?e:e==null?Ci:typeof e=="object"?dt(e)?by(e[0],e[1]):dy(e):Ey(e)}function xy(e,t,n,r){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}function Ty(e){return function(t,n,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var c=o[++i];if(n(s[c],c,s)===!1)break}return t}}var Oy=Ty();const eu=Oy;function $y(e,t){return e&&eu(e,t,sr)}function Ay(e,t){return function(n,r){if(n==null)return n;if(!ln(n))return e(n,r);for(var i=n.length,s=-1,o=Object(n);++s<i&&r(o[s],s,o)!==!1;);return n}}var jy=Ay($y);const Ry=jy;function Dy(e,t,n,r){return Ry(e,function(i,s,o){t(r,i,n(i),o)}),r}function Cy(e,t){return function(n,r){var i=dt(n)?xy:Dy,s={};return i(n,e,Sy(r),s)}}var Py=function(){return At.Date.now()};const Cr=Py;var ky="Expected a function",Ny=Math.max,By=Math.min;function zi(e,t,n){var r,i,s,o,a,c,u=0,l=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(ky);t=Cs(t)||0,ut(n)&&(l=!!n.leading,f="maxWait"in n,s=f?Ny(Cs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function d(y){var x=r,$=i;return r=i=void 0,u=y,o=e.apply($,x),o}function p(y){return u=y,a=setTimeout(E,t),l?d(y):o}function m(y){var x=y-c,$=y-u,V=t-x;return f?By(V,s-$):V}function b(y){var x=y-c,$=y-u;return c===void 0||x>=t||x<0||f&&$>=s}function E(){var y=Cr();if(b(y))return g(y);a=setTimeout(E,m(y))}function g(y){return a=void 0,h&&r?d(y):(r=i=void 0,o)}function v(){a!==void 0&&clearTimeout(a),u=0,r=c=i=a=void 0}function _(){return a===void 0?o:g(Cr())}function S(){var y=Cr(),x=b(y);if(r=arguments,i=this,c=y,x){if(a===void 0)return p(c);if(f)return clearTimeout(a),a=setTimeout(E,t),d(c)}return a===void 0&&(a=setTimeout(E,t)),o}return S.cancel=v,S.flush=_,S}function ii(e,t,n){(n!==void 0&&!ke(e[t],n)||n===void 0&&!(t in e))&&ir(e,t,n)}function Iy(e){return at(e)&&ln(e)}function si(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function My(e){return ca(e,Ii(e))}function Fy(e,t,n,r,i,s,o){var a=si(e,n),c=si(t,n),u=o.get(c);if(u){ii(e,n,u);return}var l=s?s(a,c,n+"",e,t,o):void 0,f=l===void 0;if(f){var h=dt(c),d=!h&&je(c),p=!h&&!d&&Bi(c);l=c,h||d||p?dt(a)?l=a:Iy(a)?l=kf(a):d?(f=!1,l=Ka(c,!0)):p?(f=!1,l=Ja(c,!0)):l=[]:Vi(c)||qn(c)?(l=a,qn(a)?l=My(a):(!ut(a)||ue(a))&&(l=Wa(c))):f=!1}f&&(o.set(c,l),i(l,c,r,s,o),o.delete(c)),ii(e,n,l)}function nu(e,t,n,r,i){e!==t&&eu(t,function(s,o){if(i||(i=new $t),ut(s))Fy(e,t,o,n,nu,r,i);else{var a=r?r(si(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),ii(e,o,a)}},Ii)}var Ly={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Vy=Da(Ly);const Hy=Vy;var ru=/[&<>"']/g,Uy=RegExp(ru.source);function zy(e){return e=de(e),e&&Uy.test(e)?e.replace(ru,Hy):e}var qy=Object.prototype,Ky=qy.hasOwnProperty,Jy=Cy(function(e,t,n){Ky.call(e,n)?e[n].push(t):ir(e,n,[t])});const iu=Jy;var Wy="[object String]";function bt(e){return typeof e=="string"||!dt(e)&&at(e)&&Et(e)==Wy}function Yy(e,t){return oa(t,function(n){return e[n]})}var Gy="[object ArrayBuffer]";function Zy(e){return at(e)&&Et(e)==Gy}var uo=Pt&&Pt.isArrayBuffer,Qy=uo?fn(uo):Zy;const Xy=Qy;var t1="[object Boolean]";function e1(e){return e===!0||e===!1||at(e)&&Et(e)==t1}var n1="[object Date]";function r1(e){return at(e)&&Et(e)==n1}var co=Pt&&Pt.isDate,i1=co?fn(co):r1;const s1=i1;function o1(e,t){return cr(e,t)}var a1="[object Number]";function su(e){return typeof e=="number"||at(e)&&Et(e)==a1}function u1(e){return su(e)&&e!=+e}function c1(e){return e===null}function l1(e){return e===void 0}var f1=Hi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const h1=f1;var d1=Ra("toLowerCase");const p1=d1;var m1=ha(function(e,t,n){nu(e,t,n)});const Dt=m1;function g1(e,t,n,r){if(!ut(e))return e;t=Li(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var c=hn(t[i]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var l=a[c];u=void 0,u===void 0&&(u=ut(l)?l:rr(t[i+1])?[]:{})}Pi(a,c,u),a=a[c]}return e}function y1(e,t,n){return e==null?e:g1(e,t,n)}var v1=Hi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});const b1=v1;var ou=Object.prototype,_1=ou.hasOwnProperty;function lo(e,t,n,r){return e===void 0||ke(e,ou[n])&&!_1.call(r,n)?t:e}var w1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function E1(e){return"\\"+w1[e]}var S1=/<%=([\s\S]+?)%>/g;const au=S1;var x1=/<%-([\s\S]+?)%>/g;const T1=x1;var O1=/<%([\s\S]+?)%>/g;const $1=O1;var A1={escape:T1,evaluate:$1,interpolate:au,variable:"",imports:{_:{escape:zy}}};const fo=A1;var j1="Invalid `variable` option passed into `_.template`",R1=/\b__p \+= '';/g,D1=/\b(__p \+=) '' \+/g,C1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P1=/[()=,{}\[\]\/\s]/,k1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_n=/($^)/,N1=/['\n\r\u2028\u2029\\]/g,B1=Object.prototype,ho=B1.hasOwnProperty;function uu(e,t,n){var r=fo.imports._.templateSettings||fo;n&&fa(e,t,n)&&(t=void 0),e=de(e),t=Ls({},t,r,lo);var i=Ls({},t.imports,r.imports,lo),s=sr(i),o=Yy(i,s),a,c,u=0,l=t.interpolate||_n,f="__p += '",h=RegExp((t.escape||_n).source+"|"+l.source+"|"+(l===au?k1:_n).source+"|"+(t.evaluate||_n).source+"|$","g"),d=ho.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
+ `:"";e.replace(h,function(b,E,g,v,_,S){return g||(g=v),f+=e.slice(u,S).replace(N1,E1),E&&(a=!0,f+=`' +
4
4
  __e(`+E+`) +
5
5
  '`),_&&(c=!0,f+=`';
6
6
  `+_+`;
@@ -10,20 +10,20 @@ __p += '`),g&&(f+=`' +
10
10
  `;var p=ho.call(t,"variable")&&t.variable;if(!p)f=`with (obj) {
11
11
  `+f+`
12
12
  }
13
- `;else if(k1.test(p))throw new Error(R1);f=(c?f.replace(D1,""):f).replace(C1,"$1").replace(P1,"$1;"),f="function("+(p||"obj")+`) {
13
+ `;else if(P1.test(p))throw new Error(j1);f=(c?f.replace(R1,""):f).replace(D1,"$1").replace(C1,"$1;"),f="function("+(p||"obj")+`) {
14
14
  `+(p?"":`obj || (obj = {});
15
15
  `)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
16
16
  function print() { __p += __j.call(arguments, '') }
17
17
  `:`;
18
18
  `)+f+`return __p
19
- }`;var m=Ld(function(){return Function(s,d+"return "+f).apply(void 0,o)});if(m.source=f,xa(m))throw m;return m}var M1="Expected a function";function fu(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(M1);return ut(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),zi(e,t,{leading:r,maxWait:t,trailing:i})}function oi(e){return ur(Nt(e))}var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hu={exports:{}};function F1(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 po={exports:{}},mo;function Jt(){return mo||(mo=1,function(e,t){(function(n,r){e.exports=r()})(ft,function(){var n=n||function(r,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 ft<"u"&&ft.crypto&&(s=ft.crypto),!s&&typeof F1=="function")try{s=require("crypto")}catch(g){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(g){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function g(){}return function(v){var _;return g.prototype=v,_=new g,g.prototype=null,_}}(),c={},u=c.lib={},l=u.Base=function(){return{extend:function(g){var v=a(this);return g&&v.mixIn(g),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var v in g)g.hasOwnProperty(v)&&(this[v]=g[v]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=u.WordArray=l.extend({init:function(g,v){g=this.words=g||[],v!=i?this.sigBytes=v:this.sigBytes=g.length*4},toString:function(g){return(g||d).stringify(this)},concat:function(g){var v=this.words,_=g.words,S=this.sigBytes,y=g.sigBytes;if(this.clamp(),S%4)for(var x=0;x<y;x++){var $=_[x>>>2]>>>24-x%4*8&255;v[S+x>>>2]|=$<<24-(S+x)%4*8}else for(var V=0;V<y;V+=4)v[S+V>>>2]=_[V>>>2];return this.sigBytes+=y,this},clamp:function(){var g=this.words,v=this.sigBytes;g[v>>>2]&=4294967295<<32-v%4*8,g.length=r.ceil(v/4)},clone:function(){var g=l.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var v=[],_=0;_<g;_+=4)v.push(o());return new f.init(v,g)}}),h=c.enc={},d=h.Hex={stringify:function(g){for(var v=g.words,_=g.sigBytes,S=[],y=0;y<_;y++){var x=v[y>>>2]>>>24-y%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(g){for(var v=g.length,_=[],S=0;S<v;S+=2)_[S>>>3]|=parseInt(g.substr(S,2),16)<<24-S%8*4;return new f.init(_,v/2)}},p=h.Latin1={stringify:function(g){for(var v=g.words,_=g.sigBytes,S=[],y=0;y<_;y++){var x=v[y>>>2]>>>24-y%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(g){for(var v=g.length,_=[],S=0;S<v;S++)_[S>>>2]|=(g.charCodeAt(S)&255)<<24-S%4*8;return new f.init(_,v)}},m=h.Utf8={stringify:function(g){try{return decodeURIComponent(escape(p.stringify(g)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(g){return p.parse(unescape(encodeURIComponent(g)))}},b=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=m.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var v,_=this._data,S=_.words,y=_.sigBytes,x=this.blockSize,$=x*4,V=y/$;g?V=r.ceil(V):V=r.max((V|0)-this._minBufferSize,0);var w=V*x,T=r.min(w*4,y);if(w){for(var M=0;M<w;M+=x)this._doProcessBlock(S,M);v=S.splice(0,w),_.sigBytes-=T}return new f.init(v,T)},clone:function(){var g=l.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});u.Hasher=b.extend({cfg:l.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(g){return function(v,_){return new g.init(_).finalize(v)}},_createHmacHelper:function(g){return function(v,_){return new E.HMAC.init(g,_).finalize(v)}}});var E=c.algo={};return c}(Math);return n})}(po)),po.exports}(function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){return function(r){var i=n,s=i.lib,o=s.WordArray,a=s.Hasher,c=i.algo,u=[];(function(){for(var m=0;m<64;m++)u[m]=r.abs(r.sin(m+1))*4294967296|0})();var l=c.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,b){for(var E=0;E<16;E++){var g=b+E,v=m[g];m[g]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var _=this._hash.words,S=m[b+0],y=m[b+1],x=m[b+2],$=m[b+3],V=m[b+4],w=m[b+5],T=m[b+6],M=m[b+7],C=m[b+8],I=m[b+9],D=m[b+10],k=m[b+11],U=m[b+12],H=m[b+13],q=m[b+14],K=m[b+15],j=_[0],P=_[1],N=_[2],B=_[3];j=f(j,P,N,B,S,7,u[0]),B=f(B,j,P,N,y,12,u[1]),N=f(N,B,j,P,x,17,u[2]),P=f(P,N,B,j,$,22,u[3]),j=f(j,P,N,B,V,7,u[4]),B=f(B,j,P,N,w,12,u[5]),N=f(N,B,j,P,T,17,u[6]),P=f(P,N,B,j,M,22,u[7]),j=f(j,P,N,B,C,7,u[8]),B=f(B,j,P,N,I,12,u[9]),N=f(N,B,j,P,D,17,u[10]),P=f(P,N,B,j,k,22,u[11]),j=f(j,P,N,B,U,7,u[12]),B=f(B,j,P,N,H,12,u[13]),N=f(N,B,j,P,q,17,u[14]),P=f(P,N,B,j,K,22,u[15]),j=h(j,P,N,B,y,5,u[16]),B=h(B,j,P,N,T,9,u[17]),N=h(N,B,j,P,k,14,u[18]),P=h(P,N,B,j,S,20,u[19]),j=h(j,P,N,B,w,5,u[20]),B=h(B,j,P,N,D,9,u[21]),N=h(N,B,j,P,K,14,u[22]),P=h(P,N,B,j,V,20,u[23]),j=h(j,P,N,B,I,5,u[24]),B=h(B,j,P,N,q,9,u[25]),N=h(N,B,j,P,$,14,u[26]),P=h(P,N,B,j,C,20,u[27]),j=h(j,P,N,B,H,5,u[28]),B=h(B,j,P,N,x,9,u[29]),N=h(N,B,j,P,M,14,u[30]),P=h(P,N,B,j,U,20,u[31]),j=d(j,P,N,B,w,4,u[32]),B=d(B,j,P,N,C,11,u[33]),N=d(N,B,j,P,k,16,u[34]),P=d(P,N,B,j,q,23,u[35]),j=d(j,P,N,B,y,4,u[36]),B=d(B,j,P,N,V,11,u[37]),N=d(N,B,j,P,M,16,u[38]),P=d(P,N,B,j,D,23,u[39]),j=d(j,P,N,B,H,4,u[40]),B=d(B,j,P,N,S,11,u[41]),N=d(N,B,j,P,$,16,u[42]),P=d(P,N,B,j,T,23,u[43]),j=d(j,P,N,B,I,4,u[44]),B=d(B,j,P,N,U,11,u[45]),N=d(N,B,j,P,K,16,u[46]),P=d(P,N,B,j,x,23,u[47]),j=p(j,P,N,B,S,6,u[48]),B=p(B,j,P,N,M,10,u[49]),N=p(N,B,j,P,q,15,u[50]),P=p(P,N,B,j,w,21,u[51]),j=p(j,P,N,B,U,6,u[52]),B=p(B,j,P,N,$,10,u[53]),N=p(N,B,j,P,D,15,u[54]),P=p(P,N,B,j,y,21,u[55]),j=p(j,P,N,B,C,6,u[56]),B=p(B,j,P,N,K,10,u[57]),N=p(N,B,j,P,T,15,u[58]),P=p(P,N,B,j,H,21,u[59]),j=p(j,P,N,B,V,6,u[60]),B=p(B,j,P,N,k,10,u[61]),N=p(N,B,j,P,x,15,u[62]),P=p(P,N,B,j,I,21,u[63]),_[0]=_[0]+j|0,_[1]=_[1]+P|0,_[2]=_[2]+N|0,_[3]=_[3]+B|0},_doFinalize:function(){var m=this._data,b=m.words,E=this._nDataBytes*8,g=m.sigBytes*8;b[g>>>5]|=128<<24-g%32;var v=r.floor(E/4294967296),_=E;b[(g+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,b[(g+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,m.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,y=S.words,x=0;x<4;x++){var $=y[x];y[x]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return S},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function f(m,b,E,g,v,_,S){var y=m+(b&E|~b&g)+v+S;return(y<<_|y>>>32-_)+b}function h(m,b,E,g,v,_,S){var y=m+(b&g|E&~g)+v+S;return(y<<_|y>>>32-_)+b}function d(m,b,E,g,v,_,S){var y=m+(b^E^g)+v+S;return(y<<_|y>>>32-_)+b}function p(m,b,E,g,v,_,S){var y=m+(E^(b|~g))+v+S;return(y<<_|y>>>32-_)+b}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),n.MD5})})(hu);var du=hu.exports;const L1=Ne(du);var pu={exports:{}};(function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.enc;o.Base64={stringify:function(c){var u=c.words,l=c.sigBytes,f=this._map;c.clamp();for(var h=[],d=0;d<l;d+=3)for(var p=u[d>>>2]>>>24-d%4*8&255,m=u[d+1>>>2]>>>24-(d+1)%4*8&255,b=u[d+2>>>2]>>>24-(d+2)%4*8&255,E=p<<16|m<<8|b,g=0;g<4&&d+g*.75<l;g++)h.push(f.charAt(E>>>6*(3-g)&63));var v=f.charAt(64);if(v)for(;h.length%4;)h.push(v);return h.join("")},parse:function(c){var u=c.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<l.length;h++)f[l.charCodeAt(h)]=h}var d=l.charAt(64);if(d){var p=c.indexOf(d);p!==-1&&(u=p)}return a(c,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(c,u,l){for(var f=[],h=0,d=0;d<u;d++)if(d%4){var p=l[c.charCodeAt(d-1)]<<d%4*2,m=l[c.charCodeAt(d)]>>>6-d%4*2,b=p|m;f[h>>>2]|=b<<24-h%4*8,h++}return s.create(f,h)}}(),n.enc.Base64})})(pu);var mu=pu.exports;const gu=Ne(mu);var yu={exports:{}};(function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){return n.enc.Utf8})})(yu);var V1=yu.exports;const qi=Ne(V1);var vu={exports:{}},go={exports:{}},yo={exports:{}},vo;function H1(){return vo||(vo=1,function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=i.Hasher,a=r.algo,c=[],u=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var h=this._hash.words,d=h[0],p=h[1],m=h[2],b=h[3],E=h[4],g=0;g<80;g++){if(g<16)c[g]=l[f+g]|0;else{var v=c[g-3]^c[g-8]^c[g-14]^c[g-16];c[g]=v<<1|v>>>31}var _=(d<<5|d>>>27)+E+c[g];g<20?_+=(p&m|~p&b)+1518500249:g<40?_+=(p^m^b)+1859775393:g<60?_+=(p&m|p&b|m&b)-1894007588:_+=(p^m^b)-899497514,E=b,b=m,m=p<<30|p>>>2,p=d,d=_}h[0]=h[0]+d|0,h[1]=h[1]+p|0,h[2]=h[2]+m|0,h[3]=h[3]+b|0,h[4]=h[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,h=this._nDataBytes*8,d=l.sigBytes*8;return f[d>>>5]|=128<<24-d%32,f[(d+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(d+64>>>9<<4)+15]=h,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=o.clone.call(this);return l._hash=this._hash.clone(),l}});r.SHA1=o._createHelper(u),r.HmacSHA1=o._createHmacHelper(u)}(),n.SHA1})}(yo)),yo.exports}var bo={exports:{}},_o;function U1(){return _o||(_o=1,function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){(function(){var r=n,i=r.lib,s=i.Base,o=r.enc,a=o.Utf8,c=r.algo;c.HMAC=s.extend({init:function(u,l){u=this._hasher=new u.init,typeof l=="string"&&(l=a.parse(l));var f=u.blockSize,h=f*4;l.sigBytes>h&&(l=u.finalize(l)),l.clamp();for(var d=this._oKey=l.clone(),p=this._iKey=l.clone(),m=d.words,b=p.words,E=0;E<f;E++)m[E]^=1549556828,b[E]^=909522486;d.sigBytes=p.sigBytes=h,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var l=this._hasher,f=l.finalize(u);l.reset();var h=l.finalize(this._oKey.clone().concat(f));return h}})})()})}(bo)),bo.exports}var wo;function bu(){return wo||(wo=1,function(e,t){(function(n,r,i){e.exports=r(Jt(),H1(),U1())})(ft,function(n){return function(){var r=n,i=r.lib,s=i.Base,o=i.WordArray,a=r.algo,c=a.MD5,u=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:c,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var h,d=this.cfg,p=d.hasher.create(),m=o.create(),b=m.words,E=d.keySize,g=d.iterations;b.length<E;){h&&p.update(h),h=p.update(l).finalize(f),p.reset();for(var v=1;v<g;v++)h=p.finalize(h),p.reset();m.concat(h)}return m.sigBytes=E*4,m}});r.EvpKDF=function(l,f,h){return u.create(h).compute(l,f)}}(),n.EvpKDF})}(go)),go.exports}var Eo={exports:{}},So;function z1(){return So||(So=1,function(e,t){(function(n,r,i){e.exports=r(Jt(),bu())})(ft,function(n){n.lib.Cipher||function(r){var i=n,s=i.lib,o=s.Base,a=s.WordArray,c=s.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var l=u.Base64,f=i.algo,h=f.EvpKDF,d=s.Cipher=c.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(){c.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:y}return function(T){return{encrypt:function(M,C,I){return w(C).encrypt(T,M,C,I)},decrypt:function(M,C,I){return w(C).decrypt(T,M,C,I)}}}}()});s.StreamCipher=d.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var p=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=p.CBC=function(){var w=m.extend();w.Encryptor=w.extend({processBlock:function(M,C){var I=this._cipher,D=I.blockSize;T.call(this,M,C,D),I.encryptBlock(M,C),this._prevBlock=M.slice(C,C+D)}}),w.Decryptor=w.extend({processBlock:function(M,C){var I=this._cipher,D=I.blockSize,k=M.slice(C,C+D);I.decryptBlock(M,C),T.call(this,M,C,D),this._prevBlock=k}});function T(M,C,I){var D,k=this._iv;k?(D=k,this._iv=r):D=this._prevBlock;for(var U=0;U<I;U++)M[C+U]^=D[U]}return w}(),E=i.pad={},g=E.Pkcs7={pad:function(w,T){for(var M=T*4,C=M-w.sigBytes%M,I=C<<24|C<<16|C<<8|C,D=[],k=0;k<C;k+=4)D.push(I);var U=a.create(D,C);w.concat(U)},unpad:function(w){var T=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=T}};s.BlockCipher=d.extend({cfg:d.cfg.extend({mode:b,padding:g}),reset:function(){var w;d.reset.call(this);var T=this.cfg,M=T.iv,C=T.mode;this._xformMode==this._ENC_XFORM_MODE?w=C.createEncryptor:(w=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,M&&M.words):(this._mode=w.call(C,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 v=s.CipherParams=o.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(w){var T,M=w.ciphertext,C=w.salt;return C?T=a.create([1398893684,1701076831]).concat(C).concat(M):T=M,T.toString(l)},parse:function(w){var T,M=l.parse(w),C=M.words;return C[0]==1398893684&&C[1]==1701076831&&(T=a.create(C.slice(2,4)),C.splice(0,4),M.sigBytes-=16),v.create({ciphertext:M,salt:T})}},y=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(w,T,M,C){C=this.cfg.extend(C);var I=w.createEncryptor(M,C),D=I.finalize(T),k=I.cfg;return v.create({ciphertext:D,key:M,iv:k.iv,algorithm:w,mode:k.mode,padding:k.padding,blockSize:w.blockSize,formatter:C.format})},decrypt:function(w,T,M,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var I=w.createDecryptor(M,C).finalize(T.ciphertext);return I},_parse:function(w,T){return typeof w=="string"?T.parse(w,this):w}}),x=i.kdf={},$=x.OpenSSL={execute:function(w,T,M,C,I){if(C||(C=a.random(64/8)),I)var D=h.create({keySize:T+M,hasher:I}).compute(w,C);else var D=h.create({keySize:T+M}).compute(w,C);var k=a.create(D.words.slice(T),M*4);return D.sigBytes=T*4,v.create({key:D,iv:k,salt:C})}},V=s.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:$}),encrypt:function(w,T,M,C){C=this.cfg.extend(C);var I=C.kdf.execute(M,w.keySize,w.ivSize,C.salt,C.hasher);C.iv=I.iv;var D=y.encrypt.call(this,w,T,I.key,C);return D.mixIn(I),D},decrypt:function(w,T,M,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var I=C.kdf.execute(M,w.keySize,w.ivSize,T.salt,C.hasher);C.iv=I.iv;var D=y.decrypt.call(this,w,T,I.key,C);return D}})}()})}(Eo)),Eo.exports}(function(e,t){(function(n,r,i){e.exports=r(Jt(),mu,du,bu(),z1())})(ft,function(n){return function(){var r=n,i=r.lib,s=i.BlockCipher,o=r.algo,a=[],c=[],u=[],l=[],f=[],h=[],d=[],p=[],m=[],b=[];(function(){for(var v=[],_=0;_<256;_++)_<128?v[_]=_<<1:v[_]=_<<1^283;for(var S=0,y=0,_=0;_<256;_++){var x=y^y<<1^y<<2^y<<3^y<<4;x=x>>>8^x&255^99,a[S]=x,c[x]=S;var $=v[S],V=v[$],w=v[V],T=v[x]*257^x*16843008;u[S]=T<<24|T>>>8,l[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,h[S]=T;var T=w*16843009^V*65537^$*257^S*16843008;d[x]=T<<24|T>>>8,p[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,S?(S=$^v[v[v[w^$]]],y^=v[v[y]]):S=y=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=s.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,y=_.sigBytes/4,x=this._nRounds=y+6,$=(x+1)*4,V=this._keySchedule=[],w=0;w<$;w++)w<y?V[w]=S[w]:(v=V[w-1],w%y?y>6&&w%y==4&&(v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255]):(v=v<<8|v>>>24,v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255],v^=E[w/y|0]<<24),V[w]=V[w-y]^v);for(var T=this._invKeySchedule=[],M=0;M<$;M++){var w=$-M;if(M%4)var v=V[w];else var v=V[w-4];M<4||w<=4?T[M]=v:T[M]=d[a[v>>>24]]^p[a[v>>>16&255]]^m[a[v>>>8&255]]^b[a[v&255]]}}},encryptBlock:function(v,_){this._doCryptBlock(v,_,this._keySchedule,u,l,f,h,a)},decryptBlock:function(v,_){var S=v[_+1];v[_+1]=v[_+3],v[_+3]=S,this._doCryptBlock(v,_,this._invKeySchedule,d,p,m,b,c);var S=v[_+1];v[_+1]=v[_+3],v[_+3]=S},_doCryptBlock:function(v,_,S,y,x,$,V,w){for(var T=this._nRounds,M=v[_]^S[0],C=v[_+1]^S[1],I=v[_+2]^S[2],D=v[_+3]^S[3],k=4,U=1;U<T;U++){var H=y[M>>>24]^x[C>>>16&255]^$[I>>>8&255]^V[D&255]^S[k++],q=y[C>>>24]^x[I>>>16&255]^$[D>>>8&255]^V[M&255]^S[k++],K=y[I>>>24]^x[D>>>16&255]^$[M>>>8&255]^V[C&255]^S[k++],j=y[D>>>24]^x[M>>>16&255]^$[C>>>8&255]^V[I&255]^S[k++];M=H,C=q,I=K,D=j}var H=(w[M>>>24]<<24|w[C>>>16&255]<<16|w[I>>>8&255]<<8|w[D&255])^S[k++],q=(w[C>>>24]<<24|w[I>>>16&255]<<16|w[D>>>8&255]<<8|w[M&255])^S[k++],K=(w[I>>>24]<<24|w[D>>>16&255]<<16|w[M>>>8&255]<<8|w[C&255])^S[k++],j=(w[D>>>24]<<24|w[M>>>16&255]<<16|w[C>>>8&255]<<8|w[I&255])^S[k++];v[_]=H,v[_+1]=q,v[_+2]=K,v[_+3]=j},keySize:256/32});r.AES=s._createHelper(g)}(),n.AES})})(vu);var q1=vu.exports;const _u=Ne(q1);var K1="0123456789abcdefghijklmnopqrstuvwxyz";function Bt(e){return K1.charAt(e)}function J1(e,t){return e&t}function wn(e,t){return e|t}function xo(e,t){return e^t}function To(e,t){return e&~t}function W1(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 Y1(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var _e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wu="=";function Jn(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=_e.charAt(n>>6)+_e.charAt(n&63);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=_e.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=_e.charAt(n>>2)+_e.charAt((n&3)<<4));(r.length&3)>0;)r+=wu;return r}function Oo(e){var t="",n,r=0,i=0;for(n=0;n<e.length&&e.charAt(n)!=wu;++n){var s=_e.indexOf(e.charAt(n));s<0||(r==0?(t+=Bt(s>>2),i=s&3,r=1):r==1?(t+=Bt(i<<2|s>>4),i=s&15,r=2):r==2?(t+=Bt(i),t+=Bt(s>>2),i=s&3,r=3):(t+=Bt(i<<2|s>>4),t+=Bt(s&15),r=0))}return r==1&&(t+=Bt(i<<2)),t}var ge,G1={decode:function(e){var t;if(ge===void 0){var n="0123456789ABCDEF",r=` \f
19
+ }`;var m=Fd(function(){return Function(s,d+"return "+f).apply(void 0,o)});if(m.source=f,Ea(m))throw m;return m}var I1="Expected a function";function cu(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(I1);return ut(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),zi(e,t,{leading:r,maxWait:t,trailing:i})}function oi(e){return ur(Nt(e))}var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lu={exports:{}};function M1(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 po={exports:{}},mo;function Jt(){return mo||(mo=1,function(e,t){(function(n,r){e.exports=r()})(ft,function(){var n=n||function(r,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 ft<"u"&&ft.crypto&&(s=ft.crypto),!s&&typeof M1=="function")try{s=require("crypto")}catch(g){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(g){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function g(){}return function(v){var _;return g.prototype=v,_=new g,g.prototype=null,_}}(),c={},u=c.lib={},l=u.Base=function(){return{extend:function(g){var v=a(this);return g&&v.mixIn(g),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var v in g)g.hasOwnProperty(v)&&(this[v]=g[v]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=u.WordArray=l.extend({init:function(g,v){g=this.words=g||[],v!=i?this.sigBytes=v:this.sigBytes=g.length*4},toString:function(g){return(g||d).stringify(this)},concat:function(g){var v=this.words,_=g.words,S=this.sigBytes,y=g.sigBytes;if(this.clamp(),S%4)for(var x=0;x<y;x++){var $=_[x>>>2]>>>24-x%4*8&255;v[S+x>>>2]|=$<<24-(S+x)%4*8}else for(var V=0;V<y;V+=4)v[S+V>>>2]=_[V>>>2];return this.sigBytes+=y,this},clamp:function(){var g=this.words,v=this.sigBytes;g[v>>>2]&=4294967295<<32-v%4*8,g.length=r.ceil(v/4)},clone:function(){var g=l.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var v=[],_=0;_<g;_+=4)v.push(o());return new f.init(v,g)}}),h=c.enc={},d=h.Hex={stringify:function(g){for(var v=g.words,_=g.sigBytes,S=[],y=0;y<_;y++){var x=v[y>>>2]>>>24-y%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(g){for(var v=g.length,_=[],S=0;S<v;S+=2)_[S>>>3]|=parseInt(g.substr(S,2),16)<<24-S%8*4;return new f.init(_,v/2)}},p=h.Latin1={stringify:function(g){for(var v=g.words,_=g.sigBytes,S=[],y=0;y<_;y++){var x=v[y>>>2]>>>24-y%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(g){for(var v=g.length,_=[],S=0;S<v;S++)_[S>>>2]|=(g.charCodeAt(S)&255)<<24-S%4*8;return new f.init(_,v)}},m=h.Utf8={stringify:function(g){try{return decodeURIComponent(escape(p.stringify(g)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(g){return p.parse(unescape(encodeURIComponent(g)))}},b=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=m.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var v,_=this._data,S=_.words,y=_.sigBytes,x=this.blockSize,$=x*4,V=y/$;g?V=r.ceil(V):V=r.max((V|0)-this._minBufferSize,0);var w=V*x,T=r.min(w*4,y);if(w){for(var M=0;M<w;M+=x)this._doProcessBlock(S,M);v=S.splice(0,w),_.sigBytes-=T}return new f.init(v,T)},clone:function(){var g=l.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});u.Hasher=b.extend({cfg:l.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(g){return function(v,_){return new g.init(_).finalize(v)}},_createHmacHelper:function(g){return function(v,_){return new E.HMAC.init(g,_).finalize(v)}}});var E=c.algo={};return c}(Math);return n})}(po)),po.exports}(function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){return function(r){var i=n,s=i.lib,o=s.WordArray,a=s.Hasher,c=i.algo,u=[];(function(){for(var m=0;m<64;m++)u[m]=r.abs(r.sin(m+1))*4294967296|0})();var l=c.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,b){for(var E=0;E<16;E++){var g=b+E,v=m[g];m[g]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var _=this._hash.words,S=m[b+0],y=m[b+1],x=m[b+2],$=m[b+3],V=m[b+4],w=m[b+5],T=m[b+6],M=m[b+7],C=m[b+8],I=m[b+9],D=m[b+10],k=m[b+11],U=m[b+12],H=m[b+13],q=m[b+14],K=m[b+15],j=_[0],P=_[1],N=_[2],B=_[3];j=f(j,P,N,B,S,7,u[0]),B=f(B,j,P,N,y,12,u[1]),N=f(N,B,j,P,x,17,u[2]),P=f(P,N,B,j,$,22,u[3]),j=f(j,P,N,B,V,7,u[4]),B=f(B,j,P,N,w,12,u[5]),N=f(N,B,j,P,T,17,u[6]),P=f(P,N,B,j,M,22,u[7]),j=f(j,P,N,B,C,7,u[8]),B=f(B,j,P,N,I,12,u[9]),N=f(N,B,j,P,D,17,u[10]),P=f(P,N,B,j,k,22,u[11]),j=f(j,P,N,B,U,7,u[12]),B=f(B,j,P,N,H,12,u[13]),N=f(N,B,j,P,q,17,u[14]),P=f(P,N,B,j,K,22,u[15]),j=h(j,P,N,B,y,5,u[16]),B=h(B,j,P,N,T,9,u[17]),N=h(N,B,j,P,k,14,u[18]),P=h(P,N,B,j,S,20,u[19]),j=h(j,P,N,B,w,5,u[20]),B=h(B,j,P,N,D,9,u[21]),N=h(N,B,j,P,K,14,u[22]),P=h(P,N,B,j,V,20,u[23]),j=h(j,P,N,B,I,5,u[24]),B=h(B,j,P,N,q,9,u[25]),N=h(N,B,j,P,$,14,u[26]),P=h(P,N,B,j,C,20,u[27]),j=h(j,P,N,B,H,5,u[28]),B=h(B,j,P,N,x,9,u[29]),N=h(N,B,j,P,M,14,u[30]),P=h(P,N,B,j,U,20,u[31]),j=d(j,P,N,B,w,4,u[32]),B=d(B,j,P,N,C,11,u[33]),N=d(N,B,j,P,k,16,u[34]),P=d(P,N,B,j,q,23,u[35]),j=d(j,P,N,B,y,4,u[36]),B=d(B,j,P,N,V,11,u[37]),N=d(N,B,j,P,M,16,u[38]),P=d(P,N,B,j,D,23,u[39]),j=d(j,P,N,B,H,4,u[40]),B=d(B,j,P,N,S,11,u[41]),N=d(N,B,j,P,$,16,u[42]),P=d(P,N,B,j,T,23,u[43]),j=d(j,P,N,B,I,4,u[44]),B=d(B,j,P,N,U,11,u[45]),N=d(N,B,j,P,K,16,u[46]),P=d(P,N,B,j,x,23,u[47]),j=p(j,P,N,B,S,6,u[48]),B=p(B,j,P,N,M,10,u[49]),N=p(N,B,j,P,q,15,u[50]),P=p(P,N,B,j,w,21,u[51]),j=p(j,P,N,B,U,6,u[52]),B=p(B,j,P,N,$,10,u[53]),N=p(N,B,j,P,D,15,u[54]),P=p(P,N,B,j,y,21,u[55]),j=p(j,P,N,B,C,6,u[56]),B=p(B,j,P,N,K,10,u[57]),N=p(N,B,j,P,T,15,u[58]),P=p(P,N,B,j,H,21,u[59]),j=p(j,P,N,B,V,6,u[60]),B=p(B,j,P,N,k,10,u[61]),N=p(N,B,j,P,x,15,u[62]),P=p(P,N,B,j,I,21,u[63]),_[0]=_[0]+j|0,_[1]=_[1]+P|0,_[2]=_[2]+N|0,_[3]=_[3]+B|0},_doFinalize:function(){var m=this._data,b=m.words,E=this._nDataBytes*8,g=m.sigBytes*8;b[g>>>5]|=128<<24-g%32;var v=r.floor(E/4294967296),_=E;b[(g+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,b[(g+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,m.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,y=S.words,x=0;x<4;x++){var $=y[x];y[x]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return S},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function f(m,b,E,g,v,_,S){var y=m+(b&E|~b&g)+v+S;return(y<<_|y>>>32-_)+b}function h(m,b,E,g,v,_,S){var y=m+(b&g|E&~g)+v+S;return(y<<_|y>>>32-_)+b}function d(m,b,E,g,v,_,S){var y=m+(b^E^g)+v+S;return(y<<_|y>>>32-_)+b}function p(m,b,E,g,v,_,S){var y=m+(E^(b|~g))+v+S;return(y<<_|y>>>32-_)+b}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),n.MD5})})(lu);var fu=lu.exports;const F1=Ne(fu);var hu={exports:{}};(function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.enc;o.Base64={stringify:function(c){var u=c.words,l=c.sigBytes,f=this._map;c.clamp();for(var h=[],d=0;d<l;d+=3)for(var p=u[d>>>2]>>>24-d%4*8&255,m=u[d+1>>>2]>>>24-(d+1)%4*8&255,b=u[d+2>>>2]>>>24-(d+2)%4*8&255,E=p<<16|m<<8|b,g=0;g<4&&d+g*.75<l;g++)h.push(f.charAt(E>>>6*(3-g)&63));var v=f.charAt(64);if(v)for(;h.length%4;)h.push(v);return h.join("")},parse:function(c){var u=c.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var h=0;h<l.length;h++)f[l.charCodeAt(h)]=h}var d=l.charAt(64);if(d){var p=c.indexOf(d);p!==-1&&(u=p)}return a(c,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(c,u,l){for(var f=[],h=0,d=0;d<u;d++)if(d%4){var p=l[c.charCodeAt(d-1)]<<d%4*2,m=l[c.charCodeAt(d)]>>>6-d%4*2,b=p|m;f[h>>>2]|=b<<24-h%4*8,h++}return s.create(f,h)}}(),n.enc.Base64})})(hu);var du=hu.exports;const pu=Ne(du);var mu={exports:{}};(function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){return n.enc.Utf8})})(mu);var L1=mu.exports;const qi=Ne(L1);var gu={exports:{}},go={exports:{}},yo={exports:{}},vo;function V1(){return vo||(vo=1,function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=i.Hasher,a=r.algo,c=[],u=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var h=this._hash.words,d=h[0],p=h[1],m=h[2],b=h[3],E=h[4],g=0;g<80;g++){if(g<16)c[g]=l[f+g]|0;else{var v=c[g-3]^c[g-8]^c[g-14]^c[g-16];c[g]=v<<1|v>>>31}var _=(d<<5|d>>>27)+E+c[g];g<20?_+=(p&m|~p&b)+1518500249:g<40?_+=(p^m^b)+1859775393:g<60?_+=(p&m|p&b|m&b)-1894007588:_+=(p^m^b)-899497514,E=b,b=m,m=p<<30|p>>>2,p=d,d=_}h[0]=h[0]+d|0,h[1]=h[1]+p|0,h[2]=h[2]+m|0,h[3]=h[3]+b|0,h[4]=h[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,h=this._nDataBytes*8,d=l.sigBytes*8;return f[d>>>5]|=128<<24-d%32,f[(d+64>>>9<<4)+14]=Math.floor(h/4294967296),f[(d+64>>>9<<4)+15]=h,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=o.clone.call(this);return l._hash=this._hash.clone(),l}});r.SHA1=o._createHelper(u),r.HmacSHA1=o._createHmacHelper(u)}(),n.SHA1})}(yo)),yo.exports}var bo={exports:{}},_o;function H1(){return _o||(_o=1,function(e,t){(function(n,r){e.exports=r(Jt())})(ft,function(n){(function(){var r=n,i=r.lib,s=i.Base,o=r.enc,a=o.Utf8,c=r.algo;c.HMAC=s.extend({init:function(u,l){u=this._hasher=new u.init,typeof l=="string"&&(l=a.parse(l));var f=u.blockSize,h=f*4;l.sigBytes>h&&(l=u.finalize(l)),l.clamp();for(var d=this._oKey=l.clone(),p=this._iKey=l.clone(),m=d.words,b=p.words,E=0;E<f;E++)m[E]^=1549556828,b[E]^=909522486;d.sigBytes=p.sigBytes=h,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var l=this._hasher,f=l.finalize(u);l.reset();var h=l.finalize(this._oKey.clone().concat(f));return h}})})()})}(bo)),bo.exports}var wo;function yu(){return wo||(wo=1,function(e,t){(function(n,r,i){e.exports=r(Jt(),V1(),H1())})(ft,function(n){return function(){var r=n,i=r.lib,s=i.Base,o=i.WordArray,a=r.algo,c=a.MD5,u=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:c,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var h,d=this.cfg,p=d.hasher.create(),m=o.create(),b=m.words,E=d.keySize,g=d.iterations;b.length<E;){h&&p.update(h),h=p.update(l).finalize(f),p.reset();for(var v=1;v<g;v++)h=p.finalize(h),p.reset();m.concat(h)}return m.sigBytes=E*4,m}});r.EvpKDF=function(l,f,h){return u.create(h).compute(l,f)}}(),n.EvpKDF})}(go)),go.exports}var Eo={exports:{}},So;function U1(){return So||(So=1,function(e,t){(function(n,r,i){e.exports=r(Jt(),yu())})(ft,function(n){n.lib.Cipher||function(r){var i=n,s=i.lib,o=s.Base,a=s.WordArray,c=s.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var l=u.Base64,f=i.algo,h=f.EvpKDF,d=s.Cipher=c.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(){c.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:y}return function(T){return{encrypt:function(M,C,I){return w(C).encrypt(T,M,C,I)},decrypt:function(M,C,I){return w(C).decrypt(T,M,C,I)}}}}()});s.StreamCipher=d.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var p=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=p.CBC=function(){var w=m.extend();w.Encryptor=w.extend({processBlock:function(M,C){var I=this._cipher,D=I.blockSize;T.call(this,M,C,D),I.encryptBlock(M,C),this._prevBlock=M.slice(C,C+D)}}),w.Decryptor=w.extend({processBlock:function(M,C){var I=this._cipher,D=I.blockSize,k=M.slice(C,C+D);I.decryptBlock(M,C),T.call(this,M,C,D),this._prevBlock=k}});function T(M,C,I){var D,k=this._iv;k?(D=k,this._iv=r):D=this._prevBlock;for(var U=0;U<I;U++)M[C+U]^=D[U]}return w}(),E=i.pad={},g=E.Pkcs7={pad:function(w,T){for(var M=T*4,C=M-w.sigBytes%M,I=C<<24|C<<16|C<<8|C,D=[],k=0;k<C;k+=4)D.push(I);var U=a.create(D,C);w.concat(U)},unpad:function(w){var T=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=T}};s.BlockCipher=d.extend({cfg:d.cfg.extend({mode:b,padding:g}),reset:function(){var w;d.reset.call(this);var T=this.cfg,M=T.iv,C=T.mode;this._xformMode==this._ENC_XFORM_MODE?w=C.createEncryptor:(w=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,M&&M.words):(this._mode=w.call(C,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 v=s.CipherParams=o.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(w){var T,M=w.ciphertext,C=w.salt;return C?T=a.create([1398893684,1701076831]).concat(C).concat(M):T=M,T.toString(l)},parse:function(w){var T,M=l.parse(w),C=M.words;return C[0]==1398893684&&C[1]==1701076831&&(T=a.create(C.slice(2,4)),C.splice(0,4),M.sigBytes-=16),v.create({ciphertext:M,salt:T})}},y=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(w,T,M,C){C=this.cfg.extend(C);var I=w.createEncryptor(M,C),D=I.finalize(T),k=I.cfg;return v.create({ciphertext:D,key:M,iv:k.iv,algorithm:w,mode:k.mode,padding:k.padding,blockSize:w.blockSize,formatter:C.format})},decrypt:function(w,T,M,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var I=w.createDecryptor(M,C).finalize(T.ciphertext);return I},_parse:function(w,T){return typeof w=="string"?T.parse(w,this):w}}),x=i.kdf={},$=x.OpenSSL={execute:function(w,T,M,C,I){if(C||(C=a.random(64/8)),I)var D=h.create({keySize:T+M,hasher:I}).compute(w,C);else var D=h.create({keySize:T+M}).compute(w,C);var k=a.create(D.words.slice(T),M*4);return D.sigBytes=T*4,v.create({key:D,iv:k,salt:C})}},V=s.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:$}),encrypt:function(w,T,M,C){C=this.cfg.extend(C);var I=C.kdf.execute(M,w.keySize,w.ivSize,C.salt,C.hasher);C.iv=I.iv;var D=y.encrypt.call(this,w,T,I.key,C);return D.mixIn(I),D},decrypt:function(w,T,M,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var I=C.kdf.execute(M,w.keySize,w.ivSize,T.salt,C.hasher);C.iv=I.iv;var D=y.decrypt.call(this,w,T,I.key,C);return D}})}()})}(Eo)),Eo.exports}(function(e,t){(function(n,r,i){e.exports=r(Jt(),du,fu,yu(),U1())})(ft,function(n){return function(){var r=n,i=r.lib,s=i.BlockCipher,o=r.algo,a=[],c=[],u=[],l=[],f=[],h=[],d=[],p=[],m=[],b=[];(function(){for(var v=[],_=0;_<256;_++)_<128?v[_]=_<<1:v[_]=_<<1^283;for(var S=0,y=0,_=0;_<256;_++){var x=y^y<<1^y<<2^y<<3^y<<4;x=x>>>8^x&255^99,a[S]=x,c[x]=S;var $=v[S],V=v[$],w=v[V],T=v[x]*257^x*16843008;u[S]=T<<24|T>>>8,l[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,h[S]=T;var T=w*16843009^V*65537^$*257^S*16843008;d[x]=T<<24|T>>>8,p[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,S?(S=$^v[v[v[w^$]]],y^=v[v[y]]):S=y=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=s.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,y=_.sigBytes/4,x=this._nRounds=y+6,$=(x+1)*4,V=this._keySchedule=[],w=0;w<$;w++)w<y?V[w]=S[w]:(v=V[w-1],w%y?y>6&&w%y==4&&(v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255]):(v=v<<8|v>>>24,v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255],v^=E[w/y|0]<<24),V[w]=V[w-y]^v);for(var T=this._invKeySchedule=[],M=0;M<$;M++){var w=$-M;if(M%4)var v=V[w];else var v=V[w-4];M<4||w<=4?T[M]=v:T[M]=d[a[v>>>24]]^p[a[v>>>16&255]]^m[a[v>>>8&255]]^b[a[v&255]]}}},encryptBlock:function(v,_){this._doCryptBlock(v,_,this._keySchedule,u,l,f,h,a)},decryptBlock:function(v,_){var S=v[_+1];v[_+1]=v[_+3],v[_+3]=S,this._doCryptBlock(v,_,this._invKeySchedule,d,p,m,b,c);var S=v[_+1];v[_+1]=v[_+3],v[_+3]=S},_doCryptBlock:function(v,_,S,y,x,$,V,w){for(var T=this._nRounds,M=v[_]^S[0],C=v[_+1]^S[1],I=v[_+2]^S[2],D=v[_+3]^S[3],k=4,U=1;U<T;U++){var H=y[M>>>24]^x[C>>>16&255]^$[I>>>8&255]^V[D&255]^S[k++],q=y[C>>>24]^x[I>>>16&255]^$[D>>>8&255]^V[M&255]^S[k++],K=y[I>>>24]^x[D>>>16&255]^$[M>>>8&255]^V[C&255]^S[k++],j=y[D>>>24]^x[M>>>16&255]^$[C>>>8&255]^V[I&255]^S[k++];M=H,C=q,I=K,D=j}var H=(w[M>>>24]<<24|w[C>>>16&255]<<16|w[I>>>8&255]<<8|w[D&255])^S[k++],q=(w[C>>>24]<<24|w[I>>>16&255]<<16|w[D>>>8&255]<<8|w[M&255])^S[k++],K=(w[I>>>24]<<24|w[D>>>16&255]<<16|w[M>>>8&255]<<8|w[C&255])^S[k++],j=(w[D>>>24]<<24|w[M>>>16&255]<<16|w[C>>>8&255]<<8|w[I&255])^S[k++];v[_]=H,v[_+1]=q,v[_+2]=K,v[_+3]=j},keySize:256/32});r.AES=s._createHelper(g)}(),n.AES})})(gu);var z1=gu.exports;const vu=Ne(z1);var q1="0123456789abcdefghijklmnopqrstuvwxyz";function Bt(e){return q1.charAt(e)}function K1(e,t){return e&t}function wn(e,t){return e|t}function xo(e,t){return e^t}function To(e,t){return e&~t}function J1(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 W1(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var _e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bu="=";function Jn(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=_e.charAt(n>>6)+_e.charAt(n&63);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=_e.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=_e.charAt(n>>2)+_e.charAt((n&3)<<4));(r.length&3)>0;)r+=bu;return r}function Oo(e){var t="",n,r=0,i=0;for(n=0;n<e.length&&e.charAt(n)!=bu;++n){var s=_e.indexOf(e.charAt(n));s<0||(r==0?(t+=Bt(s>>2),i=s&3,r=1):r==1?(t+=Bt(i<<2|s>>4),i=s&15,r=2):r==2?(t+=Bt(i),t+=Bt(s>>2),i=s&3,r=3):(t+=Bt(i<<2|s>>4),t+=Bt(s&15),r=0))}return r==1&&(t+=Bt(i<<2)),t}var ge,Y1={decode:function(e){var t;if(ge===void 0){var n="0123456789ABCDEF",r=` \f
20
20
  \r  \u2028\u2029`;for(ge={},t=0;t<16;++t)ge[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)ge[n.charAt(t)]=t;for(t=0;t<r.length;++t)ge[r.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=ge[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}},Qt,ai={decode:function(e){var t;if(Qt===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
21
- \r  \u2028\u2029`;for(Qt=Object.create(null),t=0;t<64;++t)Qt[n.charAt(t)]=t;for(Qt["-"]=62,Qt._=63,t=0;t<r.length;++t)Qt[r.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=Qt[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=ai.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 ai.decode(e)}},ye=1e13,ze=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,n){var r=this.buf,i=r.length,s,o;for(s=0;s<i;++s)o=r[s]*t+n,o<ye?n=0:(n=0|o/ye,o-=n*ye),r[s]=o;n>0&&(r[s]=n)},e.prototype.sub=function(t){var n=this.buf,r=n.length,i,s;for(i=0;i<r;++i)s=n[i]-t,s<0?(s+=ye,t=1):t=0,n[i]=s;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,r=n[n.length-1].toString(),i=n.length-2;i>=0;--i)r+=(ye+n[i]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var t=this.buf,n=0,r=t.length-1;r>=0;--r)n=n*ye+t[r];return n},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Eu="…",Z1=/^(\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)?)?$/,Q1=/^(\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 Se(e,t){return e.length>t&&(e=e.substring(0,t)+Eu),e}var Pr=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}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,n,r){for(var i="",s=t;s<n;++s)if(i+=this.hexByte(this.get(s)),r!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
22
- `;break;default:i+=" "}return i},e.prototype.isASCII=function(t,n){for(var r=t;r<n;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,n){for(var r="",i=t;i<n;++i)r+=String.fromCharCode(this.get(i));return r},e.prototype.parseStringUTF=function(t,n){for(var r="",i=t;i<n;){var s=this.get(i++);s<128?r+=String.fromCharCode(s):s>191&&s<224?r+=String.fromCharCode((s&31)<<6|this.get(i++)&63):r+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},e.prototype.parseStringBMP=function(t,n){for(var r="",i,s,o=t;o<n;)i=this.get(o++),s=this.get(o++),r+=String.fromCharCode(i<<8|s);return r},e.prototype.parseTime=function(t,n,r){var i=this.parseStringISO(t,n),s=(r?Z1:Q1).exec(i);return s?(r&&(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,n){for(var r=this.get(t),i=r>127,s=i?255:0,o,a="";r==s&&++t<n;)r=this.get(t);if(o=n-t,o===0)return i?-1:0;if(o>4){for(a=r,o<<=3;!((+a^s)&128);)a=+a<<1,--o;a="("+o+` bit)
21
+ \r  \u2028\u2029`;for(Qt=Object.create(null),t=0;t<64;++t)Qt[n.charAt(t)]=t;for(Qt["-"]=62,Qt._=63,t=0;t<r.length;++t)Qt[r.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=Qt[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=ai.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 ai.decode(e)}},ye=1e13,ze=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,n){var r=this.buf,i=r.length,s,o;for(s=0;s<i;++s)o=r[s]*t+n,o<ye?n=0:(n=0|o/ye,o-=n*ye),r[s]=o;n>0&&(r[s]=n)},e.prototype.sub=function(t){var n=this.buf,r=n.length,i,s;for(i=0;i<r;++i)s=n[i]-t,s<0?(s+=ye,t=1):t=0,n[i]=s;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,r=n[n.length-1].toString(),i=n.length-2;i>=0;--i)r+=(ye+n[i]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var t=this.buf,n=0,r=t.length-1;r>=0;--r)n=n*ye+t[r];return n},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),_u="…",G1=/^(\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)?)?$/,Z1=/^(\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 Se(e,t){return e.length>t&&(e=e.substring(0,t)+_u),e}var Pr=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}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,n,r){for(var i="",s=t;s<n;++s)if(i+=this.hexByte(this.get(s)),r!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
22
+ `;break;default:i+=" "}return i},e.prototype.isASCII=function(t,n){for(var r=t;r<n;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,n){for(var r="",i=t;i<n;++i)r+=String.fromCharCode(this.get(i));return r},e.prototype.parseStringUTF=function(t,n){for(var r="",i=t;i<n;){var s=this.get(i++);s<128?r+=String.fromCharCode(s):s>191&&s<224?r+=String.fromCharCode((s&31)<<6|this.get(i++)&63):r+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},e.prototype.parseStringBMP=function(t,n){for(var r="",i,s,o=t;o<n;)i=this.get(o++),s=this.get(o++),r+=String.fromCharCode(i<<8|s);return r},e.prototype.parseTime=function(t,n,r){var i=this.parseStringISO(t,n),s=(r?G1:Z1).exec(i);return s?(r&&(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,n){for(var r=this.get(t),i=r>127,s=i?255:0,o,a="";r==s&&++t<n;)r=this.get(t);if(o=n-t,o===0)return i?-1:0;if(o>4){for(a=r,o<<=3;!((+a^s)&128);)a=+a<<1,--o;a="("+o+` bit)
23
23
  `}i&&(r=r-256);for(var c=new ze(r),u=t+1;u<n;++u)c.mulAdd(256,this.get(u));return a+c.toString()},e.prototype.parseBitString=function(t,n,r){for(var i=this.get(t),s=(n-t-1<<3)-i,o="("+s+` bit)
24
24
  `,a="",c=t+1;c<n;++c){for(var u=this.get(c),l=c==n-1?i:0,f=7;f>=l;--f)a+=u>>f&1?"1":"0";if(a.length>r)return o+Se(a,r)}return o+a},e.prototype.parseOctetString=function(t,n,r){if(this.isASCII(t,n))return Se(this.parseStringISO(t,n),r);var i=n-t,s="("+i+` byte)
25
- `;r/=2,i>r&&(n=t+r);for(var o=t;o<n;++o)s+=this.hexByte(this.get(o));return i>r&&(s+=Eu),s},e.prototype.parseOID=function(t,n,r){for(var i="",s=new ze,o=0,a=t;a<n;++a){var c=this.get(a);if(s.mulAdd(128,c&127),o+=7,!(c&128)){if(i==="")if(s=s.simplify(),s instanceof ze)s.sub(80),i="2."+s.toString();else{var u=s<80?s<40?0:1:2;i=u+"."+(s-u*40)}else i+="."+s.toString();if(i.length>r)return Se(i,r);s=new ze,o=0}}return o>0&&(i+=".incomplete"),i},e}(),X1=function(){function e(t,n,r,i,s){if(!(i instanceof $o))throw new Error("Invalid tag value.");this.stream=t,this.header=n,this.length=r,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 n=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);case 6:return this.stream.parseOID(n,n+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Se(this.stream.parseStringUTF(n,n+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return Se(this.stream.parseStringISO(n,n+r),t);case 30:return Se(this.stream.parseStringBMP(n,n+r),t);case 23:case 24:return this.stream.parseTime(n,n+r,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 n=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
26
- `,this.sub!==null){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)n+=this.sub[r].toPrettyString(t)}return n},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 n=t.get(),r=n&127;if(r==n)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;n=0;for(var i=0;i<r;++i)n=n*256+t.get();return n},e.prototype.getHexStringValue=function(){var t=this.toHexString(),n=this.header*2,r=this.length*2;return t.substr(n,r)},e.decode=function(t){var n;t instanceof Pr?n=t:n=new Pr(t,0);var r=new Pr(n),i=new $o(n),s=e.decodeLength(n),o=n.pos,a=o-r.pos,c=null,u=function(){var f=[];if(s!==null){for(var h=o+s;n.pos<h;)f[f.length]=e.decode(n);if(n.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var d=e.decode(n);if(d.tag.isEOC())break;f[f.length]=d}s=o-n.pos}catch(p){throw new Error("Exception while decoding undefined length content: "+p)}return f};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var l=0;l<c.length;++l)if(c[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){c=null}if(c===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(s)}return new e(r,a,s,i,c)},e}(),$o=function(){function e(t){var n=t.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var r=new ze;do n=t.get(),r.mulAdd(128,n&127);while(n&128);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Vt,tv=0xdeadbeefcafe,Ao=(tv&16777215)==15715070,ct=[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],ev=(1<<26)/ct[ct.length-1],W=function(){function e(t,n,r){t!=null&&(typeof t=="number"?this.fromNumber(t,n,r):n==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,n))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var n;if(t==16)n=4;else if(t==8)n=3;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else return this.toRadix(t);var r=(1<<n)-1,i,s=!1,o="",a=this.t,c=this.DB-a*this.DB%n;if(a-- >0)for(c<this.DB&&(i=this[a]>>c)>0&&(s=!0,o=Bt(i));a>=0;)c<n?(i=(this[a]&(1<<c)-1)<<n-c,i|=this[--a]>>(c+=this.DB-n)):(i=this[a]>>(c-=n)&r,c<=0&&(c+=this.DB,--a)),i>0&&(s=!0),s&&(o+=Bt(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 n=this.s-t.s;if(n!=0)return n;var r=this.t;if(n=r-t.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-t[r])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+En(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=Y();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(t,n){var r;return t<256||n.isEven()?r=new jo(n):r=new Ro(n),this.exp(t,r)},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,n=[];n[0]=this.s;var r=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(n[s++]=i|this.s<<this.DB-r);t>=0;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(n[s++]=i);return n},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 n=Y();return this.bitwiseTo(t,J1,n),n},e.prototype.or=function(t){var n=Y();return this.bitwiseTo(t,wn,n),n},e.prototype.xor=function(t){var n=Y();return this.bitwiseTo(t,xo,n),n},e.prototype.andNot=function(t){var n=Y();return this.bitwiseTo(t,To,n),n},e.prototype.not=function(){for(var t=Y(),n=0;n<this.t;++n)t[n]=this.DM&~this[n];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var n=Y();return t<0?this.rShiftTo(-t,n):this.lShiftTo(t,n),n},e.prototype.shiftRight=function(t){var n=Y();return t<0?this.lShiftTo(-t,n):this.rShiftTo(t,n),n},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+W1(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,n=this.s&this.DM,r=0;r<this.t;++r)t+=Y1(this[r]^n);return t},e.prototype.testBit=function(t){var n=Math.floor(t/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,wn)},e.prototype.clearBit=function(t){return this.changeBit(t,To)},e.prototype.flipBit=function(t){return this.changeBit(t,xo)},e.prototype.add=function(t){var n=Y();return this.addTo(t,n),n},e.prototype.subtract=function(t){var n=Y();return this.subTo(t,n),n},e.prototype.multiply=function(t){var n=Y();return this.multiplyTo(t,n),n},e.prototype.divide=function(t){var n=Y();return this.divRemTo(t,n,null),n},e.prototype.remainder=function(t){var n=Y();return this.divRemTo(t,null,n),n},e.prototype.divideAndRemainder=function(t){var n=Y(),r=Y();return this.divRemTo(t,n,r),[n,r]},e.prototype.modPow=function(t,n){var r=t.bitLength(),i,s=Ht(1),o;if(r<=0)return s;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?o=new jo(n):n.isEven()?o=new rv(n):o=new Ro(n);var a=[],c=3,u=i-1,l=(1<<i)-1;if(a[1]=o.convert(this),i>1){var f=Y();for(o.sqrTo(a[1],f);c<=l;)a[c]=Y(),o.mulTo(f,a[c-2],a[c]),c+=2}var h=t.t-1,d,p=!0,m=Y(),b;for(r=En(t[h])-1;h>=0;){for(r>=u?d=t[h]>>r-u&l:(d=(t[h]&(1<<r+1)-1)<<u-r,h>0&&(d|=t[h-1]>>this.DB+r-u)),c=i;!(d&1);)d>>=1,--c;if((r-=c)<0&&(r+=this.DB,--h),p)a[d].copyTo(s),p=!1;else{for(;c>1;)o.sqrTo(s,m),o.sqrTo(m,s),c-=2;c>0?o.sqrTo(s,m):(b=s,s=m,m=b),o.mulTo(m,a[d],s)}for(;h>=0&&!(t[h]&1<<r);)o.sqrTo(s,m),b=s,s=m,m=b,--r<0&&(r=this.DB-1,--h)}return o.revert(s)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||t.signum()==0)return e.ZERO;for(var r=t.clone(),i=this.clone(),s=Ht(1),o=Ht(0),a=Ht(0),c=Ht(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),n?((!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),n?((!a.isEven()||!c.isEven())&&(a.addTo(this,a),c.subTo(t,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&s.subTo(a,s),o.subTo(c,o)):(i.subTo(r,i),n&&a.subTo(s,a),c.subTo(o,c))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(t)>=0)return c.subtract(t);if(c.signum()<0)c.addTo(t,c);else return c;return c.signum()<0?c.add(t):c},e.prototype.pow=function(t){return this.exp(t,new nv)},e.prototype.gcd=function(t){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var s=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return n;for(s<o&&(o=s),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));n.signum()>0;)(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},e.prototype.isProbablePrime=function(t){var n,r=this.abs();if(r.t==1&&r[0]<=ct[ct.length-1]){for(n=0;n<ct.length;++n)if(r[0]==ct[n])return!0;return!1}if(r.isEven())return!1;for(n=1;n<ct.length;){for(var i=ct[n],s=n+1;s<ct.length&&i<ev;)i*=ct[s++];for(i=r.modInt(i);n<s;)if(i%ct[n++]==0)return!1}return r.millerRabin(t)},e.prototype.copyTo=function(t){for(var n=this.t-1;n>=0;--n)t[n]=this[n];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,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==256)r=8;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else{this.fromRadix(t,n);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=r==8?+t[i]&255:Co(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+r>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+=r,o>=this.DB&&(o-=this.DB)}r==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,n){var r;for(r=this.t-1;r>=0;--r)n[r+t]=this[r];for(r=t-1;r>=0;--r)n[r]=0;n.t=this.t+t,n.s=this.s},e.prototype.drShiftTo=function(t,n){for(var r=t;r<this.t;++r)n[r-t]=this[r];n.t=Math.max(this.t-t,0),n.s=this.s},e.prototype.lShiftTo=function(t,n){for(var r=t%this.DB,i=this.DB-r,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<r&this.DM,c=this.t-1;c>=0;--c)n[c+o+1]=this[c]>>i|a,a=(this[c]&s)<<r;for(var c=o-1;c>=0;--c)n[c]=0;n[o]=a,n.t=this.t+o+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(t,n){n.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){n.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;n[0]=this[r]>>i;for(var a=r+1;a<this.t;++a)n[a-r-1]|=(this[a]&o)<<s,n[a-r]=this[a]>>i;i>0&&(n[this.t-r-1]|=(this.s&o)<<s),n.t=this.t-r,n.clamp()},e.prototype.subTo=function(t,n){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]-t[r],n[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],n[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],n[r++]=i&this.DM,i>>=this.DB;i-=t.s}n.s=i<0?-1:0,i<-1?n[r++]=this.DV+i:i>0&&(n[r++]=i),n.t=r,n.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),s=r.t;for(n.t=s+i.t;--s>=0;)n[s]=0;for(s=0;s<i.t;++s)n[s+r.t]=r.am(0,i[s],n,s,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(t){for(var n=this.abs(),r=t.t=2*n.t;--r>=0;)t[r]=0;for(r=0;r<n.t-1;++r){var i=n.am(r,n[r],t,2*r,0,1);(t[r+n.t]+=n.am(r+1,2*n[r],t,2*r+1,i,n.t-r-1))>=n.DV&&(t[r+n.t]-=n.DV,t[r+n.t+1]=1)}t.t>0&&(t[t.t-1]+=n.am(r,n[r],t,2*r,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,n,r){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){n==null||n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Y());var o=Y(),a=this.s,c=t.s,u=this.DB-En(i[i.t-1]);u>0?(i.lShiftTo(u,o),s.lShiftTo(u,r)):(i.copyTo(o),s.copyTo(r));var l=o.t,f=o[l-1];if(f!=0){var h=f*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),d=this.FV/h,p=(1<<this.F1)/h,m=1<<this.F2,b=r.t,E=b-l,g=n!=null?n:Y();for(o.dlShiftTo(E,g),r.compareTo(g)>=0&&(r[r.t++]=1,r.subTo(g,r)),e.ONE.dlShiftTo(l,g),g.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--E>=0;){var v=r[--b]==f?this.DM:Math.floor(r[b]*d+(r[b-1]+m)*p);if((r[b]+=o.am(0,v,r,E,0,l))<v)for(o.dlShiftTo(E,g),r.subTo(g,r);r[b]<--v;)r.subTo(g,r)}n!=null&&(r.drShiftTo(l,n),a!=c&&e.ZERO.subTo(n,n)),r.t=l,r.clamp(),u>0&&r.rShiftTo(u,r),a<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var n=t&3;return n=n*(2-(t&15)*n)&15,n=n*(2-(t&255)*n)&255,n=n*(2-((t&65535)*n&65535))&65535,n=n*(2-t*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=Y(),i=Y(),s=n.convert(this),o=En(t)-1;for(s.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(t&1<<o)>0)n.mulTo(i,s,r);else{var a=r;r=i,i=a}return n.revert(r)},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 n=this.chunkSize(t),r=Math.pow(t,n),i=Ht(r),s=Y(),o=Y(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(r+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),n==null&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),s=!1,o=0,a=0,c=0;c<t.length;++c){var u=Co(t,c);if(u<0){t.charAt(c)=="-"&&this.signum()==0&&(s=!0);continue}a=n*a+u,++o>=r&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if(typeof n=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),wn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)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,n.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,n,r){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)r[i]=n(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)r[i]=n(this[i],s);r.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)r[i]=n(s,t[i]);r.t=t.t}r.s=n(this.s,t.s),r.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(t,n){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]+t[r],n[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;r<this.t;)i+=this[r],n[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i+=t[r],n[r++]=i&this.DM,i>>=this.DB;i+=t.s}n.s=i<0?-1:0,i>0?n[r++]=i:i<-1&&(n[r++]=this.DV+i),n.t=r,n.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,n){if(t!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=t;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(t,n,r){var i=Math.min(this.t+t.t,n);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var s=r.t-this.t;i<s;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var s=Math.min(t.t,n);i<s;++i)this.am(0,t[i],r,i,0,n-i);r.clamp()},e.prototype.multiplyUpperTo=function(t,n,r){--n;var i=r.t=this.t+t.t-n;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(n-this.t,0);i<t.t;++i)r[this.t+i-n]=this.am(n-i,t[i],r,0,0,this.t+i-n);r.clamp(),r.drShiftTo(1,r)},e.prototype.modInt=function(t){if(t<=0)return 0;var n=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(n==0)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(n*r+this[i])%t;return r},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);t=t+1>>1,t>ct.length&&(t=ct.length);for(var s=Y(),o=0;o<t;++o){s.fromInt(ct[Math.floor(Math.random()*ct.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(n)!=0){for(var c=1;c++<r&&a.compareTo(n)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var t=Y();return this.squareTo(t),t},e.prototype.gcda=function(t,n){var r=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var s=r;r=i,i=s}var o=r.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){n(r);return}o<a&&(a=o),a>0&&(r.rShiftTo(a,r),i.rShiftTo(a,i));var c=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(c,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){n(i)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(t,n,r,i){if(typeof n=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),wn,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(n)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],c=t&7;a.length=(t>>3)+1,n.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},e}(),nv=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r)},e.prototype.sqrTo=function(t,n){t.squareTo(n)},e}(),jo=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,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),Ro=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 n=Y();return t.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),t.s<0&&n.compareTo(W.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(t){var n=Y();return t.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var n=0;n<this.m.t;++n){var r=t[n]&32767,i=r*this.mpl+((r*this.mph+(t[n]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=n+this.m.t,t[r]+=this.m.am(0,i,t,n,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),rv=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),W.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 n=Y();return t.copyTo(n),this.reduce(n),n},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,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}();function Y(){return new W(null)}function tt(e,t){return new W(e,t)}var Do=typeof navigator<"u";Do&&Ao&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(e,t,n,r,i,s){for(var o=t&32767,a=t>>15;--s>=0;){var c=this[e]&32767,u=this[e++]>>15,l=a*c+u*o;c=o*c+((l&32767)<<15)+n[r]+(i&1073741823),i=(c>>>30)+(l>>>15)+a*u+(i>>>30),n[r++]=c&1073741823}return i},Vt=30):Do&&Ao&&navigator.appName!="Netscape"?(W.prototype.am=function(e,t,n,r,i,s){for(;--s>=0;){var o=t*this[e++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=o&67108863}return i},Vt=26):(W.prototype.am=function(e,t,n,r,i,s){for(var o=t&16383,a=t>>14;--s>=0;){var c=this[e]&16383,u=this[e++]>>14,l=a*c+u*o;c=o*c+((l&16383)<<14)+n[r]+i,i=(c>>28)+(l>>14)+a*u,n[r++]=c&268435455}return i},Vt=28),W.prototype.DB=Vt,W.prototype.DM=(1<<Vt)-1,W.prototype.DV=1<<Vt;var kr=52;W.prototype.FV=Math.pow(2,kr),W.prototype.F1=kr-Vt,W.prototype.F2=2*Vt-kr;var lr=[],Re,Tt;for(Re=48,Tt=0;Tt<=9;++Tt)lr[Re++]=Tt;for(Re=97,Tt=10;Tt<36;++Tt)lr[Re++]=Tt;for(Re=65,Tt=10;Tt<36;++Tt)lr[Re++]=Tt;function Co(e,t){var n=lr[e.charCodeAt(t)];return n!=null?n:-1}function Ht(e){var t=Y();return t.fromInt(e),t}function En(e){var t=1,n;return(n=e>>>16)!=0&&(e=n,t+=16),(n=e>>8)!=0&&(e=n,t+=8),(n=e>>4)!=0&&(e=n,t+=4),(n=e>>2)!=0&&(e=n,t+=2),(n=e>>1)!=0&&(e=n,t+=1),t}W.ZERO=Ht(0),W.ONE=Ht(1);var iv=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var n,r,i;for(n=0;n<256;++n)this.S[n]=n;for(r=0,n=0;n<256;++n)r=r+this.S[n]+t[n%t.length]&255,i=this.S[n],this.S[n]=this.S[r],this.S[r]=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 sv(){return new iv}var Su=256,Sn,zt=null,Ot;if(zt==null){zt=[],Ot=0;var xn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Nr=new Uint32Array(256);for(window.crypto.getRandomValues(Nr),xn=0;xn<Nr.length;++xn)zt[Ot++]=Nr[xn]&255}var Tn=0,On=function(e){if(Tn=Tn||0,Tn>=256||Ot>=Su){window.removeEventListener?window.removeEventListener("mousemove",On,!1):window.detachEvent&&window.detachEvent("onmousemove",On);return}try{var t=e.x+e.y;zt[Ot++]=t&255,Tn+=1}catch(n){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",On,!1):window.attachEvent&&window.attachEvent("onmousemove",On))}function ov(){if(Sn==null){for(Sn=sv();Ot<Su;){var e=Math.floor(65536*Math.random());zt[Ot++]=e&255}for(Sn.init(zt),Ot=0;Ot<zt.length;++Ot)zt[Ot]=0;Ot=0}return Sn.next()}var ui=function(){function e(){}return e.prototype.nextBytes=function(t){for(var n=0;n<t.length;++n)t[n]=ov()},e}();function av(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",i=0;i<n;i+=2)r+="ff";var s="0001"+r+"00"+e;return tt(s,16)}function uv(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=i&63|128,n[--t]=i>>6|192):(n[--t]=i&63|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var s=new ui,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);n[--t]=o[0]}return n[--t]=2,n[--t]=0,new W(n)}var cv=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 n=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(r)<0;)n=n.add(this.p);return n.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.setPublic=function(t,n){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=tt(t,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var n=this.n.bitLength()+7>>3,r=uv(t,n);if(r==null)return null;var i=this.doPublic(r);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<n*2-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,n,r){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=tt(t,16),this.e=parseInt(n,16),this.d=tt(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,n,r,i,s,o,a,c){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=tt(t,16),this.e=parseInt(n,16),this.d=tt(r,16),this.p=tt(i,16),this.q=tt(s,16),this.dmp1=tt(o,16),this.dmq1=tt(a,16),this.coeff=tt(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,n){var r=new ui,i=t>>1;this.e=parseInt(n,16);for(var s=new W(n,16);;){for(;this.p=new W(t-i,1,r),!(this.p.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new W(i,1,r),!(this.q.subtract(W.ONE).gcd(s).compareTo(W.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(W.ONE),c=this.q.subtract(W.ONE),u=a.multiply(c);if(u.gcd(s).compareTo(W.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var n=tt(t,16),r=this.doPrivate(n);return r==null?null:lv(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,n,r){var i=new ui,s=t>>1;this.e=parseInt(n,16);var o=new W(n,16),a=this,c=function(){var u=function(){if(a.p.compareTo(a.q)<=0){var h=a.p;a.p=a.q,a.q=h}var d=a.p.subtract(W.ONE),p=a.q.subtract(W.ONE),m=d.multiply(p);m.gcd(o).compareTo(W.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(m),a.dmp1=a.d.mod(d),a.dmq1=a.d.mod(p),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(c,0)},l=function(){a.q=Y(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)})})},f=function(){a.p=Y(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(c,0)},e.prototype.sign=function(t,n,r){var i=fv(r),s=i+n(t).toString(),o=av(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var c=a.toString(16);return c.length&1?"0"+c:c},e.prototype.verify=function(t,n,r){var i=tt(n,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),a=hv(o);return a==r(t).toString()},e}();function lv(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&n[r]==0;)++r;if(n.length-r!=t-1||n[r]!=2)return null;for(++r;n[r]!=0;)if(++r>=n.length)return null;for(var i="";++r<n.length;){var s=n[r]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|n[r+1]&63),++r):(i+=String.fromCharCode((s&15)<<12|(n[r+1]&63)<<6|n[r+2]&63),r+=2)}return i}var Cn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function fv(e){return Cn[e]||""}function hv(e){for(var t in Cn)if(Cn.hasOwnProperty(t)){var n=Cn[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}/*!
25
+ `;r/=2,i>r&&(n=t+r);for(var o=t;o<n;++o)s+=this.hexByte(this.get(o));return i>r&&(s+=_u),s},e.prototype.parseOID=function(t,n,r){for(var i="",s=new ze,o=0,a=t;a<n;++a){var c=this.get(a);if(s.mulAdd(128,c&127),o+=7,!(c&128)){if(i==="")if(s=s.simplify(),s instanceof ze)s.sub(80),i="2."+s.toString();else{var u=s<80?s<40?0:1:2;i=u+"."+(s-u*40)}else i+="."+s.toString();if(i.length>r)return Se(i,r);s=new ze,o=0}}return o>0&&(i+=".incomplete"),i},e}(),Q1=function(){function e(t,n,r,i,s){if(!(i instanceof $o))throw new Error("Invalid tag value.");this.stream=t,this.header=n,this.length=r,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 n=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);case 6:return this.stream.parseOID(n,n+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Se(this.stream.parseStringUTF(n,n+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return Se(this.stream.parseStringISO(n,n+r),t);case 30:return Se(this.stream.parseStringBMP(n,n+r),t);case 23:case 24:return this.stream.parseTime(n,n+r,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 n=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
26
+ `,this.sub!==null){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)n+=this.sub[r].toPrettyString(t)}return n},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 n=t.get(),r=n&127;if(r==n)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;n=0;for(var i=0;i<r;++i)n=n*256+t.get();return n},e.prototype.getHexStringValue=function(){var t=this.toHexString(),n=this.header*2,r=this.length*2;return t.substr(n,r)},e.decode=function(t){var n;t instanceof Pr?n=t:n=new Pr(t,0);var r=new Pr(n),i=new $o(n),s=e.decodeLength(n),o=n.pos,a=o-r.pos,c=null,u=function(){var f=[];if(s!==null){for(var h=o+s;n.pos<h;)f[f.length]=e.decode(n);if(n.pos!=h)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var d=e.decode(n);if(d.tag.isEOC())break;f[f.length]=d}s=o-n.pos}catch(p){throw new Error("Exception while decoding undefined length content: "+p)}return f};if(i.tagConstructed)c=u();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var l=0;l<c.length;++l)if(c[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){c=null}if(c===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(s)}return new e(r,a,s,i,c)},e}(),$o=function(){function e(t){var n=t.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var r=new ze;do n=t.get(),r.mulAdd(128,n&127);while(n&128);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Vt,X1=0xdeadbeefcafe,Ao=(X1&16777215)==15715070,ct=[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],tv=(1<<26)/ct[ct.length-1],W=function(){function e(t,n,r){t!=null&&(typeof t=="number"?this.fromNumber(t,n,r):n==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,n))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var n;if(t==16)n=4;else if(t==8)n=3;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else return this.toRadix(t);var r=(1<<n)-1,i,s=!1,o="",a=this.t,c=this.DB-a*this.DB%n;if(a-- >0)for(c<this.DB&&(i=this[a]>>c)>0&&(s=!0,o=Bt(i));a>=0;)c<n?(i=(this[a]&(1<<c)-1)<<n-c,i|=this[--a]>>(c+=this.DB-n)):(i=this[a]>>(c-=n)&r,c<=0&&(c+=this.DB,--a)),i>0&&(s=!0),s&&(o+=Bt(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 n=this.s-t.s;if(n!=0)return n;var r=this.t;if(n=r-t.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-t[r])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+En(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=Y();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(t,n){var r;return t<256||n.isEven()?r=new jo(n):r=new Ro(n),this.exp(t,r)},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,n=[];n[0]=this.s;var r=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(n[s++]=i|this.s<<this.DB-r);t>=0;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(n[s++]=i);return n},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 n=Y();return this.bitwiseTo(t,K1,n),n},e.prototype.or=function(t){var n=Y();return this.bitwiseTo(t,wn,n),n},e.prototype.xor=function(t){var n=Y();return this.bitwiseTo(t,xo,n),n},e.prototype.andNot=function(t){var n=Y();return this.bitwiseTo(t,To,n),n},e.prototype.not=function(){for(var t=Y(),n=0;n<this.t;++n)t[n]=this.DM&~this[n];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var n=Y();return t<0?this.rShiftTo(-t,n):this.lShiftTo(t,n),n},e.prototype.shiftRight=function(t){var n=Y();return t<0?this.lShiftTo(-t,n):this.rShiftTo(t,n),n},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+J1(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,n=this.s&this.DM,r=0;r<this.t;++r)t+=W1(this[r]^n);return t},e.prototype.testBit=function(t){var n=Math.floor(t/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,wn)},e.prototype.clearBit=function(t){return this.changeBit(t,To)},e.prototype.flipBit=function(t){return this.changeBit(t,xo)},e.prototype.add=function(t){var n=Y();return this.addTo(t,n),n},e.prototype.subtract=function(t){var n=Y();return this.subTo(t,n),n},e.prototype.multiply=function(t){var n=Y();return this.multiplyTo(t,n),n},e.prototype.divide=function(t){var n=Y();return this.divRemTo(t,n,null),n},e.prototype.remainder=function(t){var n=Y();return this.divRemTo(t,null,n),n},e.prototype.divideAndRemainder=function(t){var n=Y(),r=Y();return this.divRemTo(t,n,r),[n,r]},e.prototype.modPow=function(t,n){var r=t.bitLength(),i,s=Ht(1),o;if(r<=0)return s;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?o=new jo(n):n.isEven()?o=new nv(n):o=new Ro(n);var a=[],c=3,u=i-1,l=(1<<i)-1;if(a[1]=o.convert(this),i>1){var f=Y();for(o.sqrTo(a[1],f);c<=l;)a[c]=Y(),o.mulTo(f,a[c-2],a[c]),c+=2}var h=t.t-1,d,p=!0,m=Y(),b;for(r=En(t[h])-1;h>=0;){for(r>=u?d=t[h]>>r-u&l:(d=(t[h]&(1<<r+1)-1)<<u-r,h>0&&(d|=t[h-1]>>this.DB+r-u)),c=i;!(d&1);)d>>=1,--c;if((r-=c)<0&&(r+=this.DB,--h),p)a[d].copyTo(s),p=!1;else{for(;c>1;)o.sqrTo(s,m),o.sqrTo(m,s),c-=2;c>0?o.sqrTo(s,m):(b=s,s=m,m=b),o.mulTo(m,a[d],s)}for(;h>=0&&!(t[h]&1<<r);)o.sqrTo(s,m),b=s,s=m,m=b,--r<0&&(r=this.DB-1,--h)}return o.revert(s)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||t.signum()==0)return e.ZERO;for(var r=t.clone(),i=this.clone(),s=Ht(1),o=Ht(0),a=Ht(0),c=Ht(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),n?((!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),n?((!a.isEven()||!c.isEven())&&(a.addTo(this,a),c.subTo(t,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);r.compareTo(i)>=0?(r.subTo(i,r),n&&s.subTo(a,s),o.subTo(c,o)):(i.subTo(r,i),n&&a.subTo(s,a),c.subTo(o,c))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(t)>=0)return c.subtract(t);if(c.signum()<0)c.addTo(t,c);else return c;return c.signum()<0?c.add(t):c},e.prototype.pow=function(t){return this.exp(t,new ev)},e.prototype.gcd=function(t){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var s=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return n;for(s<o&&(o=s),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));n.signum()>0;)(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},e.prototype.isProbablePrime=function(t){var n,r=this.abs();if(r.t==1&&r[0]<=ct[ct.length-1]){for(n=0;n<ct.length;++n)if(r[0]==ct[n])return!0;return!1}if(r.isEven())return!1;for(n=1;n<ct.length;){for(var i=ct[n],s=n+1;s<ct.length&&i<tv;)i*=ct[s++];for(i=r.modInt(i);n<s;)if(i%ct[n++]==0)return!1}return r.millerRabin(t)},e.prototype.copyTo=function(t){for(var n=this.t-1;n>=0;--n)t[n]=this[n];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,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==256)r=8;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else{this.fromRadix(t,n);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=r==8?+t[i]&255:Co(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+r>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+=r,o>=this.DB&&(o-=this.DB)}r==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,n){var r;for(r=this.t-1;r>=0;--r)n[r+t]=this[r];for(r=t-1;r>=0;--r)n[r]=0;n.t=this.t+t,n.s=this.s},e.prototype.drShiftTo=function(t,n){for(var r=t;r<this.t;++r)n[r-t]=this[r];n.t=Math.max(this.t-t,0),n.s=this.s},e.prototype.lShiftTo=function(t,n){for(var r=t%this.DB,i=this.DB-r,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<r&this.DM,c=this.t-1;c>=0;--c)n[c+o+1]=this[c]>>i|a,a=(this[c]&s)<<r;for(var c=o-1;c>=0;--c)n[c]=0;n[o]=a,n.t=this.t+o+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(t,n){n.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){n.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;n[0]=this[r]>>i;for(var a=r+1;a<this.t;++a)n[a-r-1]|=(this[a]&o)<<s,n[a-r]=this[a]>>i;i>0&&(n[this.t-r-1]|=(this.s&o)<<s),n.t=this.t-r,n.clamp()},e.prototype.subTo=function(t,n){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]-t[r],n[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],n[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],n[r++]=i&this.DM,i>>=this.DB;i-=t.s}n.s=i<0?-1:0,i<-1?n[r++]=this.DV+i:i>0&&(n[r++]=i),n.t=r,n.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),s=r.t;for(n.t=s+i.t;--s>=0;)n[s]=0;for(s=0;s<i.t;++s)n[s+r.t]=r.am(0,i[s],n,s,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(t){for(var n=this.abs(),r=t.t=2*n.t;--r>=0;)t[r]=0;for(r=0;r<n.t-1;++r){var i=n.am(r,n[r],t,2*r,0,1);(t[r+n.t]+=n.am(r+1,2*n[r],t,2*r+1,i,n.t-r-1))>=n.DV&&(t[r+n.t]-=n.DV,t[r+n.t+1]=1)}t.t>0&&(t[t.t-1]+=n.am(r,n[r],t,2*r,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,n,r){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){n==null||n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Y());var o=Y(),a=this.s,c=t.s,u=this.DB-En(i[i.t-1]);u>0?(i.lShiftTo(u,o),s.lShiftTo(u,r)):(i.copyTo(o),s.copyTo(r));var l=o.t,f=o[l-1];if(f!=0){var h=f*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),d=this.FV/h,p=(1<<this.F1)/h,m=1<<this.F2,b=r.t,E=b-l,g=n!=null?n:Y();for(o.dlShiftTo(E,g),r.compareTo(g)>=0&&(r[r.t++]=1,r.subTo(g,r)),e.ONE.dlShiftTo(l,g),g.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--E>=0;){var v=r[--b]==f?this.DM:Math.floor(r[b]*d+(r[b-1]+m)*p);if((r[b]+=o.am(0,v,r,E,0,l))<v)for(o.dlShiftTo(E,g),r.subTo(g,r);r[b]<--v;)r.subTo(g,r)}n!=null&&(r.drShiftTo(l,n),a!=c&&e.ZERO.subTo(n,n)),r.t=l,r.clamp(),u>0&&r.rShiftTo(u,r),a<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var n=t&3;return n=n*(2-(t&15)*n)&15,n=n*(2-(t&255)*n)&255,n=n*(2-((t&65535)*n&65535))&65535,n=n*(2-t*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=Y(),i=Y(),s=n.convert(this),o=En(t)-1;for(s.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(t&1<<o)>0)n.mulTo(i,s,r);else{var a=r;r=i,i=a}return n.revert(r)},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 n=this.chunkSize(t),r=Math.pow(t,n),i=Ht(r),s=Y(),o=Y(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(r+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),n==null&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),s=!1,o=0,a=0,c=0;c<t.length;++c){var u=Co(t,c);if(u<0){t.charAt(c)=="-"&&this.signum()==0&&(s=!0);continue}a=n*a+u,++o>=r&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if(typeof n=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),wn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)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,n.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,n,r){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)r[i]=n(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)r[i]=n(this[i],s);r.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)r[i]=n(s,t[i]);r.t=t.t}r.s=n(this.s,t.s),r.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(t,n){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]+t[r],n[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;r<this.t;)i+=this[r],n[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i+=t[r],n[r++]=i&this.DM,i>>=this.DB;i+=t.s}n.s=i<0?-1:0,i>0?n[r++]=i:i<-1&&(n[r++]=this.DV+i),n.t=r,n.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,n){if(t!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=t;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(t,n,r){var i=Math.min(this.t+t.t,n);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var s=r.t-this.t;i<s;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var s=Math.min(t.t,n);i<s;++i)this.am(0,t[i],r,i,0,n-i);r.clamp()},e.prototype.multiplyUpperTo=function(t,n,r){--n;var i=r.t=this.t+t.t-n;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(n-this.t,0);i<t.t;++i)r[this.t+i-n]=this.am(n-i,t[i],r,0,0,this.t+i-n);r.clamp(),r.drShiftTo(1,r)},e.prototype.modInt=function(t){if(t<=0)return 0;var n=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(n==0)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(n*r+this[i])%t;return r},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);t=t+1>>1,t>ct.length&&(t=ct.length);for(var s=Y(),o=0;o<t;++o){s.fromInt(ct[Math.floor(Math.random()*ct.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(n)!=0){for(var c=1;c++<r&&a.compareTo(n)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var t=Y();return this.squareTo(t),t},e.prototype.gcda=function(t,n){var r=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var s=r;r=i,i=s}var o=r.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){n(r);return}o<a&&(a=o),a>0&&(r.rShiftTo(a,r),i.rShiftTo(a,i));var c=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(c,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){n(i)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(t,n,r,i){if(typeof n=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),wn,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(n)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],c=t&7;a.length=(t>>3)+1,n.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},e}(),ev=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r)},e.prototype.sqrTo=function(t,n){t.squareTo(n)},e}(),jo=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,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),Ro=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 n=Y();return t.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),t.s<0&&n.compareTo(W.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(t){var n=Y();return t.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var n=0;n<this.m.t;++n){var r=t[n]&32767,i=r*this.mpl+((r*this.mph+(t[n]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=n+this.m.t,t[r]+=this.m.am(0,i,t,n,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),nv=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),W.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 n=Y();return t.copyTo(n),this.reduce(n),n},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,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}();function Y(){return new W(null)}function tt(e,t){return new W(e,t)}var Do=typeof navigator<"u";Do&&Ao&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(e,t,n,r,i,s){for(var o=t&32767,a=t>>15;--s>=0;){var c=this[e]&32767,u=this[e++]>>15,l=a*c+u*o;c=o*c+((l&32767)<<15)+n[r]+(i&1073741823),i=(c>>>30)+(l>>>15)+a*u+(i>>>30),n[r++]=c&1073741823}return i},Vt=30):Do&&Ao&&navigator.appName!="Netscape"?(W.prototype.am=function(e,t,n,r,i,s){for(;--s>=0;){var o=t*this[e++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=o&67108863}return i},Vt=26):(W.prototype.am=function(e,t,n,r,i,s){for(var o=t&16383,a=t>>14;--s>=0;){var c=this[e]&16383,u=this[e++]>>14,l=a*c+u*o;c=o*c+((l&16383)<<14)+n[r]+i,i=(c>>28)+(l>>14)+a*u,n[r++]=c&268435455}return i},Vt=28),W.prototype.DB=Vt,W.prototype.DM=(1<<Vt)-1,W.prototype.DV=1<<Vt;var kr=52;W.prototype.FV=Math.pow(2,kr),W.prototype.F1=kr-Vt,W.prototype.F2=2*Vt-kr;var lr=[],Re,Tt;for(Re=48,Tt=0;Tt<=9;++Tt)lr[Re++]=Tt;for(Re=97,Tt=10;Tt<36;++Tt)lr[Re++]=Tt;for(Re=65,Tt=10;Tt<36;++Tt)lr[Re++]=Tt;function Co(e,t){var n=lr[e.charCodeAt(t)];return n!=null?n:-1}function Ht(e){var t=Y();return t.fromInt(e),t}function En(e){var t=1,n;return(n=e>>>16)!=0&&(e=n,t+=16),(n=e>>8)!=0&&(e=n,t+=8),(n=e>>4)!=0&&(e=n,t+=4),(n=e>>2)!=0&&(e=n,t+=2),(n=e>>1)!=0&&(e=n,t+=1),t}W.ZERO=Ht(0),W.ONE=Ht(1);var rv=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var n,r,i;for(n=0;n<256;++n)this.S[n]=n;for(r=0,n=0;n<256;++n)r=r+this.S[n]+t[n%t.length]&255,i=this.S[n],this.S[n]=this.S[r],this.S[r]=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 iv(){return new rv}var wu=256,Sn,zt=null,Ot;if(zt==null){zt=[],Ot=0;var xn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Nr=new Uint32Array(256);for(window.crypto.getRandomValues(Nr),xn=0;xn<Nr.length;++xn)zt[Ot++]=Nr[xn]&255}var Tn=0,On=function(e){if(Tn=Tn||0,Tn>=256||Ot>=wu){window.removeEventListener?window.removeEventListener("mousemove",On,!1):window.detachEvent&&window.detachEvent("onmousemove",On);return}try{var t=e.x+e.y;zt[Ot++]=t&255,Tn+=1}catch(n){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",On,!1):window.attachEvent&&window.attachEvent("onmousemove",On))}function sv(){if(Sn==null){for(Sn=iv();Ot<wu;){var e=Math.floor(65536*Math.random());zt[Ot++]=e&255}for(Sn.init(zt),Ot=0;Ot<zt.length;++Ot)zt[Ot]=0;Ot=0}return Sn.next()}var ui=function(){function e(){}return e.prototype.nextBytes=function(t){for(var n=0;n<t.length;++n)t[n]=sv()},e}();function ov(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",i=0;i<n;i+=2)r+="ff";var s="0001"+r+"00"+e;return tt(s,16)}function av(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=i&63|128,n[--t]=i>>6|192):(n[--t]=i&63|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var s=new ui,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);n[--t]=o[0]}return n[--t]=2,n[--t]=0,new W(n)}var uv=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 n=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(r)<0;)n=n.add(this.p);return n.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.setPublic=function(t,n){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=tt(t,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var n=this.n.bitLength()+7>>3,r=av(t,n);if(r==null)return null;var i=this.doPublic(r);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<n*2-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,n,r){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=tt(t,16),this.e=parseInt(n,16),this.d=tt(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,n,r,i,s,o,a,c){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=tt(t,16),this.e=parseInt(n,16),this.d=tt(r,16),this.p=tt(i,16),this.q=tt(s,16),this.dmp1=tt(o,16),this.dmq1=tt(a,16),this.coeff=tt(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,n){var r=new ui,i=t>>1;this.e=parseInt(n,16);for(var s=new W(n,16);;){for(;this.p=new W(t-i,1,r),!(this.p.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new W(i,1,r),!(this.q.subtract(W.ONE).gcd(s).compareTo(W.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(W.ONE),c=this.q.subtract(W.ONE),u=a.multiply(c);if(u.gcd(s).compareTo(W.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var n=tt(t,16),r=this.doPrivate(n);return r==null?null:cv(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,n,r){var i=new ui,s=t>>1;this.e=parseInt(n,16);var o=new W(n,16),a=this,c=function(){var u=function(){if(a.p.compareTo(a.q)<=0){var h=a.p;a.p=a.q,a.q=h}var d=a.p.subtract(W.ONE),p=a.q.subtract(W.ONE),m=d.multiply(p);m.gcd(o).compareTo(W.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(m),a.dmp1=a.d.mod(d),a.dmq1=a.d.mod(p),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(c,0)},l=function(){a.q=Y(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)})})},f=function(){a.p=Y(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(W.ONE).gcda(o,function(h){h.compareTo(W.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(c,0)},e.prototype.sign=function(t,n,r){var i=lv(r),s=i+n(t).toString(),o=ov(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var c=a.toString(16);return c.length&1?"0"+c:c},e.prototype.verify=function(t,n,r){var i=tt(n,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),a=fv(o);return a==r(t).toString()},e}();function cv(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&n[r]==0;)++r;if(n.length-r!=t-1||n[r]!=2)return null;for(++r;n[r]!=0;)if(++r>=n.length)return null;for(var i="";++r<n.length;){var s=n[r]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|n[r+1]&63),++r):(i+=String.fromCharCode((s&15)<<12|(n[r+1]&63)<<6|n[r+2]&63),r+=2)}return i}var Cn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function lv(e){return Cn[e]||""}function fv(e){for(var t in Cn)if(Cn.hasOwnProperty(t)){var n=Cn[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}/*!
27
27
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
28
28
  Code licensed under the BSD License:
29
29
  http://developer.yahoo.com/yui/license.html
@@ -35,49 +35,49 @@ version: 2.9.0
35
35
  * @version asn1 1.0.13 (2017-Jun-02)
36
36
  * @since jsrsasign 2.1
37
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 n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",s=0;s<r;s++)i+="f";var o=new W(i,16),a=o.xor(e).add(W.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=R,n=t.asn1,r=n.DERBoolean,i=n.DERInteger,s=n.DERBitString,o=n.DEROctetString,a=n.DERNull,c=n.DERObjectIdentifier,u=n.DEREnumerated,l=n.DERUTF8String,f=n.DERNumericString,h=n.DERPrintableString,d=n.DERTeletexString,p=n.DERIA5String,m=n.DERUTCTime,b=n.DERGeneralizedTime,E=n.DERSequence,g=n.DERSet,v=n.DERTaggedObject,_=n.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var y=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+y+":")==-1)throw"undefined key: "+y;if(y=="bool")return new r(e[y]);if(y=="int")return new i(e[y]);if(y=="bitstr")return new s(e[y]);if(y=="octstr")return new o(e[y]);if(y=="null")return new a(e[y]);if(y=="oid")return new c(e[y]);if(y=="enum")return new u(e[y]);if(y=="utf8str")return new l(e[y]);if(y=="numstr")return new f(e[y]);if(y=="prnstr")return new h(e[y]);if(y=="telstr")return new d(e[y]);if(y=="ia5str")return new p(e[y]);if(y=="utctime")return new m(e[y]);if(y=="gentime")return new b(e[y]);if(y=="seq"){for(var x=e[y],$=[],V=0;V<x.length;V++){var w=_(x[V]);$.push(w)}return new E({array:$})}if(y=="set"){for(var x=e[y],$=[],V=0;V<x.length;V++){var w=_(x[V]);$.push(w)}return new g({array:$})}if(y=="tag"){var T=e[y];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var M=_(T[2]);return new v({tag:T[0],explicit:T[1],obj:M})}else{var C={};if(T.explicit!==void 0&&(C.explicit=T.explicit),T.tag!==void 0&&(C.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=_(T.obj),new v(C)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},R.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),n=Math.floor(t/40),r=t%40,i=n+"."+r,s="",o=2;o<e.length;o+=2){var a=parseInt(e.substr(o,2),16),c=("00000000"+a.toString(2)).slice(-8);if(s=s+c.substr(1,7),c.substr(0,1)=="0"){var u=new W(s,2);i=i+"."+u.toString(10),s=""}}return i},R.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var c=a.toString(16);return c.length==1&&(c="0"+c),c},n=function(a){var c="",u=new W(a,10),l=u.toString(2),f=7-l.length%7;f==7&&(f=0);for(var h="",d=0;d<f;d++)h+="0";l=h+l;for(var d=0;d<l.length-1;d+=7){var p=l.substr(d,7);d!=l.length-7&&(p="1"+p),c+=t(parseInt(p,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);return r},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,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var r=n.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+n},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))},nt.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 n=new Date(utc);return n},this.formatDate=function(t,n,r){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());n=="utc"&&(o=o.substr(2,2));var a=i(String(s.getMonth()+1),2),c=i(String(s.getDate()),2),u=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),h=o+a+c+u+l+f;if(r===!0){var d=s.getMilliseconds();if(d!=0){var p=i(String(d),3);p=p.replace(/[0]+$/,""),h=h+"."+p}}return h+"Z"},this.zeroPadding=function(t,n){return t.length>=n?t:new Array(n-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,n,r,i,s,o){var a=new Date(Date.UTC(t,n-1,r,i,s,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},nt.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)},nt.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"},nt.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 n=new W(String(t),10);this.setByBigInteger(n)},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))},nt.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(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,r){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var i="0"+n;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var r=8-n.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)n+="0";for(var s="",i=0;i<n.length-1;i+=8){var o=n.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"+r+s},this.setByBooleanArray=function(n){for(var r="",i=0;i<n.length;i++)n[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(n){for(var r=new Array(n),i=0;i<n;i++)r[i]=!1;return r},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))},nt.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"},nt.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"},nt.lang.extend(R.asn1.DERNull,R.asn1.ASN1Object),R.asn1.DERObjectIdentifier=function(e){var t=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},n=function(r){var i="",s=new W(r,10),o=s.toString(2),a=7-o.length%7;a==7&&(a=0);for(var c="",u=0;u<a;u++)c+="0";o=c+o;for(var u=0;u<o.length-1;u+=7){var l=o.substr(u,7);u!=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(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",s=r.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+=n(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=R.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},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))},nt.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 n=new W(String(t),10);this.setByBigInteger(n)},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))},nt.lang.extend(R.asn1.DEREnumerated,R.asn1.ASN1Object),R.asn1.DERUTF8String=function(e){R.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},nt.lang.extend(R.asn1.DERUTF8String,R.asn1.DERAbstractString),R.asn1.DERNumericString=function(e){R.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},nt.lang.extend(R.asn1.DERNumericString,R.asn1.DERAbstractString),R.asn1.DERPrintableString=function(e){R.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},nt.lang.extend(R.asn1.DERPrintableString,R.asn1.DERAbstractString),R.asn1.DERTeletexString=function(e){R.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},nt.lang.extend(R.asn1.DERTeletexString,R.asn1.DERAbstractString),R.asn1.DERIA5String=function(e){R.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},nt.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))},nt.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))},nt.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="",n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t+=r.getEncodedHex()}return this.hV=t,this.hV}},nt.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,n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t.push(r.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)},nt.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,n,r){this.hT=n,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),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)))},nt.lang.extend(R.asn1.DERTaggedObject,R.asn1.ASN1Object);var dv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Po=function(e){dv(t,e);function t(n){var r=e.call(this)||this;return n&&(typeof n=="string"?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return t.prototype.parseKey=function(n){try{var r=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(n)?G1.decode(n):ai.unarmor(n),a=X1.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){r=a.sub[1].getHexStringValue(),this.n=tt(r,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var c=a.sub[3].getHexStringValue();this.d=tt(c,16);var u=a.sub[4].getHexStringValue();this.p=tt(u,16);var l=a.sub[5].getHexStringValue();this.q=tt(l,16);var f=a.sub[6].getHexStringValue();this.dmp1=tt(f,16);var h=a.sub[7].getHexStringValue();this.dmq1=tt(h,16);var d=a.sub[8].getHexStringValue();this.coeff=tt(d,16)}else if(a.sub.length===2)if(a.sub[0].sub){var p=a.sub[1],m=p.sub[0];r=m.sub[0].getHexStringValue(),this.n=tt(r,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=a.sub[0].getHexStringValue(),this.n=tt(r,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 n={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})]},r=new R.asn1.DERSequence(n);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Jn(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var n=new R.asn1.DERSequence({array:[new R.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new R.asn1.DERNull]}),r=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"+r.getEncodedHex()}),s=new R.asn1.DERSequence({array:[n,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Jn(this.getPublicBaseKey())},t.wordwrap=function(n,r){if(r=r||64,!n)return n;var i="(.{1,"+r+`})( +|$
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 n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",s=0;s<r;s++)i+="f";var o=new W(i,16),a=o.xor(e).add(W.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=R,n=t.asn1,r=n.DERBoolean,i=n.DERInteger,s=n.DERBitString,o=n.DEROctetString,a=n.DERNull,c=n.DERObjectIdentifier,u=n.DEREnumerated,l=n.DERUTF8String,f=n.DERNumericString,h=n.DERPrintableString,d=n.DERTeletexString,p=n.DERIA5String,m=n.DERUTCTime,b=n.DERGeneralizedTime,E=n.DERSequence,g=n.DERSet,v=n.DERTaggedObject,_=n.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var y=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+y+":")==-1)throw"undefined key: "+y;if(y=="bool")return new r(e[y]);if(y=="int")return new i(e[y]);if(y=="bitstr")return new s(e[y]);if(y=="octstr")return new o(e[y]);if(y=="null")return new a(e[y]);if(y=="oid")return new c(e[y]);if(y=="enum")return new u(e[y]);if(y=="utf8str")return new l(e[y]);if(y=="numstr")return new f(e[y]);if(y=="prnstr")return new h(e[y]);if(y=="telstr")return new d(e[y]);if(y=="ia5str")return new p(e[y]);if(y=="utctime")return new m(e[y]);if(y=="gentime")return new b(e[y]);if(y=="seq"){for(var x=e[y],$=[],V=0;V<x.length;V++){var w=_(x[V]);$.push(w)}return new E({array:$})}if(y=="set"){for(var x=e[y],$=[],V=0;V<x.length;V++){var w=_(x[V]);$.push(w)}return new g({array:$})}if(y=="tag"){var T=e[y];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var M=_(T[2]);return new v({tag:T[0],explicit:T[1],obj:M})}else{var C={};if(T.explicit!==void 0&&(C.explicit=T.explicit),T.tag!==void 0&&(C.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=_(T.obj),new v(C)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},R.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),n=Math.floor(t/40),r=t%40,i=n+"."+r,s="",o=2;o<e.length;o+=2){var a=parseInt(e.substr(o,2),16),c=("00000000"+a.toString(2)).slice(-8);if(s=s+c.substr(1,7),c.substr(0,1)=="0"){var u=new W(s,2);i=i+"."+u.toString(10),s=""}}return i},R.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var c=a.toString(16);return c.length==1&&(c="0"+c),c},n=function(a){var c="",u=new W(a,10),l=u.toString(2),f=7-l.length%7;f==7&&(f=0);for(var h="",d=0;d<f;d++)h+="0";l=h+l;for(var d=0;d<l.length-1;d+=7){var p=l.substr(d,7);d!=l.length-7&&(p="1"+p),c+=t(parseInt(p,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);return r},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,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var r=n.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+n},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))},nt.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 n=new Date(utc);return n},this.formatDate=function(t,n,r){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());n=="utc"&&(o=o.substr(2,2));var a=i(String(s.getMonth()+1),2),c=i(String(s.getDate()),2),u=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),h=o+a+c+u+l+f;if(r===!0){var d=s.getMilliseconds();if(d!=0){var p=i(String(d),3);p=p.replace(/[0]+$/,""),h=h+"."+p}}return h+"Z"},this.zeroPadding=function(t,n){return t.length>=n?t:new Array(n-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,n,r,i,s,o){var a=new Date(Date.UTC(t,n-1,r,i,s,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},nt.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)},nt.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"},nt.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 n=new W(String(t),10);this.setByBigInteger(n)},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))},nt.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(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,r){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var i="0"+n;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var r=8-n.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)n+="0";for(var s="",i=0;i<n.length-1;i+=8){var o=n.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"+r+s},this.setByBooleanArray=function(n){for(var r="",i=0;i<n.length;i++)n[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(n){for(var r=new Array(n),i=0;i<n;i++)r[i]=!1;return r},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))},nt.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"},nt.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"},nt.lang.extend(R.asn1.DERNull,R.asn1.ASN1Object),R.asn1.DERObjectIdentifier=function(e){var t=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},n=function(r){var i="",s=new W(r,10),o=s.toString(2),a=7-o.length%7;a==7&&(a=0);for(var c="",u=0;u<a;u++)c+="0";o=c+o;for(var u=0;u<o.length-1;u+=7){var l=o.substr(u,7);u!=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(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",s=r.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+=n(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=R.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},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))},nt.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 n=new W(String(t),10);this.setByBigInteger(n)},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))},nt.lang.extend(R.asn1.DEREnumerated,R.asn1.ASN1Object),R.asn1.DERUTF8String=function(e){R.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},nt.lang.extend(R.asn1.DERUTF8String,R.asn1.DERAbstractString),R.asn1.DERNumericString=function(e){R.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},nt.lang.extend(R.asn1.DERNumericString,R.asn1.DERAbstractString),R.asn1.DERPrintableString=function(e){R.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},nt.lang.extend(R.asn1.DERPrintableString,R.asn1.DERAbstractString),R.asn1.DERTeletexString=function(e){R.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},nt.lang.extend(R.asn1.DERTeletexString,R.asn1.DERAbstractString),R.asn1.DERIA5String=function(e){R.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},nt.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))},nt.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))},nt.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="",n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t+=r.getEncodedHex()}return this.hV=t,this.hV}},nt.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,n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t.push(r.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)},nt.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,n,r){this.hT=n,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),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)))},nt.lang.extend(R.asn1.DERTaggedObject,R.asn1.ASN1Object);var hv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Po=function(e){hv(t,e);function t(n){var r=e.call(this)||this;return n&&(typeof n=="string"?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return t.prototype.parseKey=function(n){try{var r=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(n)?Y1.decode(n):ai.unarmor(n),a=Q1.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){r=a.sub[1].getHexStringValue(),this.n=tt(r,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var c=a.sub[3].getHexStringValue();this.d=tt(c,16);var u=a.sub[4].getHexStringValue();this.p=tt(u,16);var l=a.sub[5].getHexStringValue();this.q=tt(l,16);var f=a.sub[6].getHexStringValue();this.dmp1=tt(f,16);var h=a.sub[7].getHexStringValue();this.dmq1=tt(h,16);var d=a.sub[8].getHexStringValue();this.coeff=tt(d,16)}else if(a.sub.length===2)if(a.sub[0].sub){var p=a.sub[1],m=p.sub[0];r=m.sub[0].getHexStringValue(),this.n=tt(r,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=a.sub[0].getHexStringValue(),this.n=tt(r,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 n={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})]},r=new R.asn1.DERSequence(n);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Jn(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var n=new R.asn1.DERSequence({array:[new R.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new R.asn1.DERNull]}),r=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"+r.getEncodedHex()}),s=new R.asn1.DERSequence({array:[n,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Jn(this.getPublicBaseKey())},t.wordwrap=function(n,r){if(r=r||64,!n)return n;var i="(.{1,"+r+`})( +|$
39
39
  ?)|(.{1,`+r+"})";return n.match(RegExp(i,"g")).join(`
40
40
  `)},t.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
41
41
  `;return n+=t.wordwrap(this.getPrivateBaseKeyB64())+`
42
42
  `,n+="-----END RSA PRIVATE KEY-----",n},t.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
43
43
  `;return n+=t.wordwrap(this.getPublicBaseKeyB64())+`
44
- `,n+="-----END PUBLIC KEY-----",n},t.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},t}(cv),Br,pv=typeof process<"u"?(Br=zl)===null||Br===void 0?void 0:Br.npm_package_version:void 0,xu=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 Po(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(Oo(t))}catch(n){return!1}},e.prototype.encrypt=function(t){try{return Jn(this.getKey().encrypt(t))}catch(n){return!1}},e.prototype.sign=function(t,n,r){try{return Jn(this.getKey().sign(t,n,r))}catch(i){return!1}},e.prototype.verify=function(t,n,r){try{return this.getKey().verify(t,Oo(n),r)}catch(i){return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Po,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=pv,e}();const mv="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALdyxTCEB5WcGnbeUyN4xn1cs8z+0tC72vgbd/L99om5TZ0OfRqRb6Y7RJfdimB9LJyvmyP9T1P0jWrHkotq8iUCAwEAAQ==",gv="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function yv(e){return String(L1(e))}function vv(e){const t=qi.parse(e);return gu.stringify(t)}function bv(e){return qi.stringify(gu.parse(e))}function _v(e,t=mv){const n=new xu;return n.setKey(t),n.encrypt(e)}function ci(e,t=gv){const n=new xu;return n.setPrivateKey(t),n.decrypt(e)}function wv(e,t){return _u.encrypt(e,t).toString()}function Ev(e,t){return _u.decrypt(e,t).toString(qi)}const Ki=/^(http|https):\/\/[\w.:\-@]*/,Tu=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,Ou=/^(^[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])$)$/,$u=/^(0|86|17951)?(1[\d]{10})$/,Au=/^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领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 ju(e){return Ki.test(e)}function Sv(e){return Tu.test(e)}function xv(e){return Ou.test(e)}function Tv(e){return $u.test(e)}function Ov(e){return Au.test(e)}var Ru={exports:{}};/*! @preserve
44
+ `,n+="-----END PUBLIC KEY-----",n},t.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},t}(uv),Br,dv=typeof process<"u"?(Br=Ul)===null||Br===void 0?void 0:Br.npm_package_version:void 0,Eu=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 Po(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(Oo(t))}catch(n){return!1}},e.prototype.encrypt=function(t){try{return Jn(this.getKey().encrypt(t))}catch(n){return!1}},e.prototype.sign=function(t,n,r){try{return Jn(this.getKey().sign(t,n,r))}catch(i){return!1}},e.prototype.verify=function(t,n,r){try{return this.getKey().verify(t,Oo(n),r)}catch(i){return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Po,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=dv,e}();const pv="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALdyxTCEB5WcGnbeUyN4xn1cs8z+0tC72vgbd/L99om5TZ0OfRqRb6Y7RJfdimB9LJyvmyP9T1P0jWrHkotq8iUCAwEAAQ==",mv="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function gv(e){return String(F1(e))}function yv(e){const t=qi.parse(e);return pu.stringify(t)}function vv(e){return qi.stringify(pu.parse(e))}function bv(e,t=pv){const n=new Eu;return n.setKey(t),n.encrypt(e)}function ci(e,t=mv){const n=new Eu;return n.setPrivateKey(t),n.decrypt(e)}function _v(e,t){return vu.encrypt(e,t).toString()}function wv(e,t){return vu.decrypt(e,t).toString(qi)}const Ki=/^(http|https):\/\/[\w.:\-@]*/,Su=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,xu=/^(^[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])$)$/,Tu=/^(0|86|17951)?(1[\d]{10})$/,Ou=/^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领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 $u(e){return Ki.test(e)}function Ev(e){return Su.test(e)}function Sv(e){return xu.test(e)}function xv(e){return Tu.test(e)}function Tv(e){return Ou.test(e)}var Au={exports:{}};/*! @preserve
45
45
  * numeral.js
46
46
  * version : 2.0.6
47
47
  * author : Adam Draper
48
48
  * license : MIT
49
49
  * http://adamwdraper.github.com/Numeral-js/
50
- */(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(ft,function(){var t,n,r="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 c(u,l){this._input=u,this._value=l}return t=function(u){var l,f,h,d;if(t.isNumeral(u))l=u.value();else if(u===0||typeof u>"u")l=0;else if(u===null||n.isNaN(u))l=null;else if(typeof u=="string")if(a.zeroFormat&&u===a.zeroFormat)l=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)l=null;else{for(f in i)if(d=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,d&&u.match(d)){h=i[f].unformat;break}h=h||t._.stringToNumber,l=h(u)}else l=Number(u)||null;return new c(u,l)},t.version=r,t.isNumeral=function(u){return u instanceof c},t._=n={numberToFormat:function(u,l,f){var h=s[t.options.currentLocale],d=!1,p=!1,m=0,b="",E=1e12,g=1e9,v=1e6,_=1e3,S="",y=!1,x,$,V,w,T,M,C;if(u=u||0,$=Math.abs(u),t._.includes(l,"(")?(d=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):u<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]?"),""),$>=E&&!x||x==="t"?(b+=h.abbreviations.trillion,u=u/E):$<E&&$>=g&&!x||x==="b"?(b+=h.abbreviations.billion,u=u/g):$<g&&$>=v&&!x||x==="m"?(b+=h.abbreviations.million,u=u/v):($<v&&$>=_&&!x||x==="k")&&(b+=h.abbreviations.thousand,u=u/_)),t._.includes(l,"[.]")&&(p=!0,l=l.replace("[.]",".")),V=u.toString().split(".")[0],w=l.split(".")[1],M=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),S=t._.toFixed(u,w[0].length+w[1].length,f,w[1].length)):S=t._.toFixed(u,w.length,f),V=S.split(".")[0],t._.includes(S,".")?S=h.delimiters.decimal+S.split(".")[1]:S="",p&&Number(S.slice(1))===0&&(S="")):V=t._.toFixed(u,0,f),b&&!x&&Number(V)>=1e3&&b!==h.abbreviations.trillion)switch(V=String(Number(V)/1e3),b){case h.abbreviations.thousand:b=h.abbreviations.million;break;case h.abbreviations.million:b=h.abbreviations.billion;break;case h.abbreviations.billion:b=h.abbreviations.trillion;break}if(t._.includes(V,"-")&&(V=V.slice(1),y=!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"+h.delimiters.thousands)),l.indexOf(".")===0&&(V=""),C=V+S+(b||""),d?C=(d&&y?"(":"")+C+(d&&y?")":""):T>=0?C=T===0?(y?"-":"+")+C:C+(y?"-":"+"):y&&(C="-"+C),C},stringToNumber:function(u){var l=s[a.currentLocale],f=u,h={thousand:3,million:6,billion:9,trillion:12},d,p,m;if(a.zeroFormat&&u===a.zeroFormat)p=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)p=null;else{p=1,l.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(d in h)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[d]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),f.match(m)){p*=Math.pow(10,h[d]);break}p*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),p*=Number(u)}return p},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,l){return u.indexOf(l)!==-1},insert:function(u,l,f){return u.slice(0,f)+l+u.slice(f)},reduce:function(u,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 f=Object(u),h=f.length>>>0,d=0,p;if(arguments.length===3)p=arguments[2];else{for(;d<h&&!(d in f);)d++;if(d>=h)throw new TypeError("Reduce of empty array with no initial value");p=f[d++]}for(;d<h;d++)d in f&&(p=l(p,f[d],d,f));return p},multiplier:function(u){var l=u.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(l,f){var h=n.multiplier(f);return l>h?l:h},1)},toFixed:function(u,l,f,h){var d=u.toString().split("."),p=l-(h||0),m,b,E,g;return d.length===2?m=Math.min(Math.max(d[1].length,p),l):m=p,E=Math.pow(10,m),g=(f(u+"e+"+m)/E).toFixed(m),h>l-m&&(b=new RegExp("\\.?0{1,"+(h-(l-m))+"}$"),g=g.replace(b,"")),g}},t.options=a,t.formats=i,t.locales=s,t.locale=function(u){return u&&(a.currentLocale=u.toLowerCase()),a.currentLocale},t.localeData=function(u){if(!u)return s[a.currentLocale];if(u=u.toLowerCase(),!s[u])throw new Error("Unknown locale : "+u);return s[u]},t.reset=function(){for(var u in o)a[u]=o[u]},t.zeroFormat=function(u){a.zeroFormat=typeof u=="string"?u:null},t.nullFormat=function(u){a.nullFormat=typeof u=="string"?u:null},t.defaultFormat=function(u){a.defaultFormat=typeof u=="string"?u:"0.0"},t.register=function(u,l,f){if(l=l.toLowerCase(),this[u+"s"][l])throw new TypeError(l+" "+u+" already registered.");return this[u+"s"][l]=f,f},t.validate=function(u,l){var f,h,d,p,m,b,E,g;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{E=t.localeData(l)}catch(v){E=t.localeData(t.locale())}return d=E.currency.symbol,m=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?h="\\.":h=E.delimiters.thousands,g=u.match(/^[^\d]+/),g!==null&&(u=u.substr(1),g[0]!==d)||(g=u.match(/[^\d]+$/),g!==null&&(u=u.slice(0,-1),g[0]!==m.thousand&&g[0]!==m.million&&g[0]!==m.billion&&g[0]!==m.trillion))?!1:(b=new RegExp(h+"{2}"),u.match(/[^\d.,]/g)?!1:(p=u.split(f),p.length>2?!1:p.length<2?!!p[0].match(/^\d+.*\d$/)&&!p[0].match(b):p[0].length===1?!!p[0].match(/^\d+$/)&&!p[0].match(b)&&!!p[1].match(/^\d+$/):!!p[0].match(/^\d+.*\d$/)&&!p[0].match(b)&&!!p[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(u,l){var f=this._value,h=u||a.defaultFormat,d,p,m;if(l=l||Math.round,f===0&&a.zeroFormat!==null)p=a.zeroFormat;else if(f===null&&a.nullFormat!==null)p=a.nullFormat;else{for(d in i)if(h.match(i[d].regexps.format)){m=i[d].format;break}m=m||t._.numberToFormat,p=m(f,h,l)}return p},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var l=n.correctionFactor.call(null,this._value,u);function f(h,d,p,m){return h+Math.round(l*d)}return this._value=n.reduce([this._value,u],f,0)/l,this},subtract:function(u){var l=n.correctionFactor.call(null,this._value,u);function f(h,d,p,m){return h-Math.round(l*d)}return this._value=n.reduce([u],f,Math.round(this._value*l))/l,this},multiply:function(u){function l(f,h,d,p){var m=n.correctionFactor(f,h);return Math.round(f*m)*Math.round(h*m)/Math.round(m*m)}return this._value=n.reduce([this._value,u],l,1),this},divide:function(u){function l(f,h,d,p){var m=n.correctionFactor(f,h);return Math.round(f*m)/Math.round(h*m)}return this._value=n.reduce([this._value,u],l),this},difference:function(u){return Math.abs(t(this._value).subtract(u).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var l=u%10;return~~(u%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(u,l,f){var h=t._.includes(l," BPS")?" ":"",d;return u=u*1e4,l=l.replace(/\s?BPS/,""),d=t._.numberToFormat(u,l,f),t._.includes(d,")")?(d=d.split(""),d.splice(-1,0,h+"BPS"),d=d.join("")):d=d+h+"BPS",d},unformat:function(u){return+(t._.stringToNumber(u)*1e-4).toFixed(15)}})}(),function(){var u={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"]},f=u.suffixes.concat(l.suffixes.filter(function(d){return u.suffixes.indexOf(d)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(d,p,m){var b,E=t._.includes(p,"ib")?l:u,g=t._.includes(p," b")||t._.includes(p," ib")?" ":"",v,_,S;for(p=p.replace(/\s?i?b/,""),v=0;v<=E.suffixes.length;v++)if(_=Math.pow(E.base,v),S=Math.pow(E.base,v+1),d===null||d===0||d>=_&&d<S){g+=E.suffixes[v],_>0&&(d=d/_);break}return b=t._.numberToFormat(d,p,m),b+g},unformat:function(d){var p=t._.stringToNumber(d),m,b;if(p){for(m=u.suffixes.length-1;m>=0;m--){if(t._.includes(d,u.suffixes[m])){b=Math.pow(u.base,m);break}if(t._.includes(d,l.suffixes[m])){b=Math.pow(l.base,m);break}}p*=b||1}return p}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(u,l,f){var h=t.locales[t.options.currentLocale],d={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},p,m,b;for(l=l.replace(/\s?\$\s?/,""),p=t._.numberToFormat(u,l,f),u>=0?(d.before=d.before.replace(/[\-\(]/,""),d.after=d.after.replace(/[\-\)]/,"")):u<0&&!t._.includes(d.before,"-")&&!t._.includes(d.before,"(")&&(d.before="-"+d.before),b=0;b<d.before.length;b++)switch(m=d.before[b],m){case"$":p=t._.insert(p,h.currency.symbol,b);break;case" ":p=t._.insert(p," ",b+h.currency.symbol.length-1);break}for(b=d.after.length-1;b>=0;b--)switch(m=d.after[b],m){case"$":p=b===d.after.length-1?p+h.currency.symbol:t._.insert(p,h.currency.symbol,-(d.after.length-(1+b)));break;case" ":p=b===d.after.length-1?p+" ":t._.insert(p," ",-(d.after.length-(1+b)+h.currency.symbol.length-1));break}return p}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,l,f){var h,d=typeof u=="number"&&!t._.isNaN(u)?u.toExponential():"0e+0",p=d.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),h=t._.numberToFormat(Number(p[0]),l,f),h+"e"+p[1]},unformat:function(u){var l=t._.includes(u,"e+")?u.split("e+"):u.split("e-"),f=Number(l[0]),h=Number(l[1]);h=t._.includes(u,"e-")?h*=-1:h;function d(p,m,b,E){var g=t._.correctionFactor(p,m),v=p*g*(m*g)/(g*g);return v}return t._.reduce([f,Math.pow(10,h)],d,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,l,f){var h=t.locales[t.options.currentLocale],d,p=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),p+=h.ordinal(u),d=t._.numberToFormat(u,l,f),d+p}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,l,f){var h=t._.includes(l," %")?" ":"",d;return t.options.scalePercentBy100&&(u=u*100),l=l.replace(/\s?\%/,""),d=t._.numberToFormat(u,l,f),t._.includes(d,")")?(d=d.split(""),d.splice(-1,0,h+"%"),d=d.join("")):d=d+h+"%",d},unformat:function(u){var l=t._.stringToNumber(u);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,l,f){var h=Math.floor(u/60/60),d=Math.floor((u-h*60*60)/60),p=Math.round(u-h*60*60-d*60);return h+":"+(d<10?"0"+d:d)+":"+(p<10?"0"+p:p)},unformat:function(u){var l=u.split(":"),f=0;return l.length===3?(f=f+Number(l[0])*60*60,f=f+Number(l[1])*60,f=f+Number(l[2])):l.length===2&&(f=f+Number(l[0])*60,f=f+Number(l[1])),Number(f)}})}(),t})})(Ru);var $v=Ru.exports;const Du=Ne($v);function Av(e,t="0.00"){return Du(e).format(t)}function jv(e,t=2,n){return(n?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var ko={exports:{}},No;function Cu(){return No||(No=1,function(e,t){(function(n,r){e.exports=r()})(ft,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",c="hour",u="day",l="week",f="month",h="quarter",d="year",p="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var D=["th","st","nd","rd"],k=I%100;return"["+I+(D[(k-20)%10]||D[k]||D[0])+"]"}},v=function(I,D,k){var U=String(I);return!U||U.length>=D?I:""+Array(D+1-U.length).join(k)+I},_={s:v,z:function(I){var D=-I.utcOffset(),k=Math.abs(D),U=Math.floor(k/60),H=k%60;return(D<=0?"+":"-")+v(U,2,"0")+":"+v(H,2,"0")},m:function I(D,k){if(D.date()<k.date())return-I(k,D);var U=12*(k.year()-D.year())+(k.month()-D.month()),H=D.clone().add(U,f),q=k-H<0,K=D.clone().add(U+(q?-1:1),f);return+(-(U+(k-H)/(q?H-K:K-H))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:d,w:l,d:u,D:p,h:c,m:a,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",y={};y[S]=g;var x="$isDayjsObject",$=function(I){return I instanceof M||!(!I||!I[x])},V=function I(D,k,U){var H;if(!D)return S;if(typeof D=="string"){var q=D.toLowerCase();y[q]&&(H=q),k&&(y[q]=k,H=q);var K=D.split("-");if(!H&&K.length>1)return I(K[0])}else{var j=D.name;y[j]=D,H=j}return!U&&H&&(S=H),H||!U&&S},w=function(I,D){if($(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=$,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var M=function(){function I(k){this.$L=V(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(k){this.$d=function(U){var H=U.date,q=U.utc;if(H===null)return new Date(NaN);if(T.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var K=H.match(b);if(K){var j=K[2]-1||0,P=(K[7]||"0").substring(0,3);return q?new Date(Date.UTC(K[1],j,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)):new Date(K[1],j,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)}}return new Date(H)}(k),this.init()},D.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(k,U){var H=w(k);return this.startOf(U)<=H&&H<=this.endOf(U)},D.isAfter=function(k,U){return w(k)<this.startOf(U)},D.isBefore=function(k,U){return this.endOf(U)<w(k)},D.$g=function(k,U,H){return T.u(k)?this[U]:this.set(H,k)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(k,U){var H=this,q=!!T.u(U)||U,K=T.p(k),j=function(Yt,pt){var Lt=T.w(H.$u?Date.UTC(H.$y,pt,Yt):new Date(H.$y,pt,Yt),H);return q?Lt:Lt.endOf(u)},P=function(Yt,pt){return T.w(H.toDate()[Yt].apply(H.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(pt)),H)},N=this.$W,B=this.$M,St=this.$D,pe="set"+(this.$u?"UTC":"");switch(K){case d:return q?j(1,0):j(31,11);case f:return q?j(1,B):j(0,B+1);case l:var Wt=this.$locale().weekStart||0,Fe=(N<Wt?N+7:N)-Wt;return j(q?St-Fe:St+(6-Fe),B);case u:case p:return P(pe+"Hours",0);case c:return P(pe+"Minutes",1);case a:return P(pe+"Seconds",2);case o:return P(pe+"Milliseconds",3);default:return this.clone()}},D.endOf=function(k){return this.startOf(k,!1)},D.$set=function(k,U){var H,q=T.p(k),K="set"+(this.$u?"UTC":""),j=(H={},H[u]=K+"Date",H[p]=K+"Date",H[f]=K+"Month",H[d]=K+"FullYear",H[c]=K+"Hours",H[a]=K+"Minutes",H[o]=K+"Seconds",H[s]=K+"Milliseconds",H)[q],P=q===u?this.$D+(U-this.$W):U;if(q===f||q===d){var N=this.clone().set(p,1);N.$d[j](P),N.init(),this.$d=N.set(p,Math.min(this.$D,N.daysInMonth())).$d}else j&&this.$d[j](P);return this.init(),this},D.set=function(k,U){return this.clone().$set(k,U)},D.get=function(k){return this[T.p(k)]()},D.add=function(k,U){var H,q=this;k=Number(k);var K=T.p(U),j=function(B){var St=w(q);return T.w(St.date(St.date()+Math.round(B*k)),q)};if(K===f)return this.set(f,this.$M+k);if(K===d)return this.set(d,this.$y+k);if(K===u)return j(1);if(K===l)return j(7);var P=(H={},H[a]=r,H[c]=i,H[o]=n,H)[K]||1,N=this.$d.getTime()+k*P;return T.w(N,this)},D.subtract=function(k,U){return this.add(-1*k,U)},D.format=function(k){var U=this,H=this.$locale();if(!this.isValid())return H.invalidDate||m;var q=k||"YYYY-MM-DDTHH:mm:ssZ",K=T.z(this),j=this.$H,P=this.$m,N=this.$M,B=H.weekdays,St=H.months,pe=H.meridiem,Wt=function(pt,Lt,Le,gn){return pt&&(pt[Lt]||pt(U,q))||Le[Lt].slice(0,gn)},Fe=function(pt){return T.s(j%12||12,pt,"0")},Yt=pe||function(pt,Lt,Le){var gn=pt<12?"AM":"PM";return Le?gn.toLowerCase():gn};return q.replace(E,function(pt,Lt){return Lt||function(Le){switch(Le){case"YY":return String(U.$y).slice(-2);case"YYYY":return T.s(U.$y,4,"0");case"M":return N+1;case"MM":return T.s(N+1,2,"0");case"MMM":return Wt(H.monthsShort,N,St,3);case"MMMM":return Wt(St,N);case"D":return U.$D;case"DD":return T.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Wt(H.weekdaysMin,U.$W,B,2);case"ddd":return Wt(H.weekdaysShort,U.$W,B,3);case"dddd":return B[U.$W];case"H":return String(j);case"HH":return T.s(j,2,"0");case"h":return Fe(1);case"hh":return Fe(2);case"a":return Yt(j,P,!0);case"A":return Yt(j,P,!1);case"m":return String(P);case"mm":return T.s(P,2,"0");case"s":return String(U.$s);case"ss":return T.s(U.$s,2,"0");case"SSS":return T.s(U.$ms,3,"0");case"Z":return K}return null}(pt)||K.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(k,U,H){var q,K=this,j=T.p(U),P=w(k),N=(P.utcOffset()-this.utcOffset())*r,B=this-P,St=function(){return T.m(K,P)};switch(j){case d:q=St()/12;break;case f:q=St();break;case h:q=St()/3;break;case l:q=(B-N)/6048e5;break;case u:q=(B-N)/864e5;break;case c:q=B/i;break;case a:q=B/r;break;case o:q=B/n;break;default:q=B}return H?q:T.a(q)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return y[this.$L]},D.locale=function(k,U){if(!k)return this.$L;var H=this.clone(),q=V(k,U,!0);return q&&(H.$L=q),H},D.clone=function(){return T.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},I}(),C=M.prototype;return w.prototype=C,[["$ms",s],["$s",o],["$m",a],["$H",c],["$W",u],["$M",f],["$y",d],["$D",p]].forEach(function(I){C[I[1]]=function(D){return this.$g(D,I[0],I[1])}}),w.extend=function(I,D){return I.$i||(I(D,M,w),I.$i=!0),w},w.locale=V,w.isDayjs=$,w.unix=function(I){return w(1e3*I)},w.en=y[S],w.Ls=y,w.p={},w})}(ko)),ko.exports}var Rv=Cu();const Ji=Ne(Rv);var Dv={exports:{}};(function(e,t){(function(n,r){e.exports=r(Cu())})(ft,function(n){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(n),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 c=100*o+a;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(Dv),Ji.locale("zh-cn");function Cv(e,t="YYYY-MM-DD HH:mm:ss"){return Ji(e).format(t)}let Pv=0;const Pu=e=>Object.prototype.toString.call(e),kv=e=>Pu(e).slice(8,-1),Nv=e=>typeof e<"u",Bv=()=>Date.now(),ku=()=>+Date.now(),Iv=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function gt(){return Number((++Pv).toString()+Date.now()).toString(36)}function Nu(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=Math.random()*16|0;return(n==="x"?r:r&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function xe(e=0){return L(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Bu(e,t){return e.reduce((n,r)=>{const i=r[t];return n.set(i,r),n},new Map)}function fr(e){return[...e.entries()].reduce((t,[n,r])=>(t[n]=r,t),{})}function Mv(e=[],t="key",n="value"){const r={};for(const i of e)r[i[t]]=i[n];return r}function Fv(e={},t="key",n="value"){return Object.entries(e).map(([r,i])=>({[t]:r,[n]:i}))}function Iu(e,t){if(t){const n=Bu(e,t);return Array.from(n.values())}else return Array.from(new Set(e))}function li(e){return e?[].concat(e):[]}function Lv(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r!=null&&(t[n]=r),t},{})}function Pn(e,t){const n={};if(Array.isArray(t))Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])});else{const r=t;Object.entries(e).forEach(([i,s])=>{r(i,s)||(n[i]=s)})}return n}function Mu(e,t){const n={};if(Array.isArray(t))Object.keys(e).forEach(r=>{t.includes(r)&&(n[r]=e[r])});else{const r=t;Object.entries(e).forEach(([i,s])=>{r(i,s)&&(n[i]=s)})}return n}function fi(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(n=>fi(n)):(e&&t==="object"&&Object.entries(e).forEach(([n,r])=>{e[n]=fi(r)}),e)}function Fu(e=[],t){return t?e.reduce((n,r)=>n+Number(r[t]),0):e.reduce((n,r)=>n+Number(r),0)}function Vv(e=[],t){const n=Fu(e,t);return e.length?n/e.length:0}function Hv(e,t=","){return e?e.split(t):[]}function Uv(e,t=","){return e?e.join(t):""}function zv(e,t="id",n="parentId",r="children",i="null"){const s=ou(e,n);for(const o of Object.values(s))o.forEach(a=>{a[r]=s[a[t]]||[]});return s[i]}function Lu(e=[]){let t=[];return e.forEach(n=>{const s=n,{children:r}=s,i=Tr(s,["children"]);n.children&&n.children.length>0&&(t=t.concat(Lu(n.children))),t.push(i)}),t}var hi={exports:{}};hi.exports,function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(c,u){if(!s[c]){s[c]={};for(var l=0;l<c.length;l++)s[c][c.charAt(l)]=l}return s[c][u]}var a={compressToBase64:function(c){if(c==null)return"";var u=a._compress(c,6,function(l){return r.charAt(l)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:a._decompress(c.length,32,function(u){return o(r,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":a._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:a._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=a.compress(c),l=new Uint8Array(u.length*2),f=0,h=u.length;f<h;f++){var d=u.charCodeAt(f);l[f*2]=d>>>8,l[f*2+1]=d%256}return l},decompressFromUint8Array:function(c){if(c==null)return a.decompress(c);for(var u=new Array(c.length/2),l=0,f=u.length;l<f;l++)u[l]=c[l*2]*256+c[l*2+1];var h=[];return u.forEach(function(d){h.push(n(d))}),a.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":a._compress(c,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),a._decompress(c.length,32,function(u){return o(i,c.charAt(u))}))},compress:function(c){return a._compress(c,16,function(u){return n(u)})},_compress:function(c,u,l){if(c==null)return"";var f,h,d={},p={},m="",b="",E="",g=2,v=3,_=2,S=[],y=0,x=0,$;for($=0;$<c.length;$+=1)if(m=c.charAt($),Object.prototype.hasOwnProperty.call(d,m)||(d[m]=v++,p[m]=!0),b=E+m,Object.prototype.hasOwnProperty.call(d,b))E=b;else{if(Object.prototype.hasOwnProperty.call(p,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,x==u-1?(x=0,S.push(l(y)),y=0):x++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete p[E]}else for(h=d[E],f=0;f<_;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1;g--,g==0&&(g=Math.pow(2,_),_++),d[b]=v++,E=String(m)}if(E!==""){if(Object.prototype.hasOwnProperty.call(p,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,x==u-1?(x=0,S.push(l(y)),y=0):x++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete p[E]}else for(h=d[E],f=0;f<_;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1;g--,g==0&&(g=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1;for(;;)if(y=y<<1,x==u-1){S.push(l(y));break}else x++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:a._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,l){var f=[],h=4,d=4,p=3,m="",b=[],E,g,v,_,S,y,x,$={val:l(0),position:u,index:1};for(E=0;E<3;E+=1)f[E]=E;for(v=0,S=Math.pow(2,2),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;x=n(v);break;case 1:for(v=0,S=Math.pow(2,16),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;x=n(v);break;case 2:return""}for(f[3]=x,g=x,b.push(x);;){if($.index>c)return"";for(v=0,S=Math.pow(2,p),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;switch(x=v){case 0:for(v=0,S=Math.pow(2,8),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;f[d++]=n(v),x=d-1,h--;break;case 1:for(v=0,S=Math.pow(2,16),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;f[d++]=n(v),x=d-1,h--;break;case 2:return b.join("")}if(h==0&&(h=Math.pow(2,p),p++),f[x])m=f[x];else if(x===d)m=g+g.charAt(0);else return null;b.push(m),f[d++]=g+m.charAt(0),h--,g=m,h==0&&(h=Math.pow(2,p),p++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(hi);var Vu=hi.exports;function Hu(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}function qv(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var i="",s=n+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(n));t.push({type:"NAME",index:n,value:i}),n=s;continue}if(r==="("){var a=1,c="",s=n+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){c+=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));c+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(n));if(!c)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:c}),n=s;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function Wi(e,t){t===void 0&&(t={});for(var n=qv(e),r=t.prefixes,i=r===void 0?"./":r,s="[^".concat(we(t.delimiter||"/#?"),"]+?"),o=[],a=0,c=0,u="",l=function(y){if(c<n.length&&n[c].type===y)return n[c++].value},f=function(y){var x=l(y);if(x!==void 0)return x;var $=n[c],V=$.type,w=$.index;throw new TypeError("Unexpected ".concat(V," at ").concat(w,", expected ").concat(y))},h=function(){for(var y="",x;x=l("CHAR")||l("ESCAPED_CHAR");)y+=x;return y};c<n.length;){var d=l("CHAR"),p=l("NAME"),m=l("PATTERN");if(p||m){var b=d||"";i.indexOf(b)===-1&&(u+=b,b=""),u&&(o.push(u),u=""),o.push({name:p||a++,prefix:b,suffix:"",pattern:m||s,modifier:l("MODIFIER")||""});continue}var E=d||l("ESCAPED_CHAR");if(E){u+=E;continue}u&&(o.push(u),u="");var g=l("OPEN");if(g){var b=h(),v=l("NAME")||"",_=l("PATTERN")||"",S=h();f("CLOSE"),o.push({name:v||(_?a++:""),pattern:v&&!_?s:_,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}f("END")}return o}function Uu(e,t){return Kv(Wi(e,t),t)}function Kv(e,t){t===void 0&&(t={});var n=Yi(t),r=t.encode,i=r===void 0?function(c){return c}:r,s=t.validate,o=s===void 0?!0:s,a=e.map(function(c){if(typeof c=="object")return new RegExp("^(?:".concat(c.pattern,")$"),n)});return function(c){for(var u="",l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){u+=f;continue}var h=c?c[f.name]:void 0,d=f.modifier==="?"||f.modifier==="*",p=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!p)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(d)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var m=0;m<h.length;m++){var b=i(h[m],f);if(o&&!a[l].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var b=i(String(h),f);if(o&&!a[l].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix;continue}if(!d){var E=p?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return u}}function zu(e,t){var n=[],r=hr(e,n,t);return Jv(r,n,t)}function Jv(e,t,n){n===void 0&&(n={});var r=n.decode,i=r===void 0?function(s){return s}:r;return function(s){var o=e.exec(s);if(!o)return!1;for(var a=o[0],c=o.index,u=Object.create(null),l=function(h){if(o[h]===void 0)return"continue";var d=t[h-1];d.modifier==="*"||d.modifier==="+"?u[d.name]=o[h].split(d.prefix+d.suffix).map(function(p){return i(p,d)}):u[d.name]=i(o[h],d)},f=1;f<o.length;f++)l(f);return{path:a,index:c,params:u}}}function we(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Yi(e){return e&&e.sensitive?"":"i"}function Wv(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=n.exec(e.source);i;)t.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=n.exec(e.source);return e}function Yv(e,t,n){var r=e.map(function(i){return hr(i,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),Yi(n))}function Gv(e,t,n){return Zv(Wi(e,n),t,n)}function Zv(e,t,n){n===void 0&&(n={});for(var r=n.strict,i=r===void 0?!1:r,s=n.start,o=s===void 0?!0:s,a=n.end,c=a===void 0?!0:a,u=n.encode,l=u===void 0?function(w){return w}:u,f=n.delimiter,h=f===void 0?"/#?":f,d=n.endsWith,p=d===void 0?"":d,m="[".concat(we(p),"]|$"),b="[".concat(we(h),"]"),E=o?"^":"",g=0,v=e;g<v.length;g++){var _=v[g];if(typeof _=="string")E+=we(l(_));else{var S=we(l(_.prefix)),y=we(l(_.suffix));if(_.pattern)if(t&&t.push(_),S||y)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(y).concat(S,"(?:").concat(_.pattern,"))*)").concat(y,")").concat(x)}else E+="(?:".concat(S,"(").concat(_.pattern,")").concat(y,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(S).concat(y,")").concat(_.modifier)}}if(c)i||(E+="".concat(b,"?")),E+=n.endsWith?"(?=".concat(m,")"):"$";else{var $=e[e.length-1],V=typeof $=="string"?b.indexOf($[$.length-1])>-1:$===void 0;i||(E+="(?:".concat(b,"(?=").concat(m,"))?")),V||(E+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(E,Yi(n))}function hr(e,t,n){return e instanceof RegExp?Wv(e,t):Array.isArray(e)?Yv(e,t,n):Gv(e,t,n)}const Qv=Vu.compress,Xv=Vu.decompress;/**!
50
+ */(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(ft,function(){var t,n,r="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 c(u,l){this._input=u,this._value=l}return t=function(u){var l,f,h,d;if(t.isNumeral(u))l=u.value();else if(u===0||typeof u>"u")l=0;else if(u===null||n.isNaN(u))l=null;else if(typeof u=="string")if(a.zeroFormat&&u===a.zeroFormat)l=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)l=null;else{for(f in i)if(d=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,d&&u.match(d)){h=i[f].unformat;break}h=h||t._.stringToNumber,l=h(u)}else l=Number(u)||null;return new c(u,l)},t.version=r,t.isNumeral=function(u){return u instanceof c},t._=n={numberToFormat:function(u,l,f){var h=s[t.options.currentLocale],d=!1,p=!1,m=0,b="",E=1e12,g=1e9,v=1e6,_=1e3,S="",y=!1,x,$,V,w,T,M,C;if(u=u||0,$=Math.abs(u),t._.includes(l,"(")?(d=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):u<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]?"),""),$>=E&&!x||x==="t"?(b+=h.abbreviations.trillion,u=u/E):$<E&&$>=g&&!x||x==="b"?(b+=h.abbreviations.billion,u=u/g):$<g&&$>=v&&!x||x==="m"?(b+=h.abbreviations.million,u=u/v):($<v&&$>=_&&!x||x==="k")&&(b+=h.abbreviations.thousand,u=u/_)),t._.includes(l,"[.]")&&(p=!0,l=l.replace("[.]",".")),V=u.toString().split(".")[0],w=l.split(".")[1],M=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),S=t._.toFixed(u,w[0].length+w[1].length,f,w[1].length)):S=t._.toFixed(u,w.length,f),V=S.split(".")[0],t._.includes(S,".")?S=h.delimiters.decimal+S.split(".")[1]:S="",p&&Number(S.slice(1))===0&&(S="")):V=t._.toFixed(u,0,f),b&&!x&&Number(V)>=1e3&&b!==h.abbreviations.trillion)switch(V=String(Number(V)/1e3),b){case h.abbreviations.thousand:b=h.abbreviations.million;break;case h.abbreviations.million:b=h.abbreviations.billion;break;case h.abbreviations.billion:b=h.abbreviations.trillion;break}if(t._.includes(V,"-")&&(V=V.slice(1),y=!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"+h.delimiters.thousands)),l.indexOf(".")===0&&(V=""),C=V+S+(b||""),d?C=(d&&y?"(":"")+C+(d&&y?")":""):T>=0?C=T===0?(y?"-":"+")+C:C+(y?"-":"+"):y&&(C="-"+C),C},stringToNumber:function(u){var l=s[a.currentLocale],f=u,h={thousand:3,million:6,billion:9,trillion:12},d,p,m;if(a.zeroFormat&&u===a.zeroFormat)p=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)p=null;else{p=1,l.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(d in h)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[d]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),f.match(m)){p*=Math.pow(10,h[d]);break}p*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),p*=Number(u)}return p},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,l){return u.indexOf(l)!==-1},insert:function(u,l,f){return u.slice(0,f)+l+u.slice(f)},reduce:function(u,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 f=Object(u),h=f.length>>>0,d=0,p;if(arguments.length===3)p=arguments[2];else{for(;d<h&&!(d in f);)d++;if(d>=h)throw new TypeError("Reduce of empty array with no initial value");p=f[d++]}for(;d<h;d++)d in f&&(p=l(p,f[d],d,f));return p},multiplier:function(u){var l=u.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(l,f){var h=n.multiplier(f);return l>h?l:h},1)},toFixed:function(u,l,f,h){var d=u.toString().split("."),p=l-(h||0),m,b,E,g;return d.length===2?m=Math.min(Math.max(d[1].length,p),l):m=p,E=Math.pow(10,m),g=(f(u+"e+"+m)/E).toFixed(m),h>l-m&&(b=new RegExp("\\.?0{1,"+(h-(l-m))+"}$"),g=g.replace(b,"")),g}},t.options=a,t.formats=i,t.locales=s,t.locale=function(u){return u&&(a.currentLocale=u.toLowerCase()),a.currentLocale},t.localeData=function(u){if(!u)return s[a.currentLocale];if(u=u.toLowerCase(),!s[u])throw new Error("Unknown locale : "+u);return s[u]},t.reset=function(){for(var u in o)a[u]=o[u]},t.zeroFormat=function(u){a.zeroFormat=typeof u=="string"?u:null},t.nullFormat=function(u){a.nullFormat=typeof u=="string"?u:null},t.defaultFormat=function(u){a.defaultFormat=typeof u=="string"?u:"0.0"},t.register=function(u,l,f){if(l=l.toLowerCase(),this[u+"s"][l])throw new TypeError(l+" "+u+" already registered.");return this[u+"s"][l]=f,f},t.validate=function(u,l){var f,h,d,p,m,b,E,g;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{E=t.localeData(l)}catch(v){E=t.localeData(t.locale())}return d=E.currency.symbol,m=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?h="\\.":h=E.delimiters.thousands,g=u.match(/^[^\d]+/),g!==null&&(u=u.substr(1),g[0]!==d)||(g=u.match(/[^\d]+$/),g!==null&&(u=u.slice(0,-1),g[0]!==m.thousand&&g[0]!==m.million&&g[0]!==m.billion&&g[0]!==m.trillion))?!1:(b=new RegExp(h+"{2}"),u.match(/[^\d.,]/g)?!1:(p=u.split(f),p.length>2?!1:p.length<2?!!p[0].match(/^\d+.*\d$/)&&!p[0].match(b):p[0].length===1?!!p[0].match(/^\d+$/)&&!p[0].match(b)&&!!p[1].match(/^\d+$/):!!p[0].match(/^\d+.*\d$/)&&!p[0].match(b)&&!!p[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(u,l){var f=this._value,h=u||a.defaultFormat,d,p,m;if(l=l||Math.round,f===0&&a.zeroFormat!==null)p=a.zeroFormat;else if(f===null&&a.nullFormat!==null)p=a.nullFormat;else{for(d in i)if(h.match(i[d].regexps.format)){m=i[d].format;break}m=m||t._.numberToFormat,p=m(f,h,l)}return p},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var l=n.correctionFactor.call(null,this._value,u);function f(h,d,p,m){return h+Math.round(l*d)}return this._value=n.reduce([this._value,u],f,0)/l,this},subtract:function(u){var l=n.correctionFactor.call(null,this._value,u);function f(h,d,p,m){return h-Math.round(l*d)}return this._value=n.reduce([u],f,Math.round(this._value*l))/l,this},multiply:function(u){function l(f,h,d,p){var m=n.correctionFactor(f,h);return Math.round(f*m)*Math.round(h*m)/Math.round(m*m)}return this._value=n.reduce([this._value,u],l,1),this},divide:function(u){function l(f,h,d,p){var m=n.correctionFactor(f,h);return Math.round(f*m)/Math.round(h*m)}return this._value=n.reduce([this._value,u],l),this},difference:function(u){return Math.abs(t(this._value).subtract(u).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var l=u%10;return~~(u%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(u,l,f){var h=t._.includes(l," BPS")?" ":"",d;return u=u*1e4,l=l.replace(/\s?BPS/,""),d=t._.numberToFormat(u,l,f),t._.includes(d,")")?(d=d.split(""),d.splice(-1,0,h+"BPS"),d=d.join("")):d=d+h+"BPS",d},unformat:function(u){return+(t._.stringToNumber(u)*1e-4).toFixed(15)}})}(),function(){var u={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"]},f=u.suffixes.concat(l.suffixes.filter(function(d){return u.suffixes.indexOf(d)<0})),h=f.join("|");h="("+h.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(h)},format:function(d,p,m){var b,E=t._.includes(p,"ib")?l:u,g=t._.includes(p," b")||t._.includes(p," ib")?" ":"",v,_,S;for(p=p.replace(/\s?i?b/,""),v=0;v<=E.suffixes.length;v++)if(_=Math.pow(E.base,v),S=Math.pow(E.base,v+1),d===null||d===0||d>=_&&d<S){g+=E.suffixes[v],_>0&&(d=d/_);break}return b=t._.numberToFormat(d,p,m),b+g},unformat:function(d){var p=t._.stringToNumber(d),m,b;if(p){for(m=u.suffixes.length-1;m>=0;m--){if(t._.includes(d,u.suffixes[m])){b=Math.pow(u.base,m);break}if(t._.includes(d,l.suffixes[m])){b=Math.pow(l.base,m);break}}p*=b||1}return p}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(u,l,f){var h=t.locales[t.options.currentLocale],d={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},p,m,b;for(l=l.replace(/\s?\$\s?/,""),p=t._.numberToFormat(u,l,f),u>=0?(d.before=d.before.replace(/[\-\(]/,""),d.after=d.after.replace(/[\-\)]/,"")):u<0&&!t._.includes(d.before,"-")&&!t._.includes(d.before,"(")&&(d.before="-"+d.before),b=0;b<d.before.length;b++)switch(m=d.before[b],m){case"$":p=t._.insert(p,h.currency.symbol,b);break;case" ":p=t._.insert(p," ",b+h.currency.symbol.length-1);break}for(b=d.after.length-1;b>=0;b--)switch(m=d.after[b],m){case"$":p=b===d.after.length-1?p+h.currency.symbol:t._.insert(p,h.currency.symbol,-(d.after.length-(1+b)));break;case" ":p=b===d.after.length-1?p+" ":t._.insert(p," ",-(d.after.length-(1+b)+h.currency.symbol.length-1));break}return p}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,l,f){var h,d=typeof u=="number"&&!t._.isNaN(u)?u.toExponential():"0e+0",p=d.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),h=t._.numberToFormat(Number(p[0]),l,f),h+"e"+p[1]},unformat:function(u){var l=t._.includes(u,"e+")?u.split("e+"):u.split("e-"),f=Number(l[0]),h=Number(l[1]);h=t._.includes(u,"e-")?h*=-1:h;function d(p,m,b,E){var g=t._.correctionFactor(p,m),v=p*g*(m*g)/(g*g);return v}return t._.reduce([f,Math.pow(10,h)],d,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,l,f){var h=t.locales[t.options.currentLocale],d,p=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),p+=h.ordinal(u),d=t._.numberToFormat(u,l,f),d+p}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,l,f){var h=t._.includes(l," %")?" ":"",d;return t.options.scalePercentBy100&&(u=u*100),l=l.replace(/\s?\%/,""),d=t._.numberToFormat(u,l,f),t._.includes(d,")")?(d=d.split(""),d.splice(-1,0,h+"%"),d=d.join("")):d=d+h+"%",d},unformat:function(u){var l=t._.stringToNumber(u);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,l,f){var h=Math.floor(u/60/60),d=Math.floor((u-h*60*60)/60),p=Math.round(u-h*60*60-d*60);return h+":"+(d<10?"0"+d:d)+":"+(p<10?"0"+p:p)},unformat:function(u){var l=u.split(":"),f=0;return l.length===3?(f=f+Number(l[0])*60*60,f=f+Number(l[1])*60,f=f+Number(l[2])):l.length===2&&(f=f+Number(l[0])*60,f=f+Number(l[1])),Number(f)}})}(),t})})(Au);var Ov=Au.exports;const ju=Ne(Ov);function $v(e,t="0.00"){return ju(e).format(t)}function Av(e,t=2,n){return(n?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var Ru={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ft,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",c="hour",u="day",l="week",f="month",h="quarter",d="year",p="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var D=["th","st","nd","rd"],k=I%100;return"["+I+(D[(k-20)%10]||D[k]||D[0])+"]"}},v=function(I,D,k){var U=String(I);return!U||U.length>=D?I:""+Array(D+1-U.length).join(k)+I},_={s:v,z:function(I){var D=-I.utcOffset(),k=Math.abs(D),U=Math.floor(k/60),H=k%60;return(D<=0?"+":"-")+v(U,2,"0")+":"+v(H,2,"0")},m:function I(D,k){if(D.date()<k.date())return-I(k,D);var U=12*(k.year()-D.year())+(k.month()-D.month()),H=D.clone().add(U,f),q=k-H<0,K=D.clone().add(U+(q?-1:1),f);return+(-(U+(k-H)/(q?H-K:K-H))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:d,w:l,d:u,D:p,h:c,m:a,s:o,ms:s,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",y={};y[S]=g;var x="$isDayjsObject",$=function(I){return I instanceof M||!(!I||!I[x])},V=function I(D,k,U){var H;if(!D)return S;if(typeof D=="string"){var q=D.toLowerCase();y[q]&&(H=q),k&&(y[q]=k,H=q);var K=D.split("-");if(!H&&K.length>1)return I(K[0])}else{var j=D.name;y[j]=D,H=j}return!U&&H&&(S=H),H||!U&&S},w=function(I,D){if($(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=$,T.w=function(I,D){return w(I,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var M=function(){function I(k){this.$L=V(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[x]=!0}var D=I.prototype;return D.parse=function(k){this.$d=function(U){var H=U.date,q=U.utc;if(H===null)return new Date(NaN);if(T.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var K=H.match(b);if(K){var j=K[2]-1||0,P=(K[7]||"0").substring(0,3);return q?new Date(Date.UTC(K[1],j,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)):new Date(K[1],j,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)}}return new Date(H)}(k),this.init()},D.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(k,U){var H=w(k);return this.startOf(U)<=H&&H<=this.endOf(U)},D.isAfter=function(k,U){return w(k)<this.startOf(U)},D.isBefore=function(k,U){return this.endOf(U)<w(k)},D.$g=function(k,U,H){return T.u(k)?this[U]:this.set(H,k)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(k,U){var H=this,q=!!T.u(U)||U,K=T.p(k),j=function(Yt,pt){var Lt=T.w(H.$u?Date.UTC(H.$y,pt,Yt):new Date(H.$y,pt,Yt),H);return q?Lt:Lt.endOf(u)},P=function(Yt,pt){return T.w(H.toDate()[Yt].apply(H.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(pt)),H)},N=this.$W,B=this.$M,St=this.$D,pe="set"+(this.$u?"UTC":"");switch(K){case d:return q?j(1,0):j(31,11);case f:return q?j(1,B):j(0,B+1);case l:var Wt=this.$locale().weekStart||0,Fe=(N<Wt?N+7:N)-Wt;return j(q?St-Fe:St+(6-Fe),B);case u:case p:return P(pe+"Hours",0);case c:return P(pe+"Minutes",1);case a:return P(pe+"Seconds",2);case o:return P(pe+"Milliseconds",3);default:return this.clone()}},D.endOf=function(k){return this.startOf(k,!1)},D.$set=function(k,U){var H,q=T.p(k),K="set"+(this.$u?"UTC":""),j=(H={},H[u]=K+"Date",H[p]=K+"Date",H[f]=K+"Month",H[d]=K+"FullYear",H[c]=K+"Hours",H[a]=K+"Minutes",H[o]=K+"Seconds",H[s]=K+"Milliseconds",H)[q],P=q===u?this.$D+(U-this.$W):U;if(q===f||q===d){var N=this.clone().set(p,1);N.$d[j](P),N.init(),this.$d=N.set(p,Math.min(this.$D,N.daysInMonth())).$d}else j&&this.$d[j](P);return this.init(),this},D.set=function(k,U){return this.clone().$set(k,U)},D.get=function(k){return this[T.p(k)]()},D.add=function(k,U){var H,q=this;k=Number(k);var K=T.p(U),j=function(B){var St=w(q);return T.w(St.date(St.date()+Math.round(B*k)),q)};if(K===f)return this.set(f,this.$M+k);if(K===d)return this.set(d,this.$y+k);if(K===u)return j(1);if(K===l)return j(7);var P=(H={},H[a]=r,H[c]=i,H[o]=n,H)[K]||1,N=this.$d.getTime()+k*P;return T.w(N,this)},D.subtract=function(k,U){return this.add(-1*k,U)},D.format=function(k){var U=this,H=this.$locale();if(!this.isValid())return H.invalidDate||m;var q=k||"YYYY-MM-DDTHH:mm:ssZ",K=T.z(this),j=this.$H,P=this.$m,N=this.$M,B=H.weekdays,St=H.months,pe=H.meridiem,Wt=function(pt,Lt,Le,gn){return pt&&(pt[Lt]||pt(U,q))||Le[Lt].slice(0,gn)},Fe=function(pt){return T.s(j%12||12,pt,"0")},Yt=pe||function(pt,Lt,Le){var gn=pt<12?"AM":"PM";return Le?gn.toLowerCase():gn};return q.replace(E,function(pt,Lt){return Lt||function(Le){switch(Le){case"YY":return String(U.$y).slice(-2);case"YYYY":return T.s(U.$y,4,"0");case"M":return N+1;case"MM":return T.s(N+1,2,"0");case"MMM":return Wt(H.monthsShort,N,St,3);case"MMMM":return Wt(St,N);case"D":return U.$D;case"DD":return T.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return Wt(H.weekdaysMin,U.$W,B,2);case"ddd":return Wt(H.weekdaysShort,U.$W,B,3);case"dddd":return B[U.$W];case"H":return String(j);case"HH":return T.s(j,2,"0");case"h":return Fe(1);case"hh":return Fe(2);case"a":return Yt(j,P,!0);case"A":return Yt(j,P,!1);case"m":return String(P);case"mm":return T.s(P,2,"0");case"s":return String(U.$s);case"ss":return T.s(U.$s,2,"0");case"SSS":return T.s(U.$ms,3,"0");case"Z":return K}return null}(pt)||K.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(k,U,H){var q,K=this,j=T.p(U),P=w(k),N=(P.utcOffset()-this.utcOffset())*r,B=this-P,St=function(){return T.m(K,P)};switch(j){case d:q=St()/12;break;case f:q=St();break;case h:q=St()/3;break;case l:q=(B-N)/6048e5;break;case u:q=(B-N)/864e5;break;case c:q=B/i;break;case a:q=B/r;break;case o:q=B/n;break;default:q=B}return H?q:T.a(q)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return y[this.$L]},D.locale=function(k,U){if(!k)return this.$L;var H=this.clone(),q=V(k,U,!0);return q&&(H.$L=q),H},D.clone=function(){return T.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},I}(),C=M.prototype;return w.prototype=C,[["$ms",s],["$s",o],["$m",a],["$H",c],["$W",u],["$M",f],["$y",d],["$D",p]].forEach(function(I){C[I[1]]=function(D){return this.$g(D,I[0],I[1])}}),w.extend=function(I,D){return I.$i||(I(D,M,w),I.$i=!0),w},w.locale=V,w.isDayjs=$,w.unix=function(I){return w(1e3*I)},w.en=y[S],w.Ls=y,w.p={},w})})(Ru);var Du=Ru.exports;const Ji=Ne(Du);var jv={exports:{}};(function(e,t){(function(n,r){e.exports=r(Du)})(ft,function(n){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(n),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 c=100*o+a;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(jv),Ji.locale("zh-cn");function Rv(e,t="YYYY-MM-DD HH:mm:ss"){return Ji(e).format(t)}let Dv=0;const Cu=e=>Object.prototype.toString.call(e),Cv=e=>Cu(e).slice(8,-1),Pv=e=>typeof e<"u",kv=()=>Date.now(),Pu=()=>+Date.now(),Nv=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function gt(){return Number((++Dv).toString()+Date.now()).toString(36)}function ku(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=Math.random()*16|0;return(n==="x"?r:r&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function xe(e=0){return L(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Nu(e,t){return e.reduce((n,r)=>{const i=r[t];return n.set(i,r),n},new Map)}function fr(e){return[...e.entries()].reduce((t,[n,r])=>(t[n]=r,t),{})}function Bv(e=[],t="key",n="value"){const r={};for(const i of e)r[i[t]]=i[n];return r}function Iv(e={},t="key",n="value"){return Object.entries(e).map(([r,i])=>({[t]:r,[n]:i}))}function Bu(e,t){if(t){const n=Nu(e,t);return Array.from(n.values())}else return Array.from(new Set(e))}function li(e){return e?[].concat(e):[]}function Mv(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r!=null&&(t[n]=r),t},{})}function Pn(e,t){const n={};if(Array.isArray(t))Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])});else{const r=t;Object.entries(e).forEach(([i,s])=>{r(i,s)||(n[i]=s)})}return n}function Iu(e,t){const n={};if(Array.isArray(t))Object.keys(e).forEach(r=>{t.includes(r)&&(n[r]=e[r])});else{const r=t;Object.entries(e).forEach(([i,s])=>{r(i,s)&&(n[i]=s)})}return n}function fi(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(n=>fi(n)):(e&&t==="object"&&Object.entries(e).forEach(([n,r])=>{e[n]=fi(r)}),e)}function Mu(e=[],t){return t?e.reduce((n,r)=>n+Number(r[t]),0):e.reduce((n,r)=>n+Number(r),0)}function Fv(e=[],t){const n=Mu(e,t);return e.length?n/e.length:0}function Lv(e,t=","){return e?e.split(t):[]}function Vv(e,t=","){return e?e.join(t):""}function Hv(e,t="id",n="parentId",r="children",i="null"){const s=iu(e,n);for(const o of Object.values(s))o.forEach(a=>{a[r]=s[a[t]]||[]});return s[i]}function Fu(e=[]){let t=[];return e.forEach(n=>{const s=n,{children:r}=s,i=Tr(s,["children"]);n.children&&n.children.length>0&&(t=t.concat(Fu(n.children))),t.push(i)}),t}var hi={exports:{}};hi.exports,function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(c,u){if(!s[c]){s[c]={};for(var l=0;l<c.length;l++)s[c][c.charAt(l)]=l}return s[c][u]}var a={compressToBase64:function(c){if(c==null)return"";var u=a._compress(c,6,function(l){return r.charAt(l)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:a._decompress(c.length,32,function(u){return o(r,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":a._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:a._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=a.compress(c),l=new Uint8Array(u.length*2),f=0,h=u.length;f<h;f++){var d=u.charCodeAt(f);l[f*2]=d>>>8,l[f*2+1]=d%256}return l},decompressFromUint8Array:function(c){if(c==null)return a.decompress(c);for(var u=new Array(c.length/2),l=0,f=u.length;l<f;l++)u[l]=c[l*2]*256+c[l*2+1];var h=[];return u.forEach(function(d){h.push(n(d))}),a.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":a._compress(c,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),a._decompress(c.length,32,function(u){return o(i,c.charAt(u))}))},compress:function(c){return a._compress(c,16,function(u){return n(u)})},_compress:function(c,u,l){if(c==null)return"";var f,h,d={},p={},m="",b="",E="",g=2,v=3,_=2,S=[],y=0,x=0,$;for($=0;$<c.length;$+=1)if(m=c.charAt($),Object.prototype.hasOwnProperty.call(d,m)||(d[m]=v++,p[m]=!0),b=E+m,Object.prototype.hasOwnProperty.call(d,b))E=b;else{if(Object.prototype.hasOwnProperty.call(p,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,x==u-1?(x=0,S.push(l(y)),y=0):x++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete p[E]}else for(h=d[E],f=0;f<_;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1;g--,g==0&&(g=Math.pow(2,_),_++),d[b]=v++,E=String(m)}if(E!==""){if(Object.prototype.hasOwnProperty.call(p,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)y=y<<1,x==u-1?(x=0,S.push(l(y)),y=0):x++;for(h=E.charCodeAt(0),f=0;f<8;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1}else{for(h=1,f=0;f<_;f++)y=y<<1|h,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=0;for(h=E.charCodeAt(0),f=0;f<16;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete p[E]}else for(h=d[E],f=0;f<_;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1;g--,g==0&&(g=Math.pow(2,_),_++)}for(h=2,f=0;f<_;f++)y=y<<1|h&1,x==u-1?(x=0,S.push(l(y)),y=0):x++,h=h>>1;for(;;)if(y=y<<1,x==u-1){S.push(l(y));break}else x++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:a._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,l){var f=[],h=4,d=4,p=3,m="",b=[],E,g,v,_,S,y,x,$={val:l(0),position:u,index:1};for(E=0;E<3;E+=1)f[E]=E;for(v=0,S=Math.pow(2,2),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;x=n(v);break;case 1:for(v=0,S=Math.pow(2,16),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;x=n(v);break;case 2:return""}for(f[3]=x,g=x,b.push(x);;){if($.index>c)return"";for(v=0,S=Math.pow(2,p),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;switch(x=v){case 0:for(v=0,S=Math.pow(2,8),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;f[d++]=n(v),x=d-1,h--;break;case 1:for(v=0,S=Math.pow(2,16),y=1;y!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=u,$.val=l($.index++)),v|=(_>0?1:0)*y,y<<=1;f[d++]=n(v),x=d-1,h--;break;case 2:return b.join("")}if(h==0&&(h=Math.pow(2,p),p++),f[x])m=f[x];else if(x===d)m=g+g.charAt(0);else return null;b.push(m),f[d++]=g+m.charAt(0),h--,g=m,h==0&&(h=Math.pow(2,p),p++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(hi);var Lu=hi.exports;function Vu(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}function Uv(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var i="",s=n+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(n));t.push({type:"NAME",index:n,value:i}),n=s;continue}if(r==="("){var a=1,c="",s=n+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){c+=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));c+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(n));if(!c)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:c}),n=s;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function Wi(e,t){t===void 0&&(t={});for(var n=Uv(e),r=t.prefixes,i=r===void 0?"./":r,s="[^".concat(we(t.delimiter||"/#?"),"]+?"),o=[],a=0,c=0,u="",l=function(y){if(c<n.length&&n[c].type===y)return n[c++].value},f=function(y){var x=l(y);if(x!==void 0)return x;var $=n[c],V=$.type,w=$.index;throw new TypeError("Unexpected ".concat(V," at ").concat(w,", expected ").concat(y))},h=function(){for(var y="",x;x=l("CHAR")||l("ESCAPED_CHAR");)y+=x;return y};c<n.length;){var d=l("CHAR"),p=l("NAME"),m=l("PATTERN");if(p||m){var b=d||"";i.indexOf(b)===-1&&(u+=b,b=""),u&&(o.push(u),u=""),o.push({name:p||a++,prefix:b,suffix:"",pattern:m||s,modifier:l("MODIFIER")||""});continue}var E=d||l("ESCAPED_CHAR");if(E){u+=E;continue}u&&(o.push(u),u="");var g=l("OPEN");if(g){var b=h(),v=l("NAME")||"",_=l("PATTERN")||"",S=h();f("CLOSE"),o.push({name:v||(_?a++:""),pattern:v&&!_?s:_,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}f("END")}return o}function Hu(e,t){return zv(Wi(e,t),t)}function zv(e,t){t===void 0&&(t={});var n=Yi(t),r=t.encode,i=r===void 0?function(c){return c}:r,s=t.validate,o=s===void 0?!0:s,a=e.map(function(c){if(typeof c=="object")return new RegExp("^(?:".concat(c.pattern,")$"),n)});return function(c){for(var u="",l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){u+=f;continue}var h=c?c[f.name]:void 0,d=f.modifier==="?"||f.modifier==="*",p=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!p)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(d)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var m=0;m<h.length;m++){var b=i(h[m],f);if(o&&!a[l].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var b=i(String(h),f);if(o&&!a[l].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix;continue}if(!d){var E=p?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return u}}function Uu(e,t){var n=[],r=hr(e,n,t);return qv(r,n,t)}function qv(e,t,n){n===void 0&&(n={});var r=n.decode,i=r===void 0?function(s){return s}:r;return function(s){var o=e.exec(s);if(!o)return!1;for(var a=o[0],c=o.index,u=Object.create(null),l=function(h){if(o[h]===void 0)return"continue";var d=t[h-1];d.modifier==="*"||d.modifier==="+"?u[d.name]=o[h].split(d.prefix+d.suffix).map(function(p){return i(p,d)}):u[d.name]=i(o[h],d)},f=1;f<o.length;f++)l(f);return{path:a,index:c,params:u}}}function we(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Yi(e){return e&&e.sensitive?"":"i"}function Kv(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=n.exec(e.source);i;)t.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=n.exec(e.source);return e}function Jv(e,t,n){var r=e.map(function(i){return hr(i,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),Yi(n))}function Wv(e,t,n){return Yv(Wi(e,n),t,n)}function Yv(e,t,n){n===void 0&&(n={});for(var r=n.strict,i=r===void 0?!1:r,s=n.start,o=s===void 0?!0:s,a=n.end,c=a===void 0?!0:a,u=n.encode,l=u===void 0?function(w){return w}:u,f=n.delimiter,h=f===void 0?"/#?":f,d=n.endsWith,p=d===void 0?"":d,m="[".concat(we(p),"]|$"),b="[".concat(we(h),"]"),E=o?"^":"",g=0,v=e;g<v.length;g++){var _=v[g];if(typeof _=="string")E+=we(l(_));else{var S=we(l(_.prefix)),y=we(l(_.suffix));if(_.pattern)if(t&&t.push(_),S||y)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(y).concat(S,"(?:").concat(_.pattern,"))*)").concat(y,")").concat(x)}else E+="(?:".concat(S,"(").concat(_.pattern,")").concat(y,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(S).concat(y,")").concat(_.modifier)}}if(c)i||(E+="".concat(b,"?")),E+=n.endsWith?"(?=".concat(m,")"):"$";else{var $=e[e.length-1],V=typeof $=="string"?b.indexOf($[$.length-1])>-1:$===void 0;i||(E+="(?:".concat(b,"(?=").concat(m,"))?")),V||(E+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(E,Yi(n))}function hr(e,t,n){return e instanceof RegExp?Kv(e,t):Array.isArray(e)?Jv(e,t,n):Wv(e,t,n)}const Gv=Lu.compress,Zv=Lu.decompress;/**!
51
51
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
52
  * @name @vtj/core
53
53
  * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.9.19
54
+ * @version 0.9.21
55
55
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
- */const t0="0.9.19",e0="BuiltIn",Gi="VueMaterial",Zi="VueRouterMaterial",n0=[Gi,Zi],r0={vue:"Vue","vue-router":"VueRouter"},qu={[Gi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zi]:["RouterView","RouterLink"]},i0=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let s0=class{},Ku=class{constructor(){A(this,"listeners",[]);A(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}},kn=class Ju{constructor(t,n,r){A(this,"isUnset",!1);this.name=t,this.value=n,this.defaultValue=r,this.setValue(n)}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((n,[r,i])=>(i.isUnset||(n[r]=i.getValue()),n),{})}static parse(t={}){return Object.entries(t).reduce((n,[r,i])=>(n[r]=new Ju(r,i),n),{})}},Nn=class Wu{constructor(t){A(this,"name");A(this,"handler");A(this,"modifiers",{});this.schema=t;const{name:n,handler:r}=this.schema;this.name=n,this.handler=r,this.update(t)}update(t){Object.assign(this.schema,t);const{handler:n,modifiers:r={}}=this.schema;this.handler=n,this.modifiers=r}static toDsl(t){return Object.entries(t).reduce((n,[r,i])=>{const{handler:s,modifiers:o}=i;return n[r]={name:r,handler:s,modifiers:o},n},{})}static parse(t={}){return Object.entries(t).reduce((n,[r,i])=>(n[r]=new Wu(i),n),{})}},qe=class Yu{constructor(t){A(this,"id");A(this,"name","");A(this,"arg");A(this,"modifiers");A(this,"value");A(this,"iterator");this.schema=t,this.id=t.id||gt(),this.update(t)}update(t){Object.assign(this.schema,t);const{name:n,arg:r,modifiers:i,value:s,iterator:o}=this.schema;this.name=n,this.arg=r,this.modifiers=i,this.value=s,this.iterator=o}static parse(t=[]){return t.map(n=>new Yu(n))}static toDsl(t=[]){return t.map(n=>{const{name:r,arg:i,modifiers:s,value:o,iterator:a,id:c}=n;return{id:c,name:r,arg:i,modifiers:s,value:o,iterator:a}})}};const rt="EVENT_NODE_CHANGE";var Ft;let Wn=(Ft=class{constructor(t,n=null){A(this,"__VTJ_NODE__",!0);A(this,"locked",!1);A(this,"id");A(this,"name");A(this,"from");A(this,"invisible",!1);A(this,"children","");A(this,"slot");A(this,"props",{});A(this,"events",{});A(this,"directives",[]);A(this,"disposed",!1);this.parent=n;const{id:r=gt(),name:i,from:s=""}=t;this.id=r,this.name=i,this.from=s,this.update(t,!0),Ft.nodes[this.id]=this}update(t,n=!1){const{invisible:r=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:c={},directives:u=[]}=t;this.invisible=r,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=kn.parse(a),this.events=Nn.parse(c),this.directives=qe.parse(u),n||F.emit(rt,this)}setChildren(t="",n=!1){Array.isArray(t)?this.children=t.map(r=>new Ft(r,this)):this.children=t,n||F.emit(rt,this)}setSlot(t,n=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,n||F.emit(rt,this)}setProp(t,n,r,i=!1){const s=this.props[t];s?s.setValue(n):this.props[t]=new kn(t,n,r),i||F.emit(rt,this)}removeProp(t,n=!1){delete this.props[t],n||F.emit(rt,this)}getPropValue(t){const n=this.props[t];if(n)return n.getValue()}setEvent(t,n=!1){const r=this.events[t.name];r?r.update(t):this.events[t.name]=new Nn(t),n||F.emit(rt,this)}removeEvent(t,n=!1){delete this.events[t],n||F.emit(rt,this)}setDirective(t,n=!1){const r=t instanceof qe?t:new qe(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,r):this.directives.push(r),n||F.emit(rt,this)}removeDirective(t,n=!1){const r=this.directives.findIndex(i=>i===t||i.id===t.id);r>=0&&this.directives.splice(r,1),n||F.emit(rt,this)}removeChild(t,n=!1){const{children:r,disposed:i}=this;if(i||!Array.isArray(r))return;const s=r.findIndex(o=>o===t);t.parent=null,r.splice(s,1),n||F.emit(rt,this)}appendChild(t,n=!1){const{children:r,disposed:i}=this;i||(t.parent=this,Array.isArray(r)?r.push(t):this.children=[t],n||F.emit(rt,this))}insertAfter(t,n=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){t.parent=this.parent;const i=r.indexOf(this);r.splice(i+1,0,t),n||F.emit(rt,this.parent)}}insertBefore(t,n=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){t.parent=this.parent;const i=r.indexOf(this);r.splice(i,0,t),n||F.emit(rt,this.parent)}}movePrev(t=!1){const n=this.parent;if(!n)return;const r=n.children;if(Array.isArray(r)){const i=r.indexOf(this);i>0&&(r.splice(i,1),r.splice(i-1,0,this),t||F.emit(rt,n))}}moveNext(t=!1){const n=this.parent;if(!n)return;const r=n.children;if(Array.isArray(r)){const i=r.indexOf(this);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,this),t||F.emit(rt,n))}}toDsl(){const{id:t,name:n,from:r,invisible:i,locked:s,slot:o,children:a,props:c,directives:u,events:l}=this,f=Array.isArray(a)?a.map(h=>h.toDsl()):a;return{id:t,name:n,from:r,invisible:i,locked:s,slot:o,children:f,props:kn.toDsl(c),directives:qe.toDsl(u),events:Nn.toDsl(l)}}dispose(t=!1){const{children:n,disposed:r}=this;r||(Array.isArray(n)&&n.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,t):t||F.emit(rt,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 n of this.children)n.lock(!0);t||F.emit(rt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const n of this.children)n.unlock(!0);t||F.emit(rt,this)}setVisible(t,n=!1){if(this.invisible=!t,Array.isArray(this.children))for(const r of this.children)r.setVisible(t,!0);n||F.emit(rt,this)}isChild(t){let n=!1;if(Array.isArray(this.children)){for(const r of this.children)if(t===r||t.id===r.id){n=!0;break}else if(n=r.isChild(t),n)break}return n}},A(Ft,"nodes",{}),Ft);const G="EVENT_BLOCK_CHANGE";var qt;let ee=(qt=class{constructor(t){A(this,"__VTJ_BLOCK__",!0);A(this,"id");A(this,"name","");A(this,"inject",[]);A(this,"state",{});A(this,"lifeCycles",{});A(this,"methods",{});A(this,"computed",{});A(this,"watch",[]);A(this,"css","");A(this,"props",[]);A(this,"emits",[]);A(this,"slots",[]);A(this,"dataSources",{});A(this,"nodes",[]);A(this,"locked",!1);A(this,"disposed",!1);const{id:n}=t;this.id=n||gt(),this.update(t,!0)}update(t,n=!1){for(const i of qt.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:r=[]}=t;r.length&&(this.nodes=r.map(i=>new Wn(i))),n||F.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:n,id:r,nodes:i}=this;return st(z({},qt.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:n,__VERSION__:t||ku().toString(),id:r,nodes:i.map(s=>s.toDsl())})}dispose(){this.nodes.map(t=>t.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(t,n,r,i=!1){this[t][n]=r,i||F.emit(G,this)}removeFunction(t,n,r=!1){delete this[t][n],r||F.emit(G,this)}setState(t,n,r=!1){this.state[t]=n,r||F.emit(G,this)}removeState(t,n=!1){delete this.state[t],n||F.emit(G,this)}setCss(t,n=!1){this.css=t,n||F.emit(G,this)}setWatch(t,n=!1){t.id=t.id||gt();const r=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);r>-1?this.watch.splice(r,1,t):this.watch.push(t),n||F.emit(G,this)}removeWatch(t,n=!1){const r=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);r>-1&&(this.watch.splice(r,1),n||F.emit(G,this))}setProp(t,n=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);r>-1?this.props.splice(r,1,t):this.props.push(t),n||F.emit(G,this)}removeProp(t,n=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);r>-1&&(this.props.splice(r,1),n||F.emit(G,this))}setEmit(t,n=!1){const r=bt(t)?{name:t,params:[]}:t,i=this.emits.findIndex(s=>s===r.name||s===r);i>-1?this.emits.splice(i,1,r):this.emits.push(r),n||F.emit(G,this)}removeEmit(t,n=!1){const r=this.emits.findIndex(i=>bt(i)?i===t:i.name===t);r>-1&&(this.emits.splice(r,1),n||F.emit(G,this))}setSlot(t,n=!1){const r=bt(t)?{name:t,params:[]}:t,i=this.slots.findIndex(s=>s===r.name||s===r);i>-1?this.slots.splice(i,1,r):this.slots.push(r),n||F.emit(G,this)}removeSlot(t,n=!1){const r=this.slots.findIndex(i=>bt(i)?i===t:i.name===t);r>-1&&(this.slots.splice(r,1),n||F.emit(G,this))}setInject(t,n=!1){const r=this.inject.findIndex(i=>i.name===t.name);r>-1?this.inject.splice(r,1,t):this.inject.push(t),n||F.emit(G,this)}removeInject(t,n=!1){const r=this.inject.findIndex(i=>i.name===t.name);r>-1&&(this.inject.splice(r,1),n||F.emit(G,this))}setDataSource(t,n=!1){this.dataSources[t.name]=t,n||F.emit(G,this)}removeDataSource(t,n=!1){delete this.dataSources[t],n||F.emit(G,this)}insertAfter(t,n,r=!1){t.parent=null;const i=this.nodes.indexOf(n);this.nodes.splice(i+1,0,t),r||F.emit(G,this)}insertBefore(t,n,r=!1){t.parent=null;const i=this.nodes.indexOf(n);this.nodes.splice(i,0,t),r||F.emit(G,this)}appendNode(t,n=!1){t.parent=null,this.nodes.push(t),n||F.emit(G,this)}addNode(t,n,r="inner",i=!1){n?["left","top"].includes(r)?n.parent?n.insertAfter(t,i):this.insertBefore(t,n,i):["right","bottom"].includes(r)?n.parent?n.insertAfter(t,i):this.insertAfter(t,n,i):n.appendChild(t,i):this.appendNode(t,i)}__removeNode(t,n=!1){const r=this.nodes.findIndex(i=>i.id===t.id);r>-1&&(this.nodes.splice(r,1),n||F.emit(G,this))}removeNode(t,n=!1){t.parent?t.dispose(n):(t.dispose(!0),this.__removeNode(t,n))}move(t,n,r="inner",i=!1){t.parent?t.parent.removeChild(t,!0):this.__removeNode(t,!0),this.addNode(t,n,r,i)}movePrev(t,n=!1){if(t.parent)t.movePrev(n);else{const r=this.nodes,i=r.indexOf(t);i>0&&(r.splice(i,1),r.splice(i-1,0,t),n||F.emit(G,this))}}moveNext(t,n=!1){if(t.parent)t.moveNext(n);else{const r=this.nodes,i=r.indexOf(t);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,t),n||F.emit(G,this))}}cloneNode(t,n=!1){const r=Xi(t.toDsl()),i=new Wn(r);return this.addNode(i,t,"bottom",n),i}lock(t=!1){this.locked=!0;for(const n of this.nodes)n.lock(!0);t||F.emit(G,this)}unlock(t=!1){this.locked=!1;for(const n of this.nodes)n.unlock(!0);t||F.emit(G,this)}isChild(t){let n=!1;for(const r of this.nodes)if(t===r||t.id===r.id){n=!0;break}else if(n=r.isChild(t),n)break;return n}},A(qt,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]),qt);const it="EVENT_PROJECT_CHANGE",di="EVENT_PROJECT_ACTIVED",pi="EVENT_PROJECT_DEPS_CHANGE",Ke="EVENT_PROJECT_PAGES_CHANGE",Ee="EVENT_PROJECT_BLOCKS_CHANGE",mi="EVENT_PROJECT_APIS_CHANGE",gi="EVENT_PROJECT_META_CHANGE",Gu="EVENT_PROJECT_PUBLISH",Zu="EVENT_PROJECT_FILE_PUBLISH",Qu="EVENT_PROJECT_GEN_SOURCE",Qe=class Qe{constructor(t){A(this,"id","");A(this,"platform","web");A(this,"name","");A(this,"description","");A(this,"homepage","");A(this,"dependencies",[]);A(this,"pages",[]);A(this,"blocks",[]);A(this,"apis",[]);A(this,"meta",[]);A(this,"currentFile",null);A(this,"config",{});A(this,"__BASE_PATH__","/");const{id:n}=t;this.id=n||gt(),this.update(t,!0)}update(t,n=!1){for(const r of Qe.attrs){const i=t[r];i&&(this[r]=i)}n||F.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const n of t)delete n.dsl,n.children&&n.children.length&&this.cleanPagesDsl(n.children)}toDsl(t){const{id:n}=this,r=Qe.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return r.pages&&(r.pages=r.pages.map(i=>rn(st(z({},i),{dsl:void 0}))),this.cleanPagesDsl(r.pages)),r.blocks&&(r.blocks=r.blocks.map(i=>rn(st(z({},i),{dsl:void 0})))),z({__VTJ_PROJECT__:!0,id:n},r)}active(t,n=!1){this.currentFile=t,n||F.emit(di,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||F.emit(di,{model:this,type:"update",data:null})}setDeps(t,n=!1){const r=this.dependencies,i=r.findIndex(o=>o.package===t.package);let s;if(i>-1?(s="update",r.splice(i,1,z(z({},r[i]),t))):(s="create",r.push(t)),!n){const o={model:this,type:s,data:t};F.emit(pi,o),F.emit(it,o)}}removeDeps(t,n=!1){const r=this.dependencies,i=r.findIndex(s=>s.package===t.package);if(i>-1&&r.splice(i,1),!n){const s={model:this,type:"delete",data:t};F.emit(pi,s),F.emit(it,s)}}getPage(t){const n=(r,i=[])=>{for(const s of i){if(s.id===r)return s;if(s.children&&s.children.length){const o=n(r,s.children);if(o)return o}}};return n(t,this.pages)}getPages(){const t=(n=[])=>{let r=[];for(const i of n)i.dir?i.children&&i.children.length&&(r=r.concat(t(i.children))):r.push(i);return r};return t(this.pages)}createPage(t,n,r=!1){return L(this,null,function*(){if(t.id=t.raw?t.name:t.id||gt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new ee({id:t.id,name:oi(t.name)}).toDsl(),n){const i=this.getPage(n);i?i.children?i.children.push(t):i.children=[t]:console.warn(`not found PageFile for id: ${n} `)}else this.pages.push(t);if(!r){const i={model:this,type:"create",data:t};F.emit(Ke,i),F.emit(it,i)}!this.currentFile&&!t.dir&&(yield xe(1e3),this.active(t,r))})}updatePage(t,n=!1){const r=this.getPage(t.id);if(r?Object.assign(r,t):console.warn(`not found PageFile for id: ${t.id} `),!n){const i={model:this,type:"update",data:t};F.emit(Ke,i),F.emit(it,i)}}clonePage(t,n,r=!1){var f;const i=gt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new ee({id:i,name:s}).toDsl(),c=Dt({},t,{id:i,name:s,title:o,dsl:a}),u=n?((f=this.getPage(n))==null?void 0:f.children)||[]:this.pages,l=u.findIndex(h=>h.id===t.id);if(u.splice(l+1,0,c),!r){const h={model:this,type:"clone",data:{source:t,target:c}};F.emit(Ke,h),F.emit(it,h)}}saveToBlock(t,n=!1){return L(this,null,function*(){this.active(t,n),yield xe(1e3);const r=gt(),i=t.name,s=t.title,o=new ee({id:r,name:i}).toDsl(),a=Dt({},t,{id:r,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!n){const c={model:this,type:"create",data:a};F.emit(Ee,c),F.emit(it,c)}})}removePage(t,n=!1){var s;const r=this.getPage(t),i=(o,a)=>{const c=a.findIndex(u=>u.id===o);if(c>=0){a.splice(c,1);return}for(const u of a)u.children&&u.children.length&&i(o,u.children)};if(i(t,this.pages),t===this.homepage&&(this.homepage=""),((s=this.currentFile)==null?void 0:s.id)===t&&this.deactivate(n),!n){const o={model:this,type:"delete",data:r};F.emit(Ke,o),F.emit(it,o)}}getBlock(t){return this.blocks.find(n=>n.id===t)}createBlock(t,n=!1){return L(this,null,function*(){const r=t.id||gt(),i=oi(t.name);t.id=r,t.type="block",t.dsl=new ee({id:r,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!n){const o={model:this,type:"create",data:t};F.emit(Ee,o),F.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield xe(1e3),this.active(t,n))})}updateBlock(t,n=!1){const r=this.getBlock(t.id);if(r?(Object.assign(r,t),r.dsl&&(r.dsl.name=t.name)):console.warn(`not found PageFile for id: ${t.id} `),!n){const i={model:this,type:"update",data:t};F.emit(Ee,i),F.emit(it,i)}}cloneBlock(t,n=!1){const r=gt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new ee({id:r,name:i}).toDsl(),a=Dt({},t,{id:r,name:i,title:s,dsl:o}),c=this.blocks.findIndex(u=>u.id===t.id);if(this.blocks.splice(c+1,0,a),!n){const u={model:this,type:"clone",data:{source:t,target:a}};F.emit(Ee,u),F.emit(it,u)}}removeBlock(t,n=!1){var o;const r=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(n)):console.warn(`not found PageFile for id: ${t} `),!n){const a={model:this,type:"delete",data:r};F.emit(Ee,a),F.emit(it,a)}}existBlockName(t,n=[]){return this.blocks.some(r=>r.name===t&&!n.includes(r.id))}existPageName(t,n=[]){return this.getPages().some(r=>r.name===t&&!n.includes(r.id))}setApi(t,n=!1){const r=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(r?(i="update",Object.assign(r,t)):(i="create",t.id=gt(),this.apis.push(t)),!n){const s={model:this,type:i,data:t};F.emit(mi,s),F.emit(it,s)}}removeApi(t,n=!1){const r=this.apis.findIndex(i=>i.name===t||i.id===t);if(r>-1?this.apis.splice(r,1):console.warn(`not found Api for name: ${t} `),!n){const i={model:this,type:"delete",data:t};F.emit(mi,i),F.emit(it,i)}}existApiName(t,n=[]){return this.apis.some(r=>r.name===t&&!n.includes(r.id))}setMeta(t,n=!1){const r=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(r?(i="update",Object.assign(r,t)):(i="create",t.id=gt(),this.meta.push(t)),!n){const s={model:this,type:i,data:t};F.emit(gi,s),F.emit(it,s)}}removeMeta(t,n=!1){const r=this.meta.findIndex(i=>i.code===t||i.id===t);if(r>-1?this.meta.splice(r,1):console.warn(`not found meta for name: ${name} `),!n){const i={model:this,type:"delete",data:t};F.emit(gi,i),F.emit(it,i)}}existMetaCode(t,n=[]){return this.meta.some(r=>r.code===t&&!n.includes(r.id))}setHomepage(t,n=!1){if(this.homepage=t,!n){const r={model:this,type:"update",data:t};F.emit(it,r)}}setConfig(t,n=!1){if(this.config=Object.assign(this.config,t),!n){const r={model:this,type:"update",data:t};F.emit(it,r)}}publish(t){const n={model:this,type:"publish",data:t||this};t?F.emit(Zu,n):F.emit(Gu,n)}genSource(){const t={model:this,type:"gen",data:null};F.emit(Qu,t)}};A(Qe,"attrs",["platform","name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]);let ce=Qe;const Je="EVENT_HISTORY_CHANGE",Bn="EVENT_HISTORY_LOAD";let Qi=class{constructor(t,n={}){A(this,"options",{max:50});A(this,"index",-1);A(this,"id");A(this,"items");Object.assign(this.options,n);const{id:r,items:i=[]}=t;this.id=r,this.items=i}toDsl(){const{id:t,items:n}=this;return{id:t,items:n.map(r=>({id:r.id,label:r.label}))}}get(t){return this.items.find(n=>n.id===t)}add(t,n=!1){const{max:r}=this.options,i={id:gt(),label:new Date().toLocaleString(),dsl:rn(t)};if(this.items.unshift(i),this.items.length>r){const s=this.items.splice(r);n||F.emit(Je,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,n||F.emit(Je,{model:this,type:"create",data:i})}remove(t,n=!1){const r=this.items.findIndex(i=>i.id===t);r>-1?(this.items.splice(r,1),r===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${t} `),n||F.emit(Je,{model:this,type:"delete",data:[t]})}forward(t=!1){const{index:n,items:r}=this;if(n<0)return;--this.index;const i=r[this.index];i&&!t&&F.emit(Bn,{model:this,type:"load",data:i})}backward(t=!1){const{index:n,items:r}=this;if(n>=r.length-1)return;n<0&&(this.index=0),++this.index;const i=r[this.index];i&&!t&&F.emit(Bn,{model:this,type:"load",data:i})}load(t,n=!1){const r=this.items.findIndex(i=>i.id===t);r>=0&&(this.index=r,n||F.emit(Bn,{model:this,type:"load",data:this.items[r]}))}clear(t=!1){this.index=-1;const n=this.items.map(r=>r.id);this.items=[],t||F.emit(Je,{model:this,type:"clear",data:n})}};const F=Hu();function o0(e){return e instanceof ee}function a0(e){return e instanceof Wn}function u0(e){return!!e.__VTJ_BLOCK__}function Xi(e){const t=rn(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(n=>Xi(n))),t}function c0(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 g2=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:qu,BUILT_IN_LIBRARAY_MAP:r0,BUILT_IN_MATERIALS:n0,BUILT_IN_NAME:e0,BUILT_IN_TAGS:i0,BUILT_IN_VUE:Gi,BUILT_IN_VUE_ROUTER:Zi,Base:Ku,BlockModel:ee,DirectiveModel:qe,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:Je,EVENT_HISTORY_LOAD:Bn,EVENT_NODE_CHANGE:rt,EVENT_PROJECT_ACTIVED:di,EVENT_PROJECT_APIS_CHANGE:mi,EVENT_PROJECT_BLOCKS_CHANGE:Ee,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:pi,EVENT_PROJECT_FILE_PUBLISH:Zu,EVENT_PROJECT_GEN_SOURCE:Qu,EVENT_PROJECT_META_CHANGE:gi,EVENT_PROJECT_PAGES_CHANGE:Ke,EVENT_PROJECT_PUBLISH:Gu,EventModel:Nn,HistoryModel:Qi,NodeModel:Wn,ProjectModel:ce,PropModel:kn,Service:s0,VTJ_CORE_VERSION:t0,cloneDsl:Xi,createNodeFrom:c0,emitter:F,isBlock:o0,isBlockSchema:u0,isNode:a0},Symbol.toStringTag,{value:"Module"}));var l0=Object.defineProperty,f0=(e,t,n)=>t in e?l0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xt=(e,t,n)=>f0(e,typeof t!="symbol"?t+"":t,n);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){typeof r!="boolean"&&(r=r||{},r.passive=!1),e.call(this,t,n,r)}})();/**!
56
+ */const Qv="0.9.21",Xv="BuiltIn",Gi="VueMaterial",Zi="VueRouterMaterial",t0=[Gi,Zi],e0={vue:"Vue","vue-router":"VueRouter"},zu={[Gi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zi]:["RouterView","RouterLink"]},n0=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let r0=class{},qu=class{constructor(){A(this,"listeners",[]);A(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}},kn=class Ku{constructor(t,n,r){A(this,"isUnset",!1);this.name=t,this.value=n,this.defaultValue=r,this.setValue(n)}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((n,[r,i])=>(i.isUnset||(n[r]=i.getValue()),n),{})}static parse(t={}){return Object.entries(t).reduce((n,[r,i])=>(n[r]=new Ku(r,i),n),{})}},Nn=class Ju{constructor(t){A(this,"name");A(this,"handler");A(this,"modifiers",{});this.schema=t;const{name:n,handler:r}=this.schema;this.name=n,this.handler=r,this.update(t)}update(t){Object.assign(this.schema,t);const{handler:n,modifiers:r={}}=this.schema;this.handler=n,this.modifiers=r}static toDsl(t){return Object.entries(t).reduce((n,[r,i])=>{const{handler:s,modifiers:o}=i;return n[r]={name:r,handler:s,modifiers:o},n},{})}static parse(t={}){return Object.entries(t).reduce((n,[r,i])=>(n[r]=new Ju(i),n),{})}},qe=class Wu{constructor(t){A(this,"id");A(this,"name","");A(this,"arg");A(this,"modifiers");A(this,"value");A(this,"iterator");this.schema=t,this.id=t.id||gt(),this.update(t)}update(t){Object.assign(this.schema,t);const{name:n,arg:r,modifiers:i,value:s,iterator:o}=this.schema;this.name=n,this.arg=r,this.modifiers=i,this.value=s,this.iterator=o}static parse(t=[]){return t.map(n=>new Wu(n))}static toDsl(t=[]){return t.map(n=>{const{name:r,arg:i,modifiers:s,value:o,iterator:a,id:c}=n;return{id:c,name:r,arg:i,modifiers:s,value:o,iterator:a}})}};const rt="EVENT_NODE_CHANGE";var Ft;let Wn=(Ft=class{constructor(t,n=null){A(this,"__VTJ_NODE__",!0);A(this,"locked",!1);A(this,"id");A(this,"name");A(this,"from");A(this,"invisible",!1);A(this,"children","");A(this,"slot");A(this,"props",{});A(this,"events",{});A(this,"directives",[]);A(this,"disposed",!1);this.parent=n;const{id:r=gt(),name:i,from:s=""}=t;this.id=r,this.name=i,this.from=s,this.update(t,!0),Ft.nodes[this.id]=this}update(t,n=!1){const{invisible:r=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:c={},directives:u=[]}=t;this.invisible=r,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=kn.parse(a),this.events=Nn.parse(c),this.directives=qe.parse(u),n||F.emit(rt,this)}setChildren(t="",n=!1){Array.isArray(t)?this.children=t.map(r=>new Ft(r,this)):this.children=t,n||F.emit(rt,this)}setSlot(t,n=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,n||F.emit(rt,this)}setProp(t,n,r,i=!1){const s=this.props[t];s?s.setValue(n):this.props[t]=new kn(t,n,r),i||F.emit(rt,this)}removeProp(t,n=!1){delete this.props[t],n||F.emit(rt,this)}getPropValue(t){const n=this.props[t];if(n)return n.getValue()}setEvent(t,n=!1){const r=this.events[t.name];r?r.update(t):this.events[t.name]=new Nn(t),n||F.emit(rt,this)}removeEvent(t,n=!1){delete this.events[t],n||F.emit(rt,this)}setDirective(t,n=!1){const r=t instanceof qe?t:new qe(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,r):this.directives.push(r),n||F.emit(rt,this)}removeDirective(t,n=!1){const r=this.directives.findIndex(i=>i===t||i.id===t.id);r>=0&&this.directives.splice(r,1),n||F.emit(rt,this)}removeChild(t,n=!1){const{children:r,disposed:i}=this;if(i||!Array.isArray(r))return;const s=r.findIndex(o=>o===t);t.parent=null,r.splice(s,1),n||F.emit(rt,this)}appendChild(t,n=!1){const{children:r,disposed:i}=this;i||(t.parent=this,Array.isArray(r)?r.push(t):this.children=[t],n||F.emit(rt,this))}insertAfter(t,n=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){t.parent=this.parent;const i=r.indexOf(this);r.splice(i+1,0,t),n||F.emit(rt,this.parent)}}insertBefore(t,n=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){t.parent=this.parent;const i=r.indexOf(this);r.splice(i,0,t),n||F.emit(rt,this.parent)}}movePrev(t=!1){const n=this.parent;if(!n)return;const r=n.children;if(Array.isArray(r)){const i=r.indexOf(this);i>0&&(r.splice(i,1),r.splice(i-1,0,this),t||F.emit(rt,n))}}moveNext(t=!1){const n=this.parent;if(!n)return;const r=n.children;if(Array.isArray(r)){const i=r.indexOf(this);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,this),t||F.emit(rt,n))}}toDsl(){const{id:t,name:n,from:r,invisible:i,locked:s,slot:o,children:a,props:c,directives:u,events:l}=this,f=Array.isArray(a)?a.map(h=>h.toDsl()):a;return{id:t,name:n,from:r,invisible:i,locked:s,slot:o,children:f,props:kn.toDsl(c),directives:qe.toDsl(u),events:Nn.toDsl(l)}}dispose(t=!1){const{children:n,disposed:r}=this;r||(Array.isArray(n)&&n.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,t):t||F.emit(rt,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 n of this.children)n.lock(!0);t||F.emit(rt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const n of this.children)n.unlock(!0);t||F.emit(rt,this)}setVisible(t,n=!1){if(this.invisible=!t,Array.isArray(this.children))for(const r of this.children)r.setVisible(t,!0);n||F.emit(rt,this)}isChild(t){let n=!1;if(Array.isArray(this.children)){for(const r of this.children)if(t===r||t.id===r.id){n=!0;break}else if(n=r.isChild(t),n)break}return n}},A(Ft,"nodes",{}),Ft);const G="EVENT_BLOCK_CHANGE";var qt;let ee=(qt=class{constructor(t){A(this,"__VTJ_BLOCK__",!0);A(this,"id");A(this,"name","");A(this,"inject",[]);A(this,"state",{});A(this,"lifeCycles",{});A(this,"methods",{});A(this,"computed",{});A(this,"watch",[]);A(this,"css","");A(this,"props",[]);A(this,"emits",[]);A(this,"slots",[]);A(this,"dataSources",{});A(this,"nodes",[]);A(this,"locked",!1);A(this,"disposed",!1);const{id:n}=t;this.id=n||gt(),this.update(t,!0)}update(t,n=!1){for(const i of qt.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:r=[]}=t;r.length&&(this.nodes=r.map(i=>new Wn(i))),n||F.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:n,id:r,nodes:i}=this;return st(z({},qt.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:n,__VERSION__:t||Pu().toString(),id:r,nodes:i.map(s=>s.toDsl())})}dispose(){this.nodes.map(t=>t.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(t,n,r,i=!1){this[t][n]=r,i||F.emit(G,this)}removeFunction(t,n,r=!1){delete this[t][n],r||F.emit(G,this)}setState(t,n,r=!1){this.state[t]=n,r||F.emit(G,this)}removeState(t,n=!1){delete this.state[t],n||F.emit(G,this)}setCss(t,n=!1){this.css=t,n||F.emit(G,this)}setWatch(t,n=!1){t.id=t.id||gt();const r=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);r>-1?this.watch.splice(r,1,t):this.watch.push(t),n||F.emit(G,this)}removeWatch(t,n=!1){const r=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);r>-1&&(this.watch.splice(r,1),n||F.emit(G,this))}setProp(t,n=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);r>-1?this.props.splice(r,1,t):this.props.push(t),n||F.emit(G,this)}removeProp(t,n=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);r>-1&&(this.props.splice(r,1),n||F.emit(G,this))}setEmit(t,n=!1){const r=bt(t)?{name:t,params:[]}:t,i=this.emits.findIndex(s=>s===r.name||s===r);i>-1?this.emits.splice(i,1,r):this.emits.push(r),n||F.emit(G,this)}removeEmit(t,n=!1){const r=this.emits.findIndex(i=>bt(i)?i===t:i.name===t);r>-1&&(this.emits.splice(r,1),n||F.emit(G,this))}setSlot(t,n=!1){const r=bt(t)?{name:t,params:[]}:t,i=this.slots.findIndex(s=>s===r.name||s===r);i>-1?this.slots.splice(i,1,r):this.slots.push(r),n||F.emit(G,this)}removeSlot(t,n=!1){const r=this.slots.findIndex(i=>bt(i)?i===t:i.name===t);r>-1&&(this.slots.splice(r,1),n||F.emit(G,this))}setInject(t,n=!1){const r=this.inject.findIndex(i=>i.name===t.name);r>-1?this.inject.splice(r,1,t):this.inject.push(t),n||F.emit(G,this)}removeInject(t,n=!1){const r=this.inject.findIndex(i=>i.name===t.name);r>-1&&(this.inject.splice(r,1),n||F.emit(G,this))}setDataSource(t,n=!1){this.dataSources[t.name]=t,n||F.emit(G,this)}removeDataSource(t,n=!1){delete this.dataSources[t],n||F.emit(G,this)}insertAfter(t,n,r=!1){t.parent=null;const i=this.nodes.indexOf(n);this.nodes.splice(i+1,0,t),r||F.emit(G,this)}insertBefore(t,n,r=!1){t.parent=null;const i=this.nodes.indexOf(n);this.nodes.splice(i,0,t),r||F.emit(G,this)}appendNode(t,n=!1){t.parent=null,this.nodes.push(t),n||F.emit(G,this)}addNode(t,n,r="inner",i=!1){n?["left","top"].includes(r)?n.parent?n.insertAfter(t,i):this.insertBefore(t,n,i):["right","bottom"].includes(r)?n.parent?n.insertAfter(t,i):this.insertAfter(t,n,i):n.appendChild(t,i):this.appendNode(t,i)}__removeNode(t,n=!1){const r=this.nodes.findIndex(i=>i.id===t.id);r>-1&&(this.nodes.splice(r,1),n||F.emit(G,this))}removeNode(t,n=!1){t.parent?t.dispose(n):(t.dispose(!0),this.__removeNode(t,n))}move(t,n,r="inner",i=!1){t.parent?t.parent.removeChild(t,!0):this.__removeNode(t,!0),this.addNode(t,n,r,i)}movePrev(t,n=!1){if(t.parent)t.movePrev(n);else{const r=this.nodes,i=r.indexOf(t);i>0&&(r.splice(i,1),r.splice(i-1,0,t),n||F.emit(G,this))}}moveNext(t,n=!1){if(t.parent)t.moveNext(n);else{const r=this.nodes,i=r.indexOf(t);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,t),n||F.emit(G,this))}}cloneNode(t,n=!1){const r=Xi(t.toDsl()),i=new Wn(r);return this.addNode(i,t,"bottom",n),i}lock(t=!1){this.locked=!0;for(const n of this.nodes)n.lock(!0);t||F.emit(G,this)}unlock(t=!1){this.locked=!1;for(const n of this.nodes)n.unlock(!0);t||F.emit(G,this)}isChild(t){let n=!1;for(const r of this.nodes)if(t===r||t.id===r.id){n=!0;break}else if(n=r.isChild(t),n)break;return n}},A(qt,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]),qt);const it="EVENT_PROJECT_CHANGE",di="EVENT_PROJECT_ACTIVED",pi="EVENT_PROJECT_DEPS_CHANGE",Ke="EVENT_PROJECT_PAGES_CHANGE",Ee="EVENT_PROJECT_BLOCKS_CHANGE",mi="EVENT_PROJECT_APIS_CHANGE",gi="EVENT_PROJECT_META_CHANGE",Yu="EVENT_PROJECT_PUBLISH",Gu="EVENT_PROJECT_FILE_PUBLISH",Zu="EVENT_PROJECT_GEN_SOURCE",Qe=class Qe{constructor(t){A(this,"id","");A(this,"platform","web");A(this,"name","");A(this,"description","");A(this,"homepage","");A(this,"dependencies",[]);A(this,"pages",[]);A(this,"blocks",[]);A(this,"apis",[]);A(this,"meta",[]);A(this,"currentFile",null);A(this,"config",{});A(this,"__BASE_PATH__","/");const{id:n}=t;this.id=n||gt(),this.update(t,!0)}update(t,n=!1){for(const r of Qe.attrs){const i=t[r];i&&(this[r]=i)}n||F.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const n of t)delete n.dsl,n.children&&n.children.length&&this.cleanPagesDsl(n.children)}toDsl(t){const{id:n}=this,r=Qe.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return r.pages&&(r.pages=r.pages.map(i=>rn(st(z({},i),{dsl:void 0}))),this.cleanPagesDsl(r.pages)),r.blocks&&(r.blocks=r.blocks.map(i=>rn(st(z({},i),{dsl:void 0})))),z({__VTJ_PROJECT__:!0,id:n},r)}active(t,n=!1){this.currentFile=t,n||F.emit(di,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||F.emit(di,{model:this,type:"update",data:null})}setDeps(t,n=!1){const r=this.dependencies,i=r.findIndex(o=>o.package===t.package);let s;if(i>-1?(s="update",r.splice(i,1,z(z({},r[i]),t))):(s="create",r.push(t)),!n){const o={model:this,type:s,data:t};F.emit(pi,o),F.emit(it,o)}}removeDeps(t,n=!1){const r=this.dependencies,i=r.findIndex(s=>s.package===t.package);if(i>-1&&r.splice(i,1),!n){const s={model:this,type:"delete",data:t};F.emit(pi,s),F.emit(it,s)}}getPage(t){const n=(r,i=[])=>{for(const s of i){if(s.id===r)return s;if(s.children&&s.children.length){const o=n(r,s.children);if(o)return o}}};return n(t,this.pages)}getPages(){const t=(n=[])=>{let r=[];for(const i of n)i.dir?i.children&&i.children.length&&(r=r.concat(t(i.children))):r.push(i);return r};return t(this.pages)}createPage(t,n,r=!1){return L(this,null,function*(){if(t.id=t.raw?t.name:t.id||gt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new ee({id:t.id,name:oi(t.name)}).toDsl(),n){const i=this.getPage(n);i?i.children?i.children.push(t):i.children=[t]:console.warn(`not found PageFile for id: ${n} `)}else this.pages.push(t);if(!r){const i={model:this,type:"create",data:t};F.emit(Ke,i),F.emit(it,i)}!this.currentFile&&!t.dir&&(yield xe(1e3),this.active(t,r))})}updatePage(t,n=!1){const r=this.getPage(t.id);if(r?Object.assign(r,t):console.warn(`not found PageFile for id: ${t.id} `),!n){const i={model:this,type:"update",data:t};F.emit(Ke,i),F.emit(it,i)}}clonePage(t,n,r=!1){var f;const i=gt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new ee({id:i,name:s}).toDsl(),c=Dt({},t,{id:i,name:s,title:o,dsl:a}),u=n?((f=this.getPage(n))==null?void 0:f.children)||[]:this.pages,l=u.findIndex(h=>h.id===t.id);if(u.splice(l+1,0,c),!r){const h={model:this,type:"clone",data:{source:t,target:c}};F.emit(Ke,h),F.emit(it,h)}}saveToBlock(t,n=!1){return L(this,null,function*(){this.active(t,n),yield xe(1e3);const r=gt(),i=t.name,s=t.title,o=new ee({id:r,name:i}).toDsl(),a=Dt({},t,{id:r,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!n){const c={model:this,type:"create",data:a};F.emit(Ee,c),F.emit(it,c)}})}removePage(t,n=!1){var s;const r=this.getPage(t),i=(o,a)=>{const c=a.findIndex(u=>u.id===o);if(c>=0){a.splice(c,1);return}for(const u of a)u.children&&u.children.length&&i(o,u.children)};if(i(t,this.pages),t===this.homepage&&(this.homepage=""),((s=this.currentFile)==null?void 0:s.id)===t&&this.deactivate(n),!n){const o={model:this,type:"delete",data:r};F.emit(Ke,o),F.emit(it,o)}}getBlock(t){return this.blocks.find(n=>n.id===t)}createBlock(t,n=!1){return L(this,null,function*(){const r=t.id||gt(),i=oi(t.name);t.id=r,t.type="block",t.dsl=new ee({id:r,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!n){const o={model:this,type:"create",data:t};F.emit(Ee,o),F.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield xe(1e3),this.active(t,n))})}updateBlock(t,n=!1){const r=this.getBlock(t.id);if(r?(Object.assign(r,t),r.dsl&&(r.dsl.name=t.name)):console.warn(`not found PageFile for id: ${t.id} `),!n){const i={model:this,type:"update",data:t};F.emit(Ee,i),F.emit(it,i)}}cloneBlock(t,n=!1){const r=gt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new ee({id:r,name:i}).toDsl(),a=Dt({},t,{id:r,name:i,title:s,dsl:o}),c=this.blocks.findIndex(u=>u.id===t.id);if(this.blocks.splice(c+1,0,a),!n){const u={model:this,type:"clone",data:{source:t,target:a}};F.emit(Ee,u),F.emit(it,u)}}removeBlock(t,n=!1){var o;const r=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(n)):console.warn(`not found PageFile for id: ${t} `),!n){const a={model:this,type:"delete",data:r};F.emit(Ee,a),F.emit(it,a)}}existBlockName(t,n=[]){return this.blocks.some(r=>r.name===t&&!n.includes(r.id))}existPageName(t,n=[]){return this.getPages().some(r=>r.name===t&&!n.includes(r.id))}setApi(t,n=!1){const r=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(r?(i="update",Object.assign(r,t)):(i="create",t.id=gt(),this.apis.push(t)),!n){const s={model:this,type:i,data:t};F.emit(mi,s),F.emit(it,s)}}removeApi(t,n=!1){const r=this.apis.findIndex(i=>i.name===t||i.id===t);if(r>-1?this.apis.splice(r,1):console.warn(`not found Api for name: ${t} `),!n){const i={model:this,type:"delete",data:t};F.emit(mi,i),F.emit(it,i)}}existApiName(t,n=[]){return this.apis.some(r=>r.name===t&&!n.includes(r.id))}setMeta(t,n=!1){const r=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(r?(i="update",Object.assign(r,t)):(i="create",t.id=gt(),this.meta.push(t)),!n){const s={model:this,type:i,data:t};F.emit(gi,s),F.emit(it,s)}}removeMeta(t,n=!1){const r=this.meta.findIndex(i=>i.code===t||i.id===t);if(r>-1?this.meta.splice(r,1):console.warn(`not found meta for name: ${name} `),!n){const i={model:this,type:"delete",data:t};F.emit(gi,i),F.emit(it,i)}}existMetaCode(t,n=[]){return this.meta.some(r=>r.code===t&&!n.includes(r.id))}setHomepage(t,n=!1){if(this.homepage=t,!n){const r={model:this,type:"update",data:t};F.emit(it,r)}}setConfig(t,n=!1){if(this.config=Object.assign(this.config,t),!n){const r={model:this,type:"update",data:t};F.emit(it,r)}}publish(t){const n={model:this,type:"publish",data:t||this};t?F.emit(Gu,n):F.emit(Yu,n)}genSource(){const t={model:this,type:"gen",data:null};F.emit(Zu,t)}};A(Qe,"attrs",["platform","name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]);let ce=Qe;const Je="EVENT_HISTORY_CHANGE",Bn="EVENT_HISTORY_LOAD";let Qi=class{constructor(t,n={}){A(this,"options",{max:50});A(this,"index",-1);A(this,"id");A(this,"items");Object.assign(this.options,n);const{id:r,items:i=[]}=t;this.id=r,this.items=i}toDsl(){const{id:t,items:n}=this;return{id:t,items:n.map(r=>({id:r.id,label:r.label}))}}get(t){return this.items.find(n=>n.id===t)}add(t,n=!1){const{max:r}=this.options,i={id:gt(),label:new Date().toLocaleString(),dsl:rn(t)};if(this.items.unshift(i),this.items.length>r){const s=this.items.splice(r);n||F.emit(Je,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,n||F.emit(Je,{model:this,type:"create",data:i})}remove(t,n=!1){const r=this.items.findIndex(i=>i.id===t);r>-1?(this.items.splice(r,1),r===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${t} `),n||F.emit(Je,{model:this,type:"delete",data:[t]})}forward(t=!1){const{index:n,items:r}=this;if(n<0)return;--this.index;const i=r[this.index];i&&!t&&F.emit(Bn,{model:this,type:"load",data:i})}backward(t=!1){const{index:n,items:r}=this;if(n>=r.length-1)return;n<0&&(this.index=0),++this.index;const i=r[this.index];i&&!t&&F.emit(Bn,{model:this,type:"load",data:i})}load(t,n=!1){const r=this.items.findIndex(i=>i.id===t);r>=0&&(this.index=r,n||F.emit(Bn,{model:this,type:"load",data:this.items[r]}))}clear(t=!1){this.index=-1;const n=this.items.map(r=>r.id);this.items=[],t||F.emit(Je,{model:this,type:"clear",data:n})}};const F=Vu();function i0(e){return e instanceof ee}function s0(e){return e instanceof Wn}function o0(e){return!!e.__VTJ_BLOCK__}function Xi(e){const t=rn(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(n=>Xi(n))),t}function a0(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 p2=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:zu,BUILT_IN_LIBRARAY_MAP:e0,BUILT_IN_MATERIALS:t0,BUILT_IN_NAME:Xv,BUILT_IN_TAGS:n0,BUILT_IN_VUE:Gi,BUILT_IN_VUE_ROUTER:Zi,Base:qu,BlockModel:ee,DirectiveModel:qe,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:Je,EVENT_HISTORY_LOAD:Bn,EVENT_NODE_CHANGE:rt,EVENT_PROJECT_ACTIVED:di,EVENT_PROJECT_APIS_CHANGE:mi,EVENT_PROJECT_BLOCKS_CHANGE:Ee,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:pi,EVENT_PROJECT_FILE_PUBLISH:Gu,EVENT_PROJECT_GEN_SOURCE:Zu,EVENT_PROJECT_META_CHANGE:gi,EVENT_PROJECT_PAGES_CHANGE:Ke,EVENT_PROJECT_PUBLISH:Yu,EventModel:Nn,HistoryModel:Qi,NodeModel:Wn,ProjectModel:ce,PropModel:kn,Service:r0,VTJ_CORE_VERSION:Qv,cloneDsl:Xi,createNodeFrom:a0,emitter:F,isBlock:i0,isBlockSchema:o0,isNode:s0},Symbol.toStringTag,{value:"Module"}));var u0=Object.defineProperty,c0=(e,t,n)=>t in e?u0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xt=(e,t,n)=>c0(e,typeof t!="symbol"?t+"":t,n);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){typeof r!="boolean"&&(r=r||{},r.passive=!1),e.call(this,t,n,r)}})();/**!
57
57
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
58
58
  * @name @vtj/utils
59
59
  * @author CHC chenhuachun1549@dingtalk.com
60
- * @version 0.9.19
60
+ * @version 0.9.21
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const h0="0.9.19";/**
62
+ */const l0="0.9.21";/**
63
63
  * @vue/shared v3.5.13
64
64
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
65
65
  * @license MIT
66
- **//*! #__NO_SIDE_EFFECTS__ */function d0(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const p0=Object.assign,m0=Object.prototype.hasOwnProperty,yi=(e,t)=>m0.call(e,t),Te=Array.isArray,In=e=>Xu(e)==="[object Map]",g0=e=>typeof e=="string",dn=e=>typeof e=="symbol",dr=e=>e!==null&&typeof e=="object",y0=Object.prototype.toString,Xu=e=>y0.call(e),v0=e=>Xu(e).slice(8,-1),ts=e=>g0(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ge=(e,t)=>!Object.is(e,t);var b0={ENV_TYPE:"local",NODE_ENV:"production"};let _0,tc=0,Ir;function es(){tc++}function ns(){if(--tc>0)return;let e;for(;Ir;){let t=Ir;for(Ir=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}let Yn=!0;const ec=[];function w0(){ec.push(Yn),Yn=!1}function E0(){const e=ec.pop();Yn=e===void 0?!0:e}let nc=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){es();try{b0.NODE_ENV;for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ns()}}};const vi=new WeakMap,re=Symbol(""),bi=Symbol(""),sn=Symbol("");function yt(e,t,n){if(Yn&&_0){let r=vi.get(e);r||vi.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new nc),i.map=r,i.key=n),i.track()}}function Ut(e,t,n,r,i,s){const o=vi.get(e);if(!o)return;const a=c=>{c&&c.trigger()};if(es(),t==="clear")o.forEach(a);else{const c=Te(e),u=c&&ts(n);if(c&&n==="length"){const l=Number(r);o.forEach((f,h)=>{(h==="length"||h===sn||!dn(h)&&h>=l)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(sn)),t){case"add":c?u&&a(o.get("length")):(a(o.get(re)),In(e)&&a(o.get(bi)));break;case"delete":c||(a(o.get(re)),In(e)&&a(o.get(bi)));break;case"set":In(e)&&a(o.get(re));break}}ns()}function ve(e){const t=Z(e);return t===e?t:(yt(t,"iterate",sn),Kt(e)?t:t.map(lt))}function rs(e){return yt(e=Z(e),"iterate",sn),e}const S0={__proto__:null,[Symbol.iterator](){return Mr(this,Symbol.iterator,lt)},concat(...e){return ve(this).concat(...e.map(t=>Te(t)?ve(t):t))},entries(){return Mr(this,"entries",e=>(e[1]=lt(e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,n=>n.map(lt),arguments)},find(e,t){return kt(this,"find",e,t,lt,arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,lt,arguments)},findLastIndex(e,t){return kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fr(this,"includes",e)},indexOf(...e){return Fr(this,"indexOf",e)},join(e){return ve(this).join(e)},lastIndexOf(...e){return Fr(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return He(this,"pop")},push(...e){return He(this,"push",e)},reduce(e,...t){return Bo(this,"reduce",e,t)},reduceRight(e,...t){return Bo(this,"reduceRight",e,t)},shift(){return He(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return He(this,"splice",e)},toReversed(){return ve(this).toReversed()},toSorted(e){return ve(this).toSorted(e)},toSpliced(...e){return ve(this).toSpliced(...e)},unshift(...e){return He(this,"unshift",e)},values(){return Mr(this,"values",lt)}};function Mr(e,t,n){const r=rs(e),i=r[t]();return r!==e&&!Kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const x0=Array.prototype;function kt(e,t,n,r,i,s){const o=rs(e),a=o!==e&&!Kt(e),c=o[t];if(c!==x0[t]){const f=c.apply(e,s);return a?lt(f):f}let u=n;o!==e&&(a?u=function(f,h){return n.call(this,lt(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const l=c.call(o,u,r);return a&&i?i(l):l}function Bo(e,t,n,r){const i=rs(e);let s=n;return i!==e&&(Kt(e)?n.length>3&&(s=function(o,a,c){return n.call(this,o,a,c,e)}):s=function(o,a,c){return n.call(this,o,lt(a),c,e)}),i[t](s,...r)}function Fr(e,t,n){const r=Z(e);yt(r,"iterate",sn);const i=r[t](...n);return(i===-1||i===!1)&&F0(n[0])?(n[0]=Z(n[0]),r[t](...n)):i}function He(e,t,n=[]){w0(),es();const r=Z(e)[t].apply(e,n);return ns(),E0(),r}const T0=d0("__proto__,__v_isRef,__isVue"),rc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dn));function O0(e){dn(e)||(e=String(e));const t=Z(this);return yt(t,"has",e),t.hasOwnProperty(e)}let ic=class{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?B0:ac:s?N0:oc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Te(t);if(!i){let c;if(o&&(c=S0[n]))return c;if(n==="hasOwnProperty")return O0}const a=Reflect.get(t,n,Oe(t)?t:r);return(dn(n)?rc.has(n):T0(n))||(i||yt(t,"get",n),s)?a:Oe(a)?o&&ts(n)?a:a.value:dr(a)?i?cc(a):uc(a):a}};class $0 extends ic{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const c=De(s);if(!Kt(r)&&!De(r)&&(s=Z(s),r=Z(r)),!Te(t)&&Oe(s)&&!Oe(r))return c?!1:(s.value=r,!0)}const o=Te(t)&&ts(n)?Number(n)<t.length:yi(t,n),a=Reflect.set(t,n,r,Oe(t)?t:i);return t===Z(i)&&(o?Ge(r,s)&&Ut(t,"set",n,r):Ut(t,"add",n,r)),a}deleteProperty(t,n){const r=yi(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Ut(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!dn(n)||!rc.has(n))&&yt(t,"has",n),r}ownKeys(t){return yt(t,"iterate",Te(t)?"length":re),Reflect.ownKeys(t)}}class A0 extends ic{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const j0=new $0,R0=new A0,$n=e=>Reflect.getPrototypeOf(e);function D0(e,t,n){return function(...r){const i=this.__v_raw,s=Z(i),o=In(s),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=i[e](...r),l=t?_i:lt;return!t&&yt(s,"iterate",c?bi:re),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[l(f[0]),l(f[1])]:l(f),done:h}},[Symbol.iterator](){return this}}}}function An(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function C0(e,t){const n={get(r){const i=this.__v_raw,s=Z(i),o=Z(r);e||(Ge(r,o)&&yt(s,"get",r),yt(s,"get",o));const{has:a}=$n(s),c=e?_i:lt;if(a.call(s,r))return c(i.get(r));if(a.call(s,o))return c(i.get(o));i!==s&&i.get(r)},get size(){const r=this.__v_raw;return!e&&yt(Z(r),"iterate",re),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,s=Z(i),o=Z(r);return e||(Ge(r,o)&&yt(s,"has",r),yt(s,"has",o)),r===o?i.has(r):i.has(r)||i.has(o)},forEach(r,i){const s=this,o=s.__v_raw,a=Z(o),c=e?_i:lt;return!e&&yt(a,"iterate",re),o.forEach((u,l)=>r.call(i,c(u),c(l),s))}};return p0(n,e?{add:An("add"),set:An("set"),delete:An("delete"),clear:An("clear")}:{add(r){!Kt(r)&&!De(r)&&(r=Z(r));const i=Z(this);return $n(i).has.call(i,r)||(i.add(r),Ut(i,"add",r,r)),this},set(r,i){!Kt(i)&&!De(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=$n(s);let c=o.call(s,r);c||(r=Z(r),c=o.call(s,r));const u=a.call(s,r);return s.set(r,i),c?Ge(i,u)&&Ut(s,"set",r,i):Ut(s,"add",r,i),this},delete(r){const i=Z(this),{has:s,get:o}=$n(i);let a=s.call(i,r);a||(r=Z(r),a=s.call(i,r)),o&&o.call(i,r);const c=i.delete(r);return a&&Ut(i,"delete",r,void 0),c},clear(){const r=Z(this),i=r.size!==0,s=r.clear();return i&&Ut(r,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=D0(r,e)}),n}function sc(e,t){const n=C0(e);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(yi(n,i)&&i in r?n:r,i,s)}const P0={get:sc(!1)},k0={get:sc(!0)},oc=new WeakMap,N0=new WeakMap,ac=new WeakMap,B0=new WeakMap;function I0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function M0(e){return e.__v_skip||!Object.isExtensible(e)?0:I0(v0(e))}function uc(e){return De(e)?e:lc(e,!1,j0,P0,oc)}function cc(e){return lc(e,!0,R0,k0,ac)}function lc(e,t,n,r,i){if(!dr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=M0(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function De(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function F0(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const lt=e=>dr(e)?uc(e):e,_i=e=>dr(e)?cc(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function Lr(e){return L0(e,!1)}function L0(e,t){return Oe(e)?e:new V0(e,t)}class V0{constructor(t,n){this.dep=new nc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Z(t),this._value=n?t:lt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Kt(t)||De(t);t=r?t:Z(t),Ge(t,n)&&(this._rawValue=t,this._value=r?t:lt(t),this.dep.trigger())}}function fc(e,t){return function(){return e.apply(t,arguments)}}const{toString:H0}=Object.prototype,{getPrototypeOf:is}=Object,pr=(e=>t=>{const n=H0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>pr(t)===e),mr=e=>t=>typeof t===e,{isArray:Be}=Array,on=mr("undefined");function U0(e){return e!==null&&!on(e)&&e.constructor!==null&&!on(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hc=jt("ArrayBuffer");function z0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hc(e.buffer),t}const q0=mr("string"),_t=mr("function"),dc=mr("number"),gr=e=>e!==null&&typeof e=="object",K0=e=>e===!0||e===!1,Mn=e=>{if(pr(e)!=="object")return!1;const t=is(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},J0=jt("Date"),W0=jt("File"),Y0=jt("Blob"),G0=jt("FileList"),Z0=e=>gr(e)&&_t(e.pipe),Q0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=pr(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},X0=jt("URLSearchParams"),[tb,eb,nb,rb]=["ReadableStream","Request","Response","Headers"].map(jt),ib=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Be(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function pc(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mc=e=>!on(e)&&e!==ne;function wi(){const{caseless:e}=mc(this)&&this||{},t={},n=(r,i)=>{const s=e&&pc(t,i)||i;Mn(t[s])&&Mn(r)?t[s]=wi(t[s],r):Mn(r)?t[s]=wi({},r):Be(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&pn(arguments[r],n);return t}const sb=(e,t,n,{allOwnKeys:r}={})=>(pn(t,(i,s)=>{n&&_t(i)?e[s]=fc(i,n):e[s]=i},{allOwnKeys:r}),e),ob=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ab=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ub=(e,t,n,r)=>{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],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&is(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cb=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},lb=e=>{if(!e)return null;if(Be(e))return e;let t=e.length;if(!dc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},fb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&is(Uint8Array)),hb=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},db=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pb=jt("HTMLFormElement"),mb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),Io=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gb=jt("RegExp"),gc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pn(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},yb=e=>{gc(e,(t,n)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(_t(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},vb=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Be(e)?r(e):r(String(e).split(t)),n},bb=()=>{},_b=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vr="abcdefghijklmnopqrstuvwxyz",Mo="0123456789",yc={DIGIT:Mo,ALPHA:Vr,ALPHA_DIGIT:Vr+Vr.toUpperCase()+Mo},wb=(e=16,t=yc.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Eb(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Sb=e=>{const t=new Array(10),n=(r,i)=>{if(gr(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=Be(r)?[]:{};return pn(r,(o,a)=>{const c=n(o,i+1);!on(c)&&(s[a]=c)}),t[i]=void 0,s}}return r};return n(e,0)},xb=jt("AsyncFunction"),Tb=e=>e&&(gr(e)||_t(e))&&_t(e.then)&&_t(e.catch),vc=((e,t)=>e?setImmediate:t?((n,r)=>(ne.addEventListener("message",({source:i,data:s})=>{i===ne&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ne.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_t(ne.postMessage)),Ob=typeof queueMicrotask<"u"?queueMicrotask.bind(ne):typeof process<"u"&&process.nextTick||vc,O={isArray:Be,isArrayBuffer:hc,isBuffer:U0,isFormData:Q0,isArrayBufferView:z0,isString:q0,isNumber:dc,isBoolean:K0,isObject:gr,isPlainObject:Mn,isReadableStream:tb,isRequest:eb,isResponse:nb,isHeaders:rb,isUndefined:on,isDate:J0,isFile:W0,isBlob:Y0,isRegExp:gb,isFunction:_t,isStream:Z0,isURLSearchParams:X0,isTypedArray:fb,isFileList:G0,forEach:pn,merge:wi,extend:sb,trim:ib,stripBOM:ob,inherits:ab,toFlatObject:ub,kindOf:pr,kindOfTest:jt,endsWith:cb,toArray:lb,forEachEntry:hb,matchAll:db,isHTMLForm:pb,hasOwnProperty:Io,hasOwnProp:Io,reduceDescriptors:gc,freezeMethods:yb,toObjectSet:vb,toCamelCase:mb,noop:bb,toFiniteNumber:_b,findKey:pc,global:ne,isContextDefined:mc,ALPHABET:yc,generateString:wb,isSpecCompliantForm:Eb,toJSONObject:Sb,isAsyncFn:xb,isThenable:Tb,setImmediate:vc,asap:Ob};function J(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}O.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.status}}});const bc=J.prototype,_c={};["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=>{_c[e]={value:e}});Object.defineProperties(J,_c);Object.defineProperty(bc,"isAxiosError",{value:!0});J.from=(e,t,n,r,i,s)=>{const o=Object.create(bc);return O.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),J.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const $b=null;function Ei(e){return O.isPlainObject(e)||O.isArray(e)}function wc(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function Fo(e,t,n){return e?e.concat(t).map(function(r,i){return r=wc(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Ab(e){return O.isArray(e)&&!e.some(Ei)}const jb=O.toFlatObject(O,{},null,function(e){return/^is[A-Z]/.test(e)});function yr(e,t,n){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=O.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!O.isUndefined(p[d])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(i))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(O.isDate(d))return d.toISOString();if(!a&&O.isBlob(d))throw new J("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(d)||O.isTypedArray(d)?a&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,p,m){let b=d;if(d&&!m&&typeof d=="object"){if(O.endsWith(p,"{}"))p=r?p:p.slice(0,-2),d=JSON.stringify(d);else if(O.isArray(d)&&Ab(d)||(O.isFileList(d)||O.endsWith(p,"[]"))&&(b=O.toArray(d)))return p=wc(p),b.forEach(function(E,g){!(O.isUndefined(E)||E===null)&&t.append(o===!0?Fo([p],g,s):o===null?p:p+"[]",c(E))}),!1}return Ei(d)?!0:(t.append(Fo(m,p,s),c(d)),!1)}const l=[],f=Object.assign(jb,{defaultVisitor:u,convertValue:c,isVisitable:Ei});function h(d,p){if(!O.isUndefined(d)){if(l.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(d),O.forEach(d,function(m,b){(!(O.isUndefined(m)||m===null)&&i.call(t,m,O.isString(b)?b.trim():b,p,f))===!0&&h(m,p?p.concat(b):[b])}),l.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Lo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ss(e,t){this._pairs=[],e&&yr(e,this,t)}const Ec=ss.prototype;Ec.append=function(e,t){this._pairs.push([e,t])};Ec.toString=function(e){const t=e?function(n){return e.call(this,n,Lo)}:Lo;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function Rb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sc(e,t,n){if(!t)return e;const r=n&&n.encode||Rb;O.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=O.isURLSearchParams(t)?t.toString():new ss(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Vo=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(n){n!==null&&t(n)})}};const xc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Db=typeof URLSearchParams<"u"?URLSearchParams:ss,Cb=typeof FormData<"u"?FormData:null,Pb=typeof Blob<"u"?Blob:null,kb={isBrowser:!0,classes:{URLSearchParams:Db,FormData:Cb,Blob:Pb},protocols:["http","https","file","blob","url","data"]},os=typeof window<"u"&&typeof document<"u",Si=typeof navigator=="object"&&navigator||void 0,Nb=os&&(!Si||["ReactNative","NativeScript","NS"].indexOf(Si.product)<0),Bb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ib=os&&window.location.href||"http://localhost",Mb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:os,hasStandardBrowserEnv:Nb,hasStandardBrowserWebWorkerEnv:Bb,navigator:Si,origin:Ib},Symbol.toStringTag,{value:"Module"})),ot=z(z({},Mb),kb);function Fb(e,t){return yr(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return ot.isNode&&O.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Lb(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vb(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Tc(e){function t(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=s>=n.length;return o=!o&&O.isArray(i)?i.length:o,c?(O.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!O.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&O.isArray(i[o])&&(i[o]=Vb(i[o])),!a)}if(O.isFormData(e)&&O.isFunction(e.entries)){const n={};return O.forEachEntry(e,(r,i)=>{t(Lb(r),i,n,0)}),n}return null}function Hb(e,t,n){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const mn={transitional:xc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=O.isObject(e);if(i&&O.isHTMLForm(e)&&(e=new FormData(e)),O.isFormData(e))return r?JSON.stringify(Tc(e)):e;if(O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)||O.isReadableStream(e))return e;if(O.isArrayBufferView(e))return e.buffer;if(O.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Fb(e,this.formSerializer).toString();if((s=O.isFileList(e))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return yr(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),Hb(e)):e}],transformResponse:[function(e){const t=this.transitional||mn.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(O.isResponse(e)||O.isReadableStream(e))return e;if(e&&O.isString(e)&&(n&&!this.responseType||r)){const i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?J.from(s,J.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{mn.headers[e]={}});const Ub=O.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"]),zb=e=>{const t={};let n,r,i;return e&&e.split(`
67
- `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Ub[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ho=Symbol("internals");function Ue(e){return e&&String(e).trim().toLowerCase()}function Fn(e){return e===!1||e==null?e:O.isArray(e)?e.map(Fn):String(e)}function qb(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Kb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hr(e,t,n,r,i){if(O.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!O.isString(t)){if(O.isString(r))return t.indexOf(r)!==-1;if(O.isRegExp(r))return r.test(t)}}function Jb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Wb(e,t){const n=O.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let vt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,c,u){const l=Ue(c);if(!l)throw new Error("header name must be a non-empty string");const f=O.findKey(i,l);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||c]=Fn(a))}const o=(a,c)=>O.forEach(a,(u,l)=>s(u,l,c));if(O.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(O.isString(t)&&(t=t.trim())&&!Kb(t))o(zb(t),n);else if(O.isHeaders(t))for(const[a,c]of t.entries())s(c,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Ue(t),t){const r=O.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return qb(i);if(O.isFunction(n))return n.call(this,i,r);if(O.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ue(t),t){const r=O.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Hr(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Ue(o),o){const a=O.findKey(r,o);a&&(!n||Hr(r,r[a],a,n))&&(delete r[a],i=!0)}}return O.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Hr(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return O.forEach(this,(i,s)=>{const o=O.findKey(r,s);if(o){n[o]=Fn(i),delete n[s];return}const a=t?Jb(s):String(s).trim();a!==s&&delete n[s],n[a]=Fn(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return O.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&O.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
68
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const n=(this[Ho]=this[Ho]={accessors:{}}).accessors,r=this.prototype;function i(s){const o=Ue(s);n[o]||(Wb(r,s),n[o]=!0)}return O.isArray(t)?t.forEach(i):i(t),this}};vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(vt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});O.freezeMethods(vt);function Ur(e,t){const n=this||mn,r=t||n,i=vt.from(r.headers);let s=r.data;return O.forEach(e,function(o){s=o.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Oc(e){return!!(e&&e.__CANCEL__)}function Ie(e,t,n){J.call(this,e!=null?e:"canceled",J.ERR_CANCELED,t,n),this.name="CanceledError"}O.inherits(Ie,J,{__CANCEL__:!0});function $c(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Yb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Gb(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=r[s];o||(o=c),n[i]=a,r[i]=c;let l=s,f=0;for(;l!==i;)f+=n[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function Zb(e,t){let n=0,r=1e3/t,i,s;const o=(a,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),u=c-n;u>=r?o(a,c):(i=a,s||(s=setTimeout(()=>{s=null,o(i)},r-u)))},()=>i&&o(i)]}const Gn=(e,t,n=3)=>{let r=0;const i=Gb(50,250);return Zb(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,c=o-r,u=i(c),l=o<=a;r=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&l?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},Uo=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},zo=e=>(...t)=>O.asap(()=>e(...t)),Qb=ot.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ot.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ot.origin),ot.navigator&&/(msie|trident)/i.test(ot.navigator.userAgent)):()=>!0,Xb=ot.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];O.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),O.isString(r)&&o.push("path="+r),O.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 t_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function e_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ac(e,t){return e&&!t_(t)?e_(e,t):t}const qo=e=>e instanceof vt?z({},e):e;function le(e,t){t=t||{};const n={};function r(u,l,f,h){return O.isPlainObject(u)&&O.isPlainObject(l)?O.merge.call({caseless:h},u,l):O.isPlainObject(l)?O.merge({},l):O.isArray(l)?l.slice():l}function i(u,l,f,h){if(O.isUndefined(l)){if(!O.isUndefined(u))return r(void 0,u,f,h)}else return r(u,l,f,h)}function s(u,l){if(!O.isUndefined(l))return r(void 0,l)}function o(u,l){if(O.isUndefined(l)){if(!O.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function a(u,l,f){if(f in t)return r(u,l);if(f in e)return r(void 0,u)}const c={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:(u,l,f)=>i(qo(u),qo(l),f,!0)};return O.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=c[u]||i,f=l(e[u],t[u],u);O.isUndefined(f)&&l!==a||(n[u]=f)}),n}const jc=e=>{const t=le({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=vt.from(o),t.url=Sc(Ac(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(O.isFormData(n)){if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...l]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...l].join("; "))}}if(ot.hasStandardBrowserEnv&&(r&&O.isFunction(r)&&(r=r(t)),r||r!==!1&&Qb(t.url))){const u=i&&s&&Xb.read(s);u&&o.set(i,u)}return t},n_=typeof XMLHttpRequest<"u",r_=n_&&function(e){return new Promise(function(t,n){const r=jc(e);let i=r.data;const s=vt.from(r.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:c}=r,u,l,f,h,d;function p(){h&&h(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function b(){if(!m)return;const g=vt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:g,config:e,request:m};$c(function(_){t(_),p()},function(_){n(_),p()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(n(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let g=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const v=r.transitional||xc;r.timeoutErrorMessage&&(g=r.timeoutErrorMessage),n(new J(g,v.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&O.forEach(s.toJSON(),function(g,v){m.setRequestHeader(v,g)}),O.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),o&&o!=="json"&&(m.responseType=r.responseType),c&&([f,d]=Gn(c,!0),m.addEventListener("progress",f)),a&&m.upload&&([l,h]=Gn(a),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=g=>{m&&(n(!g||g.type?new Ie(null,e,m):g),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const E=Yb(r.url);if(E&&ot.protocols.indexOf(E)===-1){n(new J("Unsupported protocol "+E+":",J.ERR_BAD_REQUEST,e));return}m.send(i||null)})},i_=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,a();const l=u instanceof Error?u:this.reason;r.abort(l instanceof J?l:new Ie(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,s(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>O.asap(a),c}},s_=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},o_=function(e,t){return Or(this,null,function*(){try{for(var n=xs(a_(e)),r,i,s;r=!(i=yield new Gt(n.next())).done;r=!1){const o=i.value;yield*$r(s_(o,t))}}catch(i){s=[i]}finally{try{r&&(i=n.return)&&(yield new Gt(i.call(n)))}finally{if(s)throw s[0]}}})},a_=function(e){return Or(this,null,function*(){if(e[Symbol.asyncIterator]){yield*$r(e);return}const t=e.getReader();try{for(;;){const{done:n,value:r}=yield new Gt(t.read());if(n)break;yield r}}finally{yield new Gt(t.cancel())}})},Ko=(e,t,n,r)=>{const i=o_(e,t);let s=0,o,a=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({pull(u){return L(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){a(),u.close();return}let h=f.byteLength;if(n){let d=s+=h;n(d)}u.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(u){return a(u),i.return()}},{highWaterMark:2})},vr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rc=vr&&typeof ReadableStream=="function",u_=vr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>L(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Dc=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},c_=Rc&&Dc(()=>{let e=!1;const t=new Request(ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Jo=64*1024,xi=Rc&&Dc(()=>O.isReadableStream(new Response("").body)),Zn={stream:xi&&(e=>e.body)};vr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Zn[t]&&(Zn[t]=O.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,r)})})})(new Response);const l_=e=>L(void 0,null,function*(){if(e==null)return 0;if(O.isBlob(e))return e.size;if(O.isSpecCompliantForm(e))return(yield new Request(ot.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(O.isArrayBufferView(e)||O.isArrayBuffer(e))return e.byteLength;if(O.isURLSearchParams(e)&&(e=e+""),O.isString(e))return(yield u_(e)).byteLength}),f_=(e,t)=>L(void 0,null,function*(){const n=O.toFiniteNumber(e.getContentLength());return n!=null?n:l_(t)}),h_=vr&&(e=>L(void 0,null,function*(){let{url:t,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:h}=jc(e);u=u?(u+"").toLowerCase():"text";let d=i_([i,s&&s.toAbortSignal()],o),p;const m=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let b;try{if(c&&c_&&n!=="get"&&n!=="head"&&(b=yield f_(l,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),y;if(O.isFormData(r)&&(y=S.headers.get("content-type"))&&l.setContentType(y),S.body){const[x,$]=Uo(b,Gn(zo(c)));r=Ko(S.body,Jo,x,$)}}O.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;p=new Request(t,st(z({},h),{signal:d,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:E?f:void 0}));let g=yield fetch(p);const v=xi&&(u==="stream"||u==="response");if(xi&&(a||v&&m)){const S={};["status","statusText","headers"].forEach(V=>{S[V]=g[V]});const y=O.toFiniteNumber(g.headers.get("content-length")),[x,$]=a&&Uo(y,Gn(zo(a),!0))||[];g=new Response(Ko(g.body,Jo,x,()=>{$&&$(),m&&m()}),S)}u=u||"text";let _=yield Zn[O.findKey(Zn,u)||"text"](g,e);return!v&&m&&m(),yield new Promise((S,y)=>{$c(S,y,{data:_,headers:vt.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:p})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:E.cause||E}):J.from(E,E&&E.code,e,p)}})),Ti={http:$b,xhr:r_,fetch:h_};O.forEach(Ti,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Wo=e=>`- ${e}`,d_=e=>O.isFunction(e)||e===null||e===!1,Cc={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s<t;s++){n=e[s];let o;if(r=n,!d_(n)&&(r=Ti[(o=String(n)).toLowerCase()],r===void 0))throw new J(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
69
- `+s.map(Wo).join(`
70
- `):" "+Wo(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Ti};function zr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ie(null,e)}function Yo(e){return zr(e),e.headers=vt.from(e.headers),e.data=Ur.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cc.getAdapter(e.adapter||mn.adapter)(e).then(function(t){return zr(e),t.data=Ur.call(e,e.transformResponse,t),t.headers=vt.from(t.headers),t},function(t){return Oc(t)||(zr(e),t&&t.response&&(t.response.data=Ur.call(e,e.transformResponse,t.response),t.response.headers=vt.from(t.response.headers))),Promise.reject(t)})}const Pc="1.7.9",br={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{br[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Go={};br.transitional=function(e,t,n){function r(i,s){return"[Axios v"+Pc+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,o)=>{if(e===!1)throw new J(r(s," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!Go[s]&&(Go[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};br.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function p_(e,t,n){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new J("option "+s+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const Ln={assertOptions:p_,validators:br},Rt=Ln.validators;class ie{constructor(t){this.defaults=t,this.interceptors={request:new Vo,response:new Vo}}request(t,n){return L(this,null,function*(){try{return yield this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
71
- `+s):r.stack=s}catch(o){}}throw r}})}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=le(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Ln.assertOptions(r,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),i!=null&&(O.isFunction(i)?n.paramsSerializer={serialize:i}:Ln.assertOptions(i,{encode:Rt.function,serialize:Rt.function},!0)),Ln.assertOptions(n,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&O.merge(s.common,s[n.method]);s&&O.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=vt.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let l,f=0,h;if(!c){const p=[Yo.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),h=p.length,l=Promise.resolve(n);f<h;)l=l.then(p[f++],p[f++]);return l}h=a.length;let d=n;for(f=0;f<h;){const p=a[f++],m=a[f++];try{d=p(d)}catch(b){m.call(this,b);break}}try{l=Yo.call(this,d)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)l=l.then(u[f++],u[f++]);return l}getUri(t){t=le(this.defaults,t);const n=Ac(t.baseURL,t.url);return Sc(n,t.params,t.paramsSerializer)}}O.forEach(["delete","get","head","options"],function(e){ie.prototype[e]=function(t,n){return this.request(le(n||{},{method:e,url:t,data:(n||{}).data}))}});O.forEach(["post","put","patch"],function(e){function t(n){return function(r,i,s){return this.request(le(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}ie.prototype[e]=t(),ie.prototype[e+"Form"]=t(!0)});class as{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(i,s,o){r.reason||(r.reason=new Ie(i,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new as(function(n){t=n}),cancel:t}}}function m_(e){return function(t){return e.apply(null,t)}}function g_(e){return O.isObject(e)&&e.isAxiosError===!0}const Oi={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(Oi).forEach(([e,t])=>{Oi[t]=e});function kc(e){const t=new ie(e),n=fc(ie.prototype.request,t);return O.extend(n,ie.prototype,t,{allOwnKeys:!0}),O.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return kc(le(e,r))},n}const et=kc(mn);et.Axios=ie;et.CanceledError=Ie;et.CancelToken=as;et.isCancel=Oc;et.VERSION=Pc;et.toFormData=yr;et.AxiosError=J;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=m_;et.isAxiosError=g_;et.mergeConfig=le;et.AxiosHeaders=vt;et.formToJSON=e=>Tc(O.isHTMLForm(e)?new FormData(e):e);et.getAdapter=Cc.getAdapter;et.HttpStatusCode=Oi;et.default=et;const y_={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},v_=["put","post","patch"],$i="Local-Request-Id",b_=100,__=300;let Nc=class{constructor(e={}){xt(this,"axios"),xt(this,"settings"),xt(this,"records",{}),xt(this,"isLoading",!1),xt(this,"stopSkipWarn"),xt(this,"showLoading"),xt(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=Pn(e,["settings","query"]);this.axios=et.create(Dt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=zi(this.openLoading.bind(this),b_),this.showError=fu(this._showError.bind(this),__,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=Dt(this.settings,e.settings||{});const t=Pn(e,["settings","query"]);this.axios.defaults=Dt(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(t)}else for(const n of Object.values(this.records))n.source.cancel(t)}createHeaders(e,t,n){const r=t.injectHeaders?typeof t.headers=="function"?t.headers(e,n,t):t.headers||{}:{},i=z(z({"Content-Type":y_[t.type||"form"]},n.headers),r);return t.skipWarn&&(i[$i]=e),i}isJsonType(e){return Object.entries(e).some(([t,n])=>t.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([r,i])=>{n.append(r,i)}),n}createSendData(e,t,n,r,i={}){const{type:s,skipWarn:o}=e,{name:a="skipWarn"}=o||{};let{data:c,params:u={},method:l="get"}=t;const f=r?{[a]:!0}:{};return v_.includes(l.toLowerCase())?(c=Object.assign(c||{},f),c=s!=="json"||!this.isJsonType(n)?this.toFormData(c,s):c,u=z({},i)):s==="form"?u=z(z(z({},c||{}),i),f):(c&&(s!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,s)),u=z(z({},i),f)),{data:c,params:u}}createUrl(e){let{url:t,params:n}=e;if(t)try{return Uu(t,{encode:encodeURIComponent})(n||{})}catch(r){console.warn("createUrl","pathToRegexpCompile error",t)}return t}openLoading(e){const{loading:t,showLoading:n}=e;t&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{loading:t,hideLoading:n}=e;if(!t)return;this.isLoading=!1;const r=Object.keys(this.records);n&&r.length===0&&(this.isLoading=!1,n())}_showError(e,t){var i;const{failMessage:n,showError:r}=e;if(n&&r){const s=(i=t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";r(o,t)}}validResponse(e,t){const{validSuccess:n,validate:r}=e;return n&&r?!!r(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const n=Dt({},this.settings,e.settings||{}),r=e.query||{},i=Pn(e,["settings","query"]),s=Nu(!1),o=et.CancelToken.source();this.records[s]={settings:n,config:i,source:o};const a=this.createUrl(i),c=this.createHeaders(s,n,i),{data:u,params:l}=this.createSendData(n,i,c,t,r);return this.showLoading(n),new Promise((f,h)=>{this.axios(st(z({cancelToken:o.token},i),{url:a,headers:c,data:u,params:l})).then(d=>{var p;return this.isSkipWarnResponse(d)?f(d.promise):this.validResponse(n,d)?f(n.originResponse?d:(p=d.data)==null?void 0:p.data):(this.showError(n,d.data),h(d.data))}).catch(d=>(this.showError(n,d),h(d))).finally(()=>{delete this.records[s],this.closeLoading(n)})})}useResponse(e,t){const{response:n}=this.axios.interceptors,r=n.use(e,t);return()=>n.eject(r)}useRequest(e,t){const{request:n}=this.axios.interceptors,r=n.use(e,t);return()=>n.eject(r)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:n,callback:r,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const o=(s.config.headers||{})[$i],a=this.records[o];if(!a)return s;const{data:c}=s;if(!c||typeof c!="object")return s;if((c==null?void 0:c.code)===t){r&&r(s);const u=new Promise(n).then(()=>this.send(st(z({},a.config),{settings:a.settings}),!0));u.catch(l=>l).finally(()=>{i&&i()}),s.promise=u}return s})}};function _r(e={}){const t=new Nc(e),n=t.send.bind(t),r=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(n,st(z({},t),{instance:t,send:n,cancel:r,setConfig:i,useRequest:s,useResponse:o}))}const an=_r({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function Bc(e){const t=typeof e=="string"?{url:e}:e;return(n,r)=>an.send(Dt({},t,r||{},{data:n}))}function w_(e){const t={};for(const[n,r]of Object.entries(e))t[n]=Bc(r);return t}function E_(e,t){const n=Lr(null),r=Lr(),i=Lr(!0);return e.then(s=>{n.value=t?t(s):s}).catch(s=>{r.value=s}).finally(()=>{i.value=!1}),{data:n,error:r,loading:i}}const Ce=typeof window<"u",S_=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)},r.onerror=i=>{n(i)}});function Ic(e){const t={};return e?(e.forEach((n,r)=>{t[r]=typeof n=="string"?decodeURIComponent(n):n}),t):{}}function x_(e){var o;const t=e.split(","),n=(o=t[0].match(/:(.*?);/))==null?void 0:o[1],r=atob(t[1]);let i=r.length;const s=new Uint8Array(i);for(;i--;)s[i]=r.charCodeAt(i);return new Blob([s],{type:n})}function T_(e,t){const n=e;return n.lastModified=Date.now(),n.lastModifiedDate=new Date,n.name=t,n}const O_=e=>Ce?window.requestAnimationFrame(e):setTimeout(e,16),$_=e=>Ce?window.cancelAnimationFrame(e):clearTimeout(e);class us{constructor(t={}){xt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),xt(this,"caches",{}),xt(this,"types"),this.types={local:Ce?window.localStorage:this.caches,session:Ce?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,n,r={}){const{type:i,expired:s,prefix:o}=z(z({},this.options),r),a=Date.now(),c=o+t,u=this.types[i]||this.caches,l={value:n,timestamp:a,expired:s};u===this.caches?u[c]=l:u.setItem(c,JSON.stringify(l))}get(t,n={}){const{type:r,prefix:i}=z(z({},this.options),n),s=i+t,o=this.types[r]||this.caches;let a;if(o===this.caches)a=o[s];else{const f=o.getItem(s);f&&(a=JSON.parse(f))}if(!a)return null;const{value:c,timestamp:u,expired:l}=a;return l>0&&u+l<Date.now()?(this.remove(t,n),null):c}remove(t,n={}){const{type:r,prefix:i}=z(z({},this.options),n),s=this.types[r]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:n}=z(z({},this.options),t),r=this.types[n]||this.caches;r===this.caches?this.caches={}:r.clear()}}const Vn=new us;function Mc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hn={exports:{}},A_=Hn.exports,Zo;function j_(){return Zo||(Zo=1,function(e,t){(function(n,r){r(t,e)})(A_,function(n,r){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(u){try{delete window[u]}catch(l){window[u]=void 0}}function a(u){var l=document.getElementById(u);l&&document.getElementsByTagName("head")[0].removeChild(l)}function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=u,h=l.timeout||i.timeout,d=l.jsonpCallback||i.jsonpCallback,p=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||s(),g=d+"_"+E;window[E]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),p&&clearTimeout(p),a(g),o(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+d+"="+E),l.charset&&v.setAttribute("charset",l.charset),l.nonce&&v.setAttribute("nonce",l.nonce),l.referrerPolicy&&v.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&v.setAttribute("crossorigin","true"),v.id=g,document.getElementsByTagName("head")[0].appendChild(v),p=setTimeout(function(){b(new Error("JSONP request to "+u+" timed out")),o(E),a(g),window[E]=function(){o(E)}},h),v.onerror=function(){b(new Error("JSONP request to "+u+" failed")),o(E),a(g),p&&clearTimeout(p)}})}r.exports=c})}(Hn,Hn.exports)),Hn.exports}var R_=j_();const D_=Mc(R_);function C_(e){if(Ce){const{protocol:t,host:n,pathname:r}=location;return`${t}//${n}${e?r:""}`}else return null}function P_(e=""){const t=e.match(Ki);return t?t[0]:""}function Fc(e){const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push([n,encodeURIComponent(e[n])].join("="));return t.join("&")}function Ai(e,t,n){const r={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",n=n||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+n+"\\"+t+"]+)(?:\\"+n+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(r[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return r}function Lc(e,t){t=typeof t=="string"?Ai(t):t;const n=e.split("?")[0],r=Ai(e),i=Object.assign({},r,t),s=Fc(i);return s?[n,s].join("?"):e}const se=Object.freeze(Object.defineProperty({__proto__:null,append:Lc,getCurrentHost:C_,getHost:P_,parse:Ai,stringify:Fc},Symbol.toStringTag,{value:"Module"}));function cs(n){return L(this,arguments,function*(e,t={}){const{query:r={}}=t;e.includes("${")&&(e=lu(e)(r||{}));const i=Lc(e,r);return yield(yield D_(i,t)).json()})}var qr,Qo;function k_(){if(Qo)return qr;Qo=1,qr=function(r,i,s){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=r,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var c="onload"in a?t:n;c(a,s),a.onload||t(a,s),o.appendChild(a)};function e(r,i){for(var s in i)r.setAttribute(s,i[s])}function t(r,i){r.onload=function(){this.onerror=this.onload=null,i(null,r)},r.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),r)}}function n(r,i){r.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,r))}}return qr}var N_=k_();const B_=Mc(N_);function ji(e,t={}){return new Promise((n,r)=>{const{library:i}=t;B_(e,t,(s,o)=>{s?r(s):n(i?window[i]:void 0)})})}const Xo={debug:-1,log:0,info:0,warn:1,error:2},I_=function(e,t,n,r){return function(...i){if(t&&Xo[t]<=Xo[e]&&console[e].apply&&(r==="*"||n.startsWith(r)))return console[e].apply(console,M_(i,n))}};function M_(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function F_(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const n=e.split(":");return{targetLevel:n[0],targetBizName:n[1]}}return{targetLevel:e,targetBizName:"*"}}const L_={level:"warn",bizName:"*"};class Vc{constructor(t){xt(this,"config"),xt(this,"options"),this.options=z(z({},L_),t);const n=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(n.href)||[])[1];this.config=F_(r,t)}_log(t){const{targetLevel:n,targetBizName:r}=this.config,{bizName:i}=this.options;return I_(t,n,i,r)}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 Hc(e){return new Vc(e)}const oe=Hc({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var V_={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 Ri(e,t){function n(i,s,o){if(!(typeof document>"u")){o=jn({},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 c in o)o[c]&&(a+="; "+c,o[c]!==!0&&(a+="="+o[c].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var c=s[a].split("="),u=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(o[l]=e.read(u,l),i===l)break}catch(f){}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",jn({},s,{expires:-1}))},withAttributes:function(i){return Ri(this.converter,jn({},this.attributes,i))},withConverter:function(i){return Ri(jn({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ls=Ri(V_,{path:"/"});function H_(e,t,n){ls.set(e,t,n)}function U_(e){return ls.get(e)}function z_(e,t){ls.remove(e,t)}const Un=Object.freeze(Object.defineProperty({__proto__:null,get:U_,remove:z_,set:H_},Symbol.toStringTag,{value:"Module"}));function q_(e,t=""){const n=document.createElement("a");n.download=t,n.href=e,n.target="_blank",n.click()}function fs(e,t="",n){const r=new Blob([e],{type:n}),i=document.createElement("a");i.download=t,i.style.display="none",i.href=URL.createObjectURL(r),i.click(),URL.revokeObjectURL(i.href)}function K_(e,t="",n){return L(this,null,function*(){return fetch(e,{credentials:"include"}).then(r=>L(this,null,function*(){const i=yield r.blob();return fs(i,t,n),i}))})}function J_(e,t=""){const n=JSON.stringify(e);fs(n,t,"application/json")}const w2=Object.freeze(Object.defineProperty({__proto__:null,AES:wv,LOCAL_REQUEST_ID:$i,Logger:Vc,MD5:yv,RSA:_v,Request:Nc,Storage:us,VTJ_UTILS_VERSION:h0,arrayToKv:Mv,arrayToMap:Bu,arrayToTree:zv,avg:Vv,axios:et,base64:vv,blobToFile:T_,cAF:$_,camelCase:Nt,cloneDeep:rn,compress:Qv,cookie:Un,createApi:Bc,createApis:w_,createRequest:_r,dataURLtoBlob:x_,dateFormat:Cv,dayjs:Ji,debounce:zi,decompress:Xv,dedupArray:Iu,delay:xe,downloadBlob:fs,downloadJson:J_,downloadRemoteFile:K_,downloadUrl:q_,fileToBase64:S_,flatChildren:Lu,formDataToJson:Ic,get:wa,getLogger:Hc,groupBy:ou,isArray:dt,isArrayBuffer:t1,isBoolean:n1,isBuffer:je,isCarNo:Ov,isClient:Ce,isDate:o1,isDef:Nv,isEmail:Sv,isEqual:a1,isFunction:ue,isIdCardNo:xv,isMobilePhone:Tv,isNaN:c1,isNull:l1,isNumber:au,isObject:ut,isPlainObject:Vi,isString:bt,isSymbol:cn,isUndefined:f1,isUrl:ju,jsonp:cs,kebabCase:d1,kvToArray:Fv,loadScript:ji,logger:oe,lowerFirst:m1,mapToObject:fr,merge:Dt,mitt:Hu,noop:kf,now:Bv,numberFormat:Av,numeral:Du,omit:Pn,pathToRegexp:hr,pathToRegexpCompile:Uu,pathToRegexpMatch:zu,pathToRegexpParse:Wi,pick:Mu,rAF:O_,rCar:Au,rEmail:Tu,rID:Ou,rMobile:$u,rURL:Ki,random:Iv,request:an,set:v1,snakeCase:_1,splitParser:Hv,splitStringify:Uv,storage:Vn,sum:Fu,template:lu,throttle:fu,timestamp:ku,toArray:li,toFixed:jv,toRawType:kv,toTypeString:Pu,trim:fi,uid:gt,unAES:Ev,unBase64:bv,unRSA:ci,upperFirst:ur,upperFirstCamelCase:oi,url:se,useApi:E_,uuid:Nu,zipObject:Lv},Symbol.toStringTag,{value:"Module"}));/**!
66
+ **//*! #__NO_SIDE_EFFECTS__ */function f0(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const h0=Object.assign,d0=Object.prototype.hasOwnProperty,yi=(e,t)=>d0.call(e,t),Te=Array.isArray,In=e=>Qu(e)==="[object Map]",p0=e=>typeof e=="string",dn=e=>typeof e=="symbol",dr=e=>e!==null&&typeof e=="object",m0=Object.prototype.toString,Qu=e=>m0.call(e),g0=e=>Qu(e).slice(8,-1),ts=e=>p0(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ge=(e,t)=>!Object.is(e,t);var y0={ENV_TYPE:"local",NODE_ENV:"production"};let v0,Xu=0,Ir;function es(){Xu++}function ns(){if(--Xu>0)return;let e;for(;Ir;){let t=Ir;for(Ir=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}let Yn=!0;const tc=[];function b0(){tc.push(Yn),Yn=!1}function _0(){const e=tc.pop();Yn=e===void 0?!0:e}let ec=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){es();try{y0.NODE_ENV;for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ns()}}};const vi=new WeakMap,re=Symbol(""),bi=Symbol(""),sn=Symbol("");function yt(e,t,n){if(Yn&&v0){let r=vi.get(e);r||vi.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new ec),i.map=r,i.key=n),i.track()}}function Ut(e,t,n,r,i,s){const o=vi.get(e);if(!o)return;const a=c=>{c&&c.trigger()};if(es(),t==="clear")o.forEach(a);else{const c=Te(e),u=c&&ts(n);if(c&&n==="length"){const l=Number(r);o.forEach((f,h)=>{(h==="length"||h===sn||!dn(h)&&h>=l)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(sn)),t){case"add":c?u&&a(o.get("length")):(a(o.get(re)),In(e)&&a(o.get(bi)));break;case"delete":c||(a(o.get(re)),In(e)&&a(o.get(bi)));break;case"set":In(e)&&a(o.get(re));break}}ns()}function ve(e){const t=Z(e);return t===e?t:(yt(t,"iterate",sn),Kt(e)?t:t.map(lt))}function rs(e){return yt(e=Z(e),"iterate",sn),e}const w0={__proto__:null,[Symbol.iterator](){return Mr(this,Symbol.iterator,lt)},concat(...e){return ve(this).concat(...e.map(t=>Te(t)?ve(t):t))},entries(){return Mr(this,"entries",e=>(e[1]=lt(e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,n=>n.map(lt),arguments)},find(e,t){return kt(this,"find",e,t,lt,arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,lt,arguments)},findLastIndex(e,t){return kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fr(this,"includes",e)},indexOf(...e){return Fr(this,"indexOf",e)},join(e){return ve(this).join(e)},lastIndexOf(...e){return Fr(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return He(this,"pop")},push(...e){return He(this,"push",e)},reduce(e,...t){return ko(this,"reduce",e,t)},reduceRight(e,...t){return ko(this,"reduceRight",e,t)},shift(){return He(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return He(this,"splice",e)},toReversed(){return ve(this).toReversed()},toSorted(e){return ve(this).toSorted(e)},toSpliced(...e){return ve(this).toSpliced(...e)},unshift(...e){return He(this,"unshift",e)},values(){return Mr(this,"values",lt)}};function Mr(e,t,n){const r=rs(e),i=r[t]();return r!==e&&!Kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const E0=Array.prototype;function kt(e,t,n,r,i,s){const o=rs(e),a=o!==e&&!Kt(e),c=o[t];if(c!==E0[t]){const f=c.apply(e,s);return a?lt(f):f}let u=n;o!==e&&(a?u=function(f,h){return n.call(this,lt(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const l=c.call(o,u,r);return a&&i?i(l):l}function ko(e,t,n,r){const i=rs(e);let s=n;return i!==e&&(Kt(e)?n.length>3&&(s=function(o,a,c){return n.call(this,o,a,c,e)}):s=function(o,a,c){return n.call(this,o,lt(a),c,e)}),i[t](s,...r)}function Fr(e,t,n){const r=Z(e);yt(r,"iterate",sn);const i=r[t](...n);return(i===-1||i===!1)&&I0(n[0])?(n[0]=Z(n[0]),r[t](...n)):i}function He(e,t,n=[]){b0(),es();const r=Z(e)[t].apply(e,n);return ns(),_0(),r}const S0=f0("__proto__,__v_isRef,__isVue"),nc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dn));function x0(e){dn(e)||(e=String(e));const t=Z(this);return yt(t,"has",e),t.hasOwnProperty(e)}let rc=class{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?k0:oc:s?P0:sc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Te(t);if(!i){let c;if(o&&(c=w0[n]))return c;if(n==="hasOwnProperty")return x0}const a=Reflect.get(t,n,Oe(t)?t:r);return(dn(n)?nc.has(n):S0(n))||(i||yt(t,"get",n),s)?a:Oe(a)?o&&ts(n)?a:a.value:dr(a)?i?uc(a):ac(a):a}};class T0 extends rc{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const c=De(s);if(!Kt(r)&&!De(r)&&(s=Z(s),r=Z(r)),!Te(t)&&Oe(s)&&!Oe(r))return c?!1:(s.value=r,!0)}const o=Te(t)&&ts(n)?Number(n)<t.length:yi(t,n),a=Reflect.set(t,n,r,Oe(t)?t:i);return t===Z(i)&&(o?Ge(r,s)&&Ut(t,"set",n,r):Ut(t,"add",n,r)),a}deleteProperty(t,n){const r=yi(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Ut(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!dn(n)||!nc.has(n))&&yt(t,"has",n),r}ownKeys(t){return yt(t,"iterate",Te(t)?"length":re),Reflect.ownKeys(t)}}class O0 extends rc{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const $0=new T0,A0=new O0,$n=e=>Reflect.getPrototypeOf(e);function j0(e,t,n){return function(...r){const i=this.__v_raw,s=Z(i),o=In(s),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=i[e](...r),l=t?_i:lt;return!t&&yt(s,"iterate",c?bi:re),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[l(f[0]),l(f[1])]:l(f),done:h}},[Symbol.iterator](){return this}}}}function An(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function R0(e,t){const n={get(r){const i=this.__v_raw,s=Z(i),o=Z(r);e||(Ge(r,o)&&yt(s,"get",r),yt(s,"get",o));const{has:a}=$n(s),c=e?_i:lt;if(a.call(s,r))return c(i.get(r));if(a.call(s,o))return c(i.get(o));i!==s&&i.get(r)},get size(){const r=this.__v_raw;return!e&&yt(Z(r),"iterate",re),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,s=Z(i),o=Z(r);return e||(Ge(r,o)&&yt(s,"has",r),yt(s,"has",o)),r===o?i.has(r):i.has(r)||i.has(o)},forEach(r,i){const s=this,o=s.__v_raw,a=Z(o),c=e?_i:lt;return!e&&yt(a,"iterate",re),o.forEach((u,l)=>r.call(i,c(u),c(l),s))}};return h0(n,e?{add:An("add"),set:An("set"),delete:An("delete"),clear:An("clear")}:{add(r){!Kt(r)&&!De(r)&&(r=Z(r));const i=Z(this);return $n(i).has.call(i,r)||(i.add(r),Ut(i,"add",r,r)),this},set(r,i){!Kt(i)&&!De(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=$n(s);let c=o.call(s,r);c||(r=Z(r),c=o.call(s,r));const u=a.call(s,r);return s.set(r,i),c?Ge(i,u)&&Ut(s,"set",r,i):Ut(s,"add",r,i),this},delete(r){const i=Z(this),{has:s,get:o}=$n(i);let a=s.call(i,r);a||(r=Z(r),a=s.call(i,r)),o&&o.call(i,r);const c=i.delete(r);return a&&Ut(i,"delete",r,void 0),c},clear(){const r=Z(this),i=r.size!==0,s=r.clear();return i&&Ut(r,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=j0(r,e)}),n}function ic(e,t){const n=R0(e);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(yi(n,i)&&i in r?n:r,i,s)}const D0={get:ic(!1)},C0={get:ic(!0)},sc=new WeakMap,P0=new WeakMap,oc=new WeakMap,k0=new WeakMap;function N0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function B0(e){return e.__v_skip||!Object.isExtensible(e)?0:N0(g0(e))}function ac(e){return De(e)?e:cc(e,!1,$0,D0,sc)}function uc(e){return cc(e,!0,A0,C0,oc)}function cc(e,t,n,r,i){if(!dr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=B0(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function De(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function I0(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const lt=e=>dr(e)?ac(e):e,_i=e=>dr(e)?uc(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function Lr(e){return M0(e,!1)}function M0(e,t){return Oe(e)?e:new F0(e,t)}class F0{constructor(t,n){this.dep=new ec,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Z(t),this._value=n?t:lt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Kt(t)||De(t);t=r?t:Z(t),Ge(t,n)&&(this._rawValue=t,this._value=r?t:lt(t),this.dep.trigger())}}function lc(e,t){return function(){return e.apply(t,arguments)}}const{toString:L0}=Object.prototype,{getPrototypeOf:is}=Object,pr=(e=>t=>{const n=L0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>pr(t)===e),mr=e=>t=>typeof t===e,{isArray:Be}=Array,on=mr("undefined");function V0(e){return e!==null&&!on(e)&&e.constructor!==null&&!on(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fc=jt("ArrayBuffer");function H0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fc(e.buffer),t}const U0=mr("string"),_t=mr("function"),hc=mr("number"),gr=e=>e!==null&&typeof e=="object",z0=e=>e===!0||e===!1,Mn=e=>{if(pr(e)!=="object")return!1;const t=is(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},q0=jt("Date"),K0=jt("File"),J0=jt("Blob"),W0=jt("FileList"),Y0=e=>gr(e)&&_t(e.pipe),G0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=pr(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},Z0=jt("URLSearchParams"),[Q0,X0,tb,eb]=["ReadableStream","Request","Response","Headers"].map(jt),nb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function pn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Be(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function dc(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,pc=e=>!on(e)&&e!==ne;function wi(){const{caseless:e}=pc(this)&&this||{},t={},n=(r,i)=>{const s=e&&dc(t,i)||i;Mn(t[s])&&Mn(r)?t[s]=wi(t[s],r):Mn(r)?t[s]=wi({},r):Be(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&pn(arguments[r],n);return t}const rb=(e,t,n,{allOwnKeys:r}={})=>(pn(t,(i,s)=>{n&&_t(i)?e[s]=lc(i,n):e[s]=i},{allOwnKeys:r}),e),ib=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sb=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ob=(e,t,n,r)=>{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],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&is(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ab=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ub=e=>{if(!e)return null;if(Be(e))return e;let t=e.length;if(!hc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},cb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&is(Uint8Array)),lb=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},fb=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},hb=jt("HTMLFormElement"),db=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),No=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pb=jt("RegExp"),mc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};pn(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},mb=e=>{mc(e,(t,n)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(_t(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gb=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Be(e)?r(e):r(String(e).split(t)),n},yb=()=>{},vb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vr="abcdefghijklmnopqrstuvwxyz",Bo="0123456789",gc={DIGIT:Bo,ALPHA:Vr,ALPHA_DIGIT:Vr+Vr.toUpperCase()+Bo},bb=(e=16,t=gc.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function _b(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wb=e=>{const t=new Array(10),n=(r,i)=>{if(gr(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=Be(r)?[]:{};return pn(r,(o,a)=>{const c=n(o,i+1);!on(c)&&(s[a]=c)}),t[i]=void 0,s}}return r};return n(e,0)},Eb=jt("AsyncFunction"),Sb=e=>e&&(gr(e)||_t(e))&&_t(e.then)&&_t(e.catch),yc=((e,t)=>e?setImmediate:t?((n,r)=>(ne.addEventListener("message",({source:i,data:s})=>{i===ne&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ne.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",_t(ne.postMessage)),xb=typeof queueMicrotask<"u"?queueMicrotask.bind(ne):typeof process<"u"&&process.nextTick||yc,O={isArray:Be,isArrayBuffer:fc,isBuffer:V0,isFormData:G0,isArrayBufferView:H0,isString:U0,isNumber:hc,isBoolean:z0,isObject:gr,isPlainObject:Mn,isReadableStream:Q0,isRequest:X0,isResponse:tb,isHeaders:eb,isUndefined:on,isDate:q0,isFile:K0,isBlob:J0,isRegExp:pb,isFunction:_t,isStream:Y0,isURLSearchParams:Z0,isTypedArray:cb,isFileList:W0,forEach:pn,merge:wi,extend:rb,trim:nb,stripBOM:ib,inherits:sb,toFlatObject:ob,kindOf:pr,kindOfTest:jt,endsWith:ab,toArray:ub,forEachEntry:lb,matchAll:fb,isHTMLForm:hb,hasOwnProperty:No,hasOwnProp:No,reduceDescriptors:mc,freezeMethods:mb,toObjectSet:gb,toCamelCase:db,noop:yb,toFiniteNumber:vb,findKey:dc,global:ne,isContextDefined:pc,ALPHABET:gc,generateString:bb,isSpecCompliantForm:_b,toJSONObject:wb,isAsyncFn:Eb,isThenable:Sb,setImmediate:yc,asap:xb};function J(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}O.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.status}}});const vc=J.prototype,bc={};["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=>{bc[e]={value:e}});Object.defineProperties(J,bc);Object.defineProperty(vc,"isAxiosError",{value:!0});J.from=(e,t,n,r,i,s)=>{const o=Object.create(vc);return O.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),J.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Tb=null;function Ei(e){return O.isPlainObject(e)||O.isArray(e)}function _c(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function Io(e,t,n){return e?e.concat(t).map(function(r,i){return r=_c(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Ob(e){return O.isArray(e)&&!e.some(Ei)}const $b=O.toFlatObject(O,{},null,function(e){return/^is[A-Z]/.test(e)});function yr(e,t,n){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=O.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!O.isUndefined(p[d])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(i))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(O.isDate(d))return d.toISOString();if(!a&&O.isBlob(d))throw new J("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(d)||O.isTypedArray(d)?a&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,p,m){let b=d;if(d&&!m&&typeof d=="object"){if(O.endsWith(p,"{}"))p=r?p:p.slice(0,-2),d=JSON.stringify(d);else if(O.isArray(d)&&Ob(d)||(O.isFileList(d)||O.endsWith(p,"[]"))&&(b=O.toArray(d)))return p=_c(p),b.forEach(function(E,g){!(O.isUndefined(E)||E===null)&&t.append(o===!0?Io([p],g,s):o===null?p:p+"[]",c(E))}),!1}return Ei(d)?!0:(t.append(Io(m,p,s),c(d)),!1)}const l=[],f=Object.assign($b,{defaultVisitor:u,convertValue:c,isVisitable:Ei});function h(d,p){if(!O.isUndefined(d)){if(l.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(d),O.forEach(d,function(m,b){(!(O.isUndefined(m)||m===null)&&i.call(t,m,O.isString(b)?b.trim():b,p,f))===!0&&h(m,p?p.concat(b):[b])}),l.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Mo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ss(e,t){this._pairs=[],e&&yr(e,this,t)}const wc=ss.prototype;wc.append=function(e,t){this._pairs.push([e,t])};wc.toString=function(e){const t=e?function(n){return e.call(this,n,Mo)}:Mo;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function Ab(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ec(e,t,n){if(!t)return e;const r=n&&n.encode||Ab;O.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=O.isURLSearchParams(t)?t.toString():new ss(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Fo=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(n){n!==null&&t(n)})}};const Sc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jb=typeof URLSearchParams<"u"?URLSearchParams:ss,Rb=typeof FormData<"u"?FormData:null,Db=typeof Blob<"u"?Blob:null,Cb={isBrowser:!0,classes:{URLSearchParams:jb,FormData:Rb,Blob:Db},protocols:["http","https","file","blob","url","data"]},os=typeof window<"u"&&typeof document<"u",Si=typeof navigator=="object"&&navigator||void 0,Pb=os&&(!Si||["ReactNative","NativeScript","NS"].indexOf(Si.product)<0),kb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nb=os&&window.location.href||"http://localhost",Bb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:os,hasStandardBrowserEnv:Pb,hasStandardBrowserWebWorkerEnv:kb,navigator:Si,origin:Nb},Symbol.toStringTag,{value:"Module"})),ot=z(z({},Bb),Cb);function Ib(e,t){return yr(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return ot.isNode&&O.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Mb(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fb(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function xc(e){function t(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=s>=n.length;return o=!o&&O.isArray(i)?i.length:o,c?(O.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!O.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&O.isArray(i[o])&&(i[o]=Fb(i[o])),!a)}if(O.isFormData(e)&&O.isFunction(e.entries)){const n={};return O.forEachEntry(e,(r,i)=>{t(Mb(r),i,n,0)}),n}return null}function Lb(e,t,n){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const mn={transitional:Sc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=O.isObject(e);if(i&&O.isHTMLForm(e)&&(e=new FormData(e)),O.isFormData(e))return r?JSON.stringify(xc(e)):e;if(O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)||O.isReadableStream(e))return e;if(O.isArrayBufferView(e))return e.buffer;if(O.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ib(e,this.formSerializer).toString();if((s=O.isFileList(e))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return yr(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),Lb(e)):e}],transformResponse:[function(e){const t=this.transitional||mn.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(O.isResponse(e)||O.isReadableStream(e))return e;if(e&&O.isString(e)&&(n&&!this.responseType||r)){const i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?J.from(s,J.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{mn.headers[e]={}});const Vb=O.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"]),Hb=e=>{const t={};let n,r,i;return e&&e.split(`
67
+ `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Vb[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Lo=Symbol("internals");function Ue(e){return e&&String(e).trim().toLowerCase()}function Fn(e){return e===!1||e==null?e:O.isArray(e)?e.map(Fn):String(e)}function Ub(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const zb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hr(e,t,n,r,i){if(O.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!O.isString(t)){if(O.isString(r))return t.indexOf(r)!==-1;if(O.isRegExp(r))return r.test(t)}}function qb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Kb(e,t){const n=O.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let vt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,c,u){const l=Ue(c);if(!l)throw new Error("header name must be a non-empty string");const f=O.findKey(i,l);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||c]=Fn(a))}const o=(a,c)=>O.forEach(a,(u,l)=>s(u,l,c));if(O.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(O.isString(t)&&(t=t.trim())&&!zb(t))o(Hb(t),n);else if(O.isHeaders(t))for(const[a,c]of t.entries())s(c,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Ue(t),t){const r=O.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Ub(i);if(O.isFunction(n))return n.call(this,i,r);if(O.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ue(t),t){const r=O.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Hr(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Ue(o),o){const a=O.findKey(r,o);a&&(!n||Hr(r,r[a],a,n))&&(delete r[a],i=!0)}}return O.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Hr(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return O.forEach(this,(i,s)=>{const o=O.findKey(r,s);if(o){n[o]=Fn(i),delete n[s];return}const a=t?qb(s):String(s).trim();a!==s&&delete n[s],n[a]=Fn(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return O.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&O.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
68
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const n=(this[Lo]=this[Lo]={accessors:{}}).accessors,r=this.prototype;function i(s){const o=Ue(s);n[o]||(Kb(r,s),n[o]=!0)}return O.isArray(t)?t.forEach(i):i(t),this}};vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(vt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});O.freezeMethods(vt);function Ur(e,t){const n=this||mn,r=t||n,i=vt.from(r.headers);let s=r.data;return O.forEach(e,function(o){s=o.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Tc(e){return!!(e&&e.__CANCEL__)}function Ie(e,t,n){J.call(this,e!=null?e:"canceled",J.ERR_CANCELED,t,n),this.name="CanceledError"}O.inherits(Ie,J,{__CANCEL__:!0});function Oc(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Jb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wb(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=r[s];o||(o=c),n[i]=a,r[i]=c;let l=s,f=0;for(;l!==i;)f+=n[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function Yb(e,t){let n=0,r=1e3/t,i,s;const o=(a,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),u=c-n;u>=r?o(a,c):(i=a,s||(s=setTimeout(()=>{s=null,o(i)},r-u)))},()=>i&&o(i)]}const Gn=(e,t,n=3)=>{let r=0;const i=Wb(50,250);return Yb(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,c=o-r,u=i(c),l=o<=a;r=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&l?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},Vo=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ho=e=>(...t)=>O.asap(()=>e(...t)),Gb=ot.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ot.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ot.origin),ot.navigator&&/(msie|trident)/i.test(ot.navigator.userAgent)):()=>!0,Zb=ot.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];O.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),O.isString(r)&&o.push("path="+r),O.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 Qb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $c(e,t){return e&&!Qb(t)?Xb(e,t):t}const Uo=e=>e instanceof vt?z({},e):e;function le(e,t){t=t||{};const n={};function r(u,l,f,h){return O.isPlainObject(u)&&O.isPlainObject(l)?O.merge.call({caseless:h},u,l):O.isPlainObject(l)?O.merge({},l):O.isArray(l)?l.slice():l}function i(u,l,f,h){if(O.isUndefined(l)){if(!O.isUndefined(u))return r(void 0,u,f,h)}else return r(u,l,f,h)}function s(u,l){if(!O.isUndefined(l))return r(void 0,l)}function o(u,l){if(O.isUndefined(l)){if(!O.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function a(u,l,f){if(f in t)return r(u,l);if(f in e)return r(void 0,u)}const c={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:(u,l,f)=>i(Uo(u),Uo(l),f,!0)};return O.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=c[u]||i,f=l(e[u],t[u],u);O.isUndefined(f)&&l!==a||(n[u]=f)}),n}const Ac=e=>{const t=le({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=vt.from(o),t.url=Ec($c(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(O.isFormData(n)){if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[u,...l]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...l].join("; "))}}if(ot.hasStandardBrowserEnv&&(r&&O.isFunction(r)&&(r=r(t)),r||r!==!1&&Gb(t.url))){const u=i&&s&&Zb.read(s);u&&o.set(i,u)}return t},t_=typeof XMLHttpRequest<"u",e_=t_&&function(e){return new Promise(function(t,n){const r=Ac(e);let i=r.data;const s=vt.from(r.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:c}=r,u,l,f,h,d;function p(){h&&h(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function b(){if(!m)return;const g=vt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:g,config:e,request:m};Oc(function(_){t(_),p()},function(_){n(_),p()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(n(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let g=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const v=r.transitional||Sc;r.timeoutErrorMessage&&(g=r.timeoutErrorMessage),n(new J(g,v.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&O.forEach(s.toJSON(),function(g,v){m.setRequestHeader(v,g)}),O.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),o&&o!=="json"&&(m.responseType=r.responseType),c&&([f,d]=Gn(c,!0),m.addEventListener("progress",f)),a&&m.upload&&([l,h]=Gn(a),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=g=>{m&&(n(!g||g.type?new Ie(null,e,m):g),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const E=Jb(r.url);if(E&&ot.protocols.indexOf(E)===-1){n(new J("Unsupported protocol "+E+":",J.ERR_BAD_REQUEST,e));return}m.send(i||null)})},n_=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,a();const l=u instanceof Error?u:this.reason;r.abort(l instanceof J?l:new Ie(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,s(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>O.asap(a),c}},r_=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},i_=function(e,t){return Or(this,null,function*(){try{for(var n=xs(s_(e)),r,i,s;r=!(i=yield new Gt(n.next())).done;r=!1){const o=i.value;yield*$r(r_(o,t))}}catch(i){s=[i]}finally{try{r&&(i=n.return)&&(yield new Gt(i.call(n)))}finally{if(s)throw s[0]}}})},s_=function(e){return Or(this,null,function*(){if(e[Symbol.asyncIterator]){yield*$r(e);return}const t=e.getReader();try{for(;;){const{done:n,value:r}=yield new Gt(t.read());if(n)break;yield r}}finally{yield new Gt(t.cancel())}})},zo=(e,t,n,r)=>{const i=i_(e,t);let s=0,o,a=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({pull(u){return L(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){a(),u.close();return}let h=f.byteLength;if(n){let d=s+=h;n(d)}u.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(u){return a(u),i.return()}},{highWaterMark:2})},vr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",jc=vr&&typeof ReadableStream=="function",o_=vr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>L(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Rc=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},a_=jc&&Rc(()=>{let e=!1;const t=new Request(ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qo=64*1024,xi=jc&&Rc(()=>O.isReadableStream(new Response("").body)),Zn={stream:xi&&(e=>e.body)};vr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Zn[t]&&(Zn[t]=O.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,r)})})})(new Response);const u_=e=>L(void 0,null,function*(){if(e==null)return 0;if(O.isBlob(e))return e.size;if(O.isSpecCompliantForm(e))return(yield new Request(ot.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(O.isArrayBufferView(e)||O.isArrayBuffer(e))return e.byteLength;if(O.isURLSearchParams(e)&&(e=e+""),O.isString(e))return(yield o_(e)).byteLength}),c_=(e,t)=>L(void 0,null,function*(){const n=O.toFiniteNumber(e.getContentLength());return n!=null?n:u_(t)}),l_=vr&&(e=>L(void 0,null,function*(){let{url:t,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:h}=Ac(e);u=u?(u+"").toLowerCase():"text";let d=n_([i,s&&s.toAbortSignal()],o),p;const m=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let b;try{if(c&&a_&&n!=="get"&&n!=="head"&&(b=yield c_(l,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),y;if(O.isFormData(r)&&(y=S.headers.get("content-type"))&&l.setContentType(y),S.body){const[x,$]=Vo(b,Gn(Ho(c)));r=zo(S.body,qo,x,$)}}O.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;p=new Request(t,st(z({},h),{signal:d,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:E?f:void 0}));let g=yield fetch(p);const v=xi&&(u==="stream"||u==="response");if(xi&&(a||v&&m)){const S={};["status","statusText","headers"].forEach(V=>{S[V]=g[V]});const y=O.toFiniteNumber(g.headers.get("content-length")),[x,$]=a&&Vo(y,Gn(Ho(a),!0))||[];g=new Response(zo(g.body,qo,x,()=>{$&&$(),m&&m()}),S)}u=u||"text";let _=yield Zn[O.findKey(Zn,u)||"text"](g,e);return!v&&m&&m(),yield new Promise((S,y)=>{Oc(S,y,{data:_,headers:vt.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:p})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:E.cause||E}):J.from(E,E&&E.code,e,p)}})),Ti={http:Tb,xhr:e_,fetch:l_};O.forEach(Ti,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Ko=e=>`- ${e}`,f_=e=>O.isFunction(e)||e===null||e===!1,Dc={getAdapter:e=>{e=O.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s<t;s++){n=e[s];let o;if(r=n,!f_(n)&&(r=Ti[(o=String(n)).toLowerCase()],r===void 0))throw new J(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+s]=r}if(!r){const s=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
69
+ `+s.map(Ko).join(`
70
+ `):" "+Ko(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Ti};function zr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ie(null,e)}function Jo(e){return zr(e),e.headers=vt.from(e.headers),e.data=Ur.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dc.getAdapter(e.adapter||mn.adapter)(e).then(function(t){return zr(e),t.data=Ur.call(e,e.transformResponse,t),t.headers=vt.from(t.headers),t},function(t){return Tc(t)||(zr(e),t&&t.response&&(t.response.data=Ur.call(e,e.transformResponse,t.response),t.response.headers=vt.from(t.response.headers))),Promise.reject(t)})}const Cc="1.7.9",br={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{br[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Wo={};br.transitional=function(e,t,n){function r(i,s){return"[Axios v"+Cc+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,o)=>{if(e===!1)throw new J(r(s," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!Wo[s]&&(Wo[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};br.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function h_(e,t,n){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new J("option "+s+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const Ln={assertOptions:h_,validators:br},Rt=Ln.validators;class ie{constructor(t){this.defaults=t,this.interceptors={request:new Fo,response:new Fo}}request(t,n){return L(this,null,function*(){try{return yield this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
71
+ `+s):r.stack=s}catch(o){}}throw r}})}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=le(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Ln.assertOptions(r,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),i!=null&&(O.isFunction(i)?n.paramsSerializer={serialize:i}:Ln.assertOptions(i,{encode:Rt.function,serialize:Rt.function},!0)),Ln.assertOptions(n,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&O.merge(s.common,s[n.method]);s&&O.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=vt.concat(o,s);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let l,f=0,h;if(!c){const p=[Jo.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),h=p.length,l=Promise.resolve(n);f<h;)l=l.then(p[f++],p[f++]);return l}h=a.length;let d=n;for(f=0;f<h;){const p=a[f++],m=a[f++];try{d=p(d)}catch(b){m.call(this,b);break}}try{l=Jo.call(this,d)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)l=l.then(u[f++],u[f++]);return l}getUri(t){t=le(this.defaults,t);const n=$c(t.baseURL,t.url);return Ec(n,t.params,t.paramsSerializer)}}O.forEach(["delete","get","head","options"],function(e){ie.prototype[e]=function(t,n){return this.request(le(n||{},{method:e,url:t,data:(n||{}).data}))}});O.forEach(["post","put","patch"],function(e){function t(n){return function(r,i,s){return this.request(le(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}ie.prototype[e]=t(),ie.prototype[e+"Form"]=t(!0)});class as{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(i,s,o){r.reason||(r.reason=new Ie(i,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new as(function(n){t=n}),cancel:t}}}function d_(e){return function(t){return e.apply(null,t)}}function p_(e){return O.isObject(e)&&e.isAxiosError===!0}const Oi={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(Oi).forEach(([e,t])=>{Oi[t]=e});function Pc(e){const t=new ie(e),n=lc(ie.prototype.request,t);return O.extend(n,ie.prototype,t,{allOwnKeys:!0}),O.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Pc(le(e,r))},n}const et=Pc(mn);et.Axios=ie;et.CanceledError=Ie;et.CancelToken=as;et.isCancel=Tc;et.VERSION=Cc;et.toFormData=yr;et.AxiosError=J;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=d_;et.isAxiosError=p_;et.mergeConfig=le;et.AxiosHeaders=vt;et.formToJSON=e=>xc(O.isHTMLForm(e)?new FormData(e):e);et.getAdapter=Dc.getAdapter;et.HttpStatusCode=Oi;et.default=et;const m_={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},g_=["put","post","patch"],$i="Local-Request-Id",y_=100,v_=300;let kc=class{constructor(e={}){xt(this,"axios"),xt(this,"settings"),xt(this,"records",{}),xt(this,"isLoading",!1),xt(this,"stopSkipWarn"),xt(this,"showLoading"),xt(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=Pn(e,["settings","query"]);this.axios=et.create(Dt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=zi(this.openLoading.bind(this),y_),this.showError=cu(this._showError.bind(this),v_,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=Dt(this.settings,e.settings||{});const t=Pn(e,["settings","query"]);this.axios.defaults=Dt(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(t)}else for(const n of Object.values(this.records))n.source.cancel(t)}createHeaders(e,t,n){const r=t.injectHeaders?typeof t.headers=="function"?t.headers(e,n,t):t.headers||{}:{},i=z(z({"Content-Type":m_[t.type||"form"]},n.headers),r);return t.skipWarn&&(i[$i]=e),i}isJsonType(e){return Object.entries(e).some(([t,n])=>t.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([r,i])=>{n.append(r,i)}),n}createSendData(e,t,n,r,i={}){const{type:s,skipWarn:o}=e,{name:a="skipWarn"}=o||{};let{data:c,params:u={},method:l="get"}=t;const f=r?{[a]:!0}:{};return g_.includes(l.toLowerCase())?(c=Object.assign(c||{},f),c=s!=="json"||!this.isJsonType(n)?this.toFormData(c,s):c,u=z({},i)):s==="form"?u=z(z(z({},c||{}),i),f):(c&&(s!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,s)),u=z(z({},i),f)),{data:c,params:u}}createUrl(e){let{url:t,params:n}=e;if(t)try{return Hu(t,{encode:encodeURIComponent})(n||{})}catch(r){console.warn("createUrl","pathToRegexpCompile error",t)}return t}openLoading(e){const{loading:t,showLoading:n}=e;t&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{loading:t,hideLoading:n}=e;if(!t)return;this.isLoading=!1;const r=Object.keys(this.records);n&&r.length===0&&(this.isLoading=!1,n())}_showError(e,t){var i;const{failMessage:n,showError:r}=e;if(n&&r){const s=(i=t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";r(o,t)}}validResponse(e,t){const{validSuccess:n,validate:r}=e;return n&&r?!!r(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const n=Dt({},this.settings,e.settings||{}),r=e.query||{},i=Pn(e,["settings","query"]),s=ku(!1),o=et.CancelToken.source();this.records[s]={settings:n,config:i,source:o};const a=this.createUrl(i),c=this.createHeaders(s,n,i),{data:u,params:l}=this.createSendData(n,i,c,t,r);return this.showLoading(n),new Promise((f,h)=>{this.axios(st(z({cancelToken:o.token},i),{url:a,headers:c,data:u,params:l})).then(d=>{var p;return this.isSkipWarnResponse(d)?f(d.promise):this.validResponse(n,d)?f(n.originResponse?d:(p=d.data)==null?void 0:p.data):(this.showError(n,d.data),h(d.data))}).catch(d=>(this.showError(n,d),h(d))).finally(()=>{delete this.records[s],this.closeLoading(n)})})}useResponse(e,t){const{response:n}=this.axios.interceptors,r=n.use(e,t);return()=>n.eject(r)}useRequest(e,t){const{request:n}=this.axios.interceptors,r=n.use(e,t);return()=>n.eject(r)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:n,callback:r,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const o=(s.config.headers||{})[$i],a=this.records[o];if(!a)return s;const{data:c}=s;if(!c||typeof c!="object")return s;if((c==null?void 0:c.code)===t){r&&r(s);const u=new Promise(n).then(()=>this.send(st(z({},a.config),{settings:a.settings}),!0));u.catch(l=>l).finally(()=>{i&&i()}),s.promise=u}return s})}};function _r(e={}){const t=new kc(e),n=t.send.bind(t),r=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(n,st(z({},t),{instance:t,send:n,cancel:r,setConfig:i,useRequest:s,useResponse:o}))}const an=_r({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function Nc(e){const t=typeof e=="string"?{url:e}:e;return(n,r)=>an.send(Dt({},t,r||{},{data:n}))}function b_(e){const t={};for(const[n,r]of Object.entries(e))t[n]=Nc(r);return t}function __(e,t){const n=Lr(null),r=Lr(),i=Lr(!0);return e.then(s=>{n.value=t?t(s):s}).catch(s=>{r.value=s}).finally(()=>{i.value=!1}),{data:n,error:r,loading:i}}const Ce=typeof window<"u",w_=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)},r.onerror=i=>{n(i)}});function Bc(e){const t={};return e?(e.forEach((n,r)=>{t[r]=typeof n=="string"?decodeURIComponent(n):n}),t):{}}function E_(e){var o;const t=e.split(","),n=(o=t[0].match(/:(.*?);/))==null?void 0:o[1],r=atob(t[1]);let i=r.length;const s=new Uint8Array(i);for(;i--;)s[i]=r.charCodeAt(i);return new Blob([s],{type:n})}function S_(e,t){const n=e;return n.lastModified=Date.now(),n.lastModifiedDate=new Date,n.name=t,n}const x_=e=>Ce?window.requestAnimationFrame(e):setTimeout(e,16),T_=e=>Ce?window.cancelAnimationFrame(e):clearTimeout(e);class us{constructor(t={}){xt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),xt(this,"caches",{}),xt(this,"types"),this.types={local:Ce?window.localStorage:this.caches,session:Ce?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,n,r={}){const{type:i,expired:s,prefix:o}=z(z({},this.options),r),a=Date.now(),c=o+t,u=this.types[i]||this.caches,l={value:n,timestamp:a,expired:s};u===this.caches?u[c]=l:u.setItem(c,JSON.stringify(l))}get(t,n={}){const{type:r,prefix:i}=z(z({},this.options),n),s=i+t,o=this.types[r]||this.caches;let a;if(o===this.caches)a=o[s];else{const f=o.getItem(s);f&&(a=JSON.parse(f))}if(!a)return null;const{value:c,timestamp:u,expired:l}=a;return l>0&&u+l<Date.now()?(this.remove(t,n),null):c}remove(t,n={}){const{type:r,prefix:i}=z(z({},this.options),n),s=this.types[r]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:n}=z(z({},this.options),t),r=this.types[n]||this.caches;r===this.caches?this.caches={}:r.clear()}}const Vn=new us;function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hn={exports:{}},O_=Hn.exports,Yo;function $_(){return Yo||(Yo=1,function(e,t){(function(n,r){r(t,e)})(O_,function(n,r){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(u){try{delete window[u]}catch(l){window[u]=void 0}}function a(u){var l=document.getElementById(u);l&&document.getElementsByTagName("head")[0].removeChild(l)}function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=u,h=l.timeout||i.timeout,d=l.jsonpCallback||i.jsonpCallback,p=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||s(),g=d+"_"+E;window[E]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),p&&clearTimeout(p),a(g),o(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+d+"="+E),l.charset&&v.setAttribute("charset",l.charset),l.nonce&&v.setAttribute("nonce",l.nonce),l.referrerPolicy&&v.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&v.setAttribute("crossorigin","true"),v.id=g,document.getElementsByTagName("head")[0].appendChild(v),p=setTimeout(function(){b(new Error("JSONP request to "+u+" timed out")),o(E),a(g),window[E]=function(){o(E)}},h),v.onerror=function(){b(new Error("JSONP request to "+u+" failed")),o(E),a(g),p&&clearTimeout(p)}})}r.exports=c})}(Hn,Hn.exports)),Hn.exports}var A_=$_();const j_=Ic(A_);function R_(e){if(Ce){const{protocol:t,host:n,pathname:r}=location;return`${t}//${n}${e?r:""}`}else return null}function D_(e=""){const t=e.match(Ki);return t?t[0]:""}function Mc(e){const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push([n,encodeURIComponent(e[n])].join("="));return t.join("&")}function Ai(e,t,n){const r={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",n=n||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+n+"\\"+t+"]+)(?:\\"+n+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(r[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return r}function Fc(e,t){t=typeof t=="string"?Ai(t):t;const n=e.split("?")[0],r=Ai(e),i=Object.assign({},r,t),s=Mc(i);return s?[n,s].join("?"):e}const se=Object.freeze(Object.defineProperty({__proto__:null,append:Fc,getCurrentHost:R_,getHost:D_,parse:Ai,stringify:Mc},Symbol.toStringTag,{value:"Module"}));function cs(n){return L(this,arguments,function*(e,t={}){const{query:r={}}=t;e.includes("${")&&(e=uu(e)(r||{}));const i=Fc(e,r);return yield(yield j_(i,t)).json()})}var qr,Go;function C_(){if(Go)return qr;Go=1,qr=function(r,i,s){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=r,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var c="onload"in a?t:n;c(a,s),a.onload||t(a,s),o.appendChild(a)};function e(r,i){for(var s in i)r.setAttribute(s,i[s])}function t(r,i){r.onload=function(){this.onerror=this.onload=null,i(null,r)},r.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),r)}}function n(r,i){r.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,r))}}return qr}var P_=C_();const k_=Ic(P_);function ji(e,t={}){return new Promise((n,r)=>{const{library:i}=t;k_(e,t,(s,o)=>{s?r(s):n(i?window[i]:void 0)})})}const Zo={debug:-1,log:0,info:0,warn:1,error:2},N_=function(e,t,n,r){return function(...i){if(t&&Zo[t]<=Zo[e]&&console[e].apply&&(r==="*"||n.startsWith(r)))return console[e].apply(console,B_(i,n))}};function B_(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 n=e.split(":");return{targetLevel:n[0],targetBizName:n[1]}}return{targetLevel:e,targetBizName:"*"}}const M_={level:"warn",bizName:"*"};class Lc{constructor(t){xt(this,"config"),xt(this,"options"),this.options=z(z({},M_),t);const n=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(n.href)||[])[1];this.config=I_(r,t)}_log(t){const{targetLevel:n,targetBizName:r}=this.config,{bizName:i}=this.options;return N_(t,n,i,r)}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 Vc(e){return new Lc(e)}const oe=Vc({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var F_={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 Ri(e,t){function n(i,s,o){if(!(typeof document>"u")){o=jn({},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 c in o)o[c]&&(a+="; "+c,o[c]!==!0&&(a+="="+o[c].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var c=s[a].split("="),u=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(o[l]=e.read(u,l),i===l)break}catch(f){}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",jn({},s,{expires:-1}))},withAttributes:function(i){return Ri(this.converter,jn({},this.attributes,i))},withConverter:function(i){return Ri(jn({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ls=Ri(F_,{path:"/"});function L_(e,t,n){ls.set(e,t,n)}function V_(e){return ls.get(e)}function H_(e,t){ls.remove(e,t)}const Un=Object.freeze(Object.defineProperty({__proto__:null,get:V_,remove:H_,set:L_},Symbol.toStringTag,{value:"Module"}));function U_(e,t=""){const n=document.createElement("a");n.download=t,n.href=e,n.target="_blank",n.click()}function fs(e,t="",n){const r=new Blob([e],{type:n}),i=document.createElement("a");i.download=t,i.style.display="none",i.href=URL.createObjectURL(r),i.click(),URL.revokeObjectURL(i.href)}function z_(e,t="",n){return L(this,null,function*(){return fetch(e,{credentials:"include"}).then(r=>L(this,null,function*(){const i=yield r.blob();return fs(i,t,n),i}))})}function q_(e,t=""){const n=JSON.stringify(e);fs(n,t,"application/json")}const b2=Object.freeze(Object.defineProperty({__proto__:null,AES:_v,LOCAL_REQUEST_ID:$i,Logger:Lc,MD5:gv,RSA:bv,Request:kc,Storage:us,VTJ_UTILS_VERSION:l0,arrayToKv:Bv,arrayToMap:Nu,arrayToTree:Hv,avg:Fv,axios:et,base64:yv,blobToFile:S_,cAF:T_,camelCase:Nt,cloneDeep:rn,compress:Gv,cookie:Un,createApi:Nc,createApis:b_,createRequest:_r,dataURLtoBlob:E_,dateFormat:Rv,dayjs:Ji,debounce:zi,decompress:Zv,dedupArray:Bu,delay:xe,downloadBlob:fs,downloadJson:q_,downloadRemoteFile:z_,downloadUrl:U_,fileToBase64:w_,flatChildren:Fu,formDataToJson:Bc,get:ba,getLogger:Vc,groupBy:iu,isArray:dt,isArrayBuffer:Xy,isBoolean:e1,isBuffer:je,isCarNo:Tv,isClient:Ce,isDate:s1,isDef:Pv,isEmail:Ev,isEqual:o1,isFunction:ue,isIdCardNo:Sv,isMobilePhone:xv,isNaN:u1,isNull:c1,isNumber:su,isObject:ut,isPlainObject:Vi,isString:bt,isSymbol:cn,isUndefined:l1,isUrl:$u,jsonp:cs,kebabCase:h1,kvToArray:Iv,loadScript:ji,logger:oe,lowerFirst:p1,mapToObject:fr,merge:Dt,mitt:Vu,noop:Pf,now:kv,numberFormat:$v,numeral:ju,omit:Pn,pathToRegexp:hr,pathToRegexpCompile:Hu,pathToRegexpMatch:Uu,pathToRegexpParse:Wi,pick:Iu,rAF:x_,rCar:Ou,rEmail:Su,rID:xu,rMobile:Tu,rURL:Ki,random:Nv,request:an,set:y1,snakeCase:b1,splitParser:Lv,splitStringify:Vv,storage:Vn,sum:Mu,template:uu,throttle:cu,timestamp:Pu,toArray:li,toFixed:Av,toRawType:Cv,toTypeString:Cu,trim:fi,uid:gt,unAES:wv,unBase64:vv,unRSA:ci,upperFirst:ur,upperFirstCamelCase:oi,url:se,useApi:__,uuid:ku,zipObject:Mv},Symbol.toStringTag,{value:"Module"}));/**!
72
72
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
73
73
  * @name @vtj/renderer
74
74
  * @author CHC chenhuachun1549@dingtalk.com
75
- * @version 0.9.19
75
+ * @version 0.9.21
76
76
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
77
- */const $e="0.9.19";var ht=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ht||{});const Di=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],W_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],Uc=["vIf","vShow","vModel","vFor","vBind","vHtml"],zc={String,Number,Boolean,Array,Object,Function,Date},Ae="VtjPage",Ze="VtjHomepage",qc="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(","),Kc="component,slot".split(",");function We(e,t){return e.map(n=>ju(n)||n.startsWith("/")?n:`${t}${n}`)}function wr(e){return/\.css$/.test(e)}function Er(e){return/\.js$/.test(e)}function Jc(e){return/\.json$/.test(e)}function Y_(e){return e.map(t=>`<script src="${se.append(t,{v:$e})}"><\/script>`).join("")}function G_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${se.append(t,{v:$e})}" />`).join("")}function Wc(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Yc(e,t,n=!1){const r=e.filter(h=>!!h.enabled),i=[],s=[],o=[],a=[],c={},u={},l=[],f={};return r.forEach(({urls:h,assetsUrl:d,library:p,assetsLibrary:m,localeLibrary:b})=>{h==null||h.forEach(E=>{Er(E)&&i.push(Wc(E,n)),wr(E)&&s.push(E)}),p&&(a.push(p),c[p]=We(h||[],t),b&&(u[p]=b)),d&&o.push(d),m&&l.push(m),p&&m&&(f[m]=p)}),{scripts:We(i,t),css:We(s,t),materials:We(o,t),libraryExports:a,materialExports:Iu(l),materialMapLibrary:f,libraryMap:c,libraryLocaleMap:u}}function Gc(e,t){var s;const{name:n,parent:r,alias:i}=e;return r?(s=t[r])==null?void 0:s[i||n]:t[i||n]}function hs(e){return bt(e)?e:JSON.stringify(e)}function ds(e,t,n){const r=e.CSSStyleSheet;if(r.prototype.replaceSync){const i=new r;i.id=t,i.replaceSync(n);const s=e.document,o=s.adoptedStyleSheets,a=Array.from(o).filter(c=>c.id!==t);s.adoptedStyleSheets=[...a,i]}else{const i=e.document;let s=i.getElementById(t);s?s.innerHTML=n:(s=i.createElement("style"),s.id=t,s.innerHTML=n,i.head.appendChild(s))}}function Zc(e,t){return L(this,null,function*(){const n=yield window.fetch(t).then(r=>r.text()).catch(()=>"");n&&ds(window,e,n)})}function Qc(e,t=window){const n=t.document,r=t.document.head;for(const i of e)if(!n.getElementById(i)){const s=n.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,r.appendChild(s)}}function Xc(r,i){return L(this,arguments,function*(e,t,n=window){const s=n.document,o=n.document.head;let a=n[t];return a?a.default||a:new Promise((c,u)=>{for(const l of e){const f=s.createElement("script");f.src=l,f.onload=()=>{a=n[t],a?c(a.default||a):u(null)},f.onerror=h=>{u(h)},o.appendChild(f)}})})}function tl(e){return ue(e)||ue(e==null?void 0:e.install)}function el(e){return Kc.includes(e)}function nl(e){return qc.includes(e)}function Pe(e,t,n=!1,r=!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,(c,u)=>`__self${u}`),o=s.join(`
78
- `)+o;const a=`with(${n?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(oe.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),r)throw s}}function Qn(e,t,n=!1,r=!1){var s;const i=Pe(e,t,n,r);if(typeof i!="function"&&(oe.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),r))throw new Error(`"${e.value}" not a function`);return i}function wt(e){return e&&e.type==="JSExpression"}function Me(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function rl(e){return wt(e)||Me(e)}function Z_(e){return rl(e)?e.value:JSON.stringify(e)}const Q_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},ps=Symbol("access");class il{constructor(t){A(this,"options");A(this,"data",null);A(this,"mode",ht.Raw);this.options=Object.assign({},Q_,t),this.loadData()}connect(t){const{mode:n,router:r,request:i}=t;this.mode=n,r&&this.mode===ht.Raw&&this.setGuard(r),i&&this.setRequest(i)}login(t){const{storageKey:n,storagePrefix:r,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Vn.save(n,t,{type:"local",prefix:r}),i&&Un.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:n,session:r,authKey:i}=this.options;this.data=null,Vn.remove(t,{type:"local",prefix:n}),r&&Un.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:n}=this.options,{permissions:r={}}=this.data||{};return typeof t=="function"?t(r):li(t).every(i=>r[i]||r[n+"."+i])}some(t){const{appName:n}=this.options,{permissions:r={}}=this.data||{};return li(t).some(i=>r[i]||r[n+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this),t.provide(ps,this)}isAuthPath(t){const{auth:n,isAuth:r}=this.options;if(r)return r(t);if(t.path&&typeof n=="string"){const i=n.split("#")[1]||n;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:n}=this.options;if(!t)return;const r=n?`?${n}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(r):location.href=n?`${t}${r}`:t}setData(t){const{privateKey:n}=this.options;if(Array.isArray(t)&&n){const r=t.map(i=>ci(i,n));this.data=JSON.parse(r.join(""));return}if(typeof t=="string")try{const r=n?ci(t,n):t;r?this.data=JSON.parse(r):console.warn("RSA解密失败或登录信息缺失")}catch(r){console.warn(r)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:n}=this.options,r=Vn.get(t,{type:"local",prefix:n});this.setData(r||null)}isLogined(){const{session:t,authKey:n}=this.options;return t&&n?!!Un.get(n):!!this.getToken()}hasRoutePermission(t){if(t.name===Ae){const n=t.params.id;return n&&this.can(n)}return!0}setGuard(t){t.beforeEach((n,r,i)=>this.guard(n,i))}guard(t,n){return L(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return n();if(this.isLogined()){if(this.hasRoutePermission(t))return n();{const{noPermissionMessage:r="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(r),ue(i)?(i(),n(!1)):bt(i)?n(i):n(!1)}}n(!1),this.toLogin()})}isWhiteList(t){const{whiteList:n}=this.options;return n?Array.isArray(n)?n.some(r=>t.fullPath.startsWith(r)):n(t):!1}isUnauthorized(t){const{unauthorizedCode:n=401}=this.options;return t.status===n||t.data.code===n}showUnauthorizedAlert(t){return L(this,null,function*(){const{unauthorizedMessage:n="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(n),this.toLogin())})}showTip(t){return L(this,null,function*(){const{alert:n}=this.options;return n?(yield xe(150),yield n(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(n=>{var r,i;return(r=this.data)!=null&&r.token&&(n.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),n}),t.useResponse(n=>L(this,null,function*(){return yield this.showUnauthorizedAlert(n),n}),n=>L(this,null,function*(){const r=n.response||n||{};return yield this.showUnauthorizedAlert(r),Promise.reject(n)}))}}function sl(){return ea(ps,null)}function X_(e={}){const{notify:t,loading:n,settings:r={}}=e;let i=null;return{request:_r({settings:z({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:s=>{var o,a;return((o=s.data)==null?void 0:o.code)===0||!!((a=s.data)!=null&&a.success)},failMessage:!0,showError:s=>{t&&t(s||"未知错误")},showLoading:()=>{i&&i.close(),n&&(i=n())},hideLoading:()=>{i&&(i.close(),i=null)}},r)}),jsonp:cs,notify:t,loading:n}}function ol(e,t){const{jsonp:n,request:r}=t;if(e.method==="jsonp")return(i={})=>n(e.url,st(z({},e.jsonpOptions),{query:i}));{const i=e.headers?Pe(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:st(z({},e.settings),{headers:i})};return(o,a)=>(delete s.data,r.send(Dt(s,a||{},{data:o})))}}function al(e,t){const{metaQuery:n}=t;if(!n)return;const{code:r,queryCode:i}=e;return(s,o)=>{if(!n){console.warn("adapter.metaQuery is not defined!");return}return n(r,i,s,o)}}function ul(e=[],t=[],n){const r={};for(const i of e)r[i.id]=ol(i,n);for(const i of t)r[i.id]=al(i,n);return r}function cl(){return L(this,arguments,function*(e=[]){ae&&(ms(),e.forEach(t=>fl(ae,t)))})}function ll(e){const t=Me(e.mockTemplate)&&e.mockTemplate.value?Qn(e.mockTemplate,{},!0):void 0;return(...n)=>L(this,null,function*(){let r={};if(t)try{r=yield t.apply(t,n)}catch(i){oe.warn("模拟数据模版异常",i)}return ae.mock(r)})}function fl(e,t){if(!t.mock)return;const{url:n,mockTemplate:r}=t;if(n&&r){const i=hr(`${n}(.*)`),s=zu(n,{decode:decodeURIComponent}),o=Pe(r,{},!0);e.mock(i,a=>{var f;const c=se.parse(a.url)||{},u=a.body instanceof FormData?Ic(a.body):a.body,l=(f=s(a.url))==null?void 0:f.params;return Object.assign(a,{data:u,params:c,query:l}),e.mock(o(a))})}}function ms(){ae&&(ae._mocked={})}class hl{constructor(t){A(this,"__id",null);A(this,"__mode");A(this,"__instance",null);A(this,"__contextRefs",{});A(this,"__refs",{});A(this,"context",{});A(this,"state",{});A(this,"props",{});A(this,"$props",{});A(this,"$refs",{});A(this,"$el",null);A(this,"$emit",null);A(this,"$nextTick",null);A(this,"$parent",null);A(this,"$root",null);A(this,"$attrs",null);A(this,"$slots",null);A(this,"$watch",null);A(this,"$options",null);A(this,"$forceUpdate",null);A(this,"$components",{});A(this,"$libs",{});A(this,"$apis",{});A(this,"__transform",{});const{mode:n,dsl:r,attrs:i}=t;this.__mode=n,r&&(this.__id=r.id||null,this.__transform=r.transform||{}),i&&Object.assign(this,i)}setup(t,n=er){const r=n.getCurrentInstance();if(!r)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=r.proxy;const i=r.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),n.onMounted(()=>{this.__proxy()}),n.onUnmounted(()=>{this.__cleanup()}),n.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&Di.forEach(t=>{var n;this[t]=(n=this.__instance)==null?void 0:n[t]})}__cleanup(){Di.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var n;if(t)if(this.__mode===ht.Runtime){const{id:r,type:i}=t,s=r&&(n=this.__transform[r])!=null?n:t.value;return Qn({type:i,value:s},this)}else return Qn(t,this)}__parseExpression(t){var n;if(t)if(this.__mode===ht.Runtime){const{id:r,type:i}=t,s=r&&(n=this.__transform[r])!=null?n:t.value;return Pe({type:i,value:s},this)}else return Pe(t,this)}__ref(t=null,n){if(this.__mode!==ht.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),r=>L(this,null,function*(){var s,o;yield xe(0);let i=(r==null?void 0:r.$vtjEl)||(r==null?void 0:r.$el)||((o=(s=r==null?void 0:r._)==null?void 0:s.vnode)==null?void 0:o.el)||r;if(!i){typeof n=="string"&&(delete this.$refs[n],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,ht.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,r)),typeof n=="function"?n(r):n&&(this.$refs[n]=this.__getRefEl(this.$refs,n,r)),r})}__getRefEl(t,n,r){const i=t[n];if(i&&r!==i){const s=new Set([].concat(i,r));return Array.from(s)}else return r}__clone(t={}){const n=z(z({},this.context),t),r=st(z({},n),{context:n});return r.context.__proto__=this.context,r.__proto__=this,r}}function Xn(e){var f,h;const{Vue:t=er,mode:n=ht.Runtime,components:r={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),c={$components:r,$libs:i,$apis:s},u=new hl({mode:n,dsl:a.value,attrs:c}),l=t.defineComponent(z({name:a.value.name,props:z({},ew((f=a.value.props)!=null?f:[],u)),setup(d){var v,_,S,y;u.$props=d,u.props=d,a.value.id&&ds(e.window||window,a.value.id,a.value.css||""),u.state=nw(t,(v=a.value.state)!=null?v:{},u);const p=rw(t,(_=a.value.computed)!=null?_:{},u),m=iw((S=a.value.methods)!=null?S:{},u),b=sw(t,a.value.inject,u),E=dl(a.value.dataSources||{},u),g=z(z(z(z({},b),p),m),E);return u.setup(g,t),ow(t,(y=a.value.watch)!=null?y:[],u),{vtj:u}},emits:tw(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const d=a.value.nodes||[];return d.length===1?un(d[0],u,t,o):d.map(p=>un(p,u,t,o))}},aw((h=a.value.lifeCycles)!=null?h:{},u)));return{renderer:t.markRaw(l),context:u}}function tw(e=[]){return e.map(t=>bt(t)?t:t.name)}function ew(e=[],t){const n=r=>r?(Array.isArray(r)?r:[r]).map(i=>zc[i]):void 0;return e.map(r=>bt(r)?{name:r}:{name:r.name,type:r.type,required:r.required,default:wt(r.default)?t.__parseExpression(r.default):r.default}).reduce((r,i)=>(r[i.name]={type:n(i.type),required:i.required,default:i.default},r),{})}function nw(e,t,n){return e.reactive(Object.keys(t||{}).reduce((r,i)=>{let s=t[i];return wt(s)?s=n.__parseExpression(s):Me(s)&&(s=n.__parseFunction(s)),r[i]=s,r},{}))}function rw(e,t,n){return Object.entries(t!=null?t:{}).reduce((r,[i,s])=>(r[i]=e.computed(n.__parseFunction(s)),r),{})}function iw(e,t){return Object.entries(e!=null?e:{}).reduce((n,[r,i])=>(n[r]=t.__parseFunction(i),n),{})}function sw(e,t=[],n){return t.reduce((r,i)=>{var u;const{name:s,from:o}=i||{};i.default;const a=wt(o)?n.__parseExpression(o)||s:o!=null?o:s,c=wt(i.default)?n.__parseExpression(i.default):(u=i.default)!=null?u:null;return r[s]=e.inject(a,c),r},{})}function dl(e,t){return Object.keys(e).reduce((n,r)=>{const i=e[r];if(i.type==="mock")n[r]=ll(i);else if(i.ref){const s=t.$apis[i.ref],o=Me(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;n[r]=(...a)=>L(this,null,function*(){const c=yield s.apply(t,a);return o?o(c):c})}return n},{})}function ow(e,t=[],n){t.forEach(r=>{e.watch(n.__parseExpression(r.source),n.__parseFunction(r.handler),{deep:r.deep,immediate:r.immediate})})}function aw(e,t){return Object.entries(e!=null?e:{}).reduce((n,[r,i])=>(n[r]=t.__parseFunction(i),n),{})}let Kr=[];const pl=e=>e;function gs(n){return L(this,arguments,function*(e,t=window){const{urls:r=[],library:i}=e,s=r.filter(a=>Er(a));if(s.length===0||!i)return null;const o=r.filter(a=>wr(a));return o.length&&Qc(o,t),yield Xc(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function tr(e){const{getDsl:t,getDslByUrl:n,options:r}=e;return r.window&&(Kr.forEach(i=>{delete r.window[i]}),Kr=[]),(i,s,o=er)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?Xn(st(z({},r),{Vue:o,dsl:a,mode:ht.Runtime,loader:tr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield n(s.url);return a&&(a.name=i),a?Xn(st(z({},r),{Vue:o,dsl:a,mode:ht.Runtime,loader:tr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Kr.push(s.library),o.defineAsyncComponent(()=>L(this,null,function*(){return(yield gs(s,r.window))||(console.warn("getPlugin result is null",s),null)}))):i}function un(e,t,n=er,r=pl){var m;if(!e||!e.name||e.invisible)return null;const i=(m=n.getCurrentInstance())==null?void 0:m.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:c,vShow:u,vModels:l,vBind:f,vHtml:h,others:d}=cw(o);if(a&&!lw(a,t))return null;const p=b=>{var $,V,w,T;const E=b.$components,g=(()=>{var C,I,D,k;if(e.name==="component")return fw(b,(C=e.props)==null?void 0:C.is);if(e.name==="slot")return e.name;const M=r(e.name,e.from,n);return bt(M)?el(M)||nl(M)?M:(k=(D=E[M])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(M))!=null?k:M:M})(),v=hw(s,($=e.props)!=null?$:{},b),_=dw(n,(V=e.events)!=null?V:{},b);if(e.name==="slot")return pw(n,e,v,b,r);f&&Object.assign(v,b.__parseExpression(f.value)),u&&(v.style=Object.assign((w=v.style)!=null?w:{},gw(u,b))),h&&Object.assign(v,yw(h,b)),l.forEach(M=>{Object.assign(v,vw(n,M,b))});const S=bw(n,(T=e.children)!=null?T:[],b,r,e);let y=n.createVNode(g,z(z({},v),_),S);const x=i?uw(i,d,b):[];return x.length&&(y=n.withDirectives(y,x)),y};return c?Ew(c,p,t):p(t)}function uw(e,t,n){const r=e.app;return t.map(i=>{const s=typeof i.name=="string"?r.directive(i.name):n.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(n.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function cw(e=[]){const t=e.find(c=>Nt(c.name)==="vIf"),n=e.find(c=>Nt(c.name)==="vFor"),r=e.find(c=>Nt(c.name)==="vShow"),i=e.find(c=>Nt(c.name)==="vBind"),s=e.find(c=>Nt(c.name)==="vHtml"),o=e.filter(c=>Nt(c.name)==="vModel"),a=e.filter(c=>!Uc.includes(Nt(c.name)));return{vIf:t,vFor:n,vShow:r,vModels:o,vBind:i,others:a,vHtml:s}}function lw(e,t){return!!t.__parseExpression(e.value)}function fw(e,t){return t?wt(t)?e.__parseExpression(t):t:"div"}function hw(e,t,n){const r=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return wt(o)?o=n.__parseExpression(o):Me(o)&&(o=n.__parseFunction(o)),i[s]=o,i},{});return r.ref=n.__ref(e,r.ref),r}function dw(e,t,n){const r=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const a=t[o],c=ys(a.modifiers),u=c.find(h=>r.includes(h)),l="on"+ur(o)+(u&&i[u]||""),f=n.__parseFunction(a.handler);return f&&(s[l]=e.withModifiers(f,c)),s},{})}function ys(e={},t=!1){const n=Object.keys(e);return t?n.map(r=>"."+r):n}function pw(e,t,n,r,i){var c;const{children:s}=t,o=mw(t,r),a=(c=r.$slots)==null?void 0:c[o.name];return a?a(n):s?bt(s)?e.createTextVNode(s):wt(s)?e.createTextVNode(hs(r.__parseExpression(s))):Array.isArray(s)?s.map(u=>un(u,r,e,i)):null:null}function mw(e,t){const{props:n}=e,r=(n==null?void 0:n.name)||"default";return{name:wt(r)?t.__parseExpression(r):r,params:[]}}function gw(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function yw(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function vw(e,t,n){var a;const r={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
77
+ */const $e="0.9.21";var ht=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ht||{});const Di=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],K_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],Hc=["vIf","vShow","vModel","vFor","vBind","vHtml"],Uc={String,Number,Boolean,Array,Object,Function,Date},Ae="VtjPage",Ze="VtjHomepage",zc="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(","),qc="component,slot".split(",");function We(e,t){return e.map(n=>$u(n)||n.startsWith("/")?n:`${t}${n}`)}function wr(e){return/\.css$/.test(e)}function Er(e){return/\.js$/.test(e)}function Kc(e){return/\.json$/.test(e)}function J_(e){return e.map(t=>`<script src="${se.append(t,{v:$e})}"><\/script>`).join("")}function W_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${se.append(t,{v:$e})}" />`).join("")}function Jc(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Wc(e,t,n=!1){const r=e.filter(h=>!!h.enabled),i=[],s=[],o=[],a=[],c={},u={},l=[],f={};return r.forEach(({urls:h,assetsUrl:d,library:p,assetsLibrary:m,localeLibrary:b})=>{h==null||h.forEach(E=>{Er(E)&&i.push(Jc(E,n)),wr(E)&&s.push(E)}),p&&(a.push(p),c[p]=We(h||[],t),b&&(u[p]=b)),d&&o.push(d),m&&l.push(m),p&&m&&(f[m]=p)}),{scripts:We(i,t),css:We(s,t),materials:We(o,t),libraryExports:a,materialExports:Bu(l),materialMapLibrary:f,libraryMap:c,libraryLocaleMap:u}}function Yc(e,t){var s;const{name:n,parent:r,alias:i}=e;return r?(s=t[r])==null?void 0:s[i||n]:t[i||n]}function hs(e){return bt(e)?e:JSON.stringify(e)}function ds(e,t,n){const r=e.CSSStyleSheet;if(r.prototype.replaceSync){const i=new r;i.id=t,i.replaceSync(n);const s=e.document,o=s.adoptedStyleSheets,a=Array.from(o).filter(c=>c.id!==t);s.adoptedStyleSheets=[...a,i]}else{const i=e.document;let s=i.getElementById(t);s?s.innerHTML=n:(s=i.createElement("style"),s.id=t,s.innerHTML=n,i.head.appendChild(s))}}function Gc(e,t){return L(this,null,function*(){const n=yield window.fetch(t).then(r=>r.text()).catch(()=>"");n&&ds(window,e,n)})}function Zc(e,t=window){const n=t.document,r=t.document.head;for(const i of e)if(!n.getElementById(i)){const s=n.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,r.appendChild(s)}}function Qc(r,i){return L(this,arguments,function*(e,t,n=window){const s=n.document,o=n.document.head;let a=n[t];return a?a.default||a:new Promise((c,u)=>{for(const l of e){const f=s.createElement("script");f.src=l,f.onload=()=>{a=n[t],a?c(a.default||a):u(null)},f.onerror=h=>{u(h)},o.appendChild(f)}})})}function Xc(e){return ue(e)||ue(e==null?void 0:e.install)}function tl(e){return qc.includes(e)}function el(e){return zc.includes(e)}function Pe(e,t,n=!1,r=!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,(c,u)=>`__self${u}`),o=s.join(`
78
+ `)+o;const a=`with(${n?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(oe.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),r)throw s}}function Qn(e,t,n=!1,r=!1){var s;const i=Pe(e,t,n,r);if(typeof i!="function"&&(oe.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),r))throw new Error(`"${e.value}" not a function`);return i}function wt(e){return e&&e.type==="JSExpression"}function Me(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function nl(e){return wt(e)||Me(e)}function Y_(e){return nl(e)?e.value:JSON.stringify(e)}const G_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},ps=Symbol("access");class rl{constructor(t){A(this,"options");A(this,"data",null);A(this,"mode",ht.Raw);this.options=Object.assign({},G_,t),this.loadData()}connect(t){const{mode:n,router:r,request:i}=t;this.mode=n,r&&this.mode===ht.Raw&&this.setGuard(r),i&&this.setRequest(i)}login(t){const{storageKey:n,storagePrefix:r,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Vn.save(n,t,{type:"local",prefix:r}),i&&Un.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:n,session:r,authKey:i}=this.options;this.data=null,Vn.remove(t,{type:"local",prefix:n}),r&&Un.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:n}=this.options,{permissions:r={}}=this.data||{};return typeof t=="function"?t(r):li(t).every(i=>r[i]||r[n+"."+i])}some(t){const{appName:n}=this.options,{permissions:r={}}=this.data||{};return li(t).some(i=>r[i]||r[n+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this),t.provide(ps,this)}isAuthPath(t){const{auth:n,isAuth:r}=this.options;if(r)return r(t);if(t.path&&typeof n=="string"){const i=n.split("#")[1]||n;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:n}=this.options;if(!t)return;const r=n?`?${n}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(r):location.href=n?`${t}${r}`:t}setData(t){const{privateKey:n}=this.options;if(Array.isArray(t)&&n){const r=t.map(i=>ci(i,n));this.data=JSON.parse(r.join(""));return}if(typeof t=="string")try{const r=n?ci(t,n):t;r?this.data=JSON.parse(r):console.warn("RSA解密失败或登录信息缺失")}catch(r){console.warn(r)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:n}=this.options,r=Vn.get(t,{type:"local",prefix:n});this.setData(r||null)}isLogined(){const{session:t,authKey:n}=this.options;return t&&n?!!Un.get(n):!!this.getToken()}hasRoutePermission(t){if(t.name===Ae){const n=t.params.id;return n&&this.can(n)}return!0}setGuard(t){t.beforeEach((n,r,i)=>this.guard(n,i))}guard(t,n){return L(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return n();if(this.isLogined()){if(this.hasRoutePermission(t))return n();{const{noPermissionMessage:r="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(r),ue(i)?(i(),n(!1)):bt(i)?n(i):n(!1)}}n(!1),this.toLogin()})}isWhiteList(t){const{whiteList:n}=this.options;return n?Array.isArray(n)?n.some(r=>t.fullPath.startsWith(r)):n(t):!1}isUnauthorized(t){const{unauthorizedCode:n=401}=this.options;return t.status===n||t.data.code===n}showUnauthorizedAlert(t){return L(this,null,function*(){const{unauthorizedMessage:n="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(n),this.toLogin())})}showTip(t){return L(this,null,function*(){const{alert:n}=this.options;return n?(yield xe(150),yield n(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(n=>{var r,i;return(r=this.data)!=null&&r.token&&(n.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),n}),t.useResponse(n=>L(this,null,function*(){return yield this.showUnauthorizedAlert(n),n}),n=>L(this,null,function*(){const r=n.response||n||{};return yield this.showUnauthorizedAlert(r),Promise.reject(n)}))}}function il(){return Xo(ps,null)}function Z_(e={}){const{notify:t,loading:n,settings:r={}}=e;let i=null;return{request:_r({settings:z({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:s=>{var o,a;return((o=s.data)==null?void 0:o.code)===0||!!((a=s.data)!=null&&a.success)},failMessage:!0,showError:s=>{t&&t(s||"未知错误")},showLoading:()=>{i&&i.close(),n&&(i=n())},hideLoading:()=>{i&&(i.close(),i=null)}},r)}),jsonp:cs,notify:t,loading:n}}function sl(e,t){const{jsonp:n,request:r}=t;if(e.method==="jsonp")return(i={})=>n(e.url,st(z({},e.jsonpOptions),{query:i}));{const i=e.headers?Pe(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:st(z({},e.settings),{headers:i})};return(o,a)=>(delete s.data,r.send(Dt(s,a||{},{data:o})))}}function ol(e,t){const{metaQuery:n}=t;if(!n)return;const{code:r,queryCode:i}=e;return(s,o)=>{if(!n){console.warn("adapter.metaQuery is not defined!");return}return n(r,i,s,o)}}function al(e=[],t=[],n){const r={};for(const i of e)r[i.id]=sl(i,n);for(const i of t)r[i.id]=ol(i,n);return r}function ul(){return L(this,arguments,function*(e=[]){ae&&(ms(),e.forEach(t=>ll(ae,t)))})}function cl(e){const t=Me(e.mockTemplate)&&e.mockTemplate.value?Qn(e.mockTemplate,{},!0):void 0;return(...n)=>L(this,null,function*(){let r={};if(t)try{r=yield t.apply(t,n)}catch(i){oe.warn("模拟数据模版异常",i)}return ae.mock(r)})}function ll(e,t){if(!t.mock)return;const{url:n,mockTemplate:r}=t;if(n&&r){const i=hr(`${n}(.*)`),s=Uu(n,{decode:decodeURIComponent}),o=Pe(r,{},!0);e.mock(i,a=>{var f;const c=se.parse(a.url)||{},u=a.body instanceof FormData?Bc(a.body):a.body,l=(f=s(a.url))==null?void 0:f.params;return Object.assign(a,{data:u,params:c,query:l}),e.mock(o(a))})}}function ms(){ae&&(ae._mocked={})}class fl{constructor(t){A(this,"__id",null);A(this,"__mode");A(this,"__instance",null);A(this,"__contextRefs",{});A(this,"__refs",{});A(this,"context",{});A(this,"state",{});A(this,"props",{});A(this,"$props",{});A(this,"$refs",{});A(this,"$el",null);A(this,"$emit",null);A(this,"$nextTick",null);A(this,"$parent",null);A(this,"$root",null);A(this,"$attrs",null);A(this,"$slots",null);A(this,"$watch",null);A(this,"$options",null);A(this,"$forceUpdate",null);A(this,"$components",{});A(this,"$libs",{});A(this,"$apis",{});A(this,"__transform",{});const{mode:n,dsl:r,attrs:i}=t;this.__mode=n,r&&(this.__id=r.id||null,this.__transform=r.transform||{}),i&&Object.assign(this,i)}setup(t,n=er){const r=n.getCurrentInstance();if(!r)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=r.proxy;const i=r.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),n.onMounted(()=>{this.__proxy()}),n.onUnmounted(()=>{this.__cleanup()}),n.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&Di.forEach(t=>{var n;this[t]=(n=this.__instance)==null?void 0:n[t]})}__cleanup(){Di.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var n;if(t)if(this.__mode===ht.Runtime){const{id:r,type:i}=t,s=r&&(n=this.__transform[r])!=null?n:t.value;return Qn({type:i,value:s},this)}else return Qn(t,this)}__parseExpression(t){var n;if(t)if(this.__mode===ht.Runtime){const{id:r,type:i}=t,s=r&&(n=this.__transform[r])!=null?n:t.value;return Pe({type:i,value:s},this)}else return Pe(t,this)}__ref(t=null,n){if(this.__mode!==ht.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),r=>L(this,null,function*(){var s,o;yield xe(0);let i=(r==null?void 0:r.$vtjEl)||(r==null?void 0:r.$el)||((o=(s=r==null?void 0:r._)==null?void 0:s.vnode)==null?void 0:o.el)||r;if(!i){typeof n=="string"&&(delete this.$refs[n],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,ht.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,r)),typeof n=="function"?n(r):n&&(this.$refs[n]=this.__getRefEl(this.$refs,n,r)),r})}__getRefEl(t,n,r){const i=t[n];if(i&&r!==i){const s=new Set([].concat(i,r));return Array.from(s)}else return r}__clone(t={}){const n=z(z({},this.context),t),r=st(z({},n),{context:n});return r.context.__proto__=this.context,r.__proto__=this,r}}function Xn(e){var f,h;const{Vue:t=er,mode:n=ht.Runtime,components:r={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),c={$components:r,$libs:i,$apis:s},u=new fl({mode:n,dsl:a.value,attrs:c}),l=t.defineComponent(z({name:a.value.name,props:z({},X_((f=a.value.props)!=null?f:[],u)),setup(d){var v,_,S,y;u.$props=d,u.props=d,a.value.id&&ds(e.window||window,a.value.id,a.value.css||""),u.state=tw(t,(v=a.value.state)!=null?v:{},u);const p=ew(t,(_=a.value.computed)!=null?_:{},u),m=nw((S=a.value.methods)!=null?S:{},u),b=rw(t,a.value.inject,u),E=hl(a.value.dataSources||{},u),g=z(z(z(z({},b),p),m),E);return u.setup(g,t),iw(t,(y=a.value.watch)!=null?y:[],u),{vtj:u}},emits:Q_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const d=a.value.nodes||[];return d.length===1?un(d[0],u,t,o):d.map(p=>un(p,u,t,o))}},sw((h=a.value.lifeCycles)!=null?h:{},u)));return{renderer:t.markRaw(l),context:u}}function Q_(e=[]){return e.map(t=>bt(t)?t:t.name)}function X_(e=[],t){const n=r=>r?(Array.isArray(r)?r:[r]).map(i=>Uc[i]):void 0;return e.map(r=>bt(r)?{name:r}:{name:r.name,type:r.type,required:r.required,default:wt(r.default)?t.__parseExpression(r.default):r.default}).reduce((r,i)=>(r[i.name]={type:n(i.type),required:i.required,default:i.default},r),{})}function tw(e,t,n){return e.reactive(Object.keys(t||{}).reduce((r,i)=>{let s=t[i];return wt(s)?s=n.__parseExpression(s):Me(s)&&(s=n.__parseFunction(s)),r[i]=s,r},{}))}function ew(e,t,n){return Object.entries(t!=null?t:{}).reduce((r,[i,s])=>(r[i]=e.computed(n.__parseFunction(s)),r),{})}function nw(e,t){return Object.entries(e!=null?e:{}).reduce((n,[r,i])=>(n[r]=t.__parseFunction(i),n),{})}function rw(e,t=[],n){return t.reduce((r,i)=>{var u;const{name:s,from:o}=i||{};i.default;const a=wt(o)?n.__parseExpression(o)||s:o!=null?o:s,c=wt(i.default)?n.__parseExpression(i.default):(u=i.default)!=null?u:null;return r[s]=e.inject(a,c),r},{})}function hl(e,t){return Object.keys(e).reduce((n,r)=>{const i=e[r];if(i.type==="mock")n[r]=cl(i);else if(i.ref){const s=t.$apis[i.ref],o=Me(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;n[r]=(...a)=>L(this,null,function*(){const c=yield s.apply(t,a);return o?o(c):c})}return n},{})}function iw(e,t=[],n){t.forEach(r=>{e.watch(n.__parseExpression(r.source),n.__parseFunction(r.handler),{deep:r.deep,immediate:r.immediate})})}function sw(e,t){return Object.entries(e!=null?e:{}).reduce((n,[r,i])=>(n[r]=t.__parseFunction(i),n),{})}let Kr=[];const dl=e=>e;function gs(n){return L(this,arguments,function*(e,t=window){const{urls:r=[],library:i}=e,s=r.filter(a=>Er(a));if(s.length===0||!i)return null;const o=r.filter(a=>wr(a));return o.length&&Zc(o,t),yield Qc(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function tr(e){const{getDsl:t,getDslByUrl:n,options:r}=e;return r.window&&(Kr.forEach(i=>{delete r.window[i]}),Kr=[]),(i,s,o=er)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?Xn(st(z({},r),{Vue:o,dsl:a,mode:ht.Runtime,loader:tr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield n(s.url);return a&&(a.name=i),a?Xn(st(z({},r),{Vue:o,dsl:a,mode:ht.Runtime,loader:tr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Kr.push(s.library),o.defineAsyncComponent(()=>L(this,null,function*(){return(yield gs(s,r.window))||(console.warn("getPlugin result is null",s),null)}))):i}function un(e,t,n=er,r=dl){var m;if(!e||!e.name||e.invisible)return null;const i=(m=n.getCurrentInstance())==null?void 0:m.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:c,vShow:u,vModels:l,vBind:f,vHtml:h,others:d}=aw(o);if(a&&!uw(a,t))return null;const p=b=>{var $,V,w,T;const E=b.$components,g=(()=>{var C,I,D,k;if(e.name==="component")return cw(b,(C=e.props)==null?void 0:C.is);if(e.name==="slot")return e.name;const M=r(e.name,e.from,n);return bt(M)?tl(M)||el(M)?M:(k=(D=E[M])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(M))!=null?k:M:M})(),v=lw(s,($=e.props)!=null?$:{},b),_=fw(n,(V=e.events)!=null?V:{},b);if(e.name==="slot")return hw(n,e,v,b,r);f&&Object.assign(v,b.__parseExpression(f.value)),u&&(v.style=Object.assign((w=v.style)!=null?w:{},pw(u,b))),h&&Object.assign(v,mw(h,b)),l.forEach(M=>{Object.assign(v,gw(n,M,b))});const S=yw(n,(T=e.children)!=null?T:[],b,r,e);let y=n.createVNode(g,z(z({},v),_),S);const x=i?ow(i,d,b):[];return x.length&&(y=n.withDirectives(y,x)),y};return c?_w(c,p,t):p(t)}function ow(e,t,n){const r=e.app;return t.map(i=>{const s=typeof i.name=="string"?r.directive(i.name):n.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(n.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function aw(e=[]){const t=e.find(c=>Nt(c.name)==="vIf"),n=e.find(c=>Nt(c.name)==="vFor"),r=e.find(c=>Nt(c.name)==="vShow"),i=e.find(c=>Nt(c.name)==="vBind"),s=e.find(c=>Nt(c.name)==="vHtml"),o=e.filter(c=>Nt(c.name)==="vModel"),a=e.filter(c=>!Hc.includes(Nt(c.name)));return{vIf:t,vFor:n,vShow:r,vModels:o,vBind:i,others:a,vHtml:s}}function uw(e,t){return!!t.__parseExpression(e.value)}function cw(e,t){return t?wt(t)?e.__parseExpression(t):t:"div"}function lw(e,t,n){const r=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return wt(o)?o=n.__parseExpression(o):Me(o)&&(o=n.__parseFunction(o)),i[s]=o,i},{});return r.ref=n.__ref(e,r.ref),r}function fw(e,t,n){const r=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const a=t[o],c=ys(a.modifiers),u=c.find(h=>r.includes(h)),l="on"+ur(o)+(u&&i[u]||""),f=n.__parseFunction(a.handler);return f&&(s[l]=e.withModifiers(f,c)),s},{})}function ys(e={},t=!1){const n=Object.keys(e);return t?n.map(r=>"."+r):n}function hw(e,t,n,r,i){var c;const{children:s}=t,o=dw(t,r),a=(c=r.$slots)==null?void 0:c[o.name];return a?a(n):s?bt(s)?e.createTextVNode(s):wt(s)?e.createTextVNode(hs(r.__parseExpression(s))):Array.isArray(s)?s.map(u=>un(u,r,e,i)):null:null}function dw(e,t){const{props:n}=e,r=(n==null?void 0:n.name)||"default";return{name:wt(r)?t.__parseExpression(r):r,params:[]}}function pw(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function mw(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function gw(e,t,n){var a;const r={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
79
79
  ${t.value.value} = v;
80
- }`:"(v) => {}"},i=n.__parseFunction(r),s=ys(wt(t.modifiers)?n.__parseExpression(t.modifiers):t.modifiers),o=wt(t.arg)?n.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:n.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function bw(e,t,n,r,i){if(!t)return null;if(bt(t))return{default:()=>t};if(wt(t))return{default:()=>hs(n.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=_w(t),o=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(s).reduce((a,[c,{nodes:u,params:l}])=>(a[c]=f=>{const h=l.length?Mu(f!=null?f:{},l):o(f);return u.map(d=>un(d,n.__clone(h),e,r))},a),{})}return null}function _w(e){const t={default:{params:[],nodes:[]}};for(const n of e){const r=ww(n.slot),i=r.name;t[i]?(t[i].nodes.push(n),t[i].params=t[i].params.concat(r.params)):t[i]={nodes:[n],params:r.params}}return t}function ww(e="default"){return bt(e)?{name:e,params:[]}:z({params:[]},e)}function Ew(e,t,n){const{value:r,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let a=n.__parseExpression(r)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((c,u)=>u+1)),Array.isArray(a)?a.map((c,u)=>t(n.__clone({[s]:c,[o]:u}))):(console.warn("[vForRender]:",`${r==null?void 0:r.value} is not a Arrary`),[])}function Sw(e){return Pl()?(kl(e),!0):!1}function vs(e){return typeof e=="function"?e():Gr(e)}const ml=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xw=e=>e!=null,Tw=()=>{};function Ow(e){return ia()}function $w(...e){if(e.length!==1)return jl(...e);const t=e[0];return typeof t=="function"?Rl(Dl(()=>({get:t,set:Tw}))):Xe(t)}function Aw(e,t){Ow()&&Cl(e,t)}const jw=ml?window:void 0,Rw=ml?window.document:void 0;function Dw(e){var t;const n=vs(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Cw(){const e=Xe(!1),t=ia();return t&&Nl(()=>{e.value=!0},t),e}function Pw(e){const t=Cw();return ra(()=>(t.value,!!e()))}function kw(e,t,n={}){const h=n,{window:r=jw}=h,i=Tr(h,["window"]);let s;const o=Pw(()=>r&&"MutationObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=ra(()=>{const d=vs(e),p=(Array.isArray(d)?d:[d]).map(Dw).filter(xw);return new Set(p)}),u=na(()=>c.value,d=>{a(),o.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,i)))},{immediate:!0,flush:"post"}),l=()=>s==null?void 0:s.takeRecords(),f=()=>{u(),a()};return Sw(f),{isSupported:o,stop:f,takeRecords:l}}function Nw(e=null,t={}){var n,r,i;const{document:s=Rw,restoreOnUnmount:o=f=>f}=t,a=(n=s==null?void 0:s.title)!=null?n:"",c=$w((r=e!=null?e:s==null?void 0:s.title)!=null?r:null),u=e&&typeof e=="function";function l(f){if(!("titleTemplate"in t))return f;const h=t.titleTemplate||"%s";return typeof h=="function"?h(f):vs(h).replace(/%s/g,f)}return na(c,(f,h)=>{f!==h&&s&&(s.title=l(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!u&&kw((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==c.value&&(c.value=l(s.title))},{childList:!0}),Aw(()=>{if(o){const f=o(a,c.value||"");f!=null&&s&&(s.title=f)}}),c}const ta=nr({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=_s(),t=sa(),n=t.params.id,r=n?e.getPage(n):e.getHomepage(),i=r?yield e.getRenderComponent(r.id):null,s=Xe(Symbol());return r&&(Object.assign(t.meta,r.meta||{},{cache:r.cache}),Nw(r.title||"VTJ")),{provider:e,component:i,file:r,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:n}=this;return e?Wr(e,st(z({},t),{key:n})):Wr("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),Bw={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},Iw={"data-l-h6o7ki7":"",class:"vtj-startup"},Mw={"data-l-h6o7ki7":"",class:"vtj-startup__name"},Fw={"data-l-h6o7ki7":""},Lw={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},Vw={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},gl=nr({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"},link:{}},setup(e){((r,i)=>{let s=document.getElementById("h6o7ki7");s||(s=document.createElement("style"),s.id="h6o7ki7",document.head.appendChild(s),s.innerHTML=i)})("h6o7ki7",`
80
+ }`:"(v) => {}"},i=n.__parseFunction(r),s=ys(wt(t.modifiers)?n.__parseExpression(t.modifiers):t.modifiers),o=wt(t.arg)?n.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:n.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function yw(e,t,n,r,i){if(!t)return null;if(bt(t))return{default:()=>t};if(wt(t))return{default:()=>hs(n.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=vw(t),o=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(s).reduce((a,[c,{nodes:u,params:l}])=>(a[c]=f=>{const h=l.length?Iu(f!=null?f:{},l):o(f);return u.map(d=>un(d,n.__clone(h),e,r))},a),{})}return null}function vw(e){const t={default:{params:[],nodes:[]}};for(const n of e){const r=bw(n.slot),i=r.name;t[i]?(t[i].nodes.push(n),t[i].params=t[i].params.concat(r.params)):t[i]={nodes:[n],params:r.params}}return t}function bw(e="default"){return bt(e)?{name:e,params:[]}:z({params:[]},e)}function _w(e,t,n){const{value:r,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let a=n.__parseExpression(r)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((c,u)=>u+1)),Array.isArray(a)?a.map((c,u)=>t(n.__clone({[s]:c,[o]:u}))):(console.warn("[vForRender]:",`${r==null?void 0:r.value} is not a Arrary`),[])}function ww(e){return Cl()?(Pl(e),!0):!1}function vs(e){return typeof e=="function"?e():Gr(e)}const pl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ew=e=>e!=null,Sw=()=>{};function xw(e){return na()}function Tw(...e){if(e.length!==1)return Al(...e);const t=e[0];return typeof t=="function"?jl(Rl(()=>({get:t,set:Sw}))):Xe(t)}function Ow(e,t){xw()&&Dl(e,t)}const $w=pl?window:void 0,Aw=pl?window.document:void 0;function jw(e){var t;const n=vs(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Rw(){const e=Xe(!1),t=na();return t&&kl(()=>{e.value=!0},t),e}function Dw(e){const t=Rw();return ea(()=>(t.value,!!e()))}function Cw(e,t,n={}){const h=n,{window:r=$w}=h,i=Tr(h,["window"]);let s;const o=Dw(()=>r&&"MutationObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=ea(()=>{const d=vs(e),p=(Array.isArray(d)?d:[d]).map(jw).filter(Ew);return new Set(p)}),u=ta(()=>c.value,d=>{a(),o.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,i)))},{immediate:!0,flush:"post"}),l=()=>s==null?void 0:s.takeRecords(),f=()=>{u(),a()};return ww(f),{isSupported:o,stop:f,takeRecords:l}}function Pw(e=null,t={}){var n,r,i;const{document:s=Aw,restoreOnUnmount:o=f=>f}=t,a=(n=s==null?void 0:s.title)!=null?n:"",c=Tw((r=e!=null?e:s==null?void 0:s.title)!=null?r:null),u=e&&typeof e=="function";function l(f){if(!("titleTemplate"in t))return f;const h=t.titleTemplate||"%s";return typeof h=="function"?h(f):vs(h).replace(/%s/g,f)}return ta(c,(f,h)=>{f!==h&&s&&(s.title=l(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!u&&Cw((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==c.value&&(c.value=l(s.title))},{childList:!0}),Ow(()=>{if(o){const f=o(a,c.value||"");f!=null&&s&&(s.title=f)}}),c}const Qo=nr({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=_s(),t=ra(),n=t.params.id,r=n?e.getPage(n):e.getHomepage(),i=r?yield e.getRenderComponent(r.id):null,s=Xe(Symbol());return r&&(Object.assign(t.meta,r.meta||{},{cache:r.cache}),Pw(r.title||"VTJ")),{provider:e,component:i,file:r,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:n}=this;return e?Wr(e,st(z({},t),{key:n})):Wr("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),kw={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},Nw={"data-l-h6o7ki7":"",class:"vtj-startup"},Bw={"data-l-h6o7ki7":"",class:"vtj-startup__name"},Iw={"data-l-h6o7ki7":""},Mw={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},Fw={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},ml=nr({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"},link:{}},setup(e){((r,i)=>{let s=document.getElementById("h6o7ki7");s||(s=document.createElement("style"),s.id="h6o7ki7",document.head.appendChild(s),s.innerHTML=i)})("h6o7ki7",`
81
81
  .vtj-startup[data-l-h6o7ki7]{
82
82
  padding: 20px;
83
83
  border-radius: 4px;
@@ -154,4 +154,4 @@ version: 2.9.0
154
154
  }
155
155
  .vtj-startup__actions button[data-l-h6o7ki7]:hover{
156
156
  opacity: 0.7;
157
- }`);const t=e,n=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let r=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=r}};return(r,i)=>(Yr(),$l("div",Bw,[Zt("div",Iw,[Zt("h1",Mw,[Zt("span",Fw,Ar(t.name),1)]),Zt("div",Lw,Ar(t.tagline),1),Zt("div",Vw,[i[0]||(i[0]=Zt("span",{"data-l-h6o7ki7":""},"设置项目主页后,将替换此页面显示",-1)),Zt("button",{"data-l-h6o7ki7":"",onClick:n},Ar(t.actionText),1)])])]))}}),Hw=nr({name:"VtjStartupContainer",render(){return Wr(gl)}}),bs=Symbol("Provider");var yl=(e=>(e.Production="production",e.Development="development",e))(yl||{});class vl extends Ku{constructor(n){super();A(this,"mode");A(this,"globals",{});A(this,"modules",{});A(this,"adapter",{request:an,jsonp:cs});A(this,"apis",{});A(this,"dependencies",{});A(this,"materials",{});A(this,"library",{});A(this,"service");A(this,"project",null);A(this,"components",{});A(this,"nodeEnv","development");A(this,"router",null);A(this,"materialPath","./");A(this,"urlDslCaches",{});this.options=n;const{service:r,mode:i=ht.Raw,dependencies:s,materials:o,project:a={},adapter:c={},globals:u={},modules:l={},router:f=null,materialPath:h="./",nodeEnv:d="development"}=n;this.mode=i,this.modules=l,this.service=r,this.router=f,this.materialPath=h,this.nodeEnv=d,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,u),Object.assign(this.adapter,c);const{access:p,request:m}=this.adapter;p&&p.connect({mode:i,router:f,request:m}),a&&i!==ht.Design?this.load(a):this.project=a,ae.setup({timeout:"50-500"})}createMock(n){return(...r)=>L(this,null,function*(){let i={};if(n)try{i=yield n.apply(n,r)}catch(s){oe.warn("模拟数据模版异常",s)}return ae.mock(i)})}load(n){return L(this,null,function*(){const r=this.modules[`.vtj/projects/${n.id}.json`];if(this.project=r?yield r():yield this.service.init(n),!this.project)throw new Error("project is null");const{apis:i=[],meta:s=[]}=this.project,o=window;o.CKEDITOR_VERSION=void 0,this.mode===ht.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.apis=ul(i,s,this.adapter),ms(),cl(i),this.initRouter(),this.triggerReady()})}loadDependencies(n){return L(this,null,function*(){const r=Object.entries(this.dependencies);for(const[i,s]of r)n[i]||(n[i]=this.library[i]=yield s())})}loadAssets(n){return L(this,null,function*(){const{dependencies:r=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:c}=this,{libraryExports:u,libraryMap:l,materials:f,materialExports:h,materialMapLibrary:d}=Yc(r,a,c==="development");for(const p of u){const m=i[p],b=n[p];if(b)s[p]=b;else if(m)n[p]=s[p]=yield m();else{const E=l[p]||[];for(const g of E)wr(g)&&(yield Zc(p,se.append(g,{v:$e}))),Er(g)&&(yield ji(se.append(g,{v:$e})));s[p]=n[p]}}if(c==="development"){for(const m of f)yield ji(se.append(m,{v:$e}));const p=this.materials||{};for(const m of h){const b=n[d[m]],E=qu[m];if(E)b&&E.forEach(g=>{o[g]=b[g]});else{const g=p[m]?(yield p[m]()).default:n[m];g&&b&&(g.components||[]).forEach(v=>{o[v.name]=Gc(v,b)})}}}})}initRouter(){const{router:n,project:r,options:i,adapter:s}=this;if(!n)return;const{routeAppendTo:o,pageRouteName:a="page",routeMeta:c}=i,u=o?"":"/",l={path:`${u}${a}/:id`,name:Ae,component:ta},f={path:u,name:Ze,component:r!=null&&r.homepage?ta:s.startupComponent||Hw,meta:c};n.hasRoute(Ae)&&n.removeRoute(Ae),n.hasRoute(Ze)&&n.removeRoute(Ze),o?(n.addRoute(o,l),n.addRoute(o,f)):(n.addRoute(l),n.addRoute(f))}install(n){const r=n.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!r[i]&&tl(s)&&(n.use(s),r[i]=!0);this.options.install&&n.use(this.options.install),this.adapter.access&&n.use(this.adapter.access),n.provide(bs,this),n.config.globalProperties.installed=r,this.mode===ht.Design&&(n.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,c=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",u=`[ ${a} ] ${c} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","error")})}getFile(n){const{blocks:r=[]}=this.project||{};return this.getPage(n)||r.find(i=>i.id===n)||null}getPage(n){const{pages:r=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const c=i(s,a.children);if(c)return c}}};return i(n,r)||null}getHomepage(){const{homepage:n}=this.project||{};return n?this.getPage(n):null}getDsl(n){return L(this,null,function*(){const r=this.modules[`.vtj/files/${n}.json`];return r?yield r():this.service.getFile(n,this.project||void 0).catch(()=>null)})}getDslByUrl(n){return L(this,null,function*(){return this.urlDslCaches[n]||(this.urlDslCaches[n]=this.adapter.request.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(n,r={}){const{library:i,components:s,mode:o,apis:a}=this,c=z({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},r),u=tr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:c});return Xn(st(z({},c),{dsl:n,loader:u}))}getRenderComponent(n,r){return L(this,null,function*(){var c;const i=this.getFile(n);if(!i)return oe.warn(`Can not find file: ${n}`),null;r&&r(i);const s=`.vtj/vue/${n}.vue`,o=this.modules[s];if(o)return(c=yield o())==null?void 0:c.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(oe.warn(`Can not find dsl: ${n}`),null)})}defineUrlSchemaComponent(n,r){return Ts(()=>L(this,null,function*(){const i=yield this.getDslByUrl(n);return i?(i.name=r||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(n){return Ts(()=>L(this,null,function*(){return yield gs(n,window)}))}}function Uw(e){const t=new vl(e);return{provider:t,onReady:n=>t.ready(n)}}function _s(e={}){const t=ea(bs);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:n,version:r}=e;n&&r&&L(this,null,function*(){const i=yield t.getDsl(n);(i==null?void 0:i.__VERSION__)!==r&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}const bl={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},zw=(e,t="/__vtj__/api/:type.json")=>(n,r)=>e.send({url:t,method:"post",params:{type:n},data:{type:n,data:r},settings:bl}),qw=(e,t="/__vtj__/api/uploader.json")=>(n,r)=>L(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:n,projectId:r},settings:st(z({},bl),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function Kw(e){return _r({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var n;return((n=t.data)==null?void 0:n.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class Sr{constructor(t=an){A(this,"api");A(this,"pluginCaches",{});A(this,"uploader");this.api=zw(t),this.uploader=qw(t)}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return L(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,n){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,n),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,n){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,n),{}})}saveHistoryItem(t,n){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,n),!1})}removeHistoryItem(t,n){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,n),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,n){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:n}).catch(()=>!1))})}genVueContent(t,n){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:n}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,n){return L(this,null,function*(){return yield this.uploader(t,n).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,n){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:n}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:n=[]}=t,r=n.filter(s=>Jc(s))[0];return r?this.pluginCaches[r]||(this.pluginCaches[r]=an.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const mt=new us({type:"local",expired:0,prefix:"__VTJ_"});class Jw extends Sr{init(t){const n=new ce(t),r=mt.get(`project_${n.id}`),i=Object.assign(n.toDsl(),r||{});return mt.save(`project_${n.id}`,i),Promise.resolve(i)}saveProject(t){const n=new ce(t);return mt.save(`project_${n.id}`,n.toDsl()),Promise.resolve(!0)}saveMaterials(t,n){return mt.save(`materials_${t.id}`,fr(n)),Promise.resolve(!0)}saveFile(t){return mt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const n=mt.get(`file_${t}`);return n?Promise.resolve(n):Promise.reject(null)}removeFile(t){return mt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return mt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const n=mt.get(`history_${t}`);if(n){const r=(n.items||[]).map(i=>i.id);this.removeHistoryItem(t,r),mt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const n=mt.get(`history_${t}`),r=new Qi(n||{id:t});return Promise.resolve(r.toDsl())}getHistoryItem(t,n){const r=mt.get(`history_${t}_${n}`);return Promise.resolve(r)}saveHistoryItem(t,n){return mt.save(`history_${t}_${n.id}`,n),Promise.resolve(!0)}removeHistoryItem(t,n){return n.forEach(r=>{mt.remove(`history_${t}_${r}`)}),Promise.resolve(!0)}}class _l extends Sr{constructor(){super(...arguments);A(this,"projects",{});A(this,"materials",{});A(this,"files",{});A(this,"histories",{});A(this,"historyItems",{})}init(n){const r=new ce(n),i=this.projects[r.id]||{},s=Object.assign(r.toDsl(),i);return this.projects[s.id]=s,Promise.resolve(s)}saveProject(n){const r=new ce(n);return this.projects[r.id]=r.toDsl(),Promise.resolve(!0)}saveMaterials(n,r){return n.id&&(this.materials[n.id]=fr(r)),Promise.resolve(!0)}saveFile(n){return this.files[n.id]=n,Promise.resolve(!0)}getFile(n){const r=this.files[n];return r?Promise.resolve(r):Promise.reject(null)}removeFile(n){return delete this.files[n],Promise.resolve(!0)}saveHistory(n){return this.histories[n.id]=n,Promise.resolve(!0)}removeHistory(n){const r=this.histories[n];if(r){const i=(r.items||[]).map(s=>s.id);this.removeHistoryItem(n,i),delete this.historyItems[n]}return Promise.resolve(!0)}getHistory(n){const r=this.histories[n],i=new Qi(r||{id:n});return Promise.resolve(i)}getHistoryItem(n,r){const i=`${n}_${r}`,s=this.historyItems[i]||{};return Promise.resolve(s)}saveHistoryItem(n,r){const i=`${n}_${r.id}`;return this.historyItems[i]=r,Promise.resolve(!0)}removeHistoryItem(n,r){return r.forEach(i=>{const s=`${n}_${i}`;delete this.historyItems[s]}),Promise.resolve(!0)}}let Jr=null;function Ww(){return Jr||(Jr=new _l,Jr)}class Yw extends Sr{constructor(){super(...arguments);A(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(n){return L(this,null,function*(){return(yield this.api("init",n).catch(()=>null))||{}})}saveProject(n){return L(this,null,function*(){return!!(yield this.api("saveProject",n).catch(()=>!1))})}saveMaterials(n,r){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:n,materials:fr(r)}).catch(()=>!1))})}saveFile(n){return L(this,null,function*(){return!!(yield this.api("saveFile",n).catch(()=>!1))})}getFile(n){return L(this,null,function*(){return this.getFileCaches[n]||(this.getFileCaches[n]=this.api("getFile",n).catch(()=>null)).finally(()=>{delete this.getFileCaches[n]})})}removeFile(n){return L(this,null,function*(){return!!(yield this.api("removeFile",n).catch(()=>!1))})}saveHistory(n){return L(this,null,function*(){return!!(yield this.api("saveHistory",n).catch(()=>!1))})}removeHistory(n){return L(this,null,function*(){return!!(yield this.api("removeHistory",n).catch(()=>!1))})}getHistory(n){return L(this,null,function*(){return(yield this.api("getHistory",n).catch(()=>null))||{}})}getHistoryItem(n,r){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:n,id:r}).catch(()=>null))||{}})}saveHistoryItem(n,r){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:n,item:r}).catch(()=>!1))})}removeHistoryItem(n,r){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:n,ids:r}).catch(()=>!1))})}}function wl(e,t,n=[]){return n.map(r=>{const{id:i,title:s,icon:o,children:a,hidden:c}=r;return{id:i,title:s,icon:o,hidden:c,url:`${e}/${t}/${i}`,children:a&&a.length?wl(e,t,a):void 0}})}function El(e,t){if(!t)return e;let n=[];for(const r of e)if(r.children&&r.children.length){const i=El(r.children,t);i.length&&(r.children=i,n.push(r))}else t.can(r.id.toString())&&n.push(r);return n}function Gw(e){const{menuPathPrefix:t="",pageRouteName:n="page",disableMenusFilter:r=!1}=e||{},i=_s(),s=sa(),o=sl(),a=Xe(!1),c=Xe(!1),u=i.project;Al(()=>{const{name:h,params:d,meta:p}=s;if(h===Ae){const m=i.getPage(d.id);a.value=!(m!=null&&m.mask),c.value=!!(m!=null&&m.pure)}else if(h===Ze){const m=i.getHomepage();a.value=!(m!=null&&m.mask),c.value=!!(m!=null&&m.pure)}else a.value=!p.mask,c.value=!!p.pure});const l=wl(t,n,u==null?void 0:u.pages),f=u==null?void 0:u.config;return{disabled:a,logo:f==null?void 0:f.logo,themeSwitchable:f==null?void 0:f.themeSwitchable,title:(f==null?void 0:f.title)||(u==null?void 0:u.description)||(u==null?void 0:u.name)||"VTJ App",menus:r?l:El(l,o),pure:c}}const E2=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:ps,Access:il,BUILD_IN_TAGS:Kc,BUILT_IN_DIRECTIVES:Uc,BaseService:Sr,CONTEXT_HOST:Di,Context:hl,ContextMode:ht,DATA_TYPES:zc,HOMEPAGE_ROUTE_NAME:Ze,HTML_TAGS:qc,JSCodeToString:Z_,LIFE_CYCLES_LIST:W_,LocalService:Yw,MemoryService:_l,NodeEnv:yl,PAGE_ROUTE_NAME:Ae,Provider:vl,Startup:gl,StorageService:Jw,VTJ_RENDERER_VERSION:$e,adoptedStyleSheets:ds,createAdapter:X_,createAssetScripts:Y_,createAssetsCss:G_,createDataSources:dl,createLoader:tr,createMemoryService:Ww,createMetaApi:al,createMock:ll,createProvider:Uw,createRenderer:Xn,createSchemaApi:ol,createSchemaApis:ul,createServiceRequest:Kw,defaultLoader:pl,fillBasePath:We,getModifiers:ys,getPlugin:gs,getRawComponent:Gc,isBuiltInTag:el,isCSSUrl:wr,isJSCode:rl,isJSExpression:wt,isJSFunction:Me,isJSON:Jc,isJSUrl:Er,isNativeTag:nl,isVuePlugin:tl,loadCss:Zc,loadCssUrl:Qc,loadScriptUrl:Xc,mockApi:fl,mockApis:cl,mockCleanup:ms,nodeRender:un,parseDeps:Yc,parseExpression:Pe,parseFunction:Qn,providerKey:bs,removeProdFlag:Wc,toString:hs,useAccess:sl,useMask:Gw,useProvider:_s},Symbol.toStringTag,{value:"Module"})),Zw=nr({__name:"app",setup(e){return(t,n)=>{const r=Bl("router-view");return Yr(),Os(Gr(Ul),{locale:Gr(Hl)},{default:$s(()=>[(Yr(),Os(Il,null,{default:$s(()=>[Ml(r)]),_:1}))]),_:1},8,["locale"])}}}),Qw=[{path:"/",name:"home",component:()=>vn(()=>import("./index-BraPsV_B.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>vn(()=>import("./preview-0B_funOd.js"),__vite__mapDeps([21,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>vn(()=>import("./page-BvocjxGf.js"),__vite__mapDeps([22,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>vn(()=>import("./auth-DeUnCFEC.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,24]),import.meta.url)}],Xw=Ll({history:Vl(),routes:Qw}),t2="RRO_IDE_ACCESS_STORAGE__",ws=Fl(Zw),e2=new il({storageKey:t2});ws.use(e2);ws.use(Xw);ws.mount("#app");export{Dt as $,X_ as A,v1 as B,di as C,pi as D,d1 as E,Gu as F,Zu as G,ju as H,Uw as I,ue as J,G as K,rt as L,Kw as M,Ke as N,Yw as O,Je as P,Qu as Q,ee as R,ce as S,il as T,Qi as U,Bn as V,jv as W,wt as X,Av as Y,ut as Z,vl as _,t2 as a,Me as a0,c0 as a1,Z_ as a2,W_ as a3,Pe as a4,zc as a5,Yc as a6,G_ as a7,Y_ as a8,e0 as a9,Gc as aa,ul as ab,ms as ac,cl as ad,Qn as ae,qe as af,Uc as ag,zi as ah,Wn as ai,r0 as aj,x_ as ak,ll as al,Gi as am,Zi as an,S_ as ao,kv as ap,Vi as aq,w2 as ar,wr as as,Er as at,Qc as au,Xc as av,g2 as aw,E2 as ax,a1 as b,bt as c,li as d,Vn as e,Iu as f,Bu as g,Nt as h,$_ as i,wa as j,oe as k,ou as l,K_ as m,gt as n,O_ as o,q_ as p,rn as q,o0 as r,xe as s,oi as t,cs as u,Ku as v,F as w,it as x,ht as y,Ee as z};
157
+ }`);const t=e,n=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let r=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=r}};return(r,i)=>(Yr(),Ol("div",kw,[Zt("div",Nw,[Zt("h1",Bw,[Zt("span",Iw,Ar(t.name),1)]),Zt("div",Mw,Ar(t.tagline),1),Zt("div",Fw,[i[0]||(i[0]=Zt("span",{"data-l-h6o7ki7":""},"设置项目主页后,将替换此页面显示",-1)),Zt("button",{"data-l-h6o7ki7":"",onClick:n},Ar(t.actionText),1)])])]))}}),Lw=nr({name:"VtjStartupContainer",render(){return Wr(ml)}}),bs=Symbol("Provider");var gl=(e=>(e.Production="production",e.Development="development",e))(gl||{});class yl extends qu{constructor(n){super();A(this,"mode");A(this,"globals",{});A(this,"modules",{});A(this,"adapter",{request:an,jsonp:cs});A(this,"apis",{});A(this,"dependencies",{});A(this,"materials",{});A(this,"library",{});A(this,"service");A(this,"project",null);A(this,"components",{});A(this,"nodeEnv","development");A(this,"router",null);A(this,"materialPath","./");A(this,"urlDslCaches",{});this.options=n;const{service:r,mode:i=ht.Raw,dependencies:s,materials:o,project:a={},adapter:c={},globals:u={},modules:l={},router:f=null,materialPath:h="./",nodeEnv:d="development"}=n;this.mode=i,this.modules=l,this.service=r,this.router=f,this.materialPath=h,this.nodeEnv=d,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,u),Object.assign(this.adapter,c);const{access:p,request:m}=this.adapter;p&&p.connect({mode:i,router:f,request:m}),a&&i!==ht.Design?this.load(a):this.project=a,ae.setup({timeout:"50-500"})}createMock(n){return(...r)=>L(this,null,function*(){let i={};if(n)try{i=yield n.apply(n,r)}catch(s){oe.warn("模拟数据模版异常",s)}return ae.mock(i)})}load(n){return L(this,null,function*(){const r=this.modules[`.vtj/projects/${n.id}.json`];if(this.project=r?yield r():yield this.service.init(n),!this.project)throw new Error("project is null");const{apis:i=[],meta:s=[]}=this.project,o=window;o.CKEDITOR_VERSION=void 0,this.mode===ht.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.apis=al(i,s,this.adapter),ms(),ul(i),this.initRouter(),this.triggerReady()})}loadDependencies(n){return L(this,null,function*(){const r=Object.entries(this.dependencies);for(const[i,s]of r)n[i]||(n[i]=this.library[i]=yield s())})}loadAssets(n){return L(this,null,function*(){const{dependencies:r=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:c}=this,{libraryExports:u,libraryMap:l,materials:f,materialExports:h,materialMapLibrary:d}=Wc(r,a,c==="development");for(const p of u){const m=i[p],b=n[p];if(b)s[p]=b;else if(m)n[p]=s[p]=yield m();else{const E=l[p]||[];for(const g of E)wr(g)&&(yield Gc(p,se.append(g,{v:$e}))),Er(g)&&(yield ji(se.append(g,{v:$e})));s[p]=n[p]}}if(c==="development"){for(const m of f)yield ji(se.append(m,{v:$e}));const p=this.materials||{};for(const m of h){const b=n[d[m]],E=zu[m];if(E)b&&E.forEach(g=>{o[g]=b[g]});else{const g=p[m]?(yield p[m]()).default:n[m];g&&b&&(g.components||[]).forEach(v=>{o[v.name]=Yc(v,b)})}}}})}initRouter(){const{router:n,project:r,options:i,adapter:s}=this;if(!n)return;const{routeAppendTo:o,pageRouteName:a="page",routeMeta:c}=i,u=o?"":"/",l={path:`${u}${a}/:id`,name:Ae,component:Qo},f={path:u,name:Ze,component:r!=null&&r.homepage?Qo:s.startupComponent||Lw,meta:c};n.hasRoute(Ae)&&n.removeRoute(Ae),n.hasRoute(Ze)&&n.removeRoute(Ze),o?(n.addRoute(o,l),n.addRoute(o,f)):(n.addRoute(l),n.addRoute(f))}install(n){const r=n.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!r[i]&&Xc(s)&&(n.use(s),r[i]=!0);this.options.install&&n.use(this.options.install),this.adapter.access&&n.use(this.adapter.access),n.provide(bs,this),n.config.globalProperties.installed=r,this.mode===ht.Design&&(n.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,c=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",u=`[ ${a} ] ${c} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","error")})}getFile(n){const{blocks:r=[]}=this.project||{};return this.getPage(n)||r.find(i=>i.id===n)||null}getPage(n){const{pages:r=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const c=i(s,a.children);if(c)return c}}};return i(n,r)||null}getHomepage(){const{homepage:n}=this.project||{};return n?this.getPage(n):null}getDsl(n){return L(this,null,function*(){const r=this.modules[`.vtj/files/${n}.json`];return r?yield r():this.service.getFile(n,this.project||void 0).catch(()=>null)})}getDslByUrl(n){return L(this,null,function*(){return this.urlDslCaches[n]||(this.urlDslCaches[n]=this.adapter.request.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(n,r={}){const{library:i,components:s,mode:o,apis:a}=this,c=z({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},r),u=tr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:c});return Xn(st(z({},c),{dsl:n,loader:u}))}getRenderComponent(n,r){return L(this,null,function*(){var c;const i=this.getFile(n);if(!i)return oe.warn(`Can not find file: ${n}`),null;r&&r(i);const s=`.vtj/vue/${n}.vue`,o=this.modules[s];if(o)return(c=yield o())==null?void 0:c.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(oe.warn(`Can not find dsl: ${n}`),null)})}defineUrlSchemaComponent(n,r){return Ts(()=>L(this,null,function*(){const i=yield this.getDslByUrl(n);return i?(i.name=r||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(n){return Ts(()=>L(this,null,function*(){return yield gs(n,window)}))}}function Vw(e){const t=new yl(e);return{provider:t,onReady:n=>t.ready(n)}}function _s(e={}){const t=Xo(bs);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:n,version:r}=e;n&&r&&L(this,null,function*(){const i=yield t.getDsl(n);(i==null?void 0:i.__VERSION__)!==r&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}const vl={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},Hw=(e,t="/__vtj__/api/:type.json")=>(n,r)=>e.send({url:t,method:"post",params:{type:n},data:{type:n,data:r},settings:vl}),Uw=(e,t="/__vtj__/api/uploader.json")=>(n,r)=>L(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:n,projectId:r},settings:st(z({},vl),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function zw(e){return _r({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var n;return((n=t.data)==null?void 0:n.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class Sr{constructor(t=an){A(this,"api");A(this,"pluginCaches",{});A(this,"uploader");this.api=Hw(t),this.uploader=Uw(t)}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return L(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,n){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,n),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,n){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,n),{}})}saveHistoryItem(t,n){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,n),!1})}removeHistoryItem(t,n){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,n),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,n){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:n}).catch(()=>!1))})}genVueContent(t,n){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:n}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,n){return L(this,null,function*(){return yield this.uploader(t,n).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,n){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:n}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:n=[]}=t,r=n.filter(s=>Kc(s))[0];return r?this.pluginCaches[r]||(this.pluginCaches[r]=an.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const mt=new us({type:"local",expired:0,prefix:"__VTJ_"});class qw extends Sr{init(t){const n=new ce(t),r=mt.get(`project_${n.id}`),i=Object.assign(n.toDsl(),r||{});return mt.save(`project_${n.id}`,i),Promise.resolve(i)}saveProject(t){const n=new ce(t);return mt.save(`project_${n.id}`,n.toDsl()),Promise.resolve(!0)}saveMaterials(t,n){return mt.save(`materials_${t.id}`,fr(n)),Promise.resolve(!0)}saveFile(t){return mt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const n=mt.get(`file_${t}`);return n?Promise.resolve(n):Promise.reject(null)}removeFile(t){return mt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return mt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const n=mt.get(`history_${t}`);if(n){const r=(n.items||[]).map(i=>i.id);this.removeHistoryItem(t,r),mt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const n=mt.get(`history_${t}`),r=new Qi(n||{id:t});return Promise.resolve(r.toDsl())}getHistoryItem(t,n){const r=mt.get(`history_${t}_${n}`);return Promise.resolve(r)}saveHistoryItem(t,n){return mt.save(`history_${t}_${n.id}`,n),Promise.resolve(!0)}removeHistoryItem(t,n){return n.forEach(r=>{mt.remove(`history_${t}_${r}`)}),Promise.resolve(!0)}}class bl extends Sr{constructor(){super(...arguments);A(this,"projects",{});A(this,"materials",{});A(this,"files",{});A(this,"histories",{});A(this,"historyItems",{})}init(n){const r=new ce(n),i=this.projects[r.id]||{},s=Object.assign(r.toDsl(),i);return this.projects[s.id]=s,Promise.resolve(s)}saveProject(n){const r=new ce(n);return this.projects[r.id]=r.toDsl(),Promise.resolve(!0)}saveMaterials(n,r){return n.id&&(this.materials[n.id]=fr(r)),Promise.resolve(!0)}saveFile(n){return this.files[n.id]=n,Promise.resolve(!0)}getFile(n){const r=this.files[n];return r?Promise.resolve(r):Promise.reject(null)}removeFile(n){return delete this.files[n],Promise.resolve(!0)}saveHistory(n){return this.histories[n.id]=n,Promise.resolve(!0)}removeHistory(n){const r=this.histories[n];if(r){const i=(r.items||[]).map(s=>s.id);this.removeHistoryItem(n,i),delete this.historyItems[n]}return Promise.resolve(!0)}getHistory(n){const r=this.histories[n],i=new Qi(r||{id:n});return Promise.resolve(i)}getHistoryItem(n,r){const i=`${n}_${r}`,s=this.historyItems[i]||{};return Promise.resolve(s)}saveHistoryItem(n,r){const i=`${n}_${r.id}`;return this.historyItems[i]=r,Promise.resolve(!0)}removeHistoryItem(n,r){return r.forEach(i=>{const s=`${n}_${i}`;delete this.historyItems[s]}),Promise.resolve(!0)}}let Jr=null;function Kw(){return Jr||(Jr=new bl,Jr)}class Jw extends Sr{constructor(){super(...arguments);A(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(n){return L(this,null,function*(){return(yield this.api("init",n).catch(()=>null))||{}})}saveProject(n){return L(this,null,function*(){return!!(yield this.api("saveProject",n).catch(()=>!1))})}saveMaterials(n,r){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:n,materials:fr(r)}).catch(()=>!1))})}saveFile(n){return L(this,null,function*(){return!!(yield this.api("saveFile",n).catch(()=>!1))})}getFile(n){return L(this,null,function*(){return this.getFileCaches[n]||(this.getFileCaches[n]=this.api("getFile",n).catch(()=>null)).finally(()=>{delete this.getFileCaches[n]})})}removeFile(n){return L(this,null,function*(){return!!(yield this.api("removeFile",n).catch(()=>!1))})}saveHistory(n){return L(this,null,function*(){return!!(yield this.api("saveHistory",n).catch(()=>!1))})}removeHistory(n){return L(this,null,function*(){return!!(yield this.api("removeHistory",n).catch(()=>!1))})}getHistory(n){return L(this,null,function*(){return(yield this.api("getHistory",n).catch(()=>null))||{}})}getHistoryItem(n,r){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:n,id:r}).catch(()=>null))||{}})}saveHistoryItem(n,r){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:n,item:r}).catch(()=>!1))})}removeHistoryItem(n,r){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:n,ids:r}).catch(()=>!1))})}}function _l(e,t,n=[]){return n.map(r=>{const{id:i,title:s,icon:o,children:a,hidden:c}=r;return{id:i,title:s,icon:o,hidden:c,url:`${e}/${t}/${i}`,children:a&&a.length?_l(e,t,a):void 0}})}function wl(e,t){if(!t)return e;let n=[];for(const r of e)if(r.children&&r.children.length){const i=wl(r.children,t);i.length&&(r.children=i,n.push(r))}else t.can(r.id.toString())&&n.push(r);return n}function Ww(e){const{menuPathPrefix:t="",pageRouteName:n="page",disableMenusFilter:r=!1}=e||{},i=_s(),s=ra(),o=il(),a=Xe(!1),c=Xe(!1),u=i.project;$l(()=>{const{name:h,params:d,meta:p}=s;if(h===Ae){const m=i.getPage(d.id);a.value=!(m!=null&&m.mask),c.value=!!(m!=null&&m.pure)}else if(h===Ze){const m=i.getHomepage();a.value=!(m!=null&&m.mask),c.value=!!(m!=null&&m.pure)}else a.value=!p.mask,c.value=!!p.pure});const l=_l(t,n,u==null?void 0:u.pages),f=u==null?void 0:u.config;return{disabled:a,logo:f==null?void 0:f.logo,themeSwitchable:f==null?void 0:f.themeSwitchable,title:(f==null?void 0:f.title)||(u==null?void 0:u.description)||(u==null?void 0:u.name)||"VTJ App",menus:r?l:wl(l,o),pure:c}}const _2=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:ps,Access:rl,BUILD_IN_TAGS:qc,BUILT_IN_DIRECTIVES:Hc,BaseService:Sr,CONTEXT_HOST:Di,Context:fl,ContextMode:ht,DATA_TYPES:Uc,HOMEPAGE_ROUTE_NAME:Ze,HTML_TAGS:zc,JSCodeToString:Y_,LIFE_CYCLES_LIST:K_,LocalService:Jw,MemoryService:bl,NodeEnv:gl,PAGE_ROUTE_NAME:Ae,Provider:yl,Startup:ml,StorageService:qw,VTJ_RENDERER_VERSION:$e,adoptedStyleSheets:ds,createAdapter:Z_,createAssetScripts:J_,createAssetsCss:W_,createDataSources:hl,createLoader:tr,createMemoryService:Kw,createMetaApi:ol,createMock:cl,createProvider:Vw,createRenderer:Xn,createSchemaApi:sl,createSchemaApis:al,createServiceRequest:zw,defaultLoader:dl,fillBasePath:We,getModifiers:ys,getPlugin:gs,getRawComponent:Yc,isBuiltInTag:tl,isCSSUrl:wr,isJSCode:nl,isJSExpression:wt,isJSFunction:Me,isJSON:Kc,isJSUrl:Er,isNativeTag:el,isVuePlugin:Xc,loadCss:Gc,loadCssUrl:Zc,loadScriptUrl:Qc,mockApi:ll,mockApis:ul,mockCleanup:ms,nodeRender:un,parseDeps:Wc,parseExpression:Pe,parseFunction:Qn,providerKey:bs,removeProdFlag:Jc,toString:hs,useAccess:il,useMask:Ww,useProvider:_s},Symbol.toStringTag,{value:"Module"})),Yw=nr({__name:"app",setup(e){return(t,n)=>{const r=Nl("router-view");return Yr(),Os(Gr(Hl),{locale:Gr(Vl)},{default:$s(()=>[(Yr(),Os(Bl,null,{default:$s(()=>[Il(r)]),_:1}))]),_:1},8,["locale"])}}}),Gw=[{path:"/",name:"home",component:()=>vn(()=>import("./index-DOZPkybL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>vn(()=>import("./preview-CAYkpiRf.js"),__vite__mapDeps([21,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>vn(()=>import("./page-CbEWt3VU.js"),__vite__mapDeps([22,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>vn(()=>import("./auth-QuyzCAt1.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,24]),import.meta.url)}],Zw=Fl({history:Ll(),routes:Gw}),Qw="RRO_IDE_ACCESS_STORAGE__",ws=Ml(Yw),Xw=new rl({storageKey:Qw});ws.use(Xw);ws.use(Zw);ws.mount("#app");export{Zu as $,Z_ as A,Ee as B,di as C,pi as D,Gu as E,Yu as F,G,rt as H,Vw as I,ue as J,$v as K,ba as L,zw as M,Ke as N,Jw as O,Je as P,ee as Q,y1 as R,h1 as S,rl as T,Qi as U,Bn as V,wt as W,oi as X,Av as Y,ut as Z,yl as _,Qw as a,Me as a0,a0 as a1,Y_ as a2,K_ as a3,Pe as a4,Uc as a5,Wc as a6,W_ as a7,J_ as a8,Xv as a9,Yc as aa,al as ab,ms as ac,ul as ad,Qn as ae,qe as af,Hc as ag,zi as ah,Wn as ai,e0 as aj,E_ as ak,cl as al,Gi as am,Zi as an,w_ as ao,Cv as ap,Vi as aq,b2 as ar,wr as as,Er as at,Zc as au,Qc as av,p2 as aw,_2 as ax,li as b,Dt as c,Bu as d,Vn as e,x_ as f,gt as g,Nu as h,T_ as i,z_ as j,$u as k,oe as l,o1 as m,xe as n,bt as o,U_ as p,iu as q,qu as r,ce as s,i0 as t,cs as u,Nt as v,F as w,it as x,ht as y,rn as z};